NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Positional Parameters are a good idea (Score:2)
You might want to have a look at Tim Bunce's Advanced DBI talk [gtsm.com]
-Dom
Re:Positional Parameters are a good idea (Score:1)
Actually, my code generates SQL with positional parameters. It takes a pseudo-SQL template like this:
And turns it into this:
Simultaneously taking the name-based parameters that you provide (in a hash, i.e., unordered) and lining their values up in the correct order in a params
need testers? (Score:1)
Re:need testers? (Score:1)
Sure, thanks. (Though it doesn't really matter which RDBMS is used, since SQL::Template simply spits out SQL and a correctly ordered list of values.)
You can download version 0.01 here (ca. 3KB) [nkuitse.com] for now. Do the usual to install:
It sounds a lot like it would be useful for me with an upcoming project I'm working on.
Glad to hear it!