-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Closed
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.sqliteIssues and PRs related to the SQLite subsystem.Issues and PRs related to the SQLite subsystem.
Description
What is the problem this feature will solve?
When a connection to sqlite database is created by node:sqlite's DatabaseSync, the default busy_timeout value is 0. I found this because I randomly encounter error "database is locked". I can run an SQL "PRAGMA busy_timeout = 1000;" to set the timeout to be 1s.
What is the feature you are proposing to solve the problem?
- make default value of timeout greater than 0, e.g., 1s or 2s.
- make "timeout" as an option when initializing DatabaseSync in new DatabaseSync(path[, options]).
What alternatives have you considered?
No response
TheOneTheOnlyJJ
Metadata
Metadata
Assignees
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.sqliteIssues and PRs related to the SQLite subsystem.Issues and PRs related to the SQLite subsystem.
Type
Projects
Status
Awaiting Triage