MATSUNO★Tokuhiro > Net-Drizzle-0.07 > Net::Drizzle::Connection

Download:
Net-Drizzle-0.07.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Net::Drizzle::Connection - Connection object for Net::Drizzle

METHODS ^

my $con = Net::Drizzle::Connection->new();

Create new instance of Net::Drizzle::Connection.

my ($ret, $result) = $con->query('select * from foo');

Send query to server.

$con->drizzle()

Get the instance of Net::Drizzle that the connection belongs to.

$con->close();

Close server connection.

$con->connect()

Connect to server.

$con->set_revents($revents);

Set events that are ready for a connection. This is used with the external event callbacks.

my $events = $con->events();

Get events for connection.

$con->set_db($dbname);

set the db name.

$con->set_data($data);

Set application data for a connection.

$con->data($data);

Get application data for a connection.

$con->protocol_version($protocol);

Get protocol version for a connection.

$con->set_protocol_version($protocol);

Set protocol version for a connection.

$con->set_scramble($scramble);

Set scramble buffer for a connection.

$con->set_status($status);

Set status for a connection.

$con->set_capabilities($capabilities);

Set capabilities for a connection.

$con->set_charset($charset);

Set charset for a connection.

$con->set_thread_id($thread_id);

Set thread_id for a connection.

$con->set_max_packet_size($max_packet_size);

Set max_packet_size for a connection.

$con->set_fd($fd)

Use given file descriptor for connection.

$con->result_create($fd)

Initialize a result structure.

$con->command_buffer()

Read command and buffer it.

my $fd = $con->fd()

Get file descriptor for connection.

my $<?= $v ?> = $con-><?= $v ?>();

Get the server <?= $v ?>

$con->set_tcp($host, $port);

set up the tcp thing.

$con->set_auth($user, $password);

set up authentication thing

$con->options($opt);

Get options for a connection.

$con->add_options($opt);

Add options for a connection.

my $new_con = $con->clone();

clone the connection.

my $sth = $con->query_add('select * from foo');

add the query for concurrent request.

my $sth = $con->query_str('select * from foo');

create new query

my $fh = $con->fh()

Get file handle for connection.

SERVER METHODS

$con->server_handshake_write();

Write server handshake packet.

$con->client_handshake_read();

Read client handshake packet.

$con->set_server_version($ver);

Set server version for connection.

AUTHOR ^

Tokuhiro Matsuno

syntax highlighting: