allow passing sqlite3 filepath to PileDB

This commit is contained in:
Tomáš Mládek 2019-10-17 17:55:47 +02:00
parent ac43988c55
commit 1c945185b4

View file

@ -4,9 +4,9 @@ class PileDB
{
private $db;
function __construct()
function __construct($dbpath = "pile.db")
{
$this->db = new SQLite3("pile.db");
$this->db = new SQLite3($dbpath);
}
function prepare($statement)