Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Migrator ¶
type Migrator struct { ScriptDir string DBName string MongoClientOptions *options.ClientOptions // contains filtered or unexported fields }
func NewMigrator ¶
func NewMigrator(mongoClientOptions *options.ClientOptions, dbName, scriptDir string) (*Migrator, error)
NewMigrator creates a new Migrator instance
func (*Migrator) Down ¶
Down applies all down migrations in the scripts directory that have been applied
func (*Migrator) LatestVersion ¶
LatestVersion retrieves the latest applied migration version from the database
Click to show internal directories.
Click to hide internal directories.