|NUM, NUM64, STR||The standard Tarantool <http://tarantool.org> types.|
|UTF8STR||The same as <B>STRB>, but the string is utf8-decoded after its received from the server.|
|INT & INT64||The same as <B>NUMB> and <B>NUM64B>, but contain signed values.|
|JSON||The field is encoded with JSON::XS when putting into a database, and decoded after is received back from the server.|
my $spaces = DR::Tarantool::Spaces->new( $spaces );
Return space object by number or name.
my $space = $spaces->space(name); my $space = $spaces->space(0);
Return space number by its name.
Packs one field into a format suitable for making a database request:
my $field = $spaces->pack_field(space, field, $data);
Unpack one field after getting it from the server:
my $field = $spaces->unpack_field(space, field, $data);
Pack a tuple before making database request.
my $t = $spaces->pack_tuple(space, [ 1, 2, 3 ]);
Unpack a tuple after getting it from the database:
my $t = $spaces->unpack_tuple(space, \@fields);
Create (or return) a class to hold tuple data. The class is a descendant of DR::Tarantool::Tuple. Returns a unique class (package) name. If a package with such name is already exists, the method doesnt recreate it.
Get a space name.
Get a space number.
Return field index by field name.
Return index of the first element that is not described in the space.
Pack a field before making a database request.
Unpack a single field in a server response.
Pack a tuple to the binary protocol format:
Unpack a tuple in a server response.
returns index number by its name.
returns index name by its number.
Copyright (C) 2011 Dmitry E. Oboukhov <email@example.com> Copyright (C) 2011 Roman V. Nikolaev <firstname.lastname@example.org> 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/dr-co/dr-tarantool/>.
|perl v5.20.3||DR::TARANTOOL::SPACES (3)||2014-06-16|