M
M
Maxim2015-02-21 19:00:41
Java
Maxim, 2015-02-21 19:00:41

Is there a library to generate DDL based on databasemetadata?

You need to get the DDL of objects (tables, views, procedures, etc.) from the corresponding JDBC driver. It is desirable that you still be able to set the template itself,
for example like this:

CREATE TABLE $table_name (
  {for $column in $table_name.columns}
  $column.name $column.type $column.constraints,
...
)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2015-02-21
@mgramin

It looks like SchemaCrawler is what you need, there are even templates on Velocity.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question