MCPcopy Index your code
hub / github.com/upper/db / Cursor

Method Cursor

result.go:134–134  ·  view source on GitHub ↗

Cursor defines the column that is going to be taken as basis for cursor-based pagination. Example: a = q.Paginate(10).Cursor("id") b = q.Paginate(12).Cursor("-id") You can set "" as cursorColumn to disable cursors.

(cursorColumn string)

Source from the content-addressed store, hash-verified

132 //
133 // You can set "" as cursorColumn to disable cursors.
134 Cursor(cursorColumn string) Result
135
136 // NextPage returns the next results page according to the cursor. It expects
137 // a cursorValue, which is the value the cursor column had on the last item

Callers 4

PaginatorMethod · 0.65
TestPaginateFunction · 0.65
TestPaginatorMethod · 0.65
TestPaginatorMethod · 0.65

Implementers 2

Resultinternal/sqladapter/result.go
resultadapter/mongo/result.go

Calls

no outgoing calls

Tested by 2

TestPaginateFunction · 0.52
TestPaginatorMethod · 0.52