libsql-client-ts
libsql-client-ts copied to clipboard
TypeScript/JavaScript client API for libSQL
Run `npx prettier . --write` in the root directory to prettify all files.
This PR adds an option to `batch` to allow to wait until all schema changes are done: ```js await schemaClient.batch(["ALTER TABLE users ADD COLUMN test_column text"], { wait: true, });...
The code works fine when using the file address as the url, but when I use `:memory:` as the url, I find that commits don't work correctly. ### Reproduction [repo](https://github.com/IvanLi-CN/libsql-memory-transaction-issue)...
As shown in https://github.com/prisma/prisma/issues/23774, we get the `Invalid URL` error when deploying on Vercel. This happens on `0.6.0` but not on `0.5.6`, which can give some clues about what the...
I was switching my database from planetscale to turso but I'm getting the following error ``` { "errorType": "Runtime.ImportModuleError", "errorMessage": "Error: Cannot find module '@libsql/linux-x64-gnu'\nRequire stack:\n- /var/task/index.js\n- /var/runtime/index.mjs", "trace": [...
Our code currently implicitly wraps batches of statements into `BEGIN` + `COMMIT` or `BEGIN` + `ROLLBACK`. Problem is, in order to temporarily turn off foreign key contraints users might want...
Suggested by Dominic Elm.
Referenced here from another user: https://github.com/tursodatabase/libsql/issues/1276 I get the same error and using libsql client. I tried downgrading multiple times of libsql and it was always getting the same error....
When trying to create client with sync interval, in reality automatic periodic syncs never happen, due to the fact that in sqlite3.js file, following object is passed to Database constructor:...
Hi guys, I'm following this [tutorial](https://turso.tech/blog/creating-a-multitenant-saas-service-with-turso-remix-and-drizzle-6205cf47) about multi-tenant app with RemixJS + Drizzle + Turso. In short, when creating a tenant (called organization), a new database is created specifically for...