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

Method StatementExec

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

Source from the content-addressed store, hash-verified

579}
580
581func (p *exprProxy) StatementExec(ctx context.Context, stmt *exql.Statement, args ...interface{}) (sql.Result, error) {
582 s, err := stmt.Compile(p.t)
583 if err != nil {
584 return nil, err
585 }
586 return compat.ExecContext(p.db, ctx, s, args)
587}
588
589func (p *exprProxy) StatementPrepare(ctx context.Context, stmt *exql.Statement) (*sql.Stmt, error) {
590 s, err := stmt.Compile(p.t)

Callers

nothing calls this directly

Calls 2

ExecContextFunction · 0.92
CompileMethod · 0.65

Tested by

no test coverage detected