MCPcopy
hub / github.com/Masterminds/squirrel / Exec

Method Exec

stmtcacher.go:55–61  ·  view source on GitHub ↗

Exec delegates down to the underlying Preparer using a prepared statement

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

Source from the content-addressed store, hash-verified

53
54// Exec delegates down to the underlying Preparer using a prepared statement
55func (sc *StmtCache) Exec(query string, args ...interface{}) (res sql.Result, err error) {
56 stmt, err := sc.Prepare(query)
57 if err != nil {
58 return
59 }
60 return stmt.Exec(args...)
61}
62
63// Query delegates down to the underlying Preparer using a prepared statement
64func (sc *StmtCache) Query(query string, args ...interface{}) (rows *sql.Rows, err error) {

Callers

nothing calls this directly

Calls 2

PrepareMethod · 0.95
ExecMethod · 0.65

Tested by

no test coverage detected