Closed mdewilde closed 6 years ago
Hi, why not using liquibase for that ?
@mdewilde Marceau, please read the SchemaCrawler website thoroughly, including reviewing the code on the code examples page. This will show you how to generate JSON. Just rename the output file with a .json
extension.
JSON is not the best way to create an in memory Java object model. You should look at the offline snapshots functionality for that.
If you need help, please see the consulting options.
We find ourselves with the following use case: we'd like to diff databases against a master schema. We have a variety of instances running on databases that are not mutually accessible, as they are located in different data centers behind firewalls. A variety of reasons make even SSH tunnelling impossible.
The intuitive approach seems be to generate the schema on one master database, and load and compare that schema as required elsewhere.
I envision using JSON for this, as writing and parsing JSON is well supported in Java.
I've not yet been able to create the JSON programmatically:
This ends with a syntax error. As noted above, it's not clear to me what command is expected.
My questions are this: