Java library for reading database schema
Asked Answered
T

2

9

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.

Thrush answered 22/6, 2010 at 7:3 Comment(0)
T
7

I have found an answer to my question, Apache DDLUtils. My question was really a duplicate of this one.

Thrush answered 22/6, 2010 at 8:15 Comment(0)
N
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.

Names answered 22/6, 2010 at 7:5 Comment(0)
T
7

I have found an answer to my question, Apache DDLUtils. My question was really a duplicate of this one.

Thrush answered 22/6, 2010 at 8:15 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.