AskSQL API Reference (core v0.10.0)
    Preparing search index...

    Interface PostgresConnectorConfig

    interface PostgresConnectorConfig {
        connectionString?: string;
        connectTimeoutMs?: number;
        database?: string;
        host?: string;
        id: string;
        includeSystemSchemas?: boolean;
        max?: number;
        name: string;
        password?: string;
        port?: number;
        sampleColumnValues?: boolean;
        ssl?: boolean | Record<string, unknown>;
        user?: string;
    }
    Index
    connectionString?: string

    Standard libpq connection string, e.g. postgres://user:pass@host/db.

    connectTimeoutMs?: number

    Connect timeout in ms. Default 15000; pg's own default is 0 (wait forever).

    database?: string
    host?: string
    id: string
    includeSystemSchemas?: boolean

    Include pg_catalog / information_schema in the catalog. Default false.

    max?: number
    name: string
    password?: string
    port?: number
    sampleColumnValues?: boolean

    Opt-in: sample distinct values from short non-enum text columns, so the model sees the real codes they hold.

    ssl?: boolean | Record<string, unknown>
    user?: string