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.h | |
parent | bdf6ac149ec260dab767663419731b302679f458 (diff) |
more small tweaks
Diffstat (limited to 'frontend/DB.h')
-rw-r--r-- | frontend/DB.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/frontend/DB.h b/frontend/DB.h index 2746e09..e3abfbf 100644 --- a/frontend/DB.h +++ b/frontend/DB.h @@ -54,7 +54,7 @@ class DBStatement { friend class DBQueryRowRange; public: - DBStatement(DB &, const std::string & query); + DBStatement(const DB &, const std::string & query); public: DBStatement & reset(); @@ -68,7 +68,7 @@ public: private: std::unique_ptr<sqlite3_stmt, std::function<void(sqlite3_stmt*)>> stmt; int param_index = 1; - DB & parent; + const DB & parent; }; class DB { @@ -76,7 +76,7 @@ class DB { public: DB(const std::string & path); - DBStatement prepare(const std::string & query); + DBStatement prepare(const std::string & query) const; private: std::unique_ptr<sqlite3, std::function<void(sqlite3*)>> db = NULL; |