diff options
author | nicosomb <nicolas@loeuillet.org> | 2013-04-19 15:47:20 +0200 |
---|---|---|
committer | nicosomb <nicolas@loeuillet.org> | 2013-04-19 15:47:20 +0200 |
commit | 682536a9e759bf8c17e171bbd75d64c4cb3a308d (patch) | |
tree | 1ee7794304d472406269a56e26e26ef2a40ef5ac /inc | |
parent | 14890de35a19b44df6537e601240fe38ff6a9ed9 (diff) | |
download | wallabag-682536a9e759bf8c17e171bbd75d64c4cb3a308d.tar.gz wallabag-682536a9e759bf8c17e171bbd75d64c4cb3a308d.tar.zst wallabag-682536a9e759bf8c17e171bbd75d64c4cb3a308d.zip |
suppression fichier db.php
Diffstat (limited to 'inc')
-rw-r--r-- | inc/db.php | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/inc/db.php b/inc/db.php deleted file mode 100644 index 60d7c108..00000000 --- a/inc/db.php +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | <?php | ||
2 | /** | ||
3 | * poche, a read it later open source system | ||
4 | * | ||
5 | * @category poche | ||
6 | * @author Nicolas LÅ“uillet <nicolas@loeuillet.org> | ||
7 | * @copyright 2013 | ||
8 | * @license http://www.wtfpl.net/ see COPYING file | ||
9 | */ | ||
10 | |||
11 | class db { | ||
12 | var $handle; | ||
13 | function __construct($path) { | ||
14 | $this->handle = new PDO($path); | ||
15 | $this->handle->exec('CREATE TABLE IF NOT EXISTS "entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL UNIQUE , "title" VARCHAR, "url" VARCHAR UNIQUE , "is_read" INTEGER DEFAULT 0, "is_fav" INTEGER DEFAULT 0, "content" BLOB)'); | ||
16 | $this->handle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | ||
17 | } | ||
18 | |||
19 | public function getHandle() { | ||
20 | return $this->handle; | ||
21 | } | ||
22 | } \ No newline at end of file | ||