Skip to content

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

Using this module

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

Import from the package entrypoint

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

import type {
  SQLiteRuntimeIntegrityStoreOptions,
} 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
SQLiteRuntimeIntegrityStoreclassnew SQLiteRuntimeIntegrityStore(options: SQLiteRuntimeIntegrityStoreOptions): SQLiteRuntimeIntegrityStoreSQLite Runtime Integrity Store class with 6 public constructor or member entries; its exact declarations are listed below.
SQLiteRuntimeIntegrityStoreOptionsinterfaceinterface SQLiteRuntimeIntegrityStoreOptionsSQLite Runtime Integrity Store Options interface with 1 public fields or methods.

SQLiteRuntimeIntegrityStore

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

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

Declaration

text
export declare class SQLiteRuntimeIntegrityStore implements RuntimeIntegrityStore {
    constructor(options: SQLiteRuntimeIntegrityStoreOptions);
    getWatermark(): Promise<RuntimeIntegrityWatermark | null>;
    putWatermark(watermark: RuntimeIntegrityWatermark, expectedLastGlobalSequence: number | null): Promise<void>;
    getRepair(repairId: string): Promise<RuntimeIntegrityRepairEvidence | null>;
    putRepair(evidence: RuntimeIntegrityRepairEvidence): Promise<void>;
    close(): void;
}

Public members

MemberKindSignatureDescription
closemethodclose(): voidPublic method; parameters and return type are shown in the signature.
constructorconstructor(options: SQLiteRuntimeIntegrityStoreOptions): SQLiteRuntimeIntegrityStoreCreates an instance of this class.
getRepairmethodgetRepair(repairId: string): Promise<RuntimeIntegrityRepairEvidence | null>Public method; parameters and return type are shown in the signature.
getWatermarkmethodgetWatermark(): Promise<RuntimeIntegrityWatermark | null>Public method; parameters and return type are shown in the signature.
putRepairmethodputRepair(evidence: RuntimeIntegrityRepairEvidence): Promise<void>Public method; parameters and return type are shown in the signature.
putWatermarkmethodputWatermark(watermark: RuntimeIntegrityWatermark, expectedLastGlobalSequence: number | null): Promise<void>Public method; parameters and return type are shown in the signature.

SQLiteRuntimeIntegrityStoreOptions

SQLite Runtime Integrity Store Options interface with 1 public fields or methods.

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

Declaration

text
export interface SQLiteRuntimeIntegrityStoreOptions {
    filename: string;
}

Contract members

MemberKindSignatureDescription
filenamepropertyfilename: stringPublic property; its type, readonly modifier and optionality are shown in the signature.