diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-01 21:33:27 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-01 21:33:27 +0100 |
commit | af76b9a0ae58dc8c87548053a5bc310ad6be25ce (patch) | |
tree | b2aa5927ed19855c101120593b59a9c3224804ad /frontend/DB.cpp | |
parent | bdf6ac149ec260dab767663419731b302679f458 (diff) |
more small tweaks
Diffstat (limited to 'frontend/DB.cpp')
-rw-r--r-- | frontend/DB.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/DB.cpp b/frontend/DB.cpp index 28a1c3d..0f52433 100644 --- a/frontend/DB.cpp +++ b/frontend/DB.cpp @@ -17,11 +17,11 @@ DB::DB(const string & path) { throw Exception("sqlite3_open_v2: %d", ret); } -DBStatement DB::prepare(const string & query) { +DBStatement DB::prepare(const string & query) const { return DBStatement(*this, query); } -DBStatement::DBStatement(DB & parent, const string & query) : parent(parent) { +DBStatement::DBStatement(const DB & parent, const string & query) : parent(parent) { sqlite3_stmt * stmt = NULL; int ret = sqlite3_prepare_v2(this->parent.db.get(), query.c_str(), query.size(), &stmt, NULL); this->stmt = { |