Property | Type | Description | |
---|---|---|---|
$_defaultStmtClass | string | Default class name for a DB statement. |
Method | Description | |
---|---|---|
closeConnection ( ) : void | Force the connection to close. | |
exec ( mixed $sql ) : integer | Executes an SQL statement and return the number of affected rows | |
getServerVersion ( ) : string | Retrieve server version in PHP style | |
isConnected ( ) : boolean | Test if a connection is active | |
lastInsertId ( string $tableName = null, string $primaryKey = null ) : string | Gets the last ID generated automatically by an IDENTITY/AUTOINCREMENT column. | |
prepare ( string $sql ) : PDOStatement | Prepares an SQL statement. | |
query ( string | Zend_Db_Select $sql, array $bind = [] ) : Zend_Db_Statement_Pdo | Special handling for PDO query(). | |
setFetchMode ( integer $mode ) : void | Set the PDO fetch mode. | |
supportsParameters ( string $type ) : boolean | Check if the adapter supports real SQL parameters. |
Method | Description | |
---|---|---|
_beginTransaction ( ) | Begin a transaction. | |
_commit ( ) | Commit a transaction. | |
_connect ( ) : void | Creates a PDO object and connects to the database. | |
_dsn ( ) : string | Creates a PDO DSN for the adapter from $this->_config settings. | |
_quote ( string $value ) : string | Quote a raw string. | |
_rollBack ( ) | Roll-back a transaction. |
public closeConnection ( ) : void | ||
return | void |
public getServerVersion ( ) : string | ||
return | string |
public isConnected ( ) : boolean | ||
return | boolean |
public setFetchMode ( integer $mode ) : void | ||
$mode | integer | A PDO fetch mode. |
return | void |
public supportsParameters ( string $type ) : boolean | ||
$type | string | 'positional' or 'named' |
return | boolean |
protected string $_defaultStmtClass | ||
return | string |