@codesoul-co/hypha-adapters-local / sqlite-execution-store
- Package index:
@codesoul-co/hypha-adapters-local - Source:
packages/adapters-local/src/sqlite-execution-store.ts - Exports: 3
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
| Symbol | Kind | Signature | Description |
|---|---|---|---|
SQLiteExecutionStore | class | new SQLiteExecutionStore(options: SQLiteExecutionStoreFoundationOptions): 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. |
SQLiteExecutionStoreErrorCode | type | type SQLiteExecutionStoreErrorCode = SQLiteExecutionStoreFoundationErrorCode | Public type alias for SQLite Execution Store Error Code; the declaration contains its complete type expression. |
SQLiteExecutionStoreOptions | type | type SQLiteExecutionStoreOptions = SQLiteExecutionStoreFoundationOptions | Public 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
| Member | Kind | Signature | Description |
|---|---|---|---|
acquireLease | method | acquireLease(input: ExecutionLeaseAcquireRequest): Promise<ExecutionRecord> | Public method; parameters and return type are shown in the signature. |
close | method | close(): Promise<void> | Public method; parameters and return type are shown in the signature. |
compareAndSet | method | compareAndSet(input: ExecutionRecordCompareAndSetRequest): Promise<ExecutionRecord> | Public method; parameters and return type are shown in the signature. |
constructor | constructor | (options: SQLiteExecutionStoreFoundationOptions): SQLiteExecutionStore | Creates an instance of this class. |
create | method | create(input: ExecutionRecordCreateRequest): Promise<ExecutionRecord> | Public method; parameters and return type are shown in the signature. |
filename | property | readonly filename: string | Public property; its type, readonly modifier and optionality are shown in the signature. |
get | method | get(executionId: string): Promise<ExecutionRecord | null> | Public method; parameters and return type are shown in the signature. |
health | method | health(): Promise<ProviderHealth> | Public method; parameters and return type are shown in the signature. |
list | method | list(input?: ExecutionRecordQuery): Promise<ExecutionRecordPage> | Public method; parameters and return type are shown in the signature. |
releaseLease | method | releaseLease(input: ExecutionLeaseReleaseRequest): Promise<ExecutionRecord> | Public method; parameters and return type are shown in the signature. |
renewLease | method | renewLease(input: ExecutionLeaseRenewRequest): Promise<ExecutionRecord> | Public method; parameters and return type are shown in the signature. |
resolveIdempotency | method | resolveIdempotency(input: ExecutionIdempotencyQuery): Promise<ExecutionIdempotencyResolution> | Public method; parameters and return type are shown in the signature. |
static schemaVersion | property | static readonly schemaVersion: 7 | Public 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;