mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-25 21:15:59 +00:00
64 lines
1.2 KiB
JavaScript
64 lines
1.2 KiB
JavaScript
const views = {
|
|
type: 'views',
|
|
create1: 'CREATE VIEW obj1 AS SELECT id FROM t1',
|
|
create2: 'CREATE VIEW obj2 AS SELECT id FROM t2',
|
|
drop1: 'DROP VIEW obj1',
|
|
drop2: 'DROP VIEW obj2',
|
|
};
|
|
|
|
const engines = [
|
|
{
|
|
label: 'MySQL',
|
|
connection: {
|
|
engine: 'mysql@dbgate-plugin-mysql',
|
|
server: 'localhost',
|
|
password: 'Pwd2020Db',
|
|
user: 'root',
|
|
port: 15001,
|
|
},
|
|
objects: [views],
|
|
},
|
|
{
|
|
label: 'PostgreSQL',
|
|
connection: {
|
|
engine: 'postgres@dbgate-plugin-postgres',
|
|
server: 'localhost',
|
|
password: 'Pwd2020Db',
|
|
user: 'postgres',
|
|
port: 15000,
|
|
},
|
|
objects: [views],
|
|
},
|
|
{
|
|
label: 'SQL Server',
|
|
connection: {
|
|
engine: 'mssql@dbgate-plugin-mssql',
|
|
server: 'localhost',
|
|
password: 'Pwd2020Db',
|
|
user: 'sa',
|
|
port: 15002,
|
|
},
|
|
objects: [views],
|
|
},
|
|
{
|
|
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;
|