]>
jfr.im git - z_archive/KronOS.git/blob - system/database/drivers/cubrid/cubrid_utility.php
1 <?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
5 * An open source application development framework for PHP 5.1.6 or newer
9 * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
10 * @license http://codeigniter.com/user_guide/license.html
11 * @link http://codeigniter.com
16 // ------------------------------------------------------------------------
19 * CUBRID Utility Class
22 * @author Esen Sagynov
23 * @link http://codeigniter.com/user_guide/database/
25 class CI_DB_cubrid_utility
extends CI_DB_utility
{
33 function _list_databases()
35 // CUBRID does not allow to see the list of all databases on the
36 // server. It is the way its architecture is designed. Every
37 // database is independent and isolated.
38 // For this reason we can return only the name of the currect
39 // connected database.
42 return "SELECT '" . $this->database
. "'";
50 // --------------------------------------------------------------------
53 * Optimize table query
55 * Generates a platform-specific query so that a table can be optimized
58 * @param string the table name
60 * @link http://www.cubrid.org/manual/840/en/Optimize%20Database
62 function _optimize_table($table)
64 // No SQL based support in CUBRID as of version 8.4.0. Database or
65 // table optimization can be performed using CUBRID Manager
66 // database administration tool. See the link above for more info.
70 // --------------------------------------------------------------------
75 * Generates a platform-specific query so that a table can be repaired
78 * @param string the table name
80 * @link http://www.cubrid.org/manual/840/en/Checking%20Database%20Consistency
82 function _repair_table($table)
84 // Not supported in CUBRID as of version 8.4.0. Database or
85 // table consistency can be checked using CUBRID Manager
86 // database administration tool. See the link above for more info.
90 // --------------------------------------------------------------------
95 * @param array Preferences
98 function _backup($params = array())
100 // No SQL based support in CUBRID as of version 8.4.0. Database or
101 // table backup can be performed using CUBRID Manager
102 // database administration tool.
103 return $this->db
->display_error('db_unsuported_feature');
107 /* End of file cubrid_utility.php */
108 /* Location: ./system/database/drivers/cubrid/cubrid_utility.php */