PHP Class CI_DB_pdo_sqlite_forge, TastyIgniter

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

Protected Properties

Property Type Description
$_create_table_if string CREATE TABLE IF statement
$_drop_table_if string DROP TABLE IF statement
$_null string NULL value representation in CREATE/ALTER TABLE statements
$_unsigned boolean | array UNSIGNED support

Public Methods

Method Description
__construct ( &$db ) : void Class constructor
create_database ( string $db_name = '' ) : boolean Create database
drop_database ( string $db_name = '' ) : boolean Drop database

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
_process_column ( array $field ) : string Process column

Method Details

__construct() public method

Class constructor
public __construct ( &$db ) : void
return void

_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

_process_column() protected method

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

create_database() public method

Create database
public create_database ( string $db_name = '' ) : boolean
$db_name string (ignored)
return boolean

drop_database() public method

Drop database
public drop_database ( string $db_name = '' ) : boolean
$db_name string (ignored)
return boolean

Property Details

$_create_table_if protected_oe property

CREATE TABLE IF statement
protected string $_create_table_if
return string

$_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 bool|array $_unsigned
return boolean | array