Package Exports
- @sqlite-actor/core
- @sqlite-actor/core/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@sqlite-actor/core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@sqlite-actor/core
The foundation for Actor-DB. This package provides the core SQLite Virtual File System (VFS) and the base TypeScript SDK for building actor-based databases.
Features
- Actor-Native VFS: A custom SQLite VFS that maps file I/O directly to key-value storage (e.g., Cloudflare Durable Objects, Rivet Actors).
- Synchronous SDK: A memory-first SDK designed for single-threaded actor environments.
- Base Class: Provides the
SqliteActorclass which can be extended to support any SQLite extension.
Installation
npm install @sqlite-actor/coreUsage (Core Only)
If you are building your own custom SQLite WASM module with a custom extension, you can use @sqlite-actor/core to provide the storage layer.
import { SqliteActor } from "@sqlite-actor/core";
import initSqlite3 from "./your-custom-glue.js";
// Initialize with your custom WASM module
const db = new SqliteActor(this.ctx.storage);
await db.init(initSqlite3, { wasmModule: yourWasmModule });
db.execute("CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT);");License
MIT