]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - inc/db.php
README, CREDITS & chmod
[github/wallabag/wallabag.git] / inc / db.php
index a1674ea7565e3a251d1c882103b8937ea6c6fabf..60d7c108c0cfc29e479c2d235ab2940eb1d2ab8b 100644 (file)
 
 class db {
     var $handle;
-    function __construct($path) 
-    {
+    function __construct($path) {
         $this->handle = new PDO($path);
         $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)');
         $this->handle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
     }
 
-    public function getHandle() 
-    {
+    public function getHandle() {
         return $this->handle;
     }
 }
\ No newline at end of file