MCPcopy
hub / github.com/Masterminds/squirrel / QueryContext

Method QueryContext

stmtcacher_ctx.go:71–77  ·  view source on GitHub ↗

QueryContext delegates down to the underlying PreparerContext using a prepared statement

(ctx context.Context, query string, args ...interface{})

Source from the content-addressed store, hash-verified

69
70// QueryContext delegates down to the underlying PreparerContext using a prepared statement
71func (sc *StmtCache) QueryContext(ctx context.Context, query string, args ...interface{}) (rows *sql.Rows, err error) {
72 stmt, err := sc.PrepareContext(ctx, query)
73 if err != nil {
74 return
75 }
76 return stmt.QueryContext(ctx, args...)
77}
78
79// QueryRowContext delegates down to the underlying PreparerContext using a prepared statement
80func (sc *StmtCache) QueryRowContext(ctx context.Context, query string, args ...interface{}) RowScanner {

Callers

nothing calls this directly

Calls 2

PrepareContextMethod · 0.95
QueryContextMethod · 0.65

Tested by

no test coverage detected