浏览代码

document of FindAndCount()

xormplus 6 年之前
父节点
当前提交
80b0b9cef7
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      README.md

+ 7 - 0
README.md

@@ -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