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

Method QueryRow

stmtcacher.go:73–79  ·  view source on GitHub ↗

QueryRow delegates down to the underlying Preparer using a prepared statement

(query string, args ...interface{})

Source from the content-addressed store, hash-verified

71
72// QueryRow delegates down to the underlying Preparer using a prepared statement
73func (sc *StmtCache) QueryRow(query string, args ...interface{}) RowScanner {
74 stmt, err := sc.Prepare(query)
75 if err != nil {
76 return &Row{err: err}
77 }
78 return stmt.QueryRow(args...)
79}
80
81// Clear removes and closes all the currently cached prepared statements
82func (sc *StmtCache) Clear() (err error) {

Callers

nothing calls this directly

Calls 2

PrepareMethod · 0.95
QueryRowMethod · 0.65

Tested by

no test coverage detected