Interface DatabaseConfig

Database connection configuration.

interface DatabaseConfig {
    url?: string;
    file?: string;
    fallback?: string;
    postgres?: {
        max?: number;
        min?: number;
        ssl?: boolean | object;
        statement_timeout?: number;
    };
}

Properties

url?: string

Database URL (PostgreSQL)

file?: string

File path (SQLite)

fallback?: string

Fallback database path if primary fails

postgres?: {
    max?: number;
    min?: number;
    ssl?: boolean | object;
    statement_timeout?: number;
}

PostgreSQL-specific options