@ckirg/corelib - v0.4.1
    Preparing search index...

    Interface PostgresConfig

    Configuration for Postgres dialect.

    interface PostgresConfig {
        dialect: "postgres";
        getTraceId?: () => string | undefined;
        logger?: StrictLogger;
        maxConnections?: number;
        mode: DbMode;
        paramRedactor?: ParamRedactor;
        ssl?:
            | boolean
            | {
                ca?: string;
                cert?: string;
                key?: string;
                rejectUnauthorized?: boolean;
            };
        timeoutMs?: number;
        url: string;
    }

    Hierarchy (View Summary)

    Index
    dialect: "postgres"

    Database dialect to use.

    getTraceId?: () => string | undefined

    Optional provider for a logical-operation trace id, threaded onto query logs so an AI can follow one operation across many queries/requests. The consuming app populates it (e.g. from an AsyncLocalStorage request/operation context); corelib stays ALS-ignorant.

    logger?: StrictLogger

    Logger instance (defaults to global logger.child({ section: 'Database' })).

    maxConnections?: number
    mode: DbMode

    Operation mode.

    paramRedactor?: ParamRedactor

    Opt-in param logging for the Flight-Recorder query traces. When set, each query's params are passed through this redactor and logged under params on query: exec. Unset (the default) means params are NOT logged. Use the exported defaultRedactor (or a stricter one); the consuming project owns the residual leak risk.

    ssl?:
        | boolean
        | {
            ca?: string;
            cert?: string;
            key?: string;
            rejectUnauthorized?: boolean;
        }
    timeoutMs?: number

    Query timeout in milliseconds.

    url: string

    Database URL (e.g., 'file:local.db' for SQLite, 'postgres://user:pass@host/db' for Postgres).