Skip to main content

from_config

Function from_config 

Source
pub async fn from_config(
    config: StorageConfig,
    streams: &ChangeStreamFactory,
) -> Result<Box<dyn Backend>>
Expand description

Constructs a type-erased Backend from the given StorageConfig.

Backends that configured a ChangeStream get one from streams; the rest report nothing.