Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 760 Bytes

node-duckdb.duckdb.close.md

File metadata and controls

21 lines (12 loc) · 760 Bytes

Node-DuckDB API > DuckDB > close

DuckDB.close() method

Closes the underlying duckdb database, frees associated memory and renders it unusuable.

Signature:

close(): void;

Returns:

void

Remarks

Even though GC will automatically destroy the Database object at some point, DuckDB data is stored in the native address space, not the V8 heap, meaning you can easily have a Node.js process taking gigabytes of memory (more than the default heap size for Node.js) with V8 not triggering GC. So, definitely think about manually calling close().