Write first data ingestion and SQL support
This commit is contained in:
13
src/data/database_interaction.py
Normal file
13
src/data/database_interaction.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import psycopg2
|
||||
|
||||
conn = psycopg2.connect(
|
||||
dbname="options_db",
|
||||
user="quant_user",
|
||||
password="strong_password",
|
||||
host="144.91.73.49",
|
||||
port="5432"
|
||||
)
|
||||
|
||||
cursor = conn.cursor()
|
||||
cursor.execute("SELECT * FROM underlyings;")
|
||||
print(cursor.fetchall())
|
||||
Reference in New Issue
Block a user