kvesteri / postgresql-audit

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

Fix compatibility with Flask-SQLAlchemy<3.0 #73

Closed jpvanhal closed 1 year ago

jpvanhal commented 1 year ago

In Flask-SQLAlchemy<3.0, SignallingSession.get_bind() crashes when given a model class. Fix the issue by passing it a mapper instance instead.