mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
SQLite: Store/lookup prepared statements instead of recreating
This commit is contained in:
parent
9d1eef3fbc
commit
e95784db16
3 changed files with 79 additions and 42 deletions
|
@ -54,6 +54,8 @@ private:
|
|||
ErrorResult checkError(int code);
|
||||
|
||||
sqlite3* db = nullptr;
|
||||
std::unordered_map<std::string, sqlite3_stmt*> prepared_stmts;
|
||||
|
||||
std::string full_path;
|
||||
std::string table_name;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue