db\Connection getQueryCacheInfo()

getQueryCacheInfo() public method Returns the current query cache information. This method is used internally by yii\db\Command. public array getQueryCacheInfo ( $duration, $dependency )$duration integer The preferred caching duration. If null, it will be ignored. $dependency yii\caching\Dependency The preferred caching dependency. If null, it will be ignored. return array The current query cache information, or null if query cache is not enabled.

db\Connection getLastInsertID()

getLastInsertID() public method Returns the ID of the last inserted row or sequence value. See also http://www.php.net/manual/en/function.PDO-lastInsertId.php. public string getLastInsertID ( $sequenceName = '' )$sequenceName string Name of the sequence object (required by some DBMS) return string The row ID of the last row inserted, or the last value retrieved from the sequence object

db\Connection getQueryBuilder()

getQueryBuilder() public method Returns the query builder for the current DB connection. public yii\db\QueryBuilder getQueryBuilder ( )return yii\db\QueryBuilder The query builder for the current DB connection.

db\Connection getDriverName()

getDriverName() public method Returns the name of the DB driver. Based on the the current $dsn, in case it was not set explicitly by an end user. public string getDriverName ( )return string Name of the DB driver

db\Connection EVENT_COMMIT_TRANSACTION

EVENT_COMMIT_TRANSACTION event of type \yii\db\Event An event that is triggered right after a top-level transaction is committed

db\Connection EVENT_ROLLBACK_TRANSACTION

EVENT_ROLLBACK_TRANSACTION event of type \yii\db\Event An event that is triggered right after a top-level transaction is rolled back

db\Connection getIsActive()

getIsActive() public method Returns a value indicating whether the DB connection is established. public boolean getIsActive ( )return boolean Whether the DB connection is established

db\Connection createCommand()

createCommand() public method Creates a command for execution. public yii\db\Command createCommand ( $sql = null, $params = [] )$sql string The SQL statement to be executed $params array The parameters to be bound to the SQL statement return yii\db\Command The DB command

db\Connection createPdoInstance()

createPdoInstance() protected method Creates the PDO instance. This method is called by open() to establish a DB connection. The default implementation will create a PHP PDO instance. You may override this method if the default PDO needs to be adapted for certain DBMS. protected PDO createPdoInstance ( )return PDO The pdo instance

db\Connection EVENT_BEGIN_TRANSACTION

EVENT_BEGIN_TRANSACTION event of type \yii\db\Event An event that is triggered right before a top-level transaction is started