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 ¶
type Migrator struct { }
func (Migrator) AlterColumn ¶
func (Migrator) AutoMigrate ¶
func (Migrator) ColumnTypes ¶
func (m Migrator) ColumnTypes(dst interface{}) ([]dao.ColumnType, error)
func (Migrator) CreateConstraint ¶
func (Migrator) CreateIndex ¶
func (Migrator) CreateTable ¶
func (Migrator) CreateView ¶
func (m Migrator) CreateView(name string, option dao.ViewOption) error
func (Migrator) CurrentDatabase ¶
func (Migrator) DropColumn ¶
func (Migrator) DropConstraint ¶
func (Migrator) HasConstraint ¶
func (Migrator) MigrateColumn ¶
func (Migrator) RenameColumn ¶
func (Migrator) RenameIndex ¶
func (Migrator) RenameTable ¶
Click to show internal directories.
Click to hide internal directories.