Overview

Packages

  • Actions
  • Codegen
  • Controls
    • Base
  • DatabaseAdapters
  • Events
  • None
  • Sessions
  • Tests

Classes

  • QDatabaseBase
  • QDatabaseFieldType
  • QDatabaseForeignKey
  • QDatabaseIndex
  • QDatabaseRowBase
  • QInformixPdoDatabase
  • QMySqlDatabase
  • QMySqlDatabaseField
  • QMySqli5ClusterDatabase
  • QMySqli5Database
  • QMySqli5DatabaseField
  • QMySqli5DatabaseResult
  • QMySqliDatabase
  • QMySqliDatabaseField
  • QMySqliDatabaseResult
  • QMySqliDatabaseRow
  • QOracleDatabase
  • QOracleDatabaseRow
  • QPdoDatabase
  • QPostgreSqlDatabase
  • QPostgreSqlDatabaseField
  • QPostgreSqlDatabaseResult
  • QPostgreSqlDatabaseRow
  • QPostgreSqlPdoDatabase
  • QSqLite3PdoDatabase
  • QSqlServer2005Database
  • QSqlServer2005DatabaseField
  • QSqlServer2005DatabaseResult
  • QSqlServer2005DatabaseRow
  • QSqlServerDatabase
  • QSqlServerDatabaseField
  • QSqlServerDatabaseResult
  • QSqlServerDatabaseRow

Exceptions

  • QDatabaseExceptionBase
  • QMySqliDatabaseException
  • QOracleDatabaseException
  • QPostgreSqlDatabaseException
  • QSqlServer2005DatabaseException
  • QSqlServerDatabaseException
  • Overview
  • Package
  • Class

Class QMySqlDatabase

QBaseClass
Extended by QDatabaseBase
Extended by QMySqliDatabase
Extended by QMySqlDatabase
Package: DatabaseAdapters
Located at includes/database/QMySqlDatabase.class.php
Methods summary
public
# Connect( )

Connects to the database

Connects to the database

Overrides

QMySqliDatabase::Connect()
public mixed
# __get( string $strName )

PHP magic method

PHP magic method

Parameters

$strName
Property name

Returns

mixed

Throws

Exception|QCallerException

Overrides

QMySqliDatabase::__get()
protected mixed
# ExecuteQuery( string $strQuery )

Sends a SQL query for execution to the database In this regard, a query is a 'SELECT' statement

Sends a SQL query for execution to the database In this regard, a query is a 'SELECT' statement

Parameters

$strQuery
The Query to be executed

Returns

mixed
Result that the database returns after running the query.

Overrides

QMySqliDatabase::ExecuteQuery()
protected mixed
# ExecuteNonQuery( string $strNonQuery )

Sends a non-SELECT query (such as INSERT, UPDATE, DELETE, TRUNCATE) to DB server. In most cases, the results of this function are not used and you should not send 'SELECT' queries using this method because a result is not guaranteed to be returned

Sends a non-SELECT query (such as INSERT, UPDATE, DELETE, TRUNCATE) to DB server. In most cases, the results of this function are not used and you should not send 'SELECT' queries using this method because a result is not guaranteed to be returned

If there was an error, it would most probably be caught as an exception.

Parameters

$strNonQuery
The Query to be executed

Returns

mixed
Result that the database returns after running the query

Overrides

QMySqliDatabase::ExecuteNonQuery()
public mixed
# InsertId( null|string $strTableName = null, null|string $strColumnName = null )

Returns the ID to be inserted in a table column (normally it an autoincrement column)

Returns the ID to be inserted in a table column (normally it an autoincrement column)

Parameters

$strTableName
Table name where the ID has to be inserted
$strColumnName
Column name where the ID has to be inserted

Returns

mixed

Overrides

QMySqliDatabase::InsertId()
public mixed
# Close( )

Closes the database connection

Closes the database connection

Returns

mixed

Overrides

QMySqliDatabase::Close()
public mixed
# GetFieldsForTable( string $strTableName )

Get the list of columns/fields for a given table

Get the list of columns/fields for a given table

Parameters

$strTableName
Name of table whose fields we have to get

Returns

mixed

Overrides

QMySqliDatabase::GetFieldsForTable()
Methods inherited from QMySqliDatabase
ExecuteTransactionBegin(), ExecuteTransactionCommit(), ExecuteTransactionRollBack(), ExplainStatement(), GetForeignKeysForTable(), GetFoundRows(), GetIndexesForTable(), GetTables(), InsertOrUpdate(), SqlLimitVariablePrefix(), SqlLimitVariableSuffix(), SqlSortByVariable()
Methods inherited from QDatabaseBase
EnableProfiling(), EscapeIdentifier(), EscapeIdentifiers(), EscapeIdentifiersAndValues(), EscapeValues(), ExecuteProcedure(), ExtractCommentOptions(), NonQuery(), OutputProfiling(), PrepareStatement(), Query(), SqlVariable(), TransactionBegin(), TransactionCommit(), TransactionRollBack(), __construct(), __set(), transactionCacheFlush(), transactionCacheRestore()
Methods inherited from QBaseClass
OverrideAttributes(), __call()
Constants inherited from QDatabaseBase
Adapter
Properties summary
protected $objDb
#
Properties inherited from QMySqliDatabase
$objMySqli, $strEscapeIdentifierBegin, $strEscapeIdentifierEnd
Properties inherited from QDatabaseBase
$blnConnectedFlag, $blnEnableProfiling, $blnOnlyFullGroupBy, $intDatabaseIndex, $intTransactionDepth, $objCacheProviderStack, $objConfigArray, $strProfileArray
Magic properties inherited from QDatabaseBase
$Adapter, $AffectedRows, $Caching, $Database, $DatabaseIndex, $DateFormat, $EnableProfiling, $EscapeIdentifierBegin, $EscapeIdentifierEnd, $Host, $OnlyFullGroupBy, $Password, $Port, $Profile, $Protocol, $Server, $Service, $Username
API documentation generated by ApiGen