MCPcopy
hub / github.com/jmoiron/sqlx / NamedQueryContext

Method NamedQueryContext

sqlx_context.go:128–130  ·  view source on GitHub ↗

NamedQueryContext using this DB. Any named placeholder parameters are replaced with fields from arg.

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

Source from the content-addressed store, hash-verified

126// NamedQueryContext using this DB.
127// Any named placeholder parameters are replaced with fields from arg.
128func (db *DB) NamedQueryContext(ctx context.Context, query string, arg interface{}) (*Rows, error) {
129 return NamedQueryContext(ctx, db, query, arg)
130}
131
132// NamedExecContext using this DB.
133// Any named placeholder parameters are replaced with fields from arg.

Callers 2

TestNamedQueryContextFunction · 0.80
TestUsageContextFunction · 0.80

Calls 1

NamedQueryContextFunction · 0.85

Tested by 2

TestNamedQueryContextFunction · 0.64
TestUsageContextFunction · 0.64