Joshua Nathaniel Pritikin > ObjStore-1.59 > ObjStore::Table3

Download:
ObjStore-1.59.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 1.05   Source  

NAME ^

  ObjStore::Table3 - RDBMS Style Tables

SYNOPSIS ^

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

DESCRIPTION ^

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.

API

CAVEAT

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.

TODO ^

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

syntax highlighting: