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

Method Query

stmtcacher.go:64–70  ·  view source on GitHub ↗

Query delegates down to the underlying Preparer using a prepared statement

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

Source from the content-addressed store, hash-verified

62
63// Query delegates down to the underlying Preparer using a prepared statement
64func (sc *StmtCache) Query(query string, args ...interface{}) (rows *sql.Rows, err error) {
65 stmt, err := sc.Prepare(query)
66 if err != nil {
67 return
68 }
69 return stmt.Query(args...)
70}
71
72// QueryRow delegates down to the underlying Preparer using a prepared statement
73func (sc *StmtCache) QueryRow(query string, args ...interface{}) RowScanner {

Callers

nothing calls this directly

Calls 2

PrepareMethod · 0.95
QueryMethod · 0.65

Tested by

no test coverage detected