ydb-embedded-ui 6.34.0 → 6.36.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/AutoRefreshControl/AutoRefreshControl.js +1 -1
- package/dist/components/AutoRefreshControl/AutoRefreshControl.js.map +1 -1
- package/dist/components/MemoryViewer/MemoryViewer.d.ts +1 -3
- package/dist/components/MemoryViewer/MemoryViewer.js +3 -1
- package/dist/components/MemoryViewer/MemoryViewer.js.map +1 -1
- package/dist/components/NodeHostWrapper/NodeHostWrapper.d.ts +5 -3
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js +3 -2
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js.map +1 -1
- package/dist/components/PaginatedTable/PaginatedTable.js +9 -7
- package/dist/components/PaginatedTable/PaginatedTable.js.map +1 -1
- package/dist/components/PaginatedTable/TableChunk.d.ts +4 -5
- package/dist/components/PaginatedTable/TableChunk.js +7 -1
- package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
- package/dist/components/nodesColumns/__test__/utils.test.d.ts +1 -0
- package/dist/components/nodesColumns/__test__/utils.test.js +28 -0
- package/dist/components/nodesColumns/__test__/utils.test.js.map +1 -0
- package/dist/components/nodesColumns/columns.d.ts +28 -2
- package/dist/components/nodesColumns/columns.js +83 -5
- package/dist/components/nodesColumns/columns.js.map +1 -1
- package/dist/components/nodesColumns/constants.d.ts +12 -0
- package/dist/components/nodesColumns/constants.js +36 -0
- package/dist/components/nodesColumns/constants.js.map +1 -1
- package/dist/components/nodesColumns/i18n/en.json +11 -1
- package/dist/components/nodesColumns/i18n/index.d.ts +1 -1
- package/dist/components/nodesColumns/utils.d.ts +2 -0
- package/dist/components/nodesColumns/utils.js +11 -0
- package/dist/components/nodesColumns/utils.js.map +1 -0
- package/dist/containers/Nodes/Nodes.js +2 -2
- package/dist/containers/Nodes/Nodes.js.map +1 -1
- package/dist/containers/Nodes/NodesControls/NodesControls.d.ts +3 -1
- package/dist/containers/Nodes/NodesControls/NodesControls.js +3 -3
- package/dist/containers/Nodes/NodesControls/NodesControls.js.map +1 -1
- package/dist/containers/Nodes/PaginatedNodes.d.ts +11 -3
- package/dist/containers/Nodes/PaginatedNodes.js +16 -19
- package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
- package/dist/containers/Nodes/columns/constants.d.ts +3 -2
- package/dist/containers/Nodes/columns/constants.js +8 -8
- package/dist/containers/Nodes/columns/constants.js.map +1 -1
- package/dist/containers/Nodes/useNodesPageQueryParams.d.ts +3 -2
- package/dist/containers/Nodes/useNodesPageQueryParams.js +2 -2
- package/dist/containers/Nodes/useNodesPageQueryParams.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +2 -2
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/columns.d.ts +4 -0
- package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/columns.js +23 -0
- package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/columns.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/constants.d.ts +5 -0
- package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/constants.js +23 -0
- package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/constants.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.d.ts +6 -0
- package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.js +26 -0
- package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js +1 -1
- package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.js +3 -2
- package/dist/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TenantMemory.d.ts +5 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TenantMemory.js +6 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TenantMemory.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.scss +5 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.js +1 -1
- package/dist/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.js.map +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.d.ts +2 -2
- package/dist/containers/Tenant/Query/ExecuteResult/utils.d.ts +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/utils.js +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/utils.js.map +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.d.ts +2 -2
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js.map +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/Graph/Graph.d.ts +2 -2
- package/dist/containers/Tenant/Query/ExplainResult/components/Graph/Graph.js +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/Graph/Graph.js.map +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.d.ts +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/types.d.ts +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.d.ts +1 -1
- package/dist/containers/Tenant/Query/NewSQL/NewSQL.js +3 -9
- package/dist/containers/Tenant/Query/NewSQL/NewSQL.js.map +1 -1
- package/dist/containers/Tenant/Query/NewSQL/i18n/en.json +1 -2
- package/dist/containers/Tenant/Query/NewSQL/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js +1 -1
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js.map +1 -1
- package/dist/containers/Tenant/Query/Query.js +1 -1
- package/dist/containers/Tenant/Query/Query.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +25 -12
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js +5 -3
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.d.ts +1 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/en.json +1 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/ru.json +1 -0
- package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.d.ts +12 -3
- package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js +25 -10
- package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js.map +1 -1
- package/dist/containers/Tenant/utils/newSQLQueryActions.d.ts +0 -1
- package/dist/containers/Tenant/utils/newSQLQueryActions.js +0 -1
- package/dist/containers/Tenant/utils/newSQLQueryActions.js.map +1 -1
- package/dist/containers/Tenant/utils/schemaActions.js +5 -4
- package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
- package/dist/containers/Tenant/utils/schemaQueryTemplates.js +86 -53
- package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -1
- package/dist/containers/UserSettings/i18n/en.json +3 -2
- package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
- package/dist/containers/UserSettings/settings.d.ts +1 -0
- package/dist/containers/UserSettings/settings.js +6 -2
- package/dist/containers/UserSettings/settings.js.map +1 -1
- package/dist/containers/Versions/groupNodes.js +1 -1
- package/dist/containers/Versions/groupNodes.js.map +1 -1
- package/dist/services/api.js +1 -0
- package/dist/services/api.js.map +1 -1
- package/dist/services/settings.d.ts +1 -0
- package/dist/services/settings.js +2 -1
- package/dist/services/settings.js.map +1 -1
- package/dist/store/configureStore.d.ts +16 -8
- package/dist/store/configureStore.js +1 -1
- package/dist/store/configureStore.js.map +1 -1
- package/dist/store/defaultStore.d.ts +8 -4
- package/dist/store/reducers/cancelQuery.js +2 -2
- package/dist/store/reducers/cancelQuery.js.map +1 -1
- package/dist/store/reducers/capabilities/capabilities.d.ts +32 -16
- package/dist/store/reducers/capabilities/hooks.d.ts +1 -0
- package/dist/store/reducers/capabilities/hooks.js +3 -0
- package/dist/store/reducers/capabilities/hooks.js.map +1 -1
- package/dist/store/reducers/cluster/cluster.d.ts +24 -12
- package/dist/store/reducers/cluster/utils.js +2 -2
- package/dist/store/reducers/cluster/utils.js.map +1 -1
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js +3 -3
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js.map +1 -1
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +80 -40
- package/dist/store/reducers/index.d.ts +12 -6
- package/dist/store/reducers/index.js +2 -2
- package/dist/store/reducers/index.js.map +1 -1
- package/dist/store/reducers/node/selectors.d.ts +4 -2
- package/dist/store/reducers/nodes/types.d.ts +13 -0
- package/dist/store/reducers/nodes/utils.js +3 -3
- package/dist/store/reducers/nodes/utils.js.map +1 -1
- package/dist/store/reducers/nodesList.d.ts +4 -2
- package/dist/store/reducers/partitions/partitions.d.ts +4 -3
- package/dist/store/reducers/partitions/partitions.js +1 -3
- package/dist/store/reducers/partitions/partitions.js.map +1 -1
- package/dist/store/reducers/partitions/types.d.ts +0 -3
- package/dist/store/reducers/preview.js +2 -2
- package/dist/store/reducers/preview.js.map +1 -1
- package/dist/store/reducers/query/__test__/utils.test.d.ts +1 -0
- package/dist/store/reducers/query/__test__/utils.test.js +24 -0
- package/dist/store/reducers/query/__test__/utils.test.js.map +1 -0
- package/dist/store/reducers/query/prepareQueryData.d.ts +6 -0
- package/dist/store/reducers/{explainQuery/utils.js → query/prepareQueryData.js} +11 -10
- package/dist/store/reducers/query/prepareQueryData.js.map +1 -0
- package/dist/store/reducers/query/query.d.ts +55 -0
- package/dist/store/reducers/{executeQuery.js → query/query.js} +32 -45
- package/dist/store/reducers/query/query.js.map +1 -0
- package/dist/store/reducers/query/types.d.ts +57 -0
- package/dist/store/reducers/query/types.js.map +1 -0
- package/dist/store/reducers/query/utils.d.ts +7 -0
- package/dist/store/reducers/query/utils.js +21 -0
- package/dist/store/reducers/query/utils.js.map +1 -0
- package/dist/store/reducers/queryActions/queryActions.js +1 -1
- package/dist/store/reducers/queryActions/queryActions.js.map +1 -1
- package/dist/store/reducers/queryActions/types.d.ts +1 -1
- package/dist/store/reducers/shardsWorkload/shardsWorkload.js +2 -2
- package/dist/store/reducers/shardsWorkload/shardsWorkload.js.map +1 -1
- package/dist/store/reducers/tablets.d.ts +20 -10
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.js +2 -2
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.js.map +1 -1
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.js +2 -2
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.js.map +1 -1
- package/dist/store/reducers/tenants/selectors.d.ts +36 -18
- package/dist/store/reducers/topic.d.ts +60 -30
- package/dist/store/reducers/trace.js +1 -1
- package/dist/store/reducers/trace.js.map +1 -1
- package/dist/types/api/nodes.d.ts +56 -0
- package/dist/types/api/nodes.js.map +1 -1
- package/dist/types/api/tenant.d.ts +2 -1
- package/dist/types/api/tenant.js.map +1 -1
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/constants.js +1 -0
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/dataFormatters/dataFormatters.d.ts +1 -1
- package/dist/utils/dataFormatters/dataFormatters.js +12 -6
- package/dist/utils/dataFormatters/dataFormatters.js.map +1 -1
- package/dist/utils/hooks/useQueryExecutionSettings.d.ts +2 -8
- package/dist/utils/hooks/useQueryExecutionSettings.js +14 -3
- package/dist/utils/hooks/useQueryExecutionSettings.js.map +1 -1
- package/dist/utils/hooks/withConfirmation/useChangeInputWithConfirmation.js +13 -9
- package/dist/utils/hooks/withConfirmation/useChangeInputWithConfirmation.js.map +1 -1
- package/dist/utils/monaco/insertSnippet.d.ts +1 -0
- package/dist/utils/monaco/insertSnippet.js +8 -0
- package/dist/utils/monaco/insertSnippet.js.map +1 -0
- package/dist/utils/prepareQueryExplain.d.ts +1 -1
- package/dist/utils/query.d.ts +1 -2
- package/dist/utils/query.js +5 -10
- package/dist/utils/query.js.map +1 -1
- package/dist/utils/query.test.js +20 -34
- package/dist/utils/query.test.js.map +1 -1
- package/dist/utils/timeParsers/parsers.d.ts +1 -1
- package/dist/utils/timeParsers/parsers.js +3 -2
- package/dist/utils/timeParsers/parsers.js.map +1 -1
- package/package.json +2 -2
- package/dist/store/reducers/executeQuery.d.ts +0 -54
- package/dist/store/reducers/executeQuery.js.map +0 -1
- package/dist/store/reducers/explainQuery/explainQuery.d.ts +0 -10
- package/dist/store/reducers/explainQuery/explainQuery.js +0 -72
- package/dist/store/reducers/explainQuery/explainQuery.js.map +0 -1
- package/dist/store/reducers/explainQuery/types.d.ts +0 -28
- package/dist/store/reducers/explainQuery/types.js.map +0 -1
- package/dist/store/reducers/explainQuery/utils.d.ts +0 -6
- package/dist/store/reducers/explainQuery/utils.js.map +0 -1
- package/dist/types/store/executeQuery.d.ts +0 -42
- package/dist/types/store/executeQuery.js +0 -6
- package/dist/types/store/executeQuery.js.map +0 -1
- /package/dist/store/reducers/{explainQuery → query}/types.js +0 -0
package/dist/utils/query.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../src/utils/query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAC,OAAO,EAAC,MAAM,UAAU,CAAC;AAmBjC,OAAO,EAAC,eAAe,EAAE,cAAc,EAAC,MAAM,YAAY,CAAC;AAE3D,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,YAAY,EAAE,yBAAyB;IACvC,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,kBAAkB;IAC5B,QAAQ,EAAE,oBAAoB;IAC9B,QAAQ,EAAE,UAAU;CACd,CAAC;AAEX,MAAM,CAAC,MAAM,wBAAwB,GAAoC;IACrE,CAAC,iBAAiB,CAAC,YAAY,CAAC,EAAE,cAAc;IAChD,CAAC,iBAAiB,CAAC,OAAO,CAAC,EAAE,iBAAiB;IAC9C,CAAC,iBAAiB,CAAC,QAAQ,CAAC,EAAE,kBAAkB;IAChD,CAAC,iBAAiB,CAAC,QAAQ,CAAC,EAAE,oBAAoB;IAClD,CAAC,iBAAiB,CAAC,QAAQ,CAAC,EAAE,UAAU;CAClC,CAAC;AAEX,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;CACZ,CAAC;AAEX,MAAM,CAAC,MAAM,uBAAuB,GAAmC;IACnE,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,MAAM;IAC/B,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,MAAM;I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AK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,EACvC,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAM,CAAC,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,sBAAsB,CAAC,SAAS,CAAC,CACzF;IACD,SAAS,EAAE,eAAe,CAAC,KAAK,CAAC,sBAAsB,CAAC,SAAS,CAAC;IAClE,eAAe,EAAE,qBAAqB,CAAC,KAAK,CAAC,sBAAsB,CAAC,eAAe,CAAC;IACpF,cAAc,EAAE,oBAAoB,CAAC,KAAK,CAAC,sBAAsB,CAAC,cAAc,CAAC;IACjF,YAAY,EAAE,kBAAkB,CAAC,KAAK,CAAC,sBAAsB,CAAC,YAAY,CAAC;CAC9E,CAAC;KACD,KAAK,CAAC,sBAAsB,CAAC,CAAC"}
|
package/dist/utils/query.test.js
CHANGED
@@ -1,28 +1,28 @@
|
|
1
|
-
import {
|
1
|
+
import { parseQueryAPIResponse, parseQueryExplainPlan } from './query';
|
2
2
|
describe('API utils', () => {
|
3
3
|
describe('json/viewer/query', () => {
|
4
|
-
describe('
|
4
|
+
describe('parseQueryAPIResponse', () => {
|
5
5
|
describe('should handle responses with incorrect format', () => {
|
6
6
|
it('should handle null response', () => {
|
7
|
-
expect(
|
7
|
+
expect(parseQueryAPIResponse(null)).toEqual({});
|
8
8
|
});
|
9
9
|
it('should handle undefined response', () => {
|
10
|
-
expect(
|
10
|
+
expect(parseQueryAPIResponse(undefined)).toEqual({});
|
11
11
|
});
|
12
12
|
it('should handle string response', () => {
|
13
|
-
expect(
|
13
|
+
expect(parseQueryAPIResponse('foo')).toEqual({});
|
14
14
|
});
|
15
15
|
it('should handle array response', () => {
|
16
|
-
expect(
|
16
|
+
expect(parseQueryAPIResponse([{ foo: 'bar' }])).toEqual({});
|
17
17
|
});
|
18
18
|
it('should handle json string in the result field', () => {
|
19
19
|
const json = { foo: 'bar' };
|
20
20
|
const response = { result: JSON.stringify(json) };
|
21
|
-
expect(
|
21
|
+
expect(parseQueryAPIResponse(response)).toEqual({});
|
22
22
|
});
|
23
23
|
it('should handle object with request plan in the result field', () => {
|
24
24
|
const response = { result: { queries: 'some queries' } };
|
25
|
-
expect(
|
25
|
+
expect(parseQueryAPIResponse(response)).toEqual({});
|
26
26
|
});
|
27
27
|
});
|
28
28
|
describe('should correctly parse data', () => {
|
@@ -30,7 +30,7 @@ describe('API utils', () => {
|
|
30
30
|
var _a, _b;
|
31
31
|
const stats = { metric: 'good' };
|
32
32
|
const response = { stats };
|
33
|
-
const actual =
|
33
|
+
const actual = parseQueryAPIResponse(response);
|
34
34
|
expect((_b = (_a = actual.resultSets) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.result).toBeUndefined();
|
35
35
|
expect(actual.columns).toBeUndefined();
|
36
36
|
expect(actual.stats).toEqual(response.stats);
|
@@ -85,7 +85,7 @@ describe('API utils', () => {
|
|
85
85
|
],
|
86
86
|
stats: { DurationUs: '1000' },
|
87
87
|
};
|
88
|
-
expect(
|
88
|
+
expect(parseQueryAPIResponse(input)).toEqual(expected);
|
89
89
|
});
|
90
90
|
it('should handle empty result array', () => {
|
91
91
|
const input = {
|
@@ -96,7 +96,7 @@ describe('API utils', () => {
|
|
96
96
|
result: [],
|
97
97
|
stats: { DurationUs: '1000' },
|
98
98
|
};
|
99
|
-
expect(
|
99
|
+
expect(parseQueryAPIResponse(input)).toEqual(expected);
|
100
100
|
});
|
101
101
|
it('should handle result with columns but no rows', () => {
|
102
102
|
const input = {
|
@@ -119,13 +119,13 @@ describe('API utils', () => {
|
|
119
119
|
],
|
120
120
|
stats: { DurationUs: '1000' },
|
121
121
|
};
|
122
|
-
expect(
|
122
|
+
expect(parseQueryAPIResponse(input)).toEqual(expected);
|
123
123
|
});
|
124
124
|
it('should return empty object for unsupported format', () => {
|
125
125
|
const input = {
|
126
126
|
result: 'unsupported',
|
127
127
|
};
|
128
|
-
expect(
|
128
|
+
expect(parseQueryAPIResponse(input)).toEqual({});
|
129
129
|
});
|
130
130
|
it('should handle multiple result sets', () => {
|
131
131
|
const input = {
|
@@ -175,7 +175,7 @@ describe('API utils', () => {
|
|
175
175
|
],
|
176
176
|
stats: { DurationUs: '1500' },
|
177
177
|
};
|
178
|
-
expect(
|
178
|
+
expect(parseQueryAPIResponse(input)).toEqual(expected);
|
179
179
|
});
|
180
180
|
it('should handle null values in rows', () => {
|
181
181
|
const input = {
|
@@ -218,7 +218,7 @@ describe('API utils', () => {
|
|
218
218
|
],
|
219
219
|
stats: { DurationUs: '1000' },
|
220
220
|
};
|
221
|
-
expect(
|
221
|
+
expect(parseQueryAPIResponse(input)).toEqual(expected);
|
222
222
|
});
|
223
223
|
it('should handle truncated results', () => {
|
224
224
|
var _a;
|
@@ -232,7 +232,7 @@ describe('API utils', () => {
|
|
232
232
|
],
|
233
233
|
stats: { DurationUs: '1000' },
|
234
234
|
};
|
235
|
-
const result =
|
235
|
+
const result = parseQueryAPIResponse(input);
|
236
236
|
expect((_a = result.resultSets) === null || _a === void 0 ? void 0 : _a[0].truncated).toBe(true);
|
237
237
|
});
|
238
238
|
it('should handle empty columns and rows', () => {
|
@@ -256,31 +256,17 @@ describe('API utils', () => {
|
|
256
256
|
],
|
257
257
|
stats: { DurationUs: '1000' },
|
258
258
|
};
|
259
|
-
expect(
|
259
|
+
expect(parseQueryAPIResponse(input)).toEqual(expected);
|
260
260
|
});
|
261
261
|
});
|
262
|
-
|
263
|
-
describe('parseQueryAPIExplainResponse', () => {
|
264
|
-
describe('should handle responses with incorrect format', () => {
|
265
|
-
it('should handle null response', () => {
|
266
|
-
expect(parseQueryAPIExecuteResponse(null)).toEqual({});
|
267
|
-
});
|
268
|
-
it('should handle undefined response', () => {
|
269
|
-
expect(parseQueryAPIExecuteResponse(undefined)).toEqual({});
|
270
|
-
});
|
271
|
-
it('should handle object with plan in the result field', () => {
|
272
|
-
const response = { result: { foo: 'bar' } };
|
273
|
-
expect(parseQueryAPIExecuteResponse(response)).toEqual({});
|
274
|
-
});
|
275
|
-
});
|
276
|
-
describe('should correctly parse data', () => {
|
262
|
+
describe('should correctly parse plans', () => {
|
277
263
|
it('should parse explain-scan', () => {
|
278
264
|
const plan = {};
|
279
265
|
const tables = [];
|
280
266
|
const meta = { version: '0.2', type: 'script' };
|
281
267
|
const ast = 'ast';
|
282
268
|
const response = { plan: { Plan: plan, tables, meta }, ast };
|
283
|
-
expect(
|
269
|
+
expect(parseQueryAPIResponse(response)).toBe(response);
|
284
270
|
});
|
285
271
|
it('should parse explain-script', () => {
|
286
272
|
const plan = {};
|
@@ -289,7 +275,7 @@ describe('API utils', () => {
|
|
289
275
|
const response = {
|
290
276
|
plan: { queries: [{ Plan: plan, tables }], meta },
|
291
277
|
};
|
292
|
-
expect(
|
278
|
+
expect(parseQueryAPIResponse(response)).toBe(response);
|
293
279
|
});
|
294
280
|
});
|
295
281
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"query.test.js","sourceRoot":"","sources":["../../src/utils/query.test.ts"],"names":[],"mappings":"AAQA,OAAO,
|
1
|
+
{"version":3,"file":"query.test.js","sourceRoot":"","sources":["../../src/utils/query.test.ts"],"names":[],"mappings":"AAQA,OAAO,EAAC,qBAAqB,EAAE,qBAAqB,EAAC,MAAM,SAAS,CAAC;AAErE,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;IACvB,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;QAC/B,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;YACnC,QAAQ,CAAC,+CAA+C,EAAE,GAAG,EAAE;gBAC3D,EAAE,CAAC,6BAA6B,EAAE,GAAG,EAAE;oBACnC,MAAM,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;gBACpD,CAAC,CAAC,CAAC;gBACH,EAAE,CAAC,kCAAkC,EAAE,GAAG,EA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AAM,OAAO,GAAG;oBACZ,IAAI,EAAE,IAAI;oBACV,MAAM,EAAE,MAAM;oBACd,IAAI,EAAE,IAAI;iBACb,CAAC;gBACF,MAAM,UAAU,GAAG,qBAAqB,CAAC,OAAO,CAAC,CAAC;gBAClD,MAAM,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACxC,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import type { IProtobufTimeObject } from '../../types/api/common';
|
2
2
|
export declare const parseLag: (value: string | IProtobufTimeObject | undefined) => number;
|
3
3
|
export declare const parseTimestampToIdleTime: (value: string | IProtobufTimeObject | undefined) => number;
|
4
|
-
export declare const parseUsToMs: (value: string | number | undefined) => number;
|
4
|
+
export declare const parseUsToMs: (value: string | number | undefined, precision?: number) => number;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { roundToPrecision } from '../dataFormatters/dataFormatters';
|
1
2
|
import { isNumeric } from '../utils';
|
2
3
|
import { parseProtobufDurationToMs, parseProtobufTimestampToMs } from './protobufParsers';
|
3
4
|
export const parseLag = (value) => value ? parseProtobufDurationToMs(value) : 0;
|
@@ -10,10 +11,10 @@ export const parseTimestampToIdleTime = (value) => {
|
|
10
11
|
// Usually it below 100ms, so it could be omitted
|
11
12
|
return duration < 0 ? 0 : duration;
|
12
13
|
};
|
13
|
-
export const parseUsToMs = (value) => {
|
14
|
+
export const parseUsToMs = (value, precision = 0) => {
|
14
15
|
if (!value || !isNumeric(value)) {
|
15
16
|
return 0;
|
16
17
|
}
|
17
|
-
return
|
18
|
+
return roundToPrecision(Number(value) / 1000, precision);
|
18
19
|
};
|
19
20
|
//# sourceMappingURL=parsers.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"parsers.js","sourceRoot":"","sources":["../../../src/utils/timeParsers/parsers.ts"],"names":[],"mappings":"A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AQ,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,0BAA0B,CAAC,KAAK,CAAC,CAAC;IAEhE,qFAAqF;IACrF,iDAAiD;IACjD,OAAO,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;AACvC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAkC,EAAE,SAAS,GAAG,CAAC,EAAE,EAAE;IAC7E,IAAI,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;QAC9B,OAAO,CAAC,CAAC;IACb,CAAC;IAED,OAAO,gBAAgB,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC,CAAC;AAC7D,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ydb-embedded-ui",
|
3
|
-
"version": "6.
|
3
|
+
"version": "6.36.0",
|
4
4
|
"files": [
|
5
5
|
"dist"
|
6
6
|
],
|
@@ -27,6 +27,7 @@
|
|
27
27
|
"@hookform/resolvers": "^3.9.0",
|
28
28
|
"@reduxjs/toolkit": "^2.2.3",
|
29
29
|
"@tanstack/react-table": "^8.19.3",
|
30
|
+
"@ebay/nice-modal-react": "^1.2.13",
|
30
31
|
"axios": "^1.7.3",
|
31
32
|
"axios-retry": "^4.4.2",
|
32
33
|
"colord": "^2.9.3",
|
@@ -119,7 +120,6 @@
|
|
119
120
|
"devDependencies": {
|
120
121
|
"@commitlint/cli": "^19.3.0",
|
121
122
|
"@commitlint/config-conventional": "^19.2.2",
|
122
|
-
"@ebay/nice-modal-react": "^1.2.13",
|
123
123
|
"@gravity-ui/browserslist-config": "^4.3.0",
|
124
124
|
"@gravity-ui/eslint-config": "^3.2.0",
|
125
125
|
"@gravity-ui/prettier-config": "^1.1.0",
|
@@ -1,54 +0,0 @@
|
|
1
|
-
import type { ExecuteQueryState, QueryInHistory, QueryResult } from '../../types/store/executeQuery';
|
2
|
-
import type { QueryRequestParams, QuerySettings } from '../../types/store/query';
|
3
|
-
declare const _default: import("redux").Reducer<ExecuteQueryState>;
|
4
|
-
export default _default;
|
5
|
-
export declare const changeUserInput: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
6
|
-
input: string;
|
7
|
-
}, "executeQuery/changeUserInput">, setQueryTraceReady: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"executeQuery/setQueryTraceReady">, setQueryResult: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<QueryResult | undefined, "executeQuery/setQueryResult">, saveQueryToHistory: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
8
|
-
queryText: string;
|
9
|
-
queryId: string;
|
10
|
-
}, "executeQuery/saveQueryToHistory">, updateQueryInHistory: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
11
|
-
queryId: string;
|
12
|
-
stats: QueryStats;
|
13
|
-
}, "executeQuery/updateQueryInHistory">, goToPreviousQuery: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"executeQuery/goToPreviousQuery">, goToNextQuery: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"executeQuery/goToNextQuery">, setTenantPath: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "executeQuery/setTenantPath">, setQueryHistoryFilter: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "executeQuery/setQueryHistoryFilter">;
|
14
|
-
export declare const selectQueriesHistoryFilter: import("reselect").Selector<{
|
15
|
-
executeQuery: ExecuteQueryState;
|
16
|
-
}, string, []> & {
|
17
|
-
unwrapped: (state: ExecuteQueryState) => string;
|
18
|
-
}, selectQueriesHistoryCurrentIndex: import("reselect").Selector<{
|
19
|
-
executeQuery: ExecuteQueryState;
|
20
|
-
}, number, []> & {
|
21
|
-
unwrapped: (state: ExecuteQueryState) => number;
|
22
|
-
}, selectQueriesHistory: import("reselect").Selector<{
|
23
|
-
executeQuery: ExecuteQueryState;
|
24
|
-
}, QueryInHistory[], []> & {
|
25
|
-
unwrapped: (state: ExecuteQueryState) => QueryInHistory[];
|
26
|
-
}, selectTenantPath: import("reselect").Selector<{
|
27
|
-
executeQuery: ExecuteQueryState;
|
28
|
-
}, string | undefined, []> & {
|
29
|
-
unwrapped: (state: ExecuteQueryState) => string | undefined;
|
30
|
-
}, selectResult: import("reselect").Selector<{
|
31
|
-
executeQuery: ExecuteQueryState;
|
32
|
-
}, (QueryResult & {
|
33
|
-
isTraceReady?: boolean;
|
34
|
-
}) | undefined, []> & {
|
35
|
-
unwrapped: (state: ExecuteQueryState) => (QueryResult & {
|
36
|
-
isTraceReady?: boolean;
|
37
|
-
}) | undefined;
|
38
|
-
}, selectUserInput: import("reselect").Selector<{
|
39
|
-
executeQuery: ExecuteQueryState;
|
40
|
-
}, string, []> & {
|
41
|
-
unwrapped: (state: ExecuteQueryState) => string;
|
42
|
-
};
|
43
|
-
interface SendQueryParams extends QueryRequestParams {
|
44
|
-
queryId: string;
|
45
|
-
querySettings?: Partial<QuerySettings>;
|
46
|
-
enableTracingLevel?: boolean;
|
47
|
-
}
|
48
|
-
interface QueryStats {
|
49
|
-
durationUs?: string | number;
|
50
|
-
endTime?: string | number;
|
51
|
-
}
|
52
|
-
export declare const executeQueryApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, {
|
53
|
-
executeQuery: import("@reduxjs/toolkit/query").MutationDefinition<SendQueryParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", null, "api">;
|
54
|
-
}, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -1 +0,0 @@
|
|
1
|
-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AAC;QAC/B,OAAO;YACH,SAAS,EAAE,QAAQ;SACtB,CAAC;IACN,CAAC;IACD,OAAO,QAAQ,CAAC;AACpB,CAAC"}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import type { QueryRequestParams, QuerySettings } from '../../../types/store/query';
|
2
|
-
interface ExplainQueryParams extends QueryRequestParams {
|
3
|
-
queryId: string;
|
4
|
-
querySettings?: Partial<QuerySettings>;
|
5
|
-
enableTracingLevel?: boolean;
|
6
|
-
}
|
7
|
-
export declare const explainQueryApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, {
|
8
|
-
explainQuery: import("@reduxjs/toolkit/query").MutationDefinition<ExplainQueryParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", null, "api">;
|
9
|
-
}, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
10
|
-
export {};
|
@@ -1,72 +0,0 @@
|
|
1
|
-
import { TracingLevelNumber } from '../../../types/api/query';
|
2
|
-
import { ResultType } from '../../../types/store/executeQuery';
|
3
|
-
import { QUERY_SYNTAX, isQueryErrorResponse } from '../../../utils/query';
|
4
|
-
import { isNumeric } from '../../../utils/utils';
|
5
|
-
import { api } from '../api';
|
6
|
-
import { setQueryResult } from '../executeQuery';
|
7
|
-
import { prepareExplainResponse } from './utils';
|
8
|
-
export const explainQueryApi = api.injectEndpoints({
|
9
|
-
endpoints: (build) => ({
|
10
|
-
explainQuery: build.mutation({
|
11
|
-
queryFn: async ({ query, database, querySettings, enableTracingLevel, queryId }, { signal, dispatch }) => {
|
12
|
-
let action = 'explain';
|
13
|
-
let syntax = QUERY_SYNTAX.yql;
|
14
|
-
dispatch(setQueryResult({ type: ResultType.EXPLAIN, queryId, isLoading: true }));
|
15
|
-
if ((querySettings === null || querySettings === void 0 ? void 0 : querySettings.queryMode) === 'pg') {
|
16
|
-
action = 'explain-query';
|
17
|
-
syntax = QUERY_SYNTAX.pg;
|
18
|
-
}
|
19
|
-
else if (querySettings === null || querySettings === void 0 ? void 0 : querySettings.queryMode) {
|
20
|
-
action = `explain-${querySettings === null || querySettings === void 0 ? void 0 : querySettings.queryMode}`;
|
21
|
-
}
|
22
|
-
try {
|
23
|
-
const response = await window.api.sendQuery({
|
24
|
-
query,
|
25
|
-
database,
|
26
|
-
action,
|
27
|
-
syntax,
|
28
|
-
stats: querySettings === null || querySettings === void 0 ? void 0 : querySettings.statisticsMode,
|
29
|
-
tracingLevel: (querySettings === null || querySettings === void 0 ? void 0 : querySettings.tracingLevel) && enableTracingLevel
|
30
|
-
? TracingLevelNumber[querySettings === null || querySettings === void 0 ? void 0 : querySettings.tracingLevel]
|
31
|
-
: undefined,
|
32
|
-
transaction_mode: (querySettings === null || querySettings === void 0 ? void 0 : querySettings.transactionMode) === 'implicit'
|
33
|
-
? undefined
|
34
|
-
: querySettings === null || querySettings === void 0 ? void 0 : querySettings.transactionMode,
|
35
|
-
timeout: isNumeric(querySettings === null || querySettings === void 0 ? void 0 : querySettings.timeout)
|
36
|
-
? Number(querySettings === null || querySettings === void 0 ? void 0 : querySettings.timeout) * 1000
|
37
|
-
: undefined,
|
38
|
-
query_id: queryId,
|
39
|
-
}, { signal });
|
40
|
-
if (isQueryErrorResponse(response)) {
|
41
|
-
dispatch(setQueryResult({
|
42
|
-
type: ResultType.EXPLAIN,
|
43
|
-
error: response,
|
44
|
-
queryId,
|
45
|
-
isLoading: false,
|
46
|
-
}));
|
47
|
-
return { error: response };
|
48
|
-
}
|
49
|
-
const data = prepareExplainResponse(response);
|
50
|
-
dispatch(setQueryResult({
|
51
|
-
type: ResultType.EXPLAIN,
|
52
|
-
data,
|
53
|
-
queryId,
|
54
|
-
isLoading: false,
|
55
|
-
}));
|
56
|
-
return { data: null };
|
57
|
-
}
|
58
|
-
catch (error) {
|
59
|
-
dispatch(setQueryResult({
|
60
|
-
type: ResultType.EXPLAIN,
|
61
|
-
error,
|
62
|
-
queryId,
|
63
|
-
isLoading: false,
|
64
|
-
}));
|
65
|
-
return { error };
|
66
|
-
}
|
67
|
-
},
|
68
|
-
}),
|
69
|
-
}),
|
70
|
-
overrideExisting: 'throw',
|
71
|
-
});
|
72
|
-
//# sourceMappingURL=explainQuery.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"explainQuery.js","sourceRoot":"","sources":["../../../../src/store/reducers/explainQuery/explainQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAC,MAAM,0BAA0B,CAAC;AAE5D,OAAO,EAAC,UAAU,EAAC,MAAM,mCAAmC,CAAC;AAE7D,OAAO,EAAC,YAAY,EAAE,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAC,GAAG,EAAC,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAC,cAAc,EAAC,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAU/C,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAC,eAAe,CAAC;IAC/C,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACnB,YAAY,EAAE,KAAK,CAAC,QAAQ,CAA2B;YACnD,OAAO,EAAE,KAAK,EACV,EAAC,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,kBAAkB,EAAE,OAAO,EAAC,EAC7D,EAAC,MAAM,EAAE,QAAQ,EAAC,EACpB,EAAE;gBACA,IAAI,MAAM,GAAmB,SAAS,CAAC;gBACvC,IAAI,MAAM,GAAgB,YAAY,CAAC,GAAG,CAAC;gBAE3C,QAAQ,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O;qBACpB,EACD,EAAC,MAAM,EAAC,CACX,CAAC;oBAEF,IAAI,oBAAoB,CAAC,QAAQ,CAAC,EAAE,CAAC;wBACjC,QAAQ,CACJ,cAAc,CAAC;4BACX,IAAI,EAAE,UAAU,CAAC,OAAO;4BACxB,KAAK,EAAE,QAAQ;4BACf,OAAO;4BACP,SAAS,EAAE,KAAK;yBACnB,CAAC,CACL,CAAC;wBACF,OAAO,EAAC,KAAK,EAAE,QAAQ,EAAC,CAAC;oBAC7B,CAAC;oBAED,MAAM,IAAI,GAAG,sBAAsB,CAAC,QAAQ,CAAC,CAAC;oBAC9C,QAAQ,CACJ,cAAc,CAAC;wBACX,IAAI,EAAE,UAAU,CAAC,OAAO;wBACxB,IAAI;wBACJ,OAAO;wBACP,SAAS,EAAE,KAAK;qBACnB,CAAC,CACL,CAAC;oBACF,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC;gBACxB,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,QAAQ,CACJ,cAAc,CAAC;wBACX,IAAI,EAAE,UAAU,CAAC,OAAO;wBACxB,KAAK;wBACL,OAAO;wBACP,SAAS,EAAE,KAAK;qBACnB,CAAC,CACL,CAAC;oBACF,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;SACJ,CAAC;KACL,CAAC;IACF,gBAAgB,EAAE,OAAO;CAC5B,CAAC,CAAC"}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import type { ExplainPlanNodeData, GraphNode, Link } from '@gravity-ui/paranoid';
|
2
|
-
import type { PlanTable, QueryPlan, ScriptPlan, SimlifiedPlanOperatorOtherParams, SimplifiedNode } from '../../../types/api/query';
|
3
|
-
export interface PreparedExplainResponse {
|
4
|
-
plan?: {
|
5
|
-
links?: Link[];
|
6
|
-
nodes?: GraphNode<ExplainPlanNodeData>[];
|
7
|
-
tables?: PlanTable[];
|
8
|
-
version?: string;
|
9
|
-
pristine?: QueryPlan | ScriptPlan;
|
10
|
-
DurationUs?: string | number;
|
11
|
-
};
|
12
|
-
simplifiedPlan?: {
|
13
|
-
plan?: SimplifiedPlanItem[];
|
14
|
-
pristine?: SimplifiedNode;
|
15
|
-
};
|
16
|
-
ast?: string;
|
17
|
-
}
|
18
|
-
export interface SimplifiedPlanItem {
|
19
|
-
parentId?: string;
|
20
|
-
name: string;
|
21
|
-
operationParams: SimlifiedPlanOperatorOtherParams;
|
22
|
-
aCpu?: number;
|
23
|
-
aRows?: number;
|
24
|
-
eCost?: string;
|
25
|
-
eRows?: string;
|
26
|
-
eSize?: string;
|
27
|
-
children?: SimplifiedPlanItem[];
|
28
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/store/reducers/explainQuery/types.ts"],"names":[],"mappings":""}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import type { ExplainQueryResponse, ExplainScriptResponse } from '../../../types/api/query';
|
2
|
-
import type { PreparedExplainResponse } from './types';
|
3
|
-
export declare const explainVersions: {
|
4
|
-
v2: string;
|
5
|
-
};
|
6
|
-
export declare const prepareExplainResponse: (response: ExplainScriptResponse | ExplainQueryResponse | null) => PreparedExplainResponse;
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/store/reducers/explainQuery/utils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,WAAW,EAAE,qBAAqB,EAAC,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAC,4BAA4B,EAAE,qBAAqB,EAAC,MAAM,sBAAsB,CAAC;AAIzF,MAAM,CAAC,MAAM,eAAe,GAAG;IAC3B,EAAE,EAAE,KAAK;CACZ,CAAC;AAEF,MAAM,6BAA6B,GAAG,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;AAErE,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAClC,QAA6D,EACtC,EAAE;IACzB,MAAM,EAAC,IAAI,EAAE,OAAO,EAAE,GAAG,EAAC,GAAG,4BAA4B,CAAC,QAAQ,CAAC,CAAC;IAEpE,IAAI,CAAC,OAAO,EAAE,CAAC;QACX,OAAO,EAAC,GAAG,EAAC,CAAC;IACjB,CAAC;IAED,MAAM,EAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAC,GAAG,qBAAqB,CAAC,OAAO,CAAC,CAAC;IAE5E,IAAI,6BAA6B,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;QAC7D,iDAAiD;QACjD,OAAO;YACH,IAAI,EAAE;gBACF,QAAQ,EAAE,OAAO;gBACjB,OAAO,EAAE,IAAI,CAAC,OAAO;aACxB;YACD,GAAG;SACN,CAAC;IACN,CAAC;IAED,IAAI,KAAK,GAAW,EAAE,CAAC;IACvB,IAAI,KAAK,GAAqC,EAAE,CAAC;IAEjD,IAAI,IAAI,EAAE,CAAC;QACP,MAAM,YAAY,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;QACvC,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC;QAC3B,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC;IAC/B,CAAC;IACD,IAAI,sBAAsB,CAAC;IAC3B,IAAI,cAAc,EAAE,CAAC;QACjB,sBAAsB,GAAG,qBAAqB,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;IACrE,CAAC;IAED,OAAO;QACH,IAAI,EAAE;YACF,KAAK;YACL,KAAK;YACL,MAAM;YACN,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,QAAQ,EAAE,OAAO;SACpB;QACD,cAAc,EAAE,EAAC,IAAI,EAAE,sBAAsB,EAAE,QAAQ,EAAE,cAAc,EAAC;QACxE,GAAG;KACN,CAAC;AACN,CAAC,CAAC"}
|
@@ -1,42 +0,0 @@
|
|
1
|
-
import type { PreparedExplainResponse } from '../../store/reducers/explainQuery/types';
|
2
|
-
import type { IQueryResult } from './query';
|
3
|
-
export interface QueryInHistory {
|
4
|
-
queryId?: string;
|
5
|
-
queryText: string;
|
6
|
-
syntax?: string;
|
7
|
-
endTime?: string | number;
|
8
|
-
durationUs?: string | number;
|
9
|
-
}
|
10
|
-
export declare enum ResultType {
|
11
|
-
EXECUTE = "execute",
|
12
|
-
EXPLAIN = "explain"
|
13
|
-
}
|
14
|
-
interface CommonResultParams {
|
15
|
-
queryId: string;
|
16
|
-
isLoading: boolean;
|
17
|
-
}
|
18
|
-
export type ExecuteQueryResult = {
|
19
|
-
type: ResultType.EXECUTE;
|
20
|
-
data?: IQueryResult;
|
21
|
-
error?: unknown;
|
22
|
-
isTraceReady?: true;
|
23
|
-
} & CommonResultParams;
|
24
|
-
export type ExplainQueryResult = {
|
25
|
-
type: ResultType.EXPLAIN;
|
26
|
-
data?: PreparedExplainResponse;
|
27
|
-
error?: unknown;
|
28
|
-
} & CommonResultParams;
|
29
|
-
export type QueryResult = ExecuteQueryResult | ExplainQueryResult;
|
30
|
-
export interface ExecuteQueryState {
|
31
|
-
input: string;
|
32
|
-
result?: QueryResult & {
|
33
|
-
isTraceReady?: boolean;
|
34
|
-
};
|
35
|
-
history: {
|
36
|
-
queries: QueryInHistory[];
|
37
|
-
currentIndex: number;
|
38
|
-
filter?: string;
|
39
|
-
};
|
40
|
-
tenantPath?: string;
|
41
|
-
}
|
42
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"executeQuery.js","sourceRoot":"","sources":["../../../src/types/store/executeQuery.ts"],"names":[],"mappings":"AAYA,MAAM,CAAN,IAAY,UAGX;AAHD,WAAY,UAAU;IAClB,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;AACvB,CAAC,EAHW,UAAU,KAAV,UAAU,QAGrB"}
|
File without changes
|