Cog::Store - Storage object base class for Cog App.
connect(root) -> $store
Connect to a store. Return store object.
init(root) -> $ok
Set up a new store.
$store->get(id) -> $node
Retrieve a node object by id.
$store->add(type) -> $node
Create a new placeholder node. reserve the id.
$store->put(node) -> $ok
Save a node, and update all indices.
$store->del(id) -> $ok
Remove a node, and update all indices.
$store->schemata() -> { type => class }
Get a map of the valid node classes.
$store->index(name) -> [ keys ]
Get all keys of an index.
$store->index(name, key) -> [ values ]
Get all values of an index key.
$store->index(name, key, value) -> $ok
Add a value to an index key.
$store->unindex(name, key, value) -> $ok
Remove a value from an index key.
Node schema defines what is indexed.
Node schema comes from node class for now.
Ingy döt Net <ingy@cpan.org>
Copyright 2010-2015. Ingy döt Net.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
To install Cog, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Cog
CPAN shell
perl -MCPAN -e shell install Cog
For more information on module installation, please visit the detailed CPAN module installation guide.