@ckir/corelib - v0.1.13
    Preparing search index...

    Interface PostgresConfig

    Configuration for Postgres dialect.

    interface PostgresConfig {
        dialect: "postgres";
        logger?: StrictLogger;
        maxConnections?: number;
        mode: DbMode;
        ssl?:
            | boolean
            | {
                ca?: string;
                cert?: string;
                key?: string;
                rejectUnauthorized?: boolean;
            };
        timeoutMs?: number;
        url: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    dialect: "postgres"

    Database dialect to use.

    logger?: StrictLogger

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

    maxConnections?: number
    mode: DbMode

    Operation mode.

    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).