mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
SQLite: Rename tuning_params to pragma_commands, move running pragmas to utility method
This commit is contained in:
parent
53cb3c3681
commit
f0e7b78554
4 changed files with 59 additions and 67 deletions
|
@ -45,6 +45,11 @@ private:
|
|||
*/
|
||||
OperationResult Step(sqlite3_stmt* stmt, bool parse_value = false);
|
||||
|
||||
/**
|
||||
* Helper utility for running pragmas on the database.
|
||||
*/
|
||||
OperationResult RunPragma(std::string_view name, std::optional<std::string_view> value = std::nullopt);
|
||||
|
||||
sqlite3* db = nullptr;
|
||||
|
||||
using stmt_deleter = std::function<void(sqlite3_stmt*)>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue