aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/sqlite.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-01-27 15:19:33 +0100
committerEelco Dolstra <edolstra@gmail.com>2017-01-27 15:19:33 +0100
commitcb1951e746cb04f331b126c746758c96bb9fdc81 (patch)
tree6a4668f294e0c1fe32faaa80d6b3c3b55623d482 /src/libstore/sqlite.hh
parent211bc7f0e6daa65fe4083334e2411bc441067904 (diff)
Periodically purge binary-cache.sqlite
Diffstat (limited to 'src/libstore/sqlite.hh')
-rw-r--r--src/libstore/sqlite.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/sqlite.hh b/src/libstore/sqlite.hh
index 7c1ed5382..4d347a2e5 100644
--- a/src/libstore/sqlite.hh
+++ b/src/libstore/sqlite.hh
@@ -31,6 +31,7 @@ struct SQLiteStmt
sqlite3 * db = 0;
sqlite3_stmt * stmt = 0;
SQLiteStmt() { }
+ SQLiteStmt(sqlite3 * db, const std::string & s) { create(db, s); }
void create(sqlite3 * db, const std::string & s);
~SQLiteStmt();
operator sqlite3_stmt * () { return stmt; }