CI_DB_postgre_forge Class Reference

Inherits CI_DB_forge.

Collaboration diagram for CI_DB_postgre_forge:
[legend]

List of all members.

Public Member Functions

 _create_database ($name)
 _drop_database ($name)
 _create_table ($table, $fields, $primary_keys, $keys, $if_not_exists)
 _drop_table ($table)
 _alter_table ($alter_type, $table, $column_name, $column_definition= '', $default_value= '', $null= '', $after_field= '')
 _rename_table ($table_name, $new_table_name)


Member Function Documentation

CI_DB_postgre_forge::_alter_table ( alter_type,
table,
column_name,
column_definition = '',
default_value = '',
null = '',
after_field = '' 
)

Alter table query

Generates a platform-specific query so that a table can be altered Called by add_column(), drop_column(), and column_alter(),

private

Parameters:
string the ALTER type (ADD, DROP, CHANGE)
string the column name
string the table name
string the column definition
string the default value
boolean should 'NOT NULL' be added
string the field after which we should add the new field
Returns:
object

CI_DB_postgre_forge::_create_database ( name  ) 

Create database

private

Parameters:
string the database name
Returns:
bool

CI_DB_postgre_forge::_create_table ( table,
fields,
primary_keys,
keys,
if_not_exists 
)

Create Table

private

Parameters:
string the table name
array the fields
mixed primary key(s)
mixed key(s)
boolean should 'IF NOT EXISTS' be added to the SQL
Returns:
bool

CI_DB_postgre_forge::_drop_database ( name  ) 

Drop database

private

Parameters:
string the database name
Returns:
bool

CI_DB_postgre_forge::_drop_table ( table  ) 

Drop Table

private

Returns:
bool

CI_DB_postgre_forge::_rename_table ( table_name,
new_table_name 
)

Rename a table

Generates a platform-specific query so that a table can be renamed

private

Parameters:
string the old table name
string the new table name
Returns:
string


The documentation for this class was generated from the following file:

Generated on Sun Nov 16 16:09:13 2008 for CodeIgniter by  doxygen 1.5.7.1