Andrey Andreev | 8ae24c5 | 2012-01-16 13:05:23 +0200 | [diff] [blame] | 1 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
| 2 | /** |
| 3 | * CodeIgniter |
| 4 | * |
| 5 | * An open source application development framework for PHP 5.1.6 or newer |
| 6 | * |
| 7 | * NOTICE OF LICENSE |
| 8 | * |
| 9 | * Licensed under the Open Software License version 3.0 |
| 10 | * |
| 11 | * This source file is subject to the Open Software License (OSL 3.0) that is |
Andrey Andreev | f20fb98 | 2012-01-24 15:26:01 +0200 | [diff] [blame] | 12 | * bundled with this package in the files license.txt / license.rst. It is |
Andrey Andreev | 8ae24c5 | 2012-01-16 13:05:23 +0200 | [diff] [blame] | 13 | * also available through the world wide web at this URL: |
| 14 | * http://opensource.org/licenses/OSL-3.0 |
| 15 | * If you did not receive a copy of the license and are unable to obtain it |
| 16 | * through the world wide web, please send an email to |
| 17 | * licensing@ellislab.com so we can send you a copy immediately. |
| 18 | * |
| 19 | * @package CodeIgniter |
| 20 | * @author EllisLab Dev Team |
| 21 | * @copyright Copyright (c) 2008 - 2012, EllisLab, Inc. (http://ellislab.com/) |
| 22 | * @license http://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) |
| 23 | * @link http://codeigniter.com |
| 24 | * @since Version 1.0 |
| 25 | * @filesource |
| 26 | */ |
| 27 | |
| 28 | /** |
| 29 | * SQLite3 Utility Class |
| 30 | * |
| 31 | * @category Database |
| 32 | * @author Andrey Andreev |
| 33 | * @link http://codeigniter.com/user_guide/database/ |
| 34 | */ |
| 35 | class CI_DB_sqlite3_utility extends CI_DB_utility { |
| 36 | |
| 37 | /** |
| 38 | * List databases |
| 39 | * |
| 40 | * @return bool |
| 41 | */ |
| 42 | public function _list_databases() |
| 43 | { |
| 44 | // Not supported |
| 45 | return FALSE; |
| 46 | |
| 47 | // Do we use this? |
| 48 | if ($this->db_debug) |
| 49 | { |
| 50 | return $this->db->display_error('db_unsuported_feature'); |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | // -------------------------------------------------------------------- |
| 55 | |
| 56 | /** |
| 57 | * Optimize table query |
| 58 | * |
| 59 | * Is optimization even supported in SQLite? |
| 60 | * |
| 61 | * @param string the table name |
| 62 | * @return bool |
| 63 | */ |
| 64 | public function _optimize_table($table) |
| 65 | { |
| 66 | // Not supported |
| 67 | return FALSE; |
| 68 | } |
| 69 | |
| 70 | // -------------------------------------------------------------------- |
| 71 | |
| 72 | /** |
| 73 | * Repair table query |
| 74 | * |
| 75 | * Are table repairs even supported in SQLite? |
| 76 | * |
| 77 | * @param string the table name |
| 78 | * @return object |
| 79 | */ |
| 80 | public function _repair_table($table) |
| 81 | { |
| 82 | // Not supported |
| 83 | return FALSE; |
| 84 | } |
| 85 | |
| 86 | // -------------------------------------------------------------------- |
| 87 | |
| 88 | /** |
| 89 | * SQLite Export |
| 90 | * |
| 91 | * @param array Preferences |
| 92 | * @return mixed |
| 93 | */ |
| 94 | public function _backup($params = array()) |
| 95 | { |
| 96 | // Not supported |
| 97 | return $this->db->display_error('db_unsuported_feature'); |
| 98 | } |
Andrey Andreev | f944d3b | 2012-03-20 22:12:55 +0200 | [diff] [blame^] | 99 | |
Andrey Andreev | 8ae24c5 | 2012-01-16 13:05:23 +0200 | [diff] [blame] | 100 | } |
| 101 | |
| 102 | /* End of file sqlite3_utility.php */ |
Andrey Andreev | f944d3b | 2012-03-20 22:12:55 +0200 | [diff] [blame^] | 103 | /* Location: ./system/database/drivers/sqlite3/sqlite3_utility.php */ |