summaryrefslogtreecommitdiff
path: root/lib/dbwrap
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dbwrap')
-rw-r--r--lib/dbwrap/dbwrap.c5
-rw-r--r--lib/dbwrap/dbwrap.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/dbwrap/dbwrap.c b/lib/dbwrap/dbwrap.c
index 0e0422c41b..15eb239c35 100644
--- a/lib/dbwrap/dbwrap.c
+++ b/lib/dbwrap/dbwrap.c
@@ -480,6 +480,11 @@ void dbwrap_db_id(struct db_context *db, const uint8_t **id, size_t *idlen)
db->id(db, id, idlen);
}
+bool dbwrap_is_persistent(struct db_context *db)
+{
+ return db->persistent;
+}
+
const char *dbwrap_name(struct db_context *db)
{
return db->name;
diff --git a/lib/dbwrap/dbwrap.h b/lib/dbwrap/dbwrap.h
index 3b0d61c92c..e394296a9b 100644
--- a/lib/dbwrap/dbwrap.h
+++ b/lib/dbwrap/dbwrap.h
@@ -84,6 +84,7 @@ NTSTATUS dbwrap_transaction_start_nonblock(struct db_context *db);
int dbwrap_transaction_commit(struct db_context *db);
int dbwrap_transaction_cancel(struct db_context *db);
void dbwrap_db_id(struct db_context *db, const uint8_t **id, size_t *idlen);
+bool dbwrap_is_persistent(struct db_context *db);
const char *dbwrap_name(struct db_context *db);
/* The following definitions come from lib/dbwrap_util.c */