Skip to main content

Type Alias: LocalQueryContext

LocalQueryContext: object

Defined in: packages/tools/duckdb/src/types.ts:21

Context object for the localQuery tool

Type declaration

getDuckDB()?

optional getDuckDB: () => Promise<AsyncDuckDB | null>

Optional DuckDB instance for querying

Returns

Promise<AsyncDuckDB | null>

getValues()

getValues: (datasetName, variableName) => Promise<unknown[]>

Function to get values from a dataset

Parameters

datasetName

string

The name of the dataset

variableName

string

The name of the variable to get values for

Returns

Promise<unknown[]>

An array of values for the specified variable