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

Method NamedExec

sqlx.go:313–315  ·  view source on GitHub ↗

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

(query string, arg interface{})

Source from the content-addressed store, hash-verified

311// NamedExec using this DB.
312// Any named placeholder parameters are replaced with fields from arg.
313func (db *DB) NamedExec(query string, arg interface{}) (sql.Result, error) {
314 return NamedExec(db, query, arg)
315}
316
317// Select using this DB.
318// Any placeholder parameters are replaced with supplied args.

Callers 5

TestNamedQueriesFunction · 0.45
TestNamedQueryFunction · 0.45
TestNilInsertsFunction · 0.45
TestUsageFunction · 0.45
TestEmbeddedMapsFunction · 0.45

Calls 1

NamedExecFunction · 0.85

Tested by 5

TestNamedQueriesFunction · 0.36
TestNamedQueryFunction · 0.36
TestNilInsertsFunction · 0.36
TestUsageFunction · 0.36
TestEmbeddedMapsFunction · 0.36