PHP 클래스 yii\db\cubrid\Schema

부터: 2.0
저자: Carsten Brandt ([email protected])
상속: extends yii\db\Schema
파일 보기 프로젝트 열기: yiisoft/yii2

공개 프로퍼티들

프로퍼티 타입 설명
$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.
$typeMap mapping from physical column types (keys) to abstract column types (values) Please refer to CUBRID manual for details on data types.

공개 메소드들

메소드 설명
createColumnSchemaBuilder ( $type, $length = null )
createQueryBuilder ( ) : yii\db\cubrid\QueryBuilder Creates a query builder for the CUBRID database.
getPdoType ( mixed $data ) : integer Determines the PDO type for the given PHP data value.
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.
releaseSavepoint ( $name )
setTransactionIsolationLevel ( $level )

보호된 메소드들

메소드 설명
findTableNames ( string $schema = '' ) : array Returns all table names in the database.
loadColumnSchema ( array $info ) : ColumnSchema Loads the column information into a [[ColumnSchema]] object.
loadTableSchema ( string $name ) : yii\db\TableSchema Loads the metadata for the specified table.

메소드 상세

createColumnSchemaBuilder() 공개 메소드

public createColumnSchemaBuilder ( $type, $length = null )

createQueryBuilder() 공개 메소드

Creates a query builder for the CUBRID database.
public createQueryBuilder ( ) : yii\db\cubrid\QueryBuilder
리턴 yii\db\cubrid\QueryBuilder query builder instance

findTableNames() 보호된 메소드

Returns all table names in the database.
protected findTableNames ( string $schema = '' ) : array
$schema string the schema of the tables. Defaults to empty string, meaning the current or default schema.
리턴 array all table names in the database. The names have NO schema name prefix.

getPdoType() 공개 메소드

Determines the PDO type for the given PHP data value.
또한 보기: http://www.php.net/manual/en/pdo.constants.php
public getPdoType ( mixed $data ) : integer
$data mixed the data whose PDO type is to be determined
리턴 integer the PDO type

loadColumnSchema() 보호된 메소드

Loads the column information into a [[ColumnSchema]] object.
protected loadColumnSchema ( array $info ) : ColumnSchema
$info array column information
리턴 yii\db\ColumnSchema the column schema object

loadTableSchema() 보호된 메소드

Loads the metadata for the specified table.
protected loadTableSchema ( string $name ) : yii\db\TableSchema
$name string table name
리턴 yii\db\TableSchema driver dependent table metadata. Null if the table does not exist.

quoteSimpleColumnName() 공개 메소드

A simple column name has no prefix.
public quoteSimpleColumnName ( string $name ) : string
$name string column name
리턴 string the properly quoted column name

quoteSimpleTableName() 공개 메소드

A simple table name has no schema prefix.
public quoteSimpleTableName ( string $name ) : string
$name string table name
리턴 string the properly quoted table name

releaseSavepoint() 공개 메소드

public releaseSavepoint ( $name )

setTransactionIsolationLevel() 공개 메소드

또한 보기: http://www.cubrid.org/manual/91/en/sql/transaction.html#database-concurrency
public setTransactionIsolationLevel ( $level )

프로퍼티 상세

$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

$typeMap 공개적으로 프로퍼티

mapping from physical column types (keys) to abstract column types (values) Please refer to CUBRID manual for details on data types.
public $typeMap