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

Method TotalEntries

internal/sqlbuilder/paginate.go:260–266  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

258}
259
260func (pag *paginator) TotalEntries() (uint64, error) {
261 pq, err := pag.build()
262 if err != nil {
263 return 0, err
264 }
265 return pq.count()
266}
267
268func (pag *paginator) build() (*paginatorQuery, error) {
269 pq, err := immutable.FastForward(pag)

Callers

nothing calls this directly

Calls 2

buildMethod · 0.95
countMethod · 0.45

Tested by

no test coverage detected