@sixb/sqlite 0.1.17 → 0.1.19
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/action-run-storage.d.ts +4 -9
- package/dist/action-run-storage.d.ts.map +1 -1
- package/dist/index.js +248 -284
- package/dist/index.js.map +4 -4
- package/dist/migrations.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/action-run-storage.ts +104 -442
- package/src/migrations/060-terminal-action-runs.sql +149 -0
- package/src/migrations.ts +2 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ActionRunRecord, ActionRunStorage,
|
|
1
|
+
import type { ActionRunRecord, ActionRunStorage, ExecutionStorage, ListActionRunsInput, ListActionRunsResult, RecordActionEffectsInput, RecordActionRunInput } from "@sixb/core/storage";
|
|
2
2
|
import { type SqliteStoreConnection } from "./transactions";
|
|
3
3
|
export interface SqliteActionRunStorageOptions {
|
|
4
4
|
/** Execution lookup sharing the same provider transaction. */
|
|
@@ -13,20 +13,15 @@ export declare class SqliteActionRunStorage implements ActionRunStorage {
|
|
|
13
13
|
private readonly db;
|
|
14
14
|
private readonly executions;
|
|
15
15
|
constructor(options: SqliteActionRunStorageOptions);
|
|
16
|
-
|
|
17
|
-
queue(input: QueueActionRunInput): Promise<ActionRunRecord>;
|
|
18
|
-
private requeueAfterEnqueueFailure;
|
|
19
|
-
start(input: StartActionRunInput): Promise<ActionRunRecord>;
|
|
20
|
-
enterPhase(input: EnterActionRunPhaseInput): Promise<ActionRunRecord>;
|
|
21
|
-
recordWriteback(input: RecordActionWritebackInput): Promise<ActionRunRecord>;
|
|
16
|
+
record(input: RecordActionRunInput): Promise<ActionRunRecord>;
|
|
22
17
|
recordEffects(input: RecordActionEffectsInput): Promise<ActionRunRecord>;
|
|
23
|
-
finish(input: FinishActionRunInput): Promise<ActionRunRecord>;
|
|
24
18
|
getById(params: {
|
|
25
19
|
projectId: string;
|
|
26
20
|
id: string;
|
|
27
21
|
}): Promise<ActionRunRecord | null>;
|
|
28
22
|
list(input: ListActionRunsInput): Promise<ListActionRunsResult>;
|
|
29
23
|
close(): void;
|
|
30
|
-
private
|
|
24
|
+
private selectRow;
|
|
25
|
+
private requireRow;
|
|
31
26
|
}
|
|
32
27
|
//# sourceMappingURL=action-run-storage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-run-storage.d.ts","sourceRoot":"","sources":["../src/action-run-storage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"action-run-storage.d.ts","sourceRoot":"","sources":["../src/action-run-storage.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAGV,eAAe,EAEf,gBAAgB,EAEhB,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACxB,oBAAoB,EACrB,MAAM,oBAAoB,CAAA;AAG3B,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,gBAAgB,CAAA;AAEvB,MAAM,WAAW,6BAA6B;IAC5C,8DAA8D;IAC9D,UAAU,EAAE,gBAAgB,CAAA;IAC5B,mFAAmF;IACnF,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,gEAAgE;IAChE,UAAU,CAAC,EAAE,qBAAqB,CAAA;CACnC;AAED,qBAAa,sBAAuB,YAAW,gBAAgB;IAC7D,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAuB;IAClD,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAU;IAE7B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAkB;gBAEjC,OAAO,EAAE,6BAA6B;IAU5C,MAAM,CAAC,KAAK,EAAE,oBAAoB,GAAG,OAAO,CAAC,eAAe,CAAC;IAsE7D,aAAa,CAAC,KAAK,EAAE,wBAAwB,GAAG,OAAO,CAAC,eAAe,CAAC;IAiCxE,OAAO,CAAC,MAAM,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC;IAQnF,IAAI,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IA8GrE,KAAK,IAAI,IAAI;IAIb,OAAO,CAAC,SAAS;IAMjB,OAAO,CAAC,UAAU;CASnB"}
|