mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-17 22:36:01 +00:00
fixed singledb docker connections
This commit is contained in:
14
packages/api/env/portal/.env
vendored
14
packages/api/env/portal/.env
vendored
@@ -1,6 +1,6 @@
|
||||
DEVMODE=1
|
||||
|
||||
CONNECTIONS=mysql,postgres,mongo,mongo2,mysqlssh,sqlite,relational
|
||||
CONNECTIONS=mysql,postgres,postgres1,mongo,mongo2,mysqlssh,sqlite,relational
|
||||
|
||||
LABEL_mysql=MySql localhost
|
||||
SERVER_mysql=localhost
|
||||
@@ -12,10 +12,18 @@ ENGINE_mysql=mysql@dbgate-plugin-mysql
|
||||
LABEL_postgres=Postgres localhost
|
||||
SERVER_postgres=localhost
|
||||
USER_postgres=postgres
|
||||
PASSWORD_postgres=test
|
||||
PORT_postgres=5433
|
||||
PASSWORD_postgres=Pwd2020Db
|
||||
PORT_postgres=5432
|
||||
ENGINE_postgres=postgres@dbgate-plugin-postgres
|
||||
|
||||
LABEL_postgres1=Postgres localhost test DB
|
||||
SERVER_postgres1=localhost
|
||||
USER_postgres1=postgres
|
||||
PASSWORD_postgres1=Pwd2020Db
|
||||
PORT_postgres1=5432
|
||||
ENGINE_postgres1=postgres@dbgate-plugin-postgres
|
||||
DATABASE_postgres1=test
|
||||
|
||||
LABEL_mongo=Mongo URL
|
||||
URL_mongo=mongodb://localhost:27017
|
||||
ENGINE_mongo=mongo@dbgate-plugin-mongo
|
||||
|
||||
@@ -146,9 +146,13 @@ export const currentThemeDefinition = derived([currentTheme, extensions], ([$cur
|
||||
$extensions.themes.find(x => x.themeClassName == $currentTheme)
|
||||
);
|
||||
export const openedConnectionsWithTemporary = derived(
|
||||
[openedConnections, temporaryOpenedConnections],
|
||||
([$openedConnections, $temporaryOpenedConnections]) =>
|
||||
_.uniq([...$openedConnections, ...$temporaryOpenedConnections.map(x => x.conid)])
|
||||
[openedConnections, temporaryOpenedConnections, openedSingleDatabaseConnections],
|
||||
([$openedConnections, $temporaryOpenedConnections, $openedSingleDatabaseConnections]) =>
|
||||
_.uniq([
|
||||
...$openedConnections,
|
||||
...$temporaryOpenedConnections.map(x => x.conid),
|
||||
...$openedSingleDatabaseConnections,
|
||||
])
|
||||
);
|
||||
|
||||
let nativeMenuOnStartup = null;
|
||||
|
||||
Reference in New Issue
Block a user