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

Method QueryRowContext

stmtcacher_ctx.go:80–86  ·  view source on GitHub ↗

QueryRowContext 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

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 {
81 stmt, err := sc.PrepareContext(ctx, query)
82 if err != nil {
83 return &Row{err: err}
84 }
85 return stmt.QueryRowContext(ctx, args...)
86}

Callers

nothing calls this directly

Calls 2

PrepareContextMethod · 0.95
QueryRowContextMethod · 0.65

Tested by

no test coverage detected