Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dr::tarantool(3pm) [debian man page]

DR::Tarantool(3pm)					User Contributed Perl Documentation					DR::Tarantool(3pm)

NAME
DR::Tarantool - perl driver for tarantool <http://tarantool.org> SYNOPSIS
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(...); DESCRIPTION
The module provides sync and async drivers for tarantool <http://tarantool.org>. The driver uses libtarantool* libraries for making requests and parsing responses. EXPORT
tarantool connects to tarantool <http://tarantool.org> in sync mode using DR::Tarantool::SyncClient. async_tarantool connects to tarantool <http://tarantool.org> in async mode using DR::Tarantool::AsyncClient. coro_tarantol connects to tarantool <http://tarantool.org> in async mode using DR::Tarantool::CoroClient. :constant Exports constants to use in request as flags: TNT_FLAG_RETURN If You use the flag, driver will return tuple that were inserted/deleted/updated. TNT_FLAG_ADD Try to add tuple. Return error if tuple is already exists. TNT_FLAG_REPLACE Try to replace tuple. Return error if tuple isn't exists. :all Exports all functions and constants. SEE ALSO
The module uses DR::Tarantool::SyncClient and (or) DR::Tarantool::AsyncClient. COPYRIGHT AND LICENSE
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. VCS
The project is placed git repo on github: https://github.com/unera/dr-tarantool/ <https://github.com/unera/dr-tarantool/>. perl v5.14.2 2012-06-06 DR::Tarantool(3pm)

Check Out this Related Man Page

DR::Tarantool::SyncClient(3pm)				User Contributed Perl Documentation			    DR::Tarantool::SyncClient(3pm)

NAME
DR::Tarantool::SyncClient - sync driver for tarantool <http://tarantool.org> SYNOPSIS
my $client = DR::Tarantool::SyncClient->connect( port => $tnt->primary_port, spaces => $spaces ); if ($client->ping) { .. }; my $t = $client->insert( first_space => [ 1, 'val', 2, 'test' ], TNT_FLAG_RETURN ); $t = $client->call_lua('luafunc' => [ 0, 0, 1 ], 'space_name'); $t = $client->select(space_name => $key); $t = $client->update(space_name => 2 => [ name => set => 'new' ]); $client->delete(space_name => $key); METHODS
connect Connects to tarantool. Arguments The same as "connect" in DR::Tarantool::AsyncClient exclude callback. Returns a connector or croaks 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. 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. 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. 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. 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. COPYRIGHT AND LICENSE
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. VCS
The project is placed git repo on github: https://github.com/unera/dr-tarantool/ <https://github.com/unera/dr-tarantool/>. perl v5.14.2 2012-06-04 DR::Tarantool::SyncClient(3pm)
Man Page