summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2022-04-13 22:40:28 -0400
committerGlenn Smith <glenn@vector35.com>2022-04-13 22:40:28 -0400
commit43730ec61dc280d0915a9db0fdbd38bb1cdc8f9a (patch)
tree0a7f4cf3296407743949f18b6a6491403de38280 /python
parent91eb7be1f537b15795559ffc62c1ee6ecdcdf412 (diff)
Add Database::TrimSnapshot api
Diffstat (limited to 'python')
-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)