Documentation ¶
Index ¶
- func NewDialect(opts ...dao.Option) dao.Dialect
- type Migrator
- func (m Migrator) AddColumn(dst interface{}, field string) error
- func (m Migrator) AlterColumn(dst interface{}, field string) error
- func (m Migrator) AutoMigrate(dst ...interface{}) error
- func (m Migrator) ColumnTypes(dst interface{}) ([]dao.ColumnType, error)
- func (m Migrator) CreateConstraint(dst interface{}, name string) error
- func (m Migrator) CreateIndex(dst interface{}, name string) error
- func (m Migrator) CreateTable(dst ...interface{}) error
- func (m Migrator) CreateView(name string, option dao.ViewOption) error
- func (m Migrator) CurrentDatabase() string
- func (m Migrator) DropColumn(dst interface{}, field string) error
- func (m Migrator) DropConstraint(dst interface{}, name string) error
- func (m Migrator) DropIndex(dst interface{}, name string) error
- func (m Migrator) DropTable(dst ...interface{}) error
- func (m Migrator) DropView(name string) error
- func (m Migrator) FullDataTypeOf(field *schema.Field) clause.Expr
- func (m Migrator) HasColumn(dst interface{}, field string) bool
- func (m Migrator) HasConstraint(dst interface{}, name string) bool
- func (m Migrator) HasIndex(dst interface{}, name string) bool
- func (m Migrator) HasTable(dst interface{}) bool
- func (m Migrator) MigrateColumn(dst interface{}, field *schema.Field, columnType dao.ColumnType) error
- func (m Migrator) RenameColumn(dst interface{}, oldName, field string) error
- func (m Migrator) RenameIndex(dst interface{}, oldName, newName string) error
- func (m Migrator) RenameTable(oldName, newName interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Migrator ¶ added in v0.15.2
type Migrator struct { }
func (Migrator) AlterColumn ¶ added in v0.15.2
func (Migrator) AutoMigrate ¶ added in v0.15.2
func (Migrator) ColumnTypes ¶ added in v0.15.2
func (m Migrator) ColumnTypes(dst interface{}) ([]dao.ColumnType, error)
func (Migrator) CreateConstraint ¶ added in v0.15.2
func (Migrator) CreateIndex ¶ added in v0.15.2
func (Migrator) CreateTable ¶ added in v0.15.2
func (Migrator) CreateView ¶ added in v0.15.2
func (m Migrator) CreateView(name string, option dao.ViewOption) error
func (Migrator) CurrentDatabase ¶ added in v0.15.2
func (Migrator) DropColumn ¶ added in v0.15.2
func (Migrator) DropConstraint ¶ added in v0.15.2
func (Migrator) FullDataTypeOf ¶ added in v0.15.2
func (Migrator) HasConstraint ¶ added in v0.15.2
func (Migrator) MigrateColumn ¶ added in v0.15.2
func (Migrator) RenameColumn ¶ added in v0.15.2
func (Migrator) RenameIndex ¶ added in v0.15.2
func (Migrator) RenameTable ¶ added in v0.15.2
Click to show internal directories.
Click to hide internal directories.