Skip to main content

build_object_store

Function build_object_store 

Source
pub fn build_object_store(
    url: &str,
    options: &HashMap<String, String>,
) -> Result<Arc<dyn ObjectStore>, ObjectStoreFactoryError>
Expand description

Build an [ObjectStore] from a URL and optional configuration overrides.

§Supported schemes

SchemeFeatureBuilder
file://(always)LocalFileSystem
s3://awsAmazonS3Builder
gs://gcsGoogleCloudStorageBuilder
az://, abfs://azureMicrosoftAzureBuilder

§Errors

Returns ObjectStoreFactoryError if the scheme is unsupported, requires an uncompiled feature, or the backend fails to build.