get_database_address

pyhelpers.dbms.get_database_address(db_cls)

Get default address of a database instance.

Parameters

db_cls (object) – a class representation of a database

Returns

default address of database

Return type

str

Examples:

>>> from pyhelpers.dbms import get_database_address, PostgreSQL

>>> db_addr = get_database_address(db_cls=PostgreSQL)
>>> db_addr
None:***@None:None/None