Skip to content

basalt / activity-sqlite/src / openActivityDatabase

Function: openActivityDatabase() ​

> openActivityDatabase(location?): DatabaseSync

Defined in: activity-sqlite/src/index.ts:19

Durable, SQLite-backed implementation of the @basaltkit/activityActivityStore, on Node's built-in node:sqlite. Zero external dependencies. The single-node reference backend; the production (Postgres/MySQL) counterpart is @basaltkit/activity-prisma.

Requires Node 22.5+ (stable and flag-free on Node 24; --experimental-sqlite on 22.x).

Parameters ​

location? ​

string = ':memory:'

Returns ​

DatabaseSync

Released under the MIT License.