Class CDbColumnSchema
CDbColumnSchema class describes the column meta data of a database table.
- CComponent
- CDbColumnSchema
Direct known subclasses
CCubridColumnSchema, CMssqlColumnSchema, CMysqlColumnSchema, COciColumnSchema, CPgsqlColumnSchema, CSqliteColumnSchemaCopyright: 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/CDbColumnSchema.php
public
|
|
protected
|
|
protected
|
#
extractLimit( string $dbType )
Extracts size, precision and scale information from column's DB type. |
protected
|
#
extractDefault( mixed $defaultValue )
Extracts the default value for the column. The value is typecasted to correct PHP type. |
public
mixed
|
public
string
|
$name |
|
#
name of this column (without quotes). |
public
string
|
$rawName |
|
#
raw name of this column. This is the quoted name that can be used in SQL queries. |
public
boolean
|
$allowNull |
|
#
whether this column can be null. |
public
string
|
$dbType |
|
#
the DB type of this column. |
public
string
|
$type |
|
#
the PHP type of this column. |
public
mixed
|
$defaultValue |
|
#
default value of this column |
public
integer
|
$size |
|
#
size of the column. |
public
integer
|
$precision |
|
#
precision of the column data, if it is numeric. |
public
integer
|
$scale |
|
#
scale of the column data, if it is numeric. |
public
boolean
|
$isPrimaryKey |
|
#
whether this column is a primary key |
public
boolean
|
$isForeignKey |
|
#
whether this column is a foreign key |
public
boolean
|
$autoIncrement | false |
#
whether this column is auto-incremental |
public
string
|
$comment | '' |
#
comment of this column. Default value is empty string which means that no comment has been set for the column. Null value means that RDBMS does not support column comments at all (SQLite) or comment retrieval for the active RDBMS is not yet supported by the framework. |