@rulvar/store-sqlite 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -3
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JournalEntry, JournalStore, LeasableStore, Lease, RunFilter, RunMeta } from "@rulvar/core";
|
|
2
2
|
|
|
3
3
|
//#region src/store.d.ts
|
|
4
|
-
/** Appendix A interim reference for the sqlite store
|
|
4
|
+
/** Appendix A interim reference for the sqlite store. */
|
|
5
5
|
declare const DEFAULT_LEASE_TTL_MS = 6e4;
|
|
6
6
|
interface SqliteStoreOptions {
|
|
7
7
|
/** Database file path, or ':memory:' for an in-process store. */
|
package/dist/index.js
CHANGED
|
@@ -4,8 +4,9 @@ import { LeaseHeldError } from "@rulvar/core";
|
|
|
4
4
|
/**
|
|
5
5
|
* SqliteStore (M5-T02): JournalStore plus LeasableStore with fencing
|
|
6
6
|
* epochs over the builtin node:sqlite driver; the reference
|
|
7
|
-
* implementation for community stores (
|
|
8
|
-
*
|
|
7
|
+
* implementation for community stores (see
|
|
8
|
+
* https://docs.rulvar.com/guide/stores). Zero native dependencies by
|
|
9
|
+
* design.
|
|
9
10
|
*
|
|
10
11
|
* Contract highlights (executable definition: @rulvar/store-conformance):
|
|
11
12
|
* - A1-A4: single-statement inserts are atomic; per-run order is the
|
|
@@ -20,7 +21,7 @@ import { LeaseHeldError } from "@rulvar/core";
|
|
|
20
21
|
* - The lease ttl default is the Appendix A interim reference for this
|
|
21
22
|
* store (60000 ms; the committed value is decided before M8).
|
|
22
23
|
*/
|
|
23
|
-
/** Appendix A interim reference for the sqlite store
|
|
24
|
+
/** Appendix A interim reference for the sqlite store. */
|
|
24
25
|
const DEFAULT_LEASE_TTL_MS = 6e4;
|
|
25
26
|
var SqliteStore = class {
|
|
26
27
|
db;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rulvar/store-sqlite",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "rulvar SQLite store implementing JournalStore and LeasableStore with a fencing epoch.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@rulvar/core": "1.
|
|
25
|
+
"@rulvar/core": "1.3.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^22.20.0",
|
|
29
29
|
"tsdown": "^0.22.3",
|
|
30
30
|
"typescript": "~6.0.3",
|
|
31
|
-
"@rulvar/store-conformance": "1.
|
|
31
|
+
"@rulvar/store-conformance": "1.3.0"
|
|
32
32
|
},
|
|
33
33
|
"repository": {
|
|
34
34
|
"type": "git",
|