database-js
database-js copied to clipboard
A Fetch API-compatible PlanetScale database driver
Our API supports sending along a Request-Id header, and this will be traced through on our side for logging and whatnot. A simple UUID or something unique would be sufficient....
When sending a JSON object or JSON stringified string I get the following errors. I can't tell if I should be doing something different. **JSON Object** ``` target: readcted.-.primary: vttablet:...
Within some contexts, especially serverless, the memory limits are very low in process. So it can be desirable when performing aggregations in process, or if also streaming out to the...
We currently rely on `btoa` and `atob`, because that works in browsers and worked in versions of Node we tested against, but that's not as universal as we had hoped....
I did a small performance comparison with the standard MySQL connection and the new driver in a lambda function. (using [this](https://github.com/depot/kysely-planetscale)) I found that when using the serverless driver the...
``` // eslint-disable-next-line @typescript-eslint/no-explicit-any function decimalsToString(field: Field, value: any) { if (field.type === 'DECIMAL' && typeof value === 'string') { return value } return cast(field, value) } export const getDBClient...
If a column has this data: ``` ["1", "5", "11155111", "42161", "42170", "43114", "8453", "56", "7700", "42220", "250", "10", "137", "1101", "59144", "1284", "1285", "534352", "7777777"] ``` And you upgrade...
Before you think this is unrelated, the team maintaining this repo is the closest to this topic and is welcome to comment: CF released Hyperdrive for connecting DB w/o the...
I have a column (`id_new`) on a dev branch to test using UUID7 for PKs. When doing a `SELECT` query the UUIDs seem to be being returned incorrectly. Example Table...
Rather than having the type of "type" Field be of type string, it should be 'INT8' | 'INT16' | ... | string to make it easier to infer what type...