Skip to content

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

模块用法

用于持久化并读取该边界的数据。Sqlite execution store 模块公开 1 类、2 类型。

从包入口导入

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

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

使用要点

  • 2 个类型/接口用于应用代码、Adapter 或测试中的静态契约;请使用 import type,运行时不应依赖它们。
  • 1 个类提供可实例化的运行时实现;构造参数与公开方法在各自条目中完整列出。

公共导出

Symbol种类签名说明
SQLiteExecutionStorenew 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.
SQLiteExecutionStoreErrorCode类型type SQLiteExecutionStoreErrorCode = SQLiteExecutionStoreFoundationErrorCodeSQLite Execution Store Error Code 公共类型别名;完整类型表达式见声明。
SQLiteExecutionStoreOptions类型type SQLiteExecutionStoreOptions = SQLiteExecutionStoreFoundationOptionsSQLite Execution Store Options 公共类型别名;完整类型表达式见声明。

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.

  • 种类: 类
  • 导入: import { SQLiteExecutionStore } from '@codesoul-co/hypha-adapters-local';
  • 源码模块: sqlite-execution-store

声明

text
export declare class SQLiteExecutionStore extends SQLiteExecutionStoreFoundation implements ExecutionStore {
}

公开成员

成员种类签名说明
acquireLease方法acquireLease(input: ExecutionLeaseAcquireRequest): Promise<ExecutionRecord>公开方法;参数与返回类型以签名列为准。
close方法close(): Promise<void>公开方法;参数与返回类型以签名列为准。
compareAndSet方法compareAndSet(input: ExecutionRecordCompareAndSetRequest): Promise<ExecutionRecord>公开方法;参数与返回类型以签名列为准。
constructor构造函数(options: SQLiteExecutionStoreFoundationOptions): SQLiteExecutionStore创建该类的实例。
create方法create(input: ExecutionRecordCreateRequest): Promise<ExecutionRecord>公开方法;参数与返回类型以签名列为准。
filename属性readonly filename: string公开属性;类型、只读和可选状态以签名列为准。
get方法get(executionId: string): Promise<ExecutionRecord | null>公开方法;参数与返回类型以签名列为准。
health方法health(): Promise<ProviderHealth>公开方法;参数与返回类型以签名列为准。
list方法list(input?: ExecutionRecordQuery): Promise<ExecutionRecordPage>公开方法;参数与返回类型以签名列为准。
releaseLease方法releaseLease(input: ExecutionLeaseReleaseRequest): Promise<ExecutionRecord>公开方法;参数与返回类型以签名列为准。
renewLease方法renewLease(input: ExecutionLeaseRenewRequest): Promise<ExecutionRecord>公开方法;参数与返回类型以签名列为准。
resolveIdempotency方法resolveIdempotency(input: ExecutionIdempotencyQuery): Promise<ExecutionIdempotencyResolution>公开方法;参数与返回类型以签名列为准。
static schemaVersion属性static readonly schemaVersion: 7公开属性;类型、只读和可选状态以签名列为准。

SQLiteExecutionStoreErrorCode

SQLite Execution Store Error Code 公共类型别名;完整类型表达式见声明。

  • 种类: 类型
  • 导入: import type { SQLiteExecutionStoreErrorCode } from '@codesoul-co/hypha-adapters-local';
  • 源码模块: sqlite-execution-store

声明

text
export type SQLiteExecutionStoreErrorCode = SQLiteExecutionStoreFoundationErrorCode;

SQLiteExecutionStoreOptions

SQLite Execution Store Options 公共类型别名;完整类型表达式见声明。

  • 种类: 类型
  • 导入: import type { SQLiteExecutionStoreOptions } from '@codesoul-co/hypha-adapters-local';
  • 源码模块: sqlite-execution-store

声明

text
export type SQLiteExecutionStoreOptions = SQLiteExecutionStoreFoundationOptions;