kvesteri / postgresql-audit

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

Fix deprecated `sqlalchemy.orm.mapper()` usage #109

Closed jpvanhal closed 8 months ago

jpvanhal commented 8 months ago

Fix the following deprecation warning on SQLAlchemy 2.0:

sqlalchemy.exc.SADeprecationWarning: The `sqlalchemy.orm.mapper()` symbol is deprecated and will be removed in a future release. For the mapper-wide event target, use the 'sqlalchemy.orm.Mapper' class.