fix(cassandra): report materialized views and skip db-side sort
This commit is contained in:
1 parent
eea3faa224
commit
0938b6bee0
11 files changed
+296
-42
No files matched your search
@@ -350,7 +350,7 @@ import { useTheme } from "@/composables/useTheme";
|
||||
import { useConnectionStore } from "@/stores/connectionStore";
|
||||
import { useQueryStore } from "@/stores/queryStore";
|
||||
import { useSettingsStore } from "@/stores/settingsStore";
|
||||
import { simpleDataGridOrderByMatchesSort, simpleDataGridOrderByReferencesMissingColumn, type DataGridSortDirection, type DataGridSortMode } from "@/lib/dataGrid/dataGridSort";
|
||||
import { databaseSortSupportedForDatabase, simpleDataGridOrderByMatchesSort, simpleDataGridOrderByReferencesMissingColumn, type DataGridSortDirection, type DataGridSortMode } from "@/lib/dataGrid/dataGridSort";
|
||||
import { resolveGridFocusRestoreTarget } from "@/lib/dataGrid/dataGridFocusRestore";
|
||||
import { buildOrderedGridRows, type GridInsertRowPosition, type GridNewRowPlacement } from "@/lib/dataGrid/gridNewRowPlacement";
|
||||
import {
|
||||
@@ -848,6 +848,7 @@ function sortMenuItems(column: string, columnIndex: number) {
|
||||
column,
|
||||
columnIndex,
|
||||
state: currentColumnSortState(),
|
||||
databaseSortEnabled: databaseSortSupportedForDatabase(resolvedDatabaseType.value),
|
||||
labels: {
|
||||
databaseAscending: t("grid.sortDatabaseAscending"),
|
||||
databaseDescending: t("grid.sortDatabaseDescending"),
|
||||
@@ -12514,6 +12515,7 @@ const gridContextMenuItems = computed<ContextMenuItem[]>(() => {
|
||||
canFilter: canUseWhereSearch.value,
|
||||
hasSort: !!sortCol.value,
|
||||
sortMode: sortMode.value,
|
||||
databaseSortEnabled: databaseSortSupportedForDatabase(resolvedDatabaseType.value),
|
||||
frozenColumnCount: frozenColumnCount.value,
|
||||
contextVisibleColIdx: contextHeaderVisibleColIdx.value ?? undefined,
|
||||
hasColumnSelection: hasColumnSelection.value,
|
||||
|
||||
Reference in new issue
Block a user