tursodatabase / libsql-client-ts

TypeScript/JavaScript client API for libSQL

Home Page:https://docs.turso.tech/sdk/ts/quickstart

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`lastInsertRowid` should respect `intMode` config

netroy opened this issue · comments

lastInsertRowid is currently hard-coded to return BigInt here and here.

This creates a mismatch in Id types when intMode is set to number or string.

I'd be glad to send a PR to fix this, but before I do I just want to check with you folks, if this change would make sense to you.