Versions in this module Expand all Collapse all v4 v4.0.0 May 2, 2020 Changes in this version + var DefaultDialect = MySQL + var MySQL mysql.Dialect + var Postgres postgres.Dialect + var SQLite mysql.Dialect + type DeleteStatement struct + func Delete() DeleteStatement + func (s DeleteStatement) Build() (query string, args []interface{}) + func (s DeleteStatement) Dialect(dialect Dialect) DeleteStatement + func (s DeleteStatement) From(table string) DeleteStatement + func (s DeleteStatement) Where(cond string, args ...interface{}) DeleteStatement + type Dialect interface + Placeholder func(idx int) string + type InsertStatement struct + func Insert() InsertStatement + func (s InsertStatement) Build() (query string, args []interface{}, dest []interface{}) + func (s InsertStatement) Dialect(dialect Dialect) InsertStatement + func (s InsertStatement) Into(table string) InsertStatement + func (s InsertStatement) Return(col string, dest interface{}) InsertStatement + func (s InsertStatement) Set(col string, val interface{}) InsertStatement + func (s InsertStatement) SetSQL(col, sql string) InsertStatement + type SelectStatement struct + func Select() SelectStatement + func (s SelectStatement) Build() (query string, args []interface{}, dest []interface{}) + func (s SelectStatement) Dialect(dialect Dialect) SelectStatement + func (s SelectStatement) From(table string) SelectStatement + func (s SelectStatement) Group(group string) SelectStatement + func (s SelectStatement) Having(having string) SelectStatement + func (s SelectStatement) Join(sql string, args ...interface{}) SelectStatement + func (s SelectStatement) Limit(limit int) SelectStatement + func (s SelectStatement) Lock() SelectStatement + func (s SelectStatement) Map(col string, dest interface{}) SelectStatement + func (s SelectStatement) Offset(offset int) SelectStatement + func (s SelectStatement) Order(order string) SelectStatement + func (s SelectStatement) Where(cond string, args ...interface{}) SelectStatement + type UpdateStatement struct + func Update() UpdateStatement + func (s UpdateStatement) Build() (query string, args []interface{}) + func (s UpdateStatement) Dialect(dialect Dialect) UpdateStatement + func (s UpdateStatement) Set(col string, val interface{}) UpdateStatement + func (s UpdateStatement) SetSQL(col string, sql string) UpdateStatement + func (s UpdateStatement) Table(table string) UpdateStatement + func (s UpdateStatement) Where(cond string, args ...interface{}) UpdateStatement Other modules containing this package github.com/thcyron/sqlbuilder