Skip to content

Return last_affected_row_id after an insert / update #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
avinassh opened this issue Apr 28, 2025 · 0 comments
Open

Return last_affected_row_id after an insert / update #91

avinassh opened this issue Apr 28, 2025 · 0 comments

Comments

@avinassh
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant