PHP Class CI_DB_pdo_4d_forge, TastyIgniter

Author: EllisLab Dev Team
Inheritance: extends CI_DB_pdo_forge
显示文件 Open project: tastyigniter/tastyigniter

Protected Properties

Property Type Description
$_create_database string CREATE DATABASE statement
$_create_table_if string CREATE TABLE IF statement
$_default string DEFAULT value representation in CREATE/ALTER TABLE statements
$_drop_database string DROP DATABASE statement
$_drop_table_if string DROP TABLE IF statement
$_rename_table string RENAME TABLE statement
$_unsigned array UNSIGNED support

Protected Methods

Method Description
_alter_table ( string $alter_type, string $table, mixed $field ) : string | string[] ALTER TABLE
_attr_auto_increment ( &$attributes, &$field ) : void Field attribute AUTO_INCREMENT
_attr_type ( &$attributes ) : void Field attribute TYPE
_attr_unique ( &$attributes, &$field ) : void Field attribute UNIQUE
_process_column ( array $field ) : string Process column

Method Details

_alter_table() protected method

ALTER TABLE
protected _alter_table ( string $alter_type, string $table, mixed $field ) : string | string[]
$alter_type string ALTER type
$table string Table name
$field mixed Column definition
return string | string[]

_attr_auto_increment() protected method

Field attribute AUTO_INCREMENT
protected _attr_auto_increment ( &$attributes, &$field ) : void
return void

_attr_type() protected method

Performs a data type mapping between different databases.
protected _attr_type ( &$attributes ) : void
return void

_attr_unique() protected method

Field attribute UNIQUE
protected _attr_unique ( &$attributes, &$field ) : void
return void

_process_column() protected method

Process column
protected _process_column ( array $field ) : string
$field array
return string

Property Details

$_create_database protected_oe property

CREATE DATABASE statement
protected string $_create_database
return string

$_create_table_if protected_oe property

CREATE TABLE IF statement
protected string $_create_table_if
return string

$_default protected_oe property

DEFAULT value representation in CREATE/ALTER TABLE statements
protected string $_default
return string

$_drop_database protected_oe property

DROP DATABASE statement
protected string $_drop_database
return string

$_drop_table_if protected_oe property

DROP TABLE IF statement
protected string $_drop_table_if
return string

$_rename_table protected_oe property

RENAME TABLE statement
protected string $_rename_table
return string

$_unsigned protected_oe property

UNSIGNED support
protected array $_unsigned
return array