Net::Wire10Pure Perl driver for MySQL, Sphinx and Drizzle | |
Download |
Net::Wire10 Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Dubex A/S
- Publisher web site:
- http://search.cpan.org/~dubex/
Net::Wire10 Tags
Net::Wire10 Description
Pure Perl driver for MySQL, Sphinx and Drizzle Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers.Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned servers without using an external client library such as for example libmysqlclient or libdrizzle.SYNOPSIS use Net::Wire10; my $wire = Net::Wire10->new( host => 'localhost', user => 'test', password => 'test', database => 'test' ); $wire->connect; # CREATE TABLE example $wire->query( "CREATE TABLE foo (id INT, message TEXT)" ); # INSERT example $wire->query( "INSERT INTO foo (id, message) VALUES (1, 'Hello World')" ); printf "Affected rows: %d\n", $wire->get_no_of_affected_rows; # SELECT example my $results = $wire->query("SELECT * FROM foo"); while (my $row = $results->next_hash) { printf "Id: %s, Message: %s\n", $row->{id}, $row->{message} ; } $wire->disconnect; Requirements: · Perl
Net::Wire10 Related Software