Documentation ¶
Index ¶
- func New(dsn string) dbal.Grammar
- type Quoter
- func (quoter *Quoter) Bind(db *sqlx.DB, prefix string, dbRead ...*sqlx.DB) dbal.Quoter
- func (quoter *Quoter) Columnize(columns []interface{}) string
- func (quoter *Quoter) ID(value string) string
- func (quoter *Quoter) IsExpression(value interface{}) bool
- func (quoter *Quoter) Parameter(value interface{}, num int) string
- func (quoter *Quoter) Parameterize(values []interface{}, offset int) string
- func (quoter *Quoter) Read() dbal.Quoter
- func (quoter *Quoter) VAL(value interface{}) string
- func (quoter *Quoter) Wrap(value interface{}) string
- func (quoter *Quoter) WrapAliasedValue(value string) string
- func (quoter *Quoter) WrapTable(value interface{}) string
- func (quoter *Quoter) WrapUnion(sql string) string
- func (quoter *Quoter) Write() dbal.Quoter
- type SQL
- func (grammarSQL SQL) AlterTable(table *dbal.Table) error
- func (grammarSQL SQL) CompileAggregate(query *dbal.Query, aggregate dbal.Aggregate) string
- func (grammarSQL SQL) CompileColumns(query *dbal.Query, columns []interface{}, bindingOffset *int) string
- func (grammarSQL SQL) CompileDelete(query *dbal.Query) (string, []interface{})
- func (grammarSQL SQL) CompileExists(query *dbal.Query) string
- func (grammarSQL SQL) CompileFrom(query *dbal.Query, from dbal.From, bindingOffset *int) string
- func (grammarSQL SQL) CompileGroups(query *dbal.Query, groups []interface{}, bindingOffset *int) string
- func (grammarSQL SQL) CompileHaving(query *dbal.Query, having dbal.Having, bindingOffset *int) string
- func (grammarSQL SQL) CompileHavings(query *dbal.Query, havings []dbal.Having, bindingOffset *int) string
- func (grammarSQL SQL) CompileInsert(query *dbal.Query, columns []interface{}, values [][]interface{}) (string, []interface{})
- func (grammarSQL SQL) CompileInsertGetID(query *dbal.Query, columns []interface{}, values [][]interface{}, ...) (string, []interface{})
- func (grammarSQL SQL) CompileInsertOrIgnore(query *dbal.Query, columns []interface{}, values [][]interface{}) (string, []interface{})
- func (grammarSQL SQL) CompileInsertUsing(query *dbal.Query, columns []interface{}, sql string) string
- func (grammarSQL SQL) CompileJoins(query *dbal.Query, joins []dbal.Join, offset *int) string
- func (grammarSQL SQL) CompileLimit(query *dbal.Query, limit int, bindingOffset *int) string
- func (grammarSQL SQL) CompileLock(query *dbal.Query, lock interface{}) string
- func (grammarSQL SQL) CompileOffset(query *dbal.Query, offset int) string
- func (grammarSQL SQL) CompileOrders(query *dbal.Query, orders []dbal.Order, bindingOffset *int) string
- func (grammarSQL SQL) CompileSelect(query *dbal.Query) string
- func (grammarSQL SQL) CompileSelectOffset(query *dbal.Query, offset *int) string
- func (grammarSQL SQL) CompileSub(sub interface{}, offset *int) string
- func (grammarSQL SQL) CompileTruncate(query *dbal.Query) ([]string, [][]interface{})
- func (grammarSQL SQL) CompileUnion(query *dbal.Query, union dbal.Union, offset *int) string
- func (grammarSQL SQL) CompileUnionAggregate(query *dbal.Query) string
- func (grammarSQL SQL) CompileUnions(query *dbal.Query, unions []dbal.Union, offset *int) string
- func (grammarSQL SQL) CompileUpdate(query *dbal.Query, values map[string]interface{}) (string, []interface{})
- func (grammarSQL SQL) CompileUpdateColumns(query *dbal.Query, values map[string]interface{}, offset *int) (string, []interface{})
- func (grammarSQL SQL) CompileUpsert(query *dbal.Query, columns []interface{}, values [][]interface{}, ...) (string, []interface{})
- func (grammarSQL SQL) CompileWheres(query *dbal.Query, wheres []dbal.Where, bindingOffset *int) string
- func (grammarSQL SQL) CreateTable(table *dbal.Table) error
- func (grammarSQL SQL) DropTable(name string) error
- func (grammarSQL SQL) DropTableIfExists(name string) error
- func (grammarSQL SQL) ExecSQL(table *dbal.Table, sql string) error
- func (grammarSQL SQL) GetColumnListing(dbName string, tableName string) ([]*dbal.Column, error)
- func (grammarSQL SQL) GetDatabase() string
- func (grammarSQL SQL) GetDefaultValue(column *dbal.Column) string
- func (grammarSQL SQL) GetIndexListing(dbName string, tableName string) ([]*dbal.Index, error)
- func (grammarSQL SQL) GetOperators() []string
- func (grammarSQL SQL) GetSchema() string
- func (grammarSQL SQL) GetTable(name string) (*dbal.Table, error)
- func (grammarSQL SQL) GetTables() ([]string, error)
- func (grammarSQL SQL) GetTypeFromComment(comment *string) string
- func (grammarSQL SQL) GetVersion() (*dbal.Version, error)
- func (grammarSQL SQL) HavingBasic(query *dbal.Query, having dbal.Having, bindingOffset *int) string
- func (grammarSQL SQL) HavingBetween(query *dbal.Query, having dbal.Having, bindingOffset *int) string
- func (grammarSQL SQL) NewWith(db *sqlx.DB, config *dbal.Config, option *dbal.Option) (dbal.Grammar, error)
- func (grammarSQL SQL) NewWithRead(write *sqlx.DB, writeConfig *dbal.Config, read *sqlx.DB, ...) (dbal.Grammar, error)
- func (grammarSQL SQL) OnConnected() error
- func (grammarSQL SQL) ProcessInsertGetID(sql string, bindings []interface{}, sequence string) (int64, error)
- func (grammarSQL SQL) Raw(value string) dbal.Expression
- func (grammarSQL SQL) RemoveLeadingBoolean(value string) string
- func (grammarSQL SQL) RenameTable(old string, new string) error
- func (grammarSQL SQL) SQLAddColumn(column *dbal.Column) string
- func (grammarSQL SQL) SQLAddIndex(index *dbal.Index) string
- func (grammarSQL SQL) SQLAddPrimary(primary *dbal.Primary) string
- func (grammarSQL SQL) TableExists(name string) (bool, error)
- func (grammarSQL SQL) WhereBasic(query *dbal.Query, where dbal.Where, bindingOffset *int) string
- func (grammarSQL SQL) WhereBetween(query *dbal.Query, where dbal.Where, bindingOffset *int) string
- func (grammarSQL SQL) WhereColumn(query *dbal.Query, where dbal.Where, bindingOffset *int) string
- func (grammarSQL SQL) WhereDate(query *dbal.Query, where dbal.Where, bindingOffset *int) string
- func (grammarSQL SQL) WhereDateBased(typ string, query *dbal.Query, where dbal.Where, bindingOffset *int) string
- func (grammarSQL SQL) WhereDay(query *dbal.Query, where dbal.Where, bindingOffset *int) string
- func (grammarSQL SQL) WhereExists(query *dbal.Query, where dbal.Where, bindingOffset *int) string
- func (grammarSQL SQL) WhereIn(query *dbal.Query, where dbal.Where, bindingOffset *int) string
- func (grammarSQL SQL) WhereMonth(query *dbal.Query, where dbal.Where, bindingOffset *int) string
- func (grammarSQL SQL) WhereNested(query *dbal.Query, where dbal.Where, bindingOffset *int) string
- func (grammarSQL SQL) WhereNotnull(query *dbal.Query, where dbal.Where, bindingOffset *int) string
- func (grammarSQL SQL) WhereNull(query *dbal.Query, where dbal.Where, bindingOffset *int) string
- func (grammarSQL SQL) WhereRaw(query *dbal.Query, where dbal.Where, bindingOffset *int) string
- func (grammarSQL SQL) WhereSub(query *dbal.Query, where dbal.Where, bindingOffset *int) string
- func (grammarSQL SQL) WhereTime(query *dbal.Query, where dbal.Where, bindingOffset *int) string
- func (grammarSQL SQL) WhereYear(query *dbal.Query, where dbal.Where, bindingOffset *int) string
- func (grammarSQL SQL) Wrap(value interface{}) string
- func (grammarSQL SQL) WrapTable(value interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Quoter ¶
func (*Quoter) IsExpression ¶
func (*Quoter) Parameterize ¶
func (*Quoter) WrapAliasedValue ¶
type SQL ¶
type SQL struct { Driver string Mode string Types map[string]string FlipTypes map[string]string IndexTypes map[string]string DatabaseName string SchemaName string DB *sqlx.DB Config *dbal.Config Read *sqlx.DB ReadConfig *dbal.Config Option *dbal.Option dbal.Grammar dbal.Quoter }
func (SQL) CompileAggregate ¶
func (SQL) CompileColumns ¶
func (SQL) CompileDelete ¶
func (SQL) CompileFrom ¶
func (SQL) CompileGroups ¶
func (SQL) CompileHaving ¶
func (SQL) CompileHavings ¶
func (SQL) CompileInsert ¶
func (SQL) CompileInsertGetID ¶
func (SQL) CompileInsertOrIgnore ¶
func (SQL) CompileInsertUsing ¶
func (SQL) CompileJoins ¶
func (SQL) CompileLimit ¶
func (SQL) CompileLock ¶
func (SQL) CompileOffset ¶
func (SQL) CompileOrders ¶
func (SQL) CompileSelectOffset ¶
func (SQL) CompileSub ¶
func (SQL) CompileTruncate ¶
func (SQL) CompileUnion ¶
func (SQL) CompileUnionAggregate ¶
func (SQL) CompileUnions ¶
func (SQL) CompileUpdate ¶
func (SQL) CompileUpdateColumns ¶
func (SQL) CompileUpsert ¶
func (SQL) CompileWheres ¶
func (SQL) DropTableIfExists ¶
func (SQL) GetColumnListing ¶
func (SQL) GetDatabase ¶
func (SQL) GetIndexListing ¶
func (SQL) GetOperators ¶
func (SQL) GetTypeFromComment ¶
func (SQL) HavingBasic ¶
func (SQL) HavingBetween ¶
func (SQL) NewWithRead ¶
func (SQL) OnConnected ¶
func (SQL) ProcessInsertGetID ¶
func (SQL) RemoveLeadingBoolean ¶
func (SQL) WhereBasic ¶
func (SQL) WhereBetween ¶
func (SQL) WhereColumn ¶
func (SQL) WhereDateBased ¶
func (SQL) WhereExists ¶
func (SQL) WhereMonth ¶
func (SQL) WhereNested ¶
func (SQL) WhereNotnull ¶
Click to show internal directories.
Click to hide internal directories.