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