sqldelight icon indicating copy to clipboard operation
sqldelight copied to clipboard

Expose CLI API from compiler

Open JakeWharton opened this issue 7 years ago • 9 comments

So that it can be used standalone (e.g., from Bazel) without the need for writing extra Java

JakeWharton avatar Nov 28 '16 17:11 JakeWharton

working-kotlin branch tracking this via SqlDelightEnvironment

AlecKazakova avatar Mar 05 '18 21:03 AlecKazakova

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.

cgruber avatar May 07 '19 17:05 cgruber

Any updates on this?

nkoroste avatar Sep 18 '19 22:09 nkoroste

I think it's safe to say we have no plans to work on this and it will need to be contributed

JakeWharton avatar Sep 18 '19 22:09 JakeWharton

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.

cgruber avatar Sep 18 '19 23:09 cgruber

Thanks @cgruber, I'm mainly interested in this due to Bazel so that's great to hear.

nkoroste avatar Sep 19 '19 21:09 nkoroste

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

ThomasCJY avatar Nov 08 '19 07:11 ThomasCJY

No. It's for creating the CLI API, but it's not a priority for the project.

JakeWharton avatar Nov 08 '19 14:11 JakeWharton

@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...

dimsuz avatar Mar 29 '20 18:03 dimsuz