Skip to content

@codesoul-co/hypha-adapters-local / postgres-execution-store-factory

Using this module

Use the Postgres execution store factory module for persisting and reading data at this boundary. It exports 1 class, 1 constant, 1 type.

Import from the package entrypoint

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

import type {
  PostgresExecutionStoreFactoryOptions,
} 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.
  • The 1 constant/enum export provides stable values, schemas, definitions, or defaults. Reuse these exports instead of copying internal values into an application.

Public exports

SymbolKindSignatureDescription
PostgresExecutionStoreFactoryclassnew PostgresExecutionStoreFactory(options: PostgresExecutionStoreFactoryOptions): PostgresExecutionStoreFactoryComposition adapter for the accepted Postgres Execution Store. Registration remains explicit: callers add this factory to the Core ExecutionStoreRegistry.
POSTGRES_EXECUTION_STORE_IDconstantconst POSTGRES_EXECUTION_STORE_ID: "execution-store.postgres"POSTGRES EXECUTION STORE ID constant exported by the postgres-execution-store-factory module.
PostgresExecutionStoreFactoryOptionstypetype PostgresExecutionStoreFactoryOptions = PostgresExecutionStoreConnectionOptionsPublic type alias for Postgres Execution Store Factory Options; the declaration contains its complete type expression.

PostgresExecutionStoreFactory

Composition adapter for the accepted Postgres Execution Store. Registration remains explicit: callers add this factory to the Core ExecutionStoreRegistry.

Declaration

text
export declare class PostgresExecutionStoreFactory implements ExecutionStoreFactory {
    readonly storeId = "execution-store.postgres";
    constructor(options: PostgresExecutionStoreFactoryOptions);
    create(): Promise<ExecutionStore>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(options: PostgresExecutionStoreFactoryOptions): PostgresExecutionStoreFactoryCreates an instance of this class.
createmethodcreate(): Promise<ExecutionStore>Public method; parameters and return type are shown in the signature.
storeIdpropertyreadonly storeId: "execution-store.postgres"Public property; its type, readonly modifier and optionality are shown in the signature.

POSTGRES_EXECUTION_STORE_ID

POSTGRES EXECUTION STORE ID constant exported by the postgres-execution-store-factory module.

Declaration

text
export declare const POSTGRES_EXECUTION_STORE_ID: "execution-store.postgres";

PostgresExecutionStoreFactoryOptions

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

Declaration

text
export type PostgresExecutionStoreFactoryOptions = PostgresExecutionStoreConnectionOptions;