3 ms·
Do you treat SQL queries as strings in your code, or do you build something like an abstract syntax tree?
by eru 15y ago
Do you treat SQL queries as strings in your code, or do you build something like an abstract syntax tree?
- al_james 15y agoBuild them using a syntax builder framework, but it is possible to pass raw SQL strings in in exceptional circumstances. Obviously, the developer needs to be totally aware of the risks of this. Not ideal, but needed to solve a couple of problems.