Свойство | Тип | Описание | |
---|---|---|---|
$_defaultStmtClass | string | Default class name for a DB statement. |
Метод | Описание | |
---|---|---|
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. |
Метод | Описание | |
---|---|---|
_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 | ||
Результат | void |
public getServerVersion ( ) : string | ||
Результат | string |
public isConnected ( ) : boolean | ||
Результат | boolean |
public setFetchMode ( integer $mode ) : void | ||
$mode | integer | A PDO fetch mode. |
Результат | void |
public supportsParameters ( string $type ) : boolean | ||
$type | string | 'positional' or 'named' |
Результат | boolean |
protected string $_defaultStmtClass | ||
Результат | string |