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") // ErrInvalidPing happened. ErrInvalidPing = errors.New("invalid ping") )
View Source
var Module = fx.Options( fx.Provide(NewMigrator), )
Module for fx.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Databases []*Database `yaml:"databases,omitempty" json:"databases,omitempty" toml:"databases,omitempty"`
}
Config for migrate.
type Database ¶
type Database struct { Name string `yaml:"name,omitempty" json:"name,omitempty" toml:"name,omitempty"` Source string `yaml:"source,omitempty" json:"source,omitempty" toml:"source,omitempty"` URL URL `yaml:"url,omitempty" json:"url,omitempty" toml:"url,omitempty"` }
Database for migrate.
Click to show internal directories.
Click to hide internal directories.