diff options
author | admin <devnull@localhost> | 2006-09-24 22:14:38 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-09-24 22:14:38 +0200 |
commit | bb1d439a981023415569549d8b8c4987fa5b9b51 (patch) | |
tree | 098a08d4aa1fd20093e213f7e13ea4a8806ad0d6 /system/database/DB_utility.php | |
parent | 46563d570944d6c5af8b4f46ba1eeca111eabaa4 (diff) |
Diffstat (limited to 'system/database/DB_utility.php')
-rw-r--r-- | system/database/DB_utility.php | 95 |
1 files changed, 29 insertions, 66 deletions
diff --git a/system/database/DB_utility.php b/system/database/DB_utility.php index a4d4eb0d1..39dc2cca2 100644 --- a/system/database/DB_utility.php +++ b/system/database/DB_utility.php @@ -202,79 +202,42 @@ class CI_DB_utility { return current($fields); } - // -------------------------------------------------------------------- - /** - * Generate an insert string - * - * @access public - * @param string the table upon which the query will be performed - * @param array an associative array data of key/values - * @return string - */ - function insert_string($table, $data) - { - $fields = array(); - $values = array(); - - foreach($data as $key => $val) - { - $fields[] = $key; - $values[] = $this->escape($val); - } - return $this->_insert($this->dbprefix.$table, $fields, $values); + + + function create_database() + { } - // -------------------------------------------------------------------- - - /** - * Generate an update string - * - * @access public - * @param string the table upon which the query will be performed - * @param array an associative array data of key/values - * @param mixed the "where" statement - * @return string - */ - function update_string($table, $data, $where) + function drop_database() { - if ($where == '') - return false; - - $fields = array(); - foreach($data as $key => $val) - { - $fields[$key] = $this->escape($val); - } - - if ( ! is_array($where)) - { - $dest = array($where); - } - else - { - $dest = array(); - foreach ($where as $key => $val) - { - $prefix = (count($dest) == 0) ? '' : ' AND '; + } - if ($val != '') - { - if ( ! $this->_has_operator($key)) - { - $key .= ' ='; - } - - $val = ' '.$this->escape($val); - } - - $dest[] = $prefix.$key.$val; - } - } + function show_databases() + { + } + + function create_table() + { + } + + function alter_table() + { + } + + function create_index() + { + } + + function drop_index() + { + } + + function optimize() + { + } - return $this->_update($this->dbprefix.$table, $fields, $dest); - } } |