Skip to content

Commit

Permalink
docs: update db log to specify psycopg2 only
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Oct 23, 2024
1 parent 23d3a61 commit 4dd7088
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fmtm_splitter/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def create_connection(
db (str, psycopg2.extensions.connection, sqlalchemy.orm.session.Session):
string or existing db connection.
If `db` is a string, a new connection is generated.
If `db` is a psycopg connection, the connection is re-used.
If `db` is a psycopg2 connection, the connection is re-used.
If `db` is a sqlalchemy.orm.session.Session object, the connection
is also reused.
Expand All @@ -62,7 +62,7 @@ def create_connection(
conn = db.connection().connection
else:
msg = (
"The `db` variable is not a valid string, psycopg connection, "
"The `db` variable is not a valid string, psycopg2 connection, "
"or SQLAlchemy Session."
)
log.error(msg)
Expand Down

0 comments on commit 4dd7088

Please sign in to comment.