프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$exceptionMap | map of DB errors and corresponding exceptions If left part is found in DB error message exception class from the right part is used. |
메소드 | 설명 | |
---|---|---|
createColumnSchemaBuilder ( $type, $length = null ) | ||
createQueryBuilder ( ) | ||
findUniqueIndexes ( yii\db\TableSchema $table ) : array | Returns all unique indexes for the given table. | |
getLastInsertID ( string $sequenceName = '' ) : string | ||
init ( ) | ||
insert ( $table, $columns ) | ||
loadTableSchema ( $name ) | ||
quoteSimpleTableName ( $name ) | ||
releaseSavepoint ( $name ) |
메소드 | 설명 | |
---|---|---|
createColumn ( array $column ) : |
Creates ColumnSchema instance | |
extractColumnSize ( |
Extracts size, precision and scale information from column's DB type. | |
extractColumnType ( |
Extracts the data types for the given column | |
findColumns ( yii\db\TableSchema $table ) : boolean | Collects the table column metadata. | |
findConstraints ( yii\db\TableSchema $table ) | Finds constraints and fills them into TableSchema object passed | |
findSchemaNames ( ) | ||
findTableNames ( $schema = '' ) | ||
getTableSequenceName ( string $tableName ) : string | null | Sequence name of table | |
resolveTableNames ( yii\db\TableSchema $table, string $name ) | Resolves the table name and schema name (if any). |
protected createColumn ( array $column ) : |
||
$column | array | |
리턴 |
protected extractColumnSize ( |
||
$column | ||
$dbType | string | the column's DB type |
$precision | string | total number of digits. This parameter is available since version 2.0.4. |
$scale | string | number of digits on the right of the decimal separator. This parameter is available since version 2.0.4. |
$length | string | length for character types. This parameter is available since version 2.0.4. |
protected extractColumnType ( |
||
$column | ||
$dbType | string | DB type |
$precision | string | total number of digits. This parameter is available since version 2.0.4. |
$scale | string | number of digits on the right of the decimal separator. This parameter is available since version 2.0.4. |
$length | string | length for character types. This parameter is available since version 2.0.4. |
protected findColumns ( yii\db\TableSchema $table ) : boolean | ||
$table | yii\db\TableSchema | the table schema |
리턴 | boolean | whether the table exists |
protected findConstraints ( yii\db\TableSchema $table ) | ||
$table | yii\db\TableSchema |
public findUniqueIndexes ( yii\db\TableSchema $table ) : array | ||
$table | yii\db\TableSchema | the table metadata |
리턴 | array | all unique indexes for the given table. |
public getLastInsertID ( string $sequenceName = '' ) : string | ||
$sequenceName | string | name of the sequence object (required by some DBMS) |
리턴 | string | the row ID of the last row inserted, or the last value retrieved from the sequence object |
protected resolveTableNames ( yii\db\TableSchema $table, string $name ) | ||
$table | yii\db\TableSchema | the table metadata object |
$name | string | the table name |