cpl.database.context¶
cpl.database.context.database_context module¶
-
class
cpl.database.context.database_context.
DatabaseContext
(database_settings: cpl.database.database_settings.DatabaseSettings)¶ Bases:
cpl.database.context.database_context_abc.DatabaseContextABC
-
connect
(connection_string: str)¶ Connects to a database with connection string :param connection_string: :return:
-
property
engine
¶
-
save_changes
()¶ Saves changes of the database
-
property
session
¶
-
cpl.database.context.database_context_abc module¶
-
class
cpl.database.context.database_context_abc.
DatabaseContextABC
(*args)¶ Bases:
abc.ABC
-
abstract
connect
(connection_string: str)¶ Connects to a database with connection string :param connection_string: :return:
-
abstract property
engine
¶
-
save_changes
()¶ Saves changes of the database
-
abstract property
session
¶
-
abstract