dlt.common.libs.sql_alchemy_shims
Ports fragments of URL class from Sql Alchemy to use them when dependency is not available.
ImmutableDict Objects
class ImmutableDict(Dict[_KT, _VT])
Not a real immutable dict
URL Objects
class URL(NamedTuple)
Represent the components of a URL used to connect to a database.
Based on SqlAlchemy URL class with copyright as below:
engine/url.py
Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
This module is part of SQLAlchemy and is released under
the MIT License: https://www.opensource.org/licenses/mit-license.php
drivername
database backend and driver name, such as postgresql+psycopg2
username
username string
password
password, which is normally a string but may also be any object that has a __str__() method.
host
hostname or IP number. May also be a data source name for some drivers.
port
integer port number
database
database name