cpl.database.connection

cpl.database.connection.database_connection

class cpl.database.connection.database_connection.DatabaseConnection(database_settings: cpl.database.database_settings.DatabaseSettings)

Bases: cpl.database.connection.database_connection_abc.DatabaseConnectionABC

connect(connection_string: str)

Connects to a database by connection string :param connection_string: :return:

property engine
property session

cpl.database.connection.database_connection_abc

class cpl.database.connection.database_connection_abc.DatabaseConnectionABC

Bases: abc.ABC

abstract connect(connection_string: str)

Connects to a database by connection string :param connection_string: :return:

abstract property engine
abstract property session