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