Class JDatabaseDriverMysql
MySQL database driver
- JDatabase
- JDatabaseDriver implements JDatabaseInterface
- JDatabaseDriverMysqli
- JDatabaseDriverMysql
Direct known subclasses
Deprecated: 4.0 Use MySQLi or PDO MySQL instead
Copyright: Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
License: General Public License version 2 or later; see LICENSE
Since: 12.1
Link: https://dev.mysql.com/doc/
Located at joomla/database/driver/mysql.php
Methods summary
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public static
boolean
|
|
public
boolean
|
|
public
integer
|
#
getAffectedRows( )
Get the number of affected rows by the last INSERT, UPDATE, REPLACE or DELETE for the previous executed SQL statement. |
public
integer
|
#
getNumRows( resource $cursor = null )
Get the number of returned rows for the previous executed SQL statement. This command is only valid for statements like SELECT or SHOW that return an actual result set. To retrieve the number of rows affected by an INSERT, UPDATE, REPLACE or DELETE query, use getAffectedRows(). |
public
string
|
|
public
integer
|
|
public
mixed
|
|
public
boolean
|
|
public
boolean
|
|
protected
mixed
|
|
protected
mixed
|
#
fetchAssoc( mixed $cursor = null )
Method to fetch a row from the result set cursor as an associative array. |
protected
mixed
|
#
fetchObject( mixed $cursor = null, string $class = 'stdClass' )
Method to fetch a row from the result set cursor as an object. |
protected
|
|
protected
integer
|
|
protected
string
|
Methods inherited from JDatabaseDriverMysqli
dropTable()
,
getCollation()
,
getConnectionCollation()
,
getTableColumns()
,
getTableCreate()
,
getTableKeys()
,
getTableList()
,
lockTable()
,
renameTable()
,
transactionCommit()
,
transactionRollback()
,
transactionStart()
,
unlockTables()
Methods inherited from JDatabaseDriver
__call()
,
addDisconnectHandler()
,
alterDbCharacterSet()
,
alterTableCharacterSet()
,
convertUtf8mb4QueryToUtf8()
,
createDatabase()
,
getAlterDbCharacterSet()
,
getAlterTableCharacterSet()
,
getCallStacks()
,
getConnection()
,
getConnectors()
,
getCount()
,
getCreateDatabaseQuery()
,
getDatabase()
,
getDateFormat()
,
getExporter()
,
getImporter()
,
getInstance()
,
getIterator()
,
getLog()
,
getMinimum()
,
getName()
,
getNullDate()
,
getPrefix()
,
getQuery()
,
getServerType()
,
getTimings()
,
getUTFSupport()
,
hasUTF8mb4Support()
,
hasUTFSupport()
,
insertObject()
,
isMinimumVersion()
,
loadAssoc()
,
loadAssocList()
,
loadColumn()
,
loadNextObject()
,
loadNextRow()
,
loadObject()
,
loadObjectList()
,
loadResult()
,
loadRow()
,
loadRowList()
,
quote()
,
quoteName()
,
quoteNameStr()
,
replacePrefix()
,
setDebug()
,
setQuery()
,
splitSql()
,
truncateTable()
,
updateObject()
Methods inherited from JDatabase
getErrorMsg()
,
getErrorNum()
,
query()
,
stderr()
,
test()
Magic methods summary
Magic methods inherited from JDatabaseDriver
Properties summary
public
string
|
$name |
#
The name of the database driver. |
Properties inherited from JDatabaseDriverMysqli
$connection
,
$dbMinimum
,
$nameQuote
,
$nullDate
,
$serverType
Properties inherited from JDatabaseDriver
$callStacks
,
$count
,
$cursor
,
$debug
,
$disconnectHandlers
,
$errorMsg
,
$errorNum
,
$instances
,
$limit
,
$log
,
$offset
,
$options
,
$sql
,
$tablePrefix
,
$timings
,
$transactionDepth
,
$utf
,
$utf8mb4