-
Notifications
You must be signed in to change notification settings - Fork 529
[CB] SQL Query generation: front-end part #4117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
sergeyteleshev
wants to merge
29
commits into
devel
from
dbeaver/pro#8047-create-sql-dialog-for-result-set-frontend
Closed
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 aa99897
Merge branch 'devel' of github.com:dbeaver/cloudbeaver into dbeaver/p…
Nexus6v2 662ac6b
dbeaver/pro#8047 minor fix
Nexus6v2 90f2f1d
dbeaver/pro#8047 adds ui for the sql generation in result set
sergeyteleshev 344c54a
dbeaver/pro#8047 reuses generated sql dialog
sergeyteleshev 9318d38
adds translation + unit tests
sergeyteleshev 63a301b
Merge branch 'devel' of github.com:dbeaver/cloudbeaver into dbeaver/p…
Nexus6v2 d299a44
Merge branch 'dbeaver/pro#8047-resultset-sql-generation' into dbeaver…
sergeyteleshev 5cdcebd
refactors generate sql
sergeyteleshev 745da0a
adds feature for data editor
sergeyteleshev 1d70e78
disables feature for long text and blobs
sergeyteleshev c732628
disables feature for readonly tables
sergeyteleshev aebdc11
dbeaver/pro#7998 added sql generator tests
Nexus6v2 84d9917
dbeaver/pro#8047 moved data provider
Nexus6v2 1fc9ef1
Merge branch 'devel' of github.com:dbeaver/cloudbeaver into dbeaver/p…
Nexus6v2 f40fd39
dbeaver/pro#8047 fixed imports after move
Nexus6v2 04c486d
Merge branch 'dbeaver/pro#8047-resultset-sql-generation' into dbeaver…
sergeyteleshev cab224e
pr fixes
sergeyteleshev 28a8877
build fix
sergeyteleshev b180f97
build fix 2
sergeyteleshev f86c48a
pr fixes
sergeyteleshev a895d82
dbeaver/pro#8047 extracted methods to DBDResultSetModel
Nexus6v2 93d9245
adds comments for refactor
sergeyteleshev 82ecf21
Merge branch 'dbeaver/pro#8047-resultset-sql-generation' into dbeaver…
sergeyteleshev 3c27126
Merge branch 'devel' of github.com:dbeaver/cloudbeaver into dbeaver/p…
Nexus6v2 27bd33e
Merge branch 'dbeaver/pro#8047-resultset-sql-generation' into dbeaver…
dariamarutkina 991e89c
Merge branch 'devel' into dbeaver/pro#8047-resultset-sql-generation
uslss cd20573
Merge branch 'dbeaver/pro#8047-resultset-sql-generation' into dbeaver…
EvgeniaBzzz bb2f0f5
Merge branch 'devel' into dbeaver/pro#8047-create-sql-dialog-for-resu…
sergeyteleshev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
webapp/packages/core-sdk/src/queries/sqlGenerateResultSetQuery.gql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| ) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...-spreadsheet-new/src/DataGrid/Actions/GenerateSQL/ACTION_DATA_GRID_GENERATE_SQL_DELETE.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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', | ||
| }); |
13 changes: 13 additions & 0 deletions
13
...-spreadsheet-new/src/DataGrid/Actions/GenerateSQL/ACTION_DATA_GRID_GENERATE_SQL_INSERT.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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', | ||
| }); |
13 changes: 13 additions & 0 deletions
13
...-spreadsheet-new/src/DataGrid/Actions/GenerateSQL/ACTION_DATA_GRID_GENERATE_SQL_SELECT.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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', | ||
| }); |
13 changes: 13 additions & 0 deletions
13
...adsheet-new/src/DataGrid/Actions/GenerateSQL/ACTION_DATA_GRID_GENERATE_SQL_SELECT_MANY.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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', | ||
| }); |
13 changes: 13 additions & 0 deletions
13
...-spreadsheet-new/src/DataGrid/Actions/GenerateSQL/ACTION_DATA_GRID_GENERATE_SQL_UPDATE.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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', | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.