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

Method Prepare

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

Source from the content-addressed store, hash-verified

242}
243
244func (pag *paginator) Prepare() (*sql.Stmt, error) {
245 pq, err := pag.buildWithCursor()
246 if err != nil {
247 return nil, err
248 }
249 return pq.sel.Prepare()
250}
251
252func (pag *paginator) PrepareContext(ctx context.Context) (*sql.Stmt, error) {
253 pq, err := pag.buildWithCursor()

Callers

nothing calls this directly

Calls 2

buildWithCursorMethod · 0.95
PrepareMethod · 0.65

Tested by

no test coverage detected