sqlite: add timeout options to DatabaseSync

PR-URL: https://github.com/nodejs/node/pull/57752
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Edy Silva authored and Antoine du Hamel committed 2025-05-19 12:14:07 +02:00
1 parent 8856712171
commit c12cd2a190
5 files changed
+112

No files matched your search

+5
View File
@@ -35,11 +35,16 @@ class DatabaseOpenConfiguration {
inline void set_enable_dqs(bool flag) { enable_dqs_ = flag; }
inline void set_timeout(int timeout) { timeout_ = timeout; }
inline int get_timeout() { return timeout_; }
private:
std::string location_;
bool read_only_ = false;
bool enable_foreign_keys_ = true;
bool enable_dqs_ = false;
int timeout_ = 0;
};
class StatementSync;