Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{ DSN: "host=localhost user=test password=test dbname=migratordb sslmode=disable", MigrationPath: "migrations", MigrationType: MigrationSQL, }
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
DSN string
MigrationPath string
MigrationType MigrationType
}
type MigrationType ¶
type MigrationType int
const ( MigrationSQL MigrationType = iota MigrationGo )
func (*MigrationType) Set ¶
func (m *MigrationType) Set(value string) error
Set implements flag.Value.
func (*MigrationType) String ¶
func (m *MigrationType) String() string
String implements flag.Value.
Click to show internal directories.
Click to hide internal directories.