libsql-js
libsql-js copied to clipboard
A better-sqlite3 compatible API for libSQL that supports Bun, Deno, and Node
As Zeno pointed out, the `Rows::js_next()` function has no async variant that would return a promise. This means that we'll block the JavaScript thread while fetching for rows.
Todo: - [ ] Fix cross platform build - [ ] promise API - [ ] `libsql` encryption support
I started using @libsql/client originally as I don't like the blocking nature of better-sqlite3. I am using it with Nuxt and blocking the main thread due to the sync nature,...
Suggested by Matt Silverlock
When attempting to use offline writes with `sqld`, the following error is returned: ```bash Syncing database ... thread '' panicked at src/errors.rs:22:13: not yet implemented: err = Sync(PullFrame(404, "")) note:...
ProductName: macOS ProductVersion: 15.3.2 BuildVersion: 24D81 Rust installed with brew: ~ brew info rust ==> rust: stable 1.85.0 (bottled), HEAD Safe, concurrent, practical language https://www.rust-lang.org/ Installed /opt/homebrew/Cellar/rust/1.85.0 (3,582 files, 318.6MB)...
Now the Windows ARM version is being used quite frequently, especially since Qualcomm has also released desktop ARM CPUs. I hope this library will also natively support the Windows ARM...
"@libsql/win32-arm64-msvc" is required while building projects like [cherry-studio](https://github.com/CherryHQ/cherry-studio)