db\Connection $slave

$slave public read-only property The currently active slave connection. Null is returned if there is slave available and $fallbackToMaster is false. public yii\db\Connection getSlave ( $fallbackToMaster = true )

db\Connection $serverStatusCache

$serverStatusCache public property The cache object or the ID of the cache application component that is used to store the health status of the DB servers specified in $masters and $slaves. This is used only when read/write splitting is enabled or $masters is not empty. public yii\caching\Cache|string $serverStatusCache = 'cache'

db\Connection $serverRetryInterval

$serverRetryInterval public property The retry interval in seconds for dead servers listed in $masters and $slaves. This is used together with $serverStatusCache. public integer $serverRetryInterval = 600

db\Connection $schemaMap

$schemaMap public property Mapping between PDO driver names and yii\db\Schema classes. The keys of the array are PDO driver names while the values the corresponding schema class name or configuration. Please refer to Yii::createObject() for details on how to specify a configuration. This property is mainly used by getSchema() when fetching the database schema information. You normally do not need to set this property unless you want to use your own yii\db\Schema class to support DBMS that i

db\Connection $schemaCacheExclude

$schemaCacheExclude public property List of tables whose metadata should NOT be cached. Defaults to empty array. The table names may contain schema prefix, if any. Do not quote the table names. See also $enableSchemaCache. public array $schemaCacheExclude = []

db\Connection $schemaCacheDuration

$schemaCacheDuration public property Number of seconds that table metadata can remain valid in cache. Use 0 to indicate that the cached data will never expire. See also $enableSchemaCache. public integer $schemaCacheDuration = 3600

db\Connection $schemaCache

$schemaCache public property The cache object or the ID of the cache application component that is used to cache the table metadata. See also $enableSchemaCache. public yii\caching\Cache|string $schemaCache = 'cache'

db\Connection $schema

$schema public read-only property The schema information for the database opened by this connection. public yii\db\Schema getSchema ( )

db\Connection $queryCacheDuration

$queryCacheDuration public property The default number of seconds that query results can remain valid in cache. Defaults to 3600, meaning 3600 seconds, or one hour. Use 0 to indicate that the cached data will never expire. The value of this property will be used when cache() is called without a cache duration. See also: $enableQueryCache cache() public integer $queryCacheDuration = 3600

db\Connection $queryCache

$queryCache public property The cache object or the ID of the cache application component that is used for query caching. See also $enableQueryCache. public yii\caching\Cache|string $queryCache = 'cache'