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

    Interface DialectInfo

    Everything the prompt builder and guard need about a SQL dialect; core has no engine-specific ifs.

    interface DialectInfo {
        engine: EngineKind;
        grammar: GuardGrammar;
        limitStyle: "limit" | "top" | "fetch";
        promptLabel: string;
        promptNotes?: readonly string[];
        quoteChar: "\"" | "`";
    }
    Index
    engine: EngineKind
    grammar: GuardGrammar

    Grammar used by the AST guard. DuckDB parses under 'Postgresql'.

    limitStyle: "limit" | "top" | "fetch"

    Pagination form the model should use.

    promptLabel: string

    Human-readable dialect label injected into prompts, e.g. "PostgreSQL 16".

    promptNotes?: readonly string[]

    Dialect-specific prompt hints (date functions, quoting rules, ...).

    quoteChar: "\"" | "`"

    Identifier quote character used when generating SQL hints.