I'm looking for a lightweight, open source, more or less cross-database Java library that would allow me to read off metainformation on columns, tables and integrity constraints given a DataSource
.
Depends what you want to do afterwards of course, but if you just want to visualise an existing datatbase, I recommend SchemaSpy.
Of course, JDBC already lets you read metainformation, using Connection.getMetaData()
. This gives you a DatabaseMetaData instance.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With