0768a89aa6
* Added select and where helpers for the templates - These run at run time * Added select to the boil DB interface * Renamed some of the broken template names and fixed some templates
14 lines
464 B
Go
14 lines
464 B
Go
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
|
|
Select(dest interface{}, query string, args ...interface{}) error
|
|
}
|
|
|
|
// M type is for providing where filters to Where helpers.
|
|
type M map[string]interface{}
|