Solar_Sql_Adapter_Mysql::_sqlColdef()
protected
string
Solar_Sql_Adapter_Mysql::_sqlColdef
( string $name
, array $info
)
Returns a column definition string.
Inherited from Solar_Sql_Adapter.
Parameters
(string)
$name
: The column name.(array)
$info
: The column information.
Returns
(string) The column definition string.
Description
Returns a column definition string.
The $info parameter should be in this format ...
<?php
$info = array(
'type' => (string) bool, char, int, ...
'size' => (int) total length for char|varchar|numeric
'scope' => (int) decimal places for numeric
'default' => (bool) the default value, if any
'require' => (bool) is the value required to be NOT NULL?
'primary' => (bool) is this a primary key column?
'autoinc' => (bool) is this an auto-increment column?
);