![]() |
|
Just another Perl shrine | |
PerlMonks |
Re: Dynamic SQLby TGI (Parson) |
on Apr 07, 2015 at 02:25 UTC ( #1122652=note: print w/replies, xml ) | Need Help?? |
MidLifeXis was so kind as to recommend my module DBIx::PreQL. It's aim is to simplify the horrendous task of maintaining dynamically generated SQL. Here's one way to handle the your particular case.
Why do all this stuff?
In fact, at $WORK, we have found it worthwhile to convert static queries to PreQL. It has helped with debugging and maintenance. Because all the placeholders are labeled, they are easier to understand. PreQL also provides useful error messages that identify missing, but expected placeholder values.
In Section
Seekers of Perl Wisdom
|
|