I've got a pretty straightforward question. I intend to make a flask application that may end up making some complex SQL queries. For this reason, I have decided not to use an ORM and plus I prefer writing my own SQLs.
I wrote some simple SQLs for reading/writing data in a postgres function and then used psycopg2 to make function calls. I am thinking this approach would be better than writing raw SQLs as it would be easy to maintain.
Does anyone know of any pitfalls in taking this approach, or any limitations specific to psycopg2? Thank you.