sqlboiler/boil/query.go
Patrick O'brien 4b12c849fc Added some querymods
* Added finishers that are broken
* Added some template stuffs
* Added a TestTemplates file output line thingy
2016-04-16 15:17:25 +10:00

33 lines
614 B
Go

package boil
type where struct {
clause string
args []interface{}
}
type Query struct {
limit int
where []where
executor Executor
groupBy []string
orderBy []string
having []string
from string
}
func (q *Query) buildQuery() string {
return ""
}
// NewQuery initializes a new Query using the passed in QueryMods
func NewQuery(mods ...QueryMod) *Query {
return NewQueryX(currentDB, mods...)
}
// NewQueryX initializes a new Query using the passed in QueryMods
func NewQueryX(executor Executor, mods ...QueryMod) *Query {
q := &Query{executor: executor}
q.Apply(mods...)
return q
}