fixed singledb docker connections

This commit is contained in:
Jan Prochazka
2024-06-17 17:06:00 +02:00
parent 25835ee19f
commit 4d25fef37d
2 changed files with 18 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
DEVMODE=1 DEVMODE=1
CONNECTIONS=mysql,postgres,mongo,mongo2,mysqlssh,sqlite,relational CONNECTIONS=mysql,postgres,postgres1,mongo,mongo2,mysqlssh,sqlite,relational
LABEL_mysql=MySql localhost LABEL_mysql=MySql localhost
SERVER_mysql=localhost SERVER_mysql=localhost
@@ -12,10 +12,18 @@ ENGINE_mysql=mysql@dbgate-plugin-mysql
LABEL_postgres=Postgres localhost LABEL_postgres=Postgres localhost
SERVER_postgres=localhost SERVER_postgres=localhost
USER_postgres=postgres USER_postgres=postgres
PASSWORD_postgres=test PASSWORD_postgres=Pwd2020Db
PORT_postgres=5433 PORT_postgres=5432
ENGINE_postgres=postgres@dbgate-plugin-postgres 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 LABEL_mongo=Mongo URL
URL_mongo=mongodb://localhost:27017 URL_mongo=mongodb://localhost:27017
ENGINE_mongo=mongo@dbgate-plugin-mongo ENGINE_mongo=mongo@dbgate-plugin-mongo

View File

@@ -146,9 +146,13 @@ export const currentThemeDefinition = derived([currentTheme, extensions], ([$cur
$extensions.themes.find(x => x.themeClassName == $currentTheme) $extensions.themes.find(x => x.themeClassName == $currentTheme)
); );
export const openedConnectionsWithTemporary = derived( export const openedConnectionsWithTemporary = derived(
[openedConnections, temporaryOpenedConnections], [openedConnections, temporaryOpenedConnections, openedSingleDatabaseConnections],
([$openedConnections, $temporaryOpenedConnections]) => ([$openedConnections, $temporaryOpenedConnections, $openedSingleDatabaseConnections]) =>
_.uniq([...$openedConnections, ...$temporaryOpenedConnections.map(x => x.conid)]) _.uniq([
...$openedConnections,
...$temporaryOpenedConnections.map(x => x.conid),
...$openedSingleDatabaseConnections,
])
); );
let nativeMenuOnStartup = null; let nativeMenuOnStartup = null;