Skip to content

Graphorin API reference v0.4.0


Graphorin API reference / @graphorin/store-sqlite / / SqliteCheckpointStore

Class: SqliteCheckpointStore

Defined in: packages/store-sqlite/src/checkpoint-store.ts:18

Default CheckpointStore implementation. Workflow state is encoded as JSON blobs; per-task pending writes survive partial step failure.

Stable

Implements

Constructors

Constructor

ts
new SqliteCheckpointStore(conn): SqliteCheckpointStore;

Defined in: packages/store-sqlite/src/checkpoint-store.ts:20

Parameters

ParameterType
connSqliteConnection

Returns

SqliteCheckpointStore

Methods

deleteThread()

ts
deleteThread(threadId): Promise<void>;

Defined in: packages/store-sqlite/src/checkpoint-store.ts:132

Parameters

ParameterType
threadIdstring

Returns

Promise&lt;void&gt;

Implementation of

CheckpointStore.deleteThread


getTuple()

ts
getTuple(
   threadId, 
   namespace, 
   checkpointId?): Promise<
  | CheckpointTuple
| null>;

Defined in: packages/store-sqlite/src/checkpoint-store.ts:74

Parameters

ParameterType
threadIdstring
namespacestring
checkpointId?string

Returns

Promise< | CheckpointTuple | null>

Implementation of

CheckpointStore.getTuple


list()

ts
list(
   threadId, 
   namespace, 
opts?): AsyncIterable<CheckpointTuple>;

Defined in: packages/store-sqlite/src/checkpoint-store.ts:109

Parameters

ParameterType
threadIdstring
namespacestring
opts?ListOptions

Returns

AsyncIterable&lt;CheckpointTuple&gt;

Implementation of

CheckpointStore.list


put()

ts
put(
   threadId, 
   namespace, 
   checkpoint, 
metadata): Promise<string>;

Defined in: packages/store-sqlite/src/checkpoint-store.ts:24

Parameters

ParameterType
threadIdstring
namespacestring
checkpointCheckpoint
metadataCheckpointMetadata

Returns

Promise&lt;string&gt;

Implementation of

CheckpointStore.put


putWrites()

ts
putWrites(
   threadId, 
   namespace, 
   checkpointId, 
   writes, 
taskId): Promise<void>;

Defined in: packages/store-sqlite/src/checkpoint-store.ts:53

Parameters

ParameterType
threadIdstring
namespacestring
checkpointIdstring
writesreadonly PendingWrite[]
taskIdstring

Returns

Promise&lt;void&gt;

Implementation of

CheckpointStore.putWrites