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

Method QueryRow

update.go:46–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

QueryRowWithFunction · 0.85

Tested by

no test coverage detected