add postgres support (#236)

This commit is contained in:
sunxyw
2023-01-04 16:44:26 +08:00
committed by GitHub
parent fe890025c5
commit 6238224e8c
4 changed files with 54 additions and 1 deletions

View File

@@ -324,7 +324,7 @@ class Framework
}
$properties['db[' . $name . ']'] = match ($db['type']) {
'sqlite' => $db['type'] . '://' . $db['dbname'],
'mysql' => $db['type'] . '://' . $db['host'] . ':' . $db['port'] . '/' . $db['dbname'],
'mysql', 'pgsql' => $db['type'] . '://' . $db['host'] . ':' . $db['port'] . '/' . $db['dbname'],
default => '未知数据库类型',
};
}