2016-09-09 19:14:18 +02:00
|
|
|
var dialect boil.Dialect = boil.Dialect{
|
2016-09-09 19:30:46 +02:00
|
|
|
LQ: 0x{{printf "%x" .Dialect.LQ}},
|
|
|
|
RQ: 0x{{printf "%x" .Dialect.RQ}},
|
2016-09-09 19:14:18 +02:00
|
|
|
IndexPlaceholders: {{.Dialect.IndexPlaceholders}},
|
|
|
|
}
|
|
|
|
|
2016-08-01 07:10:10 +02:00
|
|
|
// NewQueryG initializes a new Query using the passed in QueryMods
|
|
|
|
func NewQueryG(mods ...qm.QueryMod) *boil.Query {
|
2016-09-09 19:14:18 +02:00
|
|
|
return NewQuery(boil.GetDB(), mods...)
|
2016-04-19 04:02:32 +02:00
|
|
|
}
|
|
|
|
|
2016-08-01 07:10:10 +02:00
|
|
|
// NewQuery initializes a new Query using the passed in QueryMods
|
|
|
|
func NewQuery(exec boil.Executor, mods ...qm.QueryMod) *boil.Query {
|
2016-09-09 19:14:18 +02:00
|
|
|
q := &boil.Query{}
|
|
|
|
boil.SetExecutor(q, exec)
|
|
|
|
boil.SetDialect(q, &dialect)
|
|
|
|
qm.Apply(q, mods...)
|
2016-04-19 04:02:32 +02:00
|
|
|
|
2016-09-09 19:14:18 +02:00
|
|
|
return q
|
2016-04-19 04:02:32 +02:00
|
|
|
}
|