mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-23 08:05:59 +00:00
materialized views - passed test work CockroachDB #123
This commit is contained in:
@@ -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', () => {
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ const engines = [
|
|||||||
port: 15003,
|
port: 15003,
|
||||||
},
|
},
|
||||||
skipOnCI: true,
|
skipOnCI: true,
|
||||||
objects: [views],
|
objects: [views, matviews],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -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} */
|
||||||
|
|||||||
Reference in New Issue
Block a user