database-js
database-js copied to clipboard
A Fetch API-compatible PlanetScale database driver
**What** Add first class support for [`USE`](https://dev.mysql.com/doc/refman/8.0/en/use.html) and [`SET`](https://dev.mysql.com/doc/refman/8.0/en/set-statement.html) statements. **Why** We want to make it easier to correctly use PlanetScale over HTTP supporting some of more exotic features (boost,...
port 3306 can never work for us, and it's common that a DATABASE_URL that you've used in another environemnt that was a traditional mysql driver looks something like: ```mysql://user:[email protected]:3306/dbname``` We...
A pattern that is a bit of a pain for us is doing an `INSERT` with multiple rows at once. While we support explicitly doing something like: ``` execute("INSERT INTO...
Currently, database.js is not compatible with `pscale connect` because they are entirely different protocols (http vs mysql). One pain point when using database.js for local development is quickly switching branches....
getting this very weird issue with newly created proejct, unable to query anything. ```log { e: TypeError: fetch failed at Object.fetch (node:internal/deps/undici/undici:11576:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async postJSON (file:///Users/a3tech/Developer/personal_projects/remarkable/node_modules/.pnpm/@[email protected]/node_modules/@planetscale/database/dist/index.js:128:22) at...
Thanks for this great library, it's fantastic to be able to query directly from Cloudflare Pages 🥳 Based on my experiments so far I feel like the library is pretty...
Right now, our release process is manual and a bit flawed. Our internal steps have been: ```bash npm version minor git push --tags npm publish ``` But this isn't great....
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3. Commits 74b2db2 3.0.3 88f1429 update eslint. lint, fix unit tests. 415d660 Snyk js braces 6838727 (#40) 190510f fix tests, skip 1 test in test/braces.expand...
Apologies if this is already supported, but would it be possible to get the ability to run multiple statements in one request? Something like ```js await conn.execute("INSERT INTO foo(x) VALUES(12);...
Hey there, Small little utility guard for checking if a client is a PlanetScale client. We currently have a helper like this in our codebase ```ts function isPlanetScaleClient(client: unknown): client...