Explorar o código

document of FindAndCount()

xormplus %!s(int64=6) %!d(string=hai) anos
pai
achega
80b0b9cef7
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  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