POE::Component::EasyDBIPerl extension for asynchronous non-blocking DBI calls in POE | |
Download |
POE::Component::EasyDBI Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- David Davis
- Publisher web site:
- http://search.cpan.org/~xantus/POE-Component-Proxy-MSN-0.02/lib/POE/Component/Proxy/MSN.pm
POE::Component::EasyDBI Tags
POE::Component::EasyDBI Description
Perl extension for asynchronous non-blocking DBI calls in POE POE::Component::EasyDBI is a Perl module for asynchronous non-blocking DBI calls in POE.SYNOPSIS use POE qw( Component::EasyDBI ); # Set up the DBI POE::Component::EasyDBI->spawn( # or new(), witch returns an obj alias => 'EasyDBI', dsn => 'DBI:mysql:database=foobaz;host=192.168.1.100;port=3306', username => 'user', password => 'pass', options => { AutoCommit => 0, }, ); # Create our own session to communicate with EasyDBI POE::Session->create( inline_states => { _start => sub { $_->post( 'EasyDBI', do => { sql => 'CREATE TABLE users (id INT, username VARCHAR(100)', event => 'table_created', } ); }, table_created => sub { $_->post( 'EasyDBI', insert => { # multiple inserts insert => , }, ); $_->post( 'EasyDBI' => 'commit' ); $_->post( 'EasyDBI' => 'shutdown' ); }, }, ); $poe_kernel->run(); Requirements: · Perl
POE::Component::EasyDBI Related Software