From 43730ec61dc280d0915a9db0fdbd38bb1cdc8f9a Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Wed, 13 Apr 2022 22:40:28 -0400 Subject: Add Database::TrimSnapshot api --- python/database.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'python') 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) -- cgit v1.3.1