PHP Class yii\db\cubrid\Schema

Since: 2.0
Author: Carsten Brandt ([email protected])
Inheritance: extends yii\db\Schema
Datei anzeigen Open project: yiisoft/yii2

Public Properties

Property Type Description
$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.

Public Methods

Method Description
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 )

Protected Methods

Method Description
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.

Method Details

createColumnSchemaBuilder() public method

public createColumnSchemaBuilder ( $type, $length = null )

createQueryBuilder() public method

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

findTableNames() protected method

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.
return array all table names in the database. The names have NO schema name prefix.

getPdoType() public method

Determines the PDO type for the given PHP data value.
See also: 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
return integer the PDO type

loadColumnSchema() protected method

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

loadTableSchema() protected method

Loads the metadata for the specified table.
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.

quoteSimpleColumnName() public method

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

quoteSimpleTableName() public method

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

releaseSavepoint() public method

public releaseSavepoint ( $name )

setTransactionIsolationLevel() public method

See also: http://www.cubrid.org/manual/91/en/sql/transaction.html#database-concurrency
public setTransactionIsolationLevel ( $level )

Property Details

$exceptionMap public_oe property

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 public_oe property

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