Skip to main content

Db

Constructors

new Db()

new Db(): Db

Returns

Db

Methods

buildQuery()

buildQuery(connectionId, tableName): TableQueryBuilder

Creates TableQueryBuilder that can be used to construct sql queries.

Parameters

ParameterTypeDescription
connectionIdstringfully-qualified connection name (see [nqName])
tableNamestringdatabase table name

Returns

TableQueryBuilder

Source

src/data.ts:119


query()

query(connectionId, sql): Promise <DataFrame>

Executes a specified sql against the specified connectionId.

Parameters

ParameterTypeDescription
connectionIdstringfully-qualified connection name (see [nqName])
sqlstringSQL statement

Returns

Promise <DataFrame>

Source

src/data.ts:108