DiffOutputControl diffOutputControl,
String snapshotTypes,
CompareControl.SchemaComparison[] schemaComparisons)
throws LiquibaseException, IOException, ParserConfigurationException {
DiffToChangeLogCommand command = new DiffToChangeLogCommand();
command.setReferenceDatabase(referenceDatabase)
.setTargetDatabase(targetDatabase)
.setSnapshotTypes(snapshotTypes)
.setCompareControl(new CompareControl(schemaComparisons, snapshotTypes))
.setOutputStream(System.out);
command.setChangeLogFile(changeLogFile)
.setDiffOutputControl(diffOutputControl);
try {
command.execute();
} catch (CommandExecutionException e) {
throw new LiquibaseException(e);
}
}