duckdb
Version:
DuckDB node.js API
8 lines (5 loc) • 317 B
JavaScript
const { parentPort, workerData } = require('worker_threads');
const duckdb = require('..'); // The presence of this line alone causes the issue
new duckdb.Database(":memory:").all("SELECT 42 AS answer", function (err, res) {
parentPort.postMessage(JSON.stringify({workerData, pid: process.pid, err, res}));
});