Public Member Functions | |
| __construct ($user, $pwd, $server, $dbname, $pfx='', $debug=false) | |
| getServerInfo () | |
| debug ($query) | |
| close () | |
| select ($query) | |
| execute ($query) | |
| getLastID () | |
| getError () | |
| esc ($str) | |
| qn ($col) | |
| begin () | |
| commit () | |
| rollback () | |
| __toString () | |
Public Attributes | |
| $con_id | |
| $pfx = '' | |
| $lastquery = '' | |
| $engine = 'SQLite' | |
| $type_cast = array() | |
Private Attributes | |
| $debug = false | |
| Pluf_DB_SQLite::__construct | ( | $ | user, | |
| $ | pwd, | |||
| $ | server, | |||
| $ | dbname, | |||
| $ | pfx = '', |
|||
| $ | debug = false | |||
| ) |
| Pluf_DB_SQLite::getServerInfo | ( | ) |
Get the version of the SQLite library.
| Pluf_DB_SQLite::debug | ( | $ | query | ) |
Log the queries. Keep track of the last query and if in debug mode keep track of all the queries in $GLOBALS['_PX_debug_data']['sql_queries']
| string | Query to keep track |
| Pluf_DB_SQLite::close | ( | ) |
| Pluf_DB_SQLite::select | ( | $ | query | ) |
| Pluf_DB_SQLite::execute | ( | $ | query | ) |
| Pluf_DB_SQLite::getLastID | ( | ) |
| Pluf_DB_SQLite::getError | ( | ) |
Returns a string ready to be used in the exception.
| Pluf_DB_SQLite::esc | ( | $ | str | ) |
| Pluf_DB_SQLite::qn | ( | $ | col | ) |
Quote the column name.
| string | Name of the column |
| Pluf_DB_SQLite::begin | ( | ) |
Start a transaction.
| Pluf_DB_SQLite::commit | ( | ) |
Commit a transaction.
| Pluf_DB_SQLite::rollback | ( | ) |
Rollback a transaction.
| Pluf_DB_SQLite::__toString | ( | ) |
| Pluf_DB_SQLite::$con_id |
| Pluf_DB_SQLite::$pfx = '' |
Pluf_DB_SQLite::$debug = false [private] |
| Pluf_DB_SQLite::$lastquery = '' |
The last query, set with debug(). Used when an error is returned.
| Pluf_DB_SQLite::$engine = 'SQLite' |
| Pluf_DB_SQLite::$type_cast = array() |