Question

I'd like to use JDBC to create tables in a database agnostic way. I'm pretty sure that Liquibase has solved this problem since it can take a generic createTable XML changeSet element and convert it into a database specific SQL DDL statement.

Can someone please tell me which liquibase classes / utililities are involved in converting a generic createTable changeSet into a database specific create table SQL script?. Sample usage (ie a test case) would be great.

Please note that I do not wish to invoke the entire liquibase pipeline. In particular I do NOT want the databasechangelog table.

Was it helpful?

Solution

I'd recommend reading the liquibase unit tests.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top