src/PreparedStatement.cpp
branchv_0
changeset 29 b0ef1e1dc9c8
parent 28 498d5d3406c3
child 30 629565ff82d3
--- a/src/PreparedStatement.cpp	Wed Dec 25 01:26:02 2019 +0100
+++ b/src/PreparedStatement.cpp	Wed Dec 25 01:37:05 2019 +0100
@@ -17,6 +17,8 @@
 
 #include <cstring>
 
+#include <sqlite3.h>
+
 #include "PreparedStatement.h"
 
 namespace relpipe {
@@ -99,6 +101,10 @@
 	return value ? value : ""; // TODO: support NULL values (when supported in relpipe format)
 }
 
+bool PreparedStatement::isComplete(const char* sql) {
+	return sqlite3_complete(sql);
+}
+
 }
 }
 }