Documentation
¶
Index ¶
- func Count(ctx fns.Context, cond *Conditions, table Table) (v int, err errors.CodeError)
- func Delete(ctx fns.Context, row interface{}) (err errors.CodeError)
- func Exist(ctx fns.Context, cond *Conditions, table Table) (has bool, err errors.CodeError)
- func Insert(ctx fns.Context, row interface{}) (err errors.CodeError)
- func InsertOrUpdate(ctx fns.Context, row interface{}) (err errors.CodeError)
- func InsertWhenExist(ctx fns.Context, row interface{}, source Select) (err errors.CodeError)
- func InsertWhenNotExist(ctx fns.Context, row interface{}, source Select) (err errors.CodeError)
- func LitValue(v string) *lit
- func Modify(ctx fns.Context, row interface{}) (err errors.CodeError)
- func Query(ctx fns.Context, cond *Conditions, rows interface{}) (fetched bool, err errors.CodeError)
- func QueryDirect(ctx fns.Context, query string, args *sql.Tuple, rows interface{}) (fetched bool, err error)
- func QueryOne(ctx fns.Context, cond *Conditions, row interface{}) (fetched bool, err errors.CodeError)
- func QueryWithRange(ctx fns.Context, cond *Conditions, orders *Orders, rng *Range, ...) (fetched bool, err errors.CodeError)
- type Condition
- func Between(column string, left interface{}, right interface{}) *Condition
- func Eq(column string, value interface{}) *Condition
- func GT(column string, value interface{}) *Condition
- func GTE(column string, value interface{}) *Condition
- func IN(column string, value interface{}) *Condition
- func LT(column string, value interface{}) *Condition
- func LTE(column string, value interface{}) *Condition
- func Like(column string, value string) *Condition
- func LikeLeft(column string, value string) *Condition
- func LikeRight(column string, value string) *Condition
- func NotDeleted(deletedByColumnName string) *Condition
- func NotEq(column string, value interface{}) *Condition
- type Conditions
- type LoadMakeupHook
- type Order
- type Orders
- type PageInfo
- type Range
- type Select
- type Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertWhenExist ¶
func InsertWhenNotExist ¶
func QueryDirect ¶
func QueryWithRange ¶
Types ¶
type Condition ¶
func NotDeleted ¶
type Conditions ¶
type Conditions struct {
// contains filtered or unexported fields
}
func NewConditions ¶
func NewConditions(cond *Condition) *Conditions
func (*Conditions) And ¶
func (c *Conditions) And(v *Condition) *Conditions
func (*Conditions) AndConditions ¶
func (c *Conditions) AndConditions(v *Conditions) *Conditions
func (*Conditions) Or ¶
func (c *Conditions) Or(v *Condition) *Conditions
func (*Conditions) OrConditions ¶
func (c *Conditions) OrConditions(v *Conditions) *Conditions
func (*Conditions) QueryAndArguments ¶
func (c *Conditions) QueryAndArguments() (query string, args *sql.Tuple)
type LoadMakeupHook ¶ added in v0.10.2
Click to show internal directories.
Click to hide internal directories.