Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Migration ¶
type Migration struct { *migrate.Migrate // contains filtered or unexported fields }
func NewMigration ¶
func NewMigration(ctx context.Context, conf *MigrationConfig) *Migration
type MigrationConfig ¶
type MigrationConfig struct { // Source is the migration files source directory, Source string `long:"source" env:"SOURCE" description:"the migration files source directory" required:"true"` // URL is the migration database URL, URL string `long:"url" env:"URL" description:"the database url" required:"true"` }
Click to show internal directories.
Click to hide internal directories.