Skip to content

Commit

Permalink
fixed create_sqlalchemy_conn using the psycopg connstr
Browse files Browse the repository at this point in the history
  • Loading branch information
wangpatrick57 committed Sep 3, 2024
1 parent c509893 commit ba9f27c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/pg.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ def create_psycopg_conn(pgport: int = DEFAULT_POSTGRES_PORT) -> psycopg.Connecti
def create_sqlalchemy_conn(
pgport: int = DEFAULT_POSTGRES_PORT,
) -> sqlalchemy.Connection:
connstr = get_connstr(use_psycopg=True, pgport=pgport)
engine = create_engine(
connstr = get_connstr(use_psycopg=False, pgport=pgport)
engine: sqlalchemy.Engine = create_engine(
connstr,
execution_options={"isolation_level": "AUTOCOMMIT"},
)
Expand Down

0 comments on commit ba9f27c

Please sign in to comment.