libsql-client-ts
libsql-client-ts copied to clipboard
TypeScript/JavaScript client API for libSQL
I basically do this: ``` import { createClient } from "@libsql/client"; const client = createClient({ url: "file:local.db", }); await client.batch( [ "CREATE TABLE IF NOT EXISTS users (email TEXT)" ],...
Hi there, I'm using random row ids as primary keys, my schema goes something like this: ```sql CREATE TABLE users ( id INTEGER PRIMARY KEY NOT NULL, -- ... )...
A user reports: > my query never completes when i query more than 100 rows.  > it apparently happens in the "decodeResponse" function in the hrana-client > it's related...
``` app-1 | thread '' panicked at src/statement.rs:340:62: app-1 | called `Option::unwrap()` on a `None` value app-1 | stack backtrace: app-1 | 0: 0x7f4b06c5b439 - app-1 | 1: 0x7f4b06920400 -...
I'm running LibSQL server locally and using this sdk to connect to it. The following is my code: ```ts import { createClient } from "@libsql/client" const client = createClient({ url:...
I've been looking into the new beta [`/listen` endpoint](https://github.com/tursodatabase/libsql/pull/1388) and wondering how consumers would be using this from Typescript SDK. There is currently no "native" support for SSE on the...
The `db.execute` method currently returns a non-generic `ResultSet` type. However, in some cases, the column and row types are known beforehand. By making `ResultSet` generic, developers could provide these types,...
We have Vercel CI tests, but they have been disabled because something broke. Let's work on re-enabing them.