Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
782f53c
dbeaver/pro#8047 exposed resultset SQL generators to CB
Nexus6v2 Feb 5, 2026
aa99897
Merge branch 'devel' of github.com:dbeaver/cloudbeaver into dbeaver/p…
Nexus6v2 Feb 5, 2026
662ac6b
dbeaver/pro#8047 minor fix
Nexus6v2 Feb 5, 2026
90f2f1d
dbeaver/pro#8047 adds ui for the sql generation in result set
sergeyteleshev Feb 5, 2026
344c54a
dbeaver/pro#8047 reuses generated sql dialog
sergeyteleshev Feb 5, 2026
9318d38
adds translation + unit tests
sergeyteleshev Feb 5, 2026
63a301b
Merge branch 'devel' of github.com:dbeaver/cloudbeaver into dbeaver/p…
Nexus6v2 Feb 6, 2026
d299a44
Merge branch 'dbeaver/pro#8047-resultset-sql-generation' into dbeaver…
sergeyteleshev Feb 6, 2026
5cdcebd
refactors generate sql
sergeyteleshev Feb 6, 2026
745da0a
adds feature for data editor
sergeyteleshev Feb 6, 2026
1d70e78
disables feature for long text and blobs
sergeyteleshev Feb 6, 2026
c732628
disables feature for readonly tables
sergeyteleshev Feb 6, 2026
aebdc11
dbeaver/pro#7998 added sql generator tests
Nexus6v2 Feb 9, 2026
84d9917
dbeaver/pro#8047 moved data provider
Nexus6v2 Feb 9, 2026
1fc9ef1
Merge branch 'devel' of github.com:dbeaver/cloudbeaver into dbeaver/p…
Nexus6v2 Feb 9, 2026
f40fd39
dbeaver/pro#8047 fixed imports after move
Nexus6v2 Feb 9, 2026
04c486d
Merge branch 'dbeaver/pro#8047-resultset-sql-generation' into dbeaver…
sergeyteleshev Feb 9, 2026
cab224e
pr fixes
sergeyteleshev Feb 9, 2026
28a8877
build fix
sergeyteleshev Feb 9, 2026
b180f97
build fix 2
sergeyteleshev Feb 9, 2026
f86c48a
pr fixes
sergeyteleshev Feb 9, 2026
a895d82
dbeaver/pro#8047 extracted methods to DBDResultSetModel
Nexus6v2 Feb 10, 2026
93d9245
adds comments for refactor
sergeyteleshev Feb 10, 2026
82ecf21
Merge branch 'dbeaver/pro#8047-resultset-sql-generation' into dbeaver…
sergeyteleshev Feb 10, 2026
3c27126
Merge branch 'devel' of github.com:dbeaver/cloudbeaver into dbeaver/p…
Nexus6v2 Feb 10, 2026
27bd33e
Merge branch 'dbeaver/pro#8047-resultset-sql-generation' into dbeaver…
dariamarutkina Feb 10, 2026
991e89c
Merge branch 'devel' into dbeaver/pro#8047-resultset-sql-generation
uslss Feb 10, 2026
cd20573
Merge branch 'dbeaver/pro#8047-resultset-sql-generation' into dbeaver…
EvgeniaBzzz Feb 10, 2026
bb2f0f5
Merge branch 'devel' into dbeaver/pro#8047-create-sql-dialog-for-resu…
sergeyteleshev Feb 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions webapp/packages/core-localization/src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export default [
['ui_ignore', 'Ignore'],
['ui_unexpected_error', 'Unexpected error'],
['ui_error', 'Error'],
['ui_unknown_error', 'Unknown Error'],
Comment thread
sergeyteleshev marked this conversation as resolved.
['ui_error_message', 'Error:'],
['ui_error_close', 'Close'],
['ui_clear', 'Clear'],
Expand Down
1 change: 1 addition & 0 deletions webapp/packages/core-localization/src/locales/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export default [
['ui_ignore', 'Ignorer'],
['ui_unexpected_error', 'Erreur inattendue'],
['ui_error', 'Erreur'],
['ui_unknown_error', 'Erreur inconnue'],
['ui_error_message', 'Erreur :'],
['ui_error_close', 'Fermer'],
['ui_clear', 'Effacer'],
Expand Down
1 change: 1 addition & 0 deletions webapp/packages/core-localization/src/locales/it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export default [
['ui_reject', 'Reject'],
['ui_ignore', 'Ignore'],
['ui_error', 'Errore'],
['ui_unknown_error', 'Errore sconosciuto'],
['ui_error_message', 'Errore:'],
['ui_error_close', 'Chiudi'],
['ui_clear', 'Clear'],
Expand Down
1 change: 1 addition & 0 deletions webapp/packages/core-localization/src/locales/ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export default [
['ui_reject', 'Отклонить'],
['ui_ignore', 'Пропустить'],
['ui_error', 'Ошибка'],
['ui_unknown_error', 'Неизвестная ошибка'],
['ui_error_message', 'Ошибка:'],
['ui_error_close', 'Закрыть'],
['ui_clear', 'Очистить'],
Expand Down
1 change: 1 addition & 0 deletions webapp/packages/core-localization/src/locales/vi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export default [
['ui_ignore', 'Bỏ qua'],
['ui_unexpected_error', 'Lỗi không mong muốn'],
['ui_error', 'Lỗi'],
['ui_unknown_error', 'Lỗi không xác định'],
['ui_error_message', 'Lỗi:'],
['ui_error_close', 'Đóng'],
['ui_clear', 'Xóa'],
Expand Down
1 change: 1 addition & 0 deletions webapp/packages/core-localization/src/locales/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export default [
['ui_reject', '拒绝'],
['ui_ignore', '忽略'],
['ui_error', '错误'],
['ui_unknown_error', '未知错误'],
['ui_error_message', '错误:'],
['ui_error_close', '关闭'],
['ui_clear', '清除'],
Expand Down
17 changes: 17 additions & 0 deletions webapp/packages/core-sdk/src/queries/sqlGenerateResultSetQuery.gql
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
query sqlGenerateResultSetQuery(
$projectId: ID
$connectionId: ID!
$contextId: ID!
$generatorId: SQLResultSetGeneratorId!
$resultsId: ID!
$selectedRows: [SQLResultRow!]!
) {
sqlGenerateResultSetQuery(
projectId: $projectId
connectionId: $connectionId
contextId: $contextId
generatorId: $generatorId
resultsId: $resultsId
selectedRows: $selectedRows
)
}
2 changes: 1 addition & 1 deletion webapp/packages/core-utils/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2025 DBeaver Corp and others
* Copyright (C) 2020-2026 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2025 DBeaver Corp and others
* Copyright (C) 2020-2026 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -32,7 +32,7 @@
super();
}

override register() {

Check warning on line 35 in webapp/packages/plugin-data-import/src/DataImportBootstrap.ts

View workflow job for this annotation

GitHub Actions / Frontend / Lint

Missing return type on function

Check warning on line 35 in webapp/packages/plugin-data-import/src/DataImportBootstrap.ts

View workflow job for this annotation

GitHub Actions / Frontend / Lint

Missing return type on function
this.actionService.addHandler({
id: 'data-import-base-handler',
contexts: [DATA_CONTEXT_DV_DDM, DATA_CONTEXT_DV_DDM_RESULT_INDEX],
Expand Down Expand Up @@ -100,7 +100,9 @@
const resultIndex = context.get(DATA_CONTEXT_DV_DDM_RESULT_INDEX)!;
const presentation = context.get(DATA_CONTEXT_DV_PRESENTATION);
const isContainer = model.source instanceof ContainerDataSource;

return (
// TODO add more proper way to define to what features it should be added https://github.com/dbeaver/pro/issues/8299
!model.isReadonly(resultIndex) &&
isContainer &&
!this.dataImportService.disabled &&
Expand Down
1 change: 1 addition & 0 deletions webapp/packages/plugin-data-spreadsheet-new/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"@cloudbeaver/plugin-data-grid": "workspace:*",
"@cloudbeaver/plugin-data-viewer": "workspace:*",
"@cloudbeaver/plugin-data-viewer-conditional-formatting": "workspace:*",
"@cloudbeaver/plugin-sql-generator": "workspace:*",
"@dbeaver/js-helpers": "workspace:*",
"@dbeaver/result-set-api": "workspace:*",
"@dbeaver/ui-kit": "workspace:*",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2026 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 { createAction } from '@cloudbeaver/core-view';

export const ACTION_DATA_GRID_GENERATE_SQL_DELETE = createAction('data-grid-generate-sql-delete', {
label: 'data_grid_table_generate_sql_delete',
tooltip: 'data_grid_table_generate_sql_delete_tooltip',
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2025 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 { createAction } from '@cloudbeaver/core-view';

export const ACTION_DATA_GRID_GENERATE_SQL_INSERT = createAction('data-grid-generate-sql-insert', {
label: 'data_grid_table_generate_sql_insert',
tooltip: 'data_grid_table_generate_sql_insert_tooltip',
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2025 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 { createAction } from '@cloudbeaver/core-view';

export const ACTION_DATA_GRID_GENERATE_SQL_SELECT = createAction('data-grid-generate-sql-select', {
label: 'data_grid_table_generate_sql_select',
tooltip: 'data_grid_table_generate_sql_select_tooltip',
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2025 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 { createAction } from '@cloudbeaver/core-view';

export const ACTION_DATA_GRID_GENERATE_SQL_SELECT_MANY = createAction('data-grid-generate-sql-select-many', {
label: 'data_grid_table_generate_sql_select_many',
tooltip: 'data_grid_table_generate_sql_select_many_tooltip',
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2025 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 { createAction } from '@cloudbeaver/core-view';

export const ACTION_DATA_GRID_GENERATE_SQL_UPDATE = createAction('data-grid-generate-sql-update', {
label: 'data_grid_table_generate_sql_update',
tooltip: 'data_grid_table_generate_sql_update_tooltip',
});
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export class DataGridContextMenuCellEditingService {
isApplicable: context => {
const model = context.get(DATA_CONTEXT_DV_DDM)!;
const resultIndex = context.get(DATA_CONTEXT_DV_DDM_RESULT_INDEX)!;
// TODO add more proper way to define to what features it should be added https://github.com/dbeaver/pro/issues/8299
return isResultSetDataSource(model.source) && !model.isDisabled(resultIndex) && !model.isReadonly(resultIndex);
},
getItems: (context, items) => [...items, MENU_DATA_GRID_EDITING],
Expand Down Expand Up @@ -108,6 +109,7 @@ export class DataGridContextMenuCellEditingService {
// If we somehow added a new row, we can always edit it
const canEdit = editor.getElementState(key) === DatabaseEditChangeType.add;

// TODO add more proper way to define to what features it should be added https://github.com/dbeaver/pro/issues/8299
if (model.isReadonly(resultIndex)) {
return false;
}
Expand Down
Loading
Loading