Documentation ¶
Index ¶
- type JSONCommand
- type MongoMigration
- func (mm *MongoMigration) Run(ctx context.Context, directionValue int, stepsValue int) error
- func (mm *MongoMigration) RunSpecificFile(ctx context.Context, migrationFileName string, directionValue int) (interface{}, error)
- func (mm *MongoMigration) StartMigration(ctx context.Context, source string, client *mongo.Client, ...) error
- func (mm *MongoMigration) StartMigrationWithDriver(ctx context.Context, source string, driver driver.Driver, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONCommand ¶
type MongoMigration ¶
type MongoMigration struct { Source string Driver driver.Driver HistoryCollection history.MigrationHistory }
func (*MongoMigration) RunSpecificFile ¶
func (*MongoMigration) StartMigration ¶
func (mm *MongoMigration) StartMigration(ctx context.Context, source string, client *mongo.Client, cfg config.DatabaseConfig, historyCollection history.MigrationHistory) error
func (*MongoMigration) StartMigrationWithDriver ¶
func (mm *MongoMigration) StartMigrationWithDriver(ctx context.Context, source string, driver driver.Driver, historyCollection history.MigrationHistory) error
Click to show internal directories.
Click to hide internal directories.