|
@@ -65,7 +65,8 @@ class SQLHandler:
|
|
|
|
|
|
from libraries.configuration import default as cfg
|
|
|
|
|
|
- if cfg["SQL"]["DRIVER"]:
|
|
|
+
|
|
|
+ if "SQL_DRIVER" in cfg["SQL"].keys():
|
|
|
db_uri = sqlalchemy.engine.url.URL.create(
|
|
|
cfg["SQL"]["SQL_DIALECT"],
|
|
|
username=cfg["SQL"]["SQL_USER"],
|
|
@@ -73,7 +74,7 @@ class SQLHandler:
|
|
|
host=cfg["SQL"]["SQL_HOST"],
|
|
|
port=cfg["SQL"]["SQL_PORT"],
|
|
|
database=cfg["SQL"]["SQL_DATABASE_NAME"],
|
|
|
- query=dict(driver=cfg["SQL"]["DRIVER"])
|
|
|
+ query=dict(driver=cfg["SQL"]["SQL_DRIVER"])
|
|
|
)
|
|
|
else:
|
|
|
# TODO : See if this still connect to Mariadb, also try to change to sqlalchemy.engine.url.URL.create
|