Property | Type | Description | |
---|---|---|---|
$typeMap | mapping from physical column types (keys) to abstract column types (values) |
Method | Description | |
---|---|---|
createColumnSchemaBuilder ( $type, $length = null ) : yii\db\sqlite\ColumnSchemaBuilder | ||
createQueryBuilder ( ) : |
Creates a query builder for the MySQL database. | |
findUniqueIndexes ( yii\db\TableSchema $table ) : array | Returns all unique indexes for the given table. | |
quoteSimpleColumnName ( string $name ) : string | Quotes a column name for use in a query. | |
quoteSimpleTableName ( string $name ) : string | Quotes a table name for use in a query. | |
setTransactionIsolationLevel ( string $level ) | Sets the isolation level of the current transaction. |
Method | Description | |
---|---|---|
findColumns ( yii\db\TableSchema $table ) : boolean | Collects the table column metadata. | |
findConstraints ( yii\db\TableSchema $table ) | Collects the foreign key column details for the given table. | |
findTableNames ( string $schema = '' ) : array | Returns all table names in the database. | |
loadColumnSchema ( array $info ) : |
Loads the column information into a [[ColumnSchema]] object. | |
loadTableSchema ( string $name ) : yii\db\TableSchema | Loads the metadata for the specified table. |
public createColumnSchemaBuilder ( $type, $length = null ) : yii\db\sqlite\ColumnSchemaBuilder | ||
return | yii\db\sqlite\ColumnSchemaBuilder | column schema builder instance |
public createQueryBuilder ( ) : |
||
return | query builder instance |
protected findColumns ( yii\db\TableSchema $table ) : boolean | ||
$table | yii\db\TableSchema | the table metadata |
return | boolean | whether the table exists in the database |
protected findConstraints ( yii\db\TableSchema $table ) | ||
$table | yii\db\TableSchema | the table metadata |
protected findTableNames ( string $schema = '' ) : array | ||
$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. |
public findUniqueIndexes ( yii\db\TableSchema $table ) : array | ||
$table | yii\db\TableSchema | the table metadata |
return | array | all unique indexes for the given table. |
protected loadColumnSchema ( array $info ) : |
||
$info | array | column information |
return | the column schema object |
protected loadTableSchema ( string $name ) : yii\db\TableSchema | ||
$name | string | table name |
return | yii\db\TableSchema | driver dependent table metadata. Null if the table does not exist. |
public quoteSimpleColumnName ( string $name ) : string | ||
$name | string | column name |
return | string | the properly quoted column name |
public quoteSimpleTableName ( string $name ) : string | ||
$name | string | table name |
return | string | the properly quoted table name |
public setTransactionIsolationLevel ( string $level ) | ||
$level | string | The transaction isolation level to use for this transaction. This can be either [[Transaction::READ_UNCOMMITTED]] or [[Transaction::SERIALIZABLE]]. |