pub struct Database { /* private fields */ }Source§
Source
Get a snapshot by its id, or None if no snapshot with that id exists
Source
Get a list of all snapshots in the database
Source
Get the current snapshot
Source
Sets the current snapshot to the SnapshotId.
No validation is done to ensure that the id is valid.
Source
Trim a snapshot’s contents in the database by id, but leave the parent/child hierarchy intact. Future references to this snapshot will return False for has_contents
Source
Remove a snapshot in the database by id, deleting its contents and references. Attempting to remove a snapshot with children will raise an exception.
Source
Get a list of keys for all globals in the database
Source
Get a dictionary of all globals
Source
Get a specific global by key
Source
Write a global into the database
Source
Get a specific global by key, as a binary buffer
Source
Write a binary buffer into a global in the database
Source
Get the owning FileMetadata
Source
Get the backing analysis cache kvs