mirror of
https://git.sdbs.cz/sdbs/pile.git
synced 2025-05-10 00:12:18 +00:00
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;
|
private $db;
|
||||||
|
|
||||||
function __construct()
|
function __construct($dbpath = "pile.db")
|
||||||
{
|
{
|
||||||
$this->db = new SQLite3("pile.db");
|
$this->db = new SQLite3($dbpath);
|
||||||
}
|
}
|
||||||
|
|
||||||
function prepare($statement)
|
function prepare($statement)
|
||||||
|
|
Loading…
Add table
Reference in a new issue