diff options
| author | 2014-07-05 01:52:41 +0200 | |
|---|---|---|
| committer | 2014-07-05 01:52:41 +0200 | |
| commit | 805c91da98c2f582e279f3c853fba9e43f572419 (patch) | |
| tree | 4f81b17c32a896e0b6b66f4622f31dc550d7b872 /lib | |
| parent | 1b43167fb8206dfd17923c389de1e3bd6b76045e (diff) | |
Add support for SQLite
https://github.com/marienfressinaud/FreshRSS/issues/100
Warning: MySQL has been changed too, so bugs may have been introduced
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Minz/ModelPdo.php | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/Minz/ModelPdo.php b/lib/Minz/ModelPdo.php index cbbc0bebc..1f56f09c2 100644 --- a/lib/Minz/ModelPdo.php +++ b/lib/Minz/ModelPdo.php @@ -92,20 +92,6 @@ class Minz_ModelPdo { $this->bd->rollBack(); } - public function size($all = false) { - $db = Minz_Configuration::dataBase(); - $sql = 'SELECT SUM(data_length + index_length) FROM information_schema.TABLES WHERE table_schema = ?'; - $values = array($db['base']); - if (!$all) { - $sql .= ' AND table_name LIKE ?'; - $values[] = $this->prefix . '%'; - } - $stm = $this->bd->prepare($sql); - $stm->execute($values); - $res = $stm->fetchAll(PDO::FETCH_COLUMN, 0); - return $res[0]; - } - public static function clean() { self::$sharedBd = null; self::$sharedPrefix = ''; |
