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

Method GetContext

sqlx_context.go:345–347  ·  view source on GitHub ↗

GetContext within a transaction and context. Any placeholder parameters are replaced with supplied args. An error is returned if the result set is empty.

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

Source from the content-addressed store, hash-verified

343// Any placeholder parameters are replaced with supplied args.
344// An error is returned if the result set is empty.
345func (tx *Tx) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error {
346 return GetContext(ctx, tx, dest, query, args...)
347}
348
349// QueryRowxContext within a transaction and context.
350// Any placeholder parameters are replaced with supplied args.

Callers

nothing calls this directly

Calls 1

GetContextFunction · 0.85

Tested by

no test coverage detected