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

Method PrepareNamed

sqlx.go:378–380  ·  view source on GitHub ↗

PrepareNamed returns an sqlx.NamedStmt

(query string)

Source from the content-addressed store, hash-verified

376
377// PrepareNamed returns an sqlx.NamedStmt
378func (db *DB) PrepareNamed(query string) (*NamedStmt, error) {
379 return prepareNamed(db, query)
380}
381
382// Conn is a wrapper around sql.Conn with extra functionality
383type Conn struct {

Callers 4

TestNamedQueriesFunction · 0.45
TestMissingNamesFunction · 0.45
TestNamedQueryFunction · 0.45
TestNamedQueryContextFunction · 0.45

Calls 1

prepareNamedFunction · 0.85

Tested by 4

TestNamedQueriesFunction · 0.36
TestMissingNamesFunction · 0.36
TestNamedQueryFunction · 0.36
TestNamedQueryContextFunction · 0.36