Does anyone know how to use the to_tsquery () postgresql function in sqlalchemy? I searched a lot on Google, I did not find anything that I could understand. Please, help.
I hope it is available in the filter function, for example:
session.query(TableName).filter(Table.column_name.to_tsquery(search_string)).all()
The expected SQL for the above query looks something like this:
Select column_name from table_name t where t.column_name @@ to_tsquery(:search_string)
source share