libsql-client-ts
libsql-client-ts copied to clipboard
TypeScript/JavaScript client API for libSQL
In terms of having an embedded replica. The docs say that I have to call `client.sync()` myself. It'd be nice to clarify.
``` TRPCClientError: request to https://somedb.turso.io/v2/pipeline failed, reason: write EPIPE at Function.from (/Users/user/Documents/proj/node_modules/@trpc/client/dist/TRPCClientError.js:28:20) at /Users/user/Documents/proj/node_modules/@trpc/client/dist/links/internals/createHTTPBatchLink.js:61:76 at processTicksAndRejections (node:internal/process/task_queues:95:5) { meta: { response: Response { [Symbol(realm)]: null, [Symbol(state)]: [Object], [Symbol(headers)]: [HeadersList] },...
Batch is using stored_sql. In the Turso server, the stored_sql only support up to 5kb only. https://github.com/tursodatabase/libsql/blob/e9d637e051685f92b0da43849507b5ef4232fbeb/libsql-server/src/hrana/http/request.rs#L10 - Checking 5,000 characters doesnt seem like good idea given that unicode character...
I'm getting this error since upgrading to libsql/client 5.0. The config for createClient is as follows: { url: "file:local.db", syncUrl: config.env.DATABASE_URL, authToken: config.env.DATABASE_AUTH_TOKEN!, } this should work according to the...
Hello! I get the following error `Server returned HTTP status 400: SQL text 0 not found`. This happens when batch inserting 50 rows, if I shrink this array everything works...
We currently implement `batch()` by issuing every statement separately. Let's switch to libSQL batch interface instead (we need to expose it in `libsql` first).
I’m using this package with NEXT.js and trying to Connect to Turso database. I’m getting this error ` ⨯ ./node_modules/@libsql/darwin-x64/README.md Module parse failed: Unexpected character ' ' (1:1) You may...
`@libsql/client` appears intended to be able to support both ESM and CJS modules, but unfortunately, it doesn't appear to work properly with the TypeScript compiler. If one creates a simple...
Hello. I have the following code: ``` import { Client as LibsqlClient, createClient } from '@libsql/client/web'; ... const res = await client.execute({ sql: 'SELECT * FROM watched_videos WHERE videoId IN...
The following fails with Deno: ``` import { createClient } from "https://esm.sh/@libsql/[email protected]/node"; const config = { url: "file:local.db" }; const db = createClient(config); const rs = await db.execute("SELECT * FROM...