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(cosmosdb): support cosmosdb connection and sync (#14813)
h3n4l935c2105ba7f
diff --git a/backend/api/v1/common.go b/backend/api/v1/common.goindex b3d788ac94..e5bfe27b6a 100644--- a/backend/api/v1/common.go+++ b/backend/api/v1/common.go@@ -346,6 +346,8 @@ func convertToEngine(engine storepb.Engine) v1pb.Engine {return v1pb.Engine_DATABRICKScase storepb.Engine_COCKROACHDB:return v1pb.Engine_COCKROACHDB+ case storepb.Engine_COSMOSDB:+ return v1pb.Engine_COSMOSDB}return v1pb.Engine_ENGINE_UNSPECIFIED}@@ -402,6 +404,8 @@ func convertEngine(engine v1pb.Engine) storepb.Engine {return storepb.Engine_DATABRICKScase v1pb.Engine_COCKROACHDB:return storepb.Engine_COCKROACHDB+ case v1pb.Engine_COSMOSDB:+ return storepb.Engine_COSMOSDB}return storepb.Engine_ENGINE_UNSPECIFIED}diff --git a/backend/plugin/db/cosmosdb/cosmosdb.go b/backend/plugin/db/cosmosdb/cosmosdb.gonew file mode 100644index 0000000000..8573d77289--- /dev/null+++ b/backend/plugin/db/cosmosdb/cosmosdb.go@@ -0,0 +1,90 @@+// Package cosmosdb is the plugin for CosmosDB driver.+package cosmosdb++import (+ "context"+ "database/sql"+ "io"++ "google.golang.org/grpc/codes"+ "google.golang.org/grpc/status"++ "github.com/Azure/azure-sdk-for-go/sdk/azidentity"+ "github.com/Azure/azure-sdk-for-go/sdk/data/azcosmos"+ "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"+)++var _ db.Driver = (*Driver)(nil)++func init() {+ db.Register(storepb.Engine_COSMOSDB, newDriver)+}++// Driver is the CosmosDB driver.+type Driver struct {+ client *azcosmos.Client+ connCfg db.ConnectionConfig+ databaseName string+}++func newDriver(_ db.DriverConfig) db.Driver {+ return &Driver{}+}++// Open opens a CosmosDB driver.+func (driver *Driver) Open(_ context.Context, _ storepb.Engine, connCfg db.ConnectionConfig) (db.Driver, error) {+ endpoint := connCfg.Host+ credential, err := azidentity.NewDefaultAzureCredential(nil)+ if err != nil {+ return nil, errors.Wrapf(err, "failed to found default Azure credential")+ }+ client, err := azcosmos.NewClient(endpoint, credential, nil)+ if err != nil {+ return nil, errors.Wrapf(err, "failed to create CosmosDB client")+ }+ driver.client = client+ driver.databaseName = connCfg.Database+ driver.connCfg = connCfg+ return driver, nil+}++// Close closes the CosmosDB driver.+func (*Driver) Close(_ context.Context) error {+ return nil+}++// Ping pings the database.+func (driver *Driver) Ping(_ context.Context) error {+ queryPager := driver.client.NewQueryDatabasesPager("select 1", nil)+ for queryPager.More() {+ _, err := queryPager.NextPage(context.Background())+ if err != nil {+ // TODO(zp): Deserialize the error into azcore.ResponseError+ return errors.Wrapf(err, "failed to ping CosmosDB")+ }+ }+ return nil+}++// GetDB gets the database.+func (*Driver) GetDB() *sql.DB {+ return nil+}++func (*Driver) Execute(_ context.Context, _ string, _ db.ExecuteOptions) (int64, error) {+ return 0, status.Errorf(codes.Unimplemented, "method Execute unimplemented")+}++// Dump dumps the database.+func (*Driver) Dump(_ context.Context, _ io.Writer, _ *storepb.DatabaseSchemaMetadata) error {+ return nil+}++// QueryConn queries a SQL statement in a given connection.+func (*Driver) QueryConn(_ context.Context, _ *sql.Conn, _ string, _ db.QueryContext) ([]*v1pb.QueryResult, error) {+ return nil, status.Errorf(codes.Unimplemented, "method QueryConn unimplemented")+}diff --git a/backend/plugin/db/cosmosdb/sync.go b/backend/plugin/db/cosmosdb/sync.gonew file mode 100644index 0000000000..ae5c332d0c--- /dev/null+++ b/backend/plugin/db/cosmosdb/sync.go@@ -0,0 +1,74 @@+package cosmosdb++import (+ "context"+ "time"++ "github.com/pkg/errors"++ "github.com/bytebase/bytebase/backend/plugin/db"+ storepb "github.com/bytebase/bytebase/proto/generated-go/store"+)++// SyncInstance syncs the instance meta.+func (driver *Driver) SyncInstance(ctx context.Context) (*db.InstanceMetadata, error) {+ var databases []*storepb.DatabaseSchemaMetadata+ // List databases names.+ // https://github.com/Azure/azure-sdk-for-go/pull/19769+ queryPager := driver.client.NewQueryDatabasesPager("select * from dbs d", nil)+ for queryPager.More() {+ queryResponse, err := queryPager.NextPage(ctx)+ if err != nil {+ return nil, errors.Wrapf(err, "failed to get next page in database list")+ }+ for _, database := range queryResponse.Databases {+ databases = append(databases, &storepb.DatabaseSchemaMetadata{+ Name: database.ID,+ })+ }+ }+ return &db.InstanceMetadata{+ Databases: databases,+ }, nil+}++// SyncDBSchema syncs the database schema.+func (driver *Driver) SyncDBSchema(ctx context.Context) (*storepb.DatabaseSchemaMetadata, error) {+ var containers []*storepb.TableMetadata+ // List containers names.+ // https://github.com/Azure/azure-sdk-for-go/pull/19769+ database, err := driver.client.NewDatabase(driver.databaseName)+ if err != nil {+ return nil, errors.Wrapf(err, "failed to get database %q", driver.databaseName)+ }+ queryPager := database.NewQueryContainersPager("select * from colls c", nil)+ for queryPager.More() {+ queryResponse, err := queryPager.NextPage(ctx)+ if err != nil {+ return nil, errors.Wrapf(err, "failed to get next page in container list")+ }+ for _, container := range queryResponse.Containers {+ containers = append(containers, &storepb.TableMetadata{+ Name: container.ID,+ })+ }+ }+ return &storepb.DatabaseSchemaMetadata{+ Name: driver.databaseName,+ Schemas: []*storepb.SchemaMetadata{+ {+ Tables: containers,+ },+ },+ }, nil+}++// SyncSlowQuery syncs the slow query.+func (*Driver) SyncSlowQuery(_ context.Context, _ time.Time) (map[string]*storepb.SlowQueryStatistics, error) {+ return nil, errors.Errorf("not implemented")+}++// CheckSlowQueryLogEnabled checks if slow query log is enabled.+func (*Driver) CheckSlowQueryLogEnabled(_ context.Context) error {+ return errors.Errorf("not implemented")+}diff --git a/backend/server/ultimate.go b/backend/server/ultimate.goindex 4bedf90aa9..9ebbcf8947 100644--- a/backend/server/ultimate.go+++ b/backend/server/ultimate.go@@ -7,6 +7,7 @@ import (_ "github.com/bytebase/bytebase/backend/plugin/db/bigquery"_ "github.com/bytebase/bytebase/backend/plugin/db/clickhouse"_ "github.com/bytebase/bytebase/backend/plugin/db/cockroachdb"+ _ "github.com/bytebase/bytebase/backend/plugin/db/cosmosdb"_ "github.com/bytebase/bytebase/backend/plugin/db/databricks"_ "github.com/bytebase/bytebase/backend/plugin/db/dm"_ "github.com/bytebase/bytebase/backend/plugin/db/dynamodb"diff --git a/frontend/src/assets/db-cosmosdb.svg b/frontend/src/assets/db-cosmosdb.svgnew file mode 100644index 0000000000..4bd1c77dd9--- /dev/null+++ b/frontend/src/assets/db-cosmosdb.svg@@ -0,0 +1,47 @@+<?xml version="1.0" encoding="utf-8"?>+<!-- Generator: Adobe Illustrator 26.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->+<svg version="1.0" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"+ viewBox="0 0 1258.7 878.1" style="enable-background:new 0 0 1258.7 878.1;" xml:space="preserve">+<style type="text/css">+ .st0{fill:#76CAE7;}+ .st1{fill:url(#SVGID_1_);}+ .st2{clip-path:url(#SVGID_00000036234352242478366640000001482162206300148105_);}+ .st3{fill:#F2F2F2;}+</style>+<path class="st0" d="M375.2,282.1c-4.1,0-7.4-3.2-7.4-7.3v-0.1l0,0c-0.1-46.6-37.8-84.4-84.5-84.5c-4.1,0-7.4-3.3-7.4-7.4l0,0+ c0-4.1,3.3-7.4,7.4-7.4l0,0l0,0c46.6-0.1,84.4-37.9,84.5-84.5c0-4.1,3.3-7.4,7.3-7.4c0,0,0,0,0,0h0.1c4.1,0,7.4,3.2,7.4,7.3+ c0,0,0,0,0,0v0.1l0,0c0.1,46.6,37.8,84.4,84.5,84.5c4.1,0,7.4,3.2,7.4,7.3v0.1l0,0c0,4.1-3.3,7.4-7.3,7.4H467+ c-46.6,0-84.4,37.8-84.5,84.5C382.6,278.7,379.3,282,375.2,282.1z"/>+<path class="st0" d="M907.3,794.6c-3.3,0-5.9-2.6-5.9-5.9l0,0c0-37.3-30.3-67.5-67.6-67.6c-3.3,0-5.9-2.6-5.9-5.9l0,0+ c0-3.3,2.6-5.9,5.9-5.9c0,0,0,0,0,0l0,0c37.3,0,67.5-30.2,67.5-67.5c0-3.3,2.7-5.9,5.9-5.9l0,0c3.3,0,5.9,2.7,5.9,5.9l0,0+ c0,37.3,30.3,67.5,67.6,67.6c3.3,0,5.9,2.6,5.9,5.9s-2.6,5.9-5.9,5.9c0,0,0,0,0,0l0,0c-37.3,0-67.5,30.3-67.6,67.6+ C913.2,791.9,910.6,794.6,907.3,794.6z"/>+<radialGradient id="SVGID_1_" cx="520.6223" cy="129.6111" r="250.4531" gradientTransform="matrix(1.04 0 0 1.03 86.91 302.4933)" gradientUnits="userSpaceOnUse">+ <stop offset="0.18" style="stop-color:#679CD3"/>+ <stop offset="1" style="stop-color:#2974BA"/>+</radialGradient>+<path class="st1" d="M880.4,377.3c33.1,138.6-52.5,277.8-191,310.9s-277.9-52.4-311-191s52.4-277.8,191-310.9l0,0+ C708,153.2,847.2,238.7,880.4,377.3z"/>+<g>+ <defs>+ <path id="SVGID_00000145747229284999338700000013358622018599416483_" d="M880.4,377.3c33.1,138.6-52.5,277.8-191,310.9+ s-277.9-52.4-311-191s52.4-277.8,191-310.9l0,0C708,153.2,847.2,238.7,880.4,377.3z"/>+ </defs>+ <clipPath id="SVGID_00000181779117723435518210000015569286776984892089_">+ <use xlink:href="#SVGID_00000145747229284999338700000013358622018599416483_" style="overflow:visible;"/>+ </clipPath>+ <g style="clip-path:url(#SVGID_00000181779117723435518210000015569286776984892089_);">+ <path class="st3" d="M491,612.1c38,1.2,69.8-28.6,71.1-66.6c1.2-38-28.6-69.8-66.6-71.1c-0.3,0-0.6,0-0.9,0c-1.1,0-2.3,0-3.4,0+ c0.2-2,0.3-3.9,0.3-5.9c-0.3-38.3-31.6-69-69.8-68.8H370c-10.2,77.2,14.3,155,67.1,212.4H491z"/>+ <path class="st3" d="M883.5,389.2c0.1-0.6,0-1.3-0.3-1.9c-8.3-45-28.8-86.9-59.1-121.1c-41.2-16.5-88.1,3.5-104.6,44.7+ c-0.5,1.2-0.9,2.5-1.4,3.7c-1.7,5.8-2.6,11.7-2.8,17.7c-2.8-0.3-5.6-0.5-8.4-0.5c-40.3-0.1-73.1,32.5-73.2,72.8+ c-0.1,31,19.5,58.8,48.8,69.1c7.2,2.8,15,4.3,22.8,4.2h85.3C824.8,452,856,422.3,883.5,389.2z"/>+ </g>+</g>+<path class="st0" d="M973.7,221.8c-26.5-44-88.3-61.2-174.7-48.3c-29.6,4.2-58.9,10.5-87.5,19c22.7,7.9,44.4,18.7,64.2,32.2+ c10.1-2.2,20.3-4.9,30.1-6.4c15.3-2.4,30.8-3.6,46.4-3.7c30.8-4.4,61.8,7,82.4,30.5l0,0c16.1,26.8,2.5,72.7-37.2,126.1+ c-55.3,68.8-123,126.6-199.7,170.3c-74.9,46.8-158,79-244.9,95.1c-65.8,9.8-112.8,0-128.9-26.7c-16.1-26.7-2.5-72.7,37.3-125.9+ c4.9-6.6,6.1-9.8,11.7-16.5c-2.6-22.8-2.3-45.8,1.1-68.5c-17.9,17.9-34.3,37.2-49.2,57.7C272.7,526.3,258.6,589,285,633+ c28.4,38,74.8,58,121.9,52.5c17.6-0.1,35.2-1.5,52.6-4.2c92.7-16.9,181.4-51.1,261.5-100.9c81.7-46.8,153.9-108.6,212.8-182.1+ C986,328.5,1000.1,265.8,973.7,221.8z"/>+</svg>diff --git a/frontend/src/components/InstanceForm/Form.vue b/frontend/src/components/InstanceForm/Form.vueindex 69e7932e4f..a76d74c6bc 100644--- a/frontend/src/components/InstanceForm/Form.vue+++ b/frontend/src/components/InstanceForm/Form.vue@@ -118,6 +118,10 @@class="text-sm"/></template>+ <template v-else-if="basicInfo.engine === Engine.COSMOSDB">+ {{ $t("instance.endpoint") }}+ <span class="text-red-600 mr-2">*</span>+ </template><divv-else-if="adminDataSource.authenticationType ===@@ -168,6 +172,7 @@basicInfo.engine !== Engine.SPANNER &&basicInfo.engine !== Engine.BIGQUERY &&basicInfo.engine !== Engine.DATABRICKS &&+ basicInfo.engine !== Engine.COSMOSDB &&adminDataSource.authenticationType !==DataSource_AuthenticationType.GOOGLE_CLOUD_SQL_IAM"@@ -410,7 +415,12 @@</div><!-- Connection Info -->- <template v-if="basicInfo.engine !== Engine.DYNAMODB">+ <template+ v-if="+ basicInfo.engine !== Engine.DYNAMODB &&+ basicInfo.engine !== Engine.COSMOSDB+ "+ ><p class="mt-6 pt-4 w-full text-lg leading-6 font-medium text-gray-900">{{ $t("instance.connection-info") }}</p>diff --git a/frontend/src/components/InstanceForm/constants.ts b/frontend/src/components/InstanceForm/constants.tsindex a6507e4e63..6a05ef6920 100644--- a/frontend/src/components/InstanceForm/constants.ts+++ b/frontend/src/components/InstanceForm/constants.ts@@ -89,6 +89,7 @@ export const EngineIconPath: Record<string, string> = {.href,[Engine.COCKROACHDB]: new URL("@/assets/db-cockroachdb.png", import.meta.url).href,+ [Engine.COSMOSDB]: new URL("@/assets/db-cosmosdb.svg", import.meta.url).href,};export const MongoDBConnectionStringSchemaList = [diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex 8434f6268e..a1b671c7db 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -1493,6 +1493,7 @@"account": "Account","name": "Name","host-or-socket": "Host or Socket",+ "endpoint": "Endpoint","project-id-and-instance-id": "Project ID and instance ID","project-id": "Project ID","instance-id": "Instance ID",diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex 1b3db6310a..a6bcb6f706 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -1493,6 +1493,7 @@"account": "Cuenta","name": "Nombre","host-or-socket": "Host o Socket",+ "endpoint": "Punto final","project-id-and-instance-id": "ID del proyecto e ID de la instancia","project-id": "ID del proyecto","instance-id": "ID de la instancia",diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.jsonindex 241bc03e8b..11aaf77ff4 100644--- a/frontend/src/locales/ja-JP.json+++ b/frontend/src/locales/ja-JP.json@@ -1493,6 +1493,7 @@"account": "アカウント","name": "名前","host-or-socket": "ホストまたはソケット",+ "endpoint": "終点","project-id-and-instance-id": "プロジェクト ID とインスタンス ID","project-id": "プロジェクトID","instance-id": "インスタンスID",diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex 8c8c49d666..d4c83cd0f8 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -1493,6 +1493,7 @@"account": "账户","name": "名称","host-or-socket": "Host 或 Socket",+ "endpoint": "端点","project-id-and-instance-id": "项目 ID 与实例 ID","project-id": "项目 ID","instance-id": "实例 ID",@@ -3896,4 +3897,4 @@"last-visit": "上次访问","changelog-for-version": "{version} 的更新日志"}-}+}\ No newline at end of filediff --git a/frontend/src/types/proto/store/common.ts b/frontend/src/types/proto/store/common.tsindex f5c4a11eac..62da2524b3 100644--- a/frontend/src/types/proto/store/common.ts+++ b/frontend/src/types/proto/store/common.ts@@ -37,6 +37,7 @@ export enum Engine {DYNAMODB = "DYNAMODB",DATABRICKS = "DATABRICKS",COCKROACHDB = "COCKROACHDB",+ COSMOSDB = "COSMOSDB",UNRECOGNIZED = "UNRECOGNIZED",}@@ -120,6 +121,9 @@ export function engineFromJSON(object: any): Engine {case 25:case "COCKROACHDB":return Engine.COCKROACHDB;+ case 26:+ case "COSMOSDB":+ return Engine.COSMOSDB;case -1:case "UNRECOGNIZED":default:@@ -181,6 +185,8 @@ export function engineToJSON(object: Engine): string {return "DATABRICKS";case Engine.COCKROACHDB:return "COCKROACHDB";+ case Engine.COSMOSDB:+ return "COSMOSDB";case Engine.UNRECOGNIZED:default:return "UNRECOGNIZED";@@ -241,6 +247,8 @@ export function engineToNumber(object: Engine): number {return 24;case Engine.COCKROACHDB:return 25;+ case Engine.COSMOSDB:+ return 26;case Engine.UNRECOGNIZED:default:return -1;diff --git a/frontend/src/types/proto/v1/common.ts b/frontend/src/types/proto/v1/common.tsindex 293eca5f89..1b9ba386d9 100644--- a/frontend/src/types/proto/v1/common.ts+++ b/frontend/src/types/proto/v1/common.ts@@ -90,6 +90,7 @@ export enum Engine {DYNAMODB = "DYNAMODB",DATABRICKS = "DATABRICKS",COCKROACHDB = "COCKROACHDB",+ COSMOSDB = "COSMOSDB",UNRECOGNIZED = "UNRECOGNIZED",}@@ -173,6 +174,9 @@ export function engineFromJSON(object: any): Engine {case 25:case "COCKROACHDB":return Engine.COCKROACHDB;+ case 26:+ case "COSMOSDB":+ return Engine.COSMOSDB;case -1:case "UNRECOGNIZED":default:@@ -234,6 +238,8 @@ export function engineToJSON(object: Engine): string {return "DATABRICKS";case Engine.COCKROACHDB:return "COCKROACHDB";+ case Engine.COSMOSDB:+ return "COSMOSDB";case Engine.UNRECOGNIZED:default:return "UNRECOGNIZED";@@ -294,6 +300,8 @@ export function engineToNumber(object: Engine): number {return 24;case Engine.COCKROACHDB:return 25;+ case Engine.COSMOSDB:+ return 26;case Engine.UNRECOGNIZED:default:return -1;@@ -521,7 +529,10 @@ function createBasePosition(): Position {}export const Position: MessageFns<Position> = {- encode(message: Position, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ encode(+ message: Position,+ writer: BinaryWriter = new BinaryWriter()+ ): BinaryWriter {if (message.line !== 0) {writer.uint32(8).int32(message.line);}@@ -532,7 +543,8 @@ export const Position: MessageFns<Position> = {},decode(input: BinaryReader | Uint8Array, length?: number): Position {- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);+ const reader =+ input instanceof BinaryReader ? input : new BinaryReader(input);let end = length === undefined ? reader.len : reader.pos + length;const message = createBasePosition();while (reader.pos < end) {@@ -597,7 +609,10 @@ function createBaseRange(): Range {}export const Range: MessageFns<Range> = {- encode(message: Range, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ encode(+ message: Range,+ writer: BinaryWriter = new BinaryWriter()+ ): BinaryWriter {if (message.start !== 0) {writer.uint32(8).int32(message.start);}@@ -608,7 +623,8 @@ export const Range: MessageFns<Range> = {},decode(input: BinaryReader | Uint8Array, length?: number): Range {- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);+ const reader =+ input instanceof BinaryReader ? input : new BinaryReader(input);let end = length === undefined ? reader.len : reader.pos + length;const message = createBaseRange();while (reader.pos < end) {@@ -668,13 +684,26 @@ export const Range: MessageFns<Range> = {},};-type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;--export type DeepPartial<T> = T extends Builtin ? T- : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>- : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }- : Partial<T>;+type Builtin =+ | Date+ | Function+ | Uint8Array+ | string+ | number+ | boolean+ | undefined;++export type DeepPartial<T> = T extends Builtin+ ? T+ : T extends Long+ ? string | number | Long+ : T extends globalThis.Array<infer U>+ ? globalThis.Array<DeepPartial<U>>+ : T extends ReadonlyArray<infer U>+ ? ReadonlyArray<DeepPartial<U>>+ : T extends {}+ ? { [K in keyof T]?: DeepPartial<T[K]> }+ : Partial<T>;function isSet(value: any): boolean {return value !== null && value !== undefined;diff --git a/frontend/src/utils/v1/instance.ts b/frontend/src/utils/v1/instance.tsindex 17dae23cae..16f68c45cc 100644--- a/frontend/src/utils/v1/instance.ts+++ b/frontend/src/utils/v1/instance.ts@@ -15,6 +15,7 @@ import {type DataSource,} from "@/types/proto/v1/instance_service";import { PlanType } from "@/types/proto/v1/subscription_service";+import { isDev } from "../util";export function instanceV1Name(instance: Instance | InstanceResource) {const store = useSubscriptionV1Store();@@ -126,6 +127,9 @@ export const supportedEngineV1List = () => {engines.push(Engine.DM);engines.push(Engine.DORIS);}+ if (isDev()) {+ engines.push(Engine.COSMOSDB);+ }return engines;};@@ -344,6 +348,8 @@ export const engineNameV1 = (type: Engine): string => {return "DynamoDB";case Engine.DATABRICKS:return "Databricks";+ case Engine.COSMOSDB:+ return "CosmosDB";}return "";};diff --git a/go.mod b/go.modindex 99d693102a..a2f833060c 100644--- a/go.mod+++ b/go.mod@@ -12,6 +12,8 @@ require (cloud.google.com/go/secretmanager v1.14.2cloud.google.com/go/spanner v1.73.0gitee.com/chunanyong/dm v1.8.17+ github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.0+ github.com/Azure/azure-sdk-for-go/sdk/data/azcosmos v1.2.0github.com/ClickHouse/clickhouse-go/v2 v2.30.0github.com/alexmullins/zip v0.0.0-20180717182244-4affb64b04d0github.com/antlr4-go/antlr/v4 v4.13.1@@ -110,10 +112,12 @@ require (filippo.io/edwards25519 v1.1.0 // indirectgithub.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirectgithub.com/99designs/keyring v1.2.2 // indirect- github.com/Azure/azure-sdk-for-go/sdk/azcore v1.12.0 // indirect- github.com/Azure/azure-sdk-for-go/sdk/internal v1.9.0 // indirect+ github.com/Azure/azure-sdk-for-go v68.0.0+incompatible // indirect+ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.16.0 // indirect+ github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 // indirectgithub.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.3.2 // indirectgithub.com/Azure/go-ntlmssp v0.0.0-20221128193559-754e69321358 // indirect+ github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 // indirectgithub.com/BurntSushi/toml v1.4.0 // indirectgithub.com/GoogleCloudPlatform/grpc-gcp-go/grpcgcp v1.5.0 // indirectgithub.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.24.2 // indirect@@ -178,6 +182,7 @@ require (github.com/klauspost/cpuid/v2 v2.2.8 // indirectgithub.com/kr/pretty v0.3.1 // indirectgithub.com/kr/text v0.2.0 // indirect+ github.com/kylelemons/godebug v1.1.0 // indirectgithub.com/mitchellh/go-homedir v1.1.0 // indirectgithub.com/mitchellh/mapstructure v1.5.0 // indirectgithub.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirectdiff --git a/go.sum b/go.sumindex 3d4f5640f3..1bc765e8f6 100644--- a/go.sum+++ b/go.sum@@ -632,12 +632,18 @@ github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4/go.mod h1:hNgithub.com/99designs/keyring v1.2.2 h1:pZd3neh/EmUzWONb35LxQfvuY7kiSXAq3HQd97+XBn0=github.com/99designs/keyring v1.2.2/go.mod h1:wes/FrByc8j7lFOAGLGSNEg8f/PaI3cgTBqhFkHUrPk=github.com/AndreasBriese/bbloom v0.0.0-20190306092124-e2d15f34fcf9/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8=-github.com/Azure/azure-sdk-for-go/sdk/azcore v1.12.0 h1:1nGuui+4POelzDwI7RG56yfQJHCnKvwfMoU7VsEp+Zg=-github.com/Azure/azure-sdk-for-go/sdk/azcore v1.12.0/go.mod h1:99EvauvlcJ1U06amZiksfYz/3aFGyIhWGHVyiZXtBAI=-github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2 h1:FDif4R1+UUR+00q6wquyX90K7A8dN+R5E8GEadoP7sU=-github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.2/go.mod h1:aiYBYui4BJ/BJCAIKs92XiPyQfTaBWqvHujDwKb6CBU=-github.com/Azure/azure-sdk-for-go/sdk/internal v1.9.0 h1:H+U3Gk9zY56G3u872L82bk4thcsy2Gghb9ExT4Zvm1o=-github.com/Azure/azure-sdk-for-go/sdk/internal v1.9.0/go.mod h1:mgrmMSgaLp9hmax62XQTd0N4aAqSE5E0DulSpVYK7vc=+github.com/Azure/azure-sdk-for-go v68.0.0+incompatible h1:fcYLmCpyNYRnvJbPerq7U0hS+6+I79yEDJBqVNcqUzU=+github.com/Azure/azure-sdk-for-go v68.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=+github.com/Azure/azure-sdk-for-go/sdk/azcore v1.16.0 h1:JZg6HRh6W6U4OLl6lk7BZ7BLisIzM9dG1R50zUk9C/M=+github.com/Azure/azure-sdk-for-go/sdk/azcore v1.16.0/go.mod h1:YL1xnZ6QejvQHWJrX/AvhFl4WW4rqHVoKspWNVwFk0M=+github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.0 h1:B/dfvscEQtew9dVuoxqxrUKKv8Ih2f55PydknDamU+g=+github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.0/go.mod h1:fiPSssYvltE08HJchL04dOy+RD4hgrjph0cwGGMntdI=+github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache v0.3.0 h1:+m0M/LFxN43KvULkDNfdXOgrjtg6UYJPFBJyuEcRCAw=+github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache v0.3.0/go.mod h1:PwOyop78lveYMRs6oCxjiVyBdyCgIYH6XHIVZO9/SFQ=+github.com/Azure/azure-sdk-for-go/sdk/data/azcosmos v1.2.0 h1:1y5G4XTBTEt0nKNFtM7j6CxqkY5fxSuJb/mD8Zf0gPc=+github.com/Azure/azure-sdk-for-go/sdk/data/azcosmos v1.2.0/go.mod h1:1Dp+C8Sly0hnhX8k5zDuw72Z2ehd9Lv+pkLFn8dgXMA=+github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 h1:ywEEhmNahHBihViHepv3xPBn1663uRv2t2q/ESv9seY=+github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0/go.mod h1:iZDifYGJTIgIIkYRNWPENUnqx6bJ2xnSDFI2tjwZNuY=github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage v1.5.0 h1:AifHbc4mg0x9zW52WOpKbsHaDKuRhlI7TVl47thgQ70=github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage v1.5.0/go.mod h1:T5RfihdXtBDxt1Ch2wobif3TvzTdumDy29kahv6AV9A=github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azkeys v1.0.1 h1:MyVTgWR8qd/Jw1Le0NZebGBUCLbtak3bJ3z1OlqZBpw=@@ -649,6 +655,8 @@ github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.3.2/go.mod h1:dmXQgZuiSugithub.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8=github.com/Azure/go-ntlmssp v0.0.0-20221128193559-754e69321358 h1:mFRzDkZVAjdal+s7s0MwaRv9igoPqLRdzOLzw/8Xvq8=github.com/Azure/go-ntlmssp v0.0.0-20221128193559-754e69321358/go.mod h1:chxPXzSsl7ZWRAuOIE23GDNzjWuZquvFlgA8xmpunjU=+github.com/AzureAD/microsoft-authentication-extensions-for-go/cache v0.1.1 h1:WJTmL004Abzc5wDB5VtZG2PJk5ndYDgVacGqfirKxjM=+github.com/AzureAD/microsoft-authentication-extensions-for-go/cache v0.1.1/go.mod h1:tCcJZ0uHAmvjsVYzEFivsRTN00oz5BEsRgQHu5JZ9WE=github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU=github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI=github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=@@ -1476,6 +1484,8 @@ github.com/kataras/pio v0.0.0-20190103105442-ea782b38602d/go.mod h1:NV88laa9UiiDgithub.com/kataras/pio v0.0.2/go.mod h1:hAoW0t9UmXi4R5Oyq5Z4irTbaTsOemSrDGUtaTl7Dro=github.com/kataras/sitemap v0.0.5/go.mod h1:KY2eugMKiPwsJgx7+U103YZehfvNGOXURubcGyk0Bz8=github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8=+github.com/keybase/go-keychain v0.0.0-20231219164618-57a3676c3af6 h1:IsMZxCuZqKuao2vNdfD82fjjgPLfyHLpR41Z88viRWs=+github.com/keybase/go-keychain v0.0.0-20231219164618-57a3676c3af6/go.mod h1:3VeWNIJaW+O5xpRQbPp0Ybqu1vJd/pm7s2F473HRrkw=github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q=github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00=github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex 611b6ca98d..84d89292ff 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -9282,6 +9282,7 @@ components:- DYNAMODB- DATABRICKS- COCKROACHDB+ - COSMOSDBtype: stringdescription: The database engine of the branch.format: enum@@ -10122,6 +10123,7 @@ components:- DYNAMODB- DATABRICKS- COCKROACHDB+ - COSMOSDBtype: stringdescription: The database engine of the schema.format: enum@@ -10707,6 +10709,7 @@ components:- DYNAMODB- DATABRICKS- COCKROACHDB+ - COSMOSDBtype: stringformat: enumengineVersion:@@ -10786,6 +10789,7 @@ components:- DYNAMODB- DATABRICKS- COCKROACHDB+ - COSMOSDBtype: stringformat: enumengineVersion:@@ -12309,6 +12313,7 @@ components:- DYNAMODB- DATABRICKS- COCKROACHDB+ - COSMOSDBtype: stringformat: enumcurrentSchema:@@ -13271,6 +13276,7 @@ components:- DYNAMODB- DATABRICKS- COCKROACHDB+ - COSMOSDBtype: stringformat: enumcomment:@@ -13356,6 +13362,7 @@ components:- DYNAMODB- DATABRICKS- COCKROACHDB+ - COSMOSDBtype: stringformat: enumenabled:@@ -13397,6 +13404,7 @@ components:- DYNAMODB- DATABRICKS- COCKROACHDB+ - COSMOSDBtype: stringformat: enumcategory:@@ -13438,6 +13446,7 @@ components:- DYNAMODB- DATABRICKS- COCKROACHDB+ - COSMOSDBtype: stringformat: enumcategory:@@ -13914,6 +13923,7 @@ components:- DYNAMODB- DATABRICKS- COCKROACHDB+ - COSMOSDBtype: stringdescription: The SQL dialect.format: enum@@ -14124,6 +14134,7 @@ components:- DYNAMODB- DATABRICKS- COCKROACHDB+ - COSMOSDBtype: stringdescription: The database engine of the schema string.format: enumdiff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex f4a1f178bc..5fe934b481 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -468,6 +468,7 @@ Used internally for obfuscating the page token.| DYNAMODB | 23 | || DATABRICKS | 24 | || COCKROACHDB | 25 | |+| COSMOSDB | 26 | |diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.htmlindex 637e710d63..df921af4a5 100644--- a/proto/gen/grpc-doc/store/index.html+++ b/proto/gen/grpc-doc/store/index.html@@ -1938,6 +1938,12 @@<td><p></p></td></tr>+ <tr>+ <td>COSMOSDB</td>+ <td>26</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.mdindex af9370628f..568fc09937 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -892,6 +892,7 @@| DYNAMODB | 23 | || DATABRICKS | 24 | || COCKROACHDB | 25 | |+| COSMOSDB | 26 | |diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex 863c3ce13b..df5063002c 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -3455,6 +3455,12 @@<td><p></p></td></tr>+ <tr>+ <td>COSMOSDB</td>+ <td>26</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.goindex 977d1d64c6..699c2ca739 100644--- a/proto/generated-go/store/common.pb.go+++ b/proto/generated-go/store/common.pb.go@@ -49,6 +49,7 @@ const (Engine_DYNAMODB Engine = 23Engine_DATABRICKS Engine = 24Engine_COCKROACHDB Engine = 25+ Engine_COSMOSDB Engine = 26)// Enum value maps for Engine.@@ -80,6 +81,7 @@ var (23: "DYNAMODB",24: "DATABRICKS",25: "COCKROACHDB",+ 26: "COSMOSDB",}Engine_value = map[string]int32{"ENGINE_UNSPECIFIED": 0,@@ -108,6 +110,7 @@ var ("DYNAMODB": 23,"DATABRICKS": 24,"COCKROACHDB": 25,+ "COSMOSDB": 26,})@@ -533,7 +536,7 @@ var file_store_common_proto_rawDesc = []byte{0x62, 0x61, 0x73, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76,0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,- 0x65, 0x2a, 0xf6, 0x02, 0x0a, 0x06, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x16, 0x0a, 0x12,+ 0x65, 0x2a, 0x84, 0x03, 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,@@ -556,25 +559,26 @@ var file_store_common_proto_rawDesc = []byte{0x08, 0x42, 0x49, 0x47, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10, 0x16, 0x12, 0x0c, 0x0a, 0x08, 0x44,0x59, 0x4e, 0x41, 0x4d, 0x4f, 0x44, 0x42, 0x10, 0x17, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x41, 0x54,0x41, 0x42, 0x52, 0x49, 0x43, 0x4b, 0x53, 0x10, 0x18, 0x12, 0x0f, 0x0a, 0x0b, 0x43, 0x4f, 0x43,- 0x4b, 0x52, 0x4f, 0x41, 0x43, 0x48, 0x44, 0x42, 0x10, 0x19, 0x2a, 0x5c, 0x0a, 0x07, 0x56, 0x43,- 0x53, 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, 0x48, 0x55, 0x42, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x47,- 0x49, 0x54, 0x4c, 0x41, 0x42, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x42, 0x49, 0x54, 0x42, 0x55,- 0x43, 0x4b, 0x45, 0x54, 0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x41, 0x5a, 0x55, 0x52, 0x45, 0x5f,- 0x44, 0x45, 0x56, 0x4f, 0x50, 0x53, 0x10, 0x04, 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, 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,+ 0x4b, 0x52, 0x4f, 0x41, 0x43, 0x48, 0x44, 0x42, 0x10, 0x19, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x4f,+ 0x53, 0x4d, 0x4f, 0x53, 0x44, 0x42, 0x10, 0x1a, 0x2a, 0x5c, 0x0a, 0x07, 0x56, 0x43, 0x53, 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, 0x48, 0x55, 0x42, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x47, 0x49, 0x54,+ 0x4c, 0x41, 0x42, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x42, 0x49, 0x54, 0x42, 0x55, 0x43, 0x4b,+ 0x45, 0x54, 0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x41, 0x5a, 0x55, 0x52, 0x45, 0x5f, 0x44, 0x45,+ 0x56, 0x4f, 0x50, 0x53, 0x10, 0x04, 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, 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 c93ef2612f..0f3081f2dd 100644--- a/proto/generated-go/v1/common.pb.go+++ b/proto/generated-go/v1/common.pb.go@@ -98,6 +98,7 @@ const (Engine_DYNAMODB Engine = 23Engine_DATABRICKS Engine = 24Engine_COCKROACHDB Engine = 25+ Engine_COSMOSDB Engine = 26)// Enum value maps for Engine.@@ -129,6 +130,7 @@ var (23: "DYNAMODB",24: "DATABRICKS",25: "COCKROACHDB",+ 26: "COSMOSDB",}Engine_value = map[string]int32{"ENGINE_UNSPECIFIED": 0,@@ -157,6 +159,7 @@ var ("DYNAMODB": 23,"DATABRICKS": 24,"COCKROACHDB": 25,+ "COSMOSDB": 26,})@@ -473,7 +476,7 @@ var file_v1_common_proto_rawDesc = []byte{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, 0xf6, 0x02, 0x0a, 0x06, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x45,+ 0x2a, 0x84, 0x03, 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,@@ -496,24 +499,25 @@ var file_v1_common_proto_rawDesc = []byte{0x42, 0x49, 0x47, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10, 0x16, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x59,0x4e, 0x41, 0x4d, 0x4f, 0x44, 0x42, 0x10, 0x17, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x41, 0x54, 0x41,0x42, 0x52, 0x49, 0x43, 0x4b, 0x53, 0x10, 0x18, 0x12, 0x0f, 0x0a, 0x0b, 0x43, 0x4f, 0x43, 0x4b,- 0x52, 0x4f, 0x41, 0x43, 0x48, 0x44, 0x42, 0x10, 0x19, 0x2a, 0x5c, 0x0a, 0x07, 0x56, 0x43, 0x53,- 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, 0x48, 0x55, 0x42, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x47, 0x49,- 0x54, 0x4c, 0x41, 0x42, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x42, 0x49, 0x54, 0x42, 0x55, 0x43,- 0x4b, 0x45, 0x54, 0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x41, 0x5a, 0x55, 0x52, 0x45, 0x5f, 0x44,- 0x45, 0x56, 0x4f, 0x50, 0x53, 0x10, 0x04, 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,+ 0x52, 0x4f, 0x41, 0x43, 0x48, 0x44, 0x42, 0x10, 0x19, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x4f, 0x53,+ 0x4d, 0x4f, 0x53, 0x44, 0x42, 0x10, 0x1a, 0x2a, 0x5c, 0x0a, 0x07, 0x56, 0x43, 0x53, 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, 0x48, 0x55, 0x42, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x47, 0x49, 0x54, 0x4c,+ 0x41, 0x42, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x42, 0x49, 0x54, 0x42, 0x55, 0x43, 0x4b, 0x45,+ 0x54, 0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x41, 0x5a, 0x55, 0x52, 0x45, 0x5f, 0x44, 0x45, 0x56,+ 0x4f, 0x50, 0x53, 0x10, 0x04, 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 0eaf669f22..4e4030957b 100644--- a/proto/store/common.proto+++ b/proto/store/common.proto@@ -37,6 +37,7 @@ enum Engine {DYNAMODB = 23;DATABRICKS = 24;COCKROACHDB = 25;+ COSMOSDB = 26;}enum VCSType {diff --git a/proto/v1/common.proto b/proto/v1/common.protoindex fe485f28d9..cb588988de 100644--- a/proto/v1/common.proto+++ b/proto/v1/common.proto@@ -37,6 +37,7 @@ enum Engine {DYNAMODB = 23;DATABRICKS = 24;COCKROACHDB = 25;+ COSMOSDB = 26;}enum VCSType {