INNER CODE UNIT · Rust

build_storage_location_info_from_opts

splitgraph/seafowl · object_store_factory/src/lib.rs:191

pub async fn build_storage_location_info_from_opts(
    url: &Url,
    options: &HashMap<String, String>,
) -> Result<StorageLocationInfo, object_store::Error> {
    Ok(StorageLocationInfo {
        object_store: Arc::new(build_object_store_from_opts(url, options.clone()).await?),
        options: options.clone(),
        url: url.to_string(),
    })
}

// Go through all known keys for object store and convert them to corresponding file_io ones.
//
// For now only converts S3 keys.
// TODO: At some point this should be redundant, since there is an OpenDAL adapter for object_store,
// https://github.com/apache/iceberg-rust/issues/172
pub fn object_store_opts_to_file_io_props(
    opts: &HashMap<String, String>,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…