sqldelight
sqldelight copied to clipboard
Expose CLI API from compiler
So that it can be used standalone (e.g., from Bazel) without the need for writing extra Java
working-kotlin branch tracking this via SqlDelightEnvironment
Pinging to reopen this, as it has become a blocker on doing some things with Bazel. I'll work up an internal version of the tooling, and figure out what parts of it we want to upstream.
Any updates on this?
I think it's safe to say we have no plans to work on this and it will need to be contributed
I'll probably upstream a variant in Q4. We are using such a wrapper in our bazel rules. I'll likely also upstream a bazel rule that consumes it.
Thanks @cgruber, I'm mainly interested in this due to Bazel so that's great to hear.
Is this task about creating a fat-jar which exposes CLI api so that we will be able to run something like java -jar compiler.jar src/main/sqldelight xx xx
from command line or bazel's genrule? @cgruber @JakeWharton
No. It's for creating the CLI API, but it's not a priority for the project.
@cgruber Sorry for me-too-ing, but any idea if this wrapper of yours will be available sometime to use? Maybe in some unfinished form. It's just that I had a pet project in which I'd use Bazel + rules_kotlin (for learning purposes), but I also need sqldelight...