We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 949b920 commit 7881bf4Copy full SHA for 7881bf4
go.mod
@@ -1,4 +1,3 @@
1
module github.com/x-ream/sqlxb
2
3
-go 1.15
4
-
+go 1.15
page_builder.go
@@ -27,6 +27,10 @@ type PageBuilder struct {
27
condition PageCondition
28
}
29
30
+type TotalRows struct {
31
+ Count int64 `db:"COUNT(*)"`
32
+}
33
+
34
func (pb *PageBuilder) Page(page uint) *PageBuilder {
35
pb.condition.page = page
36
return pb
0 commit comments