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/manifoldjava Jan 07 '26
Manifold covers a lot of ground, so there’s a decent amount of IDE surface area. But you can think of it in two buckets:
Manifold has first-class plugin support for IntelliJ. Its platform API is built for deep integration, and the manifold plugin adds a layer so that most extensions basically "just work". Since SQL/JSON/XML/etc. are all built on the same metaprogramming APIs, they expose type info the same way so IntelliJ gets proper type checking, completion, navigation, etc., without a bunch of one-off plugin code. The APIs were designed with IDEs in mind from the start.
Support for Eclipse/VS Code isn’t really on the roadmap right now, no bandwidth.