Class CCubridSchema
CCubridSchema is the class for retrieving metadata information from a CUBRID database (version 8.4.0 and later).
- CComponent
- CDbSchema
- CCubridSchema
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Esen Sagynov <kadismal@gmail.com>
Since: 1.1.16
Located at x2engine/framework/db/schema/cubrid/CCubridSchema.php
public
string
|
#
quoteSimpleTableName( string $name )
Quotes a table name for use in a query. A simple table name does not schema prefix. |
public
string
|
#
quoteSimpleColumnName( string $name )
Quotes a column name for use in a query. A simple column name does not contain prefix. |
public
boolean
|
#
compareTableNames( string $name1, string $name2 )
Compares two table names. The table names can be either quoted or unquoted. This method will consider both cases. |
public
|
#
resetSequence(
Resets the sequence value of a table's primary key. The sequence will be reset such that the primary key of the next new row inserted will have the specified value or 1. |
protected
|
|
protected
|
#
resolveTableNames(
Generates various kinds of table names. |
protected
boolean
|
|
protected
|
|
protected
float
|
|
protected
|
#
findConstraints(
Collects the foreign key column details for the given table. |
protected
|
#
findPrimaryKeys(
Collects the primary key column details for the given table. |
protected
array
|
public
array
|
$columnTypes | array(
'pk' => 'INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY',
// same as STRING or CHARACTER VARYING
'string' => 'VARCHAR(255)',
'text' => 'VARCHAR(65535)',
'integer' => 'INTEGER',
'float' => 'NUMERIC',
'real' => 'NUMERIC',
'decimal' => 'NUMERIC',
'datetime' => 'DATETIME',
'timestamp' => 'TIMESTAMP',
'time' => 'TIME',
'date' => 'DATE',
'binary' => 'BIT VARYING',
'bool' => 'SHORT',
'boolean' => 'SHORT',
'money' => 'NUMERIC(19,4)',
) |
#
the abstract column types mapped to physical column types. |
$commandBuilder,
$dbConnection,
$tableNames,
$tables
|