kvesteri / postgresql-audit

Audit trigger for PostgreSQL
BSD 2-Clause "Simplified" License
126 stars 28 forks source link

Fix passing a string to Connection.execute() warnings #94

Closed jpvanhal closed 11 months ago

jpvanhal commented 11 months ago

Fix the following sqlalchemy.exc.RemovedIn20Warning warnings:

Passing a string to Connection.execute() is deprecated and will be
removed in version 2.0.  Use the text() construct, or the
Connection.exec_driver_sql() method to invoke a driver-level SQL
string. (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)