PHP Class yii\db\cubrid\Schema

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

Méthodes publiques

Свойство 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.

Méthodes publiques

Méthode 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 )

Méthodes protégées

Méthode 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 méthode

public createColumnSchemaBuilder ( $type, $length = null )

createQueryBuilder() public méthode

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

findTableNames() protected méthode

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

getPdoType() public méthode

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
Résultat integer the PDO type

loadColumnSchema() protected méthode

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

loadTableSchema() protected méthode

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

quoteSimpleColumnName() public méthode

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

quoteSimpleTableName() public méthode

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

releaseSavepoint() public méthode

public releaseSavepoint ( $name )

setTransactionIsolationLevel() public méthode

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