dataflex

package
v0.0.0-...-171ef7a Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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) Baseline

func (driver *Driver) Baseline(version uint64) error

func (*Driver) Close

func (driver *Driver) Close() error

func (*Driver) FilenameExtension

func (driver *Driver) FilenameExtension() string

func (*Driver) Initialize

func (driver *Driver) Initialize(url string) error

func (*Driver) Migrate

func (driver *Driver) Migrate(ctx context.Context, f file.File, log driver.Logger) error

func (*Driver) Version

func (driver *Driver) Version() (uint64, error)

type FieldMigration

type FieldMigration struct {
	TableName string
	Action    string
	To        df32.Field
	df32.Field
}

type IndexMigration

type IndexMigration struct {
	df32.Index `json:",inline"`
	Action     string
}

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
}

Jump to

Keyboard shortcuts

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