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

Function QueryContextWith

squirrel_ctx.go:81–87  ·  view source on GitHub ↗

QueryContextWith QueryContexts the SQL returned by s with db.

(ctx context.Context, db QueryerContext, s Sqlizer)

Source from the content-addressed store, hash-verified

79
80// QueryContextWith QueryContexts the SQL returned by s with db.
81func QueryContextWith(ctx context.Context, db QueryerContext, s Sqlizer) (rows *sql.Rows, err error) {
82 query, args, err := s.ToSql()
83 if err != nil {
84 return
85 }
86 return db.QueryContext(ctx, query, args...)
87}
88
89// QueryRowContextWith QueryRowContexts the SQL returned by s with db.
90func QueryRowContextWith(ctx context.Context, db QueryRowerContext, s Sqlizer) RowScanner {

Callers 5

QueryContextMethod · 0.85
QueryContextMethod · 0.85
QueryContextMethod · 0.85
TestQueryContextWithFunction · 0.85
QueryContextMethod · 0.85

Calls 2

ToSqlMethod · 0.65
QueryContextMethod · 0.65

Tested by 1

TestQueryContextWithFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…