Skip to content

Commit e419f52

Browse files
authored
Merge pull request #243 from EdurtIO/develop
Develop
2 parents caf9103 + c394aad commit e419f52

File tree

71 files changed

+1229
-95
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+1229
-95
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
[中文](http://dbm-zh.edurt.io/) <br />
1313
[English](https://dbm.edurt.io/)
1414

15+
## Security
16+
17+
---
18+
19+
[![OSCS Status](https://www.oscs1024.com/platform/badge/qianmoQ/dbm.git.svg?size=small)](https://www.murphysec.com/dr/jv6PXUWIeGXUsjTRup)
20+
1521
## Contributors
1622

1723
---
@@ -90,6 +96,7 @@ Here are some of the major database solutions that are supported:
9096
<img src="./src/shared/assets/integrate/presto.png" alt="Presto" class="a" width="152" height="46"/>
9197
<img src="./src/shared/assets/integrate/mysql.png" alt="MySQL" class="a" width="auto" height="50"/>
9298
<img src="./src/shared/assets/integrate/postgresql.png" alt="PostgreSQL" class="a" width="auto" height="50"/>
99+
<img src="./src/shared/assets/integrate/druid.png" alt="Druid" class="a" width="auto" height="34"/>
93100
</p>
94101

95102
## Features
Loading
Loading

docs/docs/assets/integrate/Druid.svg

Lines changed: 6 additions & 0 deletions
Loading

docs/docs/download.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,13 @@ The current Trino release is version <img src="https://img.shields.io/github/v/r
9090
* **Issues**: [GitHub issues](https://github.com/trinodb/trino/issues)
9191
* **Source Code**: [Code](https://github.com/trinodb/trino)
9292
* **YouTube channel** [YouTube channel](https://www.youtube.com/c/trinodb)
93+
94+
- __Druid__
95+
96+
---
97+
98+
* **Documentation**: [trino.io](https://druid.apache.org/docs/latest/design/)
99+
* **Issues**: [GitHub issues](https://github.com/apache/druid/issues)
100+
* **Source Code**: [Code](https://github.com/apache/druid)
101+
* **Meetups** [Meetups](https://www.meetup.com/topics/apache-druid/)
93102
</div>
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
template: overrides/main.html
3+
---
4+
5+
!!! note "Apache Druid"
6+
7+
It is mainly used to describe how the software builds the Apache Druid data source for subsequent operations.
8+
9+
!!! warning "System requirements"
10+
11+
\>= `1.21.0`
12+
13+
### Supported Versions
14+
15+
---
16+
17+
| Version | Tested? |
18+
|----------|---------------------------------------------|
19+
| `0.23.x` | :material-checkbox-marked-circle:{.success} |
20+
21+
!!! note "Supported versions"
22+
23+
Most versions have been tested, please submit issues for non-adapted versions.
24+
25+
### Created a Source
26+
27+
---
28+
29+
After entering the data source management page, click the Add data source button.
30+
31+
![img.png](../../../assets/images/others/management/datasource/druid/img.png)
32+
33+
Select the Apache Druid icon in the `Basic` type (The last one).
34+
35+
After selecting the type, click the `Next` button at the bottom to configure the relevant information.
36+
37+
![img_1.png](../../../assets/images/others/management/datasource/druid/img_1.png)
38+
39+
!!! note "Supported protocols"
40+
41+
- [x] `HTTP`
42+
43+
#### HTTP Protocol
44+
45+
---
46+
47+
!!! note "HTTP Protocol"
48+
49+
Use the HTTP interface provided by Apache Druid to connect to the service.
50+
51+
| Parameter | Description | Required | Unique | Default |
52+
|-----------|-----------------------------------------------------------------------------------------------------|----------|--------|---------|
53+
| `Alias` | The alias of the data source, which will be displayed later in the selected data source on the page | Yes | Yes | |
54+
| `Host` | The host of the Apache Druid server | Yes | Yes | |
55+
| `Port` | The port of the Apache Druid server | Yes | Yes | `8123` |
56+
57+
When we have configured the above parameters, click the `Test` button at the bottom. If the service can be accessed normally, the `OK` button can be used. Click it and it will be saved.

docs/docs/release/1.21.0-20220725.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
template: overrides/main.html
3+
icon: material/gesture-tap-button
4+
---
5+
6+
DBM Version for `1.21.0` is released!
7+
8+
Release Time: `2022-07-25`
9+
10+
#### General
11+
12+
---
13+
14+
- Add a new code editor layout
15+
- Fix the style of the tree menu on the left side of metadata management is confused
16+
- The new query dynamically loads the service according to the plug-in
17+
18+
#### Security
19+
20+
---
21+
22+
- Upgrade moment to `2.29.4`
23+
- Upgrade dexie to `3.2.2`
24+
- Fix some dependent version security
25+
26+
#### Dependencies
27+
28+
---
29+
30+
- Bump rxjs from 6.6.7 to 7.5.6
31+
32+
#### ClickHouse
33+
34+
---
35+
36+
- Support `MaterializedPostgreSQL` database engine
37+
38+
#### Trino & Presto
39+
40+
---
41+
42+
- Support the currently stopped running process [issues-158](https://github.com/EdurtIO/dbm/issues/158)
43+
44+
#### MySQL
45+
46+
---
47+
48+
- Support the currently stopped running process [issues-180](https://github.com/EdurtIO/dbm/issues/180)
49+
50+
#### PostgreSQL
51+
52+
---
53+
54+
- Support metadata management to create database, filter database
55+
- Support metadata management to create table
56+
- Support metadata management to delete database
57+
58+
#### Apache Druid
59+
60+
---
61+
62+
- Support Druid (query and data source management)
63+
64+
---
65+
66+
- @qianmoQ

docs/material/overrides/home.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,17 @@ <h1 class="font-center">Supported Databases</h1>
125125
PostgreSQL is a powerful, open source object-relational database system that uses and extends the SQL language combined with many features that safely store and scale the most complicated data workloads.
126126
</div>
127127
</li>
128+
<li>
129+
<div class="font-center">
130+
<span class="twemoji">
131+
<img src="/assets/integrate/Druid.svg" width="30" height="100" />
132+
</span>
133+
<strong class="font-center">Apache Druid</strong>
134+
</div>
135+
<div class="top-margin">
136+
Druid is a high performance real-time analytics database. Druid's main value add is to reduce time to insight and action.
137+
</div>
138+
</li>
128139
</ul>
129140
</div>
130141
</div>

docs/mkdocs.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ theme:
2525
- content.code.annotate
2626
- content.tabs.link
2727
# - header.autohide
28-
# - navigation.expand
28+
- navigation.expand
2929
- navigation.indexes
3030
# - navigation.instant
3131
- navigation.sections
@@ -132,6 +132,7 @@ plugins:
132132
Datasource_Presto_Trino: Presto & Trino (Experimental)
133133
Datasource_ClickHouse: ClickHouse
134134
Datasource_PostgreSQL: PostgreSQL (Experimental)
135+
Datasource_Druid: Druid (Experimental)
135136
zh:
136137
Home: 主页
137138
Documentation: 文档
@@ -154,6 +155,7 @@ plugins:
154155
Datasource_Presto_Trino: Presto & Trino (Experimental)
155156
Datasource_ClickHouse: ClickHouse
156157
Datasource_PostgreSQL: PostgreSQL (Experimental)
158+
Datasource_Druid: Druid (Experimental)
157159
- redirects:
158160
redirect_maps:
159161
release-latest.md: release/1.20.0-20220706.md
@@ -172,13 +174,15 @@ nav:
172174
- Datasource_Presto_Trino: reference/management/datasource/presto_trino.md
173175
- Datasource_MySQL: reference/management/datasource/mysql.md
174176
- Datasource_PostgreSQL: reference/management/datasource/postgresql.md
177+
- Datasource_Druid: reference/management/datasource/druid.md
175178
- Monitor:
176179
- Processor: reference/monitor/monitor-processor.md
177180
- Connection: reference/monitor/monitor_connection.md
178181
- Mutations: reference/monitor/monitor_mutations.md
179182
- Query: reference/monitor/monitor_query.md
180183
- Release Note:
181-
- 1.20.0 (latest): release/1.20.0-20220706.md
184+
- 1.21.0 (latest): release/1.21.0-20220725.md
185+
- 1.20.0: release/1.20.0-20220706.md
182186
- 1.19.0: release/1.19.0-20220623.md
183187
- 1.18.0: release/1.18.0-20220610.md
184188
- 1.17.0: release/1.17.0-20220529.md

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# IN THE SOFTWARE.
2020

2121
# Direct dependencies
22-
mkdocs>=1.2.2
22+
mkdocs>=1.3.0
2323
Pygments>=2.4
2424
markdown>=3.2
2525
pymdown-extensions>=7.0

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dbm",
3-
"version": "1.20.0",
3+
"version": "1.21.0",
44
"author": "qianmoQ <shicheng@ttxit.com>",
55
"description": "DataBase GUI",
66
"github": "https://github.com/EdurtIO/dbm.git",
@@ -58,17 +58,19 @@
5858
"codemirror": "^5.64.0",
5959
"conventional-changelog-cli": "^2.1.1",
6060
"css-loader": "^6.7.1",
61-
"dexie": "^3.2.1",
61+
"dexie": "3.2.2",
6262
"electron-ssh2": "^0.1.2",
6363
"electron-updater": "^4.6.1",
6464
"export-to-csv": "^0.2.1",
6565
"font-awesome": "^4.7.0",
6666
"highcharts": "^9.3.2",
6767
"jsstore": "^4.3.8",
6868
"lodash": "^4.17.21",
69-
"moment": "^2.29.2",
69+
"moment": "2.29.4",
70+
"monaco-editor": "^0.33.0",
7071
"mysql": "^2.18.1",
7172
"ng-zorro-antd": "13.3.1",
73+
"ngx-ace-wrapper": "^12.0.0",
7274
"ngx-clipboard": "^14.0.2",
7375
"ngx-easy-table": "^15.2.0",
7476
"ngx-ellipsis": "^3.1.6",
@@ -78,7 +80,7 @@
7880
"pg": "^8.7.3",
7981
"presto-stream-client": "^1.0.15",
8082
"promise-timeout": "^1.3.0",
81-
"rxjs": "~6.6.0",
83+
"rxjs": "^7.5.6",
8284
"sass-loader": "^12.3.0",
8385
"sql-formatter": "^4.0.2",
8486
"ts-md5": "^1.2.10",

src/renderer/app/layout/header/header.component.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
</a>
66
</div>
77
<ul nz-menu nzMode="horizontal">
8+
<li nz-submenu [nzTitle]="betaQueryTitle"></li>
89
<li nz-submenu [nzTitle]="queryMenuItemTitle">
910
<ul>
1011
<li nz-menu-item>
@@ -115,6 +116,13 @@
115116
<ng-template #githubItemTitle>
116117
<i class="fa fa-github"></i>&nbsp;{{'common.github'|translate}}
117118
</ng-template>
119+
<ng-template #betaQueryTitle>
120+
<nz-ribbon nzColor="#f50" [nzText]="'beta'">
121+
<a [routerLink]="['/query/beta']" class="dropdown-item">
122+
<i nz-icon nzType="console-sql" nzTheme="outline"></i> {{'common.query'|translate}}
123+
</a>
124+
</nz-ribbon>
125+
</ng-template>
118126
</nz-header>
119127
<nz-modal [(nzVisible)]="dialog.update" [nzTitle]="modalTitle" [nzContent]="modalContent" [nzFooter]="modalFooter"
120128
(nzOnCancel)="handlerUpdate(false)" [nzMaskClosable]="false" [nzClosable]="false" nzWidth="80%">

src/renderer/app/layout/layout.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<router-outlet></router-outlet>
1919
</div>
2020
</nz-content>
21-
<nz-footer>Design ©2021 Implement By EdurtIO</nz-footer>
21+
<!-- <nz-footer>Design ©2021 Implement By EdurtIO</nz-footer>-->
2222
</nz-layout>
2323
<nz-modal *ngIf="visible" [(nzVisible)]="visible" nzTitle="{{'common.migrte'|translate}}"
2424
nzWidth="70%" (nzOnCancel)="handlerMigrateShow(false)">

src/renderer/app/layout/layout.component.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,13 @@ import { NzMessageService } from 'ng-zorro-antd/message';
2323
}
2424
2525
nz-content {
26-
padding: 0 10px;
26+
padding: 0 10px 10px 10px;
2727
}
2828
2929
nz-footer {
3030
text-align: center;
3131
}
3232
33-
.inner-content {
34-
padding: 24px;
35-
min-height: 280px;
36-
}
37-
3833
.ant-layout {
3934
background-color: #ffffff;
4035
}

src/renderer/app/layout/layout.routing.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ const LAYOUT_ROUTES: Routes = [
1313
path: 'home',
1414
loadChildren: () => import('../pages/home/home.module').then(m => m.HomeModule)
1515
},
16+
{
17+
path: 'query/beta',
18+
loadChildren: () => import('../pages/query/beta/query.beta.module').then(m => m.QueryBetaModule)
19+
},
1620
{
1721
path: 'query',
1822
children: [

src/renderer/app/pages/management/datasource/datasource.module.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import { DatasourceDeleteComponent } from "@renderer/components/datasource/delet
2626
import {
2727
DatasourcePostgresqlComponent
2828
} from "@renderer/components/datasource/postgresql/datasource.postgresql.component";
29+
import { DatasourceDruidComponent } from "@renderer/components/datasource/druid/datasource.druid.component";
2930

3031
const DATASOURCE_ROUTES: Routes = [
3132
{path: '', component: DatasourceComponent}
@@ -51,7 +52,8 @@ const DATASOURCE_ROUTES: Routes = [
5152
DatasourceTrinoComponent,
5253
DatasourceMysqlComponent,
5354
DatasourceDeleteComponent,
54-
DatasourcePostgresqlComponent
55+
DatasourcePostgresqlComponent,
56+
DatasourceDruidComponent
5557
],
5658
providers: [
5759
DatasourceService,

src/renderer/app/pages/management/metadata/metadata.component.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
[nzTreeTemplate]="nzTreeTemplate">
66
</nz-tree>
77
<ng-template #nzTreeTemplate let-node let-origin="origin">
8-
<span (contextmenu)="handlerContextMenu($event, menu, origin)">
9-
<i class="fa fa-{{origin.type}}"></i>&nbsp;{{origin.title}}
10-
<em *ngIf="origin?.children" class="f50">({{origin?.children.length}})</em>
11-
</span>
8+
<i (contextmenu)="handlerContextMenu($event, menu, origin)"
9+
class="fa fa-{{origin.type}}">&nbsp;{{origin.title}}&nbsp;<em *ngIf="origin?.children"
10+
class="f50">({{origin?.children.length}})</em></i>
1211
</ng-template>
1312
<nz-dropdown-menu #menu="nzDropdownMenu">
1413
<ul nz-menu>

src/renderer/app/pages/management/metadata/metadata.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,12 @@ export class MetadataComponent extends BaseComponent implements OnInit {
5656
configModel.title = k.alias;
5757
configModel.type = TypeEnum.disk;
5858
configModel.disabled = k.status ? false : true;
59-
if (k.type === DatabaseEnum.presto || k.type === DatabaseEnum.trino || k.type === DatabaseEnum.postgresql) {
59+
if (k.type === DatabaseEnum.presto || k.type === DatabaseEnum.trino || k.type === DatabaseEnum.druid) {
6060
configModel.isLeaf = true;
6161
}
62+
if (k.type === DatabaseEnum.druid) {
63+
configModel.disabled = true;
64+
}
6265
if (configModel.disabled) {
6366
configModel.isLeaf = true;
6467
}

src/renderer/app/pages/monitor/connection/monitor.connection.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class MonitorConnectionComponent extends BaseComponent implements OnDestr
3030
super();
3131
this.datasourceService.getAll().then(response => {
3232
this.dataSources = response.map(item => {
33-
if (item.type === DatabaseEnum.postgresql) {
33+
if (item.type === DatabaseEnum.postgresql || item.type === DatabaseEnum.druid) {
3434
item.status = false;
3535
}
3636
return item;

0 commit comments

Comments
 (0)