Documentation ¶
Index ¶
- Constants
- func Between(column string, valueBefore, valueAfter interface{}) *betweenImpl
- func Filter(column string, value interface{}) *filterImpl
- func LogicOr(conditions ...Condition) *logicOrImpl
- type Condition
- type Insert
- type Order
- type OrderDirection
- type Select
- func (q *Select) Clone() *Select
- func (q *Select) Condition(condition Condition) *Select
- func (q *Select) Count(db *sql.DB) (int64, error)
- func (q *Select) Filter(column string, value interface{}) *Select
- func (q *Select) GetAll(db *sql.DB, models interface{}) error
- func (q *Select) IsOrdered() bool
- func (q *Select) Limit(limit int64) *Select
- func (q *Select) Offset(offset int64) *Select
- func (q *Select) Order(orders ...Order) *Select
- func (q *Select) Project(columns ...string) *Select
- func (q *Select) SQL() (string, []interface{}, error)
- func (q *Select) SortAsc(column string) *Select
- func (q *Select) SortDesc(column string) *Select
Constants ¶
View Source
const ( OrderDirectionDesc = OrderDirection("DESC") OrderDirectionAsc = OrderDirection("ASC") )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Order ¶
type Order struct { Column string Direction OrderDirection }
type OrderDirection ¶
type OrderDirection string
Click to show internal directories.
Click to hide internal directories.