Represents a DuckDB connection.
Signature:
export declare class Connection
A single db instance can have multiple connections. Having more than one connection instance is required when executing concurrent queries.
Constructor | Modifiers | Description |
---|---|---|
(constructor)(duckdb) | Connection constructor. |
Property | Modifiers | Type | Description |
---|---|---|---|
isClosed | boolean | If the connection is closed returns true, otherwise false. |
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. |