Documentation ¶
Index ¶
- func New() dbal.Grammar
- type MySQL
- func (grammarSQL MySQL) CompileInsertOrIgnore(query *dbal.Query, columns []interface{}, values [][]interface{}) (string, []interface{})
- func (grammarSQL MySQL) CompileLock(query *dbal.Query, lock interface{}) string
- func (grammarSQL MySQL) CompileSelect(query *dbal.Query) string
- func (grammarSQL MySQL) CompileSelectOffset(query *dbal.Query, offset *int) string
- func (grammarSQL MySQL) CompileUpsert(query *dbal.Query, columns []interface{}, values [][]interface{}, ...) (string, []interface{})
- func (grammarSQL MySQL) NewWith(db *sqlx.DB, config *dbal.Config, option *dbal.Option) (dbal.Grammar, error)
- func (grammarSQL MySQL) NewWithRead(write *sqlx.DB, writeConfig *dbal.Config, read *sqlx.DB, ...) (dbal.Grammar, error)
- func (grammarSQL MySQL) OnConnected() error
- type Quoter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MySQL ¶ added in v0.0.3
MySQL the MySQL Grammar
func (MySQL) CompileInsertOrIgnore ¶ added in v0.5.1
func (grammarSQL MySQL) CompileInsertOrIgnore(query *dbal.Query, columns []interface{}, values [][]interface{}) (string, []interface{})
CompileInsertOrIgnore Compile an insert ignore statement into SQL.
func (MySQL) CompileLock ¶ added in v0.5.1
CompileLock the lock into SQL.
func (MySQL) CompileSelect ¶ added in v0.5.1
CompileSelect Compile a select query into SQL.
func (MySQL) CompileSelectOffset ¶ added in v0.5.1
CompileSelectOffset Compile a select query into SQL.
func (MySQL) CompileUpsert ¶ added in v0.5.1
func (grammarSQL MySQL) CompileUpsert(query *dbal.Query, columns []interface{}, values [][]interface{}, uniqueBy []interface{}, updateValues interface{}) (string, []interface{})
CompileUpsert Upsert new records or update the existing ones.
func (MySQL) NewWith ¶ added in v0.0.3
func (grammarSQL MySQL) NewWith(db *sqlx.DB, config *dbal.Config, option *dbal.Option) (dbal.Grammar, error)
NewWith Create a new grammar interface, using the given *sqlx.DB, *dbal.Config and *dbal.Option.
func (MySQL) NewWithRead ¶ added in v0.5.1
func (grammarSQL MySQL) NewWithRead(write *sqlx.DB, writeConfig *dbal.Config, read *sqlx.DB, readConfig *dbal.Config, option *dbal.Option) (dbal.Grammar, error)
NewWithRead Create a new grammar interface, using the given *sqlx.DB, *dbal.Config and *dbal.Option.
func (MySQL) OnConnected ¶ added in v0.0.3
OnConnected the event will be triggered when db server was connected
Click to show internal directories.
Click to hide internal directories.