Package | Description |
---|---|
liquibase |
Liquibase top level namespace package.
|
liquibase.changelog | |
liquibase.changelog.visitor | |
liquibase.command | |
liquibase.command.core | |
liquibase.database | |
liquibase.diff | |
liquibase.exception | |
liquibase.integration.cdi | |
liquibase.integration.commandline | |
liquibase.integration.spring | |
liquibase.parser | |
liquibase.snapshot | |
liquibase.sqlgenerator.core | |
org.liquibase.maven.plugins |
Modifier and Type | Method and Description |
---|---|
CheckSum |
Liquibase.calculateCheckSum(String changeSetIdentifier) |
CheckSum |
Liquibase.calculateCheckSum(String filename,
String id,
String author) |
void |
Liquibase.changeLogSync(Contexts contexts)
Deprecated.
use version with LabelExpression
|
void |
Liquibase.changeLogSync(Contexts contexts,
LabelExpression labelExpression) |
void |
Liquibase.changeLogSync(Contexts contexts,
LabelExpression labelExpression,
Writer output) |
void |
Liquibase.changeLogSync(String contexts) |
void |
Liquibase.changeLogSync(String contexts,
Writer output) |
void |
Liquibase.checkLiquibaseTables(boolean updateExistingNullChecksums,
DatabaseChangeLog databaseChangeLog,
Contexts contexts,
LabelExpression labelExpression) |
void |
Liquibase.clearCheckSums()
Sets checksums to null so they will be repopulated next run
|
DiffResult |
Liquibase.diff(Database referenceDatabase,
Database targetDatabase,
CompareControl compareControl) |
protected void |
Liquibase.executeRollbackScript(String rollbackScript,
Contexts contexts,
LabelExpression labelExpression) |
void |
Liquibase.forceReleaseLocks() |
void |
Liquibase.futureRollbackSQL(Contexts contexts,
LabelExpression labelExpression,
Writer output) |
void |
Liquibase.futureRollbackSQL(Integer count,
Contexts contexts,
LabelExpression labelExpression,
Writer output) |
void |
Liquibase.futureRollbackSQL(Integer count,
Contexts contexts,
LabelExpression labelExpression,
Writer output,
boolean checkLiquibaseTables) |
protected void |
Liquibase.futureRollbackSQL(Integer count,
String tag,
Contexts contexts,
LabelExpression labelExpression,
Writer output) |
protected void |
Liquibase.futureRollbackSQL(Integer count,
String tag,
Contexts contexts,
LabelExpression labelExpression,
Writer output,
boolean checkLiquibaseTables) |
void |
Liquibase.futureRollbackSQL(Integer count,
String contexts,
Writer output) |
void |
Liquibase.futureRollbackSQL(Integer count,
String contexts,
Writer output,
boolean checkLiquibaseTables) |
void |
Liquibase.futureRollbackSQL(String tag,
Contexts contexts,
LabelExpression labelExpression,
Writer output) |
void |
Liquibase.futureRollbackSQL(String contexts,
Writer output) |
void |
Liquibase.futureRollbackSQL(String contexts,
Writer output,
boolean checkLiquibaseTables) |
void |
Liquibase.futureRollbackSQL(Writer output) |
void |
Liquibase.generateDocumentation(String outputDirectory) |
void |
Liquibase.generateDocumentation(String outputDirectory,
Contexts contexts,
LabelExpression labelExpression) |
void |
Liquibase.generateDocumentation(String outputDirectory,
String contexts) |
List<ChangeSetStatus> |
Liquibase.getChangeSetStatuses(Contexts contexts)
Deprecated.
use version with LabelExpression
|
List<ChangeSetStatus> |
Liquibase.getChangeSetStatuses(Contexts contexts,
LabelExpression labelExpression) |
List<ChangeSetStatus> |
Liquibase.getChangeSetStatuses(Contexts contexts,
LabelExpression labelExpression,
boolean checkLiquibaseTables)
Returns the ChangeSetStatuses of all changesets in the change log file and history in the order they
would be ran.
|
DatabaseChangeLog |
Liquibase.getDatabaseChangeLog() |
DatabaseChangeLogLock[] |
Liquibase.listLocks()
Display change log lock information.
|
Collection<RanChangeSet> |
Liquibase.listUnexpectedChangeSets(Contexts contexts,
LabelExpression labelExpression) |
Collection<RanChangeSet> |
Liquibase.listUnexpectedChangeSets(String contexts) |
List<ChangeSet> |
Liquibase.listUnrunChangeSets(Contexts contexts)
Deprecated.
use version with LabelExpression
|
List<ChangeSet> |
Liquibase.listUnrunChangeSets(Contexts contexts,
LabelExpression labels) |
List<ChangeSet> |
Liquibase.listUnrunChangeSets(Contexts contexts,
LabelExpression labels,
boolean checkLiquibaseTables) |
void |
Liquibase.markNextChangeSetRan(Contexts contexts,
LabelExpression labelExpression) |
void |
Liquibase.markNextChangeSetRan(Contexts contexts,
LabelExpression labelExpression,
Writer output) |
void |
Liquibase.markNextChangeSetRan(String contexts) |
void |
Liquibase.markNextChangeSetRan(String contexts,
Writer output) |
protected void |
Liquibase.removeRunStatus(ChangeLogIterator logIterator,
Contexts contexts,
LabelExpression labelExpression) |
void |
Liquibase.reportLocks(PrintStream out) |
void |
Liquibase.reportStatus(boolean verbose,
Contexts contexts,
LabelExpression labels,
Writer out) |
void |
Liquibase.reportStatus(boolean verbose,
Contexts contexts,
Writer out) |
void |
Liquibase.reportStatus(boolean verbose,
String contexts,
Writer out) |
void |
Liquibase.reportUnexpectedChangeSets(boolean verbose,
Contexts contexts,
LabelExpression labelExpression,
Writer out) |
void |
Liquibase.reportUnexpectedChangeSets(boolean verbose,
String contexts,
Writer out) |
void |
Liquibase.rollback(Date dateToRollBackTo,
Contexts contexts,
LabelExpression labelExpression) |
void |
Liquibase.rollback(Date dateToRollBackTo,
Contexts contexts,
LabelExpression labelExpression,
Writer output) |
void |
Liquibase.rollback(Date dateToRollBackTo,
String contexts) |
void |
Liquibase.rollback(Date dateToRollBackTo,
String rollbackScript,
Contexts contexts,
LabelExpression labelExpression) |
void |
Liquibase.rollback(Date dateToRollBackTo,
String rollbackScript,
Contexts contexts,
LabelExpression labelExpression,
Writer output) |
void |
Liquibase.rollback(Date dateToRollBackTo,
String rollbackScript,
String contexts) |
void |
Liquibase.rollback(Date dateToRollBackTo,
String rollbackScript,
String contexts,
Writer output) |
void |
Liquibase.rollback(Date dateToRollBackTo,
String contexts,
Writer output) |
void |
Liquibase.rollback(int changesToRollback,
Contexts contexts,
LabelExpression labelExpression) |
void |
Liquibase.rollback(int changesToRollback,
Contexts contexts,
LabelExpression labelExpression,
Writer output) |
void |
Liquibase.rollback(int changesToRollback,
Contexts contexts,
Writer output) |
void |
Liquibase.rollback(int changesToRollback,
String contexts) |
void |
Liquibase.rollback(int changesToRollback,
String rollbackScript,
Contexts contexts,
LabelExpression labelExpression) |
void |
Liquibase.rollback(int changesToRollback,
String rollbackScript,
Contexts contexts,
LabelExpression labelExpression,
Writer output) |
void |
Liquibase.rollback(int changesToRollback,
String rollbackScript,
Contexts contexts,
Writer output) |
void |
Liquibase.rollback(int changesToRollback,
String rollbackScript,
String contexts) |
void |
Liquibase.rollback(int changesToRollback,
String rollbackScript,
String contexts,
Writer output) |
void |
Liquibase.rollback(int changesToRollback,
String contexts,
Writer output) |
void |
Liquibase.rollback(String tagToRollBackTo,
Contexts contexts) |
void |
Liquibase.rollback(String tagToRollBackTo,
Contexts contexts,
LabelExpression labelExpression) |
void |
Liquibase.rollback(String tagToRollBackTo,
Contexts contexts,
LabelExpression labelExpression,
Writer output) |
void |
Liquibase.rollback(String tagToRollBackTo,
Contexts contexts,
Writer output) |
void |
Liquibase.rollback(String tagToRollBackTo,
String contexts) |
void |
Liquibase.rollback(String tagToRollBackTo,
String rollbackScript,
Contexts contexts) |
void |
Liquibase.rollback(String tagToRollBackTo,
String rollbackScript,
Contexts contexts,
LabelExpression labelExpression) |
void |
Liquibase.rollback(String tagToRollBackTo,
String rollbackScript,
Contexts contexts,
LabelExpression labelExpression,
Writer output) |
void |
Liquibase.rollback(String tagToRollBackTo,
String rollbackScript,
Contexts contexts,
Writer output) |
void |
Liquibase.rollback(String tagToRollBackTo,
String rollbackScript,
String contexts) |
void |
Liquibase.rollback(String tagToRollBackTo,
String rollbackScript,
String contexts,
Writer output) |
void |
Liquibase.rollback(String tagToRollBackTo,
String contexts,
Writer output) |
void |
Liquibase.tag(String tagString)
'Tags' the database for future rollback
|
boolean |
Liquibase.tagExists(String tagString) |
void |
Liquibase.update(Contexts contexts)
Executes Liquibase "update" logic which ensures that the configured
Database is up to date according to
the configured changelog file. |
void |
Liquibase.update(Contexts contexts,
LabelExpression labelExpression) |
void |
Liquibase.update(Contexts contexts,
LabelExpression labelExpression,
boolean checkLiquibaseTables) |
void |
Liquibase.update(Contexts contexts,
LabelExpression labelExpression,
Writer output) |
void |
Liquibase.update(Contexts contexts,
LabelExpression labelExpression,
Writer output,
boolean checkLiquibaseTables) |
void |
Liquibase.update(Contexts contexts,
Writer output) |
void |
Liquibase.update(int changesToApply,
Contexts contexts,
LabelExpression labelExpression) |
void |
Liquibase.update(int changesToApply,
Contexts contexts,
LabelExpression labelExpression,
Writer output) |
void |
Liquibase.update(int changesToApply,
String contexts) |
void |
Liquibase.update(int changesToApply,
String contexts,
Writer output) |
void |
Liquibase.update(String contexts)
Convience method for
Liquibase.update(Contexts) that constructs the Context object from the passed string. |
void |
Liquibase.update(String tag,
Contexts contexts) |
void |
Liquibase.update(String tag,
Contexts contexts,
LabelExpression labelExpression) |
void |
Liquibase.update(String tag,
Contexts contexts,
LabelExpression labelExpression,
Writer output) |
void |
Liquibase.update(String tag,
Contexts contexts,
Writer output) |
void |
Liquibase.update(String tag,
String contexts) |
void |
Liquibase.update(String tag,
String contexts,
Writer output) |
void |
Liquibase.update(String contexts,
Writer output) |
void |
Liquibase.updateTestingRollback(Contexts contexts,
LabelExpression labelExpression) |
void |
Liquibase.updateTestingRollback(String contexts) |
void |
Liquibase.updateTestingRollback(String tag,
Contexts contexts,
LabelExpression labelExpression) |
void |
Liquibase.validate()
Checks changelogs for bad MD5Sums and preconditions before attempting a migration
|
Constructor and Description |
---|
Liquibase(String changeLogFile,
ResourceAccessor resourceAccessor,
DatabaseConnection conn)
Creates a Liquibase instance for a given DatabaseConnection.
|
Modifier and Type | Method and Description |
---|---|
void |
ChangeLogHistoryService.clearAllCheckSums() |
void |
StandardChangeLogHistoryService.clearAllCheckSums() |
void |
OfflineChangeLogHistoryService.clearAllCheckSums() |
int |
ChangeLogHistoryService.getNextSequenceValue() |
int |
StandardChangeLogHistoryService.getNextSequenceValue() |
int |
OfflineChangeLogHistoryService.getNextSequenceValue() |
boolean |
DatabaseChangeLog.include(String fileName,
boolean isRelativePath,
ResourceAccessor resourceAccessor,
ContextExpression includeContexts,
boolean logEveryUnknownFileFormat) |
void |
ChangeLogIterator.run(ChangeSetVisitor visitor,
RuntimeEnvironment env) |
void |
DatabaseChangeLog.validate(Database database,
Contexts contexts,
LabelExpression labelExpression) |
void |
DatabaseChangeLog.validate(Database database,
String... contexts) |
Modifier and Type | Method and Description |
---|---|
protected ChangeSetStatus |
StatusVisitor.addStatus(ChangeSet changeSet,
DatabaseChangeLog databaseChangeLog,
Database database) |
void |
StatusVisitor.skipped(ChangeSet changeSet,
DatabaseChangeLog databaseChangeLog,
Database database,
Set<ChangeSetFilterResult> filterResults) |
void |
SkippedChangeSetVisitor.skipped(ChangeSet changeSet,
DatabaseChangeLog databaseChangeLog,
Database database,
Set<ChangeSetFilterResult> filterResults) |
void |
StatusVisitor.visit(ChangeSet changeSet,
DatabaseChangeLog databaseChangeLog,
Database database,
Set<ChangeSetFilterResult> filterResults) |
void |
ValidatingVisitor.visit(ChangeSet changeSet,
DatabaseChangeLog databaseChangeLog,
Database database,
Set<ChangeSetFilterResult> filterResults) |
void |
UpdateVisitor.visit(ChangeSet changeSet,
DatabaseChangeLog databaseChangeLog,
Database database,
Set<ChangeSetFilterResult> filterResults) |
void |
RollbackVisitor.visit(ChangeSet changeSet,
DatabaseChangeLog databaseChangeLog,
Database database,
Set<ChangeSetFilterResult> filterResults) |
void |
ListVisitor.visit(ChangeSet changeSet,
DatabaseChangeLog databaseChangeLog,
Database database,
Set<ChangeSetFilterResult> filterResults) |
void |
ExpectedChangesVisitor.visit(ChangeSet changeSet,
DatabaseChangeLog databaseChangeLog,
Database database,
Set<ChangeSetFilterResult> filterResults) |
void |
ChangeLogSyncVisitor.visit(ChangeSet changeSet,
DatabaseChangeLog databaseChangeLog,
Database database,
Set<ChangeSetFilterResult> filterResults) |
void |
DBDocVisitor.visit(ChangeSet changeSet,
DatabaseChangeLog databaseChangeLog,
Database database,
Set<ChangeSetFilterResult> filterResults) |
void |
ChangeSetVisitor.visit(ChangeSet changeSet,
DatabaseChangeLog databaseChangeLog,
Database database,
Set<ChangeSetFilterResult> filterResults) |
void |
DBDocVisitor.writeHTML(File rootOutputDir,
ResourceAccessor resourceAccessor) |
Constructor and Description |
---|
StatusVisitor(Database database) |
Modifier and Type | Method and Description |
---|---|
String |
CommandResult.print()
Return a string version of the result.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DropAllCommand.checkLiquibaseTables(boolean updateExistingNullChecksums,
DatabaseChangeLog databaseChangeLog,
Contexts contexts,
LabelExpression labelExpression) |
String |
SnapshotCommand.SnapshotCommandResult.print() |
Modifier and Type | Method and Description |
---|---|
void |
Database.dropDatabaseObjects(CatalogAndSchema schema)
Drops all objects in a specified schema.
|
void |
AbstractJdbcDatabase.dropDatabaseObjects(CatalogAndSchema schemaToDrop) |
void |
Database.execute(SqlStatement[] statements,
List<SqlVisitor> sqlVisitors) |
void |
AbstractJdbcDatabase.execute(SqlStatement[] statements,
List<SqlVisitor> sqlVisitors) |
void |
Database.executeRollbackStatements(Change change,
List<SqlVisitor> sqlVisitors) |
void |
AbstractJdbcDatabase.executeRollbackStatements(Change change,
List<SqlVisitor> sqlVisitors) |
void |
Database.executeRollbackStatements(SqlStatement[] statements,
List<SqlVisitor> sqlVisitors) |
void |
AbstractJdbcDatabase.executeRollbackStatements(SqlStatement[] statements,
List<SqlVisitor> sqlVisitors) |
void |
Database.executeStatements(Change change,
DatabaseChangeLog changeLog,
List<SqlVisitor> sqlVisitors) |
void |
AbstractJdbcDatabase.executeStatements(Change change,
DatabaseChangeLog changeLog,
List<SqlVisitor> sqlVisitors) |
void |
Database.saveRollbackStatement(Change change,
List<SqlVisitor> sqlVisitors,
Writer writer) |
void |
AbstractJdbcDatabase.saveRollbackStatement(Change change,
List<SqlVisitor> sqlVisitors,
Writer writer) |
void |
Database.saveStatements(Change change,
List<SqlVisitor> sqlVisitors,
Writer writer) |
Modifier and Type | Method and Description |
---|---|
DiffResult |
DiffGeneratorFactory.compare(Database referenceDatabase,
Database comparisonDatabase,
CompareControl compareControl) |
DiffResult |
DiffGeneratorFactory.compare(Database referenceDatabase,
Database comparisonDatabase,
SnapshotControl referenceSnapshotControl,
SnapshotControl comparisonSnapshotControl,
CompareControl compareControl) |
Modifier and Type | Class and Description |
---|---|
class |
ChangeLogParseException |
class |
ChangeNotFoundException |
class |
DatabaseException |
class |
DatabaseHistoryException |
class |
DuplicateChangeSetException |
class |
DuplicateStatementIdentifierException |
class |
InvalidChangeDefinitionException |
class |
LiquibaseParseException |
class |
LockException |
class |
MigrationFailedException |
class |
RollbackFailedException |
class |
RollbackImpossibleException
Thrown if a change is encountered that cannot be rolled back.
|
class |
SetupException
If there is an error with setting up a Change this Exception
will be thrown.
|
class |
StatementNotSupportedOnDatabaseException |
class |
UnknownChangelogFormatException |
class |
UnknownFormatException
Thrown by SnapshotParserFactory if it cannot find a parser for a given file format.
|
class |
ValidationFailedException |
Modifier and Type | Method and Description |
---|---|
protected Liquibase |
CDILiquibase.createLiquibase(Connection c) |
Modifier and Type | Method and Description |
---|---|
static void |
CommandLineUtils.doDiff(Database referenceDatabase,
Database targetDatabase,
String snapshotTypes) |
static void |
CommandLineUtils.doDiff(Database referenceDatabase,
Database targetDatabase,
String snapshotTypes,
CompareControl.SchemaComparison[] schemaComparisons) |
static void |
CommandLineUtils.doDiffToChangeLog(String changeLogFile,
Database referenceDatabase,
Database targetDatabase,
DiffOutputControl diffOutputControl,
ObjectChangeFilter objectChangeFilter,
String snapshotTypes) |
static void |
CommandLineUtils.doDiffToChangeLog(String changeLogFile,
Database referenceDatabase,
Database targetDatabase,
DiffOutputControl diffOutputControl,
ObjectChangeFilter objectChangeFilter,
String snapshotTypes,
CompareControl.SchemaComparison[] schemaComparisons) |
static void |
CommandLineUtils.doGenerateChangeLog(String changeLogFile,
Database originalDatabase,
CatalogAndSchema[] schemas,
String snapshotTypes,
String author,
String context,
String dataDir,
DiffOutputControl diffOutputControl) |
static void |
CommandLineUtils.doGenerateChangeLog(String changeLogFile,
Database originalDatabase,
String catalogName,
String schemaName,
String snapshotTypes,
String author,
String context,
String dataDir,
DiffOutputControl diffOutputControl) |
static int |
Main.run(String[] args)
Process the command line arguments and perform the appropriate main action (update, rollback etc.)
|
Modifier and Type | Method and Description |
---|---|
void |
SpringLiquibase.afterPropertiesSet()
Executed automatically when the bean is initialized.
|
protected Liquibase |
SpringLiquibase.createLiquibase(Connection c) |
protected void |
SpringLiquibase.performUpdate(Liquibase liquibase) |
Modifier and Type | Method and Description |
---|---|
ChangeLogParser |
ChangeLogParserFactory.getParser(String fileNameOrExtension,
ResourceAccessor resourceAccessor) |
SnapshotParser |
SnapshotParserFactory.getParser(String fileNameOrExtension,
ResourceAccessor resourceAccessor) |
Modifier and Type | Class and Description |
---|---|
class |
InvalidExampleException
Thrown if a descriptive example is not specific enough to perform a snapshot.
|
Modifier and Type | Method and Description |
---|---|
protected String |
InsertOrUpdateGeneratorMSSQL.getUpdateStatement(InsertOrUpdateStatement insertOrUpdateStatement,
Database database,
String whereClause,
SqlGeneratorChain sqlGeneratorChain) |
protected String |
InsertOrUpdateGeneratorMySQL.getUpdateStatement(InsertOrUpdateStatement insertOrUpdateStatement,
Database database,
String whereClause,
SqlGeneratorChain sqlGeneratorChain) |
protected String |
InsertOrUpdateGenerator.getUpdateStatement(InsertOrUpdateStatement insertOrUpdateStatement,
Database database,
String whereClause,
SqlGeneratorChain sqlGeneratorChain) |
Modifier and Type | Method and Description |
---|---|
protected void |
LiquibaseMigrate.doUpdate(Liquibase liquibase)
Deprecated.
|
protected void |
LiquibaseMigrateSQL.doUpdate(Liquibase liquibase)
Deprecated.
|
protected abstract void |
AbstractLiquibaseUpdateMojo.doUpdate(Liquibase liquibase)
Performs the actual "update" work on the database.
|
protected void |
LiquibaseUpdate.doUpdate(Liquibase liquibase) |
protected void |
LiquibaseUpdateTestingRollback.doUpdate(Liquibase liquibase) |
protected void |
LiquibaseUpdateSQL.doUpdate(Liquibase liquibase) |
static Connection |
MavenUtils.getDatabaseConnection(ClassLoader classLoader,
String driver,
String url,
String username,
String password) |
protected void |
LiquibaseChangeLogSyncSQLMojo.performLiquibaseTask(Liquibase liquibase) |
protected void |
LiquibaseChangeLogSyncMojo.performLiquibaseTask(Liquibase liquibase) |
protected void |
LiquibaseGenerateChangeLogMojo.performLiquibaseTask(Liquibase liquibase) |
protected void |
LiquibaseListLocksMojo.performLiquibaseTask(Liquibase liquibase) |
protected void |
LiquibaseRollbackSQL.performLiquibaseTask(Liquibase liquibase) |
protected void |
LiquibaseReportStatusMojo.performLiquibaseTask(Liquibase liquibase) |
protected void |
LiquibaseDBDocMojo.performLiquibaseTask(Liquibase liquibase) |
protected void |
AbstractLiquibaseUpdateMojo.performLiquibaseTask(Liquibase liquibase) |
protected void |
LiquibaseFutureRollbackSQL.performLiquibaseTask(Liquibase liquibase) |
protected void |
LiquibaseReleaseLocksMojo.performLiquibaseTask(Liquibase liquibase) |
protected void |
AbstractLiquibaseChangeLogMojo.performLiquibaseTask(Liquibase liquibase)
Performs the actual Liquibase task on the database using the fully configured
Liquibase . |
protected void |
LiquibaseTag.performLiquibaseTask(Liquibase liquibase) |
protected void |
LiquibaseDatabaseDiff.performLiquibaseTask(Liquibase liquibase) |
protected void |
LiquibaseClearChecksumsMojo.performLiquibaseTask(Liquibase liquibase) |
protected void |
LiquibaseDropAll.performLiquibaseTask(Liquibase liquibase) |
protected abstract void |
AbstractLiquibaseMojo.performLiquibaseTask(Liquibase liquibase) |
protected void |
LiquibaseRollback.performLiquibaseTask(Liquibase liquibase) |
Copyright © 2018 Liquibase.org. All rights reserved.