diff --git a/integration-tests/__tests__/object-analyse.spec.js b/integration-tests/__tests__/object-analyse.spec.js index 1720b15f..b088d1b6 100644 --- a/integration-tests/__tests__/object-analyse.spec.js +++ b/integration-tests/__tests__/object-analyse.spec.js @@ -15,11 +15,11 @@ const obj1Match = expect.objectContaining({ }); const view1Match = expect.objectContaining({ pureName: 'obj1', - columns: [ + columns: expect.arrayContaining([ expect.objectContaining({ columnName: 'id', }), - ], + ]), }); describe('Object analyse', () => { diff --git a/integration-tests/engines.js b/integration-tests/engines.js index 8038e38b..e2dfaa98 100644 --- a/integration-tests/engines.js +++ b/integration-tests/engines.js @@ -101,7 +101,7 @@ const engines = [ port: 15003, }, skipOnCI: true, - objects: [views], + objects: [views, matviews], }, ]; diff --git a/plugins/dbgate-plugin-postgres/src/frontend/drivers.js b/plugins/dbgate-plugin-postgres/src/frontend/drivers.js index 407c020e..4b9b73d7 100644 --- a/plugins/dbgate-plugin-postgres/src/frontend/drivers.js +++ b/plugins/dbgate-plugin-postgres/src/frontend/drivers.js @@ -41,6 +41,10 @@ const cockroachDriver = { engine: 'cockroach@dbgate-plugin-postgres', title: 'CockroachDB', defaultPort: 26257, + dialect: { + ...dialect, + materializedViews: true, + }, }; /** @type {import('dbgate-types').EngineDriver} */