Skip to content

Commit

Permalink
document of FindAndCount()
Browse files Browse the repository at this point in the history
  • Loading branch information
xormplus committed Jul 24, 2019
1 parent 7d5610b commit 80b0b9c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1175,6 +1175,13 @@ counts, err := engine.Count(&user)
// SELECT count(*) AS total FROM user
```

* `FindAndCount` combines function `Find` with `Count` which is usually used in query by page

```Go
var users []User
counts, err := engine.FindAndCount(&users)
```

* 条件编辑器

```Go
Expand Down

0 comments on commit 80b0b9c

Please sign in to comment.