Menu
Hello everyone, is there any way to parse a SQL query, and do some change, adding some where conditions for example, and then compose a new SQL query?
The first thing that came into my mind is using ORM, because they can add any condition or do whatever you want with a SQL query. But I don’t know how to convert a SQL query into ORM object (Doctrine, or Propel), and if they can output the SQL query that I want.
I don’t know if my idea is feasible, and anyone can help?
Any help is appreciated and thanks in advance~