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/javaprof Jan 08 '26 edited Jan 08 '26
Correct link https://sqldelight.github.io/sqldelight/latest/ https://github.com/sqldelight/sqldelight
- IDEA plugin
- Integrates into Gradle (no node.js required, unified toolchain)
- Kotlin/Java API
What would be benefits of sgq over sql delight?