But "you" could write a IntelliJ plugin to add an ...
# squarelibraries
h
But "you" could write a IntelliJ plugin to add an action to generate the queries
1
g
Does a live template could also do the job?
h
I don't know, maybe I guess, but I never wrote explicitly plugin code for a live template, sorry.
g
Can't test right now, just to share the idea if it can help @Adam S
a
cool, thanks @glureau, I’ll give it a go.
the SQDelight IJ plugin could add these templates?
a
so you do 👍
h
If you want to provide more default queries, a PR would be welcome (I guess). I don't know how powerful live templates are. If you need queries specific for your business, you could create an IntelliJ plugin, add sqldelight plugin as dependency and extend the actions. But keep in mind, the api of the sqldelight IntelliJ plugin is not stable.
a
haha don’t tempt me @hfhbd, I’m already 4 or 5 steps off track https://en.wiktionary.org/wiki/yak_shaving
h
Ha, never head this word, nice. I only know this gem:

https://www.youtube.com/watch?v=AbSehcT19u0

a
exactly!
p
Jetbrains Datagrip does a great job wrangling SQL -
select * from ____
can be expanded into a list of fields, etc. What you get for Kotlin in Intellij is available for SQL in Datagrip. It made my life so much easier