library · inferred from evidence
@planetscale/database
A JavaScript/TypeScript library for interacting with PlanetScale databases.
- Numbers returned as strings
If @planetscale/database returns BIGINT or unsigned 64-bit columns as strings, that is deliberate: the driver will not guess whether a value fits in a JS number, since crossing the threshold mid-stream would silently change your types. Supp
- Doesn't work with Jest
[dgraham (maintainer)]: If @planetscale/database fails to import under Jest with "unexpected token" parse errors, upgrade to the 1.9.0 release or newer: it ships a CommonJS build that Jest can parse.
- Locks aren't being released when an error is thrown inside a transaction!
If @planetscale/database holds locks for 20 seconds after a transaction error, upgrade to v1.10.0 or later. The package was not rolling back correctly on error; the release fixed it and the reporter confirmed their previously failing tests