Browse Source

enable mssql

ogert 2 years ago
parent
commit
543588b3b5
1 changed files with 3 additions and 3 deletions
  1. 3 3
      cdplib/db_handlers/SQLHandler.py

+ 3 - 3
cdplib/db_handlers/SQLHandler.py

@@ -90,9 +90,9 @@ class SQLHandler:
         # assert(isinstance(db_uri, str)),\
         #     "Parameter 'db_uri' must be of type str"
 
-        assert(re.match(r'.+://.+:(.+)?@.+:.+/.+', db_uri) is not None),\
-            ('database url does not match the pattern: '
-             'sqlalchemy_dialect//user:password@host:port/dbname')
+        # assert(re.match(r'.+://.+:(.+)?@.+:.+/.+', db_uri) is not None),\
+        #     ('database url does not match the pattern: '
+        #      'sqlalchemy_dialect//user:password@host:port/dbname')
 
         self._db_uri = db_uri