breez_sdk_liquid::lightning_with_bolt12::util::persist

Trait MigratableKVStore

pub trait MigratableKVStore: KVStore {
    // Required method
    fn list_all_keys(&self) -> Result<Vec<(String, String, String)>, Error>;
}
Expand description

Provides additional interface methods that are required for KVStore-to-KVStore data migration.

Required Methods§

fn list_all_keys(&self) -> Result<Vec<(String, String, String)>, Error>

Returns all known keys as a list of primary_namespace, secondary_namespace, key tuples.

This is useful for migrating data from KVStore implementation to KVStore implementation.

Must exhaustively return all entries known to the store to ensure no data is missed, but may return the items in arbitrary order.

Implementors§