Documentation
¶
Index ¶
- func GenerateIntermediateFile(migration TableMigration, drv *df32.MSSQLDRV) (df32.IntermediateFile, error)
- func GenerateTableMigrationScript(migration TableMigration, g df32.SQLGenerator) ([]string, error)
- type Driver
- func (driver *Driver) Baseline(version uint64) error
- func (driver *Driver) Close() error
- func (driver *Driver) FilenameExtension() string
- func (driver *Driver) Initialize(url string) error
- func (driver *Driver) Migrate(ctx context.Context, f file.File, log driver.Logger) error
- func (driver *Driver) Version() (uint64, error)
- type FieldMigration
- type IndexMigration
- type Migration
- type TableMigration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateIntermediateFile ¶
func GenerateIntermediateFile(migration TableMigration, drv *df32.MSSQLDRV) (df32.IntermediateFile, error)
func GenerateTableMigrationScript ¶
func GenerateTableMigrationScript(migration TableMigration, g df32.SQLGenerator) ([]string, error)
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
func (*Driver) FilenameExtension ¶
func (*Driver) Initialize ¶
type FieldMigration ¶
type IndexMigration ¶
type Migration ¶
type Migration struct { Tables []TableMigration SQL string Programs []string }
type TableMigration ¶
type TableMigration struct { df32.Table `json:",inline"` Action string Fields []FieldMigration Indexes []IndexMigration }
Click to show internal directories.
Click to hide internal directories.