2016-04-19 04:02:32 +02:00
|
|
|
// 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(executor boil.Executor, mods ...qs.QueryMod) *boil.Query {
|
2016-04-20 14:51:04 +02:00
|
|
|
q := &boil.Query{executor: executor}
|
|
|
|
qs.Apply(q, mods...)
|
2016-04-19 04:02:32 +02:00
|
|
|
|
|
|
|
return q
|
|
|
|
}
|