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

Function QueryRowWith

squirrel.go:120–123  ·  view source on GitHub ↗

QueryRowWith QueryRows the SQL returned by s with db.

(db QueryRower, s Sqlizer)

Source from the content-addressed store, hash-verified

118
119// QueryRowWith QueryRows the SQL returned by s with db.
120func QueryRowWith(db QueryRower, s Sqlizer) RowScanner {
121 query, args, err := s.ToSql()
122 return &Row{RowScanner: db.QueryRow(query, args...), err: err}
123}
124
125// DebugSqlizer calls ToSql on s and shows the approximate SQL to be executed
126//

Callers 5

QueryRowMethod · 0.85
TestQueryRowWithFunction · 0.85
TestWithToSqlErrFunction · 0.85
QueryRowMethod · 0.85
QueryRowMethod · 0.85

Calls 2

ToSqlMethod · 0.65
QueryRowMethod · 0.65

Tested by 2

TestQueryRowWithFunction · 0.68
TestWithToSqlErrFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…