test views

This commit is contained in:
Jan Prochazka
2021-05-27 10:53:53 +02:00
parent dab9d33394
commit 30f291c525
3 changed files with 76 additions and 1 deletions

View File

@@ -1,3 +1,11 @@
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',
@@ -8,6 +16,7 @@ const engines = [
user: 'root',
port: 15001,
},
objects: [views],
},
{
label: 'PostgreSQL',
@@ -18,6 +27,7 @@ const engines = [
user: 'postgres',
port: 15000,
},
objects: [views],
},
{
label: 'SQL Server',
@@ -28,6 +38,7 @@ const engines = [
user: 'sa',
port: 15002,
},
objects: [views],
},
{
label: 'SQLite',
@@ -35,6 +46,7 @@ const engines = [
connection: {
engine: 'sqlite@dbgate-plugin-sqlite',
},
objects: [views],
},
{
label: 'CockroachDB',
@@ -44,6 +56,7 @@ const engines = [
user: 'root',
port: 15003,
},
objects: [views],
},
];