MCPcopy Create free account
hub / github.com/kataras/iris / Query

Function Query

x/sqlx/sqlx.go:59–61  ·  view source on GitHub ↗

Query is a shortcut of executing a query and bind the result to "dst".

(ctx context.Context, db *sql.DB, dst interface{}, query string, args ...interface{})

Source from the content-addressed store, hash-verified

57
58// Query is a shortcut of executing a query and bind the result to "dst".
59func Query(ctx context.Context, db *sql.DB, dst interface{}, query string, args ...interface{}) error {
60 return DefaultSchema.Query(ctx, db, dst, query, args...)
61}
62
63// Bind sets "dst" to the result of "src" and reports any errors.
64func Bind(dst interface{}, src *sql.Rows) error {

Callers 1

getEventFunction · 0.92

Calls 1

QueryMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…