libsql-js icon indicating copy to clipboard operation
libsql-js copied to clipboard

A better-sqlite3 compatible API for libSQL that supports Bun, Deno, and Node

Results 56 libsql-js issues
Sort by recently updated
recently updated
newest added

I use fastify, turso and drizzle-orm. It works fine locally on my windows machine. I'm trying to deploy my app to koyeb.com (they have AMD EPYC CPU). Dockerfile ```dockerfile FROM...

We currently only support local database with Node, but with a WebAssembly build of libSQL can unlock that in other environments such as the browser. IOW, we need a libsql...

enhancement

Looks like missing `execute_batch()` in the libSQL remote protocol implementation: ``` penberg@vonneumann libsql-js % node examples/remote/example.js thread '' panicked at 'not yet implemented', /Users/penberg/.cargo/git/checkouts/libsql-00c15cfa15b9f13b/c032b9f/libsql/src/hrana/mod.rs:277:9 note: run with `RUST_BACKTRACE=1` environment variable...

bug
help wanted
good first issue

Without this typescript complained at me

With the following `knex` dialect that runs `db.sync()` when a connection is opened: ```javascript const BaseClient = require("knex/lib/dialects/better-sqlite3"); class Client_Libsql extends BaseClient { static dialect = "libsql"; _driver() { return...

bug

I'm using raspberry Pi with Bunjs, try to do import libsql but it throws error **error: Cannot find module "@libsql/linux-arm64-musl" from "/root/dev/bunjs/node_modules/libsql/index.js"** ![image](https://github.com/libsql/libsql-js/assets/4727197/2ac7fc3b-d6c7-42fd-b473-0e9823fbcf7b)

![image](https://github.com/libsql/libsql-js/assets/81939/d3a0204f-bf42-4338-b026-50c0f3340a65)

With https://github.com/libsql/libsql-js/pull/54, the sync example fails as follows: ``` penberg@vonneumann sync % node example.js 2023-11-01T09:20:21.706640Z INFO libsql_replication::replicator: Attempting to perform handshake with primary. 2023-11-01T09:20:21.706790Z INFO libsql::replication::remote_client: Attempting to perform handshake...

We currently keep the libsql types in-tree, but let's migrate them to a `@types/libsql` package instead.