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

Method StatementPrepare

internal/sqlbuilder/builder.go:589–595  ·  view source on GitHub ↗
(ctx context.Context, stmt *exql.Statement)

Source from the content-addressed store, hash-verified

587}
588
589func (p *exprProxy) StatementPrepare(ctx context.Context, stmt *exql.Statement) (*sql.Stmt, error) {
590 s, err := stmt.Compile(p.t)
591 if err != nil {
592 return nil, err
593 }
594 return compat.PrepareContext(p.db, ctx, s)
595}
596
597func (p *exprProxy) StatementQuery(ctx context.Context, stmt *exql.Statement, args ...interface{}) (*sql.Rows, error) {
598 s, err := stmt.Compile(p.t)

Callers

nothing calls this directly

Calls 2

PrepareContextFunction · 0.92
CompileMethod · 0.65

Tested by

no test coverage detected