mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
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:
1 parent
8856712171
commit
c12cd2a190
5 files changed
+112
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user