DBLQuery (abstract) subclass implementing routines common for all SQL databases.
This class and all subclass should implement DBL_DEBUG_SQL global variable. When it is set value greater than zeo, the SQL queries are printed so that application developer will see what is actually sent to database. The value is decremented each call and when comes down to zero, application stops (exit). This allows you to stop executing just before the query you are debugging is sent do SQL engine.
Located in /DBLSQLQuery.php (line 23)
DBLQuery | --DBLSQLQuery
Class | Description |
---|---|
DBLPGSQLQuery | Class implementing PostgreSQL interface. |
DBLMYSQLQuery | Class implementing MYSQL interface. |
Inherited from DBLQuery
DBLQuery::$conditions
DBLQuery::$def
DBLQuery::$fields
DBLQuery::$offset
DBLQuery::$orderDef
DBLQuery::$orderReferse
DBLQuery::$records
DBLQuery::$srcDef
DBLQuery::$values
Constructor.
Add direct SQL condition.
WARNING: The value MUST be correctly escaped (AddSlashes)!
Internal function to build limit statement.
This is in separate function, since it is not SQL standard, so each database implements it slightly differently.
Internal function to build search SQL query from set values.
Executes given SQL query.
Both internal and for user use.
WARNING: The query MUST have correctly escaped (AddSlashes) all values!
Get number of the rows returned from the last SQL query.
Used by search().
Returns auto increment ID of the last inserted record.
NOTE: This function does not work correctly if you set the id manually! It only works well when it was auto_incremented (MYSQL) or gerated by a sequence object.
Returns next ID.
Return next unique ID, usually generated from a sequence.
Returns number of deleted records.
Returns number of modified records.
Set group by clausule.
Set next search query to be direct SQL.
WARNING: This query MUST have correctly escaped (AddSlashes) all values!
Inherited From DBLQuery
DBLQuery::DBLQuery()
DBLQuery::addCondition()
DBLQuery::addRecord()
DBLQuery::addValue()
DBLQuery::clearConditions()
DBLQuery::clearValues()
DBLQuery::deleteRecord()
DBLQuery::formatDateTime()
DBLQuery::getDefaultDateTime()
DBLQuery::isEmptyDateTime()
DBLQuery::modifyRecord()
DBLQuery::nextRecord()
DBLQuery::parseDateTime()
DBLQuery::reset()
DBLQuery::search()
DBLQuery::setFields()
DBLQuery::setLimit()
DBLQuery::setOrder()
DBLQuery::setSource()
Documentation generated on Mon, 6 Sep 2004 21:57:17 +0200 by phpDocumentor 1.2.3