Documentation
¶
Index ¶
- type Query
- func (q *Query) Args() []interface{}
- func (q *Query) Delete() *Statement
- func (q *Query) Insert(columns []string, values ...interface{}) *Statement
- func (q *Query) Raw(str string, args ...interface{}) *Query
- func (q *Query) Reset()
- func (q *Query) Select(columns ...string) *Statement
- func (q *Query) SetDriver(driver string)
- func (q *Query) SetTable(table string)
- func (q *Query) String() string
- func (q *Query) Table() string
- func (q *Query) Update(data interface{}, args ...interface{}) *Statement
- type Statement
- func (s *Statement) Limit(n int) *Statement
- func (s *Statement) Offset(n int) *Statement
- func (s *Statement) OrderBy(columns ...string) *Statement
- func (s *Statement) OrderByDesc(columns ...string) *Statement
- func (s *Statement) Returning(columns ...string) *Statement
- func (s *Statement) Where(cond string, args ...interface{}) *Statement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
Query describes an sql query.
func (*Query) SetDriver ¶
SetDriver sets driver field to the given value. SetDriver panics if driver is not supported.
type Statement ¶
type Statement struct {
*Query
}
Statement describes an sql query statement.
func (*Statement) OrderByDesc ¶
OrderByDesc adds sql order by columns desc to query.
Click to show internal directories.
Click to hide internal directories.