@quack-protocol/sdk - v0.3.0
    Preparing search index...

    Interface QuackArrowTableOptions

    Options for converting Quack chunks into a Flechette Arrow table.

    interface QuackArrowTableOptions {
        duckTypes?: readonly LogicalType[];
        useBigInt?: boolean;
        useBigIntTimestamp?: boolean;
        useDate?: boolean;
        useDecimalInt?: boolean;
        useGeoJSON?: boolean;
        useMap?: boolean;
        useProxy?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    duckTypes?: readonly LogicalType[]

    DuckDB logical types to use when chunks are empty or types should be overridden.

    useBigInt?: boolean

    If true, extract 64-bit integers as JavaScript BigInt values. Otherwise, coerce long integers to JavaScript number values (default).

    useBigIntTimestamp?: boolean

    If true, extract 64-bit timestamps as JavaScript BigInt values. Otherwise, coerce timestamps to float milliseconds.

    useDate?: boolean

    If true, extract dates and timestamps as JavaScript Date objects. Otherwise, return numerical timestamp values (default).

    useDecimalInt?: boolean

    If true, extract decimal-type data as scaled integer values, where fractional digits are scaled to integer positions. Returned integers are BigInt values for decimal bit widths of 64 bits or higher and 32-bit integers (as JavaScript number) otherwise. If false, decimals are converted to floating-point numbers (default).

    useGeoJSON?: boolean

    If true, extract geometry data in GeoArrow well-known binary (WKB) or well-known text (WKT) formats as GeoJSON geometry objects. Geometry columns are identified by the field metadata key ARROW:extension:name with value geoarrow.wkb or geoarrow.wkt. Otherwise, return raw WKB byte arrays or WKT strings (default).

    useMap?: boolean

    If true, extract Arrow 'Map' values as JavaScript Map instances. Otherwise, return an array of [key, value] pairs compatible with both Map and Object.fromEntries (default).

    useProxy?: boolean

    If true, extract Arrow 'Struct' values and table row objects using zero-copy proxy objects that extract data from underlying Arrow batches. The proxy objects can improve performance and reduce memory usage, but do not support property enumeration (Object.keys, Object.values, Object.entries) or spreading ({ ...object }).