simon.vergauwen
12/10/2020, 12:38 PMRETURNING
for the Postgress Dialect with SqlDelight but it doesn't seem to be working. It was added in 1.4.3
according to the release notes, https://github.com/cashapp/sqldelight/releases/tag/1.4.3. Any idea if this is possible or I am doing something wrong? The SqlDriver#execute
is fixed to Unit
so it seems it cannot return any value. I am using it in a simple query like this.
delete:
DELETE FROM players
WHERE id = ?
RETURNING *;
Nikky
12/12/2020, 8:46 PMNikky
12/12/2020, 8:49 PMsimon.vergauwen
12/13/2020, 3:50 PMRETURNING
is possible within a query but you're not able to use RETURNING
to get a result back from a query. Thanks for the references @Nikky!