document of FindAndCount()

This commit is contained in:
zhanghelong 2019-07-24 12:54:13 +08:00
parent 18b32486cf
commit 4bad2287cf
1 changed files with 7 additions and 0 deletions

View File

@ -284,6 +284,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)
```
* `Sum` sum functions
```Go