SQL.pm
- SQL.pm, wrapper module for DBI with simplified API
- sql_connect("dbi:Pg:dbname=httpd");
- sql_table("prices");
- $item = "foo";
- $price = 1000;
- sql_insert(*item, *price);
- $price += 100;
- sql_update(*price, item => "foo");
- sql_select(*a, *b, *c, ...);
- while (sql_fetch) { do_something($a, $b, $c) }
- sql_dbh gives access to underlying $dbh handle