Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MigrationDirectionValues = []MigrationDirection{ MigrationDirectionUp, MigrationDirectionDown, }
View Source
var MigrationFileTypeValues = []MigrationFileType{ MigrationFileTypeChange, MigrationFileTypeClassic, }
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver string
func (Driver) PackageName ¶
func (Driver) PackagePath ¶
func (Driver) PackageSchemaPath ¶
func (Driver) StructName ¶
type MIGConfig ¶
type MIGConfig struct { RootDSN string `yaml:"root_dsn"` JSON bool `yaml:"json"` MigrationFolder string `yaml:"migration_folder"` Package string `yaml:"package"` SchemaVersionTable string `yaml:"schema_version_table"` ShellPath string `yaml:"shell_path"` Verbose bool `yaml:"verbose"` MIGFolderPath string `yaml:"mig_folder"` }
type MigrationDirection ¶
type MigrationDirection string
const ( MigrationDirectionUp MigrationDirection = "UP" MigrationDirectionDown MigrationDirection = "DOWN" // MigrationDirectionNotReversible is used to indicate that the migration is reversed or is in a down type. // This is used to avoid infinite loop when executing a migration. // This is not a real migration direction. DO NOT ADD IT TO MigrationDirectionValues. MigrationDirectionNotReversible MigrationDirection = "NOT_REVERSIBLE" )
func (MigrationDirection) IsValid ¶
func (m MigrationDirection) IsValid() bool
func (MigrationDirection) String ¶
func (m MigrationDirection) String() string
type MigrationFileType ¶
type MigrationFileType string
const ( MigrationFileTypeChange MigrationFileType = "change" MigrationFileTypeClassic MigrationFileType = "classic" MigrationFileTypeSQL MigrationFileType = "sql" )
func (MigrationFileType) IsValid ¶
func (m MigrationFileType) IsValid() bool
func (MigrationFileType) String ¶
func (m MigrationFileType) String() string
Click to show internal directories.
Click to hide internal directories.