mirror of
https://github.com/allankoechke/turso.git
synced 2026-11-30 11:12:58 +00:00
The driver learned the rowid of an INSERT by preparing and executing SELECT last_insert_rowid() after every INSERT/REPLACE — a full extra statement per insert. Expose the engine's connection-level rowid through the native module and read it directly. Besides removing the per-insert overhead, this is needed by the upcoming parameterized batch API, where a per-statement rowid fetch would otherwise double the statement count of insert-heavy batches. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>