The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

DR::Tarantool::CoroClient - async coro driver for tarantool

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 exclude callback.

Returns a connector or croaks error.

Additional arguments

raise_error

If true (default behaviour) the driver will throw exception for each error.

ping

The same as "ping" in DR::Tarantool::AsyncClient exclude callback.

Returns TRUE or FALSE if an error.

insert

The same as "insert" in DR::Tarantool::AsyncClient exclude callback.

Returns tuples that were extracted from database or undef. Croaks error if an error was happened (if raise_error is true).

select

The same as "select" in DR::Tarantool::AsyncClient exclude callback.

Returns tuples that were extracted from database or undef. Croaks error if an error was happened (if raise_error is true).

update

The same as "update" in DR::Tarantool::AsyncClient exclude callback.

Returns tuples that were extracted from database or undef. Croaks error if an error was happened (if raise_error is true).

delete

The same as "delete" in DR::Tarantool::AsyncClient exclude callback.

Returns tuples that were extracted from database or undef. Croaks error if an error was happened (if raise_error is true).

call_lua

The same as "call_lua" in DR::Tarantool::AsyncClient exclude callback.

Returns tuples that were extracted from database or undef. Croaks error if an error was happened (if raise_error is true).