New versions: Dev (3.15) | Latest (3.14) | 3.13 | 3.12

Interpreted meta data

Applies to ✅ Open Source Edition   ✅ Express Edition   ✅ Professional Edition   ✅ Enterprise Edition

jOOQ's parser is used by a DDL interpreter to create an alternative implementation of org.jooq.Meta based on your DDL scripts:

// Using strings:
         "create table a (i int);",
         "create table b (j int);",
         "create table c (k int);"
// Using the jOOQ API:
         createTable("a").columns("i", INTEGER),
         createTable("b").columns("j", INTEGER),
         createTable("c").columns("k", INTEGER)

The above prints all of the tables from the DDL scripts


All the meta data is available, including column names, types, constraints, etc.

DDL can be interpreted from strings or from org.jooq.Source, which represents any string providing source, including files, input streams, etc.

Exporting DDL

Any org.jooq.Meta implementation can be exported back to DDL statements (translated to any dialect!) using Meta.ddl()


Do you have any feedback about this page? We'd love to hear it!

The jOOQ Logo