Skip to main content

by_url

Get backend class by URL.

def by_url(
backend: string,
loader: callable
) - > tuple

Get backend class by URL.

Parameters​

NameTypeDescription
backendstringThe connection URL or backend scheme name used to identify the desired backend class.
loadercallableAn optional custom loader function used to resolve the backend name to a class.

Returns​

TypeDescription
tupleA tuple containing the resolved backend class and the original or modified connection URL string.