cpl_core.database.connection
cpl_core.database.connection.database_connection
- class cpl_core.database.connection.database_connection.DatabaseConnection(database_settings: cpl_core.database.database_settings.DatabaseSettings)
Bases:
cpl_core.database.connection.database_connection_abc.DatabaseConnectionABC
Representation of the database connection
database_settings:
cpl_core.database.database_settings.DatabaseSettings
- connect(connection_string: str)
Connects to a database by connection string
- connection_string:
str
Database connection string, see: https://docs.sqlalchemy.org/en/14/core/engines.html
- connection_string:
- property engine: <module 'sqlalchemy.engine' from '/home/sven/Nextcloud_Sven/Schreibtisch/git_sh-edraft_de/sh_cpl/cpl-env/lib/python3.9/site-packages/sqlalchemy/engine/__init__.py'>
- property session: sqlalchemy.orm.session.Session
cpl_core.database.connection.database_connection_abc
- class cpl_core.database.connection.database_connection_abc.DatabaseConnectionABC
Bases:
abc.ABC
ABC for the
cpl_core.database.connection.database_connection.DatabaseConnection
- abstract connect(connection_string: str)
Connects to a database by connection string
- connection_string:
str
Database connection string, see: https://docs.sqlalchemy.org/en/14/core/engines.html
- connection_string:
- abstract property engine: <module 'sqlalchemy.engine' from '/home/sven/Nextcloud_Sven/Schreibtisch/git_sh-edraft_de/sh_cpl/cpl-env/lib/python3.9/site-packages/sqlalchemy/engine/__init__.py'>
- abstract property session: sqlalchemy.orm.session.Session