13 lines
377 B
Smarty
13 lines
377 B
Smarty
// NewQueryG initializes a new Query using the passed in QueryMods
|
|
func NewQueryG(mods ...qm.QueryMod) *boil.Query {
|
|
return NewQuery(boil.GetDB(), mods...)
|
|
}
|
|
|
|
// NewQuery initializes a new Query using the passed in QueryMods
|
|
func NewQuery(exec boil.Executor, mods ...qm.QueryMod) *boil.Query {
|
|
q := &boil.Query{}
|
|
boil.SetExecutor(q, exec)
|
|
qm.Apply(q, mods...)
|
|
|
|
return q
|
|
}
|