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

    Interface BaseDbConfig

    Base configuration for all database dialects.

    interface BaseDbConfig {
        dialect: "sqlite" | "postgres";
        getTraceId?: () => string | undefined;
        logger?: StrictLogger;
        mode: DbMode;
        paramRedactor?: ParamRedactor;
        timeoutMs?: number;
        url: string;
    }

    Hierarchy (View Summary)

    Index
    dialect: "sqlite" | "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' })).

    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.

    timeoutMs?: number

    Query timeout in milliseconds.

    url: string

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