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{})
| 57 | |
| 58 | // Query is a shortcut of executing a query and bind the result to "dst". |
| 59 | func 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. |
| 64 | func Bind(dst interface{}, src *sql.Rows) error { |