DR::Tarantool - perl driver for tarantool
use DR::Tarantool ':constant', 'tarantool'; use DR::Tarantool ':all'; my $tnt = tarantool host => '127.0.0.1', port => 123, spaces => { ... } ; $tnt->update( ... ); my $tnt = coro_tarantool host => '127.0.0.1', port => 123, spaces => { ... } ; use DR::Tarantool ':constant', 'async_tarantool'; async_tarantool host => '127.0.0.1', port => 123, spaces => { ... }, sub { ... } ; $tnt->update(...);
The module provides sync and async drivers for tarantool.
The driver uses libtarantool* libraries for making requests and parsing responses.
connects to tarantool in sync mode using DR::Tarantool::SyncClient.
connects to tarantool in async mode using DR::Tarantool::AsyncClient.
connects to tarantool in async mode using DR::Tarantool::CoroClient.
Exports constants to use in request as flags:
If You use the flag, driver will return tuple that were inserted/deleted/updated.
Try to add tuple. Return error if tuple is already exists.
Try to replace tuple. Return error if tuple isn't exists.
Exports all functions and constants.
The module uses DR::Tarantool::SyncClient and (or) DR::Tarantool::AsyncClient.
Copyright (C) 2011 Dmitry E. Oboukhov <unera@debian.org> Copyright (C) 2011 Roman V. Nikolaev <rshadow@rambler.ru> This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License.
The project is placed git repo on github: https://github.com/unera/dr-tarantool/.
To install DR::Tarantool, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DR::Tarantool
CPAN shell
perl -MCPAN -e shell install DR::Tarantool
For more information on module installation, please visit the detailed CPAN module installation guide.