Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 2.7 KB

node-duckdb.connection.md

File metadata and controls

37 lines (24 loc) · 2.7 KB

Node-DuckDB API > Connection

Connection class

Represents a DuckDB connection.

Signature:

export declare class Connection

Remarks

A single db instance can have multiple connections. Having more than one connection instance is required when executing concurrent queries.

Constructors

Constructor Modifiers Description
(constructor)(duckdb) Connection constructor.

Properties

Property Modifiers Type Description
isClosed boolean If the connection is closed returns true, otherwise false.

Methods

Method Modifiers Description
close() Close the connection (also closes all Readable or ResultIterator objects associated with this connection).
execute(command, options) Asynchronously executes the query and returns a Readable stream that wraps the result set.
executeIterator(command, options) Asynchronously executes the query and returns an iterator that points to the first result in the result set.