Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

Commit 9b08f94

Browse files
BetaCat0lunny
authored andcommitted
document of FindAndCount() (#1365)
1 parent 18b3248 commit 9b08f94

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,13 @@ counts, err := engine.Count(&user)
284284
// SELECT count(*) AS total FROM user
285285
```
286286

287+
* `FindAndCount` combines function `Find` with `Count` which is usually used in query by page
288+
289+
```Go
290+
var users []User
291+
counts, err := engine.FindAndCount(&users)
292+
```
293+
287294
* `Sum` sum functions
288295

289296
```Go

0 commit comments

Comments
 (0)