Class LiquibasePreparer
- java.lang.Object
-
- com.opentable.db.postgres.embedded.LiquibasePreparer
-
- All Implemented Interfaces:
DatabasePreparer
public final class LiquibasePreparer extends Object implements DatabasePreparer
Support for integrating Liquibase and performing a DB migration as part of the setup process. NB: OpenTable doesn't use Liquibase, so this is currently community supported code.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static LiquibasePreparer
forClasspathLocation(String location)
static LiquibasePreparer
forClasspathLocation(String location, liquibase.Contexts contexts)
int
hashCode()
void
prepare(DataSource ds)
-
-
-
Method Detail
-
forClasspathLocation
public static LiquibasePreparer forClasspathLocation(String location)
-
forClasspathLocation
public static LiquibasePreparer forClasspathLocation(String location, liquibase.Contexts contexts)
-
prepare
public void prepare(DataSource ds) throws SQLException
- Specified by:
prepare
in interfaceDatabasePreparer
- Throws:
SQLException
-
-