Class CDbTableSchema
CDbTableSchema is the base class for representing the metadata of a database table.
It may be extended by different DBMS driver to provide DBMS-specific table metadata.
CDbTableSchema provides the following information about a table:- CComponent
- CDbTableSchema
Direct known subclasses
CCubridTableSchema, CMssqlTableSchema, CMysqlTableSchema, COciTableSchema, CPgsqlTableSchema
Package: system\db\schema
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/db/schema/CDbTableSchema.php
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/db/schema/CDbTableSchema.php
public
|
|
public
array
|
public
string
|
$name |
|
#
name of this table. |
public
string
|
$rawName |
|
#
raw name of this table. This is the quoted version of table name with optional schema name. It can be directly used in SQLs. |
public
string|array
|
$primaryKey |
|
#
primary key name of this table. If composite key, an array of key names is returned. |
public
string
|
$sequenceName |
|
#
sequence name for the primary key. Null if no sequence. |
public
array
|
$foreignKeys | array() |
#
foreign keys of this table. The array is indexed by column name. Each value is an array of foreign table name and foreign column name. |
public
array
|
$columns | array() |
#
column metadata of this table. Each array element is a CDbColumnSchema object, indexed by column names. |
public
array
|
$columnNames |
#
List of column names. |