Documentation ¶
Index ¶
- type And
- type AndJoin
- type Clause
- type CommonClause
- type ConditionJoin
- type Conditions
- func (conditions *Conditions) AddCondition(query string, args ...any) *Conditions
- func (conditions *Conditions) And() *And
- func (conditions *Conditions) Equal(columnName string, arg any) *Conditions
- func (conditions *Conditions) GreaterThan(columnName string, arg any) *Conditions
- func (conditions *Conditions) GreaterThanAndEqual(columnName string, arg any) *Conditions
- func (conditions *Conditions) In(columnName string, arg any) *Conditions
- func (conditions *Conditions) LessThan(columnName string, arg any) *Conditions
- func (conditions *Conditions) LessThanAndEqual(columnName string, arg any) *Conditions
- func (conditions *Conditions) Like(columnName string, arg string) *Conditions
- func (conditions *Conditions) Not(columnName string, arg any) *Conditions
- func (conditions *Conditions) NotIn(columnName string, arg any) *Conditions
- func (conditions *Conditions) Or() *Or
- type From
- type GroupBy
- type Join
- type Limit
- type Or
- type OrJoin
- type OrderBy
- type Select
- type TableName
- type Where
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonClause ¶ added in v1.0.6
type CommonClause struct {
// contains filtered or unexported fields
}
func NewCommonClause ¶ added in v1.0.6
func NewCommonClause(clause string, args ...any) CommonClause
func (CommonClause) Args ¶ added in v1.0.6
func (clause CommonClause) Args() []any
func (CommonClause) Clause ¶ added in v1.0.6
func (clause CommonClause) Clause() (string, error)
type ConditionJoin ¶ added in v1.0.5
type ConditionJoin struct {
// contains filtered or unexported fields
}
func NewConditionJoin ¶ added in v1.0.5
func NewConditionJoin(left Clause, right Clause) *ConditionJoin
func (*ConditionJoin) And ¶ added in v1.0.5
func (clause *ConditionJoin) And() *AndJoin
func (*ConditionJoin) Or ¶ added in v1.0.5
func (clause *ConditionJoin) Or() *OrJoin
type Conditions ¶
type Conditions struct {
// contains filtered or unexported fields
}
func NewConditions ¶
func NewConditions() *Conditions
func (*Conditions) AddCondition ¶
func (conditions *Conditions) AddCondition(query string, args ...any) *Conditions
func (*Conditions) And ¶
func (conditions *Conditions) And() *And
func (*Conditions) Equal ¶
func (conditions *Conditions) Equal(columnName string, arg any) *Conditions
func (*Conditions) GreaterThan ¶
func (conditions *Conditions) GreaterThan(columnName string, arg any) *Conditions
func (*Conditions) GreaterThanAndEqual ¶
func (conditions *Conditions) GreaterThanAndEqual(columnName string, arg any) *Conditions
func (*Conditions) In ¶
func (conditions *Conditions) In(columnName string, arg any) *Conditions
func (*Conditions) LessThan ¶
func (conditions *Conditions) LessThan(columnName string, arg any) *Conditions
func (*Conditions) LessThanAndEqual ¶
func (conditions *Conditions) LessThanAndEqual(columnName string, arg any) *Conditions
func (*Conditions) Like ¶
func (conditions *Conditions) Like(columnName string, arg string) *Conditions
func (*Conditions) Not ¶
func (conditions *Conditions) Not(columnName string, arg any) *Conditions
func (*Conditions) NotIn ¶
func (conditions *Conditions) NotIn(columnName string, arg any) *Conditions
func (*Conditions) Or ¶
func (conditions *Conditions) Or() *Or
type GroupBy ¶ added in v1.0.0
type GroupBy struct {
// contains filtered or unexported fields
}
func NewGroupBy ¶ added in v1.0.0
type OrderBy ¶ added in v1.0.0
type OrderBy struct {
// contains filtered or unexported fields
}
func NewOrderBy ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.