aboutsummaryrefslogblamecommitdiffhomepage
path: root/inc/db.php
blob: 705fc0c46f2f1a96efddcc247b13885e61c27f9d (plain) (tree)



















                                                                               
<?php
/**
 * poche, a read it later open source system
 *
 * @category   poche
 * @author     Nicolas Lœuillet <nicolas@loeuillet.org>
 * @copyright  2013
 * @license    http://www.wtfpl.net/ see COPYING file
 */

class db {
    var $handle;
    function __construct($path) {
        $this->handle = new PDO($path);
        $this->handle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
    }

    public function getHandle() {
        return $this->handle;
    }
}