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

Method QueryRow

insert.go:42–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42func (d *insertData) QueryRow() RowScanner {
43 if d.RunWith == nil {
44 return &Row{err: RunnerNotSet}
45 }
46 queryRower, ok := d.RunWith.(QueryRower)
47 if !ok {
48 return &Row{err: RunnerNotQueryRunner}
49 }
50 return QueryRowWith(queryRower, d)
51}
52
53func (d *insertData) ToSql() (sqlStr string, args []interface{}, err error) {
54 if len(d.Into) == 0 {

Callers

nothing calls this directly

Calls 1

QueryRowWithFunction · 0.85

Tested by

no test coverage detected