Documentation
¶
Index ¶
- type Column
- func (c Column) Between(l string, u string) string
- func (c Column) Equal(v string) string
- func (c Column) GreaterThan(v string) string
- func (c Column) GreaterThanOrEqual(v string) string
- func (c Column) In(r []string) string
- func (c Column) LessThan(v string) string
- func (c Column) LessThanOrEqual(v string) string
- func (c Column) Like(p string) string
- func (c Column) NotEqual(v string) string
- func (c Column) NotIn(r []string) string
- func (c Column) NotLike(p string) string
- type Columns
- type Query
- func (q *Query) And(cond string) *Query
- func (q *Query) Call() *Query
- func (q *Query) Limit(val int) *Query
- func (q *Query) Or(cond string) *Query
- func (q *Query) OrderByAsc(col Column) *Query
- func (q *Query) OrderByDesc(col Column) *Query
- func (q *Query) Param(p string) *Query
- func (q *Query) Select(cols []string) *Query
- func (q *Query) SelectAll() *Query
- func (q *Query) SelectOne() *Query
- func (q *Query) Where(cond string) *Query
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Column ¶
type Column struct {
Name string
}
func (Column) GreaterThan ¶
func (Column) GreaterThanOrEqual ¶
func (Column) LessThanOrEqual ¶
type Query ¶
type Query struct { // Language string // should support syntactic differences in mysql, postgres, ms sql etc // Version string // may be differences in symbols based on versions Database string Table string Procedure string Columns Columns // TODO add support for table meta data, and can do some validation on the built query Query string }
dont think this should be called 'query' as it contains more information than just a simple query
func (*Query) OrderByAsc ¶
func (*Query) OrderByDesc ¶
Click to show internal directories.
Click to hide internal directories.