PHP 클래스 yii\db\oci\Schema

부터: 2.0
저자: Qiang Xue ([email protected])
상속: extends yii\db\Schema
파일 보기 프로젝트 열기: yiisoft/yii2 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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 ) : ColumnSchema Creates ColumnSchema instance
extractColumnSize ( ColumnSchema $column, string $dbType, string $precision, string $scale, string $length ) Extracts size, precision and scale information from column's DB type.
extractColumnType ( ColumnSchema $column, string $dbType, string $precision, string $scale, string $length ) 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).

메소드 상세

createColumn() 보호된 메소드

Creates ColumnSchema instance
protected createColumn ( array $column ) : ColumnSchema
$column array
리턴 yii\db\ColumnSchema

createColumnSchemaBuilder() 공개 메소드

public createColumnSchemaBuilder ( $type, $length = null )

createQueryBuilder() 공개 메소드

public createQueryBuilder ( )

extractColumnSize() 보호된 메소드

Extracts size, precision and scale information from column's DB type.
protected extractColumnSize ( ColumnSchema $column, string $dbType, string $precision, string $scale, string $length )
$column yii\db\ColumnSchema
$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.

extractColumnType() 보호된 메소드

Extracts the data types for the given column
protected extractColumnType ( ColumnSchema $column, string $dbType, string $precision, string $scale, string $length )
$column yii\db\ColumnSchema
$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.

findColumns() 보호된 메소드

Collects the table column metadata.
protected findColumns ( yii\db\TableSchema $table ) : boolean
$table yii\db\TableSchema the table schema
리턴 boolean whether the table exists

findConstraints() 보호된 메소드

Finds constraints and fills them into TableSchema object passed
protected findConstraints ( yii\db\TableSchema $table )
$table yii\db\TableSchema

findSchemaNames() 보호된 메소드

protected findSchemaNames ( )

findTableNames() 보호된 메소드

protected findTableNames ( $schema = '' )

findUniqueIndexes() 공개 메소드

Each array element is of the following structure: php [ 'IndexName1' => ['col1' [, ...]], 'IndexName2' => ['col2' [, ...]], ]
부터: 2.0.4
public findUniqueIndexes ( yii\db\TableSchema $table ) : array
$table yii\db\TableSchema the table metadata
리턴 array all unique indexes for the given table.

getLastInsertID() 공개 메소드

또한 보기: http://www.php.net/manual/en/function.PDO-lastInsertId.php -> Oracle does not support this Returns the ID of the last inserted row or sequence value.
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

getTableSequenceName() 보호된 메소드

Sequence name of table
protected getTableSequenceName ( string $tableName ) : string | null
$tableName string
리턴 string | null whether the sequence exists

init() 공개 메소드

public init ( )

insert() 공개 메소드

public insert ( $table, $columns )

loadTableSchema() 공개 메소드

public loadTableSchema ( $name )

quoteSimpleTableName() 공개 메소드

public quoteSimpleTableName ( $name )

releaseSavepoint() 공개 메소드

public releaseSavepoint ( $name )

resolveTableNames() 보호된 메소드

Resolves the table name and schema name (if any).
protected resolveTableNames ( yii\db\TableSchema $table, string $name )
$table yii\db\TableSchema the table metadata object
$name string the table name

프로퍼티 상세

$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.
public $exceptionMap