EllenBeta commited on
Commit
86693c5
·
verified ·
1 Parent(s): d507c85

Update _db_.py

Browse files
Files changed (1) hide show
  1. _db_.py +2 -1
_db_.py CHANGED
@@ -1,8 +1,9 @@
1
  import psycopg2
2
  from psycopg2 import OperationalError
 
3
 
4
  # Neon database connection string
5
- CONN_STRING = "postgresql://neondb_owner:npg_b9ON1Scgpxqs@ep-empty-firefly-ab6s4t97-pooler.eu-west-2.aws.neon.tech/dev?sslmode=require&channel_binding=require"
6
 
7
  def create_connection():
8
  """Create a connection to the Neon PostgreSQL database."""
 
1
  import psycopg2
2
  from psycopg2 import OperationalError
3
+ import os
4
 
5
  # Neon database connection string
6
+ CONN_STRING = os.getenv("CONN_URL")
7
 
8
  def create_connection():
9
  """Create a connection to the Neon PostgreSQL database."""