mirror of
https://github.com/dbgate/dbgate
synced 2024-11-21 23:39:46 +00:00
try to connect
This commit is contained in:
parent
9dbe73d9c3
commit
f45969f5d3
46
.github/workflows/integration-tests.yaml
vendored
46
.github/workflows/integration-tests.yaml
vendored
@ -31,29 +31,29 @@ jobs:
|
||||
env:
|
||||
POSTGRES_PASSWORD: Pwd2020Db
|
||||
ports:
|
||||
- 15000:5432
|
||||
- 5432:5432
|
||||
|
||||
mysql:
|
||||
image: mysql
|
||||
# options: >-
|
||||
# --default-authentication-plugin=mysql_native_password
|
||||
ports:
|
||||
- 15001:3306
|
||||
env:
|
||||
MYSQL_ROOT_PASSWORD: Pwd2020Db
|
||||
# mysql:
|
||||
# image: mysql
|
||||
# # options: >-
|
||||
# # --default-authentication-plugin=mysql_native_password
|
||||
# ports:
|
||||
# - 15001:3306
|
||||
# env:
|
||||
# MYSQL_ROOT_PASSWORD: Pwd2020Db
|
||||
|
||||
mssql:
|
||||
image: mcr.microsoft.com/mssql/server
|
||||
ports:
|
||||
- 15002:1433
|
||||
env:
|
||||
ACCEPT_EULA: Y
|
||||
SA_PASSWORD: Pwd2020Db
|
||||
MSSQL_PID: Express
|
||||
# mssql:
|
||||
# image: mcr.microsoft.com/mssql/server
|
||||
# ports:
|
||||
# - 15002:1433
|
||||
# env:
|
||||
# ACCEPT_EULA: Y
|
||||
# SA_PASSWORD: Pwd2020Db
|
||||
# MSSQL_PID: Express
|
||||
|
||||
cockroachdb:
|
||||
image: cockroachdb/cockroach
|
||||
ports:
|
||||
- 15003:26257
|
||||
# options: >-
|
||||
# start-single-node --insecure
|
||||
# cockroachdb:
|
||||
# image: cockroachdb/cockroach
|
||||
# ports:
|
||||
# - 15003:26257
|
||||
# # options: >-
|
||||
# # start-single-node --insecure
|
||||
|
@ -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;
|
||||
|
@ -10,7 +10,7 @@
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"wait": "cross-env DEVMODE=1 node wait.js",
|
||||
"test": "cross-env DEVMODE=1 jest --runInBand",
|
||||
"test": "cross-env DEVMODE=1 jest",
|
||||
"run:local": "docker-compose down && docker-compose up -d && yarn wait && yarn test"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
Loading…
Reference in New Issue
Block a user