DaBigBlob / libsql-stateless-easy

Thin libSQL stateless HTTP driver for TypeScript and JavaScript for the edge but easy 🚀
https://www.npmjs.com/package/libsql-stateless-easy
MIT License
62 stars 3 forks source link

Support intMode #1

Closed AsyncBanana closed 9 months ago

AsyncBanana commented 9 months ago

@libsql/client supports intMode as a configuration option that specifies how SQLite integers should be outputted.

createClient({
    // other options
    intMode: "number" // or "bigint" or "string"
})

libsql-stateless-easy's lack of support for this prevents usage for applications that use an intMode other than BigInt and reduces optimization opportunities (plain js numbers are almost always faster when within the 53-bit limit).

I would be willing to submit a PR for this.