Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidConfig for source or db. ErrInvalidConfig = errors.New("invalid config") // ErrInvalidMigration happened. ErrInvalidMigration = errors.New("invalid migration") )
Functions ¶
func NewMigrator ¶ added in v1.3.0
func NewMigrator(tracer opentracing.Tracer) migrator.Migrator
NewMigrator for databases.
Types ¶
type Config ¶
type Config struct {
Databases []Database `yaml:"databases" json:"databases" toml:"databases"`
}
Config for migrate.
type Database ¶
type Database struct { Name string `yaml:"name" json:"name" toml:"name"` Source string `yaml:"source" json:"source" toml:"source"` URL string `yaml:"url" json:"url" toml:"url"` }
Database for migrate.
Click to show internal directories.
Click to hide internal directories.