Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat: obo skeleton (#8851)
p0ny825bf1e841db
diff --git a/backend/plugin/db/obo/dump.go b/backend/plugin/db/obo/dump.gonew file mode 100644index 0000000000..79aa233d11--- /dev/null+++ b/backend/plugin/db/obo/dump.go@@ -0,0 +1,20 @@+package obo++import (+ "context"+ "io"++ "github.com/pkg/errors"+)++// Dump the database.+// The returned string is the JSON encoded metadata for the logical dump.+// For MySQL, the payload contains the binlog filename and position when the dump is generated.+func (*Driver) Dump(context.Context, io.Writer, bool) (string, error) {+ return "", errors.New("not implemented")+}++// Restore the database from src, which is a full backup.+func (*Driver) Restore(context.Context, io.Reader) error {+ return errors.New("not implemented")+}diff --git a/backend/plugin/db/obo/obo.go b/backend/plugin/db/obo/obo.gonew file mode 100644index 0000000000..f9fc600cce--- /dev/null+++ b/backend/plugin/db/obo/obo.go@@ -0,0 +1,69 @@+// Package obo is for OceanBase Oracle mode+package obo++import (+ "context"+ "database/sql"+ "fmt"++ "github.com/pkg/errors"++ "github.com/bytebase/bytebase/backend/plugin/db"+ storepb "github.com/bytebase/bytebase/proto/generated-go/store"+ v1pb "github.com/bytebase/bytebase/proto/generated-go/v1"++ // Register OceanBase Oracle mode driver.+ _ "github.com/mattn/go-oci8"+)++func init() {+ db.Register(storepb.Engine_OCEANBASE_ORACLE, newDriver)+}++type Driver struct {+ db *sql.DB+}++func newDriver(db.DriverConfig) db.Driver {+ return &Driver{}+}++func (driver *Driver) Open(_ context.Context, _ storepb.Engine, config db.ConnectionConfig, _ db.ConnectionContext) (db.Driver, error) {+ dsn := fmt.Sprintf("%s/%s@%s:%s", config.Username, config.Password, config.Host, config.Port)++ db, err := sql.Open("oci8", dsn)+ if err != nil {+ return nil, errors.Wrapf(err, "failed to open connection")+ }++ driver.db = db+ return driver, nil+}++func (*Driver) Close(context.Context) error {+ return errors.New("not implemented")+}++func (*Driver) Ping(context.Context) error {+ return errors.New("not implemented")+}++func (*Driver) GetType() storepb.Engine {+ return storepb.Engine_OCEANBASE_ORACLE+}++func (*Driver) GetDB() *sql.DB {+ return nil+}++func (*Driver) Execute(context.Context, string, bool, db.ExecuteOptions) (int64, error) {+ return 0, errors.New("not implemented")+}++func (*Driver) QueryConn(context.Context, *sql.Conn, string, *db.QueryContext) ([]*v1pb.QueryResult, error) {+ return nil, errors.New("not implemented")+}++func (*Driver) RunStatement(context.Context, *sql.Conn, string) ([]*v1pb.QueryResult, error) {+ return nil, errors.New("not implemented")+}diff --git a/backend/plugin/db/obo/role.go b/backend/plugin/db/obo/role.gonew file mode 100644index 0000000000..2be3a3b729--- /dev/null+++ b/backend/plugin/db/obo/role.go@@ -0,0 +1,35 @@+package obo++import (+ "context"++ "github.com/pkg/errors"++ "github.com/bytebase/bytebase/backend/plugin/db"+)++// Role+// CreateRole creates the role.+func (*Driver) CreateRole(context.Context, *db.DatabaseRoleUpsertMessage) (*db.DatabaseRoleMessage, error) {+ return nil, errors.New("not implemented")+}++// UpdateRole updates the role.+func (*Driver) UpdateRole(context.Context, string, *db.DatabaseRoleUpsertMessage) (*db.DatabaseRoleMessage, error) {+ return nil, errors.New("not implemented")+}++// FindRole finds the role by name.+func (*Driver) FindRole(context.Context, string) (*db.DatabaseRoleMessage, error) {+ return nil, errors.New("not implemented")+}++// ListRole lists the role.+func (*Driver) ListRole(context.Context) ([]*db.DatabaseRoleMessage, error) {+ return nil, errors.New("not implemented")+}++// DeleteRole deletes the role by name.+func (*Driver) DeleteRole(context.Context, string) error {+ return errors.New("not implemented")+}diff --git a/backend/plugin/db/obo/sync.go b/backend/plugin/db/obo/sync.gonew file mode 100644index 0000000000..1ad27064c1--- /dev/null+++ b/backend/plugin/db/obo/sync.go@@ -0,0 +1,26 @@+package obo++import (+ "context"+ "errors"+ "time"++ "github.com/bytebase/bytebase/backend/plugin/db"+ storepb "github.com/bytebase/bytebase/proto/generated-go/store"+)++func (*Driver) SyncInstance(context.Context) (*db.InstanceMetadata, error) {+ return nil, errors.New("not implemented")+}++func (*Driver) SyncDBSchema(context.Context) (*storepb.DatabaseSchemaMetadata, error) {+ return nil, errors.New("not implemented")+}++func (*Driver) SyncSlowQuery(context.Context, time.Time) (map[string]*storepb.SlowQueryStatistics, error) {+ return nil, errors.New("not implemented")+}++func (*Driver) CheckSlowQueryLogEnabled(context.Context) error {+ return errors.New("not implemented")+}diff --git a/frontend/src/types/proto/store/common.ts b/frontend/src/types/proto/store/common.tsindex aee5966e3b..d3fa33b4b7 100644--- a/frontend/src/types/proto/store/common.ts+++ b/frontend/src/types/proto/store/common.ts@@ -21,6 +21,7 @@ export enum Engine {OCEANBASE = 14,DM = 15,RISINGWAVE = 16,+ OCEANBASE_ORACLE = 17,UNRECOGNIZED = -1,}@@ -77,6 +78,9 @@ export function engineFromJSON(object: any): Engine {case 16:case "RISINGWAVE":return Engine.RISINGWAVE;+ case 17:+ case "OCEANBASE_ORACLE":+ return Engine.OCEANBASE_ORACLE;case -1:case "UNRECOGNIZED":default:@@ -120,6 +124,8 @@ export function engineToJSON(object: Engine): string {return "DM";case Engine.RISINGWAVE:return "RISINGWAVE";+ case Engine.OCEANBASE_ORACLE:+ return "OCEANBASE_ORACLE";case Engine.UNRECOGNIZED:default:return "UNRECOGNIZED";diff --git a/frontend/src/types/proto/v1/common.ts b/frontend/src/types/proto/v1/common.tsindex 2b67875866..f198fbc35c 100644--- a/frontend/src/types/proto/v1/common.ts+++ b/frontend/src/types/proto/v1/common.ts@@ -59,6 +59,7 @@ export enum Engine {OCEANBASE = 14,DM = 15,RISINGWAVE = 16,+ OCEANBASE_ORACLE = 17,UNRECOGNIZED = -1,}@@ -115,6 +116,9 @@ export function engineFromJSON(object: any): Engine {case 16:case "RISINGWAVE":return Engine.RISINGWAVE;+ case 17:+ case "OCEANBASE_ORACLE":+ return Engine.OCEANBASE_ORACLE;case -1:case "UNRECOGNIZED":default:@@ -158,6 +162,8 @@ export function engineToJSON(object: Engine): string {return "DM";case Engine.RISINGWAVE:return "RISINGWAVE";+ case Engine.OCEANBASE_ORACLE:+ return "OCEANBASE_ORACLE";case Engine.UNRECOGNIZED:default:return "UNRECOGNIZED";diff --git a/go.mod b/go.modindex 126a2bceb6..5623f6430b 100644--- a/go.mod+++ b/go.mod@@ -41,6 +41,7 @@ require (github.com/lestrrat-go/jwx/v2 v2.0.12github.com/lib/pq v1.10.9github.com/lor00x/goldap v0.0.0-20180618054307-a546dffdd1a3+ github.com/mattn/go-oci8 v0.1.1github.com/mattn/go-sqlite3 v1.14.17github.com/microsoft/go-mssqldb v1.6.0github.com/nyaruka/phonenumbers v1.1.8@@ -282,3 +283,5 @@ replace github.com/pingcap/tidb => github.com/bytebase/tidb v0.0.0-2023091409431replace github.com/pingcap/tidb/parser => github.com/bytebase/tidb/parser v0.0.0-20230914094316-ec1081216cfbreplace github.com/pganalyze/pg_query_go/v4 => github.com/bytebase/pg_query_go/v4 v4.0.0-20230802100607-2f34e68d96f5++replace github.com/mattn/go-oci8 => github.com/bytebase/go-obo v0.0.0-20231023070753-11103d4a7680diff --git a/go.sum b/go.sumindex 1cf130cdd3..5cd3d29e35 100644--- a/go.sum+++ b/go.sum@@ -150,6 +150,8 @@ github.com/bsm/gomega v1.27.10 h1:yeMWxP2pV2fG3FgAODIY8EiRE3dy0aeFYt4l7wh6yKA=github.com/bsm/gomega v1.27.10/go.mod h1:JyEr/xRbxbtgWNi8tIEVPUYZ5Dzef52k01W3YH0H+O0=github.com/bytebase/gh-ost v1.1.3-0.20230915044519-b37a6525f8f9 h1:Sk8tTyttWhoKj6q5zXu6BcIM1c3B3qFWYSHJZuaf178=github.com/bytebase/gh-ost v1.1.3-0.20230915044519-b37a6525f8f9/go.mod h1:/HsnX0+34LXVz3MxtZoW15GiwEOXz/PrEhutjb3icfE=+github.com/bytebase/go-obo v0.0.0-20231023070753-11103d4a7680 h1:4nOwwIJsnTH29H88xGTrUrIOOj9747z+CjIKobTbn9g=+github.com/bytebase/go-obo v0.0.0-20231023070753-11103d4a7680/go.mod h1:wjDx6Xm9q7dFtHJvIlrI99JytznLw5wQ4R+9mNXJwGI=github.com/bytebase/mysql-parser v0.0.0-20231013095254-61b0903123c6 h1:SjDsJurYJ38Q4GjwET9uVBVii8AhncFO12sCPe/+sHY=github.com/bytebase/mysql-parser v0.0.0-20231013095254-61b0903123c6/go.mod h1:n22yoTeLcphIYQlV6nbufQbHMxNceOjeGDOrpaRIhiY=github.com/bytebase/pg_query_go/v4 v4.0.0-20230802100607-2f34e68d96f5 h1:3Ihj6fsBY7rAKzOO2nxJocq9uOxARAwoalhC84ntjec=diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex f41c8852b4..042b377d55 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -636,6 +636,7 @@ Used internally for obfuscating the page token.| OCEANBASE | 14 | || DM | 15 | || RISINGWAVE | 16 | |+| OCEANBASE_ORACLE | 17 | |diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 8c1f41421a..d708a689a2 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -817,6 +817,7 @@ When paginating, all other parameters provided to `ListDebugLog` must match the| OCEANBASE | 14 | || DM | 15 | || RISINGWAVE | 16 | |+| OCEANBASE_ORACLE | 17 | |diff --git a/proto/generated-go/store/common.pb.go b/proto/generated-go/store/common.pb.goindex b4d22ca966..a5b7e59ec9 100644--- a/proto/generated-go/store/common.pb.go+++ b/proto/generated-go/store/common.pb.go@@ -40,6 +40,7 @@ const (Engine_OCEANBASE Engine = 14Engine_DM Engine = 15Engine_RISINGWAVE Engine = 16+ Engine_OCEANBASE_ORACLE Engine = 17)// Enum value maps for Engine.@@ -62,6 +63,7 @@ var (14: "OCEANBASE",15: "DM",16: "RISINGWAVE",+ 17: "OCEANBASE_ORACLE",}Engine_value = map[string]int32{"ENGINE_UNSPECIFIED": 0,@@ -81,6 +83,7 @@ var ("OCEANBASE": 14,"DM": 15,"RISINGWAVE": 16,+ "OCEANBASE_ORACLE": 17,})@@ -280,7 +283,7 @@ var file_store_common_proto_rawDesc = []byte{0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65,0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x2a,- 0xec, 0x01, 0x0a, 0x06, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x45, 0x4e,+ 0x82, 0x02, 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, 0x53, 0x51, 0x4c, 0x10, 0x02, 0x12, 0x0c, 0x0a,@@ -294,19 +297,20 @@ var file_store_common_proto_rawDesc = []byte{0x52, 0x45, 0x44, 0x53, 0x48, 0x49, 0x46, 0x54, 0x10, 0x0c, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x41,0x52, 0x49, 0x41, 0x44, 0x42, 0x10, 0x0d, 0x12, 0x0d, 0x0a, 0x09, 0x4f, 0x43, 0x45, 0x41, 0x4e,0x42, 0x41, 0x53, 0x45, 0x10, 0x0e, 0x12, 0x06, 0x0a, 0x02, 0x44, 0x4d, 0x10, 0x0f, 0x12, 0x0e,- 0x0a, 0x0a, 0x52, 0x49, 0x53, 0x49, 0x4e, 0x47, 0x57, 0x41, 0x56, 0x45, 0x10, 0x10, 0x2a, 0x4a,- 0x0a, 0x07, 0x56, 0x63, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x14, 0x56, 0x43, 0x53,- 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,- 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x47, 0x49, 0x54, 0x4c, 0x41, 0x42, 0x10, 0x01, 0x12,- 0x0a, 0x0a, 0x06, 0x47, 0x49, 0x54, 0x48, 0x55, 0x42, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x42,- 0x49, 0x54, 0x42, 0x55, 0x43, 0x4b, 0x45, 0x54, 0x10, 0x03, 0x2a, 0x4e, 0x0a, 0x0c, 0x4d, 0x61,- 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1d, 0x0a, 0x19, 0x4d, 0x41,- 0x53, 0x4b, 0x49, 0x4e, 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50,- 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e,- 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x41, 0x52, 0x54, 0x49, 0x41, 0x4c, 0x10, 0x02,- 0x12, 0x08, 0x0a, 0x04, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x03, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65,- 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65,- 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+ 0x0a, 0x0a, 0x52, 0x49, 0x53, 0x49, 0x4e, 0x47, 0x57, 0x41, 0x56, 0x45, 0x10, 0x10, 0x12, 0x14,+ 0x0a, 0x10, 0x4f, 0x43, 0x45, 0x41, 0x4e, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x4f, 0x52, 0x41, 0x43,+ 0x4c, 0x45, 0x10, 0x11, 0x2a, 0x4a, 0x0a, 0x07, 0x56, 0x63, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12,+ 0x18, 0x0a, 0x14, 0x56, 0x43, 0x53, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50,+ 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x47, 0x49, 0x54,+ 0x4c, 0x41, 0x42, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x47, 0x49, 0x54, 0x48, 0x55, 0x42, 0x10,+ 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x42, 0x49, 0x54, 0x42, 0x55, 0x43, 0x4b, 0x45, 0x54, 0x10, 0x03,+ 0x2a, 0x4e, 0x0a, 0x0c, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c,+ 0x12, 0x1d, 0x0a, 0x19, 0x4d, 0x41, 0x53, 0x4b, 0x49, 0x4e, 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45,+ 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,+ 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x41, 0x52,+ 0x54, 0x49, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x03,+ 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f,+ 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,}var (diff --git a/proto/generated-go/v1/common.pb.go b/proto/generated-go/v1/common.pb.goindex 10de0a3d52..0d52b6074e 100644--- a/proto/generated-go/v1/common.pb.go+++ b/proto/generated-go/v1/common.pb.go@@ -89,6 +89,7 @@ const (Engine_OCEANBASE Engine = 14Engine_DM Engine = 15Engine_RISINGWAVE Engine = 16+ Engine_OCEANBASE_ORACLE Engine = 17)// Enum value maps for Engine.@@ -111,6 +112,7 @@ var (14: "OCEANBASE",15: "DM",16: "RISINGWAVE",+ 17: "OCEANBASE_ORACLE",}Engine_value = map[string]int32{"ENGINE_UNSPECIFIED": 0,@@ -130,6 +132,7 @@ var ("OCEANBASE": 14,"DM": 15,"RISINGWAVE": 16,+ "OCEANBASE_ORACLE": 17,})@@ -275,7 +278,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, 0xec, 0x01, 0x0a, 0x06, 0x45, 0x6e, 0x67, 0x69,+ 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x02, 0x2a, 0x82, 0x02, 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,@@ -290,18 +293,20 @@ var file_v1_common_proto_rawDesc = []byte{0x10, 0x0c, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x41, 0x52, 0x49, 0x41, 0x44, 0x42, 0x10, 0x0d, 0x12,0x0d, 0x0a, 0x09, 0x4f, 0x43, 0x45, 0x41, 0x4e, 0x42, 0x41, 0x53, 0x45, 0x10, 0x0e, 0x12, 0x06,0x0a, 0x02, 0x44, 0x4d, 0x10, 0x0f, 0x12, 0x0e, 0x0a, 0x0a, 0x52, 0x49, 0x53, 0x49, 0x4e, 0x47,- 0x57, 0x41, 0x56, 0x45, 0x10, 0x10, 0x2a, 0x4e, 0x0a, 0x0c, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e,- 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1d, 0x0a, 0x19, 0x4d, 0x41, 0x53, 0x4b, 0x49, 0x4e,- 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,- 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12,- 0x0b, 0x0a, 0x07, 0x50, 0x41, 0x52, 0x54, 0x49, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04,- 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x03, 0x2a, 0x4c, 0x0a, 0x0c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74,- 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x16, 0x0a, 0x12, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54,- 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07,- 0x0a, 0x03, 0x43, 0x53, 0x56, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4a, 0x53, 0x4f, 0x4e, 0x10,- 0x02, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x51, 0x4c, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x58, 0x4c,- 0x53, 0x58, 0x10, 0x04, 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,+ 0x57, 0x41, 0x56, 0x45, 0x10, 0x10, 0x12, 0x14, 0x0a, 0x10, 0x4f, 0x43, 0x45, 0x41, 0x4e, 0x42,+ 0x41, 0x53, 0x45, 0x5f, 0x4f, 0x52, 0x41, 0x43, 0x4c, 0x45, 0x10, 0x11, 0x2a, 0x4e, 0x0a, 0x0c,+ 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1d, 0x0a, 0x19,+ 0x4d, 0x41, 0x53, 0x4b, 0x49, 0x4e, 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e,+ 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4e,+ 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x41, 0x52, 0x54, 0x49, 0x41, 0x4c,+ 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x03, 0x2a, 0x4c, 0x0a, 0x0c,+ 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x16, 0x0a, 0x12,+ 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,+ 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x43, 0x53, 0x56, 0x10, 0x01, 0x12, 0x08, 0x0a,+ 0x04, 0x4a, 0x53, 0x4f, 0x4e, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x51, 0x4c, 0x10, 0x03,+ 0x12, 0x08, 0x0a, 0x04, 0x58, 0x4c, 0x53, 0x58, 0x10, 0x04, 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/store/common.proto b/proto/store/common.protoindex 98cd2ab638..1350a18469 100644--- a/proto/store/common.proto+++ b/proto/store/common.proto@@ -28,6 +28,7 @@ enum Engine {OCEANBASE = 14;DM = 15;RISINGWAVE = 16;+ OCEANBASE_ORACLE = 17;}enum VcsType {diff --git a/proto/v1/common.proto b/proto/v1/common.protoindex 2072b9a668..27e4e3aa9c 100644--- a/proto/v1/common.proto+++ b/proto/v1/common.proto@@ -28,6 +28,7 @@ enum Engine {OCEANBASE = 14;DM = 15;RISINGWAVE = 16;+ OCEANBASE_ORACLE = 17;}enum MaskingLevel {