Development Doctrine_Connection_Mysql
Doctrine Connection Mysql
Inheritence
Doctrine_Connection_Mysql < Doctrine_Connection_Common < Doctrine_Connection
Method Summary
| Returns | Name | Description |
|---|---|---|
| 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 | ||
| string | _constructPdoDsn | Overrides Connection#_constructPdoDsn(). |
| __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
-
$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($tableName, $data, $keys, $table, $fields)
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
-
(string) _constructPdoDsn()
Constructs the MySql PDO DSN.
Overrides Connection#_constructPdoDsn().
Doctrine_Connection_Mysql
-
$adapter database handler __construct($params, (Doctrine_Manager) $manager, (PDO|Doctrine_Adapter) $adapter)
the constructor




Comments (0) [ add comment ]
No Comments
Add Comment