diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-02-08 14:51:52 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-02-10 15:40:20 -0800 |
commit | 96e0e5252e27e231021df9058cf1e5bc29181345 (patch) | |
tree | a0c6974442a869f5edd0a3296b8e31510e348b23 /platform/default/sqlite3.hpp | |
parent | 4bde1b0c88068914bbd1f14c85dbb51818de6ac9 (diff) | |
download | qtlocation-mapboxgl-96e0e5252e27e231021df9058cf1e5bc29181345.tar.gz |
[core] Disable SQLite busy timeouts so that multiple readers can access the same database
Diffstat (limited to 'platform/default/sqlite3.hpp')
-rw-r--r-- | platform/default/sqlite3.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/default/sqlite3.hpp b/platform/default/sqlite3.hpp index 56040af46e..9e511ebaf9 100644 --- a/platform/default/sqlite3.hpp +++ b/platform/default/sqlite3.hpp @@ -3,6 +3,7 @@ #include <string> #include <vector> #include <stdexcept> +#include <chrono> typedef struct sqlite3 sqlite3; typedef struct sqlite3_stmt sqlite3_stmt; @@ -41,6 +42,7 @@ public: explicit operator bool() const; + void setBusyTimeout(std::chrono::milliseconds); void exec(const std::string &sql); Statement prepare(const char *query); |