mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
* CB-2551. Fixed additional auth for disabled user * CB-3923. Added output reader logs * CB-3923. Added output reader logs * CB-3923. Refactor after review * CB-3923. Refactor after review * CB-3923. Refactor after review * CB-3923. Refactor after review * CB-3923. Refactor after review * CB-3923. Refactor after review * CB-3923. Refactor after review * CB-3923. Refactor after review * CB-3923. Refactor after review * CB-3924: add show output button * CB-3924: add output event handler and resource * CB-3924: add server output logs panel * CB-3924: fix bugs * CB-3923. Fixed checkstyle * CB-3924: fixes after review * CB-3923. Refactor after review * CB-3924: fixes after review * CB-3924: add line wrapper extension for editor * CB-3923. Refactor after review * CB-3924: show output logs for current context * CB-3924: fixes after review * CB-3924: add output logs icon * CB-3924: fixes after review * CB-3924: fixes after review * CB-3924: fixes after review * CB-3924: fix bug with not updated menus * CB-3924. Fix boolean type --------- Co-authored-by: Dmitry Osipov <teunlao@gmail.com> Co-authored-by: EvgeniaBzzz <139753579+EvgeniaBzzz@users.noreply.github.com>
68 lines
1.5 KiB
TypeScript
68 lines
1.5 KiB
TypeScript
/*
|
|
* CloudBeaver - Cloud Database Manager
|
|
* Copyright (C) 2020-2023 DBeaver Corp and others
|
|
*
|
|
* Licensed under the Apache License, Version 2.0.
|
|
* you may not use this file except in compliance with the License.
|
|
*/
|
|
import type { IOutputLogType } from './SqlResultTabs/OutputLogs/IOutputLogTypes';
|
|
|
|
export interface IResultTab {
|
|
tabId: string;
|
|
// when query return several results they all have one groupId
|
|
// new group id generates every time you execute query in new tab
|
|
groupId: string;
|
|
indexInResultSet: number;
|
|
}
|
|
|
|
export interface IStatisticsTab {
|
|
tabId: string;
|
|
order: number;
|
|
}
|
|
|
|
export interface IResultGroup {
|
|
groupId: string;
|
|
modelId: string;
|
|
order: number;
|
|
nameOrder: number;
|
|
query: string;
|
|
}
|
|
|
|
export interface ISqlEditorResultTab {
|
|
id: string;
|
|
order: number;
|
|
name: string;
|
|
icon: string;
|
|
}
|
|
|
|
export interface IExecutionPlanTab {
|
|
tabId: string;
|
|
order: number;
|
|
query: string;
|
|
options?: Record<string, any>;
|
|
}
|
|
|
|
export interface IOutputLogsTab extends ISqlEditorResultTab {
|
|
selectedLogTypes: IOutputLogType[];
|
|
}
|
|
|
|
export interface ISqlEditorTabState {
|
|
editorId: string;
|
|
datasourceKey: string;
|
|
|
|
source?: string;
|
|
order: number;
|
|
|
|
currentTabId?: string;
|
|
tabs: ISqlEditorResultTab[];
|
|
resultGroups: IResultGroup[];
|
|
resultTabs: IResultTab[];
|
|
statisticsTabs: IStatisticsTab[];
|
|
executionPlanTabs: IExecutionPlanTab[];
|
|
outputLogsTab?: IOutputLogsTab;
|
|
|
|
// mode
|
|
currentModeId?: string;
|
|
modeState: Array<[string, any]>;
|
|
}
|