We have a jdbc.initScript property, which can be used to initialise a database prior to code generation:
https://www.jooq.org/doc/latest/manual/code-generation/codegen-system-properties/
This is very useful for quick tests, including MCVEs:
The feature has been introduced with 3.16:
Unfortunately, it can only run inline scripts, not scripts from the file system. Let's support reading scripts from the file system as well.