pub(crate) async fn setup_object_store<I, K, V>(
object_store_url: &Url,
opts: I,
) -> Result<(Box<dyn ObjectStore>, Path), Box<dyn Error + Send + Sync>>Expand description
Constructs an ObjectStore from a URL and additional object store options.
If the cloud feature is enabled and an S3 URL is passed,
it uses aws::setup_aws_object_store for setup.
This code honors the AWS credential chain, contrary to stock object_store.
opts is the same as what object_store::parse_url_opts accepts.