Skip to content
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

feat: preliminary adaptation of gaussdb #12061

Closed
wants to merge 14 commits into from
Prev Previous commit
Next Next commit
chore: update
  • Loading branch information
ecmadao committed May 21, 2024
commit 09af09e00ad3e44475090ec454167a2dd9f1b70d
334 changes: 69 additions & 265 deletions frontend/src/types/proto/google/protobuf/descriptor.ts

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions frontend/src/types/proto/store/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export enum Engine {
DORIS = "DORIS",
HIVE = "HIVE",
ELASTICSEARCH = "ELASTICSEARCH",
GAUSSDB = "GAUSSDB",
UNRECOGNIZED = "UNRECOGNIZED",
}

Expand Down Expand Up @@ -98,6 +99,9 @@ export function engineFromJSON(object: any): Engine {
case 21:
case "ELASTICSEARCH":
return Engine.ELASTICSEARCH;
case 22:
case "GAUSSDB":
return Engine.GAUSSDB;
case -1:
case "UNRECOGNIZED":
default:
Expand Down Expand Up @@ -151,6 +155,8 @@ export function engineToJSON(object: Engine): string {
return "HIVE";
case Engine.ELASTICSEARCH:
return "ELASTICSEARCH";
case Engine.GAUSSDB:
return "GAUSSDB";
case Engine.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
Expand Down Expand Up @@ -203,6 +209,8 @@ export function engineToNumber(object: Engine): number {
return 20;
case Engine.ELASTICSEARCH:
return 21;
case Engine.GAUSSDB:
return 22;
case Engine.UNRECOGNIZED:
default:
return -1;
Expand Down
8 changes: 8 additions & 0 deletions frontend/src/types/proto/v1/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export enum Engine {
DORIS = "DORIS",
HIVE = "HIVE",
ELASTICSEARCH = "ELASTICSEARCH",
GAUSSDB = "GAUSSDB",
UNRECOGNIZED = "UNRECOGNIZED",
}

Expand Down Expand Up @@ -149,6 +150,9 @@ export function engineFromJSON(object: any): Engine {
case 21:
case "ELASTICSEARCH":
return Engine.ELASTICSEARCH;
case 22:
case "GAUSSDB":
return Engine.GAUSSDB;
case -1:
case "UNRECOGNIZED":
default:
Expand Down Expand Up @@ -202,6 +206,8 @@ export function engineToJSON(object: Engine): string {
return "HIVE";
case Engine.ELASTICSEARCH:
return "ELASTICSEARCH";
case Engine.GAUSSDB:
return "GAUSSDB";
case Engine.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
Expand Down Expand Up @@ -254,6 +260,8 @@ export function engineToNumber(object: Engine): number {
return 20;
case Engine.ELASTICSEARCH:
return 21;
case Engine.GAUSSDB:
return 22;
case Engine.UNRECOGNIZED:
default:
return -1;
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ require (
cloud.google.com/go/secretmanager v1.12.0
cloud.google.com/go/spanner v1.61.0
gitee.com/chunanyong/dm v1.8.14
gitee.com/opengauss/openGauss-connector-go-pq v1.0.4
github.com/ClickHouse/clickhouse-go/v2 v2.23.2
github.com/alexmullins/zip v0.0.0-20180717182244-4affb64b04d0
github.com/antlr4-go/antlr/v4 v4.13.0
Expand Down Expand Up @@ -95,7 +96,6 @@ require (
cloud.google.com/go/auth v0.3.0 // indirect
cloud.google.com/go/auth/oauth2adapt v0.2.2 // indirect
filippo.io/edwards25519 v1.1.0 // indirect
gitee.com/opengauss/openGauss-connector-go-pq v1.0.4 // indirect
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
github.com/99designs/keyring v1.2.2 // indirect
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.10.0 // indirect
Expand Down
6 changes: 6 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,8 @@ gioui.org v0.0.0-20210308172011-57750fc8a0a6/go.mod h1:RSH6KIUZ0p2xy5zHDxgAM4zum
git.sr.ht/~sbinet/gg v0.3.1/go.mod h1:KGYtlADtqsqANL9ueOFkWymvzUvLMQllU5Ixo+8v3pc=
gitee.com/chunanyong/dm v1.8.14 h1:1S9+aD0fY/HXkcm8dKh2HjYsDlcdXNG+4IOX9JtrSjA=
gitee.com/chunanyong/dm v1.8.14/go.mod h1:EPRJnuPFgbyOFgJ0TRYCTGzhq+ZT4wdyaj/GW/LLcNg=
gitee.com/opengauss/openGauss-connector-go-pq v1.0.4 h1:npfLM9/QpkmdK+XY9X2pcC2EX5gosyn/6dRDRd2sEJs=
gitee.com/opengauss/openGauss-connector-go-pq v1.0.4/go.mod h1:2UEp+ug6ls6C0pLfZgBn7VBzBntFUzxJuy+6FlQ7qyI=
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 h1:/vQbFIOMbk2FiG/kXiLl8BRyzTWDw7gX/Hz7Dd5eDMs=
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4/go.mod h1:hN7oaIRCjzsZ2dE+yG5k+rsdt3qcwykqK6HVGcKwsw4=
github.com/99designs/keyring v1.2.2 h1:pZd3neh/EmUzWONb35LxQfvuY7kiSXAq3HQd97+XBn0=
Expand Down Expand Up @@ -1813,6 +1815,8 @@ github.com/tikv/client-go/v2 v2.0.8-0.20231116051730-1c2351c28173 h1:lmJzX0kqrV7
github.com/tikv/client-go/v2 v2.0.8-0.20231116051730-1c2351c28173/go.mod h1:BOGTSZtbMHEnGC4HOpbONdnTQF+E9nb2Io7c3P9sb7g=
github.com/tikv/pd/client v0.0.0-20231127075044-9f4803d8bd05 h1:87NPUfzaVrO5MTBwVCPQ/FlJGpFnHi6WFYHDYD3n3Zc=
github.com/tikv/pd/client v0.0.0-20231127075044-9f4803d8bd05/go.mod h1:cd6zBqRM9aogxf26K8NnFRPVtq9BnRE59tKEpX8IaWQ=
github.com/tjfoc/gmsm v1.4.1 h1:aMe1GlZb+0bLjn+cKTPEvvn9oUEBlJitaZiiBwsbgho=
github.com/tjfoc/gmsm v1.4.1/go.mod h1:j4INPkHWMrhJb38G+J6W4Tw0AbuN8Thu3PbdVYhVcTE=
github.com/tklauser/go-sysconf v0.3.9/go.mod h1:11DU/5sG7UexIrp/O6g35hrWzu0JxlwQ3LSFUzyeuhs=
github.com/tklauser/go-sysconf v0.3.12 h1:0QaGUFOdQaIVdPgfITYzaTegZvdCjmYO52cSFAEVmqU=
github.com/tklauser/go-sysconf v0.3.12/go.mod h1:Ho14jnntGE1fpdOqQEEaiKRpvIavV0hSfmBq8nJbHYI=
Expand Down Expand Up @@ -1973,6 +1977,7 @@ golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8U
golang.org/x/crypto v0.0.0-20190911031432-227b76d455e7/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20201012173705-84dcc777aaee/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20201203163018-be400aefbc4c/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I=
golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4=
golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
Expand Down Expand Up @@ -2091,6 +2096,7 @@ golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/
golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
Expand Down
1 change: 1 addition & 0 deletions proto/gen/grpc-doc/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12738,6 +12738,7 @@ components:
- DORIS
- HIVE
- ELASTICSEARCH
- GAUSSDB
type: string
description: The SQL dialect.
format: enum
Expand Down
44 changes: 24 additions & 20 deletions proto/generated-go/store/common.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 23 additions & 19 deletions proto/generated-go/v1/common.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.