Class AsyncDuckDBConnection

A thin helper to memoize the connection id

Hierarchy

  • AsyncDuckDBConnection

Constructors

Accessors

  • get bindings(): AsyncDuckDB
  • Access the database bindings

    Returns AsyncDuckDB

Methods

  • Cancel a query that was sent earlier

    Returns Promise<boolean>

  • Disconnect from the database

    Returns Promise<void>

  • Get table names

    Parameters

    • query: string

    Returns Promise<string[]>

  • Insert an arrow table from an ipc stream

    Parameters

    Returns Promise<void>

  • Insert an arrow table

    Parameters

    Returns Promise<void>

  • Insert csv file from path

    Parameters

    Returns Promise<void>

  • Insert json file from path

    Parameters

    Returns Promise<void>

  • Create a prepared statement

    Type Parameters

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

    Parameters

    • text: string

    Returns Promise<AsyncPreparedStatement<any>>

  • Run a query

    Type Parameters

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

    Parameters

    • text: string

    Returns Promise<Table<T>>

  • Send a query

    Type Parameters

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

    Parameters

    • text: string

    Returns Promise<AsyncRecordBatchStreamReader<T>>

  • Brave souls may use this function to consume the underlying connection id

    Type Parameters

    • R

    Parameters

    Returns R

Generated using TypeDoc