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

Method StatementQuery

internal/sqlbuilder/builder.go:597–603  ·  view source on GitHub ↗
(ctx context.Context, stmt *exql.Statement, args ...interface{})

Source from the content-addressed store, hash-verified

595}
596
597func (p *exprProxy) StatementQuery(ctx context.Context, stmt *exql.Statement, args ...interface{}) (*sql.Rows, error) {
598 s, err := stmt.Compile(p.t)
599 if err != nil {
600 return nil, err
601 }
602 return compat.QueryContext(p.db, ctx, s, args)
603}
604
605func (p *exprProxy) StatementQueryRow(ctx context.Context, stmt *exql.Statement, args ...interface{}) (*sql.Row, error) {
606 s, err := stmt.Compile(p.t)

Callers

nothing calls this directly

Calls 2

QueryContextFunction · 0.92
CompileMethod · 0.65

Tested by

no test coverage detected