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

Function ExecWith

squirrel.go:102–108  ·  view source on GitHub ↗

ExecWith Execs the SQL returned by s with db.

(db Execer, s Sqlizer)

Source from the content-addressed store, hash-verified

100
101// ExecWith Execs the SQL returned by s with db.
102func ExecWith(db Execer, s Sqlizer) (res sql.Result, err error) {
103 query, args, err := s.ToSql()
104 if err != nil {
105 return
106 }
107 return db.Exec(query, args...)
108}
109
110// QueryWith Querys the SQL returned by s with db.
111func QueryWith(db Queryer, s Sqlizer) (rows *sql.Rows, err error) {

Callers 6

ExecMethod · 0.85
TestExecWithFunction · 0.85
TestWithToSqlErrFunction · 0.85
ExecMethod · 0.85
ExecMethod · 0.85
ExecMethod · 0.85

Calls 2

ToSqlMethod · 0.65
ExecMethod · 0.65

Tested by 2

TestExecWithFunction · 0.68
TestWithToSqlErrFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…