db\Schema getColumnPhpType()

getColumnPhpType() protected method Extracts the PHP type from abstract DB type. protected string getColumnPhpType ( $column )$column yii\db\ColumnSchema The column schema information return string PHP type name

db\Schema getCacheTag()

getCacheTag() protected method Returns the cache tag name. This allows refresh() to invalidate all cached table schemas. protected string getCacheTag ( )return string The cache tag name

db\Schema getCacheKey()

getCacheKey() protected method Returns the cache key for the specified table name. protected mixed getCacheKey ( $name )$name string The table name return mixed The cache key

db\Schema findUniqueIndexes()

findUniqueIndexes() public method Returns all unique indexes for the given table. Each array element is of the following structure: [ 'IndexName1' => ['col1' [, ...]], 'IndexName2' => ['col2' [, ...]], ] This method should be overridden by child classes in order to support this feature because the default implementation simply throws an exception public array findUniqueIndexes ( $table )$table yii\db\TableSchema The table metadata return array All unique indexes for the given

db\Schema findTableNames()

findTableNames() protected method Returns all table names in the database. This method should be overridden by child classes in order to support this feature because the default implementation simply throws an exception. protected array findTableNames ( $schema = '' )$schema string The schema of the tables. Defaults to empty string, meaning the current or default schema. return array All table names in the database. The names have NO schema name prefix. throws yii\base\NotSupportedExc

db\Schema findSchemaNames()

findSchemaNames() protected method (available since version 2.0.4) Returns all schema names in the database, including the default one but not system schemas. This method should be overridden by child classes in order to support this feature because the default implementation simply throws an exception. protected array findSchemaNames ( )return array All schema names in the database, except system schemas throws yii\base\NotSupportedException if this method is called

db\Schema createSavepoint()

createSavepoint() public method Creates a new savepoint. public void createSavepoint ( $name )$name string The savepoint name

db\Schema createQueryBuilder()

createQueryBuilder() public method Creates a query builder for the database. This method may be overridden by child classes to create a DBMS-specific query builder. public yii\db\QueryBuilder createQueryBuilder ( )return yii\db\QueryBuilder Query builder instance

db\Schema createColumnSchemaBuilder()

createColumnSchemaBuilder() public method (available since version 2.0.6) Create a column schema builder instance giving the type and value precision. This method may be overridden by child classes to create a DBMS-specific column schema builder. public yii\db\ColumnSchemaBuilder createColumnSchemaBuilder ( $type, $length = null )$type string Type of the column. See yii\db\ColumnSchemaBuilder::$type. $length integer|string|array Length or precision of the column. See yii\db\ColumnSch

db\Schema createColumnSchema()

createColumnSchema() protected method protected yii\db\ColumnSchema createColumnSchema ( )throws yii\base\InvalidConfigException