Perl-UnQLite/README.md
2013-07-03 17:26:32 +09:00

50 lines
1.1 KiB
Markdown

# NAME
Unqlite - Perl bindings for Unqlite
# SYNOPSIS
use Unqlite;
my $db = Unqlite->open('foo.db');
$db->kv_store('foo', 'bar');
say $db->kv_fetch('foo'); # => bar
$db->kv_delete('foo');
undef $db; # close database
# 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/](http://unqlite.org/).
# METHODS
- `my $db = Unqlite->open('foo.db'[, $mode]);`
Open the database.
- `$db->kv_store($key, $value);`
Store the entry to database.
- `$db->kv_fetch($key);`
Fetch data from database.
- `$db->kv_delete($key);`
Delte ` $key ` from database.
# 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>