MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / Offset

Method Offset

api/models/pagination.go:88–91  ·  view source on GitHub ↗

Offset returns the size of skipped items of current page. Intend to be used in SQL statements.

()

Source from the content-addressed store, hash-verified

86// Offset returns the size of skipped items of current page.
87// Intend to be used in SQL statements.
88func (p *Pagination) Offset() int {
89 p.normalize()
90 return (p.Page - 1) * p.Size
91}

Callers 3

GetBlockListMethod · 0.80
GetTransactionListMethod · 0.80

Calls 1

normalizeMethod · 0.95

Tested by

no test coverage detected