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
.
Asked
Active
Viewed 6,082 times
9

Marat Salikhov
- 6,367
- 4
- 32
- 35
2 Answers
10
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.

Rich
- 15,602
- 15
- 79
- 126
7
I have found an answer to my question, Apache DDLUtils. My question was really a duplicate of this one.

Community
- 1
- 1

Marat Salikhov
- 6,367
- 4
- 32
- 35