allow passing sqlite3 filepath to PileDB
This commit is contained in:
parent
ac43988c55
commit
1c945185b4
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue