Skip to content

@codesoul-co/hypha-adapters-local / runtime-checkpoint-store

Using this module

Use the Runtime checkpoint store module for persisting and reading data at this boundary. It exports 1 class, 1 interface.

Import from the package entrypoint

ts
import {
  SQLiteRuntimeCheckpointStore,
} from '@codesoul-co/hypha-adapters-local';

import type {
  SQLiteRuntimeCheckpointStoreOptions,
} from '@codesoul-co/hypha-adapters-local';

Usage patterns

  • Use the 1 type/interface export as static contracts in application code, adapters, or tests. Import them with import type; they do not exist at runtime.
  • The module exposes 1 class as constructable runtime implementations. Each symbol entry lists its constructor and public methods.

Public exports

SymbolKindSignatureDescription
SQLiteRuntimeCheckpointStoreclassnew SQLiteRuntimeCheckpointStore(options: SQLiteRuntimeCheckpointStoreOptions): SQLiteRuntimeCheckpointStoreSQLite Runtime Checkpoint Store class with 6 public constructor or member entries; its exact declarations are listed below.
SQLiteRuntimeCheckpointStoreOptionsinterfaceinterface SQLiteRuntimeCheckpointStoreOptionsSQLite Runtime Checkpoint Store Options interface with 2 public fields or methods.

SQLiteRuntimeCheckpointStore

SQLite Runtime Checkpoint Store class with 6 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { SQLiteRuntimeCheckpointStore } from '@codesoul-co/hypha-adapters-local';
  • Source module: runtime-checkpoint-store

Declaration

text
export declare class SQLiteRuntimeCheckpointStore implements RuntimeCheckpointStore {
    constructor(options: SQLiteRuntimeCheckpointStoreOptions);
    put(input: RuntimeCheckpointRecord, idempotencyKey: string): Promise<RuntimeCheckpointPutResult>;
    get(scope: RuntimeScope, checkpointId: string): Promise<RuntimeCheckpointRecord | null>;
    latest(scope: RuntimeScope): Promise<RuntimeCheckpointRecord | null>;
    list(scope: RuntimeScope, limit?: number): Promise<RuntimeCheckpointRecord[]>;
    close(): void;
}

Public members

MemberKindSignatureDescription
closemethodclose(): voidPublic method; parameters and return type are shown in the signature.
constructorconstructor(options: SQLiteRuntimeCheckpointStoreOptions): SQLiteRuntimeCheckpointStoreCreates an instance of this class.
getmethodget(scope: RuntimeScope, checkpointId: string): Promise<RuntimeCheckpointRecord | null>Public method; parameters and return type are shown in the signature.
latestmethodlatest(scope: RuntimeScope): Promise<RuntimeCheckpointRecord | null>Public method; parameters and return type are shown in the signature.
listmethodlist(scope: RuntimeScope, limit?: number): Promise<RuntimeCheckpointRecord[]>Public method; parameters and return type are shown in the signature.
putmethodput(input: RuntimeCheckpointRecord, idempotencyKey: string): Promise<RuntimeCheckpointPutResult>Public method; parameters and return type are shown in the signature.

SQLiteRuntimeCheckpointStoreOptions

SQLite Runtime Checkpoint Store Options interface with 2 public fields or methods.

  • Kind: interface
  • Import: import type { SQLiteRuntimeCheckpointStoreOptions } from '@codesoul-co/hypha-adapters-local';
  • Source module: runtime-checkpoint-store

Declaration

text
export interface SQLiteRuntimeCheckpointStoreOptions {
    filename: string;
    now?: () => string;
}

Contract members

MemberKindSignatureDescription
filenamepropertyfilename: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
nowmethodnow?(): stringPublic method; parameters and return type are shown in the signature.