SQLite: Add backend option for pragma timeout

This commit is contained in:
Tim Wojtulewicz 2025-05-19 16:37:41 -07:00
parent f0e7b78554
commit 78dffb1d6f
4 changed files with 30 additions and 7 deletions

View file

@ -2,6 +2,8 @@
#pragma once
#include <chrono>
#include "zeek/storage/Backend.h"
// Forward declare these to avoid including sqlite3.h here
@ -62,6 +64,8 @@ private:
std::string full_path;
std::string table_name;
std::chrono::milliseconds pragma_timeout;
std::chrono::milliseconds pragma_wait_on_busy;
};
} // namespace zeek::storage::backend::sqlite