Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Generate SQL from ChangeLog using API and being Offline

$
0
0
Hello,

I am trying to merely convert ChangeLog into an SQL file using the Java API. I tried something like:
  1. Database database = DatabaseFactory.getInstance()
  2.   .findCorrectDatabaseImplementation(new OfflineConnection("offline:oracle"));
  3. Liquibase liquibase = new Liquibase("changeLog.xml", resourceAccessor, database);
  4. liquibase.update(new Contexts(), writer);

But I get on the very first line:

  1. liquibase.exception.UnexpectedLiquibaseException: java.lang.NoSuchMethodException: liquibase.database.OfflineConnection.getWrappedConnection()
  2.     at liquibase.database.core.OracleDatabase.setConnection(OracleDatabase.java:62)
  3.     at liquibase.database.DatabaseFactory.findCorrectDatabaseImplementation(DatabaseFactory.java:123)

What I did miss? Where could I find an example of code to do that?

Thanks for your help,

Gérald


Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>