PHP Class CI_DB_pdo_mysql_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
$_create_table_keys boolean Whether table keys are created from within the CREATE TABLE statement.
$_drop_table_if string DROP TABLE IF statement
$_null string NULL value representation in CREATE/ALTER TABLE statements
$_unsigned array UNSIGNED support

Protected Methods

Method Description
_alter_table ( string $alter_type, string $table, mixed $field ) : string | string[] ALTER TABLE
_create_table_attr ( array $attributes ) : string CREATE TABLE attributes
_process_column ( array $field ) : string Process column
_process_indexes ( string $table ) : string Process indexes

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[]

_create_table_attr() protected method

CREATE TABLE attributes
protected _create_table_attr ( array $attributes ) : string
$attributes array Associative array of table attributes
return string

_process_column() protected method

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

_process_indexes() protected method

Process indexes
protected _process_indexes ( string $table ) : string
$table string (ignored)
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

$_create_table_keys protected_oe property

Whether table keys are created from within the CREATE TABLE statement.
protected bool $_create_table_keys
return boolean

$_drop_table_if protected_oe property

DROP TABLE IF statement
protected string $_drop_table_if
return string

$_null protected_oe property

NULL value representation in CREATE/ALTER TABLE statements
protected string $_null
return string

$_unsigned protected_oe property

UNSIGNED support
protected array $_unsigned
return array