deltalake_core::logstore

Function logstore_for

Source
pub fn logstore_for(
    location: Url,
    options: impl Into<StorageOptions> + Clone,
    io_runtime: Option<IORuntime>,
) -> DeltaResult<LogStoreRef>
Expand description

Return the LogStoreRef for the provided Url location

This will use the built-in process global [crate::storage::ObjectStoreRegistry] by default

let location = Url::parse("memory:///").expect("Failed to make location");
let logstore = logstore_for(location, HashMap::new(), None).expect("Failed to get a logstore");