ydb-embedded-ui 6.22.0 → 6.23.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/PDiskPopup/PDiskPopup.d.ts +2 -4
- package/dist/components/PDiskPopup/PDiskPopup.js +10 -5
- package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
- package/dist/components/PaginatedTable/PaginatedTable.d.ts +2 -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 +2 -1
- package/dist/components/PaginatedTable/TableChunk.js +5 -2
- package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
- package/dist/components/QueryResultTable/QueryResultTable.js +11 -16
- package/dist/components/QueryResultTable/QueryResultTable.js.map +1 -1
- package/dist/components/QueryResultTable/utils/getColumnWidth.d.ts +7 -0
- package/dist/components/QueryResultTable/utils/getColumnWidth.js +16 -0
- package/dist/components/QueryResultTable/utils/getColumnWidth.js.map +1 -0
- package/dist/components/QueryResultTable/utils/getColumnWidth.test.d.ts +1 -0
- package/dist/components/QueryResultTable/utils/getColumnWidth.test.js +32 -0
- package/dist/components/QueryResultTable/utils/getColumnWidth.test.js.map +1 -0
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js +7 -7
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js.map +1 -1
- package/dist/components/StorageGroupInfo/i18n/index.d.ts +1 -1
- package/dist/components/TableSkeleton/TableSkeleton.d.ts +2 -1
- package/dist/components/TableSkeleton/TableSkeleton.js +5 -1
- package/dist/components/TableSkeleton/TableSkeleton.js.map +1 -1
- package/dist/components/TableSkeleton/TableSkeleton.scss +7 -1
- package/dist/components/VDisk/VDisk.d.ts +1 -3
- package/dist/components/VDisk/VDisk.js +2 -2
- package/dist/components/VDisk/VDisk.js.map +1 -1
- package/dist/components/VDiskPopup/VDiskPopup.d.ts +1 -3
- package/dist/components/VDiskPopup/VDiskPopup.js +7 -2
- package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
- package/dist/containers/Cluster/Cluster.scss +2 -3
- package/dist/containers/Header/breadcrumbs.js +2 -3
- package/dist/containers/Header/breadcrumbs.js.map +1 -1
- package/dist/containers/Nodes/columns/columns.js +8 -0
- package/dist/containers/Nodes/columns/columns.js.map +1 -1
- package/dist/containers/Nodes/columns/constants.d.ts +2 -0
- package/dist/containers/Nodes/columns/constants.js +4 -0
- package/dist/containers/Nodes/columns/constants.js.map +1 -1
- package/dist/containers/Nodes/columns/i18n/en.json +1 -0
- package/dist/containers/Nodes/columns/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/Disks/Disks.d.ts +3 -3
- package/dist/containers/Storage/Disks/Disks.js +6 -7
- package/dist/containers/Storage/Disks/Disks.js.map +1 -1
- package/dist/containers/Storage/PDisk/PDisk.d.ts +3 -2
- package/dist/containers/Storage/PDisk/PDisk.js +3 -2
- package/dist/containers/Storage/PDisk/PDisk.js.map +1 -1
- package/dist/containers/Storage/PDisk/PDisk.scss +1 -1
- package/dist/containers/Storage/PaginatedStorage.d.ts +5 -5
- package/dist/containers/Storage/PaginatedStorage.js +7 -73
- package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageGroups.d.ts +3 -0
- package/dist/containers/Storage/PaginatedStorageGroups.js +84 -0
- package/dist/containers/Storage/PaginatedStorageGroups.js.map +1 -0
- package/dist/containers/Storage/PaginatedStorageNodes.d.ts +3 -0
- package/dist/containers/Storage/PaginatedStorageNodes.js +98 -0
- package/dist/containers/Storage/PaginatedStorageNodes.js.map +1 -0
- package/dist/containers/Storage/Storage.js +15 -70
- package/dist/containers/Storage/Storage.js.map +1 -1
- package/dist/containers/Storage/Storage.scss +4 -0
- package/dist/containers/Storage/StorageControls/StorageControls.d.ts +3 -16
- package/dist/containers/Storage/StorageControls/StorageControls.js +18 -11
- package/dist/containers/Storage/StorageControls/StorageControls.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.d.ts +22 -0
- package/dist/containers/Storage/StorageGroups/{PaginatedStorageGroups.js → PaginatedStorageGroupsTable.js} +23 -5
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/{StorageGroups.d.ts → StorageGroupsTable.d.ts} +3 -4
- package/dist/containers/Storage/StorageGroups/{StorageGroups.js → StorageGroupsTable.js} +4 -3
- package/dist/containers/Storage/StorageGroups/StorageGroupsTable.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/columns/columns.js +35 -10
- package/dist/containers/Storage/StorageGroups/columns/columns.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/constants.d.ts +17 -0
- package/dist/containers/Storage/StorageGroups/columns/constants.js +46 -1
- package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/hooks.d.ts +3 -3
- package/dist/containers/Storage/StorageGroups/columns/hooks.js +5 -8
- package/dist/containers/Storage/StorageGroups/columns/hooks.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/i18n/en.json +6 -0
- package/dist/containers/Storage/StorageGroups/columns/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/StorageGroups/columns/types.d.ts +7 -5
- package/dist/containers/Storage/StorageGroups/getGroups.js +6 -5
- package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.d.ts +23 -0
- package/dist/containers/Storage/StorageNodes/{PaginatedStorageNodes.js → PaginatedStorageNodesTable.js} +23 -5
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/{StorageNodes.d.ts → StorageNodesTable.d.ts} +3 -4
- package/dist/containers/Storage/StorageNodes/{StorageNodes.js → StorageNodesTable.js} +8 -6
- package/dist/containers/Storage/StorageNodes/StorageNodesTable.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/columns/StorageNodesColumns.scss +1 -0
- package/dist/containers/Storage/StorageNodes/columns/columns.d.ts +1 -1
- package/dist/containers/Storage/StorageNodes/columns/columns.js +4 -5
- package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/columns/constants.d.ts +9 -0
- package/dist/containers/Storage/StorageNodes/columns/constants.js +27 -0
- package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/columns/i18n/en.json +2 -0
- package/dist/containers/Storage/StorageNodes/columns/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/StorageNodes/getNodes.js +6 -5
- package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
- package/dist/containers/Storage/TableGroup/TableGroup.d.ts +12 -0
- package/dist/containers/Storage/TableGroup/TableGroup.js +21 -0
- package/dist/containers/Storage/TableGroup/TableGroup.js.map +1 -0
- package/dist/containers/Storage/TableGroup/TableGroup.scss +49 -0
- package/dist/containers/Storage/TableGroup/useExpandedTableGroups.d.ts +5 -0
- package/dist/containers/Storage/TableGroup/useExpandedTableGroups.js +28 -0
- package/dist/containers/Storage/TableGroup/useExpandedTableGroups.js.map +1 -0
- package/dist/containers/Storage/i18n/en.json +4 -1
- package/dist/containers/Storage/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/i18n/index.js +1 -2
- package/dist/containers/Storage/i18n/index.js.map +1 -1
- package/dist/containers/Storage/shared.d.ts +2 -0
- package/dist/containers/Storage/shared.js +9 -0
- package/dist/containers/Storage/shared.js.map +1 -1
- package/dist/containers/Storage/useStorageQueryParams.d.ts +18 -0
- package/dist/containers/Storage/useStorageQueryParams.js +64 -0
- package/dist/containers/Storage/useStorageQueryParams.js.map +1 -0
- package/dist/containers/Storage/utils/index.d.ts +6 -2
- package/dist/containers/Storage/utils/index.js +11 -6
- package/dist/containers/Storage/utils/index.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +17 -3
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +1 -1
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +0 -3
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +2 -2
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js +10 -3
- package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.js +2 -3
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js +4 -4
- package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.js +5 -5
- package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +8 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.d.ts +5 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js +21 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.d.ts +1 -3
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +32 -37
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.d.ts +6 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js +33 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.d.ts +2 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js +26 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/en.json +7 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.js +1 -2
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +27 -9
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/__test__/transformPath.test.js +27 -3
- package/dist/containers/Tenant/ObjectSummary/__test__/transformPath.test.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/transformPath.d.ts +2 -0
- package/dist/containers/Tenant/ObjectSummary/transformPath.js +10 -0
- package/dist/containers/Tenant/ObjectSummary/transformPath.js.map +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +3 -1
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +2 -1
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/NewSQL/NewSQL.d.ts +1 -0
- package/dist/containers/Tenant/Query/NewSQL/NewSQL.js +135 -0
- package/dist/containers/Tenant/Query/NewSQL/NewSQL.js.map +1 -0
- package/dist/containers/Tenant/Query/NewSQL/i18n/en.json +32 -0
- package/dist/containers/Tenant/Query/NewSQL/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Query/NewSQL/i18n/index.js +5 -0
- package/dist/containers/Tenant/Query/NewSQL/i18n/index.js.map +1 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +2 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.scss +1 -0
- package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +1 -1
- package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js +10 -2
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.d.ts +2 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js.map +1 -1
- package/dist/containers/Tenant/Tenant.js +7 -3
- package/dist/containers/Tenant/Tenant.js.map +1 -1
- package/dist/containers/Tenant/utils/newSQLQueryActions.d.ts +27 -0
- package/dist/containers/Tenant/utils/newSQLQueryActions.js +35 -0
- package/dist/containers/Tenant/utils/newSQLQueryActions.js.map +1 -0
- package/dist/containers/Tenant/utils/newSQLQueryTemplates.d.ts +24 -0
- package/dist/containers/Tenant/utils/newSQLQueryTemplates.js +228 -0
- package/dist/containers/Tenant/utils/newSQLQueryTemplates.js.map +1 -0
- package/dist/containers/Tenant/utils/schemaActions.d.ts +1 -1
- package/dist/containers/Tenant/utils/schemaActions.js +8 -6
- package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
- package/dist/containers/Tenant/utils/{queryTemplates.js → schemaQueryTemplates.js} +1 -1
- package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -0
- package/dist/services/api.js +3 -3
- package/dist/services/api.js.map +1 -1
- package/dist/store/reducers/capabilities/hooks.d.ts +2 -0
- package/dist/store/reducers/capabilities/hooks.js +6 -0
- package/dist/store/reducers/capabilities/hooks.js.map +1 -1
- package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +4 -0
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js +27 -1
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js.map +1 -1
- package/dist/store/reducers/nodes/types.d.ts +1 -0
- package/dist/store/reducers/nodesList.d.ts +5 -5
- package/dist/store/reducers/nodesList.js +2 -2
- package/dist/store/reducers/nodesList.js.map +1 -1
- package/dist/store/reducers/overview/overview.js +5 -1
- package/dist/store/reducers/overview/overview.js.map +1 -1
- package/dist/store/reducers/storage/requestStorageData.d.ts +3 -3
- package/dist/store/reducers/storage/requestStorageData.js.map +1 -1
- package/dist/store/reducers/storage/selectors.d.ts +2 -3
- package/dist/store/reducers/storage/selectors.js +1 -27
- package/dist/store/reducers/storage/selectors.js.map +1 -1
- package/dist/store/reducers/storage/storage.d.ts +2 -2
- package/dist/store/reducers/storage/storage.js.map +1 -1
- package/dist/store/reducers/storage/types.d.ts +19 -10
- package/dist/store/reducers/storage/utils.js +27 -3
- package/dist/store/reducers/storage/utils.js.map +1 -1
- package/dist/store/reducers/tablet.js +5 -3
- package/dist/store/reducers/tablet.js.map +1 -1
- package/dist/store/reducers/tablets.d.ts +3 -3
- package/dist/store/reducers/tablets.js +4 -4
- package/dist/store/reducers/tablets.js.map +1 -1
- package/dist/types/api/capabilities.d.ts +1 -1
- package/dist/types/api/nodes.d.ts +3 -2
- package/dist/types/api/nodes.js.map +1 -1
- package/dist/types/api/storage.d.ts +22 -4
- package/dist/types/store/nodesList.d.ts +1 -1
- package/dist/utils/hooks/useSelectedColumns.js +7 -2
- package/dist/utils/hooks/useSelectedColumns.js.map +1 -1
- package/dist/utils/nodes.d.ts +2 -2
- package/dist/utils/nodes.js +4 -4
- package/dist/utils/nodes.js.map +1 -1
- package/dist/utils/storage.js +2 -0
- package/dist/utils/storage.js.map +1 -1
- package/dist/utils/utils.js +2 -1
- package/dist/utils/utils.js.map +1 -1
- package/package.json +1 -1
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.d.ts +0 -16
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +0 -1
- package/dist/containers/Storage/StorageGroups/StorageGroups.js.map +0 -1
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.d.ts +0 -17
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js.map +0 -1
- package/dist/containers/Storage/StorageNodes/StorageNodes.js.map +0 -1
- package/dist/containers/Storage/UsageFilter/UsageFilter.d.ts +0 -14
- package/dist/containers/Storage/UsageFilter/UsageFilter.js +0 -39
- package/dist/containers/Storage/UsageFilter/UsageFilter.js.map +0 -1
- package/dist/containers/Storage/UsageFilter/UsageFilter.scss +0 -38
- package/dist/containers/Storage/UsageFilter/i18n/en.json +0 -5
- package/dist/containers/Storage/UsageFilter/i18n/index.d.ts +0 -2
- package/dist/containers/Storage/UsageFilter/i18n/index.js +0 -6
- package/dist/containers/Storage/UsageFilter/i18n/index.js.map +0 -1
- package/dist/containers/Storage/UsageFilter/i18n/ru.json +0 -5
- package/dist/containers/Storage/UsageFilter/index.d.ts +0 -1
- package/dist/containers/Storage/UsageFilter/index.js +0 -2
- package/dist/containers/Storage/UsageFilter/index.js.map +0 -1
- package/dist/containers/Storage/i18n/ru.json +0 -6
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/ru.json +0 -4
- package/dist/containers/Tenant/utils/queryTemplates.js.map +0 -1
- package/dist/store/reducers/describe.d.ts +0 -7
- package/dist/store/reducers/describe.js +0 -25
- package/dist/store/reducers/describe.js.map +0 -1
- /package/dist/containers/Tenant/utils/{queryTemplates.d.ts → schemaQueryTemplates.d.ts} +0 -0
@@ -3,9 +3,10 @@ import React from 'react';
|
|
3
3
|
import { skipToken } from '@reduxjs/toolkit/query';
|
4
4
|
import { ResizeableDataTable } from '../../../../components/ResizeableDataTable/ResizeableDataTable';
|
5
5
|
import { TableSkeleton } from '../../../../components/TableSkeleton/TableSkeleton';
|
6
|
-
import {
|
6
|
+
import { overviewApi } from '../../../../store/reducers/overview/overview';
|
7
7
|
import { viewSchemaApi } from '../../../../store/reducers/viewSchema/viewSchema';
|
8
8
|
import { DEFAULT_TABLE_SETTINGS } from '../../../../utils/constants';
|
9
|
+
import { useAutoRefreshInterval } from '../../../../utils/hooks';
|
9
10
|
import { isColumnEntityType, isExternalTableType, isRowTableType, isViewType, } from '../../utils/schema';
|
10
11
|
import { KeysView } from './KeysView';
|
11
12
|
import { SCHEMA_COLUMNS_WIDTH_LS_KEY, getColumnTableColumns, getExternalTableColumns, getRowTableColumns, getViewColumns, } from './columns';
|
@@ -13,7 +14,14 @@ import { prepareSchemaData, prepareViewSchema } from './prepareData';
|
|
13
14
|
import { b } from './shared';
|
14
15
|
import './SchemaViewer.scss';
|
15
16
|
export const SchemaViewer = ({ type, path, tenantName, extended = false }) => {
|
16
|
-
const
|
17
|
+
const [autoRefreshInterval] = useAutoRefreshInterval();
|
18
|
+
const { currentData, isLoading: loading } = overviewApi.useGetOverviewQuery({
|
19
|
+
paths: [path],
|
20
|
+
database: tenantName,
|
21
|
+
}, {
|
22
|
+
pollingInterval: autoRefreshInterval,
|
23
|
+
});
|
24
|
+
const { data: schemaData } = currentData !== null && currentData !== void 0 ? currentData : {};
|
17
25
|
const viewSchemaRequestParams = isViewType(type) ? { path, database: tenantName } : skipToken;
|
18
26
|
const { data: viewColumnsData, isLoading: isViewSchemaLoading } = viewSchemaApi.useGetViewSchemaQuery(viewSchemaRequestParams);
|
19
27
|
const tableData = React.useMemo(() => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SchemaViewer.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Schema/SchemaViewer/SchemaViewer.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAC,mBAAmB,EAAC,MAAM,gEAAgE,CAAC;AACnG,OAAO,EAAC,aAAa,EAAC,MAAM,oDAAoD,CAAC;AACjF,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"SchemaViewer.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Schema/SchemaVi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,EAAE,CAAC;YAC5B,OAAO,uBAAuB,EAAE,CAAC;QACrC,CAAC;QACD,IAAI,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC;YAC3B,OAAO,qBAAqB,EAAE,CAAC;QACnC,CAAC;QACD,IAAI,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC;YACvB,OAAO,kBAAkB,CAAC,QAAQ,EAAE,gBAAgB,EAAE,eAAe,CAAC,CAAC;QAC3E,CAAC;QAED,OAAO,EAAE,CAAC;IACd,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,gBAAgB,EAAE,eAAe,CAAC,CAAC,CAAC;IAExD,IAAI,OAAO,IAAI,mBAAmB,EAAE,CAAC;QACjC,OAAO,KAAC,aAAa,KAAG,CAAC;IAC7B,CAAC;IAED,OAAO,CACH,MAAC,KAAK,CAAC,QAAQ,eACX,eAAK,SAAS,EAAE,CAAC,CAAC,cAAc,CAAC,aAC7B,KAAC,QAAQ,IAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAC,SAAS,GAAG,EACrE,KAAC,QAAQ,IAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAC,cAAc,GAAG,IACxE,EACN,cAAK,SAAS,EAAE,CAAC,EAAE,YACf,KAAC,mBAAmB,IAChB,iBAAiB,EAAE,2BAA2B,EAC9C,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,sBAAsB,GAClC,GACA,IACO,CACpB,CAAC;AACN,CAAC,CAAC"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import type { ColumnType } from '../../../../types/api/query';
|
2
2
|
import type { EPathType, TEvDescribeSchemeResult, TFamilyDescription, TTableDescription } from '../../../../types/api/schema';
|
3
|
+
import type { Nullable } from '../../../../utils/typecheckers';
|
3
4
|
import type { SchemaData } from './types';
|
4
5
|
export declare function prepareFamilies(data?: TTableDescription): Record<number, TFamilyDescription>;
|
5
|
-
export declare function prepareSchemaData(type?: EPathType, schema?: TEvDescribeSchemeResult): SchemaData[];
|
6
|
+
export declare function prepareSchemaData(type?: EPathType, schema?: Nullable<TEvDescribeSchemeResult>): SchemaData[];
|
6
7
|
export declare function prepareViewSchema(columns?: ColumnType[]): SchemaData[];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"prepareData.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Schema/SchemaViewer/prepareData.ts"],"names":[],"mappings":"AASA,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;
|
1
|
+
{"version":3,"file":"prepareData.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Schema/SchemaViewer/prepareData.ts"],"names":[],"mappings":"AASA,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAE1D,OAAO,EAAC,kBAAkB,EAAE,mBAAmB,EAAE,cAAc,EAAC,MAAM,oBAAoB,CAAC;AAI3F,SAAS,iBAAiB,CAAC,KAAoB;IAC3C,IAAI,CAAC,KAAK,EAAE,CAAC;QACT,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,IAAI,KAAK,KAAK,YAAY,CAAC,gBAAgB,EAAE,CAAC;QAC1C,OAAO,MAAM,CAAC;IAClB,CAAC;IACD,OAAO,KAAK,CAAC,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC,iBAAiB,EAAE,CAAC;AAChE,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,IAAwB;;IACpD,OAAO,CACH,MAAA,MAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,eAAe,0CAAE,cAAc,0CAAE,MAAM,CACzC,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE;QACZ,IAAI,MAAM,CAAC,EAAE,EAAE,CAAC;YACZ,OAAO;gBACH,GAAG,GAAG;gBACN,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,MAAM;aACtB,CAAC;QACN,CAAC;Q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sB,EAAE,wBAAwB,EAAC,GAAG,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,eAAe,KAAI,EAAE,CAAC;IAEhG,IAAI,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC;QACvB,OAAO,qBAAqB,CAAC,KAAK,CAAC,CAAC;IACxC,CAAC;SAAM,IAAI,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC;QAClC,OAAO,wBAAwB,CAAC,sBAAsB,CAAC,CAAC;IAC5D,CAAC;SAAM,IAAI,mBAAmB,CAAC,IAAI,CAAC,EAAE,CAAC;QACnC,OAAO,0BAA0B,CAAC,wBAAwB,CAAC,CAAC;IAChE,CAAC;IAED,OAAO,EAAE,CAAC;AACd,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,OAAsB;IACpD,MAAM,eAAe,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;;QAC5C,8CAA8C;QAC9C,MAAM,IAAI,GAAG,CAAA,MAAA,MAAM,CAAC,IAAI,0CAAE,QAAQ,CAAC,GAAG,CAAC,EAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC;QAEjF,OAAO;YACH,IAAI;YACJ,IAAI,EAAE,MAAM,CAAC,IAAI;SACpB,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,IAAI,EAAE,CAAC;AACjC,CAAC"}
|
@@ -6,10 +6,10 @@ import { PageError, isAccessError } from '../../components/Errors/PageError/Page
|
|
6
6
|
import { LoaderWrapper } from '../../components/LoaderWrapper/LoaderWrapper';
|
7
7
|
import SplitPane from '../../components/SplitPane';
|
8
8
|
import { setHeaderBreadcrumbs } from '../../store/reducers/header/header';
|
9
|
-
import {
|
9
|
+
import { overviewApi } from '../../store/reducers/overview/overview';
|
10
10
|
import { cn } from '../../utils/cn';
|
11
11
|
import { DEFAULT_IS_TENANT_SUMMARY_COLLAPSED, DEFAULT_SIZE_TENANT_KEY } from '../../utils/constants';
|
12
|
-
import { useTypedDispatch } from '../../utils/hooks';
|
12
|
+
import { useAutoRefreshInterval, useTypedDispatch } from '../../utils/hooks';
|
13
13
|
import ObjectGeneral from './ObjectGeneral/ObjectGeneral';
|
14
14
|
import { ObjectSummary } from './ObjectSummary/ObjectSummary';
|
15
15
|
import i18n from './i18n';
|
@@ -26,6 +26,7 @@ const getTenantSummaryState = () => {
|
|
26
26
|
};
|
27
27
|
export function Tenant(props) {
|
28
28
|
var _a;
|
29
|
+
const [autoRefreshInterval] = useAutoRefreshInterval();
|
29
30
|
const [summaryVisibilityState, dispatchSummaryVisibilityAction] = React.useReducer(paneVisibilityToggleReducerCreator(DEFAULT_IS_TENANT_SUMMARY_COLLAPSED), undefined, getTenantSummaryState);
|
30
31
|
const [{ name: tenantName, schema }] = useQueryParams({ name: StringParam, schema: StringParam });
|
31
32
|
if (!tenantName) {
|
@@ -47,7 +48,10 @@ export function Tenant(props) {
|
|
47
48
|
dispatch(setHeaderBreadcrumbs('tenant', { tenantName }));
|
48
49
|
}, [tenantName, dispatch]);
|
49
50
|
const path = schema !== null && schema !== void 0 ? schema : tenantName;
|
50
|
-
const {
|
51
|
+
const { currentData, error, isLoading } = overviewApi.useGetOverviewQuery({ paths: [path], database: tenantName }, {
|
52
|
+
pollingInterval: autoRefreshInterval,
|
53
|
+
});
|
54
|
+
const { data: currentItem } = currentData !== null && currentData !== void 0 ? currentData : {};
|
51
55
|
const { PathType: currentPathType, PathSubType: currentPathSubType } = ((_a = currentItem === null || currentItem === void 0 ? void 0 : currentItem.PathDescription) === null || _a === void 0 ? void 0 : _a.Self) || {};
|
52
56
|
const showBlockingError = isAccessError(error);
|
53
57
|
const onCollapseSummaryHandler = () => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Tenant.js","sourceRoot":"","sources":["../../../src/containers/Ten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,EAAE,UAAU,EACtB,IAAI,EAAE,IAAI,GACZ,GACA,IACE,GACJ,GACA,IACd,CACT,CAAC;AACN,CAAC"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
export declare const bindActions: (dispatch: React.Dispatch<any>) => {
|
2
|
+
createRowTable: () => void;
|
3
|
+
createColumnTable: () => void;
|
4
|
+
createAsyncReplication: () => void;
|
5
|
+
alterAsyncReplication: () => void;
|
6
|
+
dropAsyncReplication: () => void;
|
7
|
+
alterTable: () => void;
|
8
|
+
selectQuery: () => void;
|
9
|
+
upsertQuery: () => void;
|
10
|
+
createExternalTable: () => void;
|
11
|
+
dropExternalTable: () => void;
|
12
|
+
selectQueryFromExternalTable: () => void;
|
13
|
+
createTopic: () => void;
|
14
|
+
alterTopic: () => void;
|
15
|
+
dropTopic: () => void;
|
16
|
+
createView: () => void;
|
17
|
+
dropTable: () => void;
|
18
|
+
deleteRows: () => void;
|
19
|
+
updateTable: () => void;
|
20
|
+
createUser: () => void;
|
21
|
+
createGroup: () => void;
|
22
|
+
createCdcStream: () => void;
|
23
|
+
grantPrivilege: () => void;
|
24
|
+
revokePrivilege: () => void;
|
25
|
+
dropUser: () => void;
|
26
|
+
dropGroup: () => void;
|
27
|
+
};
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { changeUserInput } from '../../../store/reducers/executeQuery';
|
2
|
+
import { alterAsyncReplicationTemplate, alterTableTemplate, alterTopicTemplate, createAsyncReplicationTemplate, createCdcStreamTemplate, createColumnTableTemplate, createExternalTableTemplate, createGroupTemplate, createTableTemplate, createTopicTemplate, createUserTemplate, createViewTemplate, deleteRowsTemplate, dropAsyncReplicationTemplate, dropExternalTableTemplate, dropGroupTemplate, dropTableTemplate, dropTopicTemplate, dropUserTemplate, grantPrivilegeTemplate, revokePrivilegeTemplate, selectQueryTemplate, updateTableTemplate, upsertQueryTemplate, } from './newSQLQueryTemplates';
|
3
|
+
export const bindActions = (dispatch) => {
|
4
|
+
const inputQuery = (query) => () => {
|
5
|
+
dispatch(changeUserInput({ input: query() }));
|
6
|
+
};
|
7
|
+
return {
|
8
|
+
createRowTable: inputQuery(createTableTemplate),
|
9
|
+
createColumnTable: inputQuery(createColumnTableTemplate),
|
10
|
+
createAsyncReplication: inputQuery(createAsyncReplicationTemplate),
|
11
|
+
alterAsyncReplication: inputQuery(alterAsyncReplicationTemplate),
|
12
|
+
dropAsyncReplication: inputQuery(dropAsyncReplicationTemplate),
|
13
|
+
alterTable: inputQuery(alterTableTemplate),
|
14
|
+
selectQuery: inputQuery(selectQueryTemplate),
|
15
|
+
upsertQuery: inputQuery(upsertQueryTemplate),
|
16
|
+
createExternalTable: inputQuery(createExternalTableTemplate),
|
17
|
+
dropExternalTable: inputQuery(dropExternalTableTemplate),
|
18
|
+
selectQueryFromExternalTable: inputQuery(selectQueryTemplate),
|
19
|
+
createTopic: inputQuery(createTopicTemplate),
|
20
|
+
alterTopic: inputQuery(alterTopicTemplate),
|
21
|
+
dropTopic: inputQuery(dropTopicTemplate),
|
22
|
+
createView: inputQuery(createViewTemplate),
|
23
|
+
dropTable: inputQuery(dropTableTemplate),
|
24
|
+
deleteRows: inputQuery(deleteRowsTemplate),
|
25
|
+
updateTable: inputQuery(updateTableTemplate),
|
26
|
+
createUser: inputQuery(createUserTemplate),
|
27
|
+
createGroup: inputQuery(createGroupTemplate),
|
28
|
+
createCdcStream: inputQuery(createCdcStreamTemplate),
|
29
|
+
grantPrivilege: inputQuery(grantPrivilegeTemplate),
|
30
|
+
revokePrivilege: inputQuery(revokePrivilegeTemplate),
|
31
|
+
dropUser: inputQuery(dropUserTemplate),
|
32
|
+
dropGroup: inputQuery(dropGroupTemplate),
|
33
|
+
};
|
34
|
+
};
|
35
|
+
//# sourceMappingURL=newSQLQueryActions.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"newSQLQueryActions.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/utils/newSQLQueryActions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,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,UAAU,EAAE,UAAU,CAAC,kBAAkB,CAAC;QAC1C,SAAS,EAAE,UAAU,CAAC,iBAAiB,CAAC;QACxC,UAAU,EAAE,UAAU,CAAC,kBAAkB,CAAC;QAC1C,SAAS,EAAE,UAAU,CAAC,iBAAiB,CAAC;QACxC,UAAU,EAAE,UAAU,CAAC,kBAAkB,CAAC;QAC1C,WAAW,EAAE,UAAU,CAAC,mBAAmB,CAAC;QAC5C,UAAU,EAAE,UAAU,CAAC,kBAAkB,CAAC;QAC1C,WAAW,EAAE,UAAU,CAAC,mBAAmB,CAAC;QAC5C,eAAe,EAAE,UAAU,CAAC,uBAAuB,CAAC;QACpD,cAAc,EAAE,UAAU,CAAC,sBAAsB,CAAC;QAClD,eAAe,EAAE,UAAU,CAAC,uBAAuB,CAAC;QACpD,QAAQ,EAAE,UAAU,CAAC,gBAAgB,CAAC;QACtC,SAAS,EAAE,UAAU,CAAC,iBAAiB,CAAC;KAC3C,CAAC;AACN,CAAC,CAAC"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
export declare const createTableTemplate: () => string;
|
2
|
+
export declare const createColumnTableTemplate: () => string;
|
3
|
+
export declare const deleteRowsTemplate: () => string;
|
4
|
+
export declare const updateTableTemplate: () => string;
|
5
|
+
export declare const createUserTemplate: () => string;
|
6
|
+
export declare const createGroupTemplate: () => string;
|
7
|
+
export declare const createAsyncReplicationTemplate: () => string;
|
8
|
+
export declare const alterTableTemplate: () => string;
|
9
|
+
export declare const selectQueryTemplate: () => string;
|
10
|
+
export declare const upsertQueryTemplate: () => string;
|
11
|
+
export declare const dropExternalTableTemplate: () => string;
|
12
|
+
export declare const dropUserTemplate: () => string;
|
13
|
+
export declare const dropGroupTemplate: () => string;
|
14
|
+
export declare const createCdcStreamTemplate: () => string;
|
15
|
+
export declare const grantPrivilegeTemplate: () => string;
|
16
|
+
export declare const revokePrivilegeTemplate: () => string;
|
17
|
+
export declare const createExternalTableTemplate: () => string;
|
18
|
+
export declare const createTopicTemplate: () => string;
|
19
|
+
export declare const alterTopicTemplate: () => string;
|
20
|
+
export declare const dropTopicTemplate: () => string;
|
21
|
+
export declare const createViewTemplate: () => string;
|
22
|
+
export declare const dropTableTemplate: () => string;
|
23
|
+
export declare const dropAsyncReplicationTemplate: () => string;
|
24
|
+
export declare const alterAsyncReplicationTemplate: () => string;
|
@@ -0,0 +1,228 @@
|
|
1
|
+
export const createTableTemplate = () => {
|
2
|
+
return `-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table
|
3
|
+
CREATE TABLE \`$path\` (
|
4
|
+
category_id Uint64 NOT NULL,
|
5
|
+
id Uint64,
|
6
|
+
expire_at Datetime,
|
7
|
+
updated_on Datetime,
|
8
|
+
name Text,
|
9
|
+
\`binary-payload\` Bytes,
|
10
|
+
attributes JsonDocument,
|
11
|
+
-- uncomment to add a secondary index
|
12
|
+
-- INDEX idx_row_table_id GLOBAL SYNC ON ( id ) COVER ( name, attributes ), -- Secondary indexes docs https://ydb.tech/en/docs/yql/reference/syntax/create_table#secondary_index
|
13
|
+
PRIMARY KEY (category_id, id)
|
14
|
+
)
|
15
|
+
WITH (
|
16
|
+
AUTO_PARTITIONING_BY_SIZE=\`$autoPartitioningBySize\`,
|
17
|
+
AUTO_PARTITIONING_PARTITION_SIZE_MB=\`$autoPartitioningPartitionSizeMb\`,
|
18
|
+
AUTO_PARTITIONING_BY_LOAD=\`$autoPartitioningByLoad\`,
|
19
|
+
AUTO_PARTITIONING_MIN_PARTITIONS_COUNT=\`$autoPartitioningMinPartitionsCount\`,
|
20
|
+
AUTO_PARTITIONING_MAX_PARTITIONS_COUNT=\`$autoPartitioningMaxPartitionsCount\`
|
21
|
+
-- uncomment to create a table with predefined partitions
|
22
|
+
-- , UNIFORM_PARTITIONS=\`$uniformPartitions\` -- The number of partitions for uniform initial table partitioning.
|
23
|
+
-- The primary key's first column must have type Uint64 or Uint32.
|
24
|
+
-- A created table is immediately divided into the specified number of partitions
|
25
|
+
-- uncomment to launch read only replicas in every AZ
|
26
|
+
-- , READ_REPLICAS_SETTINGS=\`$readReplicasSettings\` -- Enable read replicas for stale read, launch one replica in every availability zone
|
27
|
+
-- uncomment to enable ttl
|
28
|
+
-- , TTL=\`$ttl\` ON expire_at -- Enable background deletion of expired rows https://ydb.tech/en/docs/concepts/ttl
|
29
|
+
-- uncomment to create a table with a bloom filter
|
30
|
+
-- , KEY_BLOOM_FILTER=\`$keyBloomFilter\` -- With a Bloom filter, you can more efficiently determine
|
31
|
+
-- if some keys are missing in a table when making multiple single queries by the primary key.
|
32
|
+
)`;
|
33
|
+
};
|
34
|
+
export const createColumnTableTemplate = () => {
|
35
|
+
return `-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table#olap-tables
|
36
|
+
CREATE TABLE \`$path\` (
|
37
|
+
id Int64 NOT NULL,
|
38
|
+
author Text,
|
39
|
+
title Text,
|
40
|
+
body Text,
|
41
|
+
PRIMARY KEY (id)
|
42
|
+
)
|
43
|
+
PARTITION BY HASH(id)
|
44
|
+
WITH (STORE=\`$store\`)`;
|
45
|
+
};
|
46
|
+
export const deleteRowsTemplate = () => {
|
47
|
+
return `-- docs: https://ydb.tech/docs/en/yql/reference/syntax/delete
|
48
|
+
DELETE FROM $path
|
49
|
+
WHERE Key1 == $key1 AND Key2 >= $key2;`;
|
50
|
+
};
|
51
|
+
export const updateTableTemplate = () => {
|
52
|
+
return `-- docs: https://ydb.tech/docs/en/yql/reference/syntax/update
|
53
|
+
UPDATE my_table
|
54
|
+
SET Value1 = YQL::ToString($value2 + 1), Value2 = $value2 - 1
|
55
|
+
WHERE Key1 > $key1;`;
|
56
|
+
};
|
57
|
+
export const createUserTemplate = () => {
|
58
|
+
return `-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-user
|
59
|
+
CREATE USER $user_name [option]
|
60
|
+
-- user_name: The name of the user. It may contain lowercase Latin letters and digits.
|
61
|
+
-- option: The password of the user:
|
62
|
+
-- PASSWORD 'password' creates a user with the password password. The ENCRYPTED option is always enabled.
|
63
|
+
-- PASSWORD NULL creates a user with an empty password.`;
|
64
|
+
};
|
65
|
+
export const createGroupTemplate = () => {
|
66
|
+
return `-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-group
|
67
|
+
CREATE GROUP $group_name
|
68
|
+
-- group_name: The name of the group. It may contain lowercase Latin letters and digits.`;
|
69
|
+
};
|
70
|
+
export const createAsyncReplicationTemplate = () => {
|
71
|
+
return `CREATE OBJECT secret_name (TYPE SECRET) WITH value=\`$secretValue\`;
|
72
|
+
|
73
|
+
CREATE ASYNC REPLICATION my_replication
|
74
|
+
FOR \`$remotePath\` AS \`$localTableName\` --[, \`$anotherRemotePath\` AS \`$anotherLocalTableName\` ...]
|
75
|
+
WITH (
|
76
|
+
CONNECTION_STRING=\`$connectionString\`,
|
77
|
+
TOKEN_SECRET_NAME=\`$tokenSecretName\`
|
78
|
+
-- ENDPOINT=\`$endpoint\`,
|
79
|
+
-- DATABASE=\`$database\`,
|
80
|
+
-- USER=\`$user\`,
|
81
|
+
-- PASSWORD_SECRET_NAME=\`$passwordSecretName\`
|
82
|
+
);`;
|
83
|
+
};
|
84
|
+
export const alterTableTemplate = () => {
|
85
|
+
return `ALTER TABLE \`$path\`
|
86
|
+
ADD COLUMN numeric_column Int32;`;
|
87
|
+
};
|
88
|
+
export const selectQueryTemplate = () => {
|
89
|
+
return `SELECT *
|
90
|
+
FROM \`$path\`
|
91
|
+
LIMIT 10;`;
|
92
|
+
};
|
93
|
+
export const upsertQueryTemplate = () => {
|
94
|
+
return `UPSERT INTO \`$path\`
|
95
|
+
( \`id\`, \`name\` )
|
96
|
+
VALUES ( );`;
|
97
|
+
};
|
98
|
+
export const dropExternalTableTemplate = () => {
|
99
|
+
return `DROP EXTERNAL TABLE \`$path\`;`;
|
100
|
+
};
|
101
|
+
export const dropUserTemplate = () => {
|
102
|
+
return `-- docs: https://ydb.tech/docs/en/yql/reference/syntax/drop-user
|
103
|
+
DROP USER [ IF EXISTS ] $user_name [, ...]
|
104
|
+
|
105
|
+
-- IF EXISTS: Suppress an error if the user doesn't exist.
|
106
|
+
-- user_name: The name of the user to be deleted.`;
|
107
|
+
};
|
108
|
+
export const dropGroupTemplate = () => {
|
109
|
+
return `-- docs: https://ydb.tech/docs/en/yql/reference/syntax/drop-group
|
110
|
+
DROP GROUP [ IF EXISTS ] $group_name [, ...]
|
111
|
+
|
112
|
+
-- IF EXISTS: Suppress an error if the group doesn't exist.
|
113
|
+
-- group_name: The name of the group to be deleted.`;
|
114
|
+
};
|
115
|
+
export const createCdcStreamTemplate = () => {
|
116
|
+
return `-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create_changefeed
|
117
|
+
ADD CHANGEFEED $name WITH (
|
118
|
+
MODE = $mode, -- KEYS_ONLY, UPDATES, NEW_IMAGE, OLD_IMAGE, or NEW_AND_OLD_IMAGES
|
119
|
+
FORMAT = $format, -- JSON or DEBEZIUM_JSON
|
120
|
+
VIRTUAL_TIMESTAMPS = $virtualTimestamps, -- true or false
|
121
|
+
RETENTION_PERIOD = $retentionPeriod, -- Interval value, e.g., Interval('PT24H')
|
122
|
+
TOPIC_MIN_ACTIVE_PARTITIONS = $topicMinActivePartitions,
|
123
|
+
INITIAL_SCAN = $initialScan -- true or false
|
124
|
+
)
|
125
|
+
|
126
|
+
-- MODE options:
|
127
|
+
-- KEYS_ONLY: Only the primary key components and change flag are written.
|
128
|
+
-- UPDATES: Updated column values that result from updates are written.
|
129
|
+
-- NEW_IMAGE: Any column values resulting from updates are written.
|
130
|
+
-- OLD_IMAGE: Any column values before updates are written.
|
131
|
+
-- NEW_AND_OLD_IMAGES: A combination of NEW_IMAGE and OLD_IMAGE modes.`;
|
132
|
+
};
|
133
|
+
export const grantPrivilegeTemplate = () => {
|
134
|
+
return `
|
135
|
+
GRANT $permission_name [, ...] | ALL [PRIVILEGES]
|
136
|
+
ON $path_to_scheme_object [, ...]
|
137
|
+
TO $role_name [, ...]
|
138
|
+
[WITH GRANT OPTION]
|
139
|
+
|
140
|
+
-- permission_name: The name of the access right to schema objects that needs to be assigned.
|
141
|
+
-- path_to_scheme_object: The path to the schema object for which rights are being granted.
|
142
|
+
-- role_name: The name of the user or group to whom rights on the schema object are being granted.
|
143
|
+
-- WITH GRANT OPTION: Using this construct gives the user or group of users the right to manage access rights -
|
144
|
+
-- to assign or revoke certain rights. This construct has functionality similar to granting
|
145
|
+
-- the "ydb.access.grant" or GRANT right. A subject with the ydb.access.grant right cannot
|
146
|
+
-- grant rights broader than they possess themselves.`;
|
147
|
+
};
|
148
|
+
export const revokePrivilegeTemplate = () => {
|
149
|
+
return `
|
150
|
+
REVOKE [GRANT OPTION FOR] $permission_name [, ...] | ALL [PRIVILEGES]
|
151
|
+
ON $path_to_scheme_object [, ...]
|
152
|
+
FROM $role_name [, ...]
|
153
|
+
|
154
|
+
-- permission_name: The name of the access right to schema objects that needs to be revoked.
|
155
|
+
-- path_to_scheme_object: The path to the schema object from which rights are being revoked.
|
156
|
+
-- role_name: The name of the user or group from whom rights on the schema object are being revoked.
|
157
|
+
-- GRANT OPTION FOR: Using this construct revokes the user's or group's right to manage access rights.
|
158
|
+
-- All previously granted rights by this user remain in effect.
|
159
|
+
-- This construct has functionality similar to revoking the "ydb.access.grant" or GRANT right.`;
|
160
|
+
};
|
161
|
+
export const createExternalTableTemplate = () => {
|
162
|
+
return `CREATE EXTERNAL TABLE \`$path\` (
|
163
|
+
column1 Int,
|
164
|
+
column2 Int
|
165
|
+
) WITH (
|
166
|
+
DATA_SOURCE=\`$dataSource\`,
|
167
|
+
LOCATION=\`$location\`,
|
168
|
+
FORMAT=\`$format\`,
|
169
|
+
\`file_pattern\`=\`$filePattern\`
|
170
|
+
);`;
|
171
|
+
};
|
172
|
+
export const createTopicTemplate = () => {
|
173
|
+
return `-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_topic
|
174
|
+
CREATE TOPIC \`$path\` (
|
175
|
+
CONSUMER consumer1,
|
176
|
+
CONSUMER consumer2 WITH (read_from=\`$readFrom\`) -- Sets up the message write time starting from which the consumer will receive data.
|
177
|
+
-- Value type: Datetime OR Timestamp OR integer (unix-timestamp in the numeric format).
|
178
|
+
-- Default value: now
|
179
|
+
) WITH (
|
180
|
+
min_active_partitions=\`$minActivePartitions\`, -- Minimum number of topic partitions.
|
181
|
+
partition_count_limit=\`$partitionCountLimit\`, -- Maximum number of active partitions in the topic. 0 is interpreted as unlimited.
|
182
|
+
retention_period=\`$retentionPeriod\`, -- Data retention period in the topic. Value type: Interval.
|
183
|
+
retention_storage_mb=\`$retentionStorageMb\`, -- Limit on the maximum disk space occupied by the topic data.
|
184
|
+
-- When this value is exceeded, the older data is cleared, like under a retention policy.
|
185
|
+
-- 0 is interpreted as unlimited.
|
186
|
+
partition_write_speed_bytes_per_second=\`$partitionWriteSpeedBytesPerSecond\`, -- Maximum allowed write speed per partition.
|
187
|
+
partition_write_burst_bytes=\`$partitionWriteBurstBytes\` -- Write quota allocated for write bursts.
|
188
|
+
-- When set to zero, the actual write_burst value is equalled to
|
189
|
+
-- the quota value (this allows write bursts of up to one second).
|
190
|
+
);`;
|
191
|
+
};
|
192
|
+
export const alterTopicTemplate = () => {
|
193
|
+
return `-- docs: https://ydb.tech/en/docs/yql/reference/syntax/alter_topic
|
194
|
+
ALTER TOPIC \`$path\`
|
195
|
+
ADD CONSUMER new_consumer WITH (read_from=\`$readFrom\`), -- Sets up the message write time starting from which the consumer will receive data.
|
196
|
+
-- Value type: Datetime OR Timestamp OR integer (unix-timestamp in the numeric format).
|
197
|
+
-- Default value: now
|
198
|
+
ALTER CONSUMER consumer1 SET (read_from=\`$readFrom\`),
|
199
|
+
DROP CONSUMER consumer2,
|
200
|
+
SET (
|
201
|
+
min_active_partitions=\`$minActivePartitions\`, -- Minimum number of topic partitions.
|
202
|
+
partition_count_limit=\`$partitionCountLimit\`, -- Maximum number of active partitions in the topic. 0 is interpreted as unlimited.
|
203
|
+
retention_period=\`$retentionPeriod\`, -- Data retention period in the topic. Value type: Interval.
|
204
|
+
retention_storage_mb=\`$retentionStorageMb\`, -- Limit on the maximum disk space occupied by the topic data.
|
205
|
+
-- When this value is exceeded, the older data is cleared, like under a retention policy.
|
206
|
+
-- 0 is interpreted as unlimited.
|
207
|
+
partition_write_speed_bytes_per_second=\`$partitionWriteSpeedBytesPerSecond\`, -- Maximum allowed write speed per partition.
|
208
|
+
partition_write_burst_bytes=\`$partitionWriteBurstBytes\` -- Write quota allocated for write bursts.
|
209
|
+
-- When set to zero, the actual write_burst value is equalled to
|
210
|
+
-- the quota value (this allows write bursts of up to one second).
|
211
|
+
);`;
|
212
|
+
};
|
213
|
+
export const dropTopicTemplate = () => {
|
214
|
+
return `DROP TOPIC \`$path\`;`;
|
215
|
+
};
|
216
|
+
export const createViewTemplate = () => {
|
217
|
+
return `CREATE VIEW \`$path\` WITH (security_invoker=\`$securityInvoker\`) AS SELECT 1;`;
|
218
|
+
};
|
219
|
+
export const dropTableTemplate = () => {
|
220
|
+
return `DROP TABLE \`$path\`;`;
|
221
|
+
};
|
222
|
+
export const dropAsyncReplicationTemplate = () => {
|
223
|
+
return `DROP ASYNC REPLICATION \`$path\`;`;
|
224
|
+
};
|
225
|
+
export const alterAsyncReplicationTemplate = () => {
|
226
|
+
return `ALTER ASYNC REPLICATION \`$path\` SET (STATE=\`$state\`, FAILOVER_MODE=\`$failoverMode\`);`;
|
227
|
+
};
|
228
|
+
//# sourceMappingURL=newSQLQueryTemplates.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"newSQLQueryTemplates.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/utils/newSQLQueryTemplates.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,EAAE;IACpC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BT,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,EAAE;IAC1C,OAAO;;;;;;;;;wBASa,CAAC;AACzB,CAAC,CAAC;AA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;IACvC,OAAO;;;;;;;;;;;;yEAY8D,CAAC;AAC1E,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,EAAE;IACxC,OAAO;;;;;;;;;;iHAUsG,CAAC;AAClH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG,GAAG,EAAE;IAC5C,OAAO;;;;;;;;GAQR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,EAAE;IACpC,OAAO;;;;;;;;;;;;;;;;;GAiBR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACnC,OAAO;;;;;;;;;;;;;;;;;;OAkBJ,CAAC;AACR,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,EAAE;IAClC,OAAO,uBAAuB,CAAC;AACnC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACnC,OAAO,iFAAiF,CAAC;AAC7F,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,EAAE;IAClC,OAAO,uBAAuB,CAAC;AACnC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,GAAG,GAAG,EAAE;IAC7C,OAAO,mCAAmC,CAAC;AAC/C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAAG,EAAE;IAC9C,OAAO,4FAA4F,CAAC;AACxG,CAAC,CAAC"}
|
@@ -5,5 +5,5 @@ interface ActionsAdditionalEffects {
|
|
5
5
|
setActivePath: (path: string) => void;
|
6
6
|
showCreateDirectoryDialog?: (path: string) => void;
|
7
7
|
}
|
8
|
-
export declare const getActions: (dispatch: React.Dispatch<any>, additionalEffects: ActionsAdditionalEffects) => (path: string, type: NavigationTreeNodeType) => import("@gravity-ui/uikit").DropdownMenuItemMixed<any>[];
|
8
|
+
export declare const getActions: (dispatch: React.Dispatch<any>, additionalEffects: ActionsAdditionalEffects, rootPath?: string) => (path: string, type: NavigationTreeNodeType) => import("@gravity-ui/uikit").DropdownMenuItemMixed<any>[];
|
9
9
|
export {};
|
@@ -3,15 +3,16 @@ import { changeUserInput } from '../../../store/reducers/executeQuery';
|
|
3
3
|
import { TENANT_PAGES_IDS, TENANT_QUERY_TABS_ID } from '../../../store/reducers/tenant/constants';
|
4
4
|
import { setQueryTab, setTenantPage } from '../../../store/reducers/tenant/tenant';
|
5
5
|
import createToast from '../../../utils/createToast';
|
6
|
+
import { transformPath } from '../ObjectSummary/transformPath';
|
6
7
|
import i18n from '../i18n';
|
7
|
-
import { alterAsyncReplicationTemplate, alterTableTemplate, alterTopicTemplate, createAsyncReplicationTemplate, createColumnTableTemplate, createExternalTableTemplate, createTableTemplate, createTopicTemplate, createViewTemplate, dropAsyncReplicationTemplate, dropExternalTableTemplate, dropTopicTemplate, dropViewTemplate, selectQueryTemplate, upsertQueryTemplate, } from './
|
8
|
-
const bindActions = (path, dispatch, additionalEffects) => {
|
8
|
+
import { alterAsyncReplicationTemplate, alterTableTemplate, alterTopicTemplate, createAsyncReplicationTemplate, createColumnTableTemplate, createExternalTableTemplate, createTableTemplate, createTopicTemplate, createViewTemplate, dropAsyncReplicationTemplate, dropExternalTableTemplate, dropTopicTemplate, dropViewTemplate, selectQueryTemplate, upsertQueryTemplate, } from './schemaQueryTemplates';
|
9
|
+
const bindActions = ({ path, relativePath }, dispatch, additionalEffects) => {
|
9
10
|
const { setActivePath, updateQueryExecutionSettings, showCreateDirectoryDialog } = additionalEffects;
|
10
11
|
const inputQuery = (tmpl, mode) => () => {
|
11
12
|
if (mode) {
|
12
13
|
updateQueryExecutionSettings({ queryMode: mode });
|
13
14
|
}
|
14
|
-
dispatch(changeUserInput({ input: tmpl(
|
15
|
+
dispatch(changeUserInput({ input: tmpl(relativePath) }));
|
15
16
|
dispatch(setTenantPage(TENANT_PAGES_IDS.query));
|
16
17
|
dispatch(setQueryTab(TENANT_QUERY_TABS_ID.newQuery));
|
17
18
|
setActivePath(path);
|
@@ -40,7 +41,7 @@ const bindActions = (path, dispatch, additionalEffects) => {
|
|
40
41
|
dropView: inputQuery(dropViewTemplate, 'script'),
|
41
42
|
copyPath: () => {
|
42
43
|
try {
|
43
|
-
copy(
|
44
|
+
copy(relativePath);
|
44
45
|
createToast({
|
45
46
|
name: 'Copied',
|
46
47
|
title: i18n('actions.copied'),
|
@@ -57,8 +58,9 @@ const bindActions = (path, dispatch, additionalEffects) => {
|
|
57
58
|
},
|
58
59
|
};
|
59
60
|
};
|
60
|
-
export const getActions = (dispatch, additionalEffects) => (path, type) => {
|
61
|
-
const
|
61
|
+
export const getActions = (dispatch, additionalEffects, rootPath = '') => (path, type) => {
|
62
|
+
const relativePath = transformPath(path, rootPath);
|
63
|
+
const actions = bindActions({ path, relativePath }, dispatch, additionalEffects);
|
62
64
|
const copyItem = { text: i18n('actions.copyPath'), action: actions.copyPath };
|
63
65
|
const DIR_SET = [
|
64
66
|
[copyItem],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schemaActions.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/utils/schemaActions.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,mBAAmB,CAAC;AAGrC,OAAO,EAAC,eAAe,EAAC,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAC,gBAAgB,EAAE,oBAAoB,EAAC,MAAM,0CAA0C,CAAC;AAChG,OAAO,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,uCAAuC,CAAC;AAEjF,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,EACH,6BAA6B,EAC7B,kBAAkB,EAClB,kBAAkB,EAClB,8BAA8B,EAC9B,yBAAyB,EACzB,2BAA2B,EAC3B,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,4BAA4B,EAC5B,yBAAyB,EACzB,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,GACtB,MAAM,
|
1
|
+
{"version":3,"file":"schemaActions.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/utils/schemaActions.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,mBAAmB,CAAC;AAGrC,OAAO,EAAC,eAAe,EAAC,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAC,gBAAgB,EAAE,oBAAoB,EAAC,MAAM,0CAA0C,CAAC;AAChG,OAAO,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,uCAAuC,CAAC;AAEjF,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAC7D,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,EACH,6BAA6B,EAC7B,kBAAkB,EAClB,kBAAkB,EAClB,8BAA8B,EAC9B,yBAAyB,EACzB,2BAA2B,EAC3B,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,4BAA4B,EAC5B,yBAAyB,EACzB,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,GACtB,MAAM,wBAAwB,CAAC;AAQhC,MAAM,WAAW,GAAG,CAChB,EAAC,IAAI,EAAE,YAAY,EAAuC,EAC1D,QAA6B,EAC7B,iBAA2C,EAC7C,EAAE;IACA,MAAM,EAAC,aAAa,EAAE,4BAA4B,EAAE,yBAAyB,EAAC,GAC1E,iBAAiB,CAAC;IAEtB,MAAM,UAAU,GAAG,CAAC,IAA8B,EAAE,IAAgB,EAAE,EAAE,CAAC,GAAG,EAAE;QAC1E,IAAI,IAAI,EAAE,CAAC;YACP,4BAA4B,CAAC,EAAC,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC;QACpD,CAAC;QAED,QAAQ,CAAC,eAAe,CAAC,EAAC,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,EAAC,C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EF,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAC;AACnC,CAAC,CAAC"}
|
@@ -144,4 +144,4 @@ export const dropAsyncReplicationTemplate = (path) => {
|
|
144
144
|
export const alterAsyncReplicationTemplate = (path) => {
|
145
145
|
return `ALTER ASYNC REPLICATION \`${path}\` SET (STATE = "DONE", FAILOVER_MODE = "FORCE");`;
|
146
146
|
};
|
147
|
-
//# sourceMappingURL=
|
147
|
+
//# sourceMappingURL=schemaQueryTemplates.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"schemaQueryTemplates.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/utils/schemaQueryTemplates.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAY,EAAE,EAAE;IAChD,OAAO;iBACM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BnB,CAAC;AACH,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,IAAY,EAAE,EAAE;IACtD,OAAO;iBACM,IAAI;;;;;;;;sBAQC,CAAC;AACvB,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,8BAA8B,GAAG,GAAG,EAAE;IAC/C,OAAO;;;;;;;;;;;GAWR,CAAC;AACJ,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAAY,EAAE,EAAE;IAC/C,OAAO,iBAAiB,IAAI;qCACK,CAAC;AACtC,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAY,EAAE,EAAE;IAChD,OAAO;aACE,IAAI;cACH,CAAC;AACf,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAY,EAAE,EAAE;IAChD,OAAO,iBAAiB,IAAI;;YAEpB,CAAC;AACb,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,IAAY,EAAE,EAAE;IACtD,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CAAC,CAAC"}
|
package/dist/services/api.js
CHANGED
@@ -182,9 +182,9 @@ export class YdbEmbeddedAPI extends AxiosWrapper {
|
|
182
182
|
enums: true,
|
183
183
|
backup: false,
|
184
184
|
private: true,
|
185
|
-
partition_config:
|
186
|
-
partition_stats:
|
187
|
-
partitioning_info:
|
185
|
+
partition_config: false,
|
186
|
+
partition_stats: false,
|
187
|
+
partitioning_info: false,
|
188
188
|
subs: 1,
|
189
189
|
}, { concurrentId, requestConfig: { signal } });
|
190
190
|
}
|