1
0
Fork 0
mirror of synced 2024-09-29 08:51:28 +13:00

console external db

This commit is contained in:
Damodar Lohani 2021-12-23 15:18:38 +05:45
parent b6d0607c72
commit 68a83fa529

View file

@ -850,6 +850,15 @@ App::setResource('dbForConsole', function($db, $cache) {
return $database;
}, ['db', 'cache']);
App::setResource('dbForConsoleExternal', function($db, $cache) {
$cache = new Cache(new RedisCache($cache));
$database = new Database(new MariaDB($db), $cache);
$database->setNamespace('project_console_external');
return $database;
}, ['db', 'cache']);
App::setResource('mode', function($request) {
/** @var Utopia\Swoole\Request $request */