0.10 Doctrine_Connection_Mysql
Doctrine Connection Mysql
Inheritence
Doctrine_Connection_Mysql < Doctrine_Connection_Common < Doctrine_Connection
Method Summary
| Returns | Name | Description |
|---|---|---|
| boolean | connect | |
| string | getDatabaseName | |
| integer | replace | The REPLACE type of query does not make part of the SQL standards. Since practically only MySQL implements it natively, this type of query is emulated through this method for other DBMS using standard types of queries inside a transaction to assure the |
| setCharset | ||
| __construct |
Methods inherited from Doctrine_Connection_Common
modifyLimitQueryMethods inherited from Doctrine_Connection
incrementQueryCount , getEventManager , getDriverName , update , fetchArray , getDbh , exec , getName , setConfiguration , fetchColumn , commit , fetchBoth , beginTransaction , delete , convertBooleans , select , getDefaultIdGeneratorType , setName , errorInfo , getAvailableDrivers , dropDatabase , rollback , rethrowException , lastInsertId , getTransactionLevel , __toString , _constructPdoDsn , fetchRow , getSequenceModule , close , supports , errorCode , getFormatter , standaloneQuery , quote , modifyLimitSubquery , fetchOne , setCharset , getConfiguration , quoteIdentifier , __construct , getPdo , getAttribute , setDateFormat , count , execute , setEventManager , insert , connect , modifyLimitQuery , replace , prepare , fetchAssoc , createDatabase , fetchAll , getPropertyMethod Details
-
(boolean) connect()
Overrides connect Method, to add specific attributes PDO emulate prepares is required to avoid bugs on mysql < 5.1 when trying to prepare DROP DATABASE or CREATE DATABASE statements
Doctrine_Connection_Mysql
-
(string) getDatabaseName()
returns the name of the connected database
-
$table name of the table on which the REPLACE query will be executed. $fields associative array that describes the fields and the values that will be inserted or updated in the specified table. The indexes of the array are the names of all the fields of the table. The values of the array ar
(integer) replace(( ) $table, $fields, $keys)
Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT query, except that if there is already a row in the table with the same key field values, the REPLACE query just updates its values instead of inserting a new row.
The REPLACE type of query does not make part of the SQL standards. Since practically only MySQL implements it natively, this type of query is emulated through this method for other DBMS using standard types of queries inside a transaction to assure the
Doctrine_Connection_Mysql
-
$charset charset setCharset($charset)
Set the charset on the current connection
-
$adapter database handler __construct(( ) $manager, (PDO|Doctrine_Adapter) $adapter)
the constructor