Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java library for reading database schema

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.

like image 815
Marat Salikhov Avatar asked Jun 22 '10 07:06

Marat Salikhov


1 Answers

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.

like image 102
Rich Avatar answered Oct 15 '22 16:10

Rich