implements Phalcon\Db\ColumnInterface
Allows to define columns to be used on create or alter table operations
use Phalcon\Db\Column as Column; //column definition $column = new Column("id", array( "type" => Column::TYPE_INTEGER, "size" => 10, "unsigned" => true, "notNull" => true, "autoIncrement" => true, "first" => true )); //add column to existing table $connection->addColumn("robots", null, $column);
Phalcon\Db\Column constructor
Returns schema’s table related to column
Returns column name
Returns column type
Returns column size
Returns column scale
Returns true if number column is unsigned
Not null
Column is part of the primary key?
Auto-Increment
Check whether column have an numeric type
Check whether column have first position in table
Check whether field absolute to position in table
Returns the type of bind handling
Restores the internal state of a Phalcon\Db\Column object
© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_Db_Column.html