MySQL::EasyPerl extension to handle various mundane DBI session related things specific to MySQL | |
Download |
MySQL::Easy Ranking & Summary
Advertisement
- License:
- LGPL
- Publisher Name:
- Paul Miller
- Publisher web site:
- http://search.cpan.org/~jettero/
MySQL::Easy Tags
MySQL::Easy Description
Perl extension to handle various mundane DBI session related things specific to MySQL MySQL::Easy is a Perl module to handle various mundane DBI session related things specific to MySQL.SYNOPSIS use MySQL::Easy; my $dbo = MySQL::Easy->new("stocks"); my $symbols = $dbo->firstcol( "select symbol from ohlcv where symbol=?", "msft" ); my $q = $dbo->ready("select * from ohlcv where symbol=?"); for my $s (@$symbols) { my @a; $q->execute($s); # Although the regular DBI will reconnect to the server when it loses # it's connection, any queries you had previously prepared will fail # until it reconnects. easy::mysql handles all that for you so this # execute() will always work, if it's syntactically correct, even if # your server connection was lost since the last ready(); print "@a" while @a = $q->fetchrow_array; } Requirements: · Perl
MySQL::Easy Related Software