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

Method GetContext

named_context.go:108–111  ·  view source on GitHub ↗

GetContext using this NamedStmt Any named placeholder parameters are replaced with fields from arg.

(ctx context.Context, dest interface{}, arg interface{})

Source from the content-addressed store, hash-verified

106// GetContext using this NamedStmt
107// Any named placeholder parameters are replaced with fields from arg.
108func (n *NamedStmt) GetContext(ctx context.Context, dest interface{}, arg interface{}) error {
109 r := n.QueryRowxContext(ctx, arg)
110 return r.scanAny(dest, false)
111}
112
113// NamedQueryContext binds a named query and then runs Query on the result using the
114// provided Ext (sqlx.Tx, sqlx.Db). It works with both structs and with

Callers

nothing calls this directly

Calls 2

QueryRowxContextMethod · 0.95
scanAnyMethod · 0.80

Tested by

no test coverage detected