Public Member Functions |
|
| retval | dbh (scalar handle) |
| retval | create_table () |
| retval | search (scalar filter) |
| retval | search (scalar filter) |
| retval | getnext () |
| | Get the next result record of a previous search().
|
| retval | add (scalar record) |
| retval | delete (scalar record) |
| retval | update (scalar record) |
| retval | close () |
| | Closes the database connection.
|
|
| retval | connect (scalar this, scalar dbcfg) |
| DBCapsulator | database (scalar db) |
| | Opens a connection to the given database.
|
| | connect (hashref dbcfg) |
| | Connect to a database using the given database connection.
|
| hashref | dbcfg (hashref dbcfg) |
| | Get/set the configuration of the current database connection.
|
| int | search (BigSWAF::DBCapsulator::SearchFilter filter) |
| | Search the database/relation for records matching the given filter.
|
| int | add (hashref record) |
| | Add a record to the database/relation.
|
| | delete (hashref record) |
| | Remove a record from the database/relation.
|
| | update (hashref record) |
| | Update a record in the database/relation.
|
| 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) |
| retval | config (scalar cfg) |
| | Read a config file defining the data connections.
|
| retval | schemadir (scalar dir) |
| | Set the directory where DBCapsulator will find meta information for the tables.
|
| retval | error (scalar msg) |
| | Prints an error message.
|
Member Function Documentation
| retval BigSWAF::DBCapsulator::DBI::add |
( |
scalar |
record | ) |
|
| retval BigSWAF::DBCapsulator::DBI::close |
( |
| ) |
|
| retval BigSWAF::DBCapsulator::DBI::connect |
( |
scalar |
this, |
|
|
scalar |
dbcfg |
|
) |
| |
| retval BigSWAF::DBCapsulator::DBI::create_table |
( |
| ) |
|
| retval BigSWAF::DBCapsulator::DBI::dbh |
( |
scalar |
handle | ) |
|
| retval BigSWAF::DBCapsulator::DBI::delete |
( |
scalar |
record | ) |
|
| retval BigSWAF::DBCapsulator::DBI::getnext |
( |
| ) |
|
Get the next result record of a previous search().
The record is a hash with the keys being field names and values being the field values.
- Returns
- result record, undef if none is left
Reimplemented from BigSWAF::DBCapsulator.
| retval BigSWAF::DBCapsulator::DBI::search |
( |
scalar |
filter | ) |
|
| retval BigSWAF::DBCapsulator::DBI::search |
( |
scalar |
filter | ) |
|
| retval BigSWAF::DBCapsulator::DBI::update |
( |
scalar |
record | ) |
|
The documentation for this class was generated from the following file: