11 lines
179 B
Python
11 lines
179 B
Python
import psycopg2
|
|
import os
|
|
|
|
def PSQLConnect():
|
|
conn = psycopg2.connect(os.getenv('POSTGRES_URL'))
|
|
return conn
|
|
|
|
def PSQLCursor(conn):
|
|
cur = conn.cursor()
|
|
return cur
|