summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.h
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.h')
-rw-r--r--source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.h b/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.h
new file mode 100644
index 0000000000..75105fe264
--- /dev/null
+++ b/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.h
@@ -0,0 +1,25 @@
+#include <sqlite3.h>
+
+struct lsqlite3_private {
+ char **options;
+ const char *basedn;
+ sqlite3 * sqlite;
+ int lock_count;
+ int last_rc;
+ struct {
+ sqlite3_stmt *begin;
+ sqlite3_stmt *commit;
+ sqlite3_stmt *rollback;
+ sqlite3_stmt *newDN;
+ sqlite3_stmt *renameDN;
+ sqlite3_stmt *deleteDN;
+ sqlite3_stmt *newObjectClass;
+ sqlite3_stmt *assignObjectClass;
+ sqlite3_stmt *newAttributeUseDefaults;
+ sqlite3_stmt *newAttribute;
+ sqlite3_stmt *addAttrValuePair;
+ sqlite3_stmt *replaceAttrValuePairs;
+ sqlite3_stmt *deleteAttrValuePairs;
+ sqlite3_stmt *insertSubclass;
+ } queries;
+};