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

    Interface FileSource

    interface FileSource {
        allowGlob?: boolean;
        allowRemote?: boolean;
        encoding?: string;
        format?: FileFormat;
        path: string;
        sheet?: string;
        table: string;
    }
    Index
    allowGlob?: boolean

    Allow glob metacharacters in the path to match multiple files. Off by default.

    allowRemote?: boolean

    Allow a URL path (http/s3/...). Off by default - a URL means a network read.

    encoding?: string

    CSV text encoding (e.g. 'utf-8', 'utf-16', 'latin-1'). Default: sniffed.

    format?: FileFormat
    path: string
    sheet?: string

    Excel worksheet to read (by name, e.g. 'Q1 Sales'). Only used for xlsx; defaults to the first sheet. Register the same workbook once per sheet with distinct table names to query several sheets.

    table: string

    Table name to register the file as (sanitized).