Quick note.. checking if anyone can help out here... I am close to being very stuck.
What I would like to clarify is
can you actually use a MonkeyPatch to connect to a Postgres DB?
I have explored how a MonkeyPatch could be used with the psycopg2 library, but I have not been able to get it work successfully.
For instance, this is what a standard connection would look like
psycopg2.connect(user="postgres",
password="postgres",
host="zitified-postgres",
port="5432",
database="simpledb")
Configuration #1 does not work
connection = openziti.monkeypatch()
psycopg2.connect(user="postgres",
password="postgres",
host="zitified-postgres",
port="5432",
database="simpledb")
Configuration #2 does not work
connection = openziti.monkeypatch(psycopg2.connect(user="postgres",
password="postgres",
host="zitified-postgres",
port="5432",
database="simpledb"))
Configuration #3 does not work
connection = openziti.monkeypatch(psycopg2).connect(user="postgres",
password="postgres",
host="zitified-postgres",
port="5432",
database="simpledb")
Configuration #4 does not work
with openziti.monkeypatch():
connection = psycopg2.connect(user="postgres",
password="postgres",
host="zitified-postgres",
port="5432",
database="simpledb")
What I have worked out is that I am missing something.
any tips on what I am doing wrong?
@TheLumberjack @ekoby @qrkourier