Skip to content

rulvar API reference


rulvar API reference / @rulvar/store-sqlite / SqliteStoreOptions

Interface: SqliteStoreOptions

Defined in: packages/store-sqlite/src/store.ts:36

@rulvar/store-sqlite: SqliteStore implementing JournalStore and LeasableStore with fencing epochs over the builtin node:sqlite driver; the reference implementation for community stores (M5-T02). Requires a Node.js with node:sqlite available (unflagged in the 22.13+/23.4+ lines).

Properties

PropertyTypeDescriptionDefined in
now?() => numberInjectable clock for lease-expiry tests.packages/store-sqlite/src/store.ts:42
pathstringDatabase file path, or ':memory:' for an in-process store.packages/store-sqlite/src/store.ts:38
ttlMs?numberLease ttl; default the Appendix A interim reference (60000 ms).packages/store-sqlite/src/store.ts:40