SQLite: Rename tuning_params to pragma_commands, move running pragmas to utility method

This commit is contained in:
Tim Wojtulewicz 2025-05-19 16:24:22 -07:00
parent 53cb3c3681
commit f0e7b78554
4 changed files with 59 additions and 67 deletions

View file

@ -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*)>;