SQLite: Store/lookup prepared statements instead of recreating

This commit is contained in:
Tim Wojtulewicz 2024-12-09 14:38:06 -07:00
parent 9d1eef3fbc
commit e95784db16
3 changed files with 79 additions and 42 deletions

View file

@ -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;
};