-
Notifications
You must be signed in to change notification settings - Fork 552
4551 generate full ddl for postgresql metaobjects #4507
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
Open
sergeyteleshev
wants to merge
12
commits into
devel
Choose a base branch
from
4551-generate-full-ddl-for-postgresql-metaobjects
base: devel
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 9 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
a18b1be
dbeaver/pro#4551 adds full DDL for GeneratedSql dialog
sergeyteleshev 8b2af5e
Merge branch 'devel' into 4551-generate-full-ddl-for-postgresql-metao…
sergeyteleshev 75ecf38
dbeaver/pro#4551 introduces core-sql-generator plugin + adds "full DD…
sergeyteleshev 7aacbc8
dbeaver/pro#4551 adds supportsFullDdl flag to hide full ddl feature i…
sergeyteleshev d534337
dbeaver/pro#4551 adds SqlEntityQueryResource to separate sqlGenerator…
sergeyteleshev 73b06d1
Merge branch 'devel' into 4551-generate-full-ddl-for-postgresql-metao…
sergeyteleshev 43ab604
Merge branch 'devel' into 4551-generate-full-ddl-for-postgresql-metao…
sergeyteleshev 83712d4
dbeaver/pro#4551 refactor: remove core-sql-generator package and rela…
sergeyteleshev 1021985
dbeaver/pro#4551 implements DDL query state management and refactors …
sergeyteleshev 7e121ed
dbeaver/pro#4551 removes state & name in favor of onChange for Genera…
sergeyteleshev d400ed2
Merge branch 'devel' into 4551-generate-full-ddl-for-postgresql-metao…
dariamarutkina 668a8c2
Merge branch 'devel' into 4551-generate-full-ddl-for-postgresql-metao…
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
5 changes: 5 additions & 0 deletions
5
webapp/packages/core-sdk/src/queries/asyncSqlGenerateEntityQuery.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,5 @@ | ||
| mutation asyncSqlGenerateEntityQuery($generatorId: String!, $nodePathList: [String!]!, $generatorOptions: SQLQueryGeneratorOptions) { | ||
| taskInfo: asyncSqlGenerateEntityQuery(generatorId: $generatorId, nodePathList: $nodePathList, generatorOptions: $generatorOptions) { | ||
| ...AsyncTaskInfo | ||
| } | ||
| } |
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
webapp/packages/core-sdk/src/queries/sqlGenerateEntityQuery.gql
This file was deleted.
Oops, something went wrong.
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
14 changes: 14 additions & 0 deletions
14
webapp/packages/plugin-ddl-viewer/src/DdlViewer/ACTION_DDL_VIEWER_FULL_DDL.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,14 @@ | ||
| /* | ||
| * 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_DDL_VIEWER_FULL_DDL = createAction('ddl-viewer-full-ddl', { | ||
| label: 'plugin_ddl_viewer_full_ddl', | ||
| tooltip: 'plugin_ddl_viewer_full_ddl', | ||
| type: 'checkbox', | ||
| }); |
4 changes: 2 additions & 2 deletions
4
...dlViewer/DATA_CONTEXT_DDL_VIEWER_VALUE.ts → ...dlViewer/DATA_CONTEXT_DDL_VIEWER_QUERY.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 |
|---|---|---|
| @@ -1,10 +1,10 @@ | ||
| /* | ||
| * CloudBeaver - Cloud Database Manager | ||
| * Copyright (C) 2020-2024 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. | ||
| */ | ||
| import { createDataContext } from '@cloudbeaver/core-data-context'; | ||
|
|
||
| export const DATA_CONTEXT_DDL_VIEWER_VALUE = createDataContext<string>('ddl-value'); | ||
| export const DATA_CONTEXT_DDL_VIEWER_QUERY = createDataContext<string>('ddl-query'); |
26 changes: 26 additions & 0 deletions
26
webapp/packages/plugin-ddl-viewer/src/DdlViewer/DDLQueryStateService.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,26 @@ | ||
| /* | ||
| * 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 { injectable } from '@cloudbeaver/core-di'; | ||
| import { MetadataMap } from '@cloudbeaver/core-utils'; | ||
|
|
||
| @injectable() | ||
| export class DDLQueryStateService { | ||
| private readonly fullDdlState = new MetadataMap<string, boolean>(() => false); | ||
|
|
||
| isFullDdlEnabled(nodeId: string): boolean { | ||
| return this.fullDdlState.get(nodeId); | ||
| } | ||
|
|
||
| setFullDdlEnabled(nodeId: string, value: boolean): void { | ||
| this.fullDdlState.set(nodeId, value); | ||
| } | ||
|
|
||
| toggleFullDdl(nodeId: string): void { | ||
| this.setFullDdlEnabled(nodeId, !this.isFullDdlEnabled(nodeId)); | ||
| } | ||
| } | ||
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
47 changes: 0 additions & 47 deletions
47
webapp/packages/plugin-ddl-viewer/src/DdlViewer/DdlResource.ts
This file was deleted.
Oops, something went wrong.
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.