libsql-experimental-python icon indicating copy to clipboard operation
libsql-experimental-python copied to clipboard

Return `last_affected_row_id` after an insert / update

Open avinassh opened this issue 8 months ago • 0 comments

from ChrisMills on Discord:

Ensure that after an insert or update, cursor.rowid has the last affected row. This is very useful behavior that avoids the need to make an immediate read to get that id. It's part of the sqlite3 python module that I really like and python users experienced with it are likely to expect libsql has the same feature. I did.

https://discord.com/channels/933071162680958986/1364681822679859362/1366422132757893161

avinassh avatar Apr 28 '25 15:04 avinassh