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

Method MustExec

sqlx.go:368–370  ·  view source on GitHub ↗

MustExec (panic) runs MustExec using this database. Any placeholder parameters are replaced with supplied args.

(query string, args ...interface{})

Source from the content-addressed store, hash-verified

366// MustExec (panic) runs MustExec using this database.
367// Any placeholder parameters are replaced with supplied args.
368func (db *DB) MustExec(query string, args ...interface{}) sql.Result {
369 return MustExec(db, query, args...)
370}
371
372// Preparex returns an sqlx.Stmt instead of a sql.Stmt
373func (db *DB) Preparex(query string) (*Stmt, error) {

Callers 4

loadDefaultFixtureFunction · 0.45
TestNilInsertsFunction · 0.45
TestMultiInsertFunction · 0.45
TestEmbeddedLiteralsFunction · 0.45

Calls 1

MustExecFunction · 0.85

Tested by 4

loadDefaultFixtureFunction · 0.36
TestNilInsertsFunction · 0.36
TestMultiInsertFunction · 0.36
TestEmbeddedLiteralsFunction · 0.36