sqlboiler/boil/query.go
Patrick O'brien 95d91f17f3 Added bind checkType function
* Added select and join querymod
2016-04-16 17:25:00 +10:00

35 lines
670 B
Go

package boil
type where struct {
clause string
args []interface{}
}
type Query struct {
executor Executor
selectCols []string
from string
joins []string
where []where
groupBy []string
orderBy []string
having []string
limit int
}
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
}