Abstract class defining database / table creation methods
package | Query |
---|---|
subpackage | Table_Builder |
__construct(\Query\Table\[string] $name= ''
, \Query\Table\[array] $options= array()
, \Query\Table\[Driver_Interface] $driver= NULL
) : \Query\Table\Table_Builder
\Query\Table\[string]
\Query\Table\[array]
\Query\Table\[Driver_Interface]
__invoke(\Query\Table\[string] $name= ''
, \Query\Table\[array] $options= array()
, \Query\Table\[\Query\Driver\Driver_Interface] $driver= NULL
) : \Query\Table\Table_Builder
add_column(string $column_name, string $type= NULL
, array $options= array()
) : \Query\Table\Table_Builder
add_foreign_key($columns, $referenced_table, $referenced_columns= array('id')
, $options= array()
)
add_index($columns, $options = array()
)
change_column($column_name, $new_column_type, $options = array()
)
create()
drop()
drop_foreign_key($columns, $constraint = NULL
)
exists()
get_columns()
has_column($column_name, $options = array()
)
has_foreign_key($columns, $constraint = NULL
)
has_index($columns, $options = array()
)
remove_column($column_name)
remove_index($columns, $options = array()
)
remove_index_by_name($name)
rename($new_table_name)
rename_column($old_name, $new_name)
reset()
save()
set_driver(\Query\Driver\Driver_Interface $driver = NULL
) : \Query\Table\Table_Builder
update()
$name : string
''
$columns : array
array()
$foreign_keys : array
array()
$indexes : array
array()