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

Function QueryWith

squirrel.go:111–117  ·  view source on GitHub ↗

QueryWith Querys the SQL returned by s with db.

(db Queryer, s Sqlizer)

Source from the content-addressed store, hash-verified

109
110// QueryWith Querys the SQL returned by s with db.
111func QueryWith(db Queryer, s Sqlizer) (rows *sql.Rows, err error) {
112 query, args, err := s.ToSql()
113 if err != nil {
114 return
115 }
116 return db.Query(query, args...)
117}
118
119// QueryRowWith QueryRows the SQL returned by s with db.
120func QueryRowWith(db QueryRower, s Sqlizer) RowScanner {

Callers 6

QueryMethod · 0.85
TestQueryWithFunction · 0.85
TestWithToSqlErrFunction · 0.85
QueryMethod · 0.85
QueryMethod · 0.85
QueryMethod · 0.85

Calls 2

ToSqlMethod · 0.65
QueryMethod · 0.65

Tested by 2

TestQueryWithFunction · 0.68
TestWithToSqlErrFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…