db\Connection $queryBuilder

$queryBuilder public read-only property The query builder for the current DB connection. public yii\db\QueryBuilder getQueryBuilder ( )

db\Connection $pdoClass

$pdoClass public property Custom PDO wrapper class. If not set, it will use PDO or \yii\db\yii\db\mssql\PDO when MSSQL is used. See also $pdo. public string $pdoClass = null

db\Connection $pdo

$pdo public property The PHP PDO instance associated with this DB connection. This property is mainly managed by open() and close() methods. When a DB connection is active, this property will represent a PDO instance; otherwise, it will be null. See also $pdoClass. public PDO $pdo = null

db\Connection $password

$password public property The password for establishing DB connection. Defaults to null meaning no password to use. public string $password = null

db\Connection $masters

$masters public property List of master connection configurations. Each configuration is used to create a master DB connection. When open() is called, one of these configurations will be chosen and used to create a DB connection which will be used by this object. Note that when this property is not empty, the connection setting (e.g. "dsn", "username") of this object will be ignored. See also $masterConfig. public array $masters = []

db\Connection $masterPdo

$masterPdo public read-only property The PDO instance for the currently active master connection. public PDO getMasterPdo ( )

db\Connection $masterConfig

$masterConfig public property The configuration that should be merged with every master configuration listed in $masters. For example, [ 'username' => 'master', 'password' => 'master', 'attributes' => [ // use a smaller connection timeout PDO::ATTR_TIMEOUT => 10, ], ] public array $masterConfig = []

db\Connection $lastInsertID

$lastInsertID public read-only property The row ID of the last row inserted, or the last value retrieved from the sequence object public string getLastInsertID ( $sequenceName = '' )

db\Connection $isActive

$isActive public read-only property Whether the DB connection is established public boolean getIsActive ( )

db\Connection $enableSlaves

$enableSlaves public property Whether to enable read/write splitting by using $slaves to read data. Note that if $slaves is empty, read/write splitting will NOT be enabled no matter what value this property takes. public boolean $enableSlaves = true