Updated libraries.

This commit is contained in:
flash 2024-10-28 18:35:19 +00:00
parent db9e60a018
commit 518a9b6bcc
3 changed files with 125 additions and 117 deletions

View file

@ -1,7 +1,7 @@
<?php
namespace Misuzu;
use Index\Db\DbTools;
use Index\Db\DbBackends;
use Index\Config\Db\DbConfig;
use Index\Config\Fs\FsConfig;
@ -37,7 +37,7 @@ if($cfg->hasValues('sentry:dsn'))
});
})($cfg->scopeTo('sentry'));
$db = DbTools::create($cfg->getString('database:dsn', 'null:'));
$db = DbBackends::create($cfg->getString('database:dsn', 'null:'));
$db->execute('SET SESSION time_zone = \'+00:00\', sql_mode = \'STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION\';');
$cfg = new DbConfig($db, 'msz_config');