fedimint_core::db

Function find_by_prefix_sorted_descending

Source
pub async fn find_by_prefix_sorted_descending<'r, 'inner, KP>(
    tx: &'r mut (dyn IDatabaseTransaction + 'inner),
    decoders: ModuleDecoderRegistry,
    key_prefix: &KP,
) -> impl Stream<Item = (KP::Record, <<KP as DatabaseLookup>::Record as DatabaseRecord>::Value)> + 'r
where KP: DatabaseLookup, KP::Record: DatabaseKey, 'inner: 'r,