CI_DB_odbc_utility Class Reference

Inheritance diagram for CI_DB_odbc_utility:
Collaboration diagram for CI_DB_odbc_utility:

List of all members.


Public Member Functions

 _list_databases ()
 List databases.
 _optimize_table ($table)
 Optimize table query.
 _repair_table ($table)
 Repair table query.
 _backup ($params=array())
 ODBC Export.
 _create_database ()
 The functions below have been deprecated as of 1.6, and are only here for backwards compatibility.
 _drop_database ($name)
 Drop database.

Detailed Description

Definition at line 25 of file odbc_utility.php.


Member Function Documentation

CI_DB_odbc_utility::_backup ( params = array()  ) 

ODBC Export.

private

Parameters:
array Preferences
Returns:
mixed

Definition at line 94 of file odbc_utility.php.

00095         {
00096                 // Currently unsupported
00097                 return $this->db->display_error('db_unsuported_feature');
00098         }

CI_DB_odbc_utility::_create_database (  ) 

The functions below have been deprecated as of 1.6, and are only here for backwards compatibility.

They now reside in dbforge(). The use of dbutils for database manipulation is STRONGLY discouraged in favour if using dbforge. Create database private

Parameters:
string the database name
Returns:
bool

Definition at line 115 of file odbc_utility.php.

00116         {
00117                 // ODBC has no "create database" command since it's
00118                 // designed to connect to an existing database
00119                 if ($this->db->db_debug)
00120                 {
00121                         return $this->db->display_error('db_unsuported_feature');
00122                 }
00123                 return FALSE;
00124         }

CI_DB_odbc_utility::_drop_database ( name  ) 

Drop database.

private

Parameters:
string the database name
Returns:
bool

Definition at line 135 of file odbc_utility.php.

00136         {
00137                 // ODBC has no "drop database" command since it's
00138                 // designed to connect to an existing database          
00139                 if ($this->db->db_debug)
00140                 {
00141                         return $this->db->display_error('db_unsuported_feature');
00142                 }
00143                 return FALSE;
00144         }

CI_DB_odbc_utility::_list_databases (  ) 

List databases.

private

Returns:
bool

Definition at line 33 of file odbc_utility.php.

00034         {
00035                 // Not sure if ODBC lets you list all databases...      
00036                 if ($this->db->db_debug)
00037                 {
00038                         return $this->db->display_error('db_unsuported_feature');
00039                 }
00040                 return FALSE;
00041         }

CI_DB_odbc_utility::_optimize_table ( table  ) 

Optimize table query.

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

private

Parameters:
string the table name
Returns:
object

Definition at line 54 of file odbc_utility.php.

00055         {
00056                 // Not a supported ODBC feature 
00057                 if ($this->db->db_debug)
00058                 {
00059                         return $this->db->display_error('db_unsuported_feature');
00060                 }
00061                 return FALSE;
00062         }

CI_DB_odbc_utility::_repair_table ( table  ) 

Repair table query.

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

private

Parameters:
string the table name
Returns:
object

Definition at line 75 of file odbc_utility.php.

00076         {
00077                 // Not a supported ODBC feature 
00078                 if ($this->db->db_debug)
00079                 {
00080                         return $this->db->display_error('db_unsuported_feature');
00081                 }
00082                 return FALSE;
00083         }


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