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

NAME

UnQLite - Perl bindings for UnQLite

SYNOPSIS

use UnQLite;

my $db = UnQLite->open('foo.db', UNQLITE_OPEN_READWRITE|UNQLITE_OPEN_CREATE);
$db->kv_store('foo', 'bar');
say $db->kv_fetch('foo'); # => bar
$db->kv_delete('foo');
undef $db; # close database

# tie interface
tie my %hash, 'UnQLite', 'foo.db', UNQLITE_OPEN_READWRITE;
$hash{foo} = 'bar';
say $hash{foo}; # => bar

DESCRIPTION

UnQLite is a in-process software library which implements a self-contained, serverless, zero-configuration, transactional NoSQL database engine. UnQLite is a document store database similar to MongoDB, Redis, CouchDB etc. as well a standard Key/Value store similar to BerkeleyDB, LevelDB, etc.

This module is Perl5 binding for UnQLite.

If you want to know more information about UnQLite, see http://unqlite.org/.

This version of UnQLite.pm does not provides document store feature. Patches welcome.

You can use UnQLite.pm as DBM.

METHODS

UnQLite::Cursor

UnQLite supports cursor for iterating entries.

Here is example code:

my $cursor = $db->cursor_init();
my @ret;
for ($cursor->first_entry; $cursor->valid_entry; $cursor->next_entry) {
    push @ret, $cursor->key(), $cursor->data()
}

METHODS

LICENSE

Copyright (C) tokuhirom.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

tokuhirom tokuhirom@gmail.com