dep: compose dependency

This commit is contained in:
2022-05-15 02:23:27 +09:00
parent 1371b84687
commit d318ff7d90
6 changed files with 577 additions and 1335 deletions
+2 -2
View File
@@ -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));