summaryrefslogtreecommitdiff
path: root/python/database.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/database.py')
-rw-r--r--python/database.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/database.py b/python/database.py
index 84d5979b..f1aefb6a 100644
--- a/python/database.py
+++ b/python/database.py
@@ -279,6 +279,10 @@ class Database:
def current_snapshot(self, value: Snapshot):
core.BNSetDatabaseCurrentSnapshot(self.handle, value.id)
+ def trim_snapshot(self, id: int):
+ """Trim a snapshot's contents in the database by id, but leave the """
+ core.BNRemoveDatabaseSnapshot(self.handle, id)
+
def remove_snapshot(self, id: int):
"""Remove a snapshot in the database by id"""
core.BNRemoveDatabaseSnapshot(self.handle, id)