and if you're on later versions of SQLite or diale...
# squarelibraries
a
and if you're on later versions of SQLite or dialects that support it
Copy code
INSERT INTO ...
RETURNING your_id_column;
😮 3
👍 1
💥 3
a
Thanks Alec! This seems to work but has some red squiggles under it
Also had to add this to bump the SQLite dialect version:
Copy code
dialect("app.cash.sqldelight:sqlite-3-38-dialect:${libs.versions.sqldelight.get()}")
a
red squiggles might just be an IDE issue, could need a more recent plugin or something.
a
I think i'm on the latest (1.5.5), i'll open a bug report later
a
latest is 2.0.0-alpha05
you have to use the alpha channel though: https://cashapp.github.io/sqldelight/2.0.0-alpha05/#snapshots
(scroll to the bottom, it has a link for adding the alpha channel for the IDE plugins)