sqlboiler/boil/types.go

15 lines
464 B
Go
Raw Normal View History

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
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{}