MCPcopy Create free account
hub / github.com/upper/db / Prepare

Method Prepare

internal/sqlbuilder/select.go:445–447  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

443}
444
445func (sel *selector) Prepare() (*sql.Stmt, error) {
446 return sel.PrepareContext(sel.SQL().sess.Context())
447}
448
449func (sel *selector) PrepareContext(ctx context.Context) (*sql.Stmt, error) {
450 sq, err := sel.build()

Callers

nothing calls this directly

Calls 3

PrepareContextMethod · 0.95
SQLMethod · 0.95
ContextMethod · 0.65

Tested by

no test coverage detected