Documentation ¶
Index ¶
- Variables
- func Dialect() string
- func MakeOrderFunc(order string) func(v interface{}) (stmt.OrderResult, error)
- func MakePaginationFunc(method string) func(v interface{}) (stmt.PaginationResult, error)
- type CombineOrder
- type Condition
- type MysqlCondition
- func (flavor *MysqlCondition) And(v interface{}) (stmt.ConditionResult, error)
- func (flavor *MysqlCondition) Between(v interface{}) (stmt.ConditionResult, error)
- func (flavor *MysqlCondition) Equal(v interface{}) (stmt.ConditionResult, error)
- func (flavor *MysqlCondition) GreaterThan(v interface{}) (stmt.ConditionResult, error)
- func (flavor *MysqlCondition) GreaterThanOrEqual(v interface{}) (stmt.ConditionResult, error)
- func (flavor *MysqlCondition) In(v interface{}) (stmt.ConditionResult, error)
- func (flavor *MysqlCondition) IsNull(v interface{}) (stmt.ConditionResult, error)
- func (flavor *MysqlCondition) LessThan(v interface{}) (stmt.ConditionResult, error)
- func (flavor *MysqlCondition) LessThanOrEqual(v interface{}) (stmt.ConditionResult, error)
- func (flavor *MysqlCondition) Like(v interface{}) (stmt.ConditionResult, error)
- func (flavor *MysqlCondition) Not(v interface{}) (stmt.ConditionResult, error)
- func (flavor *MysqlCondition) Or(v interface{}) (stmt.ConditionResult, error)
- type MysqlOrder
- type MysqlPagination
- type Order
- type Pagination
Constants ¶
This section is empty.
Variables ¶
View Source
var A = stmt.Slice
View Source
var M = stmt.Map
Functions ¶
func MakeOrderFunc ¶
func MakeOrderFunc(order string) func(v interface{}) (stmt.OrderResult, error)
func MakePaginationFunc ¶
func MakePaginationFunc(method string) func(v interface{}) (stmt.PaginationResult, error)
Types ¶
type CombineOrder ¶
type CombineOrder []stmt.OrderResult
func (CombineOrder) Combine ¶
func (order CombineOrder) Combine(other stmt.OrderResult) stmt.OrderResult
func (CombineOrder) Order ¶
func (orders CombineOrder) Order() string
type MysqlCondition ¶
type MysqlCondition struct { stmt.ConditionStmtBuilder Quote func(exp string) string // column name decorator }
func NewMysqlCondition ¶
func NewMysqlCondition() *MysqlCondition
func (*MysqlCondition) And ¶
func (flavor *MysqlCondition) And(v interface{}) (stmt.ConditionResult, error)
func (*MysqlCondition) Between ¶
func (flavor *MysqlCondition) Between(v interface{}) (stmt.ConditionResult, error)
func (*MysqlCondition) Equal ¶
func (flavor *MysqlCondition) Equal(v interface{}) (stmt.ConditionResult, error)
func (*MysqlCondition) GreaterThan ¶
func (flavor *MysqlCondition) GreaterThan(v interface{}) (stmt.ConditionResult, error)
func (*MysqlCondition) GreaterThanOrEqual ¶
func (flavor *MysqlCondition) GreaterThanOrEqual(v interface{}) (stmt.ConditionResult, error)
func (*MysqlCondition) In ¶
func (flavor *MysqlCondition) In(v interface{}) (stmt.ConditionResult, error)
func (*MysqlCondition) IsNull ¶
func (flavor *MysqlCondition) IsNull(v interface{}) (stmt.ConditionResult, error)
func (*MysqlCondition) LessThan ¶
func (flavor *MysqlCondition) LessThan(v interface{}) (stmt.ConditionResult, error)
func (*MysqlCondition) LessThanOrEqual ¶
func (flavor *MysqlCondition) LessThanOrEqual(v interface{}) (stmt.ConditionResult, error)
func (*MysqlCondition) Like ¶
func (flavor *MysqlCondition) Like(v interface{}) (stmt.ConditionResult, error)
func (*MysqlCondition) Not ¶
func (flavor *MysqlCondition) Not(v interface{}) (stmt.ConditionResult, error)
func (*MysqlCondition) Or ¶
func (flavor *MysqlCondition) Or(v interface{}) (stmt.ConditionResult, error)
type MysqlOrder ¶
type MysqlOrder struct {
stmt.OrderStmtBuilder
}
func NewMysqlOrder ¶
func NewMysqlOrder() *MysqlOrder
func (*MysqlOrder) Asc ¶
func (flavor *MysqlOrder) Asc(v interface{}) (stmt.OrderResult, error)
func (*MysqlOrder) Desc ¶
func (flavor *MysqlOrder) Desc(v interface{}) (stmt.OrderResult, error)
type MysqlPagination ¶
type MysqlPagination struct {
stmt.PaginationStmtBuilder
}
func NewMysqlPagination ¶
func NewMysqlPagination() *MysqlPagination
func (*MysqlPagination) Limit ¶
func (flavor *MysqlPagination) Limit(v interface{}) (stmt.PaginationResult, error)
func (*MysqlPagination) Page ¶
func (flavor *MysqlPagination) Page(v interface{}) (stmt.PaginationResult, error)
type Order ¶
type Order struct {
// contains filtered or unexported fields
}
func (Order) Combine ¶
func (order Order) Combine(other stmt.OrderResult) stmt.OrderResult
type Pagination ¶
type Pagination struct {
// contains filtered or unexported fields
}
func (*Pagination) SetLimit ¶
func (page *Pagination) SetLimit(n int)
func (*Pagination) SetPage ¶
func (page *Pagination) SetPage(n int)
Click to show internal directories.
Click to hide internal directories.