pub trait ListableSubstateDatabase {
// Required method
fn list_partition_keys(
&self,
) -> Box<dyn Iterator<Item = DbPartitionKey> + '_>;
}
Expand description
A partition listing interface between Track and a database vendor.
Required Methods§
Sourcefn list_partition_keys(&self) -> Box<dyn Iterator<Item = DbPartitionKey> + '_>
fn list_partition_keys(&self) -> Box<dyn Iterator<Item = DbPartitionKey> + '_>
Iterates over all partition keys, in an arbitrary order.
§Alternatives
You likely want to use the read_partition_keys
method instead, which returns an unmapped key. This is available if
the trait ListableSubstateDatabaseExtensions
is in scope.