aboutsummaryrefslogtreecommitdiff
path: root/frontend/DB.h
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/DB.h')
-rw-r--r--frontend/DB.h6
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;