Skip to content

Commit f622bdb

Browse files
authored
Merge pull request #1 from running-elephant/master
合并
2 parents b53eafa + f52621a commit f622bdb

File tree

1,020 files changed

+103445
-18001
lines changed

Some content is hidden

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

1,020 files changed

+103445
-18001
lines changed

.github/workflows/dev-ut-stage.js.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Node.js CI
5+
6+
on:
7+
push:
8+
branches: [ "dev" ]
9+
pull_request:
10+
branches: [ "dev" ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
matrix:
19+
node-version: [14.x, 16.x]
20+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
- name: Use Node.js ${{ matrix.node-version }}
25+
uses: actions/setup-node@v3
26+
with:
27+
node-version: ${{ matrix.node-version }}
28+
cache: 'npm'
29+
cache-dependency-path: '**/package-lock.json'
30+
- run: npm ci
31+
working-directory: ./frontend
32+
- run: npm run build --if-present
33+
working-directory: ./frontend
34+
- run: npm run test:ci
35+
working-directory: ./frontend
36+
- run: npm run lint:css
37+
working-directory: ./frontend
38+
- run: npm run lint:style
39+
working-directory: ./frontend

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@
55

66
/static
77

8+
/server/src/main/resources/javascript/**
9+
**/target/**
10+
811
*.iml
912
*.zip

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ COPY static /datart/static
88
ENV TZ=Asia/Shanghai
99
EXPOSE 8080
1010
WORKDIR /datart
11-
ENTRYPOINT java -cp "lib/*" datart.DatartServerApplication
11+
ENTRYPOINT java -server -Xms2G -Xmx2G -Dspring.profiles.active=config -Dfile.encoding=UTF-8 -cp "lib/*" datart.DatartServerApplication

bin/datart.sql

Lines changed: 0 additions & 666 deletions
This file was deleted.

bin/h2/datart.demo.mv.db

-24 KB
Binary file not shown.

bin/migrations/migration.1.0.0-alpha.3.sql

Lines changed: 0 additions & 5 deletions
This file was deleted.

bin/migrations/migration.1.0.0-beta.0.sql

Lines changed: 0 additions & 2 deletions
This file was deleted.

bin/migrations/source.1.0.0-alpha.2.sql

Lines changed: 0 additions & 2 deletions
This file was deleted.

config/datart.conf

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,4 @@ datart.register.expire-hours=
2121
# 邀请邮件有效期/小时, 默认48小时
2222
datart.invite.expire-hours=
2323
# 租户管理模式:platform-平台(默认),team-团队
24-
datart.tenant-management-mode=platform
25-
# 团队模式初始组织拥有者用户名/密码: 仅团队模式且两者都不为空时重置
26-
datart.admin.username=
27-
datart.admin.password=
24+
datart.tenant-management-mode=platform

config/jdbc-driver-ext.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
#EXAPLE:
22
# db-type: "example"
33
# name: "example"
4-
# driver-class: "com.example.jdbc.Driver"
54
# literal-quote: "'"
65
# identifier-quote: "`"
7-
# url-prefix: jdbc:example://
6+
# driver-class: "com.example.jdbc.Driver" # optional
7+
# url-prefix: "jdbc:example://" # optional
8+
# sql-dialect: "datart.data.provider.calcite.dialect.ExampleSqlDialectSupport" # optional
9+
# identifier-end-quote: "`" # optional
10+
# literal-end-quote: "'" # optional
11+
# identifier-escaped-quote: "`" # optional
12+
# adapter-class: 'datart.data.provider.jdbc.adapters.ExampleDataProviderAdapter' # optional
13+
# quote-identifiers: true # optional
14+
# support-sql-limit: true # optional
15+
#
816

917
IMPALA:
1018
db-type: "impala"
@@ -29,3 +37,13 @@ DORIS:
2937
adapter-class: "datart.data.provider.jdbc.adapters.DorisDataProviderAdapter"
3038
url-prefix: "jdbc:mysql://"
3139

40+
STARROCKS:
41+
db-type: "starrocks"
42+
name: "starrocks"
43+
driver-class: "com.mysql.cj.jdbc.Driver"
44+
literal-quote: "'"
45+
identifier-quote: "`"
46+
adapter-class: "datart.data.provider.jdbc.adapters.StarRocksDataProviderAdapter"
47+
url-prefix: "jdbc:mysql://"
48+
49+

0 commit comments

Comments
 (0)