try to connect

This commit is contained in:
Jan Prochazka
2021-05-27 12:38:27 +02:00
parent 9dbe73d9c3
commit f45969f5d3
3 changed files with 74 additions and 74 deletions

View File

@@ -7,17 +7,17 @@ const views = {
};
const engines = [
{
label: 'MySQL',
connection: {
engine: 'mysql@dbgate-plugin-mysql',
server: 'localhost',
password: 'Pwd2020Db',
user: 'root',
port: 15001,
},
objects: [views],
},
// {
// label: 'MySQL',
// connection: {
// engine: 'mysql@dbgate-plugin-mysql',
// server: 'localhost',
// password: 'Pwd2020Db',
// user: 'root',
// port: 15001,
// },
// objects: [views],
// },
{
label: 'PostgreSQL',
connection: {
@@ -25,7 +25,7 @@ const engines = [
server: 'localhost',
password: 'Pwd2020Db',
user: 'postgres',
port: 15000,
port: 5432,
},
objects: [
views,
@@ -38,44 +38,44 @@ const engines = [
},
],
},
{
label: 'SQL Server',
connection: {
engine: 'mssql@dbgate-plugin-mssql',
server: 'localhost',
password: 'Pwd2020Db',
user: 'sa',
port: 15002,
},
objects: [
views,
{
type: 'procedures',
create1: 'CREATE PROCEDURE obj1 AS SELECT id FROM t1',
create2: 'CREATE PROCEDURE obj2 AS SELECT id FROM t2',
drop1: 'DROP PROCEDURE obj1',
drop2: 'DROP PROCEDURE obj2',
},
],
},
{
label: 'SQLite',
generateDbFile: true,
connection: {
engine: 'sqlite@dbgate-plugin-sqlite',
},
objects: [views],
},
{
label: 'CockroachDB',
connection: {
engine: 'cockroach@dbgate-plugin-postgres',
server: 'localhost',
user: 'root',
port: 15003,
},
objects: [views],
},
// {
// label: 'SQL Server',
// connection: {
// engine: 'mssql@dbgate-plugin-mssql',
// server: 'localhost',
// password: 'Pwd2020Db',
// user: 'sa',
// port: 15002,
// },
// objects: [
// views,
// {
// type: 'procedures',
// create1: 'CREATE PROCEDURE obj1 AS SELECT id FROM t1',
// create2: 'CREATE PROCEDURE obj2 AS SELECT id FROM t2',
// drop1: 'DROP PROCEDURE obj1',
// drop2: 'DROP PROCEDURE obj2',
// },
// ],
// },
// {
// label: 'SQLite',
// generateDbFile: true,
// connection: {
// engine: 'sqlite@dbgate-plugin-sqlite',
// },
// objects: [views],
// },
// {
// label: 'CockroachDB',
// connection: {
// engine: 'cockroach@dbgate-plugin-postgres',
// server: 'localhost',
// user: 'root',
// port: 15003,
// },
// objects: [views],
// },
];
module.exports = engines;