Skip to main content

insert_url_handler

Function insert_url_handler 

Source
pub fn insert_url_handler(
    scheme: impl AsRef<str>,
    handler_closure: Arc<dyn Fn(&Url, HashMap<String, String>) -> Result<(Box<dyn ObjectStore>, Path), Error> + Send + Sync>,
) -> Result<(), Error>
Expand description

Insert a new URL handler for store_from_url_opts with the given scheme. This allows users to provide their own custom URL handler to plug new delta_kernel::object_store::ObjectStore instances into delta-kernel, which is used by store_from_url_opts to parse the URL.