@lucid-softworks/workflow-store-sqlite
v0.1.0
Published
Durable workflow checkpoint storage using Node's built-in SQLite driver.
Maintainers
Readme
@lucid-softworks/workflow-store-sqlite
Durable synchronous WorkflowCheckpointStore storage backed by Node's built-in
node:sqlite driver.
import { DatabaseSync } from "node:sqlite";
import { SqliteWorkflowCheckpointStore } from "@lucid-softworks/workflow-store-sqlite";
const database = new DatabaseSync("workflows.db");
const checkpoints = new SqliteWorkflowCheckpointStore(database);The constructor migrates by default. Pass { migrate: false } when migrations
are managed separately, then call migrate() explicitly if needed. Saves are
atomic upserts keyed by execution ID.
