dep: compose dependency

This commit is contained in:
Hide_D committed 2022-05-15 02:23:27 +09:00
1 parent 220dbb7d8d
commit 1a43f118cc
6 files changed
+577 -1335

No files matched your search

+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));