PHP Класс yii\db\cubrid\Schema

С версии: 2.0
Автор: Carsten Brandt ([email protected])
Наследование: extends yii\db\Schema
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$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