mashrur950 commited on
Commit
6902ae8
·
1 Parent(s): 0e59aa0

Add SSL mode to database connection and create settings.local.json for permissions

Browse files
.claude/settings.local.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "WebSearch"
5
+ ],
6
+ "deny": [],
7
+ "ask": []
8
+ }
9
+ }
database/connection.py CHANGED
@@ -45,7 +45,8 @@ def get_db_connection() -> psycopg2.extensions.connection:
45
  database=DB_CONFIG['database'],
46
  user=DB_CONFIG['user'],
47
  password=DB_CONFIG['password'],
48
- cursor_factory=psycopg2.extras.RealDictCursor
 
49
  )
50
 
51
  logger.info(f"Database connection established: {DB_CONFIG['database']}@{DB_CONFIG['host']}")
 
45
  database=DB_CONFIG['database'],
46
  user=DB_CONFIG['user'],
47
  password=DB_CONFIG['password'],
48
+ cursor_factory=psycopg2.extras.RealDictCursor,
49
+ sslmode='require'
50
  )
51
 
52
  logger.info(f"Database connection established: {DB_CONFIG['database']}@{DB_CONFIG['host']}")