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

Method QueryRow

select.go:43–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

QueryRowWithFunction · 0.85

Tested by

no test coverage detected