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 getMasterPdo()

getMasterPdo() public method Returns the PDO instance for the currently active master connection. This method will open the master DB connection and then return $pdo. public PDO getMasterPdo ( )return PDO The PDO instance for the currently active master connection.

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 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 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_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 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_BEGIN_TRANSACTION

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

db\Connection EVENT_AFTER_OPEN

EVENT_AFTER_OPEN event of type \yii\db\Event An event that is triggered after a DB connection is established

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