21 lines
622 B
Smarty
21 lines
622 B
Smarty
var dialect = queries.Dialect{
|
|
LQ: 0x{{printf "%x" .Dialect.LQ}},
|
|
RQ: 0x{{printf "%x" .Dialect.RQ}},
|
|
IndexPlaceholders: {{.Dialect.IndexPlaceholders}},
|
|
UseTopClause: {{.Dialect.UseTopClause}},
|
|
}
|
|
|
|
// NewQueryG initializes a new Query using the passed in QueryMods
|
|
func NewQueryG(mods ...qm.QueryMod) *queries.Query {
|
|
return NewQuery(boil.GetDB(), mods...)
|
|
}
|
|
|
|
// NewQuery initializes a new Query using the passed in QueryMods
|
|
func NewQuery(exec boil.Executor, mods ...qm.QueryMod) *queries.Query {
|
|
q := &queries.Query{}
|
|
queries.SetExecutor(q, exec)
|
|
queries.SetDialect(q, &dialect)
|
|
qm.Apply(q, mods...)
|
|
|
|
return q
|
|
}
|