INNER CODE UNIT · Rust

object_store_opts_to_file_io_props

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

pub fn object_store_opts_to_file_io_props(
    opts: &HashMap<String, String>,
) -> HashMap<String, String> {
    let mut props = HashMap::new();

    for (key, val) in opts.iter() {
        match AmazonS3ConfigKey::from_str(key) {
            Ok(s3_key) => s3_opts_to_file_io_props(s3_key, val, &mut props),
            // for now just propagate any non-S3 keys
            _ => {
                props.insert(key.clone(), val.clone());
            }
        };
    }

    props
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…