mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-23 00:25:35 +08:00
add postgres support (#236)
This commit is contained in:
@@ -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 => '未知数据库类型',
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user