package mysql
Import Path
gorm.io/driver/mysql (on go.dev )
Dependency Relation
imports 12 packages , and imported by one package
Involved Source Files
migrator.go
mysql.go
update_with_order_by_limit.go
Exported Type Names
type
Migrator (struct)
Exported Fields (12)
Dialector Dialector
Dialector .Config .Conn gorm .ConnPool
Dialector .Config .DSN string
Dialector .Config .DefaultStringSize uint
Dialector .Config .DisableDatetimePrecision bool
Dialector .Config .DontSupportRenameColumn bool
Dialector .Config .DontSupportRenameIndex bool
Dialector .Config .DriverName string
Dialector .Config .SkipInitializeWithVersion bool
Migrator migrator .Migrator
Migrator .Config .CreateIndexAfterCreateTable bool
Migrator .Config .DB *gorm .DB
Exported Methods (36)
(T) AddColumn (value interface{}, field string ) error
(T) AlterColumn (value interface{}, field string ) error
(T) AutoMigrate (values ...interface{}) error
(T) BindVarTo (writer clause .Writer , stmt *gorm .Statement , v interface{})
(T) BuildIndexOptions (opts []schema .IndexOption , stmt *gorm .Statement ) (results []interface{})
(T) ClauseBuilders () map[string ]clause .ClauseBuilder
(T) ColumnTypes (value interface{}) (columnTypes []gorm .ColumnType , err error )
(T) CreateConstraint (value interface{}, name string ) error
(T) CreateIndex (value interface{}, name string ) error
(T) CreateTable (values ...interface{}) error
(T) CreateView (name string , option gorm .ViewOption ) error
(T) CurrentDatabase () (name string )
(T) CurrentTable (stmt *gorm .Statement ) interface{}
(T) DefaultValueOf (field *schema .Field ) clause .Expression
(T) DropColumn (value interface{}, name string ) error
(T) DropConstraint (value interface{}, name string ) error
(T) DropIndex (value interface{}, name string ) error
(T) DropTable (values ...interface{}) error
(T) DropView (name string ) error
(T) Explain (sql string , vars ...interface{}) string
(T) FullDataTypeOf (field *schema .Field ) clause .Expr
(T) HasColumn (value interface{}, field string ) bool
(T) HasConstraint (value interface{}, name string ) bool
(T) HasIndex (value interface{}, name string ) bool
(T) HasTable (value interface{}) bool
(T) Initialize (db *gorm .DB ) (err error )
(T) MigrateColumn (value interface{}, field *schema .Field , columnType gorm .ColumnType ) error
(T) Name () string
(T) QuoteTo (writer clause .Writer , str string )
(T) RenameColumn (value interface{}, oldName, newName string ) error
(T) RenameIndex (value interface{}, oldName, newName string ) error
(T) RenameTable (oldName, newName interface{}) error
(T) ReorderModels (values []interface{}, autoAdd bool ) (results []interface{})
(T) RollbackTo (tx *gorm .DB , name string ) error
(T) RunWithValue (value interface{}, fc func(*gorm .Statement ) error ) error
(T) SavePoint (tx *gorm .DB , name string ) error
Implements (4+)
T : gorm.io/gorm.Migrator
T : gorm.io/gorm.Plugin
T : gorm.io/gorm.SavePointerDialectorInterface
T : gorm.io/gorm/migrator.BuildIndexOptionsInterface
Exported Values
The pages are generated with Golds v0.1.6 . (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project and developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds .