kvesteri / postgresql-audit

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

Fix deprecation warning about converting a row to a dict #85

Closed jpvanhal closed 1 year ago

jpvanhal commented 1 year ago

This commit fixes the following warning by using the mappings() accessor:

sqlalchemy.exc.RemovedIn20Warning: Using non-integer/slice indices on
Row is deprecated and will be removed in version 2.0; please use
row._mapping[<key>], or the mappings() accessor on the Result object.
(Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)

Refs #62