nop

package
v1.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDialect

func NewDialect(opts ...dao.Option) dao.Dialect

Types

type Migrator

type Migrator struct {
}

func (Migrator) AddColumn

func (m Migrator) AddColumn(dst interface{}, field string) error

func (Migrator) AlterColumn

func (m Migrator) AlterColumn(dst interface{}, field string) error

func (Migrator) AutoMigrate

func (m Migrator) AutoMigrate(dst ...interface{}) error

func (Migrator) ColumnTypes

func (m Migrator) ColumnTypes(dst interface{}) ([]dao.ColumnType, error)

func (Migrator) CreateConstraint

func (m Migrator) CreateConstraint(dst interface{}, name string) error

func (Migrator) CreateIndex

func (m Migrator) CreateIndex(dst interface{}, name string) error

func (Migrator) CreateTable

func (m Migrator) CreateTable(dst ...interface{}) error

func (Migrator) CreateView

func (m Migrator) CreateView(name string, option dao.ViewOption) error

func (Migrator) CurrentDatabase

func (m Migrator) CurrentDatabase() string

func (Migrator) DropColumn

func (m Migrator) DropColumn(dst interface{}, field string) error

func (Migrator) DropConstraint

func (m Migrator) DropConstraint(dst interface{}, name string) error

func (Migrator) DropIndex

func (m Migrator) DropIndex(dst interface{}, name string) error

func (Migrator) DropTable

func (m Migrator) DropTable(dst ...interface{}) error

func (Migrator) DropView

func (m Migrator) DropView(name string) error

func (Migrator) FullDataTypeOf

func (m Migrator) FullDataTypeOf(field *schema.Field) clause.Expr

func (Migrator) HasColumn

func (m Migrator) HasColumn(dst interface{}, field string) bool

func (Migrator) HasConstraint

func (m Migrator) HasConstraint(dst interface{}, name string) bool

func (Migrator) HasIndex

func (m Migrator) HasIndex(dst interface{}, name string) bool

func (Migrator) HasTable

func (m Migrator) HasTable(dst interface{}) bool

func (Migrator) MigrateColumn

func (m Migrator) MigrateColumn(dst interface{}, field *schema.Field, columnType dao.ColumnType) error

func (Migrator) RenameColumn

func (m Migrator) RenameColumn(dst interface{}, oldName, field string) error

func (Migrator) RenameIndex

func (m Migrator) RenameIndex(dst interface{}, oldName, newName string) error

func (Migrator) RenameTable

func (m Migrator) RenameTable(oldName, newName interface{}) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL