aboutsummaryrefslogtreecommitdiff
path: root/src/sql/SqlQuery.cpp
diff options
context:
space:
mode:
authordec05eba <0xdec05eba@gmail.com>2018-05-14 20:13:24 +0200
committerdec05eba <0xdec05eba@gmail.com>2018-05-14 20:13:27 +0200
commit8daf7b3165c65a932a7d8eae1f0a640199892ca9 (patch)
treec6d44529e4e2e0808841366f112700a0bb3d1bfd /src/sql/SqlQuery.cpp
parent1fe14e8fcfbec25cb6b70df194a82ede4cc0a3e5 (diff)
Only download nodes that we are missing
Diffstat (limited to 'src/sql/SqlQuery.cpp')
-rw-r--r--src/sql/SqlQuery.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/sql/SqlQuery.cpp b/src/sql/SqlQuery.cpp
index 47f1463..b99f92d 100644
--- a/src/sql/SqlQuery.cpp
+++ b/src/sql/SqlQuery.cpp
@@ -3,20 +3,6 @@
namespace odhtdb
{
- int SqlArg::bind(sqlite3_stmt *stmt, int paramIndex) const
- {
- switch(type)
- {
- case Type::DATA_VIEW:
- return sqlite3_bind_blob(stmt, paramIndex, dataView.data, dataView.size, SQLITE_STATIC);
- case Type::INT:
- return sqlite3_bind_int(stmt, paramIndex, integer);
- case Type::INT64:
- return sqlite3_bind_int64(stmt, paramIndex, integer64);
- }
- return SQLITE_OK;
- }
-
SqlQuery::SqlQuery(sqlite3 *_db, const char *sql, std::initializer_list<SqlArg> args) :
db(_db),
stmt(nullptr),