2016-03-01 16:53:56 +01:00
|
|
|
package boil
|
|
|
|
|
|
|
|
import "database/sql"
|
|
|
|
|
|
|
|
// DB implements the functions necessary for the templates to function.
|
|
|
|
type DB interface {
|
|
|
|
Exec(query string, args ...interface{}) (sql.Result, error)
|
|
|
|
Query(query string, args ...interface{}) (*sql.Rows, error)
|
|
|
|
QueryRow(query string, args ...interface{}) *sql.Row
|
2016-03-16 08:04:26 +01:00
|
|
|
Select(dest interface{}, query string, args ...interface{}) error
|
2016-03-01 16:53:56 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// M type is for providing where filters to Where helpers.
|
|
|
|
type M map[string]interface{}
|