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: add Export v1 proto define (#6370)
rebeliceac1d9ff20cd7
diff --git a/frontend/src/types/proto/v1/sql_service.ts b/frontend/src/types/proto/v1/sql_service.tsindex f9774d21b8..6fdae07c98 100644--- a/frontend/src/types/proto/v1/sql_service.ts+++ b/frontend/src/types/proto/v1/sql_service.ts@@ -7,6 +7,70 @@ import { Engine, engineFromJSON, engineToJSON } from "./common";export const protobufPackage = "bytebase.v1";+export interface ExportRequest {+ /**+ * The name is the instance name to execute the query against.+ * Format: instances/{instance}+ */+ name: string;+ /**+ * The connection database name to execute the query against.+ * For PostgreSQL, it's required.+ * For other database engines, it's optional. Use empty string to execute against without specifying a database.+ */+ connectionDatabase: string;+ /** The SQL statement to execute. */+ statement: string;+ /** The maximum number of rows to return. */+ limit: number;+ /** The export format. */+ format: ExportRequest_Format;+}++export enum ExportRequest_Format {+ FORMAT_UNSPECIFIED = 0,+ CSV = 1,+ JSON = 2,+ UNRECOGNIZED = -1,+}++export function exportRequest_FormatFromJSON(object: any): ExportRequest_Format {+ switch (object) {+ case 0:+ case "FORMAT_UNSPECIFIED":+ return ExportRequest_Format.FORMAT_UNSPECIFIED;+ case 1:+ case "CSV":+ return ExportRequest_Format.CSV;+ case 2:+ case "JSON":+ return ExportRequest_Format.JSON;+ case -1:+ case "UNRECOGNIZED":+ default:+ return ExportRequest_Format.UNRECOGNIZED;+ }+}++export function exportRequest_FormatToJSON(object: ExportRequest_Format): string {+ switch (object) {+ case ExportRequest_Format.FORMAT_UNSPECIFIED:+ return "FORMAT_UNSPECIFIED";+ case ExportRequest_Format.CSV:+ return "CSV";+ case ExportRequest_Format.JSON:+ return "JSON";+ case ExportRequest_Format.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++export interface ExportResponse {+ /** The export file content. */+ content: Uint8Array;+}+export interface QueryRequest {/*** The name is the instance name to execute the query against.@@ -149,6 +213,173 @@ export interface PrettyResponse {expectedSchema: string;}+function createBaseExportRequest(): ExportRequest {+ return { name: "", connectionDatabase: "", statement: "", limit: 0, format: 0 };+}++export const ExportRequest = {+ encode(message: ExportRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.name !== "") {+ writer.uint32(10).string(message.name);+ }+ if (message.connectionDatabase !== "") {+ writer.uint32(18).string(message.connectionDatabase);+ }+ if (message.statement !== "") {+ writer.uint32(26).string(message.statement);+ }+ if (message.limit !== 0) {+ writer.uint32(32).int32(message.limit);+ }+ if (message.format !== 0) {+ writer.uint32(40).int32(message.format);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): ExportRequest {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseExportRequest();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.name = reader.string();+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.connectionDatabase = reader.string();+ continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.statement = reader.string();+ continue;+ case 4:+ if (tag !== 32) {+ break;+ }++ message.limit = reader.int32();+ continue;+ case 5:+ if (tag !== 40) {+ break;+ }++ message.format = reader.int32() as any;+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): ExportRequest {+ return {+ name: isSet(object.name) ? String(object.name) : "",+ connectionDatabase: isSet(object.connectionDatabase) ? String(object.connectionDatabase) : "",+ statement: isSet(object.statement) ? String(object.statement) : "",+ limit: isSet(object.limit) ? Number(object.limit) : 0,+ format: isSet(object.format) ? exportRequest_FormatFromJSON(object.format) : 0,+ };+ },++ toJSON(message: ExportRequest): unknown {+ const obj: any = {};+ message.name !== undefined && (obj.name = message.name);+ message.connectionDatabase !== undefined && (obj.connectionDatabase = message.connectionDatabase);+ message.statement !== undefined && (obj.statement = message.statement);+ message.limit !== undefined && (obj.limit = Math.round(message.limit));+ message.format !== undefined && (obj.format = exportRequest_FormatToJSON(message.format));+ return obj;+ },++ create(base?: DeepPartial<ExportRequest>): ExportRequest {+ return ExportRequest.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<ExportRequest>): ExportRequest {+ const message = createBaseExportRequest();+ message.name = object.name ?? "";+ message.connectionDatabase = object.connectionDatabase ?? "";+ message.statement = object.statement ?? "";+ message.limit = object.limit ?? 0;+ message.format = object.format ?? 0;+ return message;+ },+};++function createBaseExportResponse(): ExportResponse {+ return { content: new Uint8Array() };+}++export const ExportResponse = {+ encode(message: ExportResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.content.length !== 0) {+ writer.uint32(10).bytes(message.content);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): ExportResponse {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseExportResponse();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.content = reader.bytes();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): ExportResponse {+ return { content: isSet(object.content) ? bytesFromBase64(object.content) : new Uint8Array() };+ },++ toJSON(message: ExportResponse): unknown {+ const obj: any = {};+ message.content !== undefined &&+ (obj.content = base64FromBytes(message.content !== undefined ? message.content : new Uint8Array()));+ return obj;+ },++ create(base?: DeepPartial<ExportResponse>): ExportResponse {+ return ExportResponse.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<ExportResponse>): ExportResponse {+ const message = createBaseExportResponse();+ message.content = object.content ?? new Uint8Array();+ return message;+ },+};+function createBaseQueryRequest(): QueryRequest {return { name: "", connectionDatabase: "", statement: "", limit: 0 };}@@ -1071,17 +1302,69 @@ export const SQLServiceDefinition = {},},},+ export: {+ name: "Export",+ requestType: ExportRequest,+ requestStream: false,+ responseType: ExportResponse,+ responseStream: false,+ options: {+ _unknownFields: {+ 578365826: [+ new Uint8Array([+ 34,+ 58,+ 1,+ 42,+ 34,+ 29,+ 47,+ 118,+ 49,+ 47,+ 123,+ 110,+ 97,+ 109,+ 101,+ 61,+ 105,+ 110,+ 115,+ 116,+ 97,+ 110,+ 99,+ 101,+ 115,+ 47,+ 42,+ 125,+ 58,+ 101,+ 120,+ 112,+ 111,+ 114,+ 116,+ ]),+ ],+ },+ },+ },},} as const;export interface SQLServiceImplementation<CallContextExt = {}> {pretty(request: PrettyRequest, context: CallContext & CallContextExt): Promise<DeepPartial<PrettyResponse>>;query(request: QueryRequest, context: CallContext & CallContextExt): Promise<DeepPartial<QueryResponse>>;+ export(request: ExportRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ExportResponse>>;}export interface SQLServiceClient<CallOptionsExt = {}> {pretty(request: DeepPartial<PrettyRequest>, options?: CallOptions & CallOptionsExt): Promise<PrettyResponse>;query(request: DeepPartial<QueryRequest>, options?: CallOptions & CallOptionsExt): Promise<QueryResponse>;+ export(request: DeepPartial<ExportRequest>, options?: CallOptions & CallOptionsExt): Promise<ExportResponse>;}declare var self: any | undefined;diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 3e10e03d65..bd66699602 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -469,6 +469,8 @@- [v1/sql_service.proto](#v1_sql_service-proto)- [Advice](#bytebase-v1-Advice)+ - [ExportRequest](#bytebase-v1-ExportRequest)+ - [ExportResponse](#bytebase-v1-ExportResponse)- [PrettyRequest](#bytebase-v1-PrettyRequest)- [PrettyResponse](#bytebase-v1-PrettyResponse)- [QueryRequest](#bytebase-v1-QueryRequest)@@ -478,6 +480,7 @@- [RowValue](#bytebase-v1-RowValue)- [Advice.Status](#bytebase-v1-Advice-Status)+ - [ExportRequest.Format](#bytebase-v1-ExportRequest-Format)- [SQLService](#bytebase-v1-SQLService)@@ -7344,6 +7347,40 @@ The sheet's `name` field is used to identify the sheet to update. Format: pr+<a name="bytebase-v1-ExportRequest"></a>++### ExportRequest++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name is the instance name to execute the query against. Format: instances/{instance} |+| connection_database | [string](#string) | | The connection database name to execute the query against. For PostgreSQL, it's required. For other database engines, it's optional. Use empty string to execute against without specifying a database. |+| statement | [string](#string) | | The SQL statement to execute. |+| limit | [int32](#int32) | | The maximum number of rows to return. |+| format | [ExportRequest.Format](#bytebase-v1-ExportRequest-Format) | | The export format. |+++++++<a name="bytebase-v1-ExportResponse"></a>++### ExportResponse++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| content | [bytes](#bytes) | | The export file content. |++++++<a name="bytebase-v1-PrettyRequest"></a>### PrettyRequest@@ -7485,6 +7522,19 @@ The sheet's `name` field is used to identify the sheet to update. Format: pr| ERROR | 3 | |++<a name="bytebase-v1-ExportRequest-Format"></a>++### ExportRequest.Format+++| Name | Number | Description |+| ---- | ------ | ----------- |+| FORMAT_UNSPECIFIED | 0 | |+| CSV | 1 | |+| JSON | 2 | |++@@ -7499,6 +7549,7 @@ The sheet's `name` field is used to identify the sheet to update. Format: pr| ----------- | ------------ | ------------- | ------------|| Pretty | [PrettyRequest](#bytebase-v1-PrettyRequest) | [PrettyResponse](#bytebase-v1-PrettyResponse) | || Query | [QueryRequest](#bytebase-v1-QueryRequest) | [QueryResponse](#bytebase-v1-QueryResponse) | |+| Export | [ExportRequest](#bytebase-v1-ExportRequest) | [ExportResponse](#bytebase-v1-ExportResponse) | |diff --git a/proto/generated-go/v1/sql_service.pb.go b/proto/generated-go/v1/sql_service.pb.goindex a473a5f6e5..2790b39789 100644--- a/proto/generated-go/v1/sql_service.pb.go+++ b/proto/generated-go/v1/sql_service.pb.go@@ -22,6 +22,55 @@ const (_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20))+type ExportRequest_Format int32++const (+ ExportRequest_FORMAT_UNSPECIFIED ExportRequest_Format = 0+ ExportRequest_CSV ExportRequest_Format = 1+ ExportRequest_JSON ExportRequest_Format = 2+)++// Enum value maps for ExportRequest_Format.+var (+ ExportRequest_Format_name = map[int32]string{+ 0: "FORMAT_UNSPECIFIED",+ 1: "CSV",+ 2: "JSON",+ }+ ExportRequest_Format_value = map[string]int32{+ "FORMAT_UNSPECIFIED": 0,+ "CSV": 1,+ "JSON": 2,+ }+)++func (x ExportRequest_Format) Enum() *ExportRequest_Format {+ p := new(ExportRequest_Format)+ *p = x+ return p+}++func (x ExportRequest_Format) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (ExportRequest_Format) Descriptor() protoreflect.EnumDescriptor {+ return file_v1_sql_service_proto_enumTypes[0].Descriptor()+}++func (ExportRequest_Format) Type() protoreflect.EnumType {+ return &file_v1_sql_service_proto_enumTypes[0]+}++func (x ExportRequest_Format) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use ExportRequest_Format.Descriptor instead.+func (ExportRequest_Format) EnumDescriptor() ([]byte, []int) {+ return file_v1_sql_service_proto_rawDescGZIP(), []int{0, 0}+}+type Advice_Status int32const (@@ -59,11 +108,11 @@ func (x Advice_Status) String() string {}func (Advice_Status) Descriptor() protoreflect.EnumDescriptor {- return file_v1_sql_service_proto_enumTypes[0].Descriptor()+ return file_v1_sql_service_proto_enumTypes[1].Descriptor()}func (Advice_Status) Type() protoreflect.EnumType {- return &file_v1_sql_service_proto_enumTypes[0]+ return &file_v1_sql_service_proto_enumTypes[1]}func (x Advice_Status) Number() protoreflect.EnumNumber {@@ -72,7 +121,142 @@ func (x Advice_Status) Number() protoreflect.EnumNumber {// Deprecated: Use Advice_Status.Descriptor instead.func (Advice_Status) EnumDescriptor() ([]byte, []int) {- return file_v1_sql_service_proto_rawDescGZIP(), []int{5, 0}+ return file_v1_sql_service_proto_rawDescGZIP(), []int{7, 0}+}++type ExportRequest struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The name is the instance name to execute the query against.+ // Format: instances/{instance}+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ // The connection database name to execute the query against.+ // For PostgreSQL, it's required.+ // For other database engines, it's optional. Use empty string to execute against without specifying a database.+ ConnectionDatabase string `protobuf:"bytes,2,opt,name=connection_database,json=connectionDatabase,proto3" json:"connection_database,omitempty"`+ // The SQL statement to execute.+ Statement string `protobuf:"bytes,3,opt,name=statement,proto3" json:"statement,omitempty"`+ // The maximum number of rows to return.+ Limit int32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"`+ // The export format.+ Format ExportRequest_Format `protobuf:"varint,5,opt,name=format,proto3,enum=bytebase.v1.ExportRequest_Format" json:"format,omitempty"`+}++func (x *ExportRequest) Reset() {+ *x = ExportRequest{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_sql_service_proto_msgTypes[0]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *ExportRequest) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ExportRequest) ProtoMessage() {}++func (x *ExportRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_sql_service_proto_msgTypes[0]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use ExportRequest.ProtoReflect.Descriptor instead.+func (*ExportRequest) Descriptor() ([]byte, []int) {+ return file_v1_sql_service_proto_rawDescGZIP(), []int{0}+}++func (x *ExportRequest) GetName() string {+ if x != nil {+ return x.Name+ }+ return ""+}++func (x *ExportRequest) GetConnectionDatabase() string {+ if x != nil {+ return x.ConnectionDatabase+ }+ return ""+}++func (x *ExportRequest) GetStatement() string {+ if x != nil {+ return x.Statement+ }+ return ""+}++func (x *ExportRequest) GetLimit() int32 {+ if x != nil {+ return x.Limit+ }+ return 0+}++func (x *ExportRequest) GetFormat() ExportRequest_Format {+ if x != nil {+ return x.Format+ }+ return ExportRequest_FORMAT_UNSPECIFIED+}++type ExportResponse struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The export file content.+ Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`+}++func (x *ExportResponse) Reset() {+ *x = ExportResponse{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_sql_service_proto_msgTypes[1]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *ExportResponse) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ExportResponse) ProtoMessage() {}++func (x *ExportResponse) ProtoReflect() protoreflect.Message {+ mi := &file_v1_sql_service_proto_msgTypes[1]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use ExportResponse.ProtoReflect.Descriptor instead.+func (*ExportResponse) Descriptor() ([]byte, []int) {+ return file_v1_sql_service_proto_rawDescGZIP(), []int{1}+}++func (x *ExportResponse) GetContent() []byte {+ if x != nil {+ return x.Content+ }+ return nil}type QueryRequest struct {@@ -96,7 +280,7 @@ type QueryRequest struct {func (x *QueryRequest) Reset() {*x = QueryRequest{}if protoimpl.UnsafeEnabled {- mi := &file_v1_sql_service_proto_msgTypes[0]+ mi := &file_v1_sql_service_proto_msgTypes[2]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -109,7 +293,7 @@ func (x *QueryRequest) String() string {func (*QueryRequest) ProtoMessage() {}func (x *QueryRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_sql_service_proto_msgTypes[0]+ mi := &file_v1_sql_service_proto_msgTypes[2]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -122,7 +306,7 @@ func (x *QueryRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use QueryRequest.ProtoReflect.Descriptor instead.func (*QueryRequest) Descriptor() ([]byte, []int) {- return file_v1_sql_service_proto_rawDescGZIP(), []int{0}+ return file_v1_sql_service_proto_rawDescGZIP(), []int{2}}func (x *QueryRequest) GetName() string {@@ -167,7 +351,7 @@ type QueryResponse struct {func (x *QueryResponse) Reset() {*x = QueryResponse{}if protoimpl.UnsafeEnabled {- mi := &file_v1_sql_service_proto_msgTypes[1]+ mi := &file_v1_sql_service_proto_msgTypes[3]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -180,7 +364,7 @@ func (x *QueryResponse) String() string {func (*QueryResponse) ProtoMessage() {}func (x *QueryResponse) ProtoReflect() protoreflect.Message {- mi := &file_v1_sql_service_proto_msgTypes[1]+ mi := &file_v1_sql_service_proto_msgTypes[3]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -193,7 +377,7 @@ func (x *QueryResponse) ProtoReflect() protoreflect.Message {// Deprecated: Use QueryResponse.ProtoReflect.Descriptor instead.func (*QueryResponse) Descriptor() ([]byte, []int) {- return file_v1_sql_service_proto_rawDescGZIP(), []int{1}+ return file_v1_sql_service_proto_rawDescGZIP(), []int{3}}func (x *QueryResponse) GetResults() []*QueryResult {@@ -231,7 +415,7 @@ type QueryResult struct {func (x *QueryResult) Reset() {*x = QueryResult{}if protoimpl.UnsafeEnabled {- mi := &file_v1_sql_service_proto_msgTypes[2]+ mi := &file_v1_sql_service_proto_msgTypes[4]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -244,7 +428,7 @@ func (x *QueryResult) String() string {func (*QueryResult) ProtoMessage() {}func (x *QueryResult) ProtoReflect() protoreflect.Message {- mi := &file_v1_sql_service_proto_msgTypes[2]+ mi := &file_v1_sql_service_proto_msgTypes[4]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -257,7 +441,7 @@ func (x *QueryResult) ProtoReflect() protoreflect.Message {// Deprecated: Use QueryResult.ProtoReflect.Descriptor instead.func (*QueryResult) Descriptor() ([]byte, []int) {- return file_v1_sql_service_proto_rawDescGZIP(), []int{2}+ return file_v1_sql_service_proto_rawDescGZIP(), []int{4}}func (x *QueryResult) GetColumnNames() []string {@@ -307,7 +491,7 @@ type QueryRow struct {func (x *QueryRow) Reset() {*x = QueryRow{}if protoimpl.UnsafeEnabled {- mi := &file_v1_sql_service_proto_msgTypes[3]+ mi := &file_v1_sql_service_proto_msgTypes[5]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -320,7 +504,7 @@ func (x *QueryRow) String() string {func (*QueryRow) ProtoMessage() {}func (x *QueryRow) ProtoReflect() protoreflect.Message {- mi := &file_v1_sql_service_proto_msgTypes[3]+ mi := &file_v1_sql_service_proto_msgTypes[5]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -333,7 +517,7 @@ func (x *QueryRow) ProtoReflect() protoreflect.Message {// Deprecated: Use QueryRow.ProtoReflect.Descriptor instead.func (*QueryRow) Descriptor() ([]byte, []int) {- return file_v1_sql_service_proto_rawDescGZIP(), []int{3}+ return file_v1_sql_service_proto_rawDescGZIP(), []int{5}}func (x *QueryRow) GetValues() []*RowValue {@@ -367,7 +551,7 @@ type RowValue struct {func (x *RowValue) Reset() {*x = RowValue{}if protoimpl.UnsafeEnabled {- mi := &file_v1_sql_service_proto_msgTypes[4]+ mi := &file_v1_sql_service_proto_msgTypes[6]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -380,7 +564,7 @@ func (x *RowValue) String() string {func (*RowValue) ProtoMessage() {}func (x *RowValue) ProtoReflect() protoreflect.Message {- mi := &file_v1_sql_service_proto_msgTypes[4]+ mi := &file_v1_sql_service_proto_msgTypes[6]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -393,7 +577,7 @@ func (x *RowValue) ProtoReflect() protoreflect.Message {// Deprecated: Use RowValue.ProtoReflect.Descriptor instead.func (*RowValue) Descriptor() ([]byte, []int) {- return file_v1_sql_service_proto_rawDescGZIP(), []int{4}+ return file_v1_sql_service_proto_rawDescGZIP(), []int{6}}func (m *RowValue) GetKind() isRowValue_Kind {@@ -573,7 +757,7 @@ type Advice struct {func (x *Advice) Reset() {*x = Advice{}if protoimpl.UnsafeEnabled {- mi := &file_v1_sql_service_proto_msgTypes[5]+ mi := &file_v1_sql_service_proto_msgTypes[7]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -586,7 +770,7 @@ func (x *Advice) String() string {func (*Advice) ProtoMessage() {}func (x *Advice) ProtoReflect() protoreflect.Message {- mi := &file_v1_sql_service_proto_msgTypes[5]+ mi := &file_v1_sql_service_proto_msgTypes[7]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -599,7 +783,7 @@ func (x *Advice) ProtoReflect() protoreflect.Message {// Deprecated: Use Advice.ProtoReflect.Descriptor instead.func (*Advice) Descriptor() ([]byte, []int) {- return file_v1_sql_service_proto_rawDescGZIP(), []int{5}+ return file_v1_sql_service_proto_rawDescGZIP(), []int{7}}func (x *Advice) GetStatus() Advice_Status {@@ -660,7 +844,7 @@ type PrettyRequest struct {func (x *PrettyRequest) Reset() {*x = PrettyRequest{}if protoimpl.UnsafeEnabled {- mi := &file_v1_sql_service_proto_msgTypes[6]+ mi := &file_v1_sql_service_proto_msgTypes[8]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -673,7 +857,7 @@ func (x *PrettyRequest) String() string {func (*PrettyRequest) ProtoMessage() {}func (x *PrettyRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_sql_service_proto_msgTypes[6]+ mi := &file_v1_sql_service_proto_msgTypes[8]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -686,7 +870,7 @@ func (x *PrettyRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use PrettyRequest.ProtoReflect.Descriptor instead.func (*PrettyRequest) Descriptor() ([]byte, []int) {- return file_v1_sql_service_proto_rawDescGZIP(), []int{6}+ return file_v1_sql_service_proto_rawDescGZIP(), []int{8}}func (x *PrettyRequest) GetEngine() Engine {@@ -724,7 +908,7 @@ type PrettyResponse struct {func (x *PrettyResponse) Reset() {*x = PrettyResponse{}if protoimpl.UnsafeEnabled {- mi := &file_v1_sql_service_proto_msgTypes[7]+ mi := &file_v1_sql_service_proto_msgTypes[9]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -737,7 +921,7 @@ func (x *PrettyResponse) String() string {func (*PrettyResponse) ProtoMessage() {}func (x *PrettyResponse) ProtoReflect() protoreflect.Message {- mi := &file_v1_sql_service_proto_msgTypes[7]+ mi := &file_v1_sql_service_proto_msgTypes[9]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -750,7 +934,7 @@ func (x *PrettyResponse) ProtoReflect() protoreflect.Message {// Deprecated: Use PrettyResponse.ProtoReflect.Descriptor instead.func (*PrettyResponse) Descriptor() ([]byte, []int) {- return file_v1_sql_service_proto_rawDescGZIP(), []int{7}+ return file_v1_sql_service_proto_rawDescGZIP(), []int{9}}func (x *PrettyResponse) GetCurrentSchema() string {@@ -779,112 +963,138 @@ var file_v1_sql_service_proto_rawDesc = []byte{0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,0x1a, 0x0f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,- 0x6f, 0x22, 0x8c, 0x01, 0x0a, 0x0c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,- 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x13, 0x63,- 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,- 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63,- 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09,- 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69,- 0x6d, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74,- 0x22, 0x72, 0x0a, 0x0d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,- 0x65, 0x12, 0x32, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03,- 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65,- 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x2d, 0x0a, 0x07, 0x61, 0x64, 0x76, 0x69, 0x63, 0x65, 0x73,- 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x61, 0x64, 0x76,- 0x69, 0x63, 0x65, 0x73, 0x22, 0xb5, 0x01, 0x0a, 0x0b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65,- 0x73, 0x75, 0x6c, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e,- 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6c, 0x75,- 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x63, 0x6f, 0x6c, 0x75, 0x6d,- 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03,- 0x28, 0x09, 0x52, 0x0f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x61,- 0x6d, 0x65, 0x73, 0x12, 0x29, 0x0a, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28,- 0x0b, 0x32, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x6f, 0x77, 0x52, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x12, 0x16,- 0x0a, 0x06, 0x6d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x08, 0x52, 0x06,- 0x6d, 0x61, 0x73, 0x6b, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18,- 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x39, 0x0a, 0x08,- 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x6f, 0x77, 0x12, 0x2d, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75,- 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x77, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52,- 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0xcb, 0x03, 0x0a, 0x08, 0x52, 0x6f, 0x77, 0x56,- 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3b, 0x0a, 0x0a, 0x6e, 0x75, 0x6c, 0x6c, 0x5f, 0x76, 0x61, 0x6c,- 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,- 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4e, 0x75, 0x6c, 0x6c, 0x56,- 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x09, 0x6e, 0x75, 0x6c, 0x6c, 0x56, 0x61, 0x6c, 0x75,- 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,- 0x02, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c,- 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0b, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x76, 0x61, 0x6c, 0x75,- 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0a, 0x62, 0x79, 0x74, 0x65, 0x73,- 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f,- 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x0b, 0x64,- 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0b, 0x66, 0x6c,- 0x6f, 0x61, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, 0x48,- 0x00, 0x52, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a,- 0x0b, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01,- 0x28, 0x05, 0x48, 0x00, 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65,- 0x12, 0x21, 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,- 0x07, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61,- 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61,- 0x6c, 0x75, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x72,- 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x75, 0x69, 0x6e, 0x74,- 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00,- 0x52, 0x0b, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a,- 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0a, 0x20,- 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x0b, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c,- 0x75, 0x65, 0x12, 0x39, 0x0a, 0x0b, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75,- 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,- 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48,- 0x00, 0x52, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x06, 0x0a,- 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0xf3, 0x01, 0x0a, 0x06, 0x41, 0x64, 0x76, 0x69, 0x63, 0x65,- 0x12, 0x32, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,- 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41,- 0x64, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74,- 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01,- 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c,- 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x18,- 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x65,- 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x16, 0x0a, 0x06,- 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65,- 0x74, 0x61, 0x69, 0x6c, 0x22, 0x45, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16,- 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,- 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53,- 0x53, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02,- 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x22, 0x8c, 0x01, 0x0a, 0x0d,- 0x50, 0x72, 0x65, 0x74, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a,- 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69,- 0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x75,- 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d,- 0x61, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x63,- 0x68, 0x65, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x65,- 0x63, 0x74, 0x65, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x60, 0x0a, 0x0e, 0x50, 0x72,- 0x65, 0x74, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x0e,- 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x63, 0x68,- 0x65, 0x6d, 0x61, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f,- 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x65, 0x78,- 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x32, 0xd3, 0x01, 0x0a,- 0x0a, 0x53, 0x51, 0x4c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5c, 0x0a, 0x06, 0x50,- 0x72, 0x65, 0x74, 0x74, 0x79, 0x12, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x74, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,- 0x74, 0x1a, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x50, 0x72, 0x65, 0x74, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x19,- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x3a, 0x01, 0x2a, 0x22, 0x0e, 0x2f, 0x76, 0x31, 0x2f, 0x73,- 0x71, 0x6c, 0x2f, 0x70, 0x72, 0x65, 0x74, 0x74, 0x79, 0x12, 0x67, 0x0a, 0x05, 0x51, 0x75, 0x65,- 0x72, 0x79, 0x12, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e,+ 0x6f, 0x22, 0xfd, 0x01, 0x0a, 0x0d, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75,+ 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x13,+ 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62,+ 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x63, 0x6f, 0x6e, 0x6e, 0x65,+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x1c, 0x0a,+ 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c,+ 0x69, 0x6d, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69,+ 0x74, 0x12, 0x39, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28,+ 0x0e, 0x32, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f,+ 0x72, 0x6d, 0x61, 0x74, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x33, 0x0a, 0x06,+ 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, 0x22, 0x2a, 0x0a, 0x0e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f,+ 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x01,+ 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x8c, 0x01,+ 0x0a, 0x0c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17,+ 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,+ 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x13, 0x63, 0x6f, 0x6e, 0x6e, 0x65,+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x02,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,+ 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x74,+ 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61,+ 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18,+ 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x72, 0x0a, 0x0d,+ 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a,+ 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65,+ 0x72, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74,+ 0x73, 0x12, 0x2d, 0x0a, 0x07, 0x61, 0x64, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03,+ 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x41, 0x64, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x61, 0x64, 0x76, 0x69, 0x63, 0x65, 0x73,+ 0x22, 0xb5, 0x01, 0x0a, 0x0b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74,+ 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73,+ 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61,+ 0x6d, 0x65, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x74, 0x79,+ 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f,+ 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12,+ 0x29, 0x0a, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e,0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72,- 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02,- 0x21, 0x3a, 0x01, 0x2a, 0x22, 0x1c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,- 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x71, 0x75, 0x65,- 0x72, 0x79, 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,+ 0x79, 0x52, 0x6f, 0x77, 0x52, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61,+ 0x73, 0x6b, 0x65, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x08, 0x52, 0x06, 0x6d, 0x61, 0x73, 0x6b,+ 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x39, 0x0a, 0x08, 0x51, 0x75, 0x65, 0x72,+ 0x79, 0x52, 0x6f, 0x77, 0x12, 0x2d, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01,+ 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x77, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c,+ 0x75, 0x65, 0x73, 0x22, 0xcb, 0x03, 0x0a, 0x08, 0x52, 0x6f, 0x77, 0x56, 0x61, 0x6c, 0x75, 0x65,+ 0x12, 0x3b, 0x0a, 0x0a, 0x6e, 0x75, 0x6c, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01,+ 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,+ 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4e, 0x75, 0x6c, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65,+ 0x48, 0x00, 0x52, 0x09, 0x6e, 0x75, 0x6c, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a,+ 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x08, 0x48, 0x00, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21,+ 0x0a, 0x0b, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20,+ 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0a, 0x62, 0x79, 0x74, 0x65, 0x73, 0x56, 0x61, 0x6c, 0x75,+ 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75,+ 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x6f, 0x75, 0x62, 0x6c,+ 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0b, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f,+ 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x0a, 0x66,+ 0x6c, 0x6f, 0x61, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0b, 0x69, 0x6e, 0x74,+ 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00,+ 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0b,+ 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28,+ 0x03, 0x48, 0x00, 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12,+ 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,+ 0x08, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56,+ 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x76,+ 0x61, 0x6c, 0x75, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00, 0x52, 0x0b, 0x75, 0x69,+ 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x75, 0x69, 0x6e,+ 0x74, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x48,+ 0x00, 0x52, 0x0b, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x39,+ 0x0a, 0x0b, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0b, 0x20,+ 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,+ 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x76,+ 0x61, 0x6c, 0x75, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e,+ 0x64, 0x22, 0xf3, 0x01, 0x0a, 0x06, 0x41, 0x64, 0x76, 0x69, 0x63, 0x65, 0x12, 0x32, 0x0a, 0x06,+ 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x76, 0x69, 0x63,+ 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,+ 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04,+ 0x63, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f,+ 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e,+ 0x74, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x05, 0x20, 0x01,+ 0x28, 0x05, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61,+ 0x69, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c,+ 0x22, 0x45, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54,+ 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,+ 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x01, 0x12,+ 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05,+ 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x22, 0x8c, 0x01, 0x0a, 0x0d, 0x50, 0x72, 0x65, 0x74,+ 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x6e, 0x67,+ 0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x06,+ 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e,+ 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d,+ 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x27, 0x0a,+ 0x0f, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64,+ 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x60, 0x0a, 0x0e, 0x50, 0x72, 0x65, 0x74, 0x74, 0x79,+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x75, 0x72, 0x72,+ 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12,+ 0x27, 0x0a, 0x0f, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x63, 0x68, 0x65,+ 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74,+ 0x65, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x32, 0xc0, 0x02, 0x0a, 0x0a, 0x53, 0x51, 0x4c,+ 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5c, 0x0a, 0x06, 0x50, 0x72, 0x65, 0x74, 0x74,+ 0x79, 0x12, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x50, 0x72, 0x65, 0x74, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x74,+ 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93,+ 0x02, 0x13, 0x3a, 0x01, 0x2a, 0x22, 0x0e, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x71, 0x6c, 0x2f, 0x70,+ 0x72, 0x65, 0x74, 0x74, 0x79, 0x12, 0x67, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x19,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65,+ 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73,+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x3a, 0x01, 0x2a,+ 0x22, 0x1c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74,+ 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x6b,+ 0x0a, 0x06, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71,+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,+ 0x65, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x3a, 0x01, 0x2a, 0x22, 0x1d, 0x2f, 0x76,+ 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,+ 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 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 (@@ -899,40 +1109,46 @@ func file_v1_sql_service_proto_rawDescGZIP() []byte {return file_v1_sql_service_proto_rawDescData}-var file_v1_sql_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)-var file_v1_sql_service_proto_msgTypes = make([]protoimpl.MessageInfo, 8)+var file_v1_sql_service_proto_enumTypes = make([]protoimpl.EnumInfo, 2)+var file_v1_sql_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10)var file_v1_sql_service_proto_goTypes = []interface{}{- (Advice_Status)(0), // 0: bytebase.v1.Advice.Status- (*QueryRequest)(nil), // 1: bytebase.v1.QueryRequest- (*QueryResponse)(nil), // 2: bytebase.v1.QueryResponse- (*QueryResult)(nil), // 3: bytebase.v1.QueryResult- (*QueryRow)(nil), // 4: bytebase.v1.QueryRow- (*RowValue)(nil), // 5: bytebase.v1.RowValue- (*Advice)(nil), // 6: bytebase.v1.Advice- (*PrettyRequest)(nil), // 7: bytebase.v1.PrettyRequest- (*PrettyResponse)(nil), // 8: bytebase.v1.PrettyResponse- (structpb.NullValue)(0), // 9: google.protobuf.NullValue- (*structpb.Value)(nil), // 10: google.protobuf.Value- (Engine)(0), // 11: bytebase.v1.Engine+ (ExportRequest_Format)(0), // 0: bytebase.v1.ExportRequest.Format+ (Advice_Status)(0), // 1: bytebase.v1.Advice.Status+ (*ExportRequest)(nil), // 2: bytebase.v1.ExportRequest+ (*ExportResponse)(nil), // 3: bytebase.v1.ExportResponse+ (*QueryRequest)(nil), // 4: bytebase.v1.QueryRequest+ (*QueryResponse)(nil), // 5: bytebase.v1.QueryResponse+ (*QueryResult)(nil), // 6: bytebase.v1.QueryResult+ (*QueryRow)(nil), // 7: bytebase.v1.QueryRow+ (*RowValue)(nil), // 8: bytebase.v1.RowValue+ (*Advice)(nil), // 9: bytebase.v1.Advice+ (*PrettyRequest)(nil), // 10: bytebase.v1.PrettyRequest+ (*PrettyResponse)(nil), // 11: bytebase.v1.PrettyResponse+ (structpb.NullValue)(0), // 12: google.protobuf.NullValue+ (*structpb.Value)(nil), // 13: google.protobuf.Value+ (Engine)(0), // 14: bytebase.v1.Engine}var file_v1_sql_service_proto_depIdxs = []int32{- 3, // 0: bytebase.v1.QueryResponse.results:type_name -> bytebase.v1.QueryResult- 6, // 1: bytebase.v1.QueryResponse.advices:type_name -> bytebase.v1.Advice- 4, // 2: bytebase.v1.QueryResult.rows:type_name -> bytebase.v1.QueryRow- 5, // 3: bytebase.v1.QueryRow.values:type_name -> bytebase.v1.RowValue- 9, // 4: bytebase.v1.RowValue.null_value:type_name -> google.protobuf.NullValue- 10, // 5: bytebase.v1.RowValue.value_value:type_name -> google.protobuf.Value- 0, // 6: bytebase.v1.Advice.status:type_name -> bytebase.v1.Advice.Status- 11, // 7: bytebase.v1.PrettyRequest.engine:type_name -> bytebase.v1.Engine- 7, // 8: bytebase.v1.SQLService.Pretty:input_type -> bytebase.v1.PrettyRequest- 1, // 9: bytebase.v1.SQLService.Query:input_type -> bytebase.v1.QueryRequest- 8, // 10: bytebase.v1.SQLService.Pretty:output_type -> bytebase.v1.PrettyResponse- 2, // 11: bytebase.v1.SQLService.Query:output_type -> bytebase.v1.QueryResponse- 10, // [10:12] is the sub-list for method output_type- 8, // [8:10] is the sub-list for method input_type- 8, // [8:8] is the sub-list for extension type_name- 8, // [8:8] is the sub-list for extension extendee- 0, // [0:8] is the sub-list for field type_name+ 0, // 0: bytebase.v1.ExportRequest.format:type_name -> bytebase.v1.ExportRequest.Format+ 6, // 1: bytebase.v1.QueryResponse.results:type_name -> bytebase.v1.QueryResult+ 9, // 2: bytebase.v1.QueryResponse.advices:type_name -> bytebase.v1.Advice+ 7, // 3: bytebase.v1.QueryResult.rows:type_name -> bytebase.v1.QueryRow+ 8, // 4: bytebase.v1.QueryRow.values:type_name -> bytebase.v1.RowValue+ 12, // 5: bytebase.v1.RowValue.null_value:type_name -> google.protobuf.NullValue+ 13, // 6: bytebase.v1.RowValue.value_value:type_name -> google.protobuf.Value+ 1, // 7: bytebase.v1.Advice.status:type_name -> bytebase.v1.Advice.Status+ 14, // 8: bytebase.v1.PrettyRequest.engine:type_name -> bytebase.v1.Engine+ 10, // 9: bytebase.v1.SQLService.Pretty:input_type -> bytebase.v1.PrettyRequest+ 4, // 10: bytebase.v1.SQLService.Query:input_type -> bytebase.v1.QueryRequest+ 2, // 11: bytebase.v1.SQLService.Export:input_type -> bytebase.v1.ExportRequest+ 11, // 12: bytebase.v1.SQLService.Pretty:output_type -> bytebase.v1.PrettyResponse+ 5, // 13: bytebase.v1.SQLService.Query:output_type -> bytebase.v1.QueryResponse+ 3, // 14: bytebase.v1.SQLService.Export:output_type -> bytebase.v1.ExportResponse+ 12, // [12:15] is the sub-list for method output_type+ 9, // [9:12] is the sub-list for method input_type+ 9, // [9:9] is the sub-list for extension type_name+ 9, // [9:9] is the sub-list for extension extendee+ 0, // [0:9] is the sub-list for field type_name}func init() { file_v1_sql_service_proto_init() }@@ -943,7 +1159,7 @@ func file_v1_sql_service_proto_init() {file_v1_common_proto_init()if !protoimpl.UnsafeEnabled {file_v1_sql_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*QueryRequest); i {+ switch v := v.(*ExportRequest); i {case 0:return &v.statecase 1:@@ -955,7 +1171,7 @@ func file_v1_sql_service_proto_init() {}}file_v1_sql_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*QueryResponse); i {+ switch v := v.(*ExportResponse); i {case 0:return &v.statecase 1:@@ -967,7 +1183,7 @@ func file_v1_sql_service_proto_init() {}}file_v1_sql_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*QueryResult); i {+ switch v := v.(*QueryRequest); i {case 0:return &v.statecase 1:@@ -979,7 +1195,7 @@ func file_v1_sql_service_proto_init() {}}file_v1_sql_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*QueryRow); i {+ switch v := v.(*QueryResponse); i {case 0:return &v.statecase 1:@@ -991,7 +1207,7 @@ func file_v1_sql_service_proto_init() {}}file_v1_sql_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*RowValue); i {+ switch v := v.(*QueryResult); i {case 0:return &v.statecase 1:@@ -1003,7 +1219,7 @@ func file_v1_sql_service_proto_init() {}}file_v1_sql_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*Advice); i {+ switch v := v.(*QueryRow); i {case 0:return &v.statecase 1:@@ -1015,7 +1231,7 @@ func file_v1_sql_service_proto_init() {}}file_v1_sql_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*PrettyRequest); i {+ switch v := v.(*RowValue); i {case 0:return &v.statecase 1:@@ -1027,6 +1243,30 @@ func file_v1_sql_service_proto_init() {}}file_v1_sql_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*Advice); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_sql_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*PrettyRequest); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_sql_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*PrettyResponse); i {case 0:return &v.state@@ -1039,7 +1279,7 @@ func file_v1_sql_service_proto_init() {}}}- file_v1_sql_service_proto_msgTypes[4].OneofWrappers = []interface{}{+ file_v1_sql_service_proto_msgTypes[6].OneofWrappers = []interface{}{(*RowValue_NullValue)(nil),(*RowValue_BoolValue)(nil),(*RowValue_BytesValue)(nil),@@ -1057,8 +1297,8 @@ func file_v1_sql_service_proto_init() {File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_v1_sql_service_proto_rawDesc,- NumEnums: 1,- NumMessages: 8,+ NumEnums: 2,+ NumMessages: 10,NumExtensions: 0,NumServices: 1,},diff --git a/proto/generated-go/v1/sql_service.pb.gw.go b/proto/generated-go/v1/sql_service.pb.gw.goindex 8c4d75e057..9aef8cbed9 100644--- a/proto/generated-go/v1/sql_service.pb.gw.go+++ b/proto/generated-go/v1/sql_service.pb.gw.go@@ -133,6 +133,74 @@ func local_request_SQLService_Query_0(ctx context.Context, marshaler runtime.Mar}+func request_SQLService_Export_0(ctx context.Context, marshaler runtime.Marshaler, client SQLServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq ExportRequest+ var metadata runtime.ServerMetadata++ newReader, berr := utilities.IOReaderFactory(req.Body)+ if berr != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)+ }+ if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")+ }++ protoReq.Name, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)+ }++ msg, err := client.Export(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err++}++func local_request_SQLService_Export_0(ctx context.Context, marshaler runtime.Marshaler, server SQLServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq ExportRequest+ var metadata runtime.ServerMetadata++ newReader, berr := utilities.IOReaderFactory(req.Body)+ if berr != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)+ }+ if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")+ }++ protoReq.Name, err = runtime.String(val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)+ }++ msg, err := server.Export(ctx, &protoReq)+ return msg, metadata, err++}+// RegisterSQLServiceHandlerServer registers the http handlers for service SQLService to "mux".// UnaryRPC :call SQLServiceServer directly.// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.@@ -189,6 +257,31 @@ func RegisterSQLServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux,})+ mux.Handle("POST", pattern_SQLService_Export_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ var stream runtime.ServerTransportStream+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.SQLService/Export", runtime.WithHTTPPathPattern("/v1/{name=instances/*}:export"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_SQLService_Export_0(annotatedContext, inboundMarshaler, server, req, pathParams)+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_SQLService_Export_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })+return nil}@@ -274,6 +367,28 @@ func RegisterSQLServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux,})+ mux.Handle("POST", pattern_SQLService_Export_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.SQLService/Export", runtime.WithHTTPPathPattern("/v1/{name=instances/*}:export"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_SQLService_Export_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_SQLService_Export_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })+return nil}@@ -281,10 +396,14 @@ var (pattern_SQLService_Pretty_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "sql", "pretty"}, ""))pattern_SQLService_Query_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "instances", "name"}, "query"))++ pattern_SQLService_Export_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "instances", "name"}, "export")))var (forward_SQLService_Pretty_0 = runtime.ForwardResponseMessageforward_SQLService_Query_0 = runtime.ForwardResponseMessage++ forward_SQLService_Export_0 = runtime.ForwardResponseMessage)diff --git a/proto/generated-go/v1/sql_service_grpc.pb.go b/proto/generated-go/v1/sql_service_grpc.pb.goindex 59f0ab97ac..de1433d774 100644--- a/proto/generated-go/v1/sql_service_grpc.pb.go+++ b/proto/generated-go/v1/sql_service_grpc.pb.go@@ -21,6 +21,7 @@ const _ = grpc.SupportPackageIsVersion7const (SQLService_Pretty_FullMethodName = "/bytebase.v1.SQLService/Pretty"SQLService_Query_FullMethodName = "/bytebase.v1.SQLService/Query"+ SQLService_Export_FullMethodName = "/bytebase.v1.SQLService/Export")// SQLServiceClient is the client API for SQLService service.@@ -29,6 +30,7 @@ const (type SQLServiceClient interface {Pretty(ctx context.Context, in *PrettyRequest, opts ...grpc.CallOption) (*PrettyResponse, error)Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error)+ Export(ctx context.Context, in *ExportRequest, opts ...grpc.CallOption) (*ExportResponse, error)}type sQLServiceClient struct {@@ -57,12 +59,22 @@ func (c *sQLServiceClient) Query(ctx context.Context, in *QueryRequest, opts ...return out, nil}+func (c *sQLServiceClient) Export(ctx context.Context, in *ExportRequest, opts ...grpc.CallOption) (*ExportResponse, error) {+ out := new(ExportResponse)+ err := c.cc.Invoke(ctx, SQLService_Export_FullMethodName, in, out, opts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}+// SQLServiceServer is the server API for SQLService service.// All implementations must embed UnimplementedSQLServiceServer// for forward compatibilitytype SQLServiceServer interface {Pretty(context.Context, *PrettyRequest) (*PrettyResponse, error)Query(context.Context, *QueryRequest) (*QueryResponse, error)+ Export(context.Context, *ExportRequest) (*ExportResponse, error)mustEmbedUnimplementedSQLServiceServer()}@@ -76,6 +88,9 @@ func (UnimplementedSQLServiceServer) Pretty(context.Context, *PrettyRequest) (*Pfunc (UnimplementedSQLServiceServer) Query(context.Context, *QueryRequest) (*QueryResponse, error) {return nil, status.Errorf(codes.Unimplemented, "method Query not implemented")}+func (UnimplementedSQLServiceServer) Export(context.Context, *ExportRequest) (*ExportResponse, error) {+ return nil, status.Errorf(codes.Unimplemented, "method Export not implemented")+}func (UnimplementedSQLServiceServer) mustEmbedUnimplementedSQLServiceServer() {}// UnsafeSQLServiceServer may be embedded to opt out of forward compatibility for this service.@@ -125,6 +140,24 @@ func _SQLService_Query_Handler(srv interface{}, ctx context.Context, dec func(inreturn interceptor(ctx, in, info, handler)}+func _SQLService_Export_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(ExportRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(SQLServiceServer).Export(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: SQLService_Export_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(SQLServiceServer).Export(ctx, req.(*ExportRequest))+ }+ return interceptor(ctx, in, info, handler)+}+// SQLService_ServiceDesc is the grpc.ServiceDesc for SQLService service.// It's only intended for direct use with grpc.RegisterService,// and not to be introspected or modified (even as a copy)@@ -140,6 +173,10 @@ var SQLService_ServiceDesc = grpc.ServiceDesc{MethodName: "Query",Handler: _SQLService_Query_Handler,},+ {+ MethodName: "Export",+ Handler: _SQLService_Export_Handler,+ },},Streams: []grpc.StreamDesc{},Metadata: "v1/sql_service.proto",diff --git a/proto/v1/sql_service.proto b/proto/v1/sql_service.protoindex 76c130f694..6ddeeb041f 100644--- a/proto/v1/sql_service.proto+++ b/proto/v1/sql_service.proto@@ -22,6 +22,42 @@ service SQLService {body: "*"};}+ rpc Export(ExportRequest) returns (ExportResponse) {+ option (google.api.http) = {+ post: "/v1/{name=instances/*}:export"+ body: "*"+ };+ }+}++message ExportRequest {+ enum Format {+ FORMAT_UNSPECIFIED = 0;+ CSV = 1;+ JSON = 2;+ }+ // The name is the instance name to execute the query against.+ // Format: instances/{instance}+ string name = 1 [(google.api.field_behavior) = REQUIRED];++ // The connection database name to execute the query against.+ // For PostgreSQL, it's required.+ // For other database engines, it's optional. Use empty string to execute against without specifying a database.+ string connection_database = 2;++ // The SQL statement to execute.+ string statement = 3;++ // The maximum number of rows to return.+ int32 limit = 4;++ // The export format.+ Format format = 5;+}++message ExportResponse {+ // The export file content.+ bytes content = 1;}message QueryRequest {