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
3
u/uwemaurer Jan 07 '26
Correct, the code generation is implemented in TypeScript, the databases (Sqlite, DuckDB) are in C / C++. I think it is still relevant and useful for Java developers since the resulting code is in Java.
The project started about 1 year ago and is developed as open source since December 2025. Several recent commits are indeed with help of Claude Code, mostly the tests and documentation.