public final class FlywayPreparer extends Object implements DatabasePreparer
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static FlywayPreparer |
forClasspathLocation(String... locations)
Creates a new instance of the preparer with the specified locations of migrations.
|
static FlywayPreparer |
fromConfiguration(Map<String,String> configuration)
Creates a new instance of the preparer with the specified configuration properties.
|
int |
hashCode() |
void |
prepare(DataSource ds) |
public static FlywayPreparer forClasspathLocation(String... locations)
public static FlywayPreparer fromConfiguration(Map<String,String> configuration)
Example of use:
FlywayPreparer preparer = FlywayPreparer.fromConfiguration(Map.of(
"flyway.locations", "db/migration",
"flyway.postgresql.transactional.lock", "false"));
A list of all available configuration properties can be found here.public void prepare(DataSource ds) throws SQLException
prepare in interface DatabasePreparerSQLExceptionCopyright © 2023. All rights reserved.