I am using the Postgres extension fuzzystrmatch.
I want to replicate this (query) to the sqlalchemy ORM.
Example
SELECT * FROM mymodel WHERE soundex(denomination, 'PHONE') > 0.4;
That the match limit can be changed.
In sqlalchemy I am doing like this, but it does not work:
MyModel.query.filter(func.soundex(MyModel.denomination) == func.soundex('PHONE') > 0.4).all()
Any ideas?