mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 01:33:59 +00:00
MPR grouping
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
import { showModal } from '../modals/modalTools';
|
import { showModal } from '../modals/modalTools';
|
||||||
import DefineDictionaryDescriptionModal from '../modals/DefineDictionaryDescriptionModal.svelte';
|
import DefineDictionaryDescriptionModal from '../modals/DefineDictionaryDescriptionModal.svelte';
|
||||||
import { sleep } from '../utility/common';
|
import { sleep } from '../utility/common';
|
||||||
|
import { isProApp } from '../utility/proTools';
|
||||||
|
|
||||||
export let column;
|
export let column;
|
||||||
export let conid = undefined;
|
export let conid = undefined;
|
||||||
@@ -72,15 +73,19 @@
|
|||||||
|
|
||||||
column.foreignKey && [{ divider: true }, { onClick: openReferencedTable, text: column.foreignKey.refTableName }],
|
column.foreignKey && [{ divider: true }, { onClick: openReferencedTable, text: column.foreignKey.refTableName }],
|
||||||
|
|
||||||
setGrouping && { divider: true },
|
isProApp() &&
|
||||||
setGrouping && { onClick: () => setGrouping('GROUP'), text: 'Group by' },
|
setGrouping && [
|
||||||
setGrouping && { onClick: () => setGrouping('MAX'), text: 'MAX' },
|
{ divider: true },
|
||||||
setGrouping && { onClick: () => setGrouping('MIN'), text: 'MIN' },
|
{ onClick: () => setGrouping('GROUP'), text: 'Group by' },
|
||||||
setGrouping && { onClick: () => setGrouping('SUM'), text: 'SUM' },
|
{ onClick: () => setGrouping('MAX'), text: 'MAX' },
|
||||||
setGrouping && { onClick: () => setGrouping('AVG'), text: 'AVG' },
|
{ onClick: () => setGrouping('MIN'), text: 'MIN' },
|
||||||
setGrouping && { onClick: () => setGrouping('COUNT'), text: 'COUNT' },
|
{ onClick: () => setGrouping('SUM'), text: 'SUM' },
|
||||||
setGrouping && { onClick: () => setGrouping('COUNT DISTINCT'), text: 'COUNT DISTINCT' },
|
{ onClick: () => setGrouping('AVG'), text: 'AVG' },
|
||||||
|
{ onClick: () => setGrouping('COUNT'), text: 'COUNT' },
|
||||||
|
{ onClick: () => setGrouping('COUNT DISTINCT'), text: 'COUNT DISTINCT' },
|
||||||
|
],
|
||||||
|
|
||||||
|
isProApp() &&
|
||||||
isTypeDateTime(column.dataType) && [
|
isTypeDateTime(column.dataType) && [
|
||||||
{ divider: true },
|
{ divider: true },
|
||||||
{ onClick: () => setGrouping('GROUP:YEAR'), text: 'Group by YEAR' },
|
{ onClick: () => setGrouping('GROUP:YEAR'), text: 'Group by YEAR' },
|
||||||
|
|||||||
Reference in New Issue
Block a user