Versions in this module Expand all Collapse all v1 v1.0.17 Aug 3, 2021 Changes in this version + func Open(dsn string) gorm.Dialector + type Config struct + Conn *sql.DB + DSN string + PreferSimpleProtocol bool + type Dialector struct + func (Dialector) BindVarTo(writer clause.Writer, stmt *gorm.Statement, v interface{}) + func (Dialector) DefaultValueOf(field *schema.Field) clause.Expression + func (Dialector) Explain(sql string, vars ...interface{}) string + func (Dialector) Name() string + func (Dialector) QuoteTo(writer clause.Writer, str string) + func (Dialector) RollbackTo(tx *gorm.DB, name string) error + func (Dialector) SavePoint(tx *gorm.DB, name string) error + func (dialector Dialector) DataTypeOf(field *schema.Field) string + func (dialector Dialector) Initialize(db *gorm.DB) (err error) + func (dialector Dialector) Migrator(db *gorm.DB) gorm.Migrator + type Migrator struct + func (m Migrator) BuildIndexOptions(opts []schema.IndexOption, stmt *gorm.Statement) (results []interface{}) + func (m Migrator) CreateIndex(value interface{}, name string) error + func (m Migrator) CurrentDatabase() (name string) + func (m Migrator) DropIndex(value interface{}, name string) error + func (m Migrator) DropTable(values ...interface{}) 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) RenameIndex(value interface{}, oldName, newName string) error