Versions in this module Expand all Collapse all v1 v1.2.5 Aug 29, 2022 Changes in this version + func New(config Config) gorm.Dialector + func Open(dsn string) gorm.Dialector + type Config struct + Conn gorm.ConnPool + DSN string + DriverName string + PreferSimpleProtocol bool + WithoutReturning bool + type Dialector struct + func (dialectopr Dialector) RollbackTo(tx *gorm.DB, name string) error + func (dialectopr Dialector) SavePoint(tx *gorm.DB, name string) error + func (dialector Dialector) BindVarTo(writer clause.Writer, stmt *gorm.Statement, v interface{}) + func (dialector Dialector) DataTypeOf(field *schema.Field) string + func (dialector Dialector) DefaultValueOf(field *schema.Field) clause.Expression + func (dialector Dialector) Explain(sql string, vars ...interface{}) string + func (dialector Dialector) Initialize(db *gorm.DB) (err error) + func (dialector Dialector) Migrator(db *gorm.DB) gorm.Migrator + func (dialector Dialector) Name() string + func (dialector Dialector) QuoteTo(writer clause.Writer, str string) + type Index struct + ColumnName string + IndexName string + NonUnique bool + Primary bool + TableName string + type Migrator struct + func (m Migrator) AddColumn(value interface{}, field string) error + func (m Migrator) AlterColumn(value interface{}, field string) error + func (m Migrator) BuildIndexOptions(opts []schema.IndexOption, stmt *gorm.Statement) (results []interface{}) + func (m Migrator) ColumnTypes(value interface{}) (columnTypes []gorm.ColumnType, err error) + func (m Migrator) CreateIndex(value interface{}, name string) error + func (m Migrator) CreateSequence(tx *gorm.DB, stmt *gorm.Statement, field *schema.Field, ...) (err error) + func (m Migrator) CreateTable(values ...interface{}) (err error) + func (m Migrator) CurrentDatabase() (name string) + func (m Migrator) CurrentSchema(stmt *gorm.Statement, table string) (interface{}, interface{}) + func (m Migrator) DeleteSequence(tx *gorm.DB, stmt *gorm.Statement, field *schema.Field, fileType clause.Expr) (err error) + func (m Migrator) DropIndex(value interface{}, name string) error + func (m Migrator) DropTable(values ...interface{}) error + func (m Migrator) GetIndexes(value interface{}) ([]gorm.Index, error) + func (m Migrator) GetRows(currentSchema interface{}, table interface{}) (*sql.Rows, error) + func (m Migrator) GetTables() (tableList []string, err error) + func (m Migrator) HasColumn(value interface{}, field string) bool + func (m Migrator) HasConstraint(value interface{}, name string) bool + func (m Migrator) HasIndex(value interface{}, name string) bool + func (m Migrator) HasTable(value interface{}) bool + func (m Migrator) MigrateColumn(value interface{}, field *schema.Field, columnType gorm.ColumnType) error + func (m Migrator) RenameIndex(value interface{}, oldName, newName string) error + func (m Migrator) UpdateSequence(tx *gorm.DB, stmt *gorm.Statement, field *schema.Field, ...) (err error)