2021.4 #19

Merged
edraft merged 237 commits from 2021.4 into master 2021-04-01 10:13:33 +02:00
2 changed files with 11 additions and 1 deletions
Showing only changes of commit 094a3c2aa9 - Show all commits

View File

@ -12,6 +12,10 @@ from cpl.database.database_settings import DatabaseSettings
class DatabaseConnection(DatabaseConnectionABC):
def __init__(self, database_settings: DatabaseSettings):
"""
Represents an connection to a database
:param database_settings:
"""
DatabaseConnectionABC.__init__(self)
self._db_settings = database_settings

View File

@ -18,4 +18,10 @@ class DatabaseConnectionABC(ABC):
def session(self) -> Session: pass
@abstractmethod
def connect(self, connection_string: str): pass
def connect(self, connection_string: str):
"""
Connects to a database by connection string
:param connection_string:
:return:
"""
pass