Feature - initial version of SQLite cell caching

git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83558 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
Mark Baker 2011-12-03 00:32:01 +00:00
parent 07e56b5a60
commit 11c87c19ad
2 changed files with 1 additions and 3 deletions

View File

@ -199,7 +199,6 @@ class PHPExcel_CachedObjectStorage_SQLite3 extends PHPExcel_CachedObjectStorage_
if (is_null($this->_DBHandle)) {
$this->_TableName = str_replace('.','_',$this->_getUniqueID());
$_DBName = ':memory:';
// $_DBName = PHPExcel_Shared_File::sys_get_temp_dir().'/PHPExcel.sqlite3';
$this->_DBHandle = new SQLite3($_DBName);
$this->_DBHandle->exec('CREATE TABLE kvp_'.$this->_TableName.' (id VARCHAR(12) PRIMARY KEY, value BLOB)');
@ -209,8 +208,6 @@ class PHPExcel_CachedObjectStorage_SQLite3 extends PHPExcel_CachedObjectStorage_
public function __destruct() {
if (!is_null($this->_DBHandle)) {
// $this->_DBHandle->exec('DROP TABLE kvp_'.$this->_TableName);
$this->_DBHandle->close();
}
$this->_DBHandle = null;

View File

@ -230,6 +230,7 @@ class PHPExcel_IOFactory
$reader = self::createReader('Excel2007');
break;
case 'xls':
case 'xlsm':
$reader = self::createReader('Excel5');
break;
case 'ods':