Setup/DBconfig

* test for known world db formats and throw appropriate errors
 * test for imported aowow db and throw error if missing
 * make DB connection reloadable
This commit is contained in:
Sarjuuk
2024-06-09 00:54:53 +02:00
parent 82c04c9ed5
commit 33ee358e0c
5 changed files with 107 additions and 27 deletions

View File

@@ -24,7 +24,10 @@ class DB
public static function connect($idx)
{
if (self::isConnected($idx))
return;
{
self::$interfaceCache[$idx]->link->close();
self::$interfaceCache[$idx] = null;
}
$options = &self::$optionsCache[$idx];
$interface = DbSimple_Generic::connect(self::createConnectSyntax($options));