materialized views - passed test work CockroachDB #123

This commit is contained in:
Jan Prochazka
2021-05-30 10:34:52 +02:00
parent 35fc2e0f5b
commit 433d3be8d5
3 changed files with 7 additions and 3 deletions

View File

@@ -15,11 +15,11 @@ const obj1Match = expect.objectContaining({
}); });
const view1Match = expect.objectContaining({ const view1Match = expect.objectContaining({
pureName: 'obj1', pureName: 'obj1',
columns: [ columns: expect.arrayContaining([
expect.objectContaining({ expect.objectContaining({
columnName: 'id', columnName: 'id',
}), }),
], ]),
}); });
describe('Object analyse', () => { describe('Object analyse', () => {

View File

@@ -101,7 +101,7 @@ const engines = [
port: 15003, port: 15003,
}, },
skipOnCI: true, skipOnCI: true,
objects: [views], objects: [views, matviews],
}, },
]; ];

View File

@@ -41,6 +41,10 @@ const cockroachDriver = {
engine: 'cockroach@dbgate-plugin-postgres', engine: 'cockroach@dbgate-plugin-postgres',
title: 'CockroachDB', title: 'CockroachDB',
defaultPort: 26257, defaultPort: 26257,
dialect: {
...dialect,
materializedViews: true,
},
}; };
/** @type {import('dbgate-types').EngineDriver} */ /** @type {import('dbgate-types').EngineDriver} */