| Package | Description |
|---|---|
| net.ozwolf.mongo.migrations | |
| net.ozwolf.mongo.migrations.exception | |
| net.ozwolf.mongo.migrations.internal.dao | |
| net.ozwolf.mongo.migrations.internal.domain |
| Modifier and Type | Method and Description |
|---|---|
List<Migration> |
MongoTrekState.getApplied()
Get the list of successfully applied migrations
|
List<Migration> |
MongoTrekState.getFailed()
Get the list of migrations that have failed.
|
List<Migration> |
MongoTrekState.getMigrations()
Get the full list of migrations.
|
List<Migration> |
MongoTrekState.Pending.getMigrations()
The list of pending migrations
|
| Constructor and Description |
|---|
MongoTrekState(Collection<Migration> migrations) |
| Constructor and Description |
|---|
DuplicateVersionException(Migration migration) |
| Modifier and Type | Method and Description |
|---|---|
List<Migration> |
SchemaVersionDAO.findAll() |
List<Migration> |
DefaultSchemaVersionDAO.findAll() |
Optional<Migration> |
SchemaVersionDAO.findLastSuccessful() |
Optional<Migration> |
DefaultSchemaVersionDAO.findLastSuccessful() |
| Modifier and Type | Method and Description |
|---|---|
void |
SchemaVersionDAO.save(Migration migration) |
void |
DefaultSchemaVersionDAO.save(Migration migration) |
| Modifier and Type | Method and Description |
|---|---|
Migration |
Migration.assign(MigrationCommand command) |
Migration |
Migration.failed(Exception e) |
Migration |
Migration.running() |
Migration |
Migration.successful(org.bson.Document result) |
| Modifier and Type | Method and Description |
|---|---|
static Comparator<Migration> |
Migration.sortByVersionAscending() |
static Comparator<Migration> |
Migration.sortByVersionDescending() |
Copyright © 2020. All rights reserved.