Ingy döt Net > Cog-0.08 > Cog::Store

Download:
Cog-0.08.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source  

NAME ^

Cog::Store - Storage object base class for Cog App.

API ^

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.

NOTES ^

AUTHOR ^

Ingy döt Net <ingy@cpan.org>

COPYRIGHT AND LICENSE ^

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

syntax highlighting: