A minimal Database abstraction layer.
This class offers a very minimal database abstraction layer. CompInaBox is designed to run on top of the PostGreSQL Relational DataBase Management System and requires many of its features. Therefore database independence wasn't a huge concern. However having a single place to funnel all queries through is useful for future instrumentation work.
Located in /include/classes/database/DB.inc (line 23)
DB Constructor
Commit an extended transaction block
Commit an extend transaction begun by startTransaction
returns a LIMIT n OFFSET m modification to a query.
A convienence function used add LIMIT/OFFSET information to an existing query.
Execute a query that returns a list of paired values
A convienence function used to unpack the QueryResult when a a list of links is expected, the first column of each row is used as the label, with the second as the link information. Used mainly for navigation elements.
Execute a query that returns a list of paired values organized into categories
A convienence function used to unpack the QueryResult when a a list of links is expected, the first column of each row is used as a category, the second as the label, with the third as the link information. Used mainly for navigation elements.
Execute a query that returns a list of scalar values A convienence function used to unpack the QueryResult when a list of single column values is expected, for use in cases like SELECT id FROM ...
Execute a query that returns a single scalar value A convienence function used to unpack the QueryResult when a single value is expected, for use in cases like SELECT count(*) FROM ...
Execute a query against the Database Preforms the query, returns a QueryResult in all cases, however the QueryResult is only useful in cases of SELECT queries. INSERTS will update the lastOID member variable.
Error conditions are indiated in the returned QueryResult.
Abort/Rollback an extended transaction block
Abort/Rollback an extend transaction begun by startTransaction
Start an extended transaction block Turn off auto-commit and begin an extended transaction block with the given isolation level.
Documentation generated on Tue, 25 Apr 2006 13:00:51 -0400 by phpDocumentor 1.3.0RC3