1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
5 * An open source application development framework for PHP 4.3.2 or newer
8 * @author ExpressionEngine Dev Team
9 * @copyright Copyright (c) 2008 - 2009, EllisLab, Inc.
10 * @license http://codeigniter.com/user_guide/license.html
11 * @link http://codeigniter.com
16 // ------------------------------------------------------------------------
19 * Postgre Utility Class
22 * @author ExpressionEngine Dev Team
23 * @link http://codeigniter.com/user_guide/database/
25 class CI_DB_postgre_utility extends CI_DB_utility {
33 function _list_databases()
35 return "SELECT datname FROM pg_database";
38 // --------------------------------------------------------------------
41 * Optimize table query
43 * Is table optimization supported in Postgre?
46 * @param string the table name
49 function _optimize_table($table)
54 // --------------------------------------------------------------------
59 * Are table repairs supported in Postgre?
62 * @param string the table name
65 function _repair_table($table)
70 // --------------------------------------------------------------------
76 * @param array Preferences
79 function _backup($params = array())
81 // Currently unsupported
82 return $this->db->display_error('db_unsuported_feature');
87 * The functions below have been deprecated as of 1.6, and are only here for backwards
88 * compatibility. They now reside in dbforge(). The use of dbutils for database manipulation
89 * is STRONGLY discouraged in favour if using dbforge.
97 * @param string the database name
100 function _create_database($name)
102 return "CREATE DATABASE ".$name;
105 // --------------------------------------------------------------------
111 * @param string the database name
114 function _drop_database($name)
116 return "DROP DATABASE ".$name;
123 /* End of file postgre_utility.php */
124 /* Location: ./system/database/drivers/postgre/postgre_utility.php */