tursodatabase / libsql-client-ts

TypeScript/JavaScript client API for libSQL
https://docs.turso.tech/sdk/ts/quickstart
MIT License
226 stars 32 forks source link

`lastInsertRowid` should respect `intMode` config #165

Closed netroy closed 6 months ago

netroy commented 8 months ago

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.