@codesoul-co/hypha-adapters-local / runtime-integrity-store
- Package index:
@codesoul-co/hypha-adapters-local - Source:
packages/adapters-local/src/runtime-integrity-store.ts - Exports: 2
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
| Symbol | Kind | Signature | Description |
|---|---|---|---|
SQLiteRuntimeIntegrityStore | class | new SQLiteRuntimeIntegrityStore(options: SQLiteRuntimeIntegrityStoreOptions): SQLiteRuntimeIntegrityStore | SQLite Runtime Integrity Store class with 6 public constructor or member entries; its exact declarations are listed below. |
SQLiteRuntimeIntegrityStoreOptions | interface | interface SQLiteRuntimeIntegrityStoreOptions | SQLite 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
| Member | Kind | Signature | Description |
|---|---|---|---|
close | method | close(): void | Public method; parameters and return type are shown in the signature. |
constructor | constructor | (options: SQLiteRuntimeIntegrityStoreOptions): SQLiteRuntimeIntegrityStore | Creates an instance of this class. |
getRepair | method | getRepair(repairId: string): Promise<RuntimeIntegrityRepairEvidence | null> | Public method; parameters and return type are shown in the signature. |
getWatermark | method | getWatermark(): Promise<RuntimeIntegrityWatermark | null> | Public method; parameters and return type are shown in the signature. |
putRepair | method | putRepair(evidence: RuntimeIntegrityRepairEvidence): Promise<void> | Public method; parameters and return type are shown in the signature. |
putWatermark | method | putWatermark(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
| Member | Kind | Signature | Description |
|---|---|---|---|
filename | property | filename: string | Public property; its type, readonly modifier and optionality are shown in the signature. |
