Skip to content

@codesoul-co/hypha-adapters-local / sqlite-execution-store

Using this module

Use the Sqlite execution store module for persisting and reading data at this boundary. It exports 1 class, 2 types.

Import from the package entrypoint

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

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

Usage patterns

  • Use the 2 type/interface exports 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
SQLiteExecutionStoreclassnew SQLiteExecutionStore(options: SQLiteExecutionStoreFoundationOptions): SQLiteExecutionStorePublic durable local ExecutionStore adapter. Every persisted read is validated by the foundation before it crosses the provider boundary. CAS, idempotency, lease, fencing, migration, and close semantics are therefore exposed through the stable Core ExecutionStore port.
SQLiteExecutionStoreErrorCodetypetype SQLiteExecutionStoreErrorCode = SQLiteExecutionStoreFoundationErrorCodePublic type alias for SQLite Execution Store Error Code; the declaration contains its complete type expression.
SQLiteExecutionStoreOptionstypetype SQLiteExecutionStoreOptions = SQLiteExecutionStoreFoundationOptionsPublic type alias for SQLite Execution Store Options; the declaration contains its complete type expression.

SQLiteExecutionStore

Public durable local ExecutionStore adapter. Every persisted read is validated by the foundation before it crosses the provider boundary. CAS, idempotency, lease, fencing, migration, and close semantics are therefore exposed through the stable Core ExecutionStore port.

  • Kind: class
  • Import: import { SQLiteExecutionStore } from '@codesoul-co/hypha-adapters-local';
  • Source module: sqlite-execution-store

Declaration

text
export declare class SQLiteExecutionStore extends SQLiteExecutionStoreFoundation implements ExecutionStore {
}

Public members

MemberKindSignatureDescription
acquireLeasemethodacquireLease(input: ExecutionLeaseAcquireRequest): Promise<ExecutionRecord>Public method; parameters and return type are shown in the signature.
closemethodclose(): Promise<void>Public method; parameters and return type are shown in the signature.
compareAndSetmethodcompareAndSet(input: ExecutionRecordCompareAndSetRequest): Promise<ExecutionRecord>Public method; parameters and return type are shown in the signature.
constructorconstructor(options: SQLiteExecutionStoreFoundationOptions): SQLiteExecutionStoreCreates an instance of this class.
createmethodcreate(input: ExecutionRecordCreateRequest): Promise<ExecutionRecord>Public method; parameters and return type are shown in the signature.
filenamepropertyreadonly filename: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
getmethodget(executionId: string): Promise<ExecutionRecord | null>Public method; parameters and return type are shown in the signature.
healthmethodhealth(): Promise<ProviderHealth>Public method; parameters and return type are shown in the signature.
listmethodlist(input?: ExecutionRecordQuery): Promise<ExecutionRecordPage>Public method; parameters and return type are shown in the signature.
releaseLeasemethodreleaseLease(input: ExecutionLeaseReleaseRequest): Promise<ExecutionRecord>Public method; parameters and return type are shown in the signature.
renewLeasemethodrenewLease(input: ExecutionLeaseRenewRequest): Promise<ExecutionRecord>Public method; parameters and return type are shown in the signature.
resolveIdempotencymethodresolveIdempotency(input: ExecutionIdempotencyQuery): Promise<ExecutionIdempotencyResolution>Public method; parameters and return type are shown in the signature.
static schemaVersionpropertystatic readonly schemaVersion: 7Public property; its type, readonly modifier and optionality are shown in the signature.

SQLiteExecutionStoreErrorCode

Public type alias for SQLite Execution Store Error Code; the declaration contains its complete type expression.

  • Kind: type
  • Import: import type { SQLiteExecutionStoreErrorCode } from '@codesoul-co/hypha-adapters-local';
  • Source module: sqlite-execution-store

Declaration

text
export type SQLiteExecutionStoreErrorCode = SQLiteExecutionStoreFoundationErrorCode;

SQLiteExecutionStoreOptions

Public type alias for SQLite Execution Store Options; the declaration contains its complete type expression.

  • Kind: type
  • Import: import type { SQLiteExecutionStoreOptions } from '@codesoul-co/hypha-adapters-local';
  • Source module: sqlite-execution-store

Declaration

text
export type SQLiteExecutionStoreOptions = SQLiteExecutionStoreFoundationOptions;