Documentation ¶
Index ¶
- func FormatValue(field string) string
- func String(s SqlInterface) string
- type Batch
- type Delete
- type Having
- func (w *Having) Args() []interface{}
- func (w *Having) Between(field string, from interface{}, to interface{}) *Having
- func (w *Having) Eq(field string, value interface{}) *Having
- func (w *Having) Ge(field string, value interface{}) *Having
- func (w *Having) Gt(field string, value interface{}) *Having
- func (w *Having) In(field string, value []interface{}) *Having
- func (w *Having) IsNotNull(field string) *Having
- func (w *Having) IsNull(field string) *Having
- func (w *Having) Le(field string, value interface{}) *Having
- func (w *Having) Like(field string, value interface{}) *Having
- func (w *Having) Lt(field string, value interface{}) *Having
- func (w *Having) Neq(field string, value interface{}) *Having
- func (w *Having) NotIn(field string, value []interface{}) *Having
- func (w *Having) OrPrepare() string
- func (w *Having) Prepare() string
- func (w *Having) Statement(statement string) *Having
- func (w *Having) String() string
- type Insert
- type Select
- func (s *Select) Args() []interface{}
- func (s *Select) Columns(columns ...string) *Select
- func (s *Select) ForUpdate() *Select
- func (s *Select) Group(groups ...string) *Select
- func (s *Select) Having(having *Having) *Select
- func (s *Select) InnerJoin(table string, alias string, on string, columns ...string) *Select
- func (s *Select) LeftJoin(table string, alias string, on string, columns ...string) *Select
- func (s *Select) Limit(size int) *Select
- func (s *Select) Offset(offset int) *Select
- func (s *Select) OrWhere(where *Where) *Select
- func (s *Select) Order(orders ...string) *Select
- func (s *Select) Prepare() string
- func (s *Select) RightJoin(table string, alias string, on string, columns ...string) *Select
- func (s *Select) String() string
- func (s *Select) Where(where *Where) *Select
- func (s *Select) WhereByList(where []string) *Select
- func (s *Select) WhereByMap(where map[string]interface{}) *Select
- type SqlInterface
- type Update
- func (u *Update) Args() []interface{}
- func (u *Update) Prepare() string
- func (u *Update) Set(field string, value interface{}) *Update
- func (u *Update) String() string
- func (u *Update) Where(w *Where) *Update
- func (u *Update) WhereByList(where []string) *Update
- func (u *Update) WhereByMap(where map[string]interface{}) *Update
- type Where
- func (w *Where) Args() []interface{}
- func (w *Where) Between(field string, from interface{}, to interface{}) *Where
- func (w *Where) Eq(field string, value interface{}) *Where
- func (w *Where) Ge(field string, value interface{}) *Where
- func (w *Where) Gt(field string, value interface{}) *Where
- func (w *Where) In(field string, value []interface{}) *Where
- func (w *Where) IsNotNull(field string) *Where
- func (w *Where) IsNull(field string) *Where
- func (w *Where) Le(field string, value interface{}) *Where
- func (w *Where) Like(field string, value interface{}) *Where
- func (w *Where) Lt(field string, value interface{}) *Where
- func (w *Where) Neq(field string, value interface{}) *Where
- func (w *Where) NotIn(field string, value []interface{}) *Where
- func (w *Where) OrPrepare() string
- func (w *Where) Prepare() string
- func (w *Where) Statement(statement string) *Where
- func (w *Where) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatValue ¶ added in v0.0.3
func String ¶
func String(s SqlInterface) string
Types ¶
type Delete ¶
type Delete struct {
// contains filtered or unexported fields
}
func NewCkDelete ¶ added in v0.0.3
func (*Delete) WhereByList ¶
func (*Delete) WhereByMap ¶
type Having ¶
type Having struct {
// contains filtered or unexported fields
}
type Insert ¶
type Insert struct {
// contains filtered or unexported fields
}
func (*Insert) ParseValue ¶ added in v0.0.3
type Select ¶
type Select struct {
// contains filtered or unexported fields
}
func (*Select) WhereByList ¶
func (*Select) WhereByMap ¶
type SqlInterface ¶
type Update ¶
type Update struct {
// contains filtered or unexported fields
}
func NewCkUpdate ¶ added in v0.0.3
func (*Update) WhereByList ¶
func (*Update) WhereByMap ¶
Click to show internal directories.
Click to hide internal directories.