GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DR::TARANTOOL::COROCLIENT (3)

.ds Aq ’

NAME

DR::Tarantool::CoroClient - an asynchronous coro driver for Tarantool <http://tarantool.org>

CONTENTS

SYNOPSIS



    use DR::Tarantool::CoroClient;
    use Coro;
    my $client = DR::Tarantool::CoroClient->connect(
        port    => $port,
        spaces  => $spaces;
    );

    my @res;
    for (1 .. 100) {
        async {
            push @res => $client->select(space_name => $_);
        }
    }
    cede while @res < 100;



METHODS

    connect

Connects to Tarantool.

Arguments

The same as connect in DR::Tarantool::AsyncClient, excluding the callback.

Returns a connection handle or croaks an error.

Additional arguments
raise_error If <B>trueB> (default behaviour) the driver throws an exception for each server error.

    ping

The same as ping in DR::Tarantool::AsyncClient, excluding the callback.

Returns <B>trueB> on success, <B>falseB> on error.

    insert

The same as insert in DR::Tarantool::AsyncClient, excluding the callback.

Returns the inserted tuple or undef. Croaks an error if insert failed (<B>raise_errorB> must be set).

    select

The same as select in DR::Tarantool::AsyncClient, excluding the callback.

Returns tuple or tuples that match selection criteria, or undef if no matching tuples were found. Croaks an error if an error occurred (provided <B>raise_errorB> is set).

    update

The same as update in DR::Tarantool::AsyncClient, excluding the callback.

Returns the new value of the tuple. Croaks an error if update failed (provided <B>raise_errorB> is set).

    delete

The same as delete in DR::Tarantool::AsyncClient, excluding the callback.

Returns the deleted tuple, or undef. Croaks error if an error occurred (provided <B>raise_errorB> is set).

    call_lua

The same as call_lua in DR::Tarantool::AsyncClient, excluding the callback.

Returns a tuple or tuples returned by the called procedure. Croaks an error if an error occurred (provided <B>raise_errorB> is set).

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DR::TARANTOOL::COROCLIENT (3) 2013-05-06

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.