Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: update common.proto with trino (#15654)

Vincent Huang14f9df394bc1
diff --git a/backend/plugin/db/trino/trino.go b/backend/plugin/db/trino/trino.go
new file mode 100644
index 0000000000..79272be8b7
--- /dev/null
+++ b/backend/plugin/db/trino/trino.go
@@ -0,0 +1 @@
+package trino
diff --git a/frontend/src/types/proto/store/common.ts b/frontend/src/types/proto/store/common.ts
index 2d18159c89..72dfd56804 100644
--- a/frontend/src/types/proto/store/common.ts
+++ b/frontend/src/types/proto/store/common.ts
@@ -38,6 +38,7 @@ export enum Engine {
DATABRICKS = "DATABRICKS",
COCKROACHDB = "COCKROACHDB",
COSMOSDB = "COSMOSDB",
+ TRINO = "TRINO",
UNRECOGNIZED = "UNRECOGNIZED",
}
@@ -124,6 +125,9 @@ export function engineFromJSON(object: any): Engine {
case 26:
case "COSMOSDB":
return Engine.COSMOSDB;
+ case 27:
+ case "TRINO":
+ return Engine.TRINO;
case -1:
case "UNRECOGNIZED":
default:
@@ -187,6 +191,8 @@ export function engineToJSON(object: Engine): string {
return "COCKROACHDB";
case Engine.COSMOSDB:
return "COSMOSDB";
+ case Engine.TRINO:
+ return "TRINO";
case Engine.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
@@ -249,6 +255,8 @@ export function engineToNumber(object: Engine): number {
return 25;
case Engine.COSMOSDB:
return 26;
+ case Engine.TRINO:
+ return 27;
case Engine.UNRECOGNIZED:
default:
return -1;
diff --git a/frontend/src/types/proto/v1/common.ts b/frontend/src/types/proto/v1/common.ts
index 44ba55a1cf..0211d738c7 100644
--- a/frontend/src/types/proto/v1/common.ts
+++ b/frontend/src/types/proto/v1/common.ts
@@ -91,6 +91,7 @@ export enum Engine {
DATABRICKS = "DATABRICKS",
COCKROACHDB = "COCKROACHDB",
COSMOSDB = "COSMOSDB",
+ TRINO = "TRINO",
UNRECOGNIZED = "UNRECOGNIZED",
}
@@ -177,6 +178,9 @@ export function engineFromJSON(object: any): Engine {
case 26:
case "COSMOSDB":
return Engine.COSMOSDB;
+ case 27:
+ case "TRINO":
+ return Engine.TRINO;
case -1:
case "UNRECOGNIZED":
default:
@@ -240,6 +244,8 @@ export function engineToJSON(object: Engine): string {
return "COCKROACHDB";
case Engine.COSMOSDB:
return "COSMOSDB";
+ case Engine.TRINO:
+ return "TRINO";
case Engine.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
@@ -302,6 +308,8 @@ export function engineToNumber(object: Engine): number {
return 25;
case Engine.COSMOSDB:
return 26;
+ case Engine.TRINO:
+ return 27;
case Engine.UNRECOGNIZED:
default:
return -1;
diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yaml
index 00affb9787..1d87247f7f 100644
--- a/proto/gen/grpc-doc/openapi.yaml
+++ b/proto/gen/grpc-doc/openapi.yaml
@@ -9350,6 +9350,7 @@ components:
- DATABRICKS
- COCKROACHDB
- COSMOSDB
+ - TRINO
type: string
description: The database engine of the schema.
format: enum
@@ -9902,6 +9903,7 @@ components:
- DATABRICKS
- COCKROACHDB
- COSMOSDB
+ - TRINO
type: string
format: enum
activation:
@@ -9979,6 +9981,7 @@ components:
- DATABRICKS
- COCKROACHDB
- COSMOSDB
+ - TRINO
type: string
format: enum
engineVersion:
@@ -11370,6 +11373,7 @@ components:
- DATABRICKS
- COCKROACHDB
- COSMOSDB
+ - TRINO
type: string
format: enum
currentSchema:
@@ -12322,6 +12326,7 @@ components:
- DATABRICKS
- COCKROACHDB
- COSMOSDB
+ - TRINO
type: string
format: enum
comment:
@@ -12390,6 +12395,7 @@ components:
- DATABRICKS
- COCKROACHDB
- COSMOSDB
+ - TRINO
type: string
format: enum
enabled:
@@ -12432,6 +12438,7 @@ components:
- DATABRICKS
- COCKROACHDB
- COSMOSDB
+ - TRINO
type: string
format: enum
category:
@@ -12474,6 +12481,7 @@ components:
- DATABRICKS
- COCKROACHDB
- COSMOSDB
+ - TRINO
type: string
format: enum
category:
@@ -12954,6 +12962,7 @@ components:
- DATABRICKS
- COCKROACHDB
- COSMOSDB
+ - TRINO
type: string
description: The SQL dialect.
format: enum
diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.md
index 5a927128f9..19fa7b496a 100644
--- a/proto/gen/grpc-doc/store/README.md
+++ b/proto/gen/grpc-doc/store/README.md
@@ -422,6 +422,7 @@ Used internally for obfuscating the page token.
| DATABRICKS | 24 | |
| COCKROACHDB | 25 | |
| COSMOSDB | 26 | |
+| TRINO | 27 | |
diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.html
index 812f07df75..4217f9e6d7 100644
--- a/proto/gen/grpc-doc/store/index.html
+++ b/proto/gen/grpc-doc/store/index.html
@@ -1785,6 +1785,12 @@
<td><p></p></td>
</tr>
+ <tr>
+ <td>TRINO</td>
+ <td>27</td>
+ <td><p></p></td>
+ </tr>
+
</tbody>
</table>
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index 7849d54d5e..6e729733f2 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -833,6 +833,7 @@
| DATABRICKS | 24 | |
| COCKROACHDB | 25 | |
| COSMOSDB | 26 | |
+| TRINO | 27 | |
diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.html
index c06f30c041..97a6d1dde5 100644
--- a/proto/gen/grpc-doc/v1/index.html
+++ b/proto/gen/grpc-doc/v1/index.html
@@ -3227,6 +3227,12 @@
<td><p></p></td>
</tr>
+ <tr>
+ <td>TRINO</td>
+ <td>27</td>
+ <td><p></p></td>
+ </tr>
+
</tbody>
</table>
diff --git a/proto/generated-go/store/common.pb.go b/proto/generated-go/store/common.pb.go
index 92fc108d59..d0ac74d28d 100644
--- a/proto/generated-go/store/common.pb.go
+++ b/proto/generated-go/store/common.pb.go
@@ -51,6 +51,7 @@ const (
Engine_DATABRICKS Engine = 24
Engine_COCKROACHDB Engine = 25
Engine_COSMOSDB Engine = 26
+ Engine_TRINO Engine = 27
)
// Enum value maps for Engine.
@@ -83,6 +84,7 @@ var (
24: "DATABRICKS",
25: "COCKROACHDB",
26: "COSMOSDB",
+ 27: "TRINO",
}
Engine_value = map[string]int32{
"ENGINE_UNSPECIFIED": 0,
@@ -112,6 +114,7 @@ var (
"DATABRICKS": 24,
"COCKROACHDB": 25,
"COSMOSDB": 26,
+ "TRINO": 27,
}
)
@@ -474,7 +477,7 @@ const file_store_common_proto_rawDesc = "" +
"\x06column\x18\x02 \x01(\x05R\x06column\"/\n" +
"\x05Range\x12\x14\n" +
"\x05start\x18\x01 \x01(\x05R\x05start\x12\x10\n" +
- "\x03end\x18\x02 \x01(\x05R\x03end*\x84\x03\n" +
+ "\x03end\x18\x02 \x01(\x05R\x03end*\x8f\x03\n" +
"\x06Engine\x12\x16\n" +
"\x12ENGINE_UNSPECIFIED\x10\x00\x12\x0e\n" +
"\n" +
@@ -508,7 +511,8 @@ const file_store_common_proto_rawDesc = "" +
"\n" +
"DATABRICKS\x10\x18\x12\x0f\n" +
"\vCOCKROACHDB\x10\x19\x12\f\n" +
- "\bCOSMOSDB\x10\x1a*\\\n" +
+ "\bCOSMOSDB\x10\x1a\x12\t\n" +
+ "\x05TRINO\x10\x1b*\\\n" +
"\aVCSType\x12\x18\n" +
"\x14VCS_TYPE_UNSPECIFIED\x10\x00\x12\n" +
"\n" +
diff --git a/proto/generated-go/v1/common.pb.go b/proto/generated-go/v1/common.pb.go
index 9e929a2d39..2dfd5ade0f 100644
--- a/proto/generated-go/v1/common.pb.go
+++ b/proto/generated-go/v1/common.pb.go
@@ -100,6 +100,7 @@ const (
Engine_DATABRICKS Engine = 24
Engine_COCKROACHDB Engine = 25
Engine_COSMOSDB Engine = 26
+ Engine_TRINO Engine = 27
)
// Enum value maps for Engine.
@@ -132,6 +133,7 @@ var (
24: "DATABRICKS",
25: "COCKROACHDB",
26: "COSMOSDB",
+ 27: "TRINO",
}
Engine_value = map[string]int32{
"ENGINE_UNSPECIFIED": 0,
@@ -161,6 +163,7 @@ var (
"DATABRICKS": 24,
"COCKROACHDB": 25,
"COSMOSDB": 26,
+ "TRINO": 27,
}
)
@@ -420,7 +423,7 @@ const file_v1_common_proto_rawDesc = "" +
"\x11STATE_UNSPECIFIED\x10\x00\x12\n" +
"\n" +
"\x06ACTIVE\x10\x01\x12\v\n" +
- "\aDELETED\x10\x02*\x84\x03\n" +
+ "\aDELETED\x10\x02*\x8f\x03\n" +
"\x06Engine\x12\x16\n" +
"\x12ENGINE_UNSPECIFIED\x10\x00\x12\x0e\n" +
"\n" +
@@ -454,7 +457,8 @@ const file_v1_common_proto_rawDesc = "" +
"\n" +
"DATABRICKS\x10\x18\x12\x0f\n" +
"\vCOCKROACHDB\x10\x19\x12\f\n" +
- "\bCOSMOSDB\x10\x1a*\\\n" +
+ "\bCOSMOSDB\x10\x1a\x12\t\n" +
+ "\x05TRINO\x10\x1b*\\\n" +
"\aVCSType\x12\x18\n" +
"\x14VCS_TYPE_UNSPECIFIED\x10\x00\x12\n" +
"\n" +
diff --git a/proto/store/common.proto b/proto/store/common.proto
index 782d14cacb..e1e2e345c0 100644
--- a/proto/store/common.proto
+++ b/proto/store/common.proto
@@ -38,6 +38,7 @@ enum Engine {
DATABRICKS = 24;
COCKROACHDB = 25;
COSMOSDB = 26;
+ TRINO = 27;
}
enum VCSType {
diff --git a/proto/v1/common.proto b/proto/v1/common.proto
index 5e5957d131..82f4b0b983 100644
--- a/proto/v1/common.proto
+++ b/proto/v1/common.proto
@@ -38,6 +38,7 @@ enum Engine {
DATABRICKS = 24;
COCKROACHDB = 25;
COSMOSDB = 26;
+ TRINO = 27;
}
enum VCSType {