|
Ubiquity 2.5.2
php rapid development framework
|
Ubiquity\db\providers$AbstractDbWrapper This class is part of Ubiquity. More...
Inheritance diagram for AbstractDbWrapper:Public Member Functions | |
| query (string $sql) | |
| queryAll (string $sql, int $fetchStyle=null) | |
| queryColumn (string $sql, int $columnNumber=null) | |
| _getStatement (string $sql) | |
| prepareNamedStatement (string $name, string $sql) | |
| getNamedStatement (string $name, ?string $sql=null) | |
| getStatement (string $sql) | |
| connect (string $dbType, $dbName, $serverName, string $port, string $user, string $password, array $options) | |
| getDSN (string $serverName, string $port, string $dbName, string $dbType='mysql') | |
| execute (string $sql) | |
| prepareStatement (string $sql) | |
| executeStatement ($statement, array $values=null) | |
| statementRowCount ($statement) | |
| lastInsertId ($name=null) | |
| bindValueFromStatement ($statement, $parameter, $value) | |
| Used by DAO. | |
| fetchColumn ($statement, array $values=null, int $columnNumber=null) | |
| fetchAll ($statement, array $values=null, $mode=null) | |
| fetchOne ($statement, array $values=null, $mode=null) | |
| fetchAllColumn ($statement, array $values=null, string $column=null) | |
| getTablesName () | |
| beginTransaction () | |
| commit () | |
| inTransaction () | |
| rollBack () | |
| nestable () | |
| savePoint ($level) | |
| releasePoint ($level) | |
| rollbackPoint ($level) | |
| ping () | |
| getPrimaryKeys ($tableName) | |
| getFieldsInfos ($tableName) | |
| getForeignKeys ($tableName, $pkName, $dbName=null) | |
| _optPrepareAndExecute ($sql, array $values=null, $one=false) | |
| _optExecuteAndFetch ($statement, array $values=null, $one=false) | |
| getRowNum (string $tableName, string $pkName, string $condition) | |
| groupConcat (string $fields, string $separator) | |
| toStringOperator () | |
| close () | |
| getDbInstance () | |
| setDbInstance ($dbInstance) | |
| quoteValue ($value, $type=2) | |
| getPHPType (string $dbType) | |
| migrateOperation (string $operation) | |
| Returns the SQL string for a migration operation. | |
| setIsolationLevel ($isolationLevel) | |
Static Public Member Functions | |
| static | getAvailableDrivers () |
Data Fields | |
| const | PHP_TYPES = [ 'string' => true,'bool' => true,'float' => true,'int' => true ] |
| $quote | |
Protected Attributes | |
| $dbInstance | |
| $statements | |
| $operations | |
Ubiquity\db\providers$AbstractDbWrapper This class is part of Ubiquity.
Definition at line 15 of file AbstractDbWrapper.php.
| _getStatement | ( | string | $sql | ) |
Definition at line 43 of file AbstractDbWrapper.php.
| _optExecuteAndFetch | ( | $statement, | |
| array | $values = null, |
||
$one = false |
|||
| ) |
Reimplemented in PDOWrapper.
Definition at line 116 of file AbstractDbWrapper.php.
|
abstract |
Reimplemented in PDOWrapper.
|
abstract |
Reimplemented in PDOWrapper.
|
abstract |
| close | ( | ) |
Definition at line 127 of file AbstractDbWrapper.php.
|
abstract |
Reimplemented in PDOWrapper.
|
abstract |
Reimplemented in PDOWrapper.
|
abstract |
|
abstract |
Reimplemented in PDOWrapper.
|
abstract |
Reimplemented in PDOWrapper.
|
abstract |
Reimplemented in PDOWrapper.
|
abstract |
Reimplemented in PDOWrapper.
|
abstract |
Reimplemented in PDOWrapper.
|
staticabstract |
Reimplemented in PDOWrapper.
| getDbInstance | ( | ) |
Definition at line 136 of file AbstractDbWrapper.php.
|
abstract |
Reimplemented in PDOWrapper.
|
abstract |
Reimplemented in PDOWrapper.
|
abstract |
Reimplemented in PDOWrapper.
| getNamedStatement | ( | string | $name, |
| ?string | $sql = null |
||
| ) |
Definition at line 51 of file AbstractDbWrapper.php.
| getPHPType | ( | string | $dbType | ) |
| string | $dbType |
Definition at line 159 of file AbstractDbWrapper.php.
|
abstract |
Reimplemented in PDOWrapper.
|
abstract |
Reimplemented in PDOWrapper.
|
abstract |
|
abstract |
Reimplemented in PDOWrapper.
|
abstract |
Reimplemented in PDOWrapper.
|
abstract |
Reimplemented in PDOWrapper.
|
abstract |
Reimplemented in PDOWrapper.
| migrateOperation | ( | string | $operation | ) |
Returns the SQL string for a migration operation.
| string | $operation |
Reimplemented in PDOWrapper.
Definition at line 168 of file AbstractDbWrapper.php.
|
abstract |
Reimplemented in PDOWrapper.
|
abstract |
Reimplemented in PDOWrapper.
| prepareNamedStatement | ( | string | $name, |
| string | $sql | ||
| ) |
Definition at line 47 of file AbstractDbWrapper.php.
|
abstract |
Reimplemented in PDOWrapper.
|
abstract |
Reimplemented in PDOWrapper.
|
abstract |
Reimplemented in PDOWrapper.
|
abstract |
Reimplemented in PDOWrapper.
| quoteValue | ( | $value, | |
$type = 2 |
|||
| ) |
Reimplemented in PDOWrapper.
Definition at line 148 of file AbstractDbWrapper.php.
|
abstract |
Reimplemented in PDOWrapper.
|
abstract |
Reimplemented in PDOWrapper.
|
abstract |
Reimplemented in PDOWrapper.
|
abstract |
Reimplemented in PDOWrapper.
| setDbInstance | ( | $dbInstance | ) |
| object | $dbInstance |
Definition at line 144 of file AbstractDbWrapper.php.
| setIsolationLevel | ( | $isolationLevel | ) |
| $isolationLevel |
| DBException |
Reimplemented in PDOWrapper.
Definition at line 177 of file AbstractDbWrapper.php.
|
abstract |
Reimplemented in PDOWrapper.
| toStringOperator | ( | ) |
Reimplemented in PDOWrapper.
Definition at line 123 of file AbstractDbWrapper.php.
|
protected |
Definition at line 16 of file AbstractDbWrapper.php.
|
protected |
Definition at line 18 of file AbstractDbWrapper.php.
| $quote |
Definition at line 33 of file AbstractDbWrapper.php.
|
protected |
Definition at line 17 of file AbstractDbWrapper.php.
| const PHP_TYPES = [ 'string' => true,'bool' => true,'float' => true,'int' => true ] |
Definition at line 31 of file AbstractDbWrapper.php.