-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional option support for Database instance creation #21
Comments
That’d be fantastic! I am running into out of memory errors, because I cannot configure database options const db = new duckdb.Database(':memory:', {
"access_mode": "READ_WRITE",
"max_memory": "512MB",
"threads": "4"
}, (err) => {
if (err) {
console.error(err);
}
}); |
Some options can’t be changed with
I downloaded the official extensions locally—I’d like to be able to run them See docs for example with the |
It looks like the options are passed straight through to // @ts-expect-error Argument of type 'Config' is not assignable to parameter of type 'number'.
const db = await Database.create(filePath, config); |
Hi folks, thanks for surfacing this! Looks like the type of the |
Any updates on this? |
This was fixed back in 0.10.2, so passing the full configuration dictionary works now, consistent with
|
Thanks for this library, saved me some time from having to promisify the original callback based library.
One thing missing however is full support of the options supported in the original database constructor (https://github.com/duckdb/duckdb-node/blob/55a3602f42a0019b25d2ec9c48b3c6e6bf55802f/lib/duckdb.d.ts#L147C7-L147C7). I'd love to contribute this code to the repository if you are open, but didn't see any contribution guidelines. If there aren't any specific guidellines then I can probably open an PR for this later this week.
Thanks!
The text was updated successfully, but these errors were encountered: