Public Member Functions | |
__construct () | |
create_database ($db_name) | |
drop_database ($db_name) | |
add_key ($key= '', $primary=FALSE) | |
add_field ($field= '') | |
create_table ($table= '', $if_not_exists=FALSE) | |
drop_table ($table_name) | |
rename_table ($table_name, $new_table_name) | |
add_column ($table= '', $field=array(), $after_field= '') | |
drop_column ($table= '', $column_name= '') | |
modify_column ($table= '', $field=array()) | |
_reset () | |
Data Fields | |
$fields = array() | |
$keys = array() | |
$primary_keys = array() | |
$db_char_set = '' | |
__construct | ( | ) |
Constructor
Grabs the CI super object instance so we can access it.
_reset | ( | ) |
Reset
Resets table creation vars
private
add_column | ( | $table = '' , |
|
$field = array() , |
|||
$after_field = '' |
|||
) |
Column Add
public
string | the table name |
string | the column name |
string | the column definition |
add_field | ( | $field = '' ) |
Add Field
public
string | collation |
add_key | ( | $key = '' , |
|
$primary = FALSE |
|||
) |
Add Key
public
string | key |
string | type |
create_database | ( | $db_name) |
Create database
public
string | the database name |
create_table | ( | $table = '' , |
|
$if_not_exists = FALSE |
|||
) |
Create Table
public
string | the table name |
drop_column | ( | $table = '' , |
|
$column_name = '' |
|||
) |
Column Drop
public
string | the table name |
string | the column name |
drop_database | ( | $db_name) |
Drop database
public
string | the database name |
drop_table | ( | $table_name) |
Drop Table
public
string | the table name |
modify_column | ( | $table = '' , |
|
$field = array() |
|||
) |
Column Modify
public
string | the table name |
string | the column name |
string | the column definition |
rename_table | ( | $table_name, | |
$new_table_name | |||
) |
Rename Table
public
string | the old table name |
string | the new table name |