Skip to content

A maven plugin that takes SQL migration files as input and converts them to JOOQ readable SQL

License

Notifications You must be signed in to change notification settings

codemonstur/jooqpreprocessor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Release Maven Central MIT Licence

JOOQ preprocessor

Have been using this in production for some years now. It works great. The tool itself is highly opinionated though, it has been tuned to DB schema's that use the features I like. YMMV.

The jOOQ code generator is missing various features that prevents its use in a fully automated way. The standard workaround is to maintain two lists of SQL scripts; one for the DB to do the migration and one for the code generator to work on.

Alternatively you can try rewriting your migration scripts to be parsable by both. However there are some features that are really hard to get around because of limitations in the parser.

This preprocessor seeks to make development easier by taking the migration scripts and converting them to what the parser can handle. The parser can then operate on the reduced set of instructions.

Missing stuff

  • Cannot handle semicolons in column comments

About

A maven plugin that takes SQL migration files as input and converts them to JOOQ readable SQL

Resources

License

Stars

Watchers

Forks

Packages

No packages published