
ObjStore::Table3 - RDBMS Style Tables

my $table = ObjStore::Table3->new($near);
$table->add_index('name', sub { ObjStore::Index->new($table, path => 'name') }};

Unstructured perl databases are probably under-constrained for most applications. Tables standardize the interface for storing a bunch of records and their associated indices.
A table is no more than a collection of indices (as opposed to a some sort of heavy-weight object). Think of it like an event manager for indices.
Returns a non-empty index.
Adds $e to all table indices.
Removes $e from all table indices.
Returns the index named $index_name.
Returns the record resulting from looking up @keys in the index named $index_name. Also works in an array context.
The $offset should either be numeric or 'last'.
Adds an index. The index can be a closure if your not sure if it already exists.
Calls $coderef->($index) on each index.
Be aware that index cursors may only be used by one process/thread at a time. Therefore, it is usually not helpful to store pre-created cursors in a database.

I'm fairly satisfied at this point. Some thing may still be improved. Ideas welcome!