Class DuckDBConnection

A thin helper to bind the connection id and talk record batches

Constructors

Methods

  • Create a scalar function

    Parameters

    • name: string
    • returns: DataType<Type, any>
    • func: ((...args) => void)
        • (...args): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns void

  • Send a query

    Type Parameters

    • T extends {
          [key: string]: arrow.DataType;
      } = any

    Parameters

    • text: string
    • allowStreamResult: boolean = false

    Returns Promise<RecordBatchStreamReader<T>>