diff options
author | Kirylka <kirylanoshko@gmail.com> | 2015-03-31 17:56:47 +0300 |
---|---|---|
committer | Kirylka <kirylanoshko@gmail.com> | 2015-03-31 17:56:47 +0300 |
commit | f5f99c335707d9b11d40f1eb0f6ddb5a993fd31a (patch) | |
tree | d9c0d3532ec9f0f2fb68e31d2611282ae0642181 /codebase/db_sqlite3.php | |
parent | 458f0aead573842f1df00ce2ae00334c27f66585 (diff) | |
download | connector-php-f5f99c335707d9b11d40f1eb0f6ddb5a993fd31a.zip connector-php-f5f99c335707d9b11d40f1eb0f6ddb5a993fd31a.tar.gz connector-php-f5f99c335707d9b11d40f1eb0f6ddb5a993fd31a.tar.bz2 |
Creating a new connector for yii2.
Diffstat (limited to 'codebase/db_sqlite3.php')
-rw-r--r-- | codebase/db_sqlite3.php | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/codebase/db_sqlite3.php b/codebase/db_sqlite3.php deleted file mode 100644 index 349490b..0000000 --- a/codebase/db_sqlite3.php +++ /dev/null @@ -1,33 +0,0 @@ -<?php -/* - @author dhtmlx.com - @license GPL, see license.txt -*/ -require_once("db_common.php"); -/*! SQLite implementation of DataWrapper -**/ -class SQLite3DBDataWrapper extends DBDataWrapper{ - - public function query($sql){ - LogMaster::log($sql); - - $res = $this->connection->query($sql); - if ($res === false) - throw new Exception("SQLLite - sql execution failed\n".$this->connection->lastErrorMsg()); - - return $res; - } - - public function get_next($res){ - return $res->fetchArray(); - } - - public function get_new_id(){ - return $this->connection->lastInsertRowID(); - } - - public function escape($data){ - return $this->connection->escapeString($data); - } -} -?>
\ No newline at end of file |