remove DB connection check at startup

pull/10/head
Max Erenberg 1 year ago
parent 01e3bef9ca
commit a812ba94cd
  1. 5
      ceod/db/MySQLService.py
  2. 5
      ceod/db/PostgreSQLService.py

@ -26,11 +26,6 @@ class MySQLService:
self.auth_password = config.get('mysql_password')
self.host = config.get('mysql_host')
# check that database is up and that we have admin rights
test_user = "test_user_64559"
self.create_db(test_user)
self.delete_db(test_user)
@contextmanager
def mysql_connection(self):
try:

@ -26,11 +26,6 @@ class PostgreSQLService:
self.auth_password = config.get('postgresql_password')
self.host = config.get('postgresql_host')
# check that database is up and that we have admin rights
test_user = "test_user_64559"
self.create_db(test_user)
self.delete_db(test_user)
@contextmanager
def psql_connection(self):
con = None

Loading…
Cancel
Save