|
| | __construct () |
| |
| | getRow ($sQuery, $aBindings=[], $iFetchStyle=PDO::FETCH_ASSOC) |
| |
| | getColumn ($sQuery, $aBindings=[]) |
| |
| | getOne ($sQuery, $aBindings=[], $iIndex=0) |
| |
| | getFirstRow ($sQuery, $aBindings=[], $iFetchStyle=PDO::FETCH_ASSOC) |
| |
| | getNextRow () |
| |
| | getNumRows ($oStmt=null) |
| |
| | getAffectedRows ($oStmt=null) |
| |
| | query ($sQuery, $aBindings=[]) |
| |
| | res ($sQuery, $aBindings=[], $bReplaying=false) |
| |
| | getAll ($sQuery, $aBindings=[], $iFetchType=PDO::FETCH_ASSOC) |
| |
| | fillArray ($oStmt, $iFetchType=PDO::FETCH_ASSOC) |
| |
| | getAllWithKey ($sQuery, $sFieldKey, $aBindings=[], $iFetchType=PDO::FETCH_ASSOC) |
| |
| | getPairs ($sQuery, $sFieldKey, $sFieldValue, $aBindings=[]) |
| |
| | lastId () |
| |
| | listTables () |
| |
| | getFields ($sTable) |
| |
| | isFieldExists ($sTable, $sFieldName) |
| |
| | fetchField ($mixedQuery, $iField, $aBindings=[]) |
| |
| | isIndexExists ($sTable, $sIndexName) |
| |
| | escape ($sText, $bReal=false) |
| |
| | executeSQL ($sPath, $aReplace=array(), $isBreakOnError=true) |
| |
Definition at line 11 of file ChWsbUpgradeDb.php.
◆ __construct()
| ChWsbUpgradeDb::__construct |
( |
| ) |
|
◆ connect()
| ChWsbUpgradeDb::connect |
( |
| ) |
|
|
protected |
◆ disconnect()
| ChWsbUpgradeDb::disconnect |
( |
| ) |
|
|
protected |
◆ escape()
| ChWsbUpgradeDb::escape |
( |
|
$sText, |
|
|
|
$bReal = false |
|
) |
| |
- Parameters
-
| string | $sText | |
| bool | $bReal | return the actual quotes value or strip the quotes, PS: Use the pdo bindings for user's sake |
- Returns
- string
Definition at line 440 of file ChWsbUpgradeDb.php.
◆ executeSQL()
| ChWsbUpgradeDb::executeSQL |
( |
|
$sPath, |
|
|
|
$aReplace = array (), |
|
|
|
$isBreakOnError = true |
|
) |
| |
◆ fetchField()
| ChWsbUpgradeDb::fetchField |
( |
|
$mixedQuery, |
|
|
|
$iField, |
|
|
|
$aBindings = [] |
|
) |
| |
◆ fillArray()
| ChWsbUpgradeDb::fillArray |
( |
|
$oStmt, |
|
|
|
$iFetchType = PDO::FETCH_ASSOC |
|
) |
| |
- Parameters
-
| PDOStatement | $oStmt | |
| int | $iFetchType | |
- Returns
- array
Definition at line 288 of file ChWsbUpgradeDb.php.
◆ getAffectedRows()
| ChWsbUpgradeDb::getAffectedRows |
( |
|
$oStmt = null | ) |
|
execute any query return number of rows affected/false
- Parameters
-
| null | PDOStatement | $oStmt | |
- Returns
- int
Definition at line 202 of file ChWsbUpgradeDb.php.
◆ getAll()
| ChWsbUpgradeDb::getAll |
( |
|
$sQuery, |
|
|
|
$aBindings = [], |
|
|
|
$iFetchType = PDO::FETCH_ASSOC |
|
) |
| |
execute sql query and return table of records as result
- Parameters
-
| string | $sQuery | |
| array | $aBindings | |
| int | $iFetchType | |
- Returns
- array
Definition at line 267 of file ChWsbUpgradeDb.php.
◆ getAllWithKey()
| ChWsbUpgradeDb::getAllWithKey |
( |
|
$sQuery, |
|
|
|
$sFieldKey, |
|
|
|
$aBindings = [], |
|
|
|
$iFetchType = PDO::FETCH_ASSOC |
|
) |
| |
execute sql query and return table of records as result
- Parameters
-
| string | $sQuery | |
| string | $sFieldKey | |
| array | $aBindings | |
| int | $iFetchType | |
- Returns
- array
Definition at line 311 of file ChWsbUpgradeDb.php.
◆ getColumn()
| ChWsbUpgradeDb::getColumn |
( |
|
$sQuery, |
|
|
|
$aBindings = [] |
|
) |
| |
execute sql query and return a column as result
- Parameters
-
| string | $sQuery | |
| array | $aBindings | |
- Returns
- array
Definition at line 92 of file ChWsbUpgradeDb.php.
◆ getFields()
| ChWsbUpgradeDb::getFields |
( |
|
$sTable | ) |
|
◆ getFirstRow()
| ChWsbUpgradeDb::getFirstRow |
( |
|
$sQuery, |
|
|
|
$aBindings = [], |
|
|
|
$iFetchStyle = PDO::FETCH_ASSOC |
|
) |
| |
execute sql query and return the first row of result and keep $array type and poiter to all data
- Parameters
-
| string | $sQuery | |
| array | $aBindings | |
| int | $iFetchStyle | |
- Returns
- array
Definition at line 137 of file ChWsbUpgradeDb.php.
◆ getNextRow()
| ChWsbUpgradeDb::getNextRow |
( |
| ) |
|
return next row of pointed last getFirstRow calling data
- Returns
- array
Definition at line 164 of file ChWsbUpgradeDb.php.
◆ getNumRows()
| ChWsbUpgradeDb::getNumRows |
( |
|
$oStmt = null | ) |
|
◆ getOne()
| ChWsbUpgradeDb::getOne |
( |
|
$sQuery, |
|
|
|
$aBindings = [], |
|
|
|
$iIndex = 0 |
|
) |
| |
execute sql query and return one value result
- Parameters
-
| string | $sQuery | |
| array | $aBindings | |
| int | $iIndex | |
- Returns
- mixed
Definition at line 114 of file ChWsbUpgradeDb.php.
◆ getPairs()
| ChWsbUpgradeDb::getPairs |
( |
|
$sQuery, |
|
|
|
$sFieldKey, |
|
|
|
$sFieldValue, |
|
|
|
$aBindings = [] |
|
) |
| |
execute sql query and return table of records as result
- Parameters
-
| string | $sQuery | |
| string | $sFieldKey | |
| string | $sFieldValue | |
| array | $aBindings | |
- Returns
- array
Definition at line 338 of file ChWsbUpgradeDb.php.
◆ getRow()
| ChWsbUpgradeDb::getRow |
( |
|
$sQuery, |
|
|
|
$aBindings = [], |
|
|
|
$iFetchStyle = PDO::FETCH_ASSOC |
|
) |
| |
execute sql query and return one row result
- Parameters
-
| string | $sQuery | |
| array | $aBindings | |
| int | $iFetchStyle | |
- Returns
- array
Definition at line 72 of file ChWsbUpgradeDb.php.
◆ isFieldExists()
| ChWsbUpgradeDb::isFieldExists |
( |
|
$sTable, |
|
|
|
$sFieldName |
|
) |
| |
◆ isIndexExists()
| ChWsbUpgradeDb::isIndexExists |
( |
|
$sTable, |
|
|
|
$sIndexName |
|
) |
| |
◆ lastId()
| ChWsbUpgradeDb::lastId |
( |
| ) |
|
◆ listTables()
| ChWsbUpgradeDb::listTables |
( |
| ) |
|
Returns an array of all the table names in the database
- Returns
- array
Definition at line 371 of file ChWsbUpgradeDb.php.
◆ query()
| ChWsbUpgradeDb::query |
( |
|
$sQuery, |
|
|
|
$aBindings = [] |
|
) |
| |
execute any query return number of rows affected
- Parameters
-
| string | $sQuery | |
| array | $aBindings | |
- Returns
- int
Definition at line 222 of file ChWsbUpgradeDb.php.
◆ res()
| ChWsbUpgradeDb::res |
( |
|
$sQuery, |
|
|
|
$aBindings = [], |
|
|
|
$bReplaying = false |
|
) |
| |
execute any query
- Parameters
-
| string | $sQuery | |
| array | $aBindings | |
| bool | $bReplaying | |
- Returns
- PDOStatement
Definition at line 239 of file ChWsbUpgradeDb.php.
◆ $dbname
◆ $host
◆ $iCurrentFetchStyle
| ChWsbUpgradeDb::$iCurrentFetchStyle |
|
protected |
◆ $instance
| ChWsbUpgradeDb::$instance |
|
staticprotected |
◆ $link
◆ $oCurrentStmt
| ChWsbUpgradeDb::$oCurrentStmt |
|
protected |
◆ $password
| ChWsbUpgradeDb::$password |
◆ $port
◆ $socket
◆ $user
The documentation for this class was generated from the following file: