blob: dc259ac396e909f5508b698559a880d1ba068864 [file] [log] [blame]
admin7b613c72006-09-24 18:05:17 +00001<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
2/**
3 * Code Igniter
4 *
5 * An open source application development framework for PHP 4.3.2 or newer
6 *
7 * @package CodeIgniter
8 * @author Rick Ellis
9 * @copyright Copyright (c) 2006, pMachine, Inc.
10 * @license http://www.codeignitor.com/user_guide/license.html
11 * @link http://www.codeigniter.com
12 * @since Version 1.0
13 * @filesource
14 */
15
16// ------------------------------------------------------------------------
17
18/**
19 * Oracle Utility Class
20 *
21 * @category Database
22 * @author Rick Ellis
23 * @link http://www.codeigniter.com/user_guide/database/
24 */
admina5e812c2006-09-25 02:17:30 +000025class CI_DB_oci8_utility extends CI_DB_utility {
26
27
admin6ca6f942006-09-25 02:51:08 +000028 /**
29 * Create database
30 *
31 * @access public
32 * @param string the database name
33 * @return bool
34 */
admin6cec6a52006-09-25 06:56:49 +000035 function _create_database($name)
admin6ca6f942006-09-25 02:51:08 +000036 {
admin83b05a82006-09-25 21:06:46 +000037 return FALSE;
admin6ca6f942006-09-25 02:51:08 +000038 }
39
40 // --------------------------------------------------------------------
41
42 /**
43 * Drop database
44 *
admin83b05a82006-09-25 21:06:46 +000045 * @access private
admin6ca6f942006-09-25 02:51:08 +000046 * @param string the database name
47 * @return bool
48 */
admin83b05a82006-09-25 21:06:46 +000049 function _drop_database($name)
admin6ca6f942006-09-25 02:51:08 +000050 {
admin83b05a82006-09-25 21:06:46 +000051 return FALSE;
admin72496372006-09-25 03:44:04 +000052 }
admin6ca6f942006-09-25 02:51:08 +000053
admin72496372006-09-25 03:44:04 +000054 // --------------------------------------------------------------------
55
56 /**
57 * List databases
58 *
admin83b05a82006-09-25 21:06:46 +000059 * @access private
admin72496372006-09-25 03:44:04 +000060 * @return bool
61 */
admin83b05a82006-09-25 21:06:46 +000062 function _list_databases()
admin72496372006-09-25 03:44:04 +000063 {
admin83b05a82006-09-25 21:06:46 +000064 return FALSE;
admin6ca6f942006-09-25 02:51:08 +000065 }
66
admin9cd4e8e2006-09-25 23:26:25 +000067 // --------------------------------------------------------------------
68
69 /**
70 * Show table query
71 *
72 * Generates a platform-specific query string so that the table names can be fetched
73 *
74 * @access private
75 * @return string
76 */
77 function _list_tables()
78 {
79 return "select TABLE_NAME FROM ALL_TABLES";
80 }
81
admin6ca6f942006-09-25 02:51:08 +000082 // --------------------------------------------------------------------
admina5e812c2006-09-25 02:17:30 +000083
admin4ceac2d2006-09-25 06:40:16 +000084 /**
85 * Drop Table
86 *
admin83b05a82006-09-25 21:06:46 +000087 * @access private
admin4ceac2d2006-09-25 06:40:16 +000088 * @return bool
89 */
admin83b05a82006-09-25 21:06:46 +000090 function _drop_table($table)
admin4ceac2d2006-09-25 06:40:16 +000091 {
admin83b05a82006-09-25 21:06:46 +000092 return FALSE;
admin4ceac2d2006-09-25 06:40:16 +000093 }
94
95 // --------------------------------------------------------------------
96
adminab4f61b2006-09-25 22:12:32 +000097 /**
98 * Optimize table query
99 *
100 * Generates a platform-specific query so that a table can be optimized
101 *
102 * @access private
103 * @param string the table name
104 * @return object
105 */
106 function _optimize_table($table)
107 {
108 return FALSE; // Is this supported in Oracle?
109 }
110
111 // --------------------------------------------------------------------
112
113 /**
114 * Repair table query
115 *
116 * Generates a platform-specific query so that a table can be repaired
117 *
118 * @access private
119 * @param string the table name
120 * @return object
121 */
122 function _repair_table($table)
123 {
124 return return FALSE; // Is this supported in Oracle?
125 }
126
admin7b613c72006-09-24 18:05:17 +0000127}
128
129?>