Versions in this module Expand all Collapse all v1 v1.10.1 Nov 28, 2024 v1.10.0 Nov 28, 2024 Changes in this version + func RegisterDialect(driver string, dialect Dialect) + type Dialect interface + AlterTable func(stmt sqlstmt.Stmt, db, table, pk string, hasPk bool, info driver.Info, ...) (err error) + Connect func(opt *options.ConnectOptions) (connStr string) + CreateDatabase func(stmt sqlstmt.Stmt, db string, checkExists bool) + CreateIndexes func(stmt sqlstmt.Stmt, db, table string, idxs []indexes.Index, supportDesc bool) + CreateTable func(stmt sqlstmt.Stmt, db, table, pk string, info driver.Info, ...) (err error) + Delete func(stmt sqlstmt.Stmt, act *actions.DeleteActions) (err error) + DropColumn func(stmt sqlstmt.Stmt, db, table, column string) + DropDatabase func(stmt sqlstmt.Stmt, db string, checkExists bool) + DropIndexes func(stmt sqlstmt.Stmt, db, table string, idxs []string) + DropTable func(stmt sqlstmt.Stmt, db, table string, checkExists bool) + GetColumns func(stmt sqlstmt.Stmt, db, table string) + GetDatabases func(stmt sqlstmt.Stmt) + GetIndexes func(stmt sqlstmt.Stmt, db, table string) + GetVersion func(stmt sqlstmt.Stmt) + HasIndex func(stmt sqlstmt.Stmt, dbName, table string, idx indexes.Index) + HasIndexByName func(stmt sqlstmt.Stmt, db, table, indexName string) + HasPrimaryKey func(stmt sqlstmt.Stmt, db, table string) + HasTable func(stmt sqlstmt.Stmt, db, table string) + InsertInto func(stmt sqlstmt.Stmt, db, table, pk string, mapper reflext.StructMapper, ...) (err error) + RenameColumn func(stmt sqlstmt.Stmt, db, table, oldColName, newColName string) + RenameTable func(stmt sqlstmt.Stmt, db, oldName, newName string) + Replace func(stmt sqlstmt.Stmt, db, table string, columns []string, query *sql.SelectStmt) (err error) + Select func(stmt sqlstmt.Stmt, act *actions.FindActions, mode options.LockMode) (err error) + SelectStmt func(stmt sqlstmt.Stmt, query interface{}) (err error) + TruncateTable func(stmt sqlstmt.Stmt, db, table string) + Update func(stmt sqlstmt.Stmt, act *actions.UpdateActions) (err error) + UseDatabase func(stmt sqlstmt.Stmt, db string) + func GetDialectByDriver(driver string) Dialect + type SQLDialect interface + Format func(v interface{}) (val string) + Quote func(n string) string + TableName func(db, table string) string + Var func(i int) string