mysql

package
v0.0.0-...-60a21d4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() dbal.Grammar

Types

type MySQL

type MySQL struct {
	sql.SQL
}

func (MySQL) CompileInsertOrIgnore

func (grammarSQL MySQL) CompileInsertOrIgnore(query *dbal.Query, columns []interface{}, values [][]interface{}) (string, []interface{})

func (MySQL) CompileLock

func (grammarSQL MySQL) CompileLock(query *dbal.Query, lock interface{}) string

func (MySQL) CompileSelect

func (grammarSQL MySQL) CompileSelect(query *dbal.Query) string

func (MySQL) CompileSelectOffset

func (grammarSQL MySQL) CompileSelectOffset(query *dbal.Query, offset *int) string

func (MySQL) CompileUpsert

func (grammarSQL MySQL) CompileUpsert(query *dbal.Query, columns []interface{}, values [][]interface{}, uniqueBy []interface{}, updateValues interface{}) (string, []interface{})

func (MySQL) NewWith

func (grammarSQL MySQL) NewWith(db *sqlx.DB, config *dbal.Config, option *dbal.Option) (dbal.Grammar, error)

func (MySQL) NewWithRead

func (grammarSQL MySQL) NewWithRead(write *sqlx.DB, writeConfig *dbal.Config, read *sqlx.DB, readConfig *dbal.Config, option *dbal.Option) (dbal.Grammar, error)

func (MySQL) OnConnected

func (grammarSQL MySQL) OnConnected() error

type Quoter

type Quoter struct {
	sql.Quoter
}

func (*Quoter) ID

func (quoter *Quoter) ID(name string) string

func (*Quoter) VAL

func (quoter *Quoter) VAL(v interface{}) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL