Versions in this module Expand all Collapse all v0 v0.0.9 Jan 24, 2024 Changes in this version type Join + func NewJoin() Join + func NewLeftJoin() Join + func ParseJoin(t string, on On) Join + func ParseLeftJoin(t string, on On) Join v0.0.8 Jan 31, 2023 v0.0.7 Jan 29, 2023 Changes in this version type Delete + func NewDelete(t string) *Delete type Insert + func NewInsert(t string) *Insert type Select + func NewSelect(t string) *Select type Update + func NewUpdate(t string) *Update v0.0.6 Oct 26, 2022 Changes in this version type Query + func ParseQuery(str string, args ...any) *Query v0.0.5 Apr 26, 2022 v0.0.4 Apr 24, 2022 v0.0.3 Apr 24, 2022 Changes in this version type Where + AndIf func(str string, arg interface{}) Where + OrIf func(str string, arg interface{}) Where v0.0.2 Feb 19, 2022 Changes in this version type OrderBy + func NewOrderBy() OrderBy v0.0.1 Feb 27, 2021 Changes in this version + func ASC(v bool) string + func DESC(v bool) string + type Binds map[string]string + func (b Binds) String() string + type Columns interface + Add func(...string) Columns + Len func() int + Reset func() + String func() string + func NewColumns() Columns + func ParseColumns(cols ...string) Columns + type Delete struct + Table string + Where Where + func (d *Delete) Args() (out []interface{}) + func (d *Delete) String() string + type GroupBy interface + func NewGroupBy() GroupBy + func ParseGroupBy(cols ...string) GroupBy + type H map[string]interface + func (v H) Keys() Keys + type Having interface + func MakeHaving(f func(having Having)) (out Having) + func NewHaving() Having + func ParseHaving(str string, args ...interface{}) Having + type Insert struct + IgnoreMode bool + OnUpdateKeys Keys + OnUpdateRawKeys RawKeys + Select Select + Table string + Values H + func (i *Insert) Args() (out []interface{}) + func (i *Insert) String() string + type Join struct + On On + Table string + Type string + func (j *Join) Args() (args []interface{}) + func (j *Join) String() string + type Joins []Join + func (j *Joins) Add(joins ...Join) *Joins + func (j Joins) Args() []interface{} + func (j Joins) Len() int + func (j Joins) String() string + type Keys []string + type On interface + func MakeOn(f func(o On)) On + func NewOn() On + func ParseOn(str string, args ...interface{}) On + type OrderBy interface + func ParseOrderBy(cols ...string) OrderBy + type Query struct + func NewQuery(str string, args []interface{}) *Query + func (q *Query) Args() []interface{} + func (q *Query) String() string + type RawKeys map[string]string + type Select struct + Columns Columns + GroupBy GroupBy + Having Having + Joins Joins + Limit uint64 + Offset uint64 + OrderBy OrderBy + Table string + Where Where + func (s *Select) Args() (out []interface{}) + func (s *Select) String() string + type Slicer interface + Len func() int + S func() []interface{} + type Update struct + Binds Binds + Joins Joins + Table string + Values H + Where Where + func (u *Update) Args() (out []interface{}) + func (u *Update) String() string + type Where interface + And func(str string, args ...interface{}) Where + AndIn func(col string, s Slicer) Where + AndNotIn func(col string, s Slicer) Where + AndWhere func(in ...Where) Where + Args func() []interface{} + Len func() int + Or func(str string, args ...interface{}) Where + OrIn func(col string, s Slicer) Where + OrNotIn func(col string, s Slicer) Where + OrWhere func(in ...Where) Where + String func() string + func MakeWhere(f func(w Where)) Where + func NewWhere() Where + func ParseWhere(str string, args ...interface{}) Where