[add]: Database config

This commit is contained in:
VivianDee
2025-09-24 10:59:43 +01:00
parent 43f2ed5252
commit 46d2754ad9
2 changed files with 56 additions and 5 deletions
+51
View File
@@ -591,3 +591,54 @@ Help: https://docs.oracle.com/error-help/db/ora-00936/
}
2025-09-19 11:27:24,628 - INFO - [2025-09-19 11:27:24] Salary detection complete
2025-09-19 11:29:13,095 - INFO - Shutting down Salary Analytics API...
2025-09-24 09:47:38,012 - INFO - Initializing pipeline...
2025-09-24 09:47:38,017 - INFO - [2025-09-24 09:47:38] Detecting salary...
2025-09-24 09:47:38,024 - INFO - Started autonomous salary detection loop.
2025-09-24 09:47:38,077 - INFO - Server running on hostname: 0b21809edf52
2025-09-24 09:47:38,079 - INFO - Server IP address: 172.25.0.2
2025-09-24 09:47:38,080 - INFO - Server is accessible at:
2025-09-24 09:47:38,081 - INFO - - http://localhost:8000
2025-09-24 09:47:38,082 - INFO - - http://127.0.0.1:8000
2025-09-24 09:47:38,083 - INFO - - http://172.25.0.2:8000
2025-09-24 09:47:38,084 - INFO - Pipeline initialized successfully
2025-09-24 09:47:41,272 - INFO - POST http://www.simbrellang.net:5000/autocall/analytic-salary-detect status: 200, response: {
"data": [],
"error": {},
"message": "AutoCall Add Salary Successful",
"status": true,
"statusCode": 200
}
2025-09-24 09:47:41,273 - INFO - [2025-09-24 09:47:41] Salary detection complete
2025-09-24 09:49:41,290 - INFO - [2025-09-24 09:49:41] Detecting salary...
2025-09-24 09:49:43,791 - INFO - POST http://www.simbrellang.net:5000/autocall/analytic-salary-detect status: 200, response: {
"data": [],
"error": {},
"message": "AutoCall Add Salary Successful",
"status": true,
"statusCode": 200
}
2025-09-24 09:49:43,791 - INFO - [2025-09-24 09:49:43] Salary detection complete
2025-09-24 09:50:21,300 - INFO - Shutting down Salary Analytics API...
2025-09-24 09:59:27,300 - INFO - generated new fontManager
2025-09-24 09:59:30,871 - INFO - Initializing pipeline...
2025-09-24 09:59:30,872 - INFO - [2025-09-24 09:59:30] Detecting salary...
2025-09-24 09:59:30,872 - INFO - Started autonomous salary detection loop.
2025-09-24 09:59:30,877 - INFO - Server running on hostname: bfe07c2f7da2
2025-09-24 09:59:30,878 - INFO - Server IP address: 172.25.0.2
2025-09-24 09:59:30,878 - INFO - Server is accessible at:
2025-09-24 09:59:30,883 - INFO - - http://localhost:8000
2025-09-24 09:59:30,884 - INFO - - http://127.0.0.1:8000
2025-09-24 09:59:30,887 - INFO - - http://172.25.0.2:8000
2025-09-24 09:59:30,889 - INFO - Pipeline initialized successfully
2025-09-24 09:59:32,676 - INFO - POST http://www.simbrellang.net:5000/autocall/analytic-salary-detect status: 200, response: {
"data": [],
"error": {},
"message": "AutoCall Add Salary Successful",
"status": true,
"statusCode": 200
}
2025-09-24 09:59:32,705 - INFO - [2025-09-24 09:59:32] Salary detection complete
+5 -5
View File
@@ -37,14 +37,14 @@ DB_CONFIG = {
DNS = f"(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST={DB_CONFIG['host']})(PORT={DB_CONFIG['port']}))(CONNECT_DATA=(SID={DB_CONFIG['sid']})))"
# Database Connection
# SQLALCHEMY_DATABASE_URI = (f"oracle+oracledb://{DB_CONFIG['user']}:{DB_CONFIG['password']}@{DNS}")
SQLALCHEMY_DATABASE_URI = (f"oracle+oracledb://{DB_CONFIG['user']}:{DB_CONFIG['password']}@{DNS}")
# SQLAlchemy Configuration
SQLALCHEMY_DATABASE_URI = (
f"postgresql://{DB_CONFIG['user']}:{DB_CONFIG['password']}@"
f"{DB_CONFIG['host']}:{DB_CONFIG['port']}/{DB_CONFIG['name']}"
)
# SQLALCHEMY_DATABASE_URI = (
# f"postgresql://{DB_CONFIG['user']}:{DB_CONFIG['password']}@"
# f"{DB_CONFIG['host']}:{DB_CONFIG['port']}/{DB_CONFIG['name']}"
# )
SQLALCHEMY_TRACK_MODIFICATIONS = False