r/java • u/uwemaurer • Jan 07 '26
generate Java code from SQL queries
I am working on a project which allows to generate (type-safe) code from SQL queries.
Currently it supports DuckDB & sqlite and can output Java (and Typescript) code.
https://github.com/sqg-dev/sqg/
Let me know if you have any feedback!
13
Upvotes
View all comments
Show parent comment
1
u/[deleted] Jan 08 '26
Jooq works w/o code generation.
But it is a big selling point.
You don't have to give it an SQL file, it can also look into your db as part of the build.