Refactor entire project :D
- Move most files to root - Remove cmds directory in favor of cmd directory with binary - Remove all cobra from main
This commit is contained in:
parent
612b670048
commit
8757c8a184
39 changed files with 790 additions and 940 deletions
templates/singleton
16
templates/singleton/helpers.tpl
Normal file
16
templates/singleton/helpers.tpl
Normal file
|
@ -0,0 +1,16 @@
|
|||
// 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(exec boil.Executor, mods ...qs.QueryMod) *boil.Query {
|
||||
q := &boil.Query{}
|
||||
boil.SetExecutor(q, exec)
|
||||
qs.Apply(q, mods...)
|
||||
|
||||
return q
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue