dep: compose dependency
This commit is contained in:
@@ -8,8 +8,8 @@ class FileDB{
|
||||
public static function db(string $path, ?string $schemaPath = null) : Medoo{
|
||||
//Note: reference count 적용. MySQL의 것과 다르게 동작함.
|
||||
$db = new Medoo([
|
||||
'database_type' => 'sqlite',
|
||||
'database_file' => $path
|
||||
'type' => 'sqlite',
|
||||
'database' => $path
|
||||
]);
|
||||
if($schemaPath){
|
||||
$db->query(\file_get_contents($schemaPath));
|
||||
|
||||
Reference in New Issue
Block a user