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

    Interface GuardPolicy

    interface GuardPolicy {
        allowFileFunctions: boolean;
        denyFunctions: readonly string[];
        maxDepth: number;
        maxRows: number;
        maxSqlLength: number;
        mode: "read-only";
    }
    Index
    allowFileFunctions: boolean

    Whether file-reading table functions are allowed; true only for browser-sandboxed DuckDB.

    denyFunctions: readonly string[]

    Extra function names to deny on top of the per-dialect denylist.

    maxDepth: number
    maxRows: number

    Row cap injected as LIMIT when missing / lowered when higher.

    maxSqlLength: number
    mode: "read-only"

    v1 supports read-only exclusively; the floor is immovable.