sqlboiler/cmds/templates/singles/helpers.tpl
Patrick O'brien 9c493810ec Finished most of delete functions
* Fixed some template errors
* Added IN helpers
2016-04-23 21:54:24 +10:00

17 lines
468 B
Smarty

// M type is for providing where filters to Where helpers.
type M map[string]interface{}
// NewQuery initializes a new Query using the passed in QueryMods
func NewQuery(mods ...qs.QueryMod) *boil.Query {
return NewQueryX(boil.GetDB(), mods...)
}
// NewQueryX initializes a new Query using the passed in QueryMods
func NewQueryX(exec boil.Executor, mods ...qs.QueryMod) *boil.Query {
q := &boil.Query{}
boil.SetExecutor(q, exec)
qs.Apply(q, mods...)
return q
}