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 |
Method | Description | |
---|---|---|
__construct ( &$db ) : void | Class constructor | |
create_database ( string $db_name = '' ) : boolean | Create database | |
drop_database ( string $db_name = '' ) : boolean | Drop database |
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 |
protected _attr_auto_increment ( &$attributes, &$field ) : void | ||
return | void |
protected _attr_type ( &$attributes ) : void | ||
return | void |
protected _process_column ( array $field ) : string | ||
$field | array | |
return | string |
public create_database ( string $db_name = '' ) : boolean | ||
$db_name | string | (ignored) |
return | boolean |
public drop_database ( string $db_name = '' ) : boolean | ||
$db_name | string | (ignored) |
return | boolean |
protected string $_create_table_if | ||
return | string |
protected string $_drop_table_if | ||
return | string |
protected string $_null | ||
return | string |