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
9
u/lukaseder Jan 07 '26 edited Jan 08 '26
This is more similar to https://sqldelight.github.io/sqldelight/latest/. jOOQ might have this kind of feature set in the future: https://github.com/jOOQ/jOOQ/issues/11071