

Public Member Functions | |
| _list_databases () | |
| List databases. | |
| _optimize_table ($table) | |
| Optimize table query. | |
| _repair_table ($table) | |
| Repair table query. | |
| _backup ($params=array()) | |
| SQLite 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. | |
Definition at line 25 of file sqlite_utility.php.
| CI_DB_sqlite_utility::_backup | ( | $ | params = array() |
) |
SQLite Export.
private
| array | Preferences |
Definition at line 88 of file sqlite_utility.php.
00089 { 00090 // Currently unsupported 00091 return $this->db->display_error('db_unsuported_feature'); 00092 }
| CI_DB_sqlite_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 public
| string | the database name |
Definition at line 109 of file sqlite_utility.php.
00110 { 00111 // In SQLite, a database is created when you connect to the database. 00112 // We'll return TRUE so that an error isn't generated 00113 return TRUE; 00114 }
| CI_DB_sqlite_utility::_drop_database | ( | $ | name | ) |
Drop database.
private
| string | the database name |
Definition at line 125 of file sqlite_utility.php.
00126 { 00127 if ( ! @file_exists($this->db->database) OR ! @unlink($this->db->database)) 00128 { 00129 if ($this->db->db_debug) 00130 { 00131 return $this->db->display_error('db_unable_to_drop'); 00132 } 00133 return FALSE; 00134 } 00135 return TRUE; 00136 }
| CI_DB_sqlite_utility::_list_databases | ( | ) |
List databases.
I don't believe you can do a database listing with SQLite since each database is its own file. I suppose we could try reading a directory looking for SQLite files, but that doesn't seem like a terribly good idea
private
Definition at line 38 of file sqlite_utility.php.
00039 { 00040 if ($this->db_debug) 00041 { 00042 return $this->display_error('db_unsuported_feature'); 00043 } 00044 return array(); 00045 }
| CI_DB_sqlite_utility::_optimize_table | ( | $ | table | ) |
Optimize table query.
Is optimization even supported in SQLite?
private
| string | the table name |
Definition at line 58 of file sqlite_utility.php.
| CI_DB_sqlite_utility::_repair_table | ( | $ | table | ) |
Repair table query.
Are table repairs even supported in SQLite?
private
| string | the table name |
Definition at line 74 of file sqlite_utility.php.