Skip to content

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

fix: spanner proto def (#4965)

p0ny24cb91d61f59
diff --git a/backend/api/v1/common.go b/backend/api/v1/common.go
index 3313fc827e..b6a4169fe4 100644
--- a/backend/api/v1/common.go
+++ b/backend/api/v1/common.go
@@ -272,6 +272,8 @@ func convertToEngine(engine db.Type) v1pb.Engine {
return v1pb.Engine_REDIS
case db.Oracle:
return v1pb.Engine_ORACLE
+ case db.Spanner:
+ return v1pb.Engine_SPANNER
}
return v1pb.Engine_ENGINE_UNSPECIFIED
}
@@ -296,6 +298,8 @@ func convertEngine(engine v1pb.Engine) db.Type {
return db.Redis
case v1pb.Engine_ORACLE:
return db.Oracle
+ case v1pb.Engine_SPANNER:
+ return db.Spanner
}
return db.UnknownType
}
diff --git a/frontend/src/types/proto/v1/common.ts b/frontend/src/types/proto/v1/common.ts
index e95d93189d..e67ef792e2 100644
--- a/frontend/src/types/proto/v1/common.ts
+++ b/frontend/src/types/proto/v1/common.ts
@@ -52,6 +52,7 @@ export enum Engine {
MONGODB = 7,
REDIS = 8,
ORACLE = 9,
+ SPANNER = 10,
UNRECOGNIZED = -1,
}
@@ -87,6 +88,9 @@ export function engineFromJSON(object: any): Engine {
case 9:
case "ORACLE":
return Engine.ORACLE;
+ case 10:
+ case "SPANNER":
+ return Engine.SPANNER;
case -1:
case "UNRECOGNIZED":
default:
@@ -116,6 +120,8 @@ export function engineToJSON(object: Engine): string {
return "REDIS";
case Engine.ORACLE:
return "ORACLE";
+ case Engine.SPANNER:
+ return "SPANNER";
case Engine.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index a62c93bc07..7ee17f429e 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -329,6 +329,7 @@ Actuator concept is similar to the Spring Boot Actuator.
| MONGODB | 7 | |
| REDIS | 8 | |
| ORACLE | 9 | |
+| SPANNER | 10 | |
diff --git a/proto/generated-go/v1/common.pb.go b/proto/generated-go/v1/common.pb.go
index daa9f36455..f2075863ec 100644
--- a/proto/generated-go/v1/common.pb.go
+++ b/proto/generated-go/v1/common.pb.go
@@ -82,21 +82,23 @@ const (
Engine_MONGODB Engine = 7
Engine_REDIS Engine = 8
Engine_ORACLE Engine = 9
+ Engine_SPANNER Engine = 10
)
// Enum value maps for Engine.
var (
Engine_name = map[int32]string{
- 0: "ENGINE_UNSPECIFIED",
- 1: "CLICKHOUSE",
- 2: "MYSQL",
- 3: "POSTGRES",
- 4: "SNOWFLAKE",
- 5: "SQLITE",
- 6: "TIDB",
- 7: "MONGODB",
- 8: "REDIS",
- 9: "ORACLE",
+ 0: "ENGINE_UNSPECIFIED",
+ 1: "CLICKHOUSE",
+ 2: "MYSQL",
+ 3: "POSTGRES",
+ 4: "SNOWFLAKE",
+ 5: "SQLITE",
+ 6: "TIDB",
+ 7: "MONGODB",
+ 8: "REDIS",
+ 9: "ORACLE",
+ 10: "SPANNER",
}
Engine_value = map[string]int32{
"ENGINE_UNSPECIFIED": 0,
@@ -109,6 +111,7 @@ var (
"MONGODB": 7,
"REDIS": 8,
"ORACLE": 9,
+ "SPANNER": 10,
}
)
@@ -147,7 +150,7 @@ var file_v1_common_proto_rawDesc = []byte{
0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45,
0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a,
0x0a, 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x45,
- 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x02, 0x2a, 0x92, 0x01, 0x0a, 0x06, 0x45, 0x6e, 0x67, 0x69,
+ 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x02, 0x2a, 0x9f, 0x01, 0x0a, 0x06, 0x45, 0x6e, 0x67, 0x69,
0x6e, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x45, 0x4e, 0x47, 0x49, 0x4e, 0x45, 0x5f, 0x55, 0x4e, 0x53,
0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x43, 0x4c,
0x49, 0x43, 0x4b, 0x48, 0x4f, 0x55, 0x53, 0x45, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x4d, 0x59,
@@ -156,9 +159,10 @@ var file_v1_common_proto_rawDesc = []byte{
0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x51, 0x4c, 0x49, 0x54, 0x45, 0x10, 0x05, 0x12, 0x08,
0x0a, 0x04, 0x54, 0x49, 0x44, 0x42, 0x10, 0x06, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x4f, 0x4e, 0x47,
0x4f, 0x44, 0x42, 0x10, 0x07, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x45, 0x44, 0x49, 0x53, 0x10, 0x08,
- 0x12, 0x0a, 0x0a, 0x06, 0x4f, 0x52, 0x41, 0x43, 0x4c, 0x45, 0x10, 0x09, 0x42, 0x11, 0x5a, 0x0f,
- 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62,
- 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x12, 0x0a, 0x0a, 0x06, 0x4f, 0x52, 0x41, 0x43, 0x4c, 0x45, 0x10, 0x09, 0x12, 0x0b, 0x0a, 0x07,
+ 0x53, 0x50, 0x41, 0x4e, 0x4e, 0x45, 0x52, 0x10, 0x0a, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e,
+ 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x33,
}
var (
diff --git a/proto/v1/common.proto b/proto/v1/common.proto
index 81f9594906..bb8228a11b 100644
--- a/proto/v1/common.proto
+++ b/proto/v1/common.proto
@@ -21,4 +21,5 @@ enum Engine {
MONGODB = 7;
REDIS = 8;
ORACLE = 9;
+ SPANNER = 10;
}