
Public Member Functions | |
| connect () | |
| disconnect () | |
| getTableInfo ($table) | |
| queryRaw ($queryString) | |
| queryRow (Query $query) | |
| querySet (Query $query) | |
| queryColumn (Query $query) | |
| queryCount (Query $query) | |
| setDbEncoding () | |
| __destruct () | |
| getLink () | |
| isConnected () | |
| hasSequences () | |
| hasQueue () | |
| isPersistent () | |
| setPersistent ($really=false) | |
| |
| setUsername ($name) | |
| |
| setPassword ($password) | |
| |
| setHostname ($host) | |
| |
| setBasename ($base) | |
| |
| setEncoding ($encoding) | |
| |
| begin ($level=null, $mode=null) | |
| transaction handling | |
| commit () | |
| |
| rollback () | |
| |
| inTransaction () | |
| queueStart () | |
| queue handling | |
| queueStop () | |
| |
| queueDrop () | |
| |
| queueFlush () | |
| |
| isQueueActive () | |
| query (Query $query) | |
| base queries | |
| queryNull (Query $query) | |
Static Public Member Functions | |
| static | getDialect () |
| static | spawn ($connector, $user, $pass, $host, $base=null, $persistent=false, $encoding=null) |
| Shortcut. | |
Public Attributes | |
| const | FULL_TEXT_AND = 1 |
| const | FULL_TEXT_OR = 2 |
Protected Attributes | |
| $link = null | |
| $persistent = false | |
| $username = null | |
| $password = null | |
| $hostname = null | |
| $port = null | |
| $basename = null | |
| $encoding = null | |
Private Attributes | |
| $transaction = false | |
| flag to indicate whether we're in transaction | |
| $queue = array() | |
| $toQueue = false | |
Definition at line 18 of file DB.class.php.
| DB::__destruct | ( | ) |
Definition at line 58 of file DB.class.php.
References disconnect(), isConnected(), and rollback().

| DB::disconnect | ( | ) | [abstract] |
| DB::queryRaw | ( | $ | queryString | ) | [abstract] |
Reimplemented in MySQL, MySQLim, PgSQL, and SQLite.
Referenced by begin(), commit(), Sequenceless::query(), query(), queueFlush(), rollback(), and Queue::run().
| static DB::getDialect | ( | ) | [static] |
Reimplemented in MySQL, MySQLim, PgSQL, and SQLite.
Definition at line 69 of file DB.class.php.
Referenced by Sequenceless::query(), query(), and queryNull().
| static DB::spawn | ( | $ | connector, | |
| $ | user, | |||
| $ | pass, | |||
| $ | host, | |||
| $ | base = null, |
|||
| $ | persistent = false, |
|||
| $ | encoding = null | |||
| ) | [static] |
Shortcut.
Definition at line 79 of file DB.class.php.
References $encoding, $persistent, setBasename(), setEncoding(), setHostname(), setPassword(), setPersistent(), and setUsername().

| DB::getLink | ( | ) |
Definition at line 97 of file DB.class.php.
| DB::begin | ( | $ | level = null, |
|
| $ | mode = null | |||
| ) |
transaction handling
Definition at line 110 of file DB.class.php.
References queryRaw().

| DB::commit | ( | ) |
Definition at line 136 of file DB.class.php.
References queryRaw().

| DB::rollback | ( | ) |
Definition at line 151 of file DB.class.php.
References queryRaw().
Referenced by __destruct().

| DB::inTransaction | ( | ) |
Definition at line 163 of file DB.class.php.
| DB::queueStart | ( | ) |
queue handling
Definition at line 177 of file DB.class.php.
References hasQueue().

| DB::queueStop | ( | ) |
| DB::queueDrop | ( | ) |
Definition at line 198 of file DB.class.php.
Referenced by MySQLim::queueFlush(), and queueFlush().
| DB::queueFlush | ( | ) |
Reimplemented in MySQLim.
Definition at line 208 of file DB.class.php.
References queryRaw(), and queueDrop().

| DB::isQueueActive | ( | ) |
Definition at line 220 of file DB.class.php.
| DB::query | ( | Query $ | query | ) |
base queries
Reimplemented in Sequenceless.
Definition at line 230 of file DB.class.php.
References getDialect(), and queryRaw().
Referenced by PgSQL::checkSingle(), PgSQL::queryColumn(), queryNull(), PgSQL::queryRow(), and PgSQL::querySet().

| DB::queryNull | ( | Query $ | query | ) |
Definition at line 235 of file DB.class.php.
References getDialect(), query(), and DialectString::toDialectString().
Referenced by SQLite::queryCount(), PgSQL::queryCount(), MySQLim::queryCount(), and MySQL::queryCount().

| DB::isConnected | ( | ) |
Reimplemented in PgSQL, and SQLite.
Definition at line 250 of file DB.class.php.
Referenced by __destruct(), MySQLim::disconnect(), and MySQL::disconnect().
| DB::hasSequences | ( | ) |
| DB::hasQueue | ( | ) |
| DB::isPersistent | ( | ) |
Definition at line 265 of file DB.class.php.
| DB::setPersistent | ( | $ | really = false |
) |
| DB::setUsername | ( | $ | name | ) |
| DB::setPassword | ( | $ | password | ) |
Definition at line 293 of file DB.class.php.
References $password.
Referenced by spawn().
| DB::setHostname | ( | $ | host | ) |
| DB::setBasename | ( | $ | base | ) |
| DB::setEncoding | ( | $ | encoding | ) |
Definition at line 329 of file DB.class.php.
References $encoding.
Referenced by spawn().
| const DB::FULL_TEXT_AND = 1 |
Definition at line 20 of file DB.class.php.
Referenced by Expression::fullTextAnd(), Expression::fullTextRankAnd(), and PostgresDialect::prepareFullText().
| const DB::FULL_TEXT_OR = 2 |
Definition at line 21 of file DB.class.php.
Referenced by Expression::fullTextOr(), and Expression::fullTextRankOr().
DB::$link = null [protected] |
Definition at line 23 of file DB.class.php.
DB::$persistent = false [protected] |
DB::$username = null [protected] |
Definition at line 28 of file DB.class.php.
DB::$password = null [protected] |
DB::$hostname = null [protected] |
Definition at line 30 of file DB.class.php.
DB::$port = null [protected] |
DB::$basename = null [protected] |
Definition at line 32 of file DB.class.php.
DB::$encoding = null [protected] |
DB::$transaction = false [private] |
DB::$queue = array() [private] |
Definition at line 40 of file DB.class.php.
DB::$toQueue = false [private] |
Definition at line 41 of file DB.class.php.
1.5.4