Thanks :-) Do you have any suggestions regarding what you'd like the module to support? As I wrote I plan to add support for stored procedures in mysql, but I have neither Oracle nor PostgreSQL and do not need to support them myself. Another thing I consider adding is the ability to write the generated methods to the disk (or maybe some other cache as well?) and load them from there by the next instance of the script, though I'm not sure how big improvement would that be. And possibly some way to have all the methods generated right away instead of on the first use and optionally written somewhere. That way you might be able to generate all the code and later use the generated code directly instead of this module.
Even as it is you can use the module to generate the method and copy&paste it somewhere. If you set the environment variable DBIx_Declare_Debug (before the first use DBIx::Declare ... in your script) you get some debug info and the generated code or if you set the $db->{_show_generated_code} to a true value, you get just the generated code on STDOUT.
Jenda
Enoch was right!
Enjoy the last years of Rome.
In reply to Re^2: RFC: DBIx::Declare - generate code to call stored procs/SQL statements
by Jenda
in thread RFC: DBIx::Declare - generate code to call stored procs/SQL statements
by Jenda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |