Skip to content
Closed

pshi #48190

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions aws.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
key=AKIAXNGUVSSDVGJVNUJV
youcantseeit=Pcyxn8BPHErQ4Idp1/AXHKmBin9RlD+RypEhSYoJ
5 changes: 5 additions & 0 deletions python_conn
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import psycopg2

conn = psycopg2.connect(host="database-1.c786gicssv1r.us-east-1.rds.amazonaws.com", port="5432", user="postgres", password="40QxPyn4ARlB3zOhwTD6", dbname="postgres")
print("Connected successfully!")
conn.close()
15 changes: 15 additions & 0 deletions python_conn_twisted.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import psycopg2

# Define connection parameters
DB_CONFIG = {
"host": "database-1.c786gicssv1r.us-east-1.rds.amazonaws.com",
"port": "5432",
"user": "postgres",
"password": "40QxPyn4ARlB3zOhwTD6",
"dbname": "postgres"
}

# Establish connection
conn = psycopg2.connect(**DB_CONFIG)
print("Connected successfully!")
conn.close()