Big Sister
|
Classes | |
class | DBI |
class | DBI_CSV |
class | Null |
class | SearchFilter |
Search Filter encapsulation. More... |
Public Member Functions | |
Public Object Methods | |
retval | dbcfg (scalar dbcfg) |
retval | search (scalar filter) |
retval | getnext () |
retval | add (scalar record) |
retval | delete (scalar record) |
retval | update (scalar record) |
hash | getnext_locallysorted (SearchFilter filter) |
Returns the next record from a search. | |
void | clear_sortcache (scalar size) |
Clears and setup the cache used by getnext_locallysorted(). | |
retval | schema (scalar name) |
Public Functions | |
retval | config (scalar cfg) |
retval | schemadir (scalar dir) |
retval | error (scalar msg) |
retval | database (scalar this, scalar db) |
retval | connect (scalar this, scalar dbcfg) |
retval | close () |
retval DBCapsulator::add | ( | scalar | record | ) |
Reimplemented in DBCapsulator::DBI, and DBCapsulator::Null.
void DBCapsulator::clear_sortcache | ( | scalar | size | ) |
Clears and setup the cache used by getnext_locallysorted().
It is good style to clear the cache before you first use getnext_locallysorted() on a started search.
size | The size of the sort cache. |
retval DBCapsulator::close | ( | ) |
Reimplemented in DBCapsulator::DBI, and DBCapsulator::Null.
retval DBCapsulator::config | ( | scalar | cfg | ) |
retval DBCapsulator::connect | ( | scalar | this, |
scalar | dbcfg | ||
) |
Reimplemented in DBCapsulator::DBI.
retval DBCapsulator::database | ( | scalar | this, |
scalar | db | ||
) |
retval DBCapsulator::dbcfg | ( | scalar | dbcfg | ) |
retval DBCapsulator::delete | ( | scalar | record | ) |
Reimplemented in DBCapsulator::DBI, and DBCapsulator::Null.
retval DBCapsulator::error | ( | scalar | msg | ) |
retval DBCapsulator::getnext | ( | ) |
Reimplemented in DBCapsulator::DBI, and DBCapsulator::Null.
hash DBCapsulator::getnext_locallysorted | ( | SearchFilter | filter | ) |
Returns the next record from a search.
However, records are first read into a local cache of the given size, then sorted within this cache and retrieved only after that. Records that are out of order after this local sort are silently dropped.
filter | the filter (only the order set in the filter is obeyed) |
retval DBCapsulator::schema | ( | scalar | name | ) |
retval DBCapsulator::schemadir | ( | scalar | dir | ) |
retval DBCapsulator::search | ( | scalar | filter | ) |
Reimplemented in DBCapsulator::DBI, DBCapsulator::DBI, and DBCapsulator::Null.
retval DBCapsulator::update | ( | scalar | record | ) |
Reimplemented in DBCapsulator::DBI, and DBCapsulator::Null.