summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/go-xorm/xorm/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/go-xorm/xorm/README.md')
-rw-r--r--vendor/github.com/go-xorm/xorm/README.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/vendor/github.com/go-xorm/xorm/README.md b/vendor/github.com/go-xorm/xorm/README.md
index 2b839d520f..62b40ba304 100644
--- a/vendor/github.com/go-xorm/xorm/README.md
+++ b/vendor/github.com/go-xorm/xorm/README.md
@@ -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