forked from wallabag/wallabag
README, CREDITS & chmod
This commit is contained in:
@ -10,15 +10,13 @@
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user