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

Method NamedExecContext

sqlx_context.go:134–136  ·  view source on GitHub ↗

NamedExecContext 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

132// NamedExecContext using this DB.
133// Any named placeholder parameters are replaced with fields from arg.
134func (db *DB) NamedExecContext(ctx context.Context, query string, arg interface{}) (sql.Result, error) {
135 return NamedExecContext(ctx, db, query, arg)
136}
137
138// SelectContext using this DB.
139// Any placeholder parameters are replaced with supplied args.

Callers 4

TestNamedQueryContextFunction · 0.45
TestNilInsertsContextFunction · 0.45
TestUsageContextFunction · 0.45
TestEmbeddedMapsContextFunction · 0.45

Calls 1

NamedExecContextFunction · 0.85

Tested by 4

TestNamedQueryContextFunction · 0.36
TestNilInsertsContextFunction · 0.36
TestUsageContextFunction · 0.36
TestEmbeddedMapsContextFunction · 0.36