Skip to content

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

refactor: clean up unused ChangedResources fields and reorganize proto (#18462)

Danny Xu85ca7c6d6f3e
diff --git a/backend/api/mcp/gen/openapi.yaml b/backend/api/mcp/gen/openapi.yaml
index f1651632e6..96e69b2bec 100644
--- a/backend/api/mcp/gen/openapi.yaml
+++ b/backend/api/mcp/gen/openapi.yaml
@@ -7757,113 +7757,6 @@ components:
title: BoundingBox
additionalProperties: false
description: BoundingBox defines the spatial bounds for GEOMETRY spatial indexes.
- bytebase.v1.ChangedResourceDatabase:
- type: object
- properties:
- name:
- type: string
- title: name
- schemas:
- type: array
- items:
- $ref: '#/components/schemas/bytebase.v1.ChangedResourceSchema'
- title: schemas
- title: ChangedResourceDatabase
- additionalProperties: false
- bytebase.v1.ChangedResourceFunction:
- type: object
- properties:
- name:
- type: string
- title: name
- ranges:
- type: array
- items:
- $ref: '#/components/schemas/bytebase.v1.Range'
- title: ranges
- description: The ranges of sub-strings correspond to the statements on the sheet.
- title: ChangedResourceFunction
- additionalProperties: false
- bytebase.v1.ChangedResourceProcedure:
- type: object
- properties:
- name:
- type: string
- title: name
- ranges:
- type: array
- items:
- $ref: '#/components/schemas/bytebase.v1.Range'
- title: ranges
- description: The ranges of sub-strings correspond to the statements on the sheet.
- title: ChangedResourceProcedure
- additionalProperties: false
- bytebase.v1.ChangedResourceSchema:
- type: object
- properties:
- name:
- type: string
- title: name
- tables:
- type: array
- items:
- $ref: '#/components/schemas/bytebase.v1.ChangedResourceTable'
- title: tables
- views:
- type: array
- items:
- $ref: '#/components/schemas/bytebase.v1.ChangedResourceView'
- title: views
- functions:
- type: array
- items:
- $ref: '#/components/schemas/bytebase.v1.ChangedResourceFunction'
- title: functions
- procedures:
- type: array
- items:
- $ref: '#/components/schemas/bytebase.v1.ChangedResourceProcedure'
- title: procedures
- title: ChangedResourceSchema
- additionalProperties: false
- bytebase.v1.ChangedResourceTable:
- type: object
- properties:
- name:
- type: string
- title: name
- ranges:
- type: array
- items:
- $ref: '#/components/schemas/bytebase.v1.Range'
- title: ranges
- description: The ranges of sub-strings correspond to the statements on the sheet.
- title: ChangedResourceTable
- additionalProperties: false
- bytebase.v1.ChangedResourceView:
- type: object
- properties:
- name:
- type: string
- title: name
- ranges:
- type: array
- items:
- $ref: '#/components/schemas/bytebase.v1.Range'
- title: ranges
- description: The ranges of sub-strings correspond to the statements on the sheet.
- title: ChangedResourceView
- additionalProperties: false
- bytebase.v1.ChangedResources:
- type: object
- properties:
- databases:
- type: array
- items:
- $ref: '#/components/schemas/bytebase.v1.ChangedResourceDatabase'
- title: databases
- title: ChangedResources
- additionalProperties: false
bytebase.v1.Changelog:
type: object
properties:
@@ -7929,9 +7822,6 @@ components:
description: |-
Could be empty
Or present but not found if deleted
- changedResources:
- title: changed_resources
- $ref: '#/components/schemas/bytebase.v1.ChangedResources'
type:
title: type
$ref: '#/components/schemas/bytebase.v1.Changelog.Type'
@@ -13318,9 +13208,6 @@ components:
- string
title: affected_rows
format: int64
- changedResources:
- title: changed_resources
- $ref: '#/components/schemas/bytebase.v1.ChangedResources'
title: SqlSummaryReport
additionalProperties: false
bytebase.v1.PlanCheckRun.Status:
diff --git a/backend/api/v1/database_service.go b/backend/api/v1/database_service.go
index 5a866c5ab4..47eedd0497 100644
--- a/backend/api/v1/database_service.go
+++ b/backend/api/v1/database_service.go
@@ -999,63 +999,6 @@ func (s *DatabaseService) getParserEngine(ctx context.Context, request *v1pb.Dif
return common.ConvertToParserEngine(instance.Metadata.GetEngine())
}
-func convertToChangedResources(r *storepb.ChangedResources) *v1pb.ChangedResources {
- if r == nil {
- return nil
- }
- result := &v1pb.ChangedResources{}
- for _, database := range r.Databases {
- v1Database := &v1pb.ChangedResourceDatabase{
- Name: database.Name,
- }
- for _, schema := range database.Schemas {
- v1Schema := &v1pb.ChangedResourceSchema{
- Name: schema.Name,
- }
- for _, table := range schema.Tables {
- var ranges []*v1pb.Range
- for _, r := range table.Ranges {
- ranges = append(ranges, &v1pb.Range{
- Start: r.Start,
- End: r.End,
- })
- }
- v1Schema.Tables = append(v1Schema.Tables, &v1pb.ChangedResourceTable{
- Name: table.Name,
- Ranges: ranges,
- })
- }
- slices.SortFunc(v1Schema.Tables, func(a, b *v1pb.ChangedResourceTable) int {
- if a.Name < b.Name {
- return -1
- } else if a.Name > b.Name {
- return 1
- }
- return 0
- })
- v1Database.Schemas = append(v1Database.Schemas, v1Schema)
- }
- slices.SortFunc(v1Database.Schemas, func(a, b *v1pb.ChangedResourceSchema) int {
- if a.Name < b.Name {
- return -1
- } else if a.Name > b.Name {
- return 1
- }
- return 0
- })
- result.Databases = append(result.Databases, v1Database)
- }
- slices.SortFunc(result.Databases, func(a, b *v1pb.ChangedResourceDatabase) int {
- if a.Name < b.Name {
- return -1
- } else if a.Name > b.Name {
- return 1
- }
- return 0
- })
- return result
-}
-
func (s *DatabaseService) convertToDatabase(ctx context.Context, database *store.DatabaseMessage) (*v1pb.Database, error) {
instance, err := s.store.GetInstance(ctx, &store.FindInstanceMessage{
ResourceID: &database.InstanceID,
diff --git a/backend/api/v1/database_service_changelog.go b/backend/api/v1/database_service_changelog.go
index 59ca51c74a..9c48c2d1a7 100644
--- a/backend/api/v1/database_service_changelog.go
+++ b/backend/api/v1/database_service_changelog.go
@@ -124,22 +124,21 @@ func (*DatabaseService) convertToChangelog(d *store.DatabaseMessage, c *store.Ch
changelogType := convertToChangelogType(c.Payload.GetType())
cl := &v1pb.Changelog{
- Name: common.FormatChangelog(d.InstanceID, d.DatabaseName, c.UID),
- CreateTime: timestamppb.New(c.CreatedAt),
- Status: convertToChangelogStatus(c.Status),
- Statement: "",
- StatementSize: 0,
- StatementSheet: "",
- Schema: "",
- SchemaSize: 0,
- PrevSchema: "",
- PrevSchemaSize: 0,
- Issue: c.Payload.GetIssue(),
- TaskRun: c.Payload.GetTaskRun(),
- Version: c.Payload.GetVersion(),
- Revision: "",
- ChangedResources: convertToChangedResources(c.Payload.GetChangedResources()),
- Type: changelogType,
+ Name: common.FormatChangelog(d.InstanceID, d.DatabaseName, c.UID),
+ CreateTime: timestamppb.New(c.CreatedAt),
+ Status: convertToChangelogStatus(c.Status),
+ Statement: "",
+ StatementSize: 0,
+ StatementSheet: "",
+ Schema: "",
+ SchemaSize: 0,
+ PrevSchema: "",
+ PrevSchemaSize: 0,
+ Issue: c.Payload.GetIssue(),
+ TaskRun: c.Payload.GetTaskRun(),
+ Version: c.Payload.GetVersion(),
+ Revision: "",
+ Type: changelogType,
}
if sheet := c.Payload.GetSheet(); sheet != "" {
diff --git a/backend/api/v1/plan_service_converter.go b/backend/api/v1/plan_service_converter.go
index a52c9a64db..825cd4d392 100644
--- a/backend/api/v1/plan_service_converter.go
+++ b/backend/api/v1/plan_service_converter.go
@@ -363,9 +363,8 @@ func convertToPlanCheckRunResult(result *storepb.PlanCheckRunResult_Result) *v1p
case *storepb.PlanCheckRunResult_Result_SqlSummaryReport_:
resultV1.Report = &v1pb.PlanCheckRun_Result_SqlSummaryReport_{
SqlSummaryReport: &v1pb.PlanCheckRun_Result_SqlSummaryReport{
- StatementTypes: report.SqlSummaryReport.StatementTypes,
- AffectedRows: report.SqlSummaryReport.AffectedRows,
- ChangedResources: convertToChangedResources(report.SqlSummaryReport.ChangedResources),
+ StatementTypes: report.SqlSummaryReport.StatementTypes,
+ AffectedRows: report.SqlSummaryReport.AffectedRows,
},
}
case *storepb.PlanCheckRunResult_Result_SqlReviewReport_:
diff --git a/backend/generated-go/store/changelog.pb.go b/backend/generated-go/store/changelog.pb.go
index 5b39052f3a..7bb047d453 100644
--- a/backend/generated-go/store/changelog.pb.go
+++ b/backend/generated-go/store/changelog.pb.go
@@ -81,8 +81,7 @@ type ChangelogPayload struct {
Issue string `protobuf:"bytes,2,opt,name=issue,proto3" json:"issue,omitempty"`
// The revision uid.
// optional
- Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"`
- ChangedResources *ChangedResources `protobuf:"bytes,4,opt,name=changed_resources,json=changedResources,proto3" json:"changed_resources,omitempty"`
+ Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"`
// The sheet that holds the content.
// Format: projects/{project}/sheets/{sheet}
Sheet string `protobuf:"bytes,5,opt,name=sheet,proto3" json:"sheet,omitempty"`
@@ -148,13 +147,6 @@ func (x *ChangelogPayload) GetRevision() int64 {
return 0
}
-func (x *ChangelogPayload) GetChangedResources() *ChangedResources {
- if x != nil {
- return x.ChangedResources
- }
- return nil
-}
-
func (x *ChangelogPayload) GetSheet() string {
if x != nil {
return x.Sheet
@@ -190,409 +182,15 @@ func (x *ChangelogPayload) GetDumpVersion() int32 {
return 0
}
-type ChangedResources struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Databases []*ChangedResourceDatabase `protobuf:"bytes,1,rep,name=databases,proto3" json:"databases,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ChangedResources) Reset() {
- *x = ChangedResources{}
- mi := &file_store_changelog_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ChangedResources) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ChangedResources) ProtoMessage() {}
-
-func (x *ChangedResources) ProtoReflect() protoreflect.Message {
- mi := &file_store_changelog_proto_msgTypes[1]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use ChangedResources.ProtoReflect.Descriptor instead.
-func (*ChangedResources) Descriptor() ([]byte, []int) {
- return file_store_changelog_proto_rawDescGZIP(), []int{1}
-}
-
-func (x *ChangedResources) GetDatabases() []*ChangedResourceDatabase {
- if x != nil {
- return x.Databases
- }
- return nil
-}
-
-type ChangedResourceDatabase struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- Schemas []*ChangedResourceSchema `protobuf:"bytes,2,rep,name=schemas,proto3" json:"schemas,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ChangedResourceDatabase) Reset() {
- *x = ChangedResourceDatabase{}
- mi := &file_store_changelog_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ChangedResourceDatabase) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ChangedResourceDatabase) ProtoMessage() {}
-
-func (x *ChangedResourceDatabase) ProtoReflect() protoreflect.Message {
- mi := &file_store_changelog_proto_msgTypes[2]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use ChangedResourceDatabase.ProtoReflect.Descriptor instead.
-func (*ChangedResourceDatabase) Descriptor() ([]byte, []int) {
- return file_store_changelog_proto_rawDescGZIP(), []int{2}
-}
-
-func (x *ChangedResourceDatabase) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
-}
-
-func (x *ChangedResourceDatabase) GetSchemas() []*ChangedResourceSchema {
- if x != nil {
- return x.Schemas
- }
- return nil
-}
-
-type ChangedResourceSchema struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- Tables []*ChangedResourceTable `protobuf:"bytes,2,rep,name=tables,proto3" json:"tables,omitempty"`
- Views []*ChangedResourceView `protobuf:"bytes,3,rep,name=views,proto3" json:"views,omitempty"`
- Functions []*ChangedResourceFunction `protobuf:"bytes,4,rep,name=functions,proto3" json:"functions,omitempty"`
- Procedures []*ChangedResourceProcedure `protobuf:"bytes,5,rep,name=procedures,proto3" json:"procedures,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ChangedResourceSchema) Reset() {
- *x = ChangedResourceSchema{}
- mi := &file_store_changelog_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ChangedResourceSchema) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ChangedResourceSchema) ProtoMessage() {}
-
-func (x *ChangedResourceSchema) ProtoReflect() protoreflect.Message {
- mi := &file_store_changelog_proto_msgTypes[3]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use ChangedResourceSchema.ProtoReflect.Descriptor instead.
-func (*ChangedResourceSchema) Descriptor() ([]byte, []int) {
- return file_store_changelog_proto_rawDescGZIP(), []int{3}
-}
-
-func (x *ChangedResourceSchema) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
-}
-
-func (x *ChangedResourceSchema) GetTables() []*ChangedResourceTable {
- if x != nil {
- return x.Tables
- }
- return nil
-}
-
-func (x *ChangedResourceSchema) GetViews() []*ChangedResourceView {
- if x != nil {
- return x.Views
- }
- return nil
-}
-
-func (x *ChangedResourceSchema) GetFunctions() []*ChangedResourceFunction {
- if x != nil {
- return x.Functions
- }
- return nil
-}
-
-func (x *ChangedResourceSchema) GetProcedures() []*ChangedResourceProcedure {
- if x != nil {
- return x.Procedures
- }
- return nil
-}
-
-type ChangedResourceTable struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- // The estimated row count of the table.
- TableRows int64 `protobuf:"varint,2,opt,name=table_rows,json=tableRows,proto3" json:"table_rows,omitempty"`
- // The ranges of substrings correspond to the statements on the sheet.
- Ranges []*Range `protobuf:"bytes,3,rep,name=ranges,proto3" json:"ranges,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ChangedResourceTable) Reset() {
- *x = ChangedResourceTable{}
- mi := &file_store_changelog_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ChangedResourceTable) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ChangedResourceTable) ProtoMessage() {}
-
-func (x *ChangedResourceTable) ProtoReflect() protoreflect.Message {
- mi := &file_store_changelog_proto_msgTypes[4]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use ChangedResourceTable.ProtoReflect.Descriptor instead.
-func (*ChangedResourceTable) Descriptor() ([]byte, []int) {
- return file_store_changelog_proto_rawDescGZIP(), []int{4}
-}
-
-func (x *ChangedResourceTable) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
-}
-
-func (x *ChangedResourceTable) GetTableRows() int64 {
- if x != nil {
- return x.TableRows
- }
- return 0
-}
-
-func (x *ChangedResourceTable) GetRanges() []*Range {
- if x != nil {
- return x.Ranges
- }
- return nil
-}
-
-type ChangedResourceView struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- // The ranges of substrings correspond to the statements on the sheet.
- Ranges []*Range `protobuf:"bytes,2,rep,name=ranges,proto3" json:"ranges,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ChangedResourceView) Reset() {
- *x = ChangedResourceView{}
- mi := &file_store_changelog_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ChangedResourceView) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ChangedResourceView) ProtoMessage() {}
-
-func (x *ChangedResourceView) ProtoReflect() protoreflect.Message {
- mi := &file_store_changelog_proto_msgTypes[5]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use ChangedResourceView.ProtoReflect.Descriptor instead.
-func (*ChangedResourceView) Descriptor() ([]byte, []int) {
- return file_store_changelog_proto_rawDescGZIP(), []int{5}
-}
-
-func (x *ChangedResourceView) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
-}
-
-func (x *ChangedResourceView) GetRanges() []*Range {
- if x != nil {
- return x.Ranges
- }
- return nil
-}
-
-type ChangedResourceFunction struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- // The ranges of substrings correspond to the statements on the sheet.
- Ranges []*Range `protobuf:"bytes,2,rep,name=ranges,proto3" json:"ranges,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ChangedResourceFunction) Reset() {
- *x = ChangedResourceFunction{}
- mi := &file_store_changelog_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ChangedResourceFunction) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ChangedResourceFunction) ProtoMessage() {}
-
-func (x *ChangedResourceFunction) ProtoReflect() protoreflect.Message {
- mi := &file_store_changelog_proto_msgTypes[6]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use ChangedResourceFunction.ProtoReflect.Descriptor instead.
-func (*ChangedResourceFunction) Descriptor() ([]byte, []int) {
- return file_store_changelog_proto_rawDescGZIP(), []int{6}
-}
-
-func (x *ChangedResourceFunction) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
-}
-
-func (x *ChangedResourceFunction) GetRanges() []*Range {
- if x != nil {
- return x.Ranges
- }
- return nil
-}
-
-type ChangedResourceProcedure struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- // The ranges of substrings correspond to the statements on the sheet.
- Ranges []*Range `protobuf:"bytes,2,rep,name=ranges,proto3" json:"ranges,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ChangedResourceProcedure) Reset() {
- *x = ChangedResourceProcedure{}
- mi := &file_store_changelog_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ChangedResourceProcedure) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ChangedResourceProcedure) ProtoMessage() {}
-
-func (x *ChangedResourceProcedure) ProtoReflect() protoreflect.Message {
- mi := &file_store_changelog_proto_msgTypes[7]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use ChangedResourceProcedure.ProtoReflect.Descriptor instead.
-func (*ChangedResourceProcedure) Descriptor() ([]byte, []int) {
- return file_store_changelog_proto_rawDescGZIP(), []int{7}
-}
-
-func (x *ChangedResourceProcedure) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
-}
-
-func (x *ChangedResourceProcedure) GetRanges() []*Range {
- if x != nil {
- return x.Ranges
- }
- return nil
-}
-
var File_store_changelog_proto protoreflect.FileDescriptor
const file_store_changelog_proto_rawDesc = "" +
"\n" +
- "\x15store/changelog.proto\x12\x0ebytebase.store\x1a\x12store/common.proto\"\x9d\x03\n" +
+ "\x15store/changelog.proto\x12\x0ebytebase.store\"\xce\x02\n" +
"\x10ChangelogPayload\x12\x19\n" +
"\btask_run\x18\x01 \x01(\tR\ataskRun\x12\x14\n" +
"\x05issue\x18\x02 \x01(\tR\x05issue\x12\x1a\n" +
- "\brevision\x18\x03 \x01(\x03R\brevision\x12M\n" +
- "\x11changed_resources\x18\x04 \x01(\v2 .bytebase.store.ChangedResourcesR\x10changedResources\x12\x14\n" +
+ "\brevision\x18\x03 \x01(\x03R\brevision\x12\x14\n" +
"\x05sheet\x18\x05 \x01(\tR\x05sheet\x12\x18\n" +
"\aversion\x18\x06 \x01(\tR\aversion\x129\n" +
"\x04type\x18\a \x01(\x0e2%.bytebase.store.ChangelogPayload.TypeR\x04type\x12\x1d\n" +
@@ -603,34 +201,7 @@ const file_store_changelog_proto_rawDesc = "" +
"\x10TYPE_UNSPECIFIED\x10\x00\x12\f\n" +
"\bBASELINE\x10\x01\x12\v\n" +
"\aMIGRATE\x10\x02\x12\a\n" +
- "\x03SDL\x10\x03\"Y\n" +
- "\x10ChangedResources\x12E\n" +
- "\tdatabases\x18\x01 \x03(\v2'.bytebase.store.ChangedResourceDatabaseR\tdatabases\"n\n" +
- "\x17ChangedResourceDatabase\x12\x12\n" +
- "\x04name\x18\x01 \x01(\tR\x04name\x12?\n" +
- "\aschemas\x18\x02 \x03(\v2%.bytebase.store.ChangedResourceSchemaR\aschemas\"\xb5\x02\n" +
- "\x15ChangedResourceSchema\x12\x12\n" +
- "\x04name\x18\x01 \x01(\tR\x04name\x12<\n" +
- "\x06tables\x18\x02 \x03(\v2$.bytebase.store.ChangedResourceTableR\x06tables\x129\n" +
- "\x05views\x18\x03 \x03(\v2#.bytebase.store.ChangedResourceViewR\x05views\x12E\n" +
- "\tfunctions\x18\x04 \x03(\v2'.bytebase.store.ChangedResourceFunctionR\tfunctions\x12H\n" +
- "\n" +
- "procedures\x18\x05 \x03(\v2(.bytebase.store.ChangedResourceProcedureR\n" +
- "procedures\"x\n" +
- "\x14ChangedResourceTable\x12\x12\n" +
- "\x04name\x18\x01 \x01(\tR\x04name\x12\x1d\n" +
- "\n" +
- "table_rows\x18\x02 \x01(\x03R\ttableRows\x12-\n" +
- "\x06ranges\x18\x03 \x03(\v2\x15.bytebase.store.RangeR\x06ranges\"X\n" +
- "\x13ChangedResourceView\x12\x12\n" +
- "\x04name\x18\x01 \x01(\tR\x04name\x12-\n" +
- "\x06ranges\x18\x02 \x03(\v2\x15.bytebase.store.RangeR\x06ranges\"\\\n" +
- "\x17ChangedResourceFunction\x12\x12\n" +
- "\x04name\x18\x01 \x01(\tR\x04name\x12-\n" +
- "\x06ranges\x18\x02 \x03(\v2\x15.bytebase.store.RangeR\x06ranges\"]\n" +
- "\x18ChangedResourceProcedure\x12\x12\n" +
- "\x04name\x18\x01 \x01(\tR\x04name\x12-\n" +
- "\x06ranges\x18\x02 \x03(\v2\x15.bytebase.store.RangeR\x06rangesB\x91\x01\n" +
+ "\x03SDL\x10\x03B\x91\x01\n" +
"\x12com.bytebase.storeB\x0eChangelogProtoP\x01Z\x12generated-go/store\xa2\x02\x03BSX\xaa\x02\x0eBytebase.Store\xca\x02\x0eBytebase\\Store\xe2\x02\x1aBytebase\\Store\\GPBMetadata\xea\x02\x0fBytebase::Storeb\x06proto3"
var (
@@ -646,37 +217,18 @@ func file_store_changelog_proto_rawDescGZIP() []byte {
}
var file_store_changelog_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
-var file_store_changelog_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
+var file_store_changelog_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_store_changelog_proto_goTypes = []any{
- (ChangelogPayload_Type)(0), // 0: bytebase.store.ChangelogPayload.Type
- (*ChangelogPayload)(nil), // 1: bytebase.store.ChangelogPayload
- (*ChangedResources)(nil), // 2: bytebase.store.ChangedResources
- (*ChangedResourceDatabase)(nil), // 3: bytebase.store.ChangedResourceDatabase
- (*ChangedResourceSchema)(nil), // 4: bytebase.store.ChangedResourceSchema
- (*ChangedResourceTable)(nil), // 5: bytebase.store.ChangedResourceTable
- (*ChangedResourceView)(nil), // 6: bytebase.store.ChangedResourceView
- (*ChangedResourceFunction)(nil), // 7: bytebase.store.ChangedResourceFunction
- (*ChangedResourceProcedure)(nil), // 8: bytebase.store.ChangedResourceProcedure
- (*Range)(nil), // 9: bytebase.store.Range
+ (ChangelogPayload_Type)(0), // 0: bytebase.store.ChangelogPayload.Type
+ (*ChangelogPayload)(nil), // 1: bytebase.store.ChangelogPayload
}
var file_store_changelog_proto_depIdxs = []int32{
- 2, // 0: bytebase.store.ChangelogPayload.changed_resources:type_name -> bytebase.store.ChangedResources
- 0, // 1: bytebase.store.ChangelogPayload.type:type_name -> bytebase.store.ChangelogPayload.Type
- 3, // 2: bytebase.store.ChangedResources.databases:type_name -> bytebase.store.ChangedResourceDatabase
- 4, // 3: bytebase.store.ChangedResourceDatabase.schemas:type_name -> bytebase.store.ChangedResourceSchema
- 5, // 4: bytebase.store.ChangedResourceSchema.tables:type_name -> bytebase.store.ChangedResourceTable
- 6, // 5: bytebase.store.ChangedResourceSchema.views:type_name -> bytebase.store.ChangedResourceView
- 7, // 6: bytebase.store.ChangedResourceSchema.functions:type_name -> bytebase.store.ChangedResourceFunction
- 8, // 7: bytebase.store.ChangedResourceSchema.procedures:type_name -> bytebase.store.ChangedResourceProcedure
- 9, // 8: bytebase.store.ChangedResourceTable.ranges:type_name -> bytebase.store.Range
- 9, // 9: bytebase.store.ChangedResourceView.ranges:type_name -> bytebase.store.Range
- 9, // 10: bytebase.store.ChangedResourceFunction.ranges:type_name -> bytebase.store.Range
- 9, // 11: bytebase.store.ChangedResourceProcedure.ranges:type_name -> bytebase.store.Range
- 12, // [12:12] is the sub-list for method output_type
- 12, // [12:12] is the sub-list for method input_type
- 12, // [12:12] is the sub-list for extension type_name
- 12, // [12:12] is the sub-list for extension extendee
- 0, // [0:12] is the sub-list for field type_name
+ 0, // 0: bytebase.store.ChangelogPayload.type:type_name -> bytebase.store.ChangelogPayload.Type
+ 1, // [1:1] is the sub-list for method output_type
+ 1, // [1:1] is the sub-list for method input_type
+ 1, // [1:1] is the sub-list for extension type_name
+ 1, // [1:1] is the sub-list for extension extendee
+ 0, // [0:1] is the sub-list for field type_name
}
func init() { file_store_changelog_proto_init() }
@@ -684,14 +236,13 @@ func file_store_changelog_proto_init() {
if File_store_changelog_proto != nil {
return
}
- file_store_common_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_store_changelog_proto_rawDesc), len(file_store_changelog_proto_rawDesc)),
NumEnums: 1,
- NumMessages: 8,
+ NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
diff --git a/backend/generated-go/store/changelog_equal.pb.go b/backend/generated-go/store/changelog_equal.pb.go
index ec2b542f5a..2f7c659e10 100644
--- a/backend/generated-go/store/changelog_equal.pb.go
+++ b/backend/generated-go/store/changelog_equal.pb.go
@@ -19,9 +19,6 @@ func (x *ChangelogPayload) Equal(y *ChangelogPayload) bool {
if x.Revision != y.Revision {
return false
}
- if !x.ChangedResources.Equal(y.ChangedResources) {
- return false
- }
if x.Sheet != y.Sheet {
return false
}
@@ -39,174 +36,3 @@ func (x *ChangelogPayload) Equal(y *ChangelogPayload) bool {
}
return true
}
-
-func (x *ChangedResources) Equal(y *ChangedResources) bool {
- if x == y {
- return true
- }
- if x == nil || y == nil {
- return x == nil && y == nil
- }
- if len(x.Databases) != len(y.Databases) {
- return false
- }
- for i := 0; i < len(x.Databases); i++ {
- if !x.Databases[i].Equal(y.Databases[i]) {
- return false
- }
- }
- return true
-}
-
-func (x *ChangedResourceDatabase) Equal(y *ChangedResourceDatabase) bool {
- if x == y {
- return true
- }
- if x == nil || y == nil {
- return x == nil && y == nil
- }
- if x.Name != y.Name {
- return false
- }
- if len(x.Schemas) != len(y.Schemas) {
- return false
- }
- for i := 0; i < len(x.Schemas); i++ {
- if !x.Schemas[i].Equal(y.Schemas[i]) {
- return false
- }
- }
- return true
-}
-
-func (x *ChangedResourceSchema) Equal(y *ChangedResourceSchema) bool {
- if x == y {
- return true
- }
- if x == nil || y == nil {
- return x == nil && y == nil
- }
- if x.Name != y.Name {
- return false
- }
- if len(x.Tables) != len(y.Tables) {
- return false
- }
- for i := 0; i < len(x.Tables); i++ {
- if !x.Tables[i].Equal(y.Tables[i]) {
- return false
- }
- }
- if len(x.Views) != len(y.Views) {
- return false
- }
- for i := 0; i < len(x.Views); i++ {
- if !x.Views[i].Equal(y.Views[i]) {
- return false
- }
- }
- if len(x.Functions) != len(y.Functions) {
- return false
- }
- for i := 0; i < len(x.Functions); i++ {
- if !x.Functions[i].Equal(y.Functions[i]) {
- return false
- }
- }
- if len(x.Procedures) != len(y.Procedures) {
- return false
- }
- for i := 0; i < len(x.Procedures); i++ {
- if !x.Procedures[i].Equal(y.Procedures[i]) {
- return false
- }
- }
- return true
-}
-
-func (x *ChangedResourceTable) Equal(y *ChangedResourceTable) bool {
- if x == y {
- return true
- }
- if x == nil || y == nil {
- return x == nil && y == nil
- }
- if x.Name != y.Name {
- return false
- }
- if x.TableRows != y.TableRows {
- return false
- }
- if len(x.Ranges) != len(y.Ranges) {
- return false
- }
- for i := 0; i < len(x.Ranges); i++ {
- if !x.Ranges[i].Equal(y.Ranges[i]) {
- return false
- }
- }
- return true
-}
-
-func (x *ChangedResourceView) Equal(y *ChangedResourceView) bool {
- if x == y {
- return true
- }
- if x == nil || y == nil {
- return x == nil && y == nil
- }
- if x.Name != y.Name {
- return false
- }
- if len(x.Ranges) != len(y.Ranges) {
- return false
- }
- for i := 0; i < len(x.Ranges); i++ {
- if !x.Ranges[i].Equal(y.Ranges[i]) {
- return false
- }
- }
- return true
-}
-
-func (x *ChangedResourceFunction) Equal(y *ChangedResourceFunction) bool {
- if x == y {
- return true
- }
- if x == nil || y == nil {
- return x == nil && y == nil
- }
- if x.Name != y.Name {
- return false
- }
- if len(x.Ranges) != len(y.Ranges) {
- return false
- }
- for i := 0; i < len(x.Ranges); i++ {
- if !x.Ranges[i].Equal(y.Ranges[i]) {
- return false
- }
- }
- return true
-}
-
-func (x *ChangedResourceProcedure) Equal(y *ChangedResourceProcedure) bool {
- if x == y {
- return true
- }
- if x == nil || y == nil {
- return x == nil && y == nil
- }
- if x.Name != y.Name {
- return false
- }
- if len(x.Ranges) != len(y.Ranges) {
- return false
- }
- for i := 0; i < len(x.Ranges); i++ {
- if !x.Ranges[i].Equal(y.Ranges[i]) {
- return false
- }
- }
- return true
-}
diff --git a/backend/generated-go/store/instance_change_history.pb.go b/backend/generated-go/store/instance_change_history.pb.go
deleted file mode 100644
index ce9861a394..0000000000
--- a/backend/generated-go/store/instance_change_history.pb.go
+++ /dev/null
@@ -1,126 +0,0 @@
-// Code generated by protoc-gen-go. DO NOT EDIT.
-// versions:
-// protoc-gen-go v1.36.11
-// protoc (unknown)
-// source: store/instance_change_history.proto
-
-package store
-
-import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- unsafe "unsafe"
-)
-
-const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
-)
-
-type InstanceChangeHistoryPayload struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- ChangedResources *ChangedResources `protobuf:"bytes,1,opt,name=changed_resources,json=changedResources,proto3" json:"changed_resources,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *InstanceChangeHistoryPayload) Reset() {
- *x = InstanceChangeHistoryPayload{}
- mi := &file_store_instance_change_history_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *InstanceChangeHistoryPayload) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*InstanceChangeHistoryPayload) ProtoMessage() {}
-
-func (x *InstanceChangeHistoryPayload) ProtoReflect() protoreflect.Message {
- mi := &file_store_instance_change_history_proto_msgTypes[0]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use InstanceChangeHistoryPayload.ProtoReflect.Descriptor instead.
-func (*InstanceChangeHistoryPayload) Descriptor() ([]byte, []int) {
- return file_store_instance_change_history_proto_rawDescGZIP(), []int{0}
-}
-
-func (x *InstanceChangeHistoryPayload) GetChangedResources() *ChangedResources {
- if x != nil {
- return x.ChangedResources
- }
- return nil
-}
-
-var File_store_instance_change_history_proto protoreflect.FileDescriptor
-
-const file_store_instance_change_history_proto_rawDesc = "" +
- "\n" +
- "#store/instance_change_history.proto\x12\x0ebytebase.store\x1a\x15store/changelog.proto\"m\n" +
- "\x1cInstanceChangeHistoryPayload\x12M\n" +
- "\x11changed_resources\x18\x01 \x01(\v2 .bytebase.store.ChangedResourcesR\x10changedResourcesB\x9d\x01\n" +
- "\x12com.bytebase.storeB\x1aInstanceChangeHistoryProtoP\x01Z\x12generated-go/store\xa2\x02\x03BSX\xaa\x02\x0eBytebase.Store\xca\x02\x0eBytebase\\Store\xe2\x02\x1aBytebase\\Store\\GPBMetadata\xea\x02\x0fBytebase::Storeb\x06proto3"
-
-var (
- file_store_instance_change_history_proto_rawDescOnce sync.Once
- file_store_instance_change_history_proto_rawDescData []byte
-)
-
-func file_store_instance_change_history_proto_rawDescGZIP() []byte {
- file_store_instance_change_history_proto_rawDescOnce.Do(func() {
- file_store_instance_change_history_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_store_instance_change_history_proto_rawDesc), len(file_store_instance_change_history_proto_rawDesc)))
- })
- return file_store_instance_change_history_proto_rawDescData
-}
-
-var file_store_instance_change_history_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
-var file_store_instance_change_history_proto_goTypes = []any{
- (*InstanceChangeHistoryPayload)(nil), // 0: bytebase.store.InstanceChangeHistoryPayload
- (*ChangedResources)(nil), // 1: bytebase.store.ChangedResources
-}
-var file_store_instance_change_history_proto_depIdxs = []int32{
- 1, // 0: bytebase.store.InstanceChangeHistoryPayload.changed_resources:type_name -> bytebase.store.ChangedResources
- 1, // [1:1] is the sub-list for method output_type
- 1, // [1:1] is the sub-list for method input_type
- 1, // [1:1] is the sub-list for extension type_name
- 1, // [1:1] is the sub-list for extension extendee
- 0, // [0:1] is the sub-list for field type_name
-}
-
-func init() { file_store_instance_change_history_proto_init() }
-func file_store_instance_change_history_proto_init() {
- if File_store_instance_change_history_proto != nil {
- return
- }
- file_store_changelog_proto_init()
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_store_instance_change_history_proto_rawDesc), len(file_store_instance_change_history_proto_rawDesc)),
- NumEnums: 0,
- NumMessages: 1,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_store_instance_change_history_proto_goTypes,
- DependencyIndexes: file_store_instance_change_history_proto_depIdxs,
- MessageInfos: file_store_instance_change_history_proto_msgTypes,
- }.Build()
- File_store_instance_change_history_proto = out.File
- file_store_instance_change_history_proto_goTypes = nil
- file_store_instance_change_history_proto_depIdxs = nil
-}
diff --git a/backend/generated-go/store/instance_change_history_equal.pb.go b/backend/generated-go/store/instance_change_history_equal.pb.go
deleted file mode 100644
index ce803a2c67..0000000000
--- a/backend/generated-go/store/instance_change_history_equal.pb.go
+++ /dev/null
@@ -1,17 +0,0 @@
-// Code generated by protoc-gen-equal-go. DO NOT EDIT.
-// source: store/instance_change_history.proto
-
-package store
-
-func (x *InstanceChangeHistoryPayload) Equal(y *InstanceChangeHistoryPayload) bool {
- if x == y {
- return true
- }
- if x == nil || y == nil {
- return x == nil && y == nil
- }
- if !x.ChangedResources.Equal(y.ChangedResources) {
- return false
- }
- return true
-}
diff --git a/backend/generated-go/store/plan_check_run.pb.go b/backend/generated-go/store/plan_check_run.pb.go
index 7c6d3db4ff..e19b5f5b71 100644
--- a/backend/generated-go/store/plan_check_run.pb.go
+++ b/backend/generated-go/store/plan_check_run.pb.go
@@ -168,6 +168,207 @@ func (x *PlanCheckRunResult) GetError() string {
return ""
}
+type ChangedResources struct {
+ state protoimpl.MessageState `protogen:"open.v1"`
+ Databases []*ChangedResourceDatabase `protobuf:"bytes,1,rep,name=databases,proto3" json:"databases,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
+}
+
+func (x *ChangedResources) Reset() {
+ *x = ChangedResources{}
+ mi := &file_store_plan_check_run_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *ChangedResources) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ChangedResources) ProtoMessage() {}
+
+func (x *ChangedResources) ProtoReflect() protoreflect.Message {
+ mi := &file_store_plan_check_run_proto_msgTypes[2]
+ if x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use ChangedResources.ProtoReflect.Descriptor instead.
+func (*ChangedResources) Descriptor() ([]byte, []int) {
+ return file_store_plan_check_run_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *ChangedResources) GetDatabases() []*ChangedResourceDatabase {
+ if x != nil {
+ return x.Databases
+ }
+ return nil
+}
+
+type ChangedResourceDatabase struct {
+ state protoimpl.MessageState `protogen:"open.v1"`
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ Schemas []*ChangedResourceSchema `protobuf:"bytes,2,rep,name=schemas,proto3" json:"schemas,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
+}
+
+func (x *ChangedResourceDatabase) Reset() {
+ *x = ChangedResourceDatabase{}
+ mi := &file_store_plan_check_run_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *ChangedResourceDatabase) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ChangedResourceDatabase) ProtoMessage() {}
+
+func (x *ChangedResourceDatabase) ProtoReflect() protoreflect.Message {
+ mi := &file_store_plan_check_run_proto_msgTypes[3]
+ if x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use ChangedResourceDatabase.ProtoReflect.Descriptor instead.
+func (*ChangedResourceDatabase) Descriptor() ([]byte, []int) {
+ return file_store_plan_check_run_proto_rawDescGZIP(), []int{3}
+}
+
+func (x *ChangedResourceDatabase) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *ChangedResourceDatabase) GetSchemas() []*ChangedResourceSchema {
+ if x != nil {
+ return x.Schemas
+ }
+ return nil
+}
+
+type ChangedResourceSchema struct {
+ state protoimpl.MessageState `protogen:"open.v1"`
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ Tables []*ChangedResourceTable `protobuf:"bytes,2,rep,name=tables,proto3" json:"tables,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
+}
+
+func (x *ChangedResourceSchema) Reset() {
+ *x = ChangedResourceSchema{}
+ mi := &file_store_plan_check_run_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *ChangedResourceSchema) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ChangedResourceSchema) ProtoMessage() {}
+
+func (x *ChangedResourceSchema) ProtoReflect() protoreflect.Message {
+ mi := &file_store_plan_check_run_proto_msgTypes[4]
+ if x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use ChangedResourceSchema.ProtoReflect.Descriptor instead.
+func (*ChangedResourceSchema) Descriptor() ([]byte, []int) {
+ return file_store_plan_check_run_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *ChangedResourceSchema) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *ChangedResourceSchema) GetTables() []*ChangedResourceTable {
+ if x != nil {
+ return x.Tables
+ }
+ return nil
+}
+
+type ChangedResourceTable struct {
+ state protoimpl.MessageState `protogen:"open.v1"`
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The estimated row count of the table.
+ TableRows int64 `protobuf:"varint,2,opt,name=table_rows,json=tableRows,proto3" json:"table_rows,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
+}
+
+func (x *ChangedResourceTable) Reset() {
+ *x = ChangedResourceTable{}
+ mi := &file_store_plan_check_run_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *ChangedResourceTable) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ChangedResourceTable) ProtoMessage() {}
+
+func (x *ChangedResourceTable) ProtoReflect() protoreflect.Message {
+ mi := &file_store_plan_check_run_proto_msgTypes[5]
+ if x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use ChangedResourceTable.ProtoReflect.Descriptor instead.
+func (*ChangedResourceTable) Descriptor() ([]byte, []int) {
+ return file_store_plan_check_run_proto_rawDescGZIP(), []int{5}
+}
+
+func (x *ChangedResourceTable) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *ChangedResourceTable) GetTableRows() int64 {
+ if x != nil {
+ return x.TableRows
+ }
+ return 0
+}
+
type PlanCheckRunResult_Result struct {
state protoimpl.MessageState `protogen:"open.v1"`
Status Advice_Status `protobuf:"varint,1,opt,name=status,proto3,enum=bytebase.store.Advice_Status" json:"status,omitempty"`
@@ -185,7 +386,7 @@ type PlanCheckRunResult_Result struct {
func (x *PlanCheckRunResult_Result) Reset() {
*x = PlanCheckRunResult_Result{}
- mi := &file_store_plan_check_run_proto_msgTypes[3]
+ mi := &file_store_plan_check_run_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -197,7 +398,7 @@ func (x *PlanCheckRunResult_Result) String() string {
func (*PlanCheckRunResult_Result) ProtoMessage() {}
func (x *PlanCheckRunResult_Result) ProtoReflect() protoreflect.Message {
- mi := &file_store_plan_check_run_proto_msgTypes[3]
+ mi := &file_store_plan_check_run_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -294,7 +495,7 @@ type PlanCheckRunResult_Result_SqlSummaryReport struct {
func (x *PlanCheckRunResult_Result_SqlSummaryReport) Reset() {
*x = PlanCheckRunResult_Result_SqlSummaryReport{}
- mi := &file_store_plan_check_run_proto_msgTypes[4]
+ mi := &file_store_plan_check_run_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -306,7 +507,7 @@ func (x *PlanCheckRunResult_Result_SqlSummaryReport) String() string {
func (*PlanCheckRunResult_Result_SqlSummaryReport) ProtoMessage() {}
func (x *PlanCheckRunResult_Result_SqlSummaryReport) ProtoReflect() protoreflect.Message {
- mi := &file_store_plan_check_run_proto_msgTypes[4]
+ mi := &file_store_plan_check_run_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -354,7 +555,7 @@ type PlanCheckRunResult_Result_SqlReviewReport struct {
func (x *PlanCheckRunResult_Result_SqlReviewReport) Reset() {
*x = PlanCheckRunResult_Result_SqlReviewReport{}
- mi := &file_store_plan_check_run_proto_msgTypes[5]
+ mi := &file_store_plan_check_run_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -366,7 +567,7 @@ func (x *PlanCheckRunResult_Result_SqlReviewReport) String() string {
func (*PlanCheckRunResult_Result_SqlReviewReport) ProtoMessage() {}
func (x *PlanCheckRunResult_Result_SqlReviewReport) ProtoReflect() protoreflect.Message {
- mi := &file_store_plan_check_run_proto_msgTypes[5]
+ mi := &file_store_plan_check_run_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -400,7 +601,7 @@ var File_store_plan_check_run_proto protoreflect.FileDescriptor
const file_store_plan_check_run_proto_rawDesc = "" +
"\n" +
- "\x1astore/plan_check_run.proto\x12\x0ebytebase.store\x1a\x12store/advice.proto\x1a\x15store/changelog.proto\x1a\x12store/common.proto\"\xfd\x02\n" +
+ "\x1astore/plan_check_run.proto\x12\x0ebytebase.store\x1a\x12store/advice.proto\x1a\x12store/common.proto\"\xfd\x02\n" +
"\x12PlanCheckRunConfig\x12\x1b\n" +
"\tsheet_uid\x18\x01 \x01(\x05R\bsheetUid\x12\x1f\n" +
"\vinstance_id\x18\x02 \x01(\tR\n" +
@@ -432,7 +633,19 @@ const file_store_plan_check_run_proto_rawDesc = "" +
"\x0fSqlReviewReport\x12?\n" +
"\x0estart_position\x18\x01 \x01(\v2\x18.bytebase.store.PositionR\rstartPosition\x12;\n" +
"\fend_position\x18\x02 \x01(\v2\x18.bytebase.store.PositionR\vendPositionB\b\n" +
- "\x06reportB\x94\x01\n" +
+ "\x06report\"Y\n" +
+ "\x10ChangedResources\x12E\n" +
+ "\tdatabases\x18\x01 \x03(\v2'.bytebase.store.ChangedResourceDatabaseR\tdatabases\"n\n" +
+ "\x17ChangedResourceDatabase\x12\x12\n" +
+ "\x04name\x18\x01 \x01(\tR\x04name\x12?\n" +
+ "\aschemas\x18\x02 \x03(\v2%.bytebase.store.ChangedResourceSchemaR\aschemas\"i\n" +
+ "\x15ChangedResourceSchema\x12\x12\n" +
+ "\x04name\x18\x01 \x01(\tR\x04name\x12<\n" +
+ "\x06tables\x18\x02 \x03(\v2$.bytebase.store.ChangedResourceTableR\x06tables\"I\n" +
+ "\x14ChangedResourceTable\x12\x12\n" +
+ "\x04name\x18\x01 \x01(\tR\x04name\x12\x1d\n" +
+ "\n" +
+ "table_rows\x18\x02 \x01(\x03R\ttableRowsB\x94\x01\n" +
"\x12com.bytebase.storeB\x11PlanCheckRunProtoP\x01Z\x12generated-go/store\xa2\x02\x03BSX\xaa\x02\x0eBytebase.Store\xca\x02\x0eBytebase\\Store\xe2\x02\x1aBytebase\\Store\\GPBMetadata\xea\x02\x0fBytebase::Storeb\x06proto3"
var (
@@ -447,32 +660,38 @@ func file_store_plan_check_run_proto_rawDescGZIP() []byte {
return file_store_plan_check_run_proto_rawDescData
}
-var file_store_plan_check_run_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
+var file_store_plan_check_run_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_store_plan_check_run_proto_goTypes = []any{
- (*PlanCheckRunConfig)(nil), // 0: bytebase.store.PlanCheckRunConfig
- (*PlanCheckRunResult)(nil), // 1: bytebase.store.PlanCheckRunResult
- nil, // 2: bytebase.store.PlanCheckRunConfig.GhostFlagsEntry
- (*PlanCheckRunResult_Result)(nil), // 3: bytebase.store.PlanCheckRunResult.Result
- (*PlanCheckRunResult_Result_SqlSummaryReport)(nil), // 4: bytebase.store.PlanCheckRunResult.Result.SqlSummaryReport
- (*PlanCheckRunResult_Result_SqlReviewReport)(nil), // 5: bytebase.store.PlanCheckRunResult.Result.SqlReviewReport
- (Advice_Status)(0), // 6: bytebase.store.Advice.Status
- (*ChangedResources)(nil), // 7: bytebase.store.ChangedResources
- (*Position)(nil), // 8: bytebase.store.Position
+ (*PlanCheckRunConfig)(nil), // 0: bytebase.store.PlanCheckRunConfig
+ (*PlanCheckRunResult)(nil), // 1: bytebase.store.PlanCheckRunResult
+ (*ChangedResources)(nil), // 2: bytebase.store.ChangedResources
+ (*ChangedResourceDatabase)(nil), // 3: bytebase.store.ChangedResourceDatabase
+ (*ChangedResourceSchema)(nil), // 4: bytebase.store.ChangedResourceSchema
+ (*ChangedResourceTable)(nil), // 5: bytebase.store.ChangedResourceTable
+ nil, // 6: bytebase.store.PlanCheckRunConfig.GhostFlagsEntry
+ (*PlanCheckRunResult_Result)(nil), // 7: bytebase.store.PlanCheckRunResult.Result
+ (*PlanCheckRunResult_Result_SqlSummaryReport)(nil), // 8: bytebase.store.PlanCheckRunResult.Result.SqlSummaryReport
+ (*PlanCheckRunResult_Result_SqlReviewReport)(nil), // 9: bytebase.store.PlanCheckRunResult.Result.SqlReviewReport
+ (Advice_Status)(0), // 10: bytebase.store.Advice.Status
+ (*Position)(nil), // 11: bytebase.store.Position
}
var file_store_plan_check_run_proto_depIdxs = []int32{
- 2, // 0: bytebase.store.PlanCheckRunConfig.ghost_flags:type_name -> bytebase.store.PlanCheckRunConfig.GhostFlagsEntry
- 3, // 1: bytebase.store.PlanCheckRunResult.results:type_name -> bytebase.store.PlanCheckRunResult.Result
- 6, // 2: bytebase.store.PlanCheckRunResult.Result.status:type_name -> bytebase.store.Advice.Status
- 4, // 3: bytebase.store.PlanCheckRunResult.Result.sql_summary_report:type_name -> bytebase.store.PlanCheckRunResult.Result.SqlSummaryReport
- 5, // 4: bytebase.store.PlanCheckRunResult.Result.sql_review_report:type_name -> bytebase.store.PlanCheckRunResult.Result.SqlReviewReport
- 7, // 5: bytebase.store.PlanCheckRunResult.Result.SqlSummaryReport.changed_resources:type_name -> bytebase.store.ChangedResources
- 8, // 6: bytebase.store.PlanCheckRunResult.Result.SqlReviewReport.start_position:type_name -> bytebase.store.Position
- 8, // 7: bytebase.store.PlanCheckRunResult.Result.SqlReviewReport.end_position:type_name -> bytebase.store.Position
- 8, // [8:8] is the sub-list for method output_type
- 8, // [8:8] 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
+ 6, // 0: bytebase.store.PlanCheckRunConfig.ghost_flags:type_name -> bytebase.store.PlanCheckRunConfig.GhostFlagsEntry
+ 7, // 1: bytebase.store.PlanCheckRunResult.results:type_name -> bytebase.store.PlanCheckRunResult.Result
+ 3, // 2: bytebase.store.ChangedResources.databases:type_name -> bytebase.store.ChangedResourceDatabase
+ 4, // 3: bytebase.store.ChangedResourceDatabase.schemas:type_name -> bytebase.store.ChangedResourceSchema
+ 5, // 4: bytebase.store.ChangedResourceSchema.tables:type_name -> bytebase.store.ChangedResourceTable
+ 10, // 5: bytebase.store.PlanCheckRunResult.Result.status:type_name -> bytebase.store.Advice.Status
+ 8, // 6: bytebase.store.PlanCheckRunResult.Result.sql_summary_report:type_name -> bytebase.store.PlanCheckRunResult.Result.SqlSummaryReport
+ 9, // 7: bytebase.store.PlanCheckRunResult.Result.sql_review_report:type_name -> bytebase.store.PlanCheckRunResult.Result.SqlReviewReport
+ 2, // 8: bytebase.store.PlanCheckRunResult.Result.SqlSummaryReport.changed_resources:type_name -> bytebase.store.ChangedResources
+ 11, // 9: bytebase.store.PlanCheckRunResult.Result.SqlReviewReport.start_position:type_name -> bytebase.store.Position
+ 11, // 10: bytebase.store.PlanCheckRunResult.Result.SqlReviewReport.end_position:type_name -> bytebase.store.Position
+ 11, // [11:11] is the sub-list for method output_type
+ 11, // [11:11] is the sub-list for method input_type
+ 11, // [11:11] is the sub-list for extension type_name
+ 11, // [11:11] is the sub-list for extension extendee
+ 0, // [0:11] is the sub-list for field type_name
}
func init() { file_store_plan_check_run_proto_init() }
@@ -481,9 +700,8 @@ func file_store_plan_check_run_proto_init() {
return
}
file_store_advice_proto_init()
- file_store_changelog_proto_init()
file_store_common_proto_init()
- file_store_plan_check_run_proto_msgTypes[3].OneofWrappers = []any{
+ file_store_plan_check_run_proto_msgTypes[7].OneofWrappers = []any{
(*PlanCheckRunResult_Result_SqlSummaryReport_)(nil),
(*PlanCheckRunResult_Result_SqlReviewReport_)(nil),
}
@@ -493,7 +711,7 @@ func file_store_plan_check_run_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_store_plan_check_run_proto_rawDesc), len(file_store_plan_check_run_proto_rawDesc)),
NumEnums: 0,
- NumMessages: 6,
+ NumMessages: 10,
NumExtensions: 0,
NumServices: 0,
},
diff --git a/backend/generated-go/store/plan_check_run_equal.pb.go b/backend/generated-go/store/plan_check_run_equal.pb.go
index e6d5ea9694..70852d75d6 100644
--- a/backend/generated-go/store/plan_check_run_equal.pb.go
+++ b/backend/generated-go/store/plan_check_run_equal.pb.go
@@ -131,3 +131,79 @@ func (x *PlanCheckRunResult) Equal(y *PlanCheckRunResult) bool {
}
return true
}
+
+func (x *ChangedResources) Equal(y *ChangedResources) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if len(x.Databases) != len(y.Databases) {
+ return false
+ }
+ for i := 0; i < len(x.Databases); i++ {
+ if !x.Databases[i].Equal(y.Databases[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *ChangedResourceDatabase) Equal(y *ChangedResourceDatabase) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Schemas) != len(y.Schemas) {
+ return false
+ }
+ for i := 0; i < len(x.Schemas); i++ {
+ if !x.Schemas[i].Equal(y.Schemas[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *ChangedResourceSchema) Equal(y *ChangedResourceSchema) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if len(x.Tables) != len(y.Tables) {
+ return false
+ }
+ for i := 0; i < len(x.Tables); i++ {
+ if !x.Tables[i].Equal(y.Tables[i]) {
+ return false
+ }
+ }
+ return true
+}
+
+func (x *ChangedResourceTable) Equal(y *ChangedResourceTable) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.Name != y.Name {
+ return false
+ }
+ if x.TableRows != y.TableRows {
+ return false
+ }
+ return true
+}
diff --git a/backend/generated-go/v1/database_service.pb.go b/backend/generated-go/v1/database_service.pb.go
index 7fb39a296a..06cc1189f3 100644
--- a/backend/generated-go/v1/database_service.pb.go
+++ b/backend/generated-go/v1/database_service.pb.go
@@ -497,7 +497,7 @@ func (x Changelog_Status) Number() protoreflect.EnumNumber {
// Deprecated: Use Changelog_Status.Descriptor instead.
func (Changelog_Status) EnumDescriptor() ([]byte, []int) {
- return file_v1_database_service_proto_rawDescGZIP(), []int{61, 0}
+ return file_v1_database_service_proto_rawDescGZIP(), []int{54, 0}
}
type Changelog_Type int32
@@ -549,7 +549,7 @@ func (x Changelog_Type) Number() protoreflect.EnumNumber {
// Deprecated: Use Changelog_Type.Descriptor instead.
func (Changelog_Type) EnumDescriptor() ([]byte, []int) {
- return file_v1_database_service_proto_rawDescGZIP(), []int{61, 1}
+ return file_v1_database_service_proto_rawDescGZIP(), []int{54, 1}
}
type GetSchemaStringRequest_ObjectType int32
@@ -616,7 +616,7 @@ func (x GetSchemaStringRequest_ObjectType) Number() protoreflect.EnumNumber {
// Deprecated: Use GetSchemaStringRequest_ObjectType.Descriptor instead.
func (GetSchemaStringRequest_ObjectType) EnumDescriptor() ([]byte, []int) {
- return file_v1_database_service_proto_rawDescGZIP(), []int{62, 0}
+ return file_v1_database_service_proto_rawDescGZIP(), []int{55, 0}
}
type GetDatabaseRequest struct {
@@ -5134,390 +5134,6 @@ func (x *DatabaseSDLSchema) GetContentType() string {
return ""
}
-type ChangedResources struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Databases []*ChangedResourceDatabase `protobuf:"bytes,1,rep,name=databases,proto3" json:"databases,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ChangedResources) Reset() {
- *x = ChangedResources{}
- mi := &file_v1_database_service_proto_msgTypes[51]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ChangedResources) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ChangedResources) ProtoMessage() {}
-
-func (x *ChangedResources) ProtoReflect() protoreflect.Message {
- mi := &file_v1_database_service_proto_msgTypes[51]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use ChangedResources.ProtoReflect.Descriptor instead.
-func (*ChangedResources) Descriptor() ([]byte, []int) {
- return file_v1_database_service_proto_rawDescGZIP(), []int{51}
-}
-
-func (x *ChangedResources) GetDatabases() []*ChangedResourceDatabase {
- if x != nil {
- return x.Databases
- }
- return nil
-}
-
-type ChangedResourceDatabase struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- Schemas []*ChangedResourceSchema `protobuf:"bytes,2,rep,name=schemas,proto3" json:"schemas,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ChangedResourceDatabase) Reset() {
- *x = ChangedResourceDatabase{}
- mi := &file_v1_database_service_proto_msgTypes[52]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ChangedResourceDatabase) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ChangedResourceDatabase) ProtoMessage() {}
-
-func (x *ChangedResourceDatabase) ProtoReflect() protoreflect.Message {
- mi := &file_v1_database_service_proto_msgTypes[52]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use ChangedResourceDatabase.ProtoReflect.Descriptor instead.
-func (*ChangedResourceDatabase) Descriptor() ([]byte, []int) {
- return file_v1_database_service_proto_rawDescGZIP(), []int{52}
-}
-
-func (x *ChangedResourceDatabase) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
-}
-
-func (x *ChangedResourceDatabase) GetSchemas() []*ChangedResourceSchema {
- if x != nil {
- return x.Schemas
- }
- return nil
-}
-
-type ChangedResourceSchema struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- Tables []*ChangedResourceTable `protobuf:"bytes,2,rep,name=tables,proto3" json:"tables,omitempty"`
- Views []*ChangedResourceView `protobuf:"bytes,3,rep,name=views,proto3" json:"views,omitempty"`
- Functions []*ChangedResourceFunction `protobuf:"bytes,4,rep,name=functions,proto3" json:"functions,omitempty"`
- Procedures []*ChangedResourceProcedure `protobuf:"bytes,5,rep,name=procedures,proto3" json:"procedures,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ChangedResourceSchema) Reset() {
- *x = ChangedResourceSchema{}
- mi := &file_v1_database_service_proto_msgTypes[53]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ChangedResourceSchema) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ChangedResourceSchema) ProtoMessage() {}
-
-func (x *ChangedResourceSchema) ProtoReflect() protoreflect.Message {
- mi := &file_v1_database_service_proto_msgTypes[53]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use ChangedResourceSchema.ProtoReflect.Descriptor instead.
-func (*ChangedResourceSchema) Descriptor() ([]byte, []int) {
- return file_v1_database_service_proto_rawDescGZIP(), []int{53}
-}
-
-func (x *ChangedResourceSchema) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
-}
-
-func (x *ChangedResourceSchema) GetTables() []*ChangedResourceTable {
- if x != nil {
- return x.Tables
- }
- return nil
-}
-
-func (x *ChangedResourceSchema) GetViews() []*ChangedResourceView {
- if x != nil {
- return x.Views
- }
- return nil
-}
-
-func (x *ChangedResourceSchema) GetFunctions() []*ChangedResourceFunction {
- if x != nil {
- return x.Functions
- }
- return nil
-}
-
-func (x *ChangedResourceSchema) GetProcedures() []*ChangedResourceProcedure {
- if x != nil {
- return x.Procedures
- }
- return nil
-}
-
-type ChangedResourceTable struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- // The ranges of sub-strings correspond to the statements on the sheet.
- Ranges []*Range `protobuf:"bytes,2,rep,name=ranges,proto3" json:"ranges,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ChangedResourceTable) Reset() {
- *x = ChangedResourceTable{}
- mi := &file_v1_database_service_proto_msgTypes[54]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ChangedResourceTable) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ChangedResourceTable) ProtoMessage() {}
-
-func (x *ChangedResourceTable) ProtoReflect() protoreflect.Message {
- mi := &file_v1_database_service_proto_msgTypes[54]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use ChangedResourceTable.ProtoReflect.Descriptor instead.
-func (*ChangedResourceTable) Descriptor() ([]byte, []int) {
- return file_v1_database_service_proto_rawDescGZIP(), []int{54}
-}
-
-func (x *ChangedResourceTable) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
-}
-
-func (x *ChangedResourceTable) GetRanges() []*Range {
- if x != nil {
- return x.Ranges
- }
- return nil
-}
-
-type ChangedResourceView struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- // The ranges of sub-strings correspond to the statements on the sheet.
- Ranges []*Range `protobuf:"bytes,2,rep,name=ranges,proto3" json:"ranges,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ChangedResourceView) Reset() {
- *x = ChangedResourceView{}
- mi := &file_v1_database_service_proto_msgTypes[55]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ChangedResourceView) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ChangedResourceView) ProtoMessage() {}
-
-func (x *ChangedResourceView) ProtoReflect() protoreflect.Message {
- mi := &file_v1_database_service_proto_msgTypes[55]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use ChangedResourceView.ProtoReflect.Descriptor instead.
-func (*ChangedResourceView) Descriptor() ([]byte, []int) {
- return file_v1_database_service_proto_rawDescGZIP(), []int{55}
-}
-
-func (x *ChangedResourceView) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
-}
-
-func (x *ChangedResourceView) GetRanges() []*Range {
- if x != nil {
- return x.Ranges
- }
- return nil
-}
-
-type ChangedResourceFunction struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- // The ranges of sub-strings correspond to the statements on the sheet.
- Ranges []*Range `protobuf:"bytes,2,rep,name=ranges,proto3" json:"ranges,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ChangedResourceFunction) Reset() {
- *x = ChangedResourceFunction{}
- mi := &file_v1_database_service_proto_msgTypes[56]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ChangedResourceFunction) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ChangedResourceFunction) ProtoMessage() {}
-
-func (x *ChangedResourceFunction) ProtoReflect() protoreflect.Message {
- mi := &file_v1_database_service_proto_msgTypes[56]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use ChangedResourceFunction.ProtoReflect.Descriptor instead.
-func (*ChangedResourceFunction) Descriptor() ([]byte, []int) {
- return file_v1_database_service_proto_rawDescGZIP(), []int{56}
-}
-
-func (x *ChangedResourceFunction) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
-}
-
-func (x *ChangedResourceFunction) GetRanges() []*Range {
- if x != nil {
- return x.Ranges
- }
- return nil
-}
-
-type ChangedResourceProcedure struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- // The ranges of sub-strings correspond to the statements on the sheet.
- Ranges []*Range `protobuf:"bytes,2,rep,name=ranges,proto3" json:"ranges,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ChangedResourceProcedure) Reset() {
- *x = ChangedResourceProcedure{}
- mi := &file_v1_database_service_proto_msgTypes[57]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ChangedResourceProcedure) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ChangedResourceProcedure) ProtoMessage() {}
-
-func (x *ChangedResourceProcedure) ProtoReflect() protoreflect.Message {
- mi := &file_v1_database_service_proto_msgTypes[57]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use ChangedResourceProcedure.ProtoReflect.Descriptor instead.
-func (*ChangedResourceProcedure) Descriptor() ([]byte, []int) {
- return file_v1_database_service_proto_rawDescGZIP(), []int{57}
-}
-
-func (x *ChangedResourceProcedure) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
-}
-
-func (x *ChangedResourceProcedure) GetRanges() []*Range {
- if x != nil {
- return x.Ranges
- }
- return nil
-}
-
type ListChangelogsRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The parent of the changelogs.
@@ -5540,7 +5156,7 @@ type ListChangelogsRequest struct {
func (x *ListChangelogsRequest) Reset() {
*x = ListChangelogsRequest{}
- mi := &file_v1_database_service_proto_msgTypes[58]
+ mi := &file_v1_database_service_proto_msgTypes[51]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -5552,7 +5168,7 @@ func (x *ListChangelogsRequest) String() string {
func (*ListChangelogsRequest) ProtoMessage() {}
func (x *ListChangelogsRequest) ProtoReflect() protoreflect.Message {
- mi := &file_v1_database_service_proto_msgTypes[58]
+ mi := &file_v1_database_service_proto_msgTypes[51]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -5565,7 +5181,7 @@ func (x *ListChangelogsRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListChangelogsRequest.ProtoReflect.Descriptor instead.
func (*ListChangelogsRequest) Descriptor() ([]byte, []int) {
- return file_v1_database_service_proto_rawDescGZIP(), []int{58}
+ return file_v1_database_service_proto_rawDescGZIP(), []int{51}
}
func (x *ListChangelogsRequest) GetParent() string {
@@ -5609,7 +5225,7 @@ type ListChangelogsResponse struct {
func (x *ListChangelogsResponse) Reset() {
*x = ListChangelogsResponse{}
- mi := &file_v1_database_service_proto_msgTypes[59]
+ mi := &file_v1_database_service_proto_msgTypes[52]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -5621,7 +5237,7 @@ func (x *ListChangelogsResponse) String() string {
func (*ListChangelogsResponse) ProtoMessage() {}
func (x *ListChangelogsResponse) ProtoReflect() protoreflect.Message {
- mi := &file_v1_database_service_proto_msgTypes[59]
+ mi := &file_v1_database_service_proto_msgTypes[52]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -5634,7 +5250,7 @@ func (x *ListChangelogsResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListChangelogsResponse.ProtoReflect.Descriptor instead.
func (*ListChangelogsResponse) Descriptor() ([]byte, []int) {
- return file_v1_database_service_proto_rawDescGZIP(), []int{59}
+ return file_v1_database_service_proto_rawDescGZIP(), []int{52}
}
func (x *ListChangelogsResponse) GetChangelogs() []*Changelog {
@@ -5663,7 +5279,7 @@ type GetChangelogRequest struct {
func (x *GetChangelogRequest) Reset() {
*x = GetChangelogRequest{}
- mi := &file_v1_database_service_proto_msgTypes[60]
+ mi := &file_v1_database_service_proto_msgTypes[53]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -5675,7 +5291,7 @@ func (x *GetChangelogRequest) String() string {
func (*GetChangelogRequest) ProtoMessage() {}
func (x *GetChangelogRequest) ProtoReflect() protoreflect.Message {
- mi := &file_v1_database_service_proto_msgTypes[60]
+ mi := &file_v1_database_service_proto_msgTypes[53]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -5688,7 +5304,7 @@ func (x *GetChangelogRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetChangelogRequest.ProtoReflect.Descriptor instead.
func (*GetChangelogRequest) Descriptor() ([]byte, []int) {
- return file_v1_database_service_proto_rawDescGZIP(), []int{60}
+ return file_v1_database_service_proto_rawDescGZIP(), []int{53}
}
func (x *GetChangelogRequest) GetName() string {
@@ -5729,16 +5345,15 @@ type Changelog struct {
Version string `protobuf:"bytes,13,opt,name=version,proto3" json:"version,omitempty"`
// Could be empty
// Or present but not found if deleted
- Revision string `protobuf:"bytes,14,opt,name=revision,proto3" json:"revision,omitempty"`
- ChangedResources *ChangedResources `protobuf:"bytes,15,opt,name=changed_resources,json=changedResources,proto3" json:"changed_resources,omitempty"`
- Type Changelog_Type `protobuf:"varint,16,opt,name=type,proto3,enum=bytebase.v1.Changelog_Type" json:"type,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
+ Revision string `protobuf:"bytes,14,opt,name=revision,proto3" json:"revision,omitempty"`
+ Type Changelog_Type `protobuf:"varint,16,opt,name=type,proto3,enum=bytebase.v1.Changelog_Type" json:"type,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
}
func (x *Changelog) Reset() {
*x = Changelog{}
- mi := &file_v1_database_service_proto_msgTypes[61]
+ mi := &file_v1_database_service_proto_msgTypes[54]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -5750,7 +5365,7 @@ func (x *Changelog) String() string {
func (*Changelog) ProtoMessage() {}
func (x *Changelog) ProtoReflect() protoreflect.Message {
- mi := &file_v1_database_service_proto_msgTypes[61]
+ mi := &file_v1_database_service_proto_msgTypes[54]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -5763,7 +5378,7 @@ func (x *Changelog) ProtoReflect() protoreflect.Message {
// Deprecated: Use Changelog.ProtoReflect.Descriptor instead.
func (*Changelog) Descriptor() ([]byte, []int) {
- return file_v1_database_service_proto_rawDescGZIP(), []int{61}
+ return file_v1_database_service_proto_rawDescGZIP(), []int{54}
}
func (x *Changelog) GetName() string {
@@ -5864,13 +5479,6 @@ func (x *Changelog) GetRevision() string {
return ""
}
-func (x *Changelog) GetChangedResources() *ChangedResources {
- if x != nil {
- return x.ChangedResources
- }
- return nil
-}
-
func (x *Changelog) GetType() Changelog_Type {
if x != nil {
return x.Type
@@ -5897,7 +5505,7 @@ type GetSchemaStringRequest struct {
func (x *GetSchemaStringRequest) Reset() {
*x = GetSchemaStringRequest{}
- mi := &file_v1_database_service_proto_msgTypes[62]
+ mi := &file_v1_database_service_proto_msgTypes[55]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -5909,7 +5517,7 @@ func (x *GetSchemaStringRequest) String() string {
func (*GetSchemaStringRequest) ProtoMessage() {}
func (x *GetSchemaStringRequest) ProtoReflect() protoreflect.Message {
- mi := &file_v1_database_service_proto_msgTypes[62]
+ mi := &file_v1_database_service_proto_msgTypes[55]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -5922,7 +5530,7 @@ func (x *GetSchemaStringRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetSchemaStringRequest.ProtoReflect.Descriptor instead.
func (*GetSchemaStringRequest) Descriptor() ([]byte, []int) {
- return file_v1_database_service_proto_rawDescGZIP(), []int{62}
+ return file_v1_database_service_proto_rawDescGZIP(), []int{55}
}
func (x *GetSchemaStringRequest) GetName() string {
@@ -5969,7 +5577,7 @@ type GetSchemaStringResponse struct {
func (x *GetSchemaStringResponse) Reset() {
*x = GetSchemaStringResponse{}
- mi := &file_v1_database_service_proto_msgTypes[63]
+ mi := &file_v1_database_service_proto_msgTypes[56]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -5981,7 +5589,7 @@ func (x *GetSchemaStringResponse) String() string {
func (*GetSchemaStringResponse) ProtoMessage() {}
func (x *GetSchemaStringResponse) ProtoReflect() protoreflect.Message {
- mi := &file_v1_database_service_proto_msgTypes[63]
+ mi := &file_v1_database_service_proto_msgTypes[56]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -5994,7 +5602,7 @@ func (x *GetSchemaStringResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetSchemaStringResponse.ProtoReflect.Descriptor instead.
func (*GetSchemaStringResponse) Descriptor() ([]byte, []int) {
- return file_v1_database_service_proto_rawDescGZIP(), []int{63}
+ return file_v1_database_service_proto_rawDescGZIP(), []int{56}
}
func (x *GetSchemaStringResponse) GetSchemaString() string {
@@ -6455,32 +6063,7 @@ const file_v1_database_service_proto_rawDesc = "" +
"\x06schema\x18\x01 \x01(\tR\x06schema\"S\n" +
"\x11DatabaseSDLSchema\x12\x16\n" +
"\x06schema\x18\x01 \x01(\fR\x06schema\x12&\n" +
- "\fcontent_type\x18\x02 \x01(\tB\x03\xe0A\x03R\vcontentType\"V\n" +
- "\x10ChangedResources\x12B\n" +
- "\tdatabases\x18\x01 \x03(\v2$.bytebase.v1.ChangedResourceDatabaseR\tdatabases\"k\n" +
- "\x17ChangedResourceDatabase\x12\x12\n" +
- "\x04name\x18\x01 \x01(\tR\x04name\x12<\n" +
- "\aschemas\x18\x02 \x03(\v2\".bytebase.v1.ChangedResourceSchemaR\aschemas\"\xa9\x02\n" +
- "\x15ChangedResourceSchema\x12\x12\n" +
- "\x04name\x18\x01 \x01(\tR\x04name\x129\n" +
- "\x06tables\x18\x02 \x03(\v2!.bytebase.v1.ChangedResourceTableR\x06tables\x126\n" +
- "\x05views\x18\x03 \x03(\v2 .bytebase.v1.ChangedResourceViewR\x05views\x12B\n" +
- "\tfunctions\x18\x04 \x03(\v2$.bytebase.v1.ChangedResourceFunctionR\tfunctions\x12E\n" +
- "\n" +
- "procedures\x18\x05 \x03(\v2%.bytebase.v1.ChangedResourceProcedureR\n" +
- "procedures\"V\n" +
- "\x14ChangedResourceTable\x12\x12\n" +
- "\x04name\x18\x01 \x01(\tR\x04name\x12*\n" +
- "\x06ranges\x18\x02 \x03(\v2\x12.bytebase.v1.RangeR\x06ranges\"U\n" +
- "\x13ChangedResourceView\x12\x12\n" +
- "\x04name\x18\x01 \x01(\tR\x04name\x12*\n" +
- "\x06ranges\x18\x02 \x03(\v2\x12.bytebase.v1.RangeR\x06ranges\"Y\n" +
- "\x17ChangedResourceFunction\x12\x12\n" +
- "\x04name\x18\x01 \x01(\tR\x04name\x12*\n" +
- "\x06ranges\x18\x02 \x03(\v2\x12.bytebase.v1.RangeR\x06ranges\"Z\n" +
- "\x18ChangedResourceProcedure\x12\x12\n" +
- "\x04name\x18\x01 \x01(\tR\x04name\x12*\n" +
- "\x06ranges\x18\x02 \x03(\v2\x12.bytebase.v1.RangeR\x06ranges\"\xba\x01\n" +
+ "\fcontent_type\x18\x02 \x01(\tB\x03\xe0A\x03R\vcontentType\"\xba\x01\n" +
"\x15ListChangelogsRequest\x125\n" +
"\x06parent\x18\x01 \x01(\tB\x1d\xe0A\x02\xfaA\x17\n" +
"\x15bytebase.com/DatabaseR\x06parent\x12\x1b\n" +
@@ -6496,7 +6079,7 @@ const file_v1_database_service_proto_rawDesc = "" +
"\x13GetChangelogRequest\x12:\n" +
"\x04name\x18\x01 \x01(\tB&\xe0A\x02\xfaA \n" +
"\x1ebytebase.com/DatabaseChangelogR\x04name\x12.\n" +
- "\x04view\x18\x02 \x01(\x0e2\x1a.bytebase.v1.ChangelogViewR\x04view\"\xd7\x06\n" +
+ "\x04view\x18\x02 \x01(\x0e2\x1a.bytebase.v1.ChangelogViewR\x04view\"\x8b\x06\n" +
"\tChangelog\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12;\n" +
"\vcreate_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\n" +
@@ -6515,8 +6098,7 @@ const file_v1_database_service_proto_rawDesc = "" +
"\x05issue\x18\v \x01(\tR\x05issue\x12\x19\n" +
"\btask_run\x18\f \x01(\tR\ataskRun\x12\x18\n" +
"\aversion\x18\r \x01(\tR\aversion\x12\x1a\n" +
- "\brevision\x18\x0e \x01(\tR\brevision\x12J\n" +
- "\x11changed_resources\x18\x0f \x01(\v2\x1d.bytebase.v1.ChangedResourcesR\x10changedResources\x12/\n" +
+ "\brevision\x18\x0e \x01(\tR\brevision\x12/\n" +
"\x04type\x18\x10 \x01(\x0e2\x1b.bytebase.v1.Changelog.TypeR\x04type\"C\n" +
"\x06Status\x12\x16\n" +
"\x12STATUS_UNSPECIFIED\x10\x00\x12\v\n" +
@@ -6586,7 +6168,7 @@ func file_v1_database_service_proto_rawDescGZIP() []byte {
}
var file_v1_database_service_proto_enumTypes = make([]protoimpl.EnumInfo, 11)
-var file_v1_database_service_proto_msgTypes = make([]protoimpl.MessageInfo, 65)
+var file_v1_database_service_proto_msgTypes = make([]protoimpl.MessageInfo, 58)
var file_v1_database_service_proto_goTypes = []any{
(ChangelogView)(0), // 0: bytebase.v1.ChangelogView
(GetDatabaseSDLSchemaRequest_SDLFormat)(0), // 1: bytebase.v1.GetDatabaseSDLSchemaRequest.SDLFormat
@@ -6650,38 +6232,30 @@ var file_v1_database_service_proto_goTypes = []any{
(*ForeignKeyMetadata)(nil), // 59: bytebase.v1.ForeignKeyMetadata
(*DatabaseSchema)(nil), // 60: bytebase.v1.DatabaseSchema
(*DatabaseSDLSchema)(nil), // 61: bytebase.v1.DatabaseSDLSchema
- (*ChangedResources)(nil), // 62: bytebase.v1.ChangedResources
- (*ChangedResourceDatabase)(nil), // 63: bytebase.v1.ChangedResourceDatabase
- (*ChangedResourceSchema)(nil), // 64: bytebase.v1.ChangedResourceSchema
- (*ChangedResourceTable)(nil), // 65: bytebase.v1.ChangedResourceTable
- (*ChangedResourceView)(nil), // 66: bytebase.v1.ChangedResourceView
- (*ChangedResourceFunction)(nil), // 67: bytebase.v1.ChangedResourceFunction
- (*ChangedResourceProcedure)(nil), // 68: bytebase.v1.ChangedResourceProcedure
- (*ListChangelogsRequest)(nil), // 69: bytebase.v1.ListChangelogsRequest
- (*ListChangelogsResponse)(nil), // 70: bytebase.v1.ListChangelogsResponse
- (*GetChangelogRequest)(nil), // 71: bytebase.v1.GetChangelogRequest
- (*Changelog)(nil), // 72: bytebase.v1.Changelog
- (*GetSchemaStringRequest)(nil), // 73: bytebase.v1.GetSchemaStringRequest
- (*GetSchemaStringResponse)(nil), // 74: bytebase.v1.GetSchemaStringResponse
- nil, // 75: bytebase.v1.Database.LabelsEntry
- (*fieldmaskpb.FieldMask)(nil), // 76: google.protobuf.FieldMask
- (State)(0), // 77: bytebase.v1.State
- (*timestamppb.Timestamp)(nil), // 78: google.protobuf.Timestamp
- (*InstanceResource)(nil), // 79: bytebase.v1.InstanceResource
- (*Range)(nil), // 80: bytebase.v1.Range
+ (*ListChangelogsRequest)(nil), // 62: bytebase.v1.ListChangelogsRequest
+ (*ListChangelogsResponse)(nil), // 63: bytebase.v1.ListChangelogsResponse
+ (*GetChangelogRequest)(nil), // 64: bytebase.v1.GetChangelogRequest
+ (*Changelog)(nil), // 65: bytebase.v1.Changelog
+ (*GetSchemaStringRequest)(nil), // 66: bytebase.v1.GetSchemaStringRequest
+ (*GetSchemaStringResponse)(nil), // 67: bytebase.v1.GetSchemaStringResponse
+ nil, // 68: bytebase.v1.Database.LabelsEntry
+ (*fieldmaskpb.FieldMask)(nil), // 69: google.protobuf.FieldMask
+ (State)(0), // 70: bytebase.v1.State
+ (*timestamppb.Timestamp)(nil), // 71: google.protobuf.Timestamp
+ (*InstanceResource)(nil), // 72: bytebase.v1.InstanceResource
}
var file_v1_database_service_proto_depIdxs = []int32{
28, // 0: bytebase.v1.BatchGetDatabasesResponse.databases:type_name -> bytebase.v1.Database
28, // 1: bytebase.v1.ListDatabasesResponse.databases:type_name -> bytebase.v1.Database
28, // 2: bytebase.v1.UpdateDatabaseRequest.database:type_name -> bytebase.v1.Database
- 76, // 3: bytebase.v1.UpdateDatabaseRequest.update_mask:type_name -> google.protobuf.FieldMask
+ 69, // 3: bytebase.v1.UpdateDatabaseRequest.update_mask:type_name -> google.protobuf.FieldMask
16, // 4: bytebase.v1.BatchUpdateDatabasesRequest.requests:type_name -> bytebase.v1.UpdateDatabaseRequest
28, // 5: bytebase.v1.BatchUpdateDatabasesResponse.databases:type_name -> bytebase.v1.Database
1, // 6: bytebase.v1.GetDatabaseSDLSchemaRequest.format:type_name -> bytebase.v1.GetDatabaseSDLSchemaRequest.SDLFormat
- 77, // 7: bytebase.v1.Database.state:type_name -> bytebase.v1.State
- 78, // 8: bytebase.v1.Database.successful_sync_time:type_name -> google.protobuf.Timestamp
- 75, // 9: bytebase.v1.Database.labels:type_name -> bytebase.v1.Database.LabelsEntry
- 79, // 10: bytebase.v1.Database.instance_resource:type_name -> bytebase.v1.InstanceResource
+ 70, // 7: bytebase.v1.Database.state:type_name -> bytebase.v1.State
+ 71, // 8: bytebase.v1.Database.successful_sync_time:type_name -> google.protobuf.Timestamp
+ 68, // 9: bytebase.v1.Database.labels:type_name -> bytebase.v1.Database.LabelsEntry
+ 72, // 10: bytebase.v1.Database.instance_resource:type_name -> bytebase.v1.InstanceResource
30, // 11: bytebase.v1.DatabaseMetadata.schemas:type_name -> bytebase.v1.SchemaMetadata
58, // 12: bytebase.v1.DatabaseMetadata.extensions:type_name -> bytebase.v1.ExtensionMetadata
36, // 13: bytebase.v1.SchemaMetadata.tables:type_name -> bytebase.v1.TableMetadata
@@ -6727,58 +6301,47 @@ var file_v1_database_service_proto_depIdxs = []int32{
53, // 53: bytebase.v1.TessellationConfig.bounding_box:type_name -> bytebase.v1.BoundingBox
56, // 54: bytebase.v1.DimensionalConfig.constraints:type_name -> bytebase.v1.DimensionConstraint
50, // 55: bytebase.v1.IndexMetadata.spatial_config:type_name -> bytebase.v1.SpatialIndexConfig
- 63, // 56: bytebase.v1.ChangedResources.databases:type_name -> bytebase.v1.ChangedResourceDatabase
- 64, // 57: bytebase.v1.ChangedResourceDatabase.schemas:type_name -> bytebase.v1.ChangedResourceSchema
- 65, // 58: bytebase.v1.ChangedResourceSchema.tables:type_name -> bytebase.v1.ChangedResourceTable
- 66, // 59: bytebase.v1.ChangedResourceSchema.views:type_name -> bytebase.v1.ChangedResourceView
- 67, // 60: bytebase.v1.ChangedResourceSchema.functions:type_name -> bytebase.v1.ChangedResourceFunction
- 68, // 61: bytebase.v1.ChangedResourceSchema.procedures:type_name -> bytebase.v1.ChangedResourceProcedure
- 80, // 62: bytebase.v1.ChangedResourceTable.ranges:type_name -> bytebase.v1.Range
- 80, // 63: bytebase.v1.ChangedResourceView.ranges:type_name -> bytebase.v1.Range
- 80, // 64: bytebase.v1.ChangedResourceFunction.ranges:type_name -> bytebase.v1.Range
- 80, // 65: bytebase.v1.ChangedResourceProcedure.ranges:type_name -> bytebase.v1.Range
- 0, // 66: bytebase.v1.ListChangelogsRequest.view:type_name -> bytebase.v1.ChangelogView
- 72, // 67: bytebase.v1.ListChangelogsResponse.changelogs:type_name -> bytebase.v1.Changelog
- 0, // 68: bytebase.v1.GetChangelogRequest.view:type_name -> bytebase.v1.ChangelogView
- 78, // 69: bytebase.v1.Changelog.create_time:type_name -> google.protobuf.Timestamp
- 8, // 70: bytebase.v1.Changelog.status:type_name -> bytebase.v1.Changelog.Status
- 62, // 71: bytebase.v1.Changelog.changed_resources:type_name -> bytebase.v1.ChangedResources
- 9, // 72: bytebase.v1.Changelog.type:type_name -> bytebase.v1.Changelog.Type
- 10, // 73: bytebase.v1.GetSchemaStringRequest.type:type_name -> bytebase.v1.GetSchemaStringRequest.ObjectType
- 29, // 74: bytebase.v1.GetSchemaStringRequest.metadata:type_name -> bytebase.v1.DatabaseMetadata
- 11, // 75: bytebase.v1.DatabaseService.GetDatabase:input_type -> bytebase.v1.GetDatabaseRequest
- 12, // 76: bytebase.v1.DatabaseService.BatchGetDatabases:input_type -> bytebase.v1.BatchGetDatabasesRequest
- 14, // 77: bytebase.v1.DatabaseService.ListDatabases:input_type -> bytebase.v1.ListDatabasesRequest
- 16, // 78: bytebase.v1.DatabaseService.UpdateDatabase:input_type -> bytebase.v1.UpdateDatabaseRequest
- 17, // 79: bytebase.v1.DatabaseService.BatchUpdateDatabases:input_type -> bytebase.v1.BatchUpdateDatabasesRequest
- 21, // 80: bytebase.v1.DatabaseService.SyncDatabase:input_type -> bytebase.v1.SyncDatabaseRequest
- 19, // 81: bytebase.v1.DatabaseService.BatchSyncDatabases:input_type -> bytebase.v1.BatchSyncDatabasesRequest
- 23, // 82: bytebase.v1.DatabaseService.GetDatabaseMetadata:input_type -> bytebase.v1.GetDatabaseMetadataRequest
- 24, // 83: bytebase.v1.DatabaseService.GetDatabaseSchema:input_type -> bytebase.v1.GetDatabaseSchemaRequest
- 25, // 84: bytebase.v1.DatabaseService.GetDatabaseSDLSchema:input_type -> bytebase.v1.GetDatabaseSDLSchemaRequest
- 26, // 85: bytebase.v1.DatabaseService.DiffSchema:input_type -> bytebase.v1.DiffSchemaRequest
- 69, // 86: bytebase.v1.DatabaseService.ListChangelogs:input_type -> bytebase.v1.ListChangelogsRequest
- 71, // 87: bytebase.v1.DatabaseService.GetChangelog:input_type -> bytebase.v1.GetChangelogRequest
- 73, // 88: bytebase.v1.DatabaseService.GetSchemaString:input_type -> bytebase.v1.GetSchemaStringRequest
- 28, // 89: bytebase.v1.DatabaseService.GetDatabase:output_type -> bytebase.v1.Database
- 13, // 90: bytebase.v1.DatabaseService.BatchGetDatabases:output_type -> bytebase.v1.BatchGetDatabasesResponse
- 15, // 91: bytebase.v1.DatabaseService.ListDatabases:output_type -> bytebase.v1.ListDatabasesResponse
- 28, // 92: bytebase.v1.DatabaseService.UpdateDatabase:output_type -> bytebase.v1.Database
- 18, // 93: bytebase.v1.DatabaseService.BatchUpdateDatabases:output_type -> bytebase.v1.BatchUpdateDatabasesResponse
- 22, // 94: bytebase.v1.DatabaseService.SyncDatabase:output_type -> bytebase.v1.SyncDatabaseResponse
- 20, // 95: bytebase.v1.DatabaseService.BatchSyncDatabases:output_type -> bytebase.v1.BatchSyncDatabasesResponse
- 29, // 96: bytebase.v1.DatabaseService.GetDatabaseMetadata:output_type -> bytebase.v1.DatabaseMetadata
- 60, // 97: bytebase.v1.DatabaseService.GetDatabaseSchema:output_type -> bytebase.v1.DatabaseSchema
- 61, // 98: bytebase.v1.DatabaseService.GetDatabaseSDLSchema:output_type -> bytebase.v1.DatabaseSDLSchema
- 27, // 99: bytebase.v1.DatabaseService.DiffSchema:output_type -> bytebase.v1.DiffSchemaResponse
- 70, // 100: bytebase.v1.DatabaseService.ListChangelogs:output_type -> bytebase.v1.ListChangelogsResponse
- 72, // 101: bytebase.v1.DatabaseService.GetChangelog:output_type -> bytebase.v1.Changelog
- 74, // 102: bytebase.v1.DatabaseService.GetSchemaString:output_type -> bytebase.v1.GetSchemaStringResponse
- 89, // [89:103] is the sub-list for method output_type
- 75, // [75:89] is the sub-list for method input_type
- 75, // [75:75] is the sub-list for extension type_name
- 75, // [75:75] is the sub-list for extension extendee
- 0, // [0:75] is the sub-list for field type_name
+ 0, // 56: bytebase.v1.ListChangelogsRequest.view:type_name -> bytebase.v1.ChangelogView
+ 65, // 57: bytebase.v1.ListChangelogsResponse.changelogs:type_name -> bytebase.v1.Changelog
+ 0, // 58: bytebase.v1.GetChangelogRequest.view:type_name -> bytebase.v1.ChangelogView
+ 71, // 59: bytebase.v1.Changelog.create_time:type_name -> google.protobuf.Timestamp
+ 8, // 60: bytebase.v1.Changelog.status:type_name -> bytebase.v1.Changelog.Status
+ 9, // 61: bytebase.v1.Changelog.type:type_name -> bytebase.v1.Changelog.Type
+ 10, // 62: bytebase.v1.GetSchemaStringRequest.type:type_name -> bytebase.v1.GetSchemaStringRequest.ObjectType
+ 29, // 63: bytebase.v1.GetSchemaStringRequest.metadata:type_name -> bytebase.v1.DatabaseMetadata
+ 11, // 64: bytebase.v1.DatabaseService.GetDatabase:input_type -> bytebase.v1.GetDatabaseRequest
+ 12, // 65: bytebase.v1.DatabaseService.BatchGetDatabases:input_type -> bytebase.v1.BatchGetDatabasesRequest
+ 14, // 66: bytebase.v1.DatabaseService.ListDatabases:input_type -> bytebase.v1.ListDatabasesRequest
+ 16, // 67: bytebase.v1.DatabaseService.UpdateDatabase:input_type -> bytebase.v1.UpdateDatabaseRequest
+ 17, // 68: bytebase.v1.DatabaseService.BatchUpdateDatabases:input_type -> bytebase.v1.BatchUpdateDatabasesRequest
+ 21, // 69: bytebase.v1.DatabaseService.SyncDatabase:input_type -> bytebase.v1.SyncDatabaseRequest
+ 19, // 70: bytebase.v1.DatabaseService.BatchSyncDatabases:input_type -> bytebase.v1.BatchSyncDatabasesRequest
+ 23, // 71: bytebase.v1.DatabaseService.GetDatabaseMetadata:input_type -> bytebase.v1.GetDatabaseMetadataRequest
+ 24, // 72: bytebase.v1.DatabaseService.GetDatabaseSchema:input_type -> bytebase.v1.GetDatabaseSchemaRequest
+ 25, // 73: bytebase.v1.DatabaseService.GetDatabaseSDLSchema:input_type -> bytebase.v1.GetDatabaseSDLSchemaRequest
+ 26, // 74: bytebase.v1.DatabaseService.DiffSchema:input_type -> bytebase.v1.DiffSchemaRequest
+ 62, // 75: bytebase.v1.DatabaseService.ListChangelogs:input_type -> bytebase.v1.ListChangelogsRequest
+ 64, // 76: bytebase.v1.DatabaseService.GetChangelog:input_type -> bytebase.v1.GetChangelogRequest
+ 66, // 77: bytebase.v1.DatabaseService.GetSchemaString:input_type -> bytebase.v1.GetSchemaStringRequest
+ 28, // 78: bytebase.v1.DatabaseService.GetDatabase:output_type -> bytebase.v1.Database
+ 13, // 79: bytebase.v1.DatabaseService.BatchGetDatabases:output_type -> bytebase.v1.BatchGetDatabasesResponse
+ 15, // 80: bytebase.v1.DatabaseService.ListDatabases:output_type -> bytebase.v1.ListDatabasesResponse
+ 28, // 81: bytebase.v1.DatabaseService.UpdateDatabase:output_type -> bytebase.v1.Database
+ 18, // 82: bytebase.v1.DatabaseService.BatchUpdateDatabases:output_type -> bytebase.v1.BatchUpdateDatabasesResponse
+ 22, // 83: bytebase.v1.DatabaseService.SyncDatabase:output_type -> bytebase.v1.SyncDatabaseResponse
+ 20, // 84: bytebase.v1.DatabaseService.BatchSyncDatabases:output_type -> bytebase.v1.BatchSyncDatabasesResponse
+ 29, // 85: bytebase.v1.DatabaseService.GetDatabaseMetadata:output_type -> bytebase.v1.DatabaseMetadata
+ 60, // 86: bytebase.v1.DatabaseService.GetDatabaseSchema:output_type -> bytebase.v1.DatabaseSchema
+ 61, // 87: bytebase.v1.DatabaseService.GetDatabaseSDLSchema:output_type -> bytebase.v1.DatabaseSDLSchema
+ 27, // 88: bytebase.v1.DatabaseService.DiffSchema:output_type -> bytebase.v1.DiffSchemaResponse
+ 63, // 89: bytebase.v1.DatabaseService.ListChangelogs:output_type -> bytebase.v1.ListChangelogsResponse
+ 65, // 90: bytebase.v1.DatabaseService.GetChangelog:output_type -> bytebase.v1.Changelog
+ 67, // 91: bytebase.v1.DatabaseService.GetSchemaString:output_type -> bytebase.v1.GetSchemaStringResponse
+ 78, // [78:92] is the sub-list for method output_type
+ 64, // [64:78] is the sub-list for method input_type
+ 64, // [64:64] is the sub-list for extension type_name
+ 64, // [64:64] is the sub-list for extension extendee
+ 0, // [0:64] is the sub-list for field type_name
}
func init() { file_v1_database_service_proto_init() }
@@ -6800,7 +6363,7 @@ func file_v1_database_service_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_v1_database_service_proto_rawDesc), len(file_v1_database_service_proto_rawDesc)),
NumEnums: 11,
- NumMessages: 65,
+ NumMessages: 58,
NumExtensions: 0,
NumServices: 1,
},
diff --git a/backend/generated-go/v1/database_service_equal.pb.go b/backend/generated-go/v1/database_service_equal.pb.go
index 6334c2b316..36e6dc1a7b 100644
--- a/backend/generated-go/v1/database_service_equal.pb.go
+++ b/backend/generated-go/v1/database_service_equal.pb.go
@@ -1608,174 +1608,6 @@ func (x *DatabaseSDLSchema) Equal(y *DatabaseSDLSchema) bool {
return true
}
-func (x *ChangedResources) Equal(y *ChangedResources) bool {
- if x == y {
- return true
- }
- if x == nil || y == nil {
- return x == nil && y == nil
- }
- if len(x.Databases) != len(y.Databases) {
- return false
- }
- for i := 0; i < len(x.Databases); i++ {
- if !x.Databases[i].Equal(y.Databases[i]) {
- return false
- }
- }
- return true
-}
-
-func (x *ChangedResourceDatabase) Equal(y *ChangedResourceDatabase) bool {
- if x == y {
- return true
- }
- if x == nil || y == nil {
- return x == nil && y == nil
- }
- if x.Name != y.Name {
- return false
- }
- if len(x.Schemas) != len(y.Schemas) {
- return false
- }
- for i := 0; i < len(x.Schemas); i++ {
- if !x.Schemas[i].Equal(y.Schemas[i]) {
- return false
- }
- }
- return true
-}
-
-func (x *ChangedResourceSchema) Equal(y *ChangedResourceSchema) bool {
- if x == y {
- return true
- }
- if x == nil || y == nil {
- return x == nil && y == nil
- }
- if x.Name != y.Name {
- return false
- }
- if len(x.Tables) != len(y.Tables) {
- return false
- }
- for i := 0; i < len(x.Tables); i++ {
- if !x.Tables[i].Equal(y.Tables[i]) {
- return false
- }
- }
- if len(x.Views) != len(y.Views) {
- return false
- }
- for i := 0; i < len(x.Views); i++ {
- if !x.Views[i].Equal(y.Views[i]) {
- return false
- }
- }
- if len(x.Functions) != len(y.Functions) {
- return false
- }
- for i := 0; i < len(x.Functions); i++ {
- if !x.Functions[i].Equal(y.Functions[i]) {
- return false
- }
- }
- if len(x.Procedures) != len(y.Procedures) {
- return false
- }
- for i := 0; i < len(x.Procedures); i++ {
- if !x.Procedures[i].Equal(y.Procedures[i]) {
- return false
- }
- }
- return true
-}
-
-func (x *ChangedResourceTable) Equal(y *ChangedResourceTable) bool {
- if x == y {
- return true
- }
- if x == nil || y == nil {
- return x == nil && y == nil
- }
- if x.Name != y.Name {
- return false
- }
- if len(x.Ranges) != len(y.Ranges) {
- return false
- }
- for i := 0; i < len(x.Ranges); i++ {
- if !x.Ranges[i].Equal(y.Ranges[i]) {
- return false
- }
- }
- return true
-}
-
-func (x *ChangedResourceView) Equal(y *ChangedResourceView) bool {
- if x == y {
- return true
- }
- if x == nil || y == nil {
- return x == nil && y == nil
- }
- if x.Name != y.Name {
- return false
- }
- if len(x.Ranges) != len(y.Ranges) {
- return false
- }
- for i := 0; i < len(x.Ranges); i++ {
- if !x.Ranges[i].Equal(y.Ranges[i]) {
- return false
- }
- }
- return true
-}
-
-func (x *ChangedResourceFunction) Equal(y *ChangedResourceFunction) bool {
- if x == y {
- return true
- }
- if x == nil || y == nil {
- return x == nil && y == nil
- }
- if x.Name != y.Name {
- return false
- }
- if len(x.Ranges) != len(y.Ranges) {
- return false
- }
- for i := 0; i < len(x.Ranges); i++ {
- if !x.Ranges[i].Equal(y.Ranges[i]) {
- return false
- }
- }
- return true
-}
-
-func (x *ChangedResourceProcedure) Equal(y *ChangedResourceProcedure) bool {
- if x == y {
- return true
- }
- if x == nil || y == nil {
- return x == nil && y == nil
- }
- if x.Name != y.Name {
- return false
- }
- if len(x.Ranges) != len(y.Ranges) {
- return false
- }
- for i := 0; i < len(x.Ranges); i++ {
- if !x.Ranges[i].Equal(y.Ranges[i]) {
- return false
- }
- }
- return true
-}
-
func (x *ListChangelogsRequest) Equal(y *ListChangelogsRequest) bool {
if x == y {
return true
@@ -1884,9 +1716,6 @@ func (x *Changelog) Equal(y *Changelog) bool {
if x.Revision != y.Revision {
return false
}
- if !x.ChangedResources.Equal(y.ChangedResources) {
- return false
- }
if x.Type != y.Type {
return false
}
diff --git a/backend/generated-go/v1/plan_service.pb.go b/backend/generated-go/v1/plan_service.pb.go
index e6cd89bbad..22474baa9c 100644
--- a/backend/generated-go/v1/plan_service.pb.go
+++ b/backend/generated-go/v1/plan_service.pb.go
@@ -1776,11 +1776,10 @@ func (*PlanCheckRun_Result_SqlReviewReport_) isPlanCheckRun_Result_Report() {}
type PlanCheckRun_Result_SqlSummaryReport struct {
state protoimpl.MessageState `protogen:"open.v1"`
// statement_types are the types of statements that are found in the sql.
- StatementTypes []string `protobuf:"bytes,2,rep,name=statement_types,json=statementTypes,proto3" json:"statement_types,omitempty"`
- AffectedRows int64 `protobuf:"varint,3,opt,name=affected_rows,json=affectedRows,proto3" json:"affected_rows,omitempty"`
- ChangedResources *ChangedResources `protobuf:"bytes,4,opt,name=changed_resources,json=changedResources,proto3" json:"changed_resources,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
+ StatementTypes []string `protobuf:"bytes,2,rep,name=statement_types,json=statementTypes,proto3" json:"statement_types,omitempty"`
+ AffectedRows int64 `protobuf:"varint,3,opt,name=affected_rows,json=affectedRows,proto3" json:"affected_rows,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
}
func (x *PlanCheckRun_Result_SqlSummaryReport) Reset() {
@@ -1827,13 +1826,6 @@ func (x *PlanCheckRun_Result_SqlSummaryReport) GetAffectedRows() int64 {
return 0
}
-func (x *PlanCheckRun_Result_SqlSummaryReport) GetChangedResources() *ChangedResources {
- if x != nil {
- return x.ChangedResources
- }
- return nil
-}
-
type PlanCheckRun_Result_SqlReviewReport struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Position of the SQL statement.
@@ -1891,7 +1883,7 @@ var File_v1_plan_service_proto protoreflect.FileDescriptor
const file_v1_plan_service_proto_rawDesc = "" +
"\n" +
- "\x15v1/plan_service.proto\x12\vbytebase.v1\x1a\x1bbuf/validate/validate.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x13v1/annotation.proto\x1a\x0fv1/common.proto\x1a\x19v1/database_service.proto\x1a\x14v1/sql_service.proto\"?\n" +
+ "\x15v1/plan_service.proto\x12\vbytebase.v1\x1a\x1bbuf/validate/validate.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x13v1/annotation.proto\x1a\x0fv1/common.proto\x1a\x14v1/sql_service.proto\"?\n" +
"\x0eGetPlanRequest\x12-\n" +
"\x04name\x18\x01 \x01(\tB\x19\xe0A\x02\xfaA\x13\n" +
"\x11bytebase.com/PlanR\x04name\"\x84\x01\n" +
@@ -2004,7 +1996,7 @@ const file_v1_plan_service_proto_rawDesc = "" +
"\x06parent\x18\x01 \x01(\tB\x19\xe0A\x02\xfaA\x13\n" +
"\x11bytebase.com/PlanR\x06parent\x12&\n" +
"\x0fplan_check_runs\x18\x02 \x03(\tR\rplanCheckRuns\"\"\n" +
- " BatchCancelPlanCheckRunsResponse\"\xe7\t\n" +
+ " BatchCancelPlanCheckRunsResponse\"\x9a\t\n" +
"\fPlanCheckRun\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x122\n" +
"\x04type\x18\x02 \x01(\x0e2\x1e.bytebase.v1.PlanCheckRun.TypeR\x04type\x128\n" +
@@ -2014,18 +2006,17 @@ const file_v1_plan_service_proto_rawDesc = "" +
"\aresults\x18\x06 \x03(\v2 .bytebase.v1.PlanCheckRun.ResultR\aresults\x12\x14\n" +
"\x05error\x18\a \x01(\tR\x05error\x12@\n" +
"\vcreate_time\x18\b \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\n" +
- "createTime\x1a\x87\x05\n" +
+ "createTime\x1a\xba\x04\n" +
"\x06Result\x121\n" +
"\x06status\x18\x01 \x01(\x0e2\x19.bytebase.v1.Advice.LevelR\x06status\x12\x14\n" +
"\x05title\x18\x02 \x01(\tR\x05title\x12\x18\n" +
"\acontent\x18\x03 \x01(\tR\acontent\x12\x12\n" +
"\x04code\x18\x04 \x01(\x05R\x04code\x12a\n" +
"\x12sql_summary_report\x18\x05 \x01(\v21.bytebase.v1.PlanCheckRun.Result.SqlSummaryReportH\x00R\x10sqlSummaryReport\x12^\n" +
- "\x11sql_review_report\x18\x06 \x01(\v20.bytebase.v1.PlanCheckRun.Result.SqlReviewReportH\x00R\x0fsqlReviewReport\x1a\xac\x01\n" +
+ "\x11sql_review_report\x18\x06 \x01(\v20.bytebase.v1.PlanCheckRun.Result.SqlReviewReportH\x00R\x0fsqlReviewReport\x1a`\n" +
"\x10SqlSummaryReport\x12'\n" +
"\x0fstatement_types\x18\x02 \x03(\tR\x0estatementTypes\x12#\n" +
- "\raffected_rows\x18\x03 \x01(\x03R\faffectedRows\x12J\n" +
- "\x11changed_resources\x18\x04 \x01(\v2\x1d.bytebase.v1.ChangedResourcesR\x10changedResources\x1a\x89\x01\n" +
+ "\raffected_rows\x18\x03 \x01(\x03R\faffectedRows\x1a\x89\x01\n" +
"\x0fSqlReviewReport\x12<\n" +
"\x0estart_position\x18\x05 \x01(\v2\x15.bytebase.v1.PositionR\rstartPosition\x128\n" +
"\fend_position\x18\x06 \x01(\v2\x15.bytebase.v1.PositionR\vendPositionB\b\n" +
@@ -2107,8 +2098,7 @@ var file_v1_plan_service_proto_goTypes = []any{
(DatabaseChangeType)(0), // 31: bytebase.v1.DatabaseChangeType
(ExportFormat)(0), // 32: bytebase.v1.ExportFormat
(Advice_Level)(0), // 33: bytebase.v1.Advice.Level
- (*ChangedResources)(nil), // 34: bytebase.v1.ChangedResources
- (*Position)(nil), // 35: bytebase.v1.Position
+ (*Position)(nil), // 34: bytebase.v1.Position
}
var file_v1_plan_service_proto_depIdxs = []int32{
9, // 0: bytebase.v1.ListPlansResponse.plans:type_name -> bytebase.v1.Plan
@@ -2137,30 +2127,29 @@ var file_v1_plan_service_proto_depIdxs = []int32{
33, // 23: bytebase.v1.PlanCheckRun.Result.status:type_name -> bytebase.v1.Advice.Level
26, // 24: bytebase.v1.PlanCheckRun.Result.sql_summary_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlSummaryReport
27, // 25: bytebase.v1.PlanCheckRun.Result.sql_review_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlReviewReport
- 34, // 26: bytebase.v1.PlanCheckRun.Result.SqlSummaryReport.changed_resources:type_name -> bytebase.v1.ChangedResources
- 35, // 27: bytebase.v1.PlanCheckRun.Result.SqlReviewReport.start_position:type_name -> bytebase.v1.Position
- 35, // 28: bytebase.v1.PlanCheckRun.Result.SqlReviewReport.end_position:type_name -> bytebase.v1.Position
- 2, // 29: bytebase.v1.PlanService.GetPlan:input_type -> bytebase.v1.GetPlanRequest
- 3, // 30: bytebase.v1.PlanService.ListPlans:input_type -> bytebase.v1.ListPlansRequest
- 5, // 31: bytebase.v1.PlanService.SearchPlans:input_type -> bytebase.v1.SearchPlansRequest
- 7, // 32: bytebase.v1.PlanService.CreatePlan:input_type -> bytebase.v1.CreatePlanRequest
- 8, // 33: bytebase.v1.PlanService.UpdatePlan:input_type -> bytebase.v1.UpdatePlanRequest
- 10, // 34: bytebase.v1.PlanService.ListPlanCheckRuns:input_type -> bytebase.v1.ListPlanCheckRunsRequest
- 12, // 35: bytebase.v1.PlanService.RunPlanChecks:input_type -> bytebase.v1.RunPlanChecksRequest
- 14, // 36: bytebase.v1.PlanService.BatchCancelPlanCheckRuns:input_type -> bytebase.v1.BatchCancelPlanCheckRunsRequest
- 9, // 37: bytebase.v1.PlanService.GetPlan:output_type -> bytebase.v1.Plan
- 4, // 38: bytebase.v1.PlanService.ListPlans:output_type -> bytebase.v1.ListPlansResponse
- 6, // 39: bytebase.v1.PlanService.SearchPlans:output_type -> bytebase.v1.SearchPlansResponse
- 9, // 40: bytebase.v1.PlanService.CreatePlan:output_type -> bytebase.v1.Plan
- 9, // 41: bytebase.v1.PlanService.UpdatePlan:output_type -> bytebase.v1.Plan
- 11, // 42: bytebase.v1.PlanService.ListPlanCheckRuns:output_type -> bytebase.v1.ListPlanCheckRunsResponse
- 13, // 43: bytebase.v1.PlanService.RunPlanChecks:output_type -> bytebase.v1.RunPlanChecksResponse
- 15, // 44: bytebase.v1.PlanService.BatchCancelPlanCheckRuns:output_type -> bytebase.v1.BatchCancelPlanCheckRunsResponse
- 37, // [37:45] is the sub-list for method output_type
- 29, // [29:37] is the sub-list for method input_type
- 29, // [29:29] is the sub-list for extension type_name
- 29, // [29:29] is the sub-list for extension extendee
- 0, // [0:29] is the sub-list for field type_name
+ 34, // 26: bytebase.v1.PlanCheckRun.Result.SqlReviewReport.start_position:type_name -> bytebase.v1.Position
+ 34, // 27: bytebase.v1.PlanCheckRun.Result.SqlReviewReport.end_position:type_name -> bytebase.v1.Position
+ 2, // 28: bytebase.v1.PlanService.GetPlan:input_type -> bytebase.v1.GetPlanRequest
+ 3, // 29: bytebase.v1.PlanService.ListPlans:input_type -> bytebase.v1.ListPlansRequest
+ 5, // 30: bytebase.v1.PlanService.SearchPlans:input_type -> bytebase.v1.SearchPlansRequest
+ 7, // 31: bytebase.v1.PlanService.CreatePlan:input_type -> bytebase.v1.CreatePlanRequest
+ 8, // 32: bytebase.v1.PlanService.UpdatePlan:input_type -> bytebase.v1.UpdatePlanRequest
+ 10, // 33: bytebase.v1.PlanService.ListPlanCheckRuns:input_type -> bytebase.v1.ListPlanCheckRunsRequest
+ 12, // 34: bytebase.v1.PlanService.RunPlanChecks:input_type -> bytebase.v1.RunPlanChecksRequest
+ 14, // 35: bytebase.v1.PlanService.BatchCancelPlanCheckRuns:input_type -> bytebase.v1.BatchCancelPlanCheckRunsRequest
+ 9, // 36: bytebase.v1.PlanService.GetPlan:output_type -> bytebase.v1.Plan
+ 4, // 37: bytebase.v1.PlanService.ListPlans:output_type -> bytebase.v1.ListPlansResponse
+ 6, // 38: bytebase.v1.PlanService.SearchPlans:output_type -> bytebase.v1.SearchPlansResponse
+ 9, // 39: bytebase.v1.PlanService.CreatePlan:output_type -> bytebase.v1.Plan
+ 9, // 40: bytebase.v1.PlanService.UpdatePlan:output_type -> bytebase.v1.Plan
+ 11, // 41: bytebase.v1.PlanService.ListPlanCheckRuns:output_type -> bytebase.v1.ListPlanCheckRunsResponse
+ 13, // 42: bytebase.v1.PlanService.RunPlanChecks:output_type -> bytebase.v1.RunPlanChecksResponse
+ 15, // 43: bytebase.v1.PlanService.BatchCancelPlanCheckRuns:output_type -> bytebase.v1.BatchCancelPlanCheckRunsResponse
+ 36, // [36:44] is the sub-list for method output_type
+ 28, // [28:36] is the sub-list for method input_type
+ 28, // [28:28] is the sub-list for extension type_name
+ 28, // [28:28] is the sub-list for extension extendee
+ 0, // [0:28] is the sub-list for field type_name
}
func init() { file_v1_plan_service_proto_init() }
@@ -2170,7 +2159,6 @@ func file_v1_plan_service_proto_init() {
}
file_v1_annotation_proto_init()
file_v1_common_proto_init()
- file_v1_database_service_proto_init()
file_v1_sql_service_proto_init()
file_v1_plan_service_proto_msgTypes[10].OneofWrappers = []any{}
file_v1_plan_service_proto_msgTypes[15].OneofWrappers = []any{
diff --git a/backend/generated-go/v1/plan_service_equal.pb.go b/backend/generated-go/v1/plan_service_equal.pb.go
index 03d745710c..0ae218981f 100644
--- a/backend/generated-go/v1/plan_service_equal.pb.go
+++ b/backend/generated-go/v1/plan_service_equal.pb.go
@@ -490,9 +490,6 @@ func (x *PlanCheckRun_Result_SqlSummaryReport) Equal(y *PlanCheckRun_Result_SqlS
if x.AffectedRows != y.AffectedRows {
return false
}
- if !x.ChangedResources.Equal(y.ChangedResources) {
- return false
- }
return true
}
diff --git a/backend/migrator/migration/3.13/0029##remove_changed_resources_from_changelog.sql b/backend/migrator/migration/3.13/0029##remove_changed_resources_from_changelog.sql
new file mode 100644
index 0000000000..593eea5d30
--- /dev/null
+++ b/backend/migrator/migration/3.13/0029##remove_changed_resources_from_changelog.sql
@@ -0,0 +1,5 @@
+-- Remove unused changedResources field from changelog payload
+-- This field was write-only and never consumed by any code
+UPDATE changelog
+SET payload = payload - 'changedResources'
+WHERE payload ? 'changedResources';
diff --git a/backend/migrator/migrator_test.go b/backend/migrator/migrator_test.go
index 9f9697bf76..1e96fd8968 100644
--- a/backend/migrator/migrator_test.go
+++ b/backend/migrator/migrator_test.go
@@ -12,7 +12,7 @@ import (
func TestLatestVersion(t *testing.T) {
files, err := getSortedVersionedFiles()
require.NoError(t, err)
- require.Equal(t, semver.MustParse("3.13.28"), *files[len(files)-1].version)
+ require.Equal(t, semver.MustParse("3.13.29"), *files[len(files)-1].version)
}
func TestVersionUnique(t *testing.T) {
diff --git a/backend/plugin/parser/mysql/resource_change.go b/backend/plugin/parser/mysql/resource_change.go
index 10934ccf7d..3070f3b83d 100644
--- a/backend/plugin/parser/mysql/resource_change.go
+++ b/backend/plugin/parser/mysql/resource_change.go
@@ -77,8 +77,7 @@ func (l *resourceChangedListener) EnterCreateTable(ctx *parser.CreateTableContex
database,
"",
&storepb.ChangedResourceTable{
- Name: table,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
+ Name: table,
},
false,
)
@@ -96,8 +95,7 @@ func (l *resourceChangedListener) EnterDropTable(ctx *parser.DropTableContext) {
database,
"",
&storepb.ChangedResourceTable{
- Name: table,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
+ Name: table,
},
true,
)
@@ -115,8 +113,7 @@ func (l *resourceChangedListener) EnterAlterTable(ctx *parser.AlterTableContext)
database,
"",
&storepb.ChangedResourceTable{
- Name: table,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
+ Name: table,
},
true,
)
@@ -135,8 +132,7 @@ func (l *resourceChangedListener) EnterRenameTableStatement(ctx *parser.RenameTa
database,
"",
&storepb.ChangedResourceTable{
- Name: table,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
+ Name: table,
},
false,
)
@@ -151,8 +147,7 @@ func (l *resourceChangedListener) EnterRenameTableStatement(ctx *parser.RenameTa
database,
"",
&storepb.ChangedResourceTable{
- Name: table,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
+ Name: table,
},
false,
)
@@ -173,8 +168,7 @@ func (l *resourceChangedListener) EnterCreateIndex(ctx *parser.CreateIndexContex
database,
"",
&storepb.ChangedResourceTable{
- Name: table,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
+ Name: table,
},
false,
)
@@ -194,163 +188,12 @@ func (l *resourceChangedListener) EnterDropIndex(ctx *parser.DropIndexContext) {
database,
"",
&storepb.ChangedResourceTable{
- Name: table,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
+ Name: table,
},
false,
)
}
-func (l *resourceChangedListener) EnterCreateView(ctx *parser.CreateViewContext) {
- database, view := NormalizeMySQLViewName(ctx.ViewName())
- if database == "" {
- database = l.currentDatabase
- }
-
- l.changedResources.AddView(
- database,
- "",
- &storepb.ChangedResourceView{
- Name: view,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
- },
- )
-}
-
-func (l *resourceChangedListener) EnterAlterView(ctx *parser.AlterViewContext) {
- database, view := NormalizeMySQLViewRef(ctx.ViewRef())
- if database == "" {
- database = l.currentDatabase
- }
-
- l.changedResources.AddView(
- database,
- "",
- &storepb.ChangedResourceView{
- Name: view,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
- },
- )
-}
-
-func (l *resourceChangedListener) EnterDropView(ctx *parser.DropViewContext) {
- if ctx.ViewRefList() == nil {
- return
- }
-
- for _, ref := range ctx.ViewRefList().AllViewRef() {
- database, view := NormalizeMySQLViewRef(ref)
- if database == "" {
- database = l.currentDatabase
- }
-
- l.changedResources.AddView(
- database,
- "",
- &storepb.ChangedResourceView{
- Name: view,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
- },
- )
- }
-}
-
-func (l *resourceChangedListener) EnterCreateFunction(ctx *parser.CreateFunctionContext) {
- database, function := NormalizeMySQLFunctionName(ctx.FunctionName())
- if database == "" {
- database = l.currentDatabase
- }
-
- l.changedResources.AddFunction(
- database,
- "",
- &storepb.ChangedResourceFunction{
- Name: function,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
- },
- )
-}
-
-func (l *resourceChangedListener) EnterAlterFunction(ctx *parser.AlterFunctionContext) {
- database, function := NormalizeMySQLFunctionRef(ctx.FunctionRef())
- if database == "" {
- database = l.currentDatabase
- }
-
- l.changedResources.AddFunction(
- database,
- "",
- &storepb.ChangedResourceFunction{
- Name: function,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
- },
- )
-}
-
-func (l *resourceChangedListener) EnterDropFunction(ctx *parser.DropFunctionContext) {
- database, function := NormalizeMySQLFunctionRef(ctx.FunctionRef())
- if database == "" {
- database = l.currentDatabase
- }
-
- l.changedResources.AddFunction(
- database,
- "",
- &storepb.ChangedResourceFunction{
- Name: function,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
- },
- )
-}
-
-func (l *resourceChangedListener) EnterCreateProcedure(ctx *parser.CreateProcedureContext) {
- database, procedure := NormalizeMySQLProcedureName(ctx.ProcedureName())
- if database == "" {
- database = l.currentDatabase
- }
-
- l.changedResources.AddProcedure(
- database,
- "",
- &storepb.ChangedResourceProcedure{
- Name: procedure,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
- },
- )
-}
-
-func (l *resourceChangedListener) EnterAlterProcedure(ctx *parser.AlterProcedureContext) {
- database, procedure := NormalizeMySQLProcedureRef(ctx.ProcedureRef())
- if database == "" {
- database = l.currentDatabase
- }
-
- l.changedResources.AddProcedure(
- database,
- "",
- &storepb.ChangedResourceProcedure{
- Name: procedure,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
- },
- )
-}
-
-func (l *resourceChangedListener) EnterDropProcedure(ctx *parser.DropProcedureContext) {
- database, procedure := NormalizeMySQLProcedureRef(ctx.ProcedureRef())
- if database == "" {
- database = l.currentDatabase
- }
-
- l.changedResources.AddProcedure(
- database,
- "",
- &storepb.ChangedResourceProcedure{
- Name: procedure,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
- },
- )
-}
-
func (l *resourceChangedListener) EnterInsertStatement(ctx *parser.InsertStatementContext) {
if !IsTopMySQLRule(&ctx.BaseParserRuleContext) {
return
diff --git a/backend/plugin/parser/mysql/resource_change_test.go b/backend/plugin/parser/mysql/resource_change_test.go
index d0da060296..c2582806d8 100644
--- a/backend/plugin/parser/mysql/resource_change_test.go
+++ b/backend/plugin/parser/mysql/resource_change_test.go
@@ -25,12 +25,6 @@ func TestExtractChangedResources(t *testing.T) {
"",
&storepb.ChangedResourceTable{
Name: "t1",
- Ranges: []*storepb.Range{
- {Start: 0, End: 25},
- {Start: 27, End: 41},
- {Start: 43, End: 76},
- {Start: 78, End: 100},
- },
},
true,
)
@@ -38,19 +32,10 @@ func TestExtractChangedResources(t *testing.T) {
"db",
"",
&storepb.ChangedResourceTable{
- Name: "t2",
- Ranges: []*storepb.Range{{Start: 78, End: 100}},
+ Name: "t2",
},
false,
)
- changedResources.AddProcedure(
- "db",
- "",
- &storepb.ChangedResourceProcedure{
- Name: "getUser",
- Ranges: []*storepb.Range{{Start: 163, End: 231}},
- },
- )
want := &base.ChangeSummary{
ChangedResources: changedResources,
SampleDMLS: []string{
diff --git a/backend/plugin/parser/pg/resource_change.go b/backend/plugin/parser/pg/resource_change.go
index d21e309d1f..542adec39b 100644
--- a/backend/plugin/parser/pg/resource_change.go
+++ b/backend/plugin/parser/pg/resource_change.go
@@ -164,8 +164,7 @@ func (l *changedResourcesListener) EnterCreatestmt(ctx *parser.CreatestmtContext
db,
schema,
&storepb.ChangedResourceTable{
- Name: table,
- Ranges: []*storepb.Range{l.getRange(ctx)},
+ Name: table,
},
false,
)
@@ -201,6 +200,10 @@ func (l *changedResourcesListener) EnterDropstmt(ctx *parser.DropstmtContext) {
}
isView := objectTypeAnyName.VIEW() != nil
+ // Skip views since they're not used in risk/approval calculations
+ if isView {
+ return
+ }
for _, anyName := range anyNameList.AllAny_name() {
db, schema, name := l.extractAnyName(anyName)
@@ -216,28 +219,15 @@ func (l *changedResourcesListener) EnterDropstmt(ctx *parser.DropstmtContext) {
}
}
- if isView {
- // For views, add to views
- l.changedResources.AddView(
- db,
- schema,
- &storepb.ChangedResourceView{
- Name: name,
- Ranges: []*storepb.Range{l.getRange(ctx)},
- },
- )
- } else {
- // For tables
- l.changedResources.AddTable(
- db,
- schema,
- &storepb.ChangedResourceTable{
- Name: name,
- Ranges: []*storepb.Range{l.getRange(ctx)},
- },
- true,
- )
- }
+ // For tables
+ l.changedResources.AddTable(
+ db,
+ schema,
+ &storepb.ChangedResourceTable{
+ Name: name,
+ },
+ true,
+ )
}
}
@@ -275,8 +265,7 @@ func (l *changedResourcesListener) EnterAltertablestmt(ctx *parser.Altertablestm
db,
schema,
&storepb.ChangedResourceTable{
- Name: table,
- Ranges: []*storepb.Range{l.getRange(ctx)},
+ Name: table,
},
true,
)
@@ -320,8 +309,7 @@ func (l *changedResourcesListener) EnterRenamestmt(ctx *parser.RenamestmtContext
db,
schema,
&storepb.ChangedResourceTable{
- Name: oldTableName,
- Ranges: []*storepb.Range{l.getRange(ctx)},
+ Name: oldTableName,
},
true,
)
@@ -331,8 +319,7 @@ func (l *changedResourcesListener) EnterRenamestmt(ctx *parser.RenamestmtContext
db,
schema,
&storepb.ChangedResourceTable{
- Name: newTableName,
- Ranges: []*storepb.Range{l.getRange(ctx)},
+ Name: newTableName,
},
false,
)
@@ -367,8 +354,7 @@ func (l *changedResourcesListener) EnterIndexstmt(ctx *parser.IndexstmtContext)
db,
schema,
&storepb.ChangedResourceTable{
- Name: table,
- Ranges: []*storepb.Range{l.getRange(ctx)},
+ Name: table,
},
false,
)
@@ -399,8 +385,7 @@ func (l *changedResourcesListener) handleDropIndex(ctx *parser.DropstmtContext)
db,
schemaName,
&storepb.ChangedResourceTable{
- Name: tableProto.GetName(),
- Ranges: []*storepb.Range{l.getRange(ctx)},
+ Name: tableProto.GetName(),
},
false,
)
@@ -416,8 +401,7 @@ func (l *changedResourcesListener) handleDropIndex(ctx *parser.DropstmtContext)
db,
schemaName,
&storepb.ChangedResourceTable{
- Name: tableProto.GetName(),
- Ranges: []*storepb.Range{l.getRange(ctx)},
+ Name: tableProto.GetName(),
},
false,
)
@@ -427,103 +411,6 @@ func (l *changedResourcesListener) handleDropIndex(ctx *parser.DropstmtContext)
}
}
-// EnterViewstmt handles CREATE VIEW statements
-func (l *changedResourcesListener) EnterViewstmt(ctx *parser.ViewstmtContext) {
- if !isTopLevel(ctx.GetParent()) {
- return
- }
-
- // Get view name
- qualifiedName := ctx.Qualified_name()
- if qualifiedName == nil {
- return
- }
-
- db, schema, view := l.extractQualifiedName(qualifiedName)
- if db == "" {
- db = l.database
- }
- if schema == "" {
- schema = l.searchPath[0]
- }
-
- l.changedResources.AddView(
- db,
- schema,
- &storepb.ChangedResourceView{
- Name: view,
- Ranges: []*storepb.Range{l.getRange(ctx)},
- },
- )
-}
-
-// EnterCreatefunctionstmt handles CREATE FUNCTION statements
-func (l *changedResourcesListener) EnterCreatefunctionstmt(ctx *parser.CreatefunctionstmtContext) {
- if !isTopLevel(ctx.GetParent()) {
- return
- }
-
- // Get function name
- funcName := ctx.Func_name()
- if funcName == nil {
- return
- }
-
- db, schema, function := l.extractFuncName(funcName)
- if db == "" {
- db = l.database
- }
- if schema == "" {
- schema = l.searchPath[0]
- }
-
- l.changedResources.AddFunction(
- db,
- schema,
- &storepb.ChangedResourceFunction{
- Name: function,
- Ranges: []*storepb.Range{l.getRange(ctx)},
- },
- )
-}
-
-// EnterRemovefuncstmt handles DROP FUNCTION statements
-func (l *changedResourcesListener) EnterRemovefuncstmt(ctx *parser.RemovefuncstmtContext) {
- if !isTopLevel(ctx.GetParent()) {
- return
- }
-
- // Get function names
- funcTableList := ctx.Function_with_argtypes_list()
- if funcTableList == nil {
- return
- }
-
- for _, funcWithArgs := range funcTableList.AllFunction_with_argtypes() {
- funcName := funcWithArgs.Func_name()
- if funcName == nil {
- continue
- }
-
- db, schema, function := l.extractFuncName(funcName)
- if db == "" {
- db = l.database
- }
- if schema == "" {
- schema = l.searchPath[0]
- }
-
- l.changedResources.AddFunction(
- db,
- schema,
- &storepb.ChangedResourceFunction{
- Name: function,
- Ranges: []*storepb.Range{l.getRange(ctx)},
- },
- )
- }
-}
-
// EnterInsertstmt handles INSERT statements
func (l *changedResourcesListener) EnterInsertstmt(ctx *parser.InsertstmtContext) {
if !isTopLevel(ctx.GetParent()) {
@@ -557,8 +444,7 @@ func (l *changedResourcesListener) EnterInsertstmt(ctx *parser.InsertstmtContext
db,
schema,
&storepb.ChangedResourceTable{
- Name: table,
- Ranges: []*storepb.Range{l.getRange(ctx)},
+ Name: table,
},
false,
)
@@ -610,8 +496,7 @@ func (l *changedResourcesListener) EnterUpdatestmt(ctx *parser.UpdatestmtContext
db,
schema,
&storepb.ChangedResourceTable{
- Name: table,
- Ranges: []*storepb.Range{l.getRange(ctx)},
+ Name: table,
},
false,
)
@@ -657,8 +542,7 @@ func (l *changedResourcesListener) EnterDeletestmt(ctx *parser.DeletestmtContext
db,
schema,
&storepb.ChangedResourceTable{
- Name: table,
- Ranges: []*storepb.Range{l.getRange(ctx)},
+ Name: table,
},
false,
)
@@ -776,75 +660,6 @@ func (l *changedResourcesListener) extractRelationExpr(ctx parser.IRelation_expr
return l.extractQualifiedName(qualifiedName)
}
-func (*changedResourcesListener) extractFuncName(ctx parser.IFunc_nameContext) (string, string, string) {
- if ctx == nil {
- return "", "", ""
- }
-
- typeFunc := ctx.Type_function_name()
- if typeFunc != nil {
- // Simple function name
- return "", "", typeFunc.GetText()
- }
-
- colid := ctx.Colid()
- if colid == nil {
- return "", "", ""
- }
-
- name := colid.GetText()
-
- // Check for indirection
- indirection := ctx.Indirection()
- if indirection == nil {
- return "", "", name
- }
-
- indirectionEls := indirection.AllIndirection_el()
- if len(indirectionEls) == 0 {
- return "", "", name
- }
-
- // schema.function
- if len(indirectionEls) == 1 {
- attrName := indirectionEls[0].Attr_name()
- if attrName != nil {
- return "", name, attrName.GetText()
- }
- }
-
- // db.schema.function
- if len(indirectionEls) >= 2 {
- schema := indirectionEls[0].Attr_name()
- function := indirectionEls[1].Attr_name()
- if schema != nil && function != nil {
- return name, schema.GetText(), function.GetText()
- }
- }
-
- return "", "", name
-}
-
-func (l *changedResourcesListener) getRange(ctx antlr.ParserRuleContext) *storepb.Range {
- // Use GetTextFromInterval to get the actual text with whitespace
- start := ctx.GetStart().GetTokenIndex()
- stop := ctx.GetStop().GetTokenIndex()
-
- // Check if the next token is a semicolon and include it
- tokens, ok := l.tokenStream.(*antlr.CommonTokenStream)
- if ok {
- nextToken := tokens.Get(stop + 1)
- if nextToken != nil && nextToken.GetText() == ";" {
- // Include the semicolon
- text := l.tokenStream.GetTextFromInterval(antlr.NewInterval(start, stop+1))
- return base.NewRange(l.statement, text)
- }
- }
-
- text := l.tokenStream.GetTextFromInterval(antlr.NewInterval(start, stop))
- return base.NewRange(l.statement, text)
-}
-
// getStatementText returns the text of a statement, including trailing semicolon if present
func (l *changedResourcesListener) getStatementText(ctx antlr.ParserRuleContext) string {
start := ctx.GetStart().GetTokenIndex()
diff --git a/backend/plugin/parser/pg/resource_change_test.go b/backend/plugin/parser/pg/resource_change_test.go
index 55db92aa3b..56c6d166ac 100644
--- a/backend/plugin/parser/pg/resource_change_test.go
+++ b/backend/plugin/parser/pg/resource_change_test.go
@@ -28,12 +28,6 @@ func TestExtractChangedResources(t *testing.T) {
"public",
&storepb.ChangedResourceTable{
Name: "t1",
- Ranges: []*storepb.Range{
- {Start: 0, End: 25},
- {Start: 32, End: 46},
- {Start: 53, End: 86},
- {Start: 93, End: 121},
- },
},
true,
)
@@ -41,8 +35,7 @@ func TestExtractChangedResources(t *testing.T) {
"db",
"public",
&storepb.ChangedResourceTable{
- Name: "t2",
- Ranges: []*storepb.Range{{Start: 93, End: 121}},
+ Name: "t2",
},
false,
)
@@ -51,10 +44,6 @@ func TestExtractChangedResources(t *testing.T) {
"public",
&storepb.ChangedResourceTable{
Name: "t1",
- Ranges: []*storepb.Range{
- {Start: 168, End: 204},
- {Start: 211, End: 232},
- },
},
false,
)
diff --git a/backend/plugin/parser/plsql/resource_change.go b/backend/plugin/parser/plsql/resource_change.go
index 99cd68a312..fefc5f367b 100644
--- a/backend/plugin/parser/plsql/resource_change.go
+++ b/backend/plugin/parser/plsql/resource_change.go
@@ -75,8 +75,7 @@ func (l *plsqlChangedResourceExtractListener) EnterCreate_table(ctx *parser.Crea
schema,
"",
&storepb.ChangedResourceTable{
- Name: tableName,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
+ Name: tableName,
},
false)
}
@@ -102,8 +101,7 @@ func (l *plsqlChangedResourceExtractListener) EnterDrop_table(ctx *parser.Drop_t
schema,
"",
&storepb.ChangedResourceTable{
- Name: table,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
+ Name: table,
},
true)
}
@@ -129,8 +127,7 @@ func (l *plsqlChangedResourceExtractListener) EnterAlter_table(ctx *parser.Alter
schema,
"",
&storepb.ChangedResourceTable{
- Name: table,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
+ Name: table,
},
true)
}
@@ -157,8 +154,7 @@ func (l *plsqlChangedResourceExtractListener) EnterAlter_table_properties(ctx *p
schema,
"",
&storepb.ChangedResourceTable{
- Name: table,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
+ Name: table,
},
false)
}
@@ -185,8 +181,7 @@ func (l *plsqlChangedResourceExtractListener) EnterCreate_index(ctx *parser.Crea
schema,
"",
&storepb.ChangedResourceTable{
- Name: table,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
+ Name: table,
},
false)
}
@@ -211,219 +206,11 @@ func (l *plsqlChangedResourceExtractListener) EnterDrop_index(ctx *parser.Drop_i
schema,
"",
&storepb.ChangedResourceTable{
- Name: foundTable,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
+ Name: foundTable,
},
false)
}
-// EnterCreate_view is called when production create_view is entered.
-func (l *plsqlChangedResourceExtractListener) EnterCreate_view(ctx *parser.Create_viewContext) {
- var schema, view string
- if ctx.Schema_name() != nil {
- schema = NormalizeIdentifierContext(ctx.Schema_name().Identifier())
- }
- if len(ctx.AllId_expression()) > 0 {
- view = NormalizeIDExpression(ctx.AllId_expression()[0])
- }
- if schema == "" {
- schema = l.currentSchema
- }
-
- l.changedResources.AddView(
- schema,
- "",
- &storepb.ChangedResourceView{
- Name: view,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
- },
- )
-}
-
-func (l *plsqlChangedResourceExtractListener) EnterDrop_view(ctx *parser.Drop_viewContext) {
- var schema, view string
- tableViewName := ctx.Tableview_name()
- if tableViewName.Id_expression() == nil {
- view = NormalizeIdentifierContext(tableViewName.Identifier())
- } else {
- schema = NormalizeIdentifierContext(tableViewName.Identifier())
- view = NormalizeIDExpression(tableViewName.Id_expression())
- }
- if schema == "" {
- schema = l.currentSchema
- }
-
- l.changedResources.AddView(
- schema,
- "",
- &storepb.ChangedResourceView{
- Name: view,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
- },
- )
-}
-
-func (l *plsqlChangedResourceExtractListener) EnterAlter_view(ctx *parser.Alter_viewContext) {
- var schema, view string
- tableViewName := ctx.Tableview_name()
- if tableViewName.Id_expression() == nil {
- view = NormalizeIdentifierContext(tableViewName.Identifier())
- } else {
- schema = NormalizeIdentifierContext(tableViewName.Identifier())
- view = NormalizeIDExpression(tableViewName.Id_expression())
- }
- if schema == "" {
- schema = l.currentSchema
- }
-
- l.changedResources.AddView(
- schema,
- "",
- &storepb.ChangedResourceView{
- Name: view,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
- },
- )
-}
-
-func (l *plsqlChangedResourceExtractListener) EnterCreate_procedure_body(ctx *parser.Create_procedure_bodyContext) {
- var schema, procedure string
- procedureName := ctx.Procedure_name()
- if procedureName.Id_expression() == nil {
- procedure = NormalizeIdentifierContext(procedureName.Identifier())
- } else {
- schema = NormalizeIdentifierContext(procedureName.Identifier())
- procedure = NormalizeIDExpression(procedureName.Id_expression())
- }
- if schema == "" {
- schema = l.currentSchema
- }
-
- l.changedResources.AddProcedure(
- schema,
- "",
- &storepb.ChangedResourceProcedure{
- Name: procedure,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
- },
- )
-}
-
-func (l *plsqlChangedResourceExtractListener) EnterDrop_procedure(ctx *parser.Drop_procedureContext) {
- var schema, procedure string
- procedureName := ctx.Procedure_name()
- if procedureName.Id_expression() == nil {
- procedure = NormalizeIdentifierContext(procedureName.Identifier())
- } else {
- schema = NormalizeIdentifierContext(procedureName.Identifier())
- procedure = NormalizeIDExpression(procedureName.Id_expression())
- }
- if schema == "" {
- schema = l.currentSchema
- }
-
- l.changedResources.AddProcedure(
- schema,
- "",
- &storepb.ChangedResourceProcedure{
- Name: procedure,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
- },
- )
-}
-
-func (l *plsqlChangedResourceExtractListener) EnterAlter_procedure(ctx *parser.Alter_procedureContext) {
- var schema, procedure string
- procedureName := ctx.Procedure_name()
- if procedureName.Id_expression() == nil {
- procedure = NormalizeIdentifierContext(procedureName.Identifier())
- } else {
- schema = NormalizeIdentifierContext(procedureName.Identifier())
- procedure = NormalizeIDExpression(procedureName.Id_expression())
- }
- if schema == "" {
- schema = l.currentSchema
- }
-
- l.changedResources.AddProcedure(
- schema,
- "",
- &storepb.ChangedResourceProcedure{
- Name: procedure,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
- },
- )
-}
-
-func (l *plsqlChangedResourceExtractListener) EnterCreate_function_body(ctx *parser.Create_function_bodyContext) {
- var schema, function string
- functionName := ctx.Function_name()
- if functionName.Id_expression() == nil {
- function = NormalizeIdentifierContext(functionName.Identifier())
- } else {
- schema = NormalizeIdentifierContext(functionName.Identifier())
- function = NormalizeIDExpression(functionName.Id_expression())
- }
- if schema == "" {
- schema = l.currentSchema
- }
-
- l.changedResources.AddFunction(
- schema,
- "",
- &storepb.ChangedResourceFunction{
- Name: function,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
- },
- )
-}
-
-func (l *plsqlChangedResourceExtractListener) EnterDrop_function(ctx *parser.Drop_functionContext) {
- var schema, function string
- functionName := ctx.Function_name()
- if functionName.Id_expression() == nil {
- function = NormalizeIdentifierContext(functionName.Identifier())
- } else {
- schema = NormalizeIdentifierContext(functionName.Identifier())
- function = NormalizeIDExpression(functionName.Id_expression())
- }
- if schema == "" {
- schema = l.currentSchema
- }
-
- l.changedResources.AddFunction(
- schema,
- "",
- &storepb.ChangedResourceFunction{
- Name: function,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
- },
- )
-}
-
-func (l *plsqlChangedResourceExtractListener) EnterAlter_function(ctx *parser.Alter_functionContext) {
- var schema, function string
- functionName := ctx.Function_name()
- if functionName.Id_expression() == nil {
- function = NormalizeIdentifierContext(functionName.Identifier())
- } else {
- schema = NormalizeIdentifierContext(functionName.Identifier())
- function = NormalizeIDExpression(functionName.Id_expression())
- }
- if schema == "" {
- schema = l.currentSchema
- }
-
- l.changedResources.AddFunction(
- schema,
- "",
- &storepb.ChangedResourceFunction{
- Name: function,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
- },
- )
-}
-
func (l *plsqlChangedResourceExtractListener) EnterInsert_statement(ctx *parser.Insert_statementContext) {
var resources []base.SchemaResource
if ctx.Single_table_insert() != nil {
@@ -452,8 +239,7 @@ func (l *plsqlChangedResourceExtractListener) EnterInsert_statement(ctx *parser.
resource.Database,
"",
&storepb.ChangedResourceTable{
- Name: resource.Table,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
+ Name: resource.Table,
},
false,
)
@@ -480,8 +266,7 @@ func (l *plsqlChangedResourceExtractListener) EnterUpdate_statement(ctx *parser.
resource.Database,
"",
&storepb.ChangedResourceTable{
- Name: resource.Table,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
+ Name: resource.Table,
},
false,
)
@@ -500,8 +285,7 @@ func (l *plsqlChangedResourceExtractListener) EnterDelete_statement(ctx *parser.
resource.Database,
"",
&storepb.ChangedResourceTable{
- Name: resource.Table,
- Ranges: []*storepb.Range{base.NewRange(l.statement, l.text)},
+ Name: resource.Table,
},
false,
)
diff --git a/backend/plugin/parser/plsql/resource_change_test.go b/backend/plugin/parser/plsql/resource_change_test.go
index 1ae618110c..957c52ce24 100644
--- a/backend/plugin/parser/plsql/resource_change_test.go
+++ b/backend/plugin/parser/plsql/resource_change_test.go
@@ -21,23 +21,9 @@ func TestExtractChangedResources(t *testing.T) {
"",
&storepb.ChangedResourceTable{
Name: "T1",
- Ranges: []*storepb.Range{
- {Start: 0, End: 25},
- {Start: 70, End: 100},
- },
},
false,
)
- changedResources.AddView(
- "DB",
- "",
- &storepb.ChangedResourceView{
- Name: "HELLO",
- Ranges: []*storepb.Range{
- {Start: 27, End: 67},
- },
- },
- )
want := &base.ChangeSummary{
ChangedResources: changedResources,
InsertCount: 1,
diff --git a/backend/plugin/parser/redshift/resource_change.go b/backend/plugin/parser/redshift/resource_change.go
index ed44b9bc24..7fc5bf01a8 100644
--- a/backend/plugin/parser/redshift/resource_change.go
+++ b/backend/plugin/parser/redshift/resource_change.go
@@ -134,44 +134,6 @@ func (*resourceChangeListener) EnterIndexstmt(ctx *parser.IndexstmtContext) {
// For now, we skip index tracking
}
-// EnterCreatematviewstmt is called when entering a creatematviewstmt rule.
-func (l *resourceChangeListener) EnterCreatematviewstmt(ctx *parser.CreatematviewstmtContext) {
- if ctx.CREATE() == nil || ctx.Qualified_name() == nil {
- return
- }
-
- viewName := extractQualifiedName(ctx.Qualified_name())
- schemaName := extractSchemaName(ctx.Qualified_name(), l.searchPath[0])
-
- // For materialized views, we use AddView method
- l.changedResources.AddView(
- l.currentDatabase,
- schemaName,
- &storepb.ChangedResourceView{
- Name: viewName,
- },
- )
-}
-
-// EnterCreateexternalviewstmt is called when entering a createexternalviewstmt rule.
-func (l *resourceChangeListener) EnterCreateexternalviewstmt(ctx *parser.CreateexternalviewstmtContext) {
- if ctx.CREATE() == nil || ctx.Qualified_name() == nil {
- return
- }
-
- viewName := extractQualifiedName(ctx.Qualified_name())
- schemaName := extractSchemaName(ctx.Qualified_name(), l.searchPath[0])
-
- // For external views, we use AddView method
- l.changedResources.AddView(
- l.currentDatabase,
- schemaName,
- &storepb.ChangedResourceView{
- Name: viewName,
- },
- )
-}
-
// EnterVariablesetstmt is called when entering a variablesetstmt rule.
func (l *resourceChangeListener) EnterVariablesetstmt(ctx *parser.VariablesetstmtContext) {
if ctx.SET() == nil {
diff --git a/backend/plugin/parser/tidb/resource_change.go b/backend/plugin/parser/tidb/resource_change.go
index 5ac094524f..f5da69572e 100644
--- a/backend/plugin/parser/tidb/resource_change.go
+++ b/backend/plugin/parser/tidb/resource_change.go
@@ -61,7 +61,7 @@ func extractChangedResources(database string, _ string, dbMetadata *model.Databa
}, nil
}
-func getResourceChanges(database string, node tidbast.StmtNode, statement string, changedResources *model.ChangedResources) error {
+func getResourceChanges(database string, node tidbast.StmtNode, _ string, changedResources *model.ChangedResources) error {
switch node := node.(type) {
case *tidbast.CreateTableStmt:
d, table := node.Table.Schema.O, node.Table.Name.O
@@ -72,27 +72,13 @@ func getResourceChanges(database string, node tidbast.StmtNode, statement string
d,
"",
&storepb.ChangedResourceTable{
- Name: table,
- Ranges: []*storepb.Range{getRange(statement, node)},
+ Name: table,
},
false,
)
case *tidbast.DropTableStmt:
if node.IsView {
- for _, name := range node.Tables {
- d, view := name.Schema.O, name.Name.O
- if d == "" {
- d = database
- }
- changedResources.AddView(
- d,
- "",
- &storepb.ChangedResourceView{
- Name: view,
- Ranges: []*storepb.Range{getRange(statement, node)},
- },
- )
- }
+ // View tracking removed - not used in risk/approval calculations
return nil
}
for _, name := range node.Tables {
@@ -104,8 +90,7 @@ func getResourceChanges(database string, node tidbast.StmtNode, statement string
d,
"",
&storepb.ChangedResourceTable{
- Name: table,
- Ranges: []*storepb.Range{getRange(statement, node)},
+ Name: table,
},
true,
)
@@ -119,8 +104,7 @@ func getResourceChanges(database string, node tidbast.StmtNode, statement string
d,
"",
&storepb.ChangedResourceTable{
- Name: table,
- Ranges: []*storepb.Range{getRange(statement, node)},
+ Name: table,
},
true,
)
@@ -135,8 +119,7 @@ func getResourceChanges(database string, node tidbast.StmtNode, statement string
d,
"",
&storepb.ChangedResourceTable{
- Name: table,
- Ranges: []*storepb.Range{getRange(statement, node)},
+ Name: table,
},
false,
)
@@ -150,8 +133,7 @@ func getResourceChanges(database string, node tidbast.StmtNode, statement string
d,
"",
&storepb.ChangedResourceTable{
- Name: table,
- Ranges: []*storepb.Range{getRange(statement, node)},
+ Name: table,
},
false,
)
@@ -166,8 +148,7 @@ func getResourceChanges(database string, node tidbast.StmtNode, statement string
d,
"",
&storepb.ChangedResourceTable{
- Name: table,
- Ranges: []*storepb.Range{getRange(statement, node)},
+ Name: table,
},
false,
)
@@ -180,24 +161,12 @@ func getResourceChanges(database string, node tidbast.StmtNode, statement string
d,
"",
&storepb.ChangedResourceTable{
- Name: table,
- Ranges: []*storepb.Range{getRange(statement, node)},
+ Name: table,
},
false,
)
case *tidbast.CreateViewStmt:
- d, view := node.ViewName.Schema.O, node.ViewName.Name.O
- if d == "" {
- d = database
- }
- changedResources.AddView(
- d,
- "",
- &storepb.ChangedResourceView{
- Name: view,
- Ranges: []*storepb.Range{getRange(statement, node)},
- },
- )
+ // View tracking removed - not used in risk/approval calculations
case *tidbast.InsertStmt:
tables, err := extractTableRefs(node.Table)
if err != nil {
@@ -212,8 +181,7 @@ func getResourceChanges(database string, node tidbast.StmtNode, statement string
d,
"",
&storepb.ChangedResourceTable{
- Name: table.table,
- Ranges: []*storepb.Range{getRange(statement, node)},
+ Name: table.table,
},
false,
)
@@ -232,8 +200,7 @@ func getResourceChanges(database string, node tidbast.StmtNode, statement string
d,
"",
&storepb.ChangedResourceTable{
- Name: table.table,
- Ranges: []*storepb.Range{getRange(statement, node)},
+ Name: table.table,
},
false,
)
@@ -252,8 +219,7 @@ func getResourceChanges(database string, node tidbast.StmtNode, statement string
d,
"",
&storepb.ChangedResourceTable{
- Name: table.table,
- Ranges: []*storepb.Range{getRange(statement, node)},
+ Name: table.table,
},
false,
)
@@ -268,8 +234,7 @@ func getResourceChanges(database string, node tidbast.StmtNode, statement string
d,
"",
&storepb.ChangedResourceTable{
- Name: table.Name.O,
- Ranges: []*storepb.Range{getRange(statement, node)},
+ Name: table.Name.O,
},
false,
)
@@ -280,13 +245,6 @@ func getResourceChanges(database string, node tidbast.StmtNode, statement string
return nil
}
-func getRange(statement string, node tidbast.StmtNode) *storepb.Range {
- r := base.NewRange(statement, trimStatement(node.OriginalText()))
- // TiDB node text does not including the trailing semicolon.
- r.End++
- return r
-}
-
func trimStatement(statement string) string {
return strings.TrimLeftFunc(strings.TrimRightFunc(statement, utils.IsSpaceOrSemicolon), unicode.IsSpace)
}
diff --git a/backend/plugin/parser/tidb/resource_change_test.go b/backend/plugin/parser/tidb/resource_change_test.go
index 16c300d771..289085ba1f 100644
--- a/backend/plugin/parser/tidb/resource_change_test.go
+++ b/backend/plugin/parser/tidb/resource_change_test.go
@@ -24,14 +24,6 @@ func TestExtractChangedResources(t *testing.T) {
"",
&storepb.ChangedResourceTable{
Name: "t1",
- Ranges: []*storepb.Range{
- {Start: 0, End: 25},
- {Start: 27, End: 41},
- {Start: 43, End: 76},
- {Start: 78, End: 100},
- {Start: 102, End: 138},
- {Start: 140, End: 161},
- },
},
true,
)
@@ -39,8 +31,7 @@ func TestExtractChangedResources(t *testing.T) {
"db",
"",
&storepb.ChangedResourceTable{
- Name: "t2",
- Ranges: []*storepb.Range{{Start: 78, End: 100}},
+ Name: "t2",
},
false,
)
diff --git a/backend/plugin/parser/tsql/resource_change.go b/backend/plugin/parser/tsql/resource_change.go
index 0e7dfcbe8a..8747e8b111 100644
--- a/backend/plugin/parser/tsql/resource_change.go
+++ b/backend/plugin/parser/tsql/resource_change.go
@@ -76,8 +76,7 @@ func (l *tsqlChangedResourceExtractListener) EnterCreate_table(ctx *parser.Creat
d,
s,
&storepb.ChangedResourceTable{
- Name: t,
- Ranges: []*storepb.Range{base.NewRange(l.statement, trimStatement(l.text))},
+ Name: t,
},
false)
}
@@ -94,8 +93,7 @@ func (l *tsqlChangedResourceExtractListener) EnterDrop_table(ctx *parser.Drop_ta
d,
s,
&storepb.ChangedResourceTable{
- Name: t,
- Ranges: []*storepb.Range{base.NewRange(l.statement, trimStatement(l.text))},
+ Name: t,
},
true)
}
@@ -113,8 +111,7 @@ func (l *tsqlChangedResourceExtractListener) EnterAlter_table(ctx *parser.Alter_
d,
s,
&storepb.ChangedResourceTable{
- Name: t,
- Ranges: []*storepb.Range{base.NewRange(l.statement, trimStatement(l.text))},
+ Name: t,
},
true)
}
@@ -131,8 +128,7 @@ func (l *tsqlChangedResourceExtractListener) EnterCreate_index(ctx *parser.Creat
d,
s,
&storepb.ChangedResourceTable{
- Name: t,
- Ranges: []*storepb.Range{base.NewRange(l.statement, trimStatement(l.text))},
+ Name: t,
},
false)
}
@@ -157,102 +153,12 @@ func (l *tsqlChangedResourceExtractListener) EnterDrop_index(ctx *parser.Drop_in
d,
s,
&storepb.ChangedResourceTable{
- Name: fullTable.Table,
- Ranges: []*storepb.Range{base.NewRange(l.statement, trimStatement(l.text))},
+ Name: fullTable.Table,
},
false)
}
}
-// EnterCreate_view is called when production create_view is entered.
-func (l *tsqlChangedResourceExtractListener) EnterCreate_view(ctx *parser.Create_viewContext) {
- d, _ := NormalizeTSQLIdentifierText(l.currentDatabase)
- schema, name := normalizeSimpleNameSeparated(ctx.Simple_name(), l.currentSchema, false)
- l.changedResources.AddView(
- d,
- schema,
- &storepb.ChangedResourceView{
- Name: name,
- Ranges: []*storepb.Range{base.NewRange(l.statement, trimStatement(l.text))},
- },
- )
-}
-
-func (l *tsqlChangedResourceExtractListener) EnterDrop_view(ctx *parser.Drop_viewContext) {
- d, _ := NormalizeTSQLIdentifierText(l.currentDatabase)
- for _, simpleName := range ctx.AllSimple_name() {
- schema, name := normalizeSimpleNameSeparated(simpleName, l.currentSchema, false)
- l.changedResources.AddView(
- d,
- schema,
- &storepb.ChangedResourceView{
- Name: name,
- Ranges: []*storepb.Range{base.NewRange(l.statement, trimStatement(l.text))},
- },
- )
- }
-}
-
-func (l *tsqlChangedResourceExtractListener) EnterCreate_or_alter_procedure(ctx *parser.Create_or_alter_procedureContext) {
- d, _ := NormalizeTSQLIdentifierText(l.currentDatabase)
- schema, procedure := normalizeProcedureSeparated(ctx.GetProcName(), l.currentSchema, false)
-
- l.changedResources.AddProcedure(
- d,
- schema,
- &storepb.ChangedResourceProcedure{
- Name: procedure,
- Ranges: []*storepb.Range{base.NewRange(l.statement, trimStatement(l.text))},
- },
- )
-}
-
-func (l *tsqlChangedResourceExtractListener) EnterDrop_procedure(ctx *parser.Drop_procedureContext) {
- d, _ := NormalizeTSQLIdentifierText(l.currentDatabase)
- for _, functionName := range ctx.AllFunc_proc_name_schema() {
- schema, function := normalizeProcedureSeparated(functionName, l.currentSchema, false)
-
- l.changedResources.AddFunction(
- d,
- schema,
- &storepb.ChangedResourceFunction{
- Name: function,
- Ranges: []*storepb.Range{base.NewRange(l.statement, trimStatement(l.text))},
- },
- )
- }
-}
-
-func (l *tsqlChangedResourceExtractListener) EnterCreate_or_alter_function(ctx *parser.Create_or_alter_functionContext) {
- d, _ := NormalizeTSQLIdentifierText(l.currentDatabase)
- schema, function := normalizeProcedureSeparated(ctx.GetFuncName(), l.currentSchema, false)
-
- l.changedResources.AddFunction(
- d,
- schema,
- &storepb.ChangedResourceFunction{
- Name: function,
- Ranges: []*storepb.Range{base.NewRange(l.statement, trimStatement(l.text))},
- },
- )
-}
-
-func (l *tsqlChangedResourceExtractListener) EnterDrop_function(ctx *parser.Drop_functionContext) {
- d, _ := NormalizeTSQLIdentifierText(l.currentDatabase)
- for _, functionName := range ctx.AllFunc_proc_name_schema() {
- schema, function := normalizeProcedureSeparated(functionName, l.currentSchema, false)
-
- l.changedResources.AddFunction(
- d,
- schema,
- &storepb.ChangedResourceFunction{
- Name: function,
- Ranges: []*storepb.Range{base.NewRange(l.statement, trimStatement(l.text))},
- },
- )
- }
-}
-
func (l *tsqlChangedResourceExtractListener) EnterInsert_statement(ctx *parser.Insert_statementContext) {
if ctx.Ddl_object() != nil && ctx.Ddl_object().Full_table_name() != nil {
table, err := NormalizeFullTableName(ctx.Ddl_object().Full_table_name())
@@ -269,8 +175,7 @@ func (l *tsqlChangedResourceExtractListener) EnterInsert_statement(ctx *parser.I
d,
s,
&storepb.ChangedResourceTable{
- Name: table.Table,
- Ranges: []*storepb.Range{base.NewRange(l.statement, trimStatement(l.text))},
+ Name: table.Table,
},
false,
)
@@ -306,8 +211,7 @@ func (l *tsqlChangedResourceExtractListener) EnterUpdate_statement(ctx *parser.U
d,
s,
&storepb.ChangedResourceTable{
- Name: table.Table,
- Ranges: []*storepb.Range{base.NewRange(l.statement, trimStatement(l.text))},
+ Name: table.Table,
},
false,
)
@@ -338,8 +242,7 @@ func (l *tsqlChangedResourceExtractListener) EnterDelete_statement(ctx *parser.D
d,
s,
&storepb.ChangedResourceTable{
- Name: table.Table,
- Ranges: []*storepb.Range{base.NewRange(l.statement, trimStatement(l.text))},
+ Name: table.Table,
},
false,
)
diff --git a/backend/plugin/parser/tsql/resource_change_test.go b/backend/plugin/parser/tsql/resource_change_test.go
index fb5806cc4a..6b9aa0e732 100644
--- a/backend/plugin/parser/tsql/resource_change_test.go
+++ b/backend/plugin/parser/tsql/resource_change_test.go
@@ -23,13 +23,6 @@ func TestExtractChangedResources(t *testing.T) {
"dbo",
&storepb.ChangedResourceTable{
Name: "t1",
- Ranges: []*storepb.Range{
- {Start: 0, End: 25},
- {Start: 27, End: 41},
- {Start: 43, End: 71},
- {Start: 73, End: 109},
- {Start: 111, End: 132},
- },
},
true,
)
diff --git a/backend/plugin/parser/tsql/tsql.go b/backend/plugin/parser/tsql/tsql.go
index 37d209b652..024859e378 100644
--- a/backend/plugin/parser/tsql/tsql.go
+++ b/backend/plugin/parser/tsql/tsql.go
@@ -151,22 +151,6 @@ func parseSingleTSQL(statement string, baseLine int) (*base.ParseResult, error)
return result, nil
}
-func normalizeSimpleNameSeparated(ctx parser.ISimple_nameContext, fallbackSchemaName string, _ bool) (string, string) {
- schema := fallbackSchemaName
- name := ""
- if s := ctx.GetSchema(); s != nil {
- if id, _ := NormalizeTSQLIdentifier(s); id != "" {
- schema = id
- }
- }
- if t := ctx.GetName(); t != nil {
- if id, _ := NormalizeTSQLIdentifier(t); id != "" {
- name = id
- }
- }
- return schema, name
-}
-
func normalizeTableNameSeparated(ctx parser.ITable_nameContext, fallbackDatabaseName, fallbackSchemaName string, _ bool) (string, string, string) {
database := fallbackDatabaseName
schema := fallbackSchemaName
@@ -205,22 +189,6 @@ func NormalizeTSQLTableName(ctx parser.ITable_nameContext, fallbackDatabaseName,
return strings.Join(tableNameParts, ".")
}
-func normalizeProcedureSeparated(ctx parser.IFunc_proc_name_schemaContext, fallbackSchemaName string, _ bool) (string, string) {
- schema := fallbackSchemaName
- name := ""
- if s := ctx.GetSchema(); s != nil {
- if id, _ := NormalizeTSQLIdentifier(s); id != "" {
- schema = id
- }
- }
- if t := ctx.GetProcedure(); t != nil {
- if id, _ := NormalizeTSQLIdentifier(t); id != "" {
- name = id
- }
- }
- return schema, name
-}
-
// NormalizeTSQLIdentifier returns the normalized identifier.
// https://learn.microsoft.com/zh-cn/sql/relational-databases/databases/database-identifiers?view=sql-server-ver15
// TODO(zp): currently, we returns the lowercase and original of the part, we may need to get the CI/CS from the server/database.
diff --git a/backend/runner/taskrun/executor.go b/backend/runner/taskrun/executor.go
index 0430939ca0..26d1cebce4 100644
--- a/backend/runner/taskrun/executor.go
+++ b/backend/runner/taskrun/executor.go
@@ -4,7 +4,6 @@ import (
"context"
"fmt"
"log/slog"
- "slices"
"time"
"github.com/pkg/errors"
@@ -90,8 +89,6 @@ type migrateContext struct {
// changelog uid
changelog int64
- changeHistoryPayload *storepb.InstanceChangeHistoryPayload
-
// needDump indicates whether schema dump is needed before/after migration.
// False for pure DML (INSERT, UPDATE, DELETE) since they don't change schema.
needDump bool
@@ -224,67 +221,6 @@ func getMigrationInfo(ctx context.Context, stores *store.Store, profile *config.
}
}
- plans, err := stores.ListPlans(ctx, &store.FindPlanMessage{PipelineID: &task.PipelineID})
- if err != nil {
- return nil, errors.Wrapf(err, "failed to list plans")
- }
- if len(plans) == 1 {
- planTypes := []store.PlanCheckRunType{store.PlanCheckDatabaseStatementSummaryReport}
- status := []store.PlanCheckRunStatus{store.PlanCheckRunStatusDone}
- runs, err := stores.ListPlanCheckRuns(ctx, &store.FindPlanCheckRunMessage{
- PlanUID: &plans[0].UID,
- Type: &planTypes,
- Status: &status,
- })
- if err != nil {
- return nil, errors.Wrap(err, "failed to list plan check runs")
- }
- slices.SortFunc(runs, func(a, b *store.PlanCheckRunMessage) int {
- if a.UID > b.UID {
- return -1
- } else if a.UID < b.UID {
- return 1
- }
- return 0
- })
- foundChangedResources := false
- for _, run := range runs {
- if foundChangedResources {
- break
- }
- taskInstance, err := stores.GetInstance(ctx, &store.FindInstanceMessage{ResourceID: &task.InstanceID})
- if err != nil {
- return nil, err
- }
- if taskInstance == nil {
- return nil, errors.Errorf("task %d instance not found", task.ID)
- }
-
- if run.Config.InstanceId != taskInstance.ResourceID {
- continue
- }
- if run.Config.DatabaseName != database.DatabaseName {
- continue
- }
- if sheetID != nil && run.Config.SheetUid != int32(*sheetID) {
- continue
- }
- if run.Result == nil {
- continue
- }
- for _, result := range run.Result.Results {
- if result.Status != storepb.Advice_SUCCESS {
- continue
- }
- if report := result.GetSqlSummaryReport(); report != nil {
- mc.changeHistoryPayload = &storepb.InstanceChangeHistoryPayload{ChangedResources: report.ChangedResources}
- foundChangedResources = true
- break
- }
- }
- }
- }
-
issue, err := stores.GetIssue(ctx, &store.FindIssueMessage{PipelineID: &task.PipelineID})
if err != nil {
slog.Error("failed to find containing issue", log.BBError(err))
@@ -514,15 +450,14 @@ func beginMigration(ctx context.Context, stores *store.Store, mc *migrateContext
PrevSyncHistoryUID: syncHistoryPrevUID,
SyncHistoryUID: nil,
Payload: &storepb.ChangelogPayload{
- TaskRun: mc.taskRunName,
- Issue: mc.issueName,
- Revision: 0,
- ChangedResources: mc.changeHistoryPayload.GetChangedResources(),
- Sheet: mc.sheetName,
- Version: mc.version,
- Type: changelogType,
- GitCommit: mc.profile.GitCommit,
- DumpVersion: schema.GetDumpFormatVersion(mc.instance.Metadata.GetEngine()),
+ TaskRun: mc.taskRunName,
+ Issue: mc.issueName,
+ Revision: 0,
+ Sheet: mc.sheetName,
+ Version: mc.version,
+ Type: changelogType,
+ GitCommit: mc.profile.GitCommit,
+ DumpVersion: schema.GetDumpFormatVersion(mc.instance.Metadata.GetEngine()),
}})
if err != nil {
return false, errors.Wrapf(err, "failed to create changelog")
diff --git a/backend/store/model/changed_resources.go b/backend/store/model/changed_resources.go
index cdb497b8c6..6e5d5abdd5 100644
--- a/backend/store/model/changed_resources.go
+++ b/backend/store/model/changed_resources.go
@@ -17,10 +17,7 @@ type ChangedDatabase struct {
}
type ChangedSchema struct {
- tables map[string]*ChangedTable
- views map[string]*storepb.ChangedResourceView
- functions map[string]*storepb.ChangedResourceFunction
- procedures map[string]*storepb.ChangedResourceProcedure
+ tables map[string]*ChangedTable
}
type ChangedTable struct {
@@ -92,42 +89,6 @@ func (s *ChangedSchema) build() *storepb.ChangedResourceSchema {
return 0
})
- for _, view := range s.views {
- changedResourceSchema.Views = append(changedResourceSchema.Views, view)
- }
- slices.SortFunc(changedResourceSchema.Views, func(a, b *storepb.ChangedResourceView) int {
- if a.GetName() < b.GetName() {
- return -1
- } else if a.GetName() > b.GetName() {
- return 1
- }
- return 0
- })
-
- for _, function := range s.functions {
- changedResourceSchema.Functions = append(changedResourceSchema.Functions, function)
- }
- slices.SortFunc(changedResourceSchema.Functions, func(a, b *storepb.ChangedResourceFunction) int {
- if a.GetName() < b.GetName() {
- return -1
- } else if a.GetName() > b.GetName() {
- return 1
- }
- return 0
- })
-
- for _, procedure := range s.procedures {
- changedResourceSchema.Procedures = append(changedResourceSchema.Procedures, procedure)
- }
- slices.SortFunc(changedResourceSchema.Procedures, func(a, b *storepb.ChangedResourceProcedure) int {
- if a.GetName() < b.GetName() {
- return -1
- } else if a.GetName() > b.GetName() {
- return 1
- }
- return 0
- })
-
return changedResourceSchema
}
@@ -156,73 +117,6 @@ func (r *ChangedResources) AddTable(database string, schema string, change *stor
if affectedTable {
v.affectedTable = true
}
- v.table.Ranges = append(v.table.Ranges, change.GetRanges()...)
-}
-
-func (r *ChangedResources) AddView(database string, schema string, change *storepb.ChangedResourceView) {
- if _, ok := r.databases[database]; !ok {
- r.databases[database] = &ChangedDatabase{
- schemas: make(map[string]*ChangedSchema),
- }
- }
- if _, ok := r.databases[database].schemas[schema]; !ok {
- r.databases[database].schemas[schema] = &ChangedSchema{
- tables: make(map[string]*ChangedTable),
- }
- }
- if r.databases[database].schemas[schema].views == nil {
- r.databases[database].schemas[schema].views = make(map[string]*storepb.ChangedResourceView)
- }
- v, ok := r.databases[database].schemas[schema].views[change.GetName()]
- if !ok {
- r.databases[database].schemas[schema].views[change.GetName()] = change
- return
- }
- v.Ranges = append(v.Ranges, change.GetRanges()...)
-}
-
-func (r *ChangedResources) AddFunction(database string, schema string, change *storepb.ChangedResourceFunction) {
- if _, ok := r.databases[database]; !ok {
- r.databases[database] = &ChangedDatabase{
- schemas: make(map[string]*ChangedSchema),
- }
- }
- if _, ok := r.databases[database].schemas[schema]; !ok {
- r.databases[database].schemas[schema] = &ChangedSchema{
- tables: make(map[string]*ChangedTable),
- }
- }
- if r.databases[database].schemas[schema].functions == nil {
- r.databases[database].schemas[schema].functions = make(map[string]*storepb.ChangedResourceFunction)
- }
- v, ok := r.databases[database].schemas[schema].functions[change.GetName()]
- if !ok {
- r.databases[database].schemas[schema].functions[change.GetName()] = change
- return
- }
- v.Ranges = append(v.Ranges, change.GetRanges()...)
-}
-
-func (r *ChangedResources) AddProcedure(database string, schema string, change *storepb.ChangedResourceProcedure) {
- if _, ok := r.databases[database]; !ok {
- r.databases[database] = &ChangedDatabase{
- schemas: make(map[string]*ChangedSchema),
- }
- }
- if _, ok := r.databases[database].schemas[schema]; !ok {
- r.databases[database].schemas[schema] = &ChangedSchema{
- tables: make(map[string]*ChangedTable),
- }
- }
- if r.databases[database].schemas[schema].procedures == nil {
- r.databases[database].schemas[schema].procedures = make(map[string]*storepb.ChangedResourceProcedure)
- }
- v, ok := r.databases[database].schemas[schema].procedures[change.GetName()]
- if !ok {
- r.databases[database].schemas[schema].procedures[change.GetName()] = change
- return
- }
- v.Ranges = append(v.Ranges, change.GetRanges()...)
}
func (r *ChangedResources) CountAffectedTableRows() int64 {
diff --git a/frontend/src/types/proto-es/v1/database_service_pb.d.ts b/frontend/src/types/proto-es/v1/database_service_pb.d.ts
index 25e66065e1..988f702323 100644
--- a/frontend/src/types/proto-es/v1/database_service_pb.d.ts
+++ b/frontend/src/types/proto-es/v1/database_service_pb.d.ts
@@ -5,7 +5,7 @@
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
import type { Message } from "@bufbuild/protobuf";
import type { FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";
-import type { Range, State } from "./common_pb";
+import type { State } from "./common_pb";
import type { InstanceResource } from "./instance_service_pb";
/**
@@ -2896,171 +2896,6 @@ export declare type DatabaseSDLSchema = Message<"bytebase.v1.DatabaseSDLSchema">
*/
export declare const DatabaseSDLSchemaSchema: GenMessage<DatabaseSDLSchema>;
-/**
- * @generated from message bytebase.v1.ChangedResources
- */
-export declare type ChangedResources = Message<"bytebase.v1.ChangedResources"> & {
- /**
- * @generated from field: repeated bytebase.v1.ChangedResourceDatabase databases = 1;
- */
- databases: ChangedResourceDatabase[];
-};
-
-/**
- * Describes the message bytebase.v1.ChangedResources.
- * Use `create(ChangedResourcesSchema)` to create a new message.
- */
-export declare const ChangedResourcesSchema: GenMessage<ChangedResources>;
-
-/**
- * @generated from message bytebase.v1.ChangedResourceDatabase
- */
-export declare type ChangedResourceDatabase = Message<"bytebase.v1.ChangedResourceDatabase"> & {
- /**
- * @generated from field: string name = 1;
- */
- name: string;
-
- /**
- * @generated from field: repeated bytebase.v1.ChangedResourceSchema schemas = 2;
- */
- schemas: ChangedResourceSchema[];
-};
-
-/**
- * Describes the message bytebase.v1.ChangedResourceDatabase.
- * Use `create(ChangedResourceDatabaseSchema)` to create a new message.
- */
-export declare const ChangedResourceDatabaseSchema: GenMessage<ChangedResourceDatabase>;
-
-/**
- * @generated from message bytebase.v1.ChangedResourceSchema
- */
-export declare type ChangedResourceSchema = Message<"bytebase.v1.ChangedResourceSchema"> & {
- /**
- * @generated from field: string name = 1;
- */
- name: string;
-
- /**
- * @generated from field: repeated bytebase.v1.ChangedResourceTable tables = 2;
- */
- tables: ChangedResourceTable[];
-
- /**
- * @generated from field: repeated bytebase.v1.ChangedResourceView views = 3;
- */
- views: ChangedResourceView[];
-
- /**
- * @generated from field: repeated bytebase.v1.ChangedResourceFunction functions = 4;
- */
- functions: ChangedResourceFunction[];
-
- /**
- * @generated from field: repeated bytebase.v1.ChangedResourceProcedure procedures = 5;
- */
- procedures: ChangedResourceProcedure[];
-};
-
-/**
- * Describes the message bytebase.v1.ChangedResourceSchema.
- * Use `create(ChangedResourceSchemaSchema)` to create a new message.
- */
-export declare const ChangedResourceSchemaSchema: GenMessage<ChangedResourceSchema>;
-
-/**
- * @generated from message bytebase.v1.ChangedResourceTable
- */
-export declare type ChangedResourceTable = Message<"bytebase.v1.ChangedResourceTable"> & {
- /**
- * @generated from field: string name = 1;
- */
- name: string;
-
- /**
- * The ranges of sub-strings correspond to the statements on the sheet.
- *
- * @generated from field: repeated bytebase.v1.Range ranges = 2;
- */
- ranges: Range[];
-};
-
-/**
- * Describes the message bytebase.v1.ChangedResourceTable.
- * Use `create(ChangedResourceTableSchema)` to create a new message.
- */
-export declare const ChangedResourceTableSchema: GenMessage<ChangedResourceTable>;
-
-/**
- * @generated from message bytebase.v1.ChangedResourceView
- */
-export declare type ChangedResourceView = Message<"bytebase.v1.ChangedResourceView"> & {
- /**
- * @generated from field: string name = 1;
- */
- name: string;
-
- /**
- * The ranges of sub-strings correspond to the statements on the sheet.
- *
- * @generated from field: repeated bytebase.v1.Range ranges = 2;
- */
- ranges: Range[];
-};
-
-/**
- * Describes the message bytebase.v1.ChangedResourceView.
- * Use `create(ChangedResourceViewSchema)` to create a new message.
- */
-export declare const ChangedResourceViewSchema: GenMessage<ChangedResourceView>;
-
-/**
- * @generated from message bytebase.v1.ChangedResourceFunction
- */
-export declare type ChangedResourceFunction = Message<"bytebase.v1.ChangedResourceFunction"> & {
- /**
- * @generated from field: string name = 1;
- */
- name: string;
-
- /**
- * The ranges of sub-strings correspond to the statements on the sheet.
- *
- * @generated from field: repeated bytebase.v1.Range ranges = 2;
- */
- ranges: Range[];
-};
-
-/**
- * Describes the message bytebase.v1.ChangedResourceFunction.
- * Use `create(ChangedResourceFunctionSchema)` to create a new message.
- */
-export declare const ChangedResourceFunctionSchema: GenMessage<ChangedResourceFunction>;
-
-/**
- * @generated from message bytebase.v1.ChangedResourceProcedure
- */
-export declare type ChangedResourceProcedure = Message<"bytebase.v1.ChangedResourceProcedure"> & {
- /**
- * @generated from field: string name = 1;
- */
- name: string;
-
- /**
- * The ranges of sub-strings correspond to the statements on the sheet.
- *
- * @generated from field: repeated bytebase.v1.Range ranges = 2;
- */
- ranges: Range[];
-};
-
-/**
- * Describes the message bytebase.v1.ChangedResourceProcedure.
- * Use `create(ChangedResourceProcedureSchema)` to create a new message.
- */
-export declare const ChangedResourceProcedureSchema: GenMessage<ChangedResourceProcedure>;
-
/**
* @generated from message bytebase.v1.ListChangelogsRequest
*/
@@ -3245,11 +3080,6 @@ export declare type Changelog = Message<"bytebase.v1.Changelog"> & {
*/
revision: string;
- /**
- * @generated from field: bytebase.v1.ChangedResources changed_resources = 15;
- */
- changedResources?: ChangedResources;
-
/**
* @generated from field: bytebase.v1.Changelog.Type type = 16;
*/
diff --git a/frontend/src/types/proto-es/v1/database_service_pb.js b/frontend/src/types/proto-es/v1/database_service_pb.js
index 8c6b330c6d..8a194a5ce8 100644
--- a/frontend/src/types/proto-es/v1/database_service_pb.js
+++ b/frontend/src/types/proto-es/v1/database_service_pb.js
@@ -16,7 +16,7 @@ import { file_v1_instance_service } from "./instance_service_pb";
* Describes the file v1/database_service.proto.
*/
export const file_v1_database_service = /*@__PURE__*/
- fileDesc("Chl2MS9kYXRhYmFzZV9zZXJ2aWNlLnByb3RvEgtieXRlYmFzZS52MSJBChJHZXREYXRhYmFzZVJlcXVlc3QSKwoEbmFtZRgBIAEoCUId4EEC+kEXChVieXRlYmFzZS5jb20vRGF0YWJhc2UidwoYQmF0Y2hHZXREYXRhYmFzZXNSZXF1ZXN0Ei0KBnBhcmVudBgBIAEoCUId4EEC+kEXEhVieXRlYmFzZS5jb20vRGF0YWJhc2USLAoFbmFtZXMYAiADKAlCHeBBAvpBFwoVYnl0ZWJhc2UuY29tL0RhdGFiYXNlIkUKGUJhdGNoR2V0RGF0YWJhc2VzUmVzcG9uc2USKAoJZGF0YWJhc2VzGAEgAygLMhUuYnl0ZWJhc2UudjEuRGF0YWJhc2UikgEKFExpc3REYXRhYmFzZXNSZXF1ZXN0Ei0KBnBhcmVudBgBIAEoCUId4EEC+kEXEhVieXRlYmFzZS5jb20vRGF0YWJhc2USEQoJcGFnZV9zaXplGAIgASgFEhIKCnBhZ2VfdG9rZW4YAyABKAkSDgoGZmlsdGVyGAQgASgJEhQKDHNob3dfZGV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luc3RhbmNlcy8qL2RhdGFiYXNlcy8qfS9jaGFuZ2Vsb2dzEqEBCgxHZXRDaGFuZ2Vsb2cSIC5ieXRlYmFzZS52MS5HZXRDaGFuZ2Vsb2dSZXF1ZXN0GhYuYnl0ZWJhc2UudjEuQ2hhbmdlbG9nIlfaQQRuYW1liuowEWJiLmNoYW5nZWxvZ3MuZ2V0kOowAYLT5JMCMRIvL3YxL3tuYW1lPWluc3RhbmNlcy8qL2RhdGFiYXNlcy8qL2NoYW5nZWxvZ3MvKn0SugEKD0dldFNjaGVtYVN0cmluZxIjLmJ5dGViYXNlLnYxLkdldFNjaGVtYVN0cmluZ1JlcXVlc3QaJC5ieXRlYmFzZS52MS5HZXRTY2hlbWFTdHJpbmdSZXNwb25zZSJc2kEEbmFtZYrqMBZiYi5kYXRhYmFzZXMuZ2V0U2NoZW1hkOowAYLT5JMCMRIvL3YxL3tuYW1lPWluc3RhbmNlcy8qL2RhdGFiYXNlcy8qL3NjaGVtYVN0cmluZ31CqgEKD2NvbS5ieXRlYmFzZS52MUIURGF0YWJhc2VTZXJ2aWNlUHJvdG9QAVo0Z2l0aHViLmNvbS9ieXRlYmFzZS9ieXRlYmFzZS9iYWNrZW5kL2dlbmVyYXRlZC1nby92MaICA0JYWKoCC0J5dGViYXNlLlYxygILQnl0ZWJhc2VcVjHiAhdCeXRlYmFzZVxWMVxHUEJNZXRhZGF0YeoCDEJ5dGViYXNlOjpWMWIGcHJvdG8z", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_v1_annotation, file_v1_common, file_v1_instance_service]);
+ fileDesc("Chl2MS9kYXRhYmFzZV9zZXJ2aWNlLnByb3RvEgtieXRlYmFzZS52MSJBChJHZXREYXRhYmFzZVJlcXVlc3QSKwoEbmFtZRgBIAEoCUId4EEC+kEXChVieXRlYmFzZS5jb20vRGF0YWJhc2UidwoYQmF0Y2hHZXREYXRhYmFzZXNSZXF1ZX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gILQnl0ZWJhc2UuVjHKAgtCeXRlYmFzZVxWMeICF0J5dGViYXNlXFYxXEdQQk1ldGFkYXRh6gIMQnl0ZWJhc2U6OlYxYgZwcm90bzM", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_v1_annotation, file_v1_common, file_v1_instance_service]);
/**
* Describes the message bytebase.v1.GetDatabaseRequest.
@@ -469,88 +469,39 @@ export const DatabaseSchemaSchema = /*@__PURE__*/
export const DatabaseSDLSchemaSchema = /*@__PURE__*/
messageDesc(file_v1_database_service, 50);
-/**
- * Describes the message bytebase.v1.ChangedResources.
- * Use `create(ChangedResourcesSchema)` to create a new message.
- */
-export const ChangedResourcesSchema = /*@__PURE__*/
- messageDesc(file_v1_database_service, 51);
-
-/**
- * Describes the message bytebase.v1.ChangedResourceDatabase.
- * Use `create(ChangedResourceDatabaseSchema)` to create a new message.
- */
-export const ChangedResourceDatabaseSchema = /*@__PURE__*/
- messageDesc(file_v1_database_service, 52);
-
-/**
- * Describes the message bytebase.v1.ChangedResourceSchema.
- * Use `create(ChangedResourceSchemaSchema)` to create a new message.
- */
-export const ChangedResourceSchemaSchema = /*@__PURE__*/
- messageDesc(file_v1_database_service, 53);
-
-/**
- * Describes the message bytebase.v1.ChangedResourceTable.
- * Use `create(ChangedResourceTableSchema)` to create a new message.
- */
-export const ChangedResourceTableSchema = /*@__PURE__*/
- messageDesc(file_v1_database_service, 54);
-
-/**
- * Describes the message bytebase.v1.ChangedResourceView.
- * Use `create(ChangedResourceViewSchema)` to create a new message.
- */
-export const ChangedResourceViewSchema = /*@__PURE__*/
- messageDesc(file_v1_database_service, 55);
-
-/**
- * Describes the message bytebase.v1.ChangedResourceFunction.
- * Use `create(ChangedResourceFunctionSchema)` to create a new message.
- */
-export const ChangedResourceFunctionSchema = /*@__PURE__*/
- messageDesc(file_v1_database_service, 56);
-
-/**
- * Describes the message bytebase.v1.ChangedResourceProcedure.
- * Use `create(ChangedResourceProcedureSchema)` to create a new message.
- */
-export const ChangedResourceProcedureSchema = /*@__PURE__*/
- messageDesc(file_v1_database_service, 57);
-
/**
* Describes the message bytebase.v1.ListChangelogsRequest.
* Use `create(ListChangelogsRequestSchema)` to create a new message.
*/
export const ListChangelogsRequestSchema = /*@__PURE__*/
- messageDesc(file_v1_database_service, 58);
+ messageDesc(file_v1_database_service, 51);
/**
* Describes the message bytebase.v1.ListChangelogsResponse.
* Use `create(ListChangelogsResponseSchema)` to create a new message.
*/
export const ListChangelogsResponseSchema = /*@__PURE__*/
- messageDesc(file_v1_database_service, 59);
+ messageDesc(file_v1_database_service, 52);
/**
* Describes the message bytebase.v1.GetChangelogRequest.
* Use `create(GetChangelogRequestSchema)` to create a new message.
*/
export const GetChangelogRequestSchema = /*@__PURE__*/
- messageDesc(file_v1_database_service, 60);
+ messageDesc(file_v1_database_service, 53);
/**
* Describes the message bytebase.v1.Changelog.
* Use `create(ChangelogSchema)` to create a new message.
*/
export const ChangelogSchema = /*@__PURE__*/
- messageDesc(file_v1_database_service, 61);
+ messageDesc(file_v1_database_service, 54);
/**
* Describes the enum bytebase.v1.Changelog.Status.
*/
export const Changelog_StatusSchema = /*@__PURE__*/
- enumDesc(file_v1_database_service, 61, 0);
+ enumDesc(file_v1_database_service, 54, 0);
/**
* @generated from enum bytebase.v1.Changelog.Status
@@ -562,7 +513,7 @@ export const Changelog_Status = /*@__PURE__*/
* Describes the enum bytebase.v1.Changelog.Type.
*/
export const Changelog_TypeSchema = /*@__PURE__*/
- enumDesc(file_v1_database_service, 61, 1);
+ enumDesc(file_v1_database_service, 54, 1);
/**
* @generated from enum bytebase.v1.Changelog.Type
@@ -575,13 +526,13 @@ export const Changelog_Type = /*@__PURE__*/
* Use `create(GetSchemaStringRequestSchema)` to create a new message.
*/
export const GetSchemaStringRequestSchema = /*@__PURE__*/
- messageDesc(file_v1_database_service, 62);
+ messageDesc(file_v1_database_service, 55);
/**
* Describes the enum bytebase.v1.GetSchemaStringRequest.ObjectType.
*/
export const GetSchemaStringRequest_ObjectTypeSchema = /*@__PURE__*/
- enumDesc(file_v1_database_service, 62, 0);
+ enumDesc(file_v1_database_service, 55, 0);
/**
* @generated from enum bytebase.v1.GetSchemaStringRequest.ObjectType
@@ -594,7 +545,7 @@ export const GetSchemaStringRequest_ObjectType = /*@__PURE__*/
* Use `create(GetSchemaStringResponseSchema)` to create a new message.
*/
export const GetSchemaStringResponseSchema = /*@__PURE__*/
- messageDesc(file_v1_database_service, 63);
+ messageDesc(file_v1_database_service, 56);
/**
* Describes the enum bytebase.v1.ChangelogView.
diff --git a/frontend/src/types/proto-es/v1/plan_service_pb.d.ts b/frontend/src/types/proto-es/v1/plan_service_pb.d.ts
index 18601c34c3..bee7826037 100644
--- a/frontend/src/types/proto-es/v1/plan_service_pb.d.ts
+++ b/frontend/src/types/proto-es/v1/plan_service_pb.d.ts
@@ -7,7 +7,6 @@ import type { Message } from "@bufbuild/protobuf";
import type { FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";
import type { DatabaseChangeType, ExportFormat, Position, State } from "./common_pb";
import type { Advice_Level } from "./sql_service_pb";
-import type { ChangedResources } from "./database_service_pb";
/**
* Describes the file v1/plan_service.proto.
@@ -884,11 +883,6 @@ export declare type PlanCheckRun_Result_SqlSummaryReport = Message<"bytebase.v1.
* @generated from field: int64 affected_rows = 3;
*/
affectedRows: bigint;
-
- /**
- * @generated from field: bytebase.v1.ChangedResources changed_resources = 4;
- */
- changedResources?: ChangedResources;
};
/**
diff --git a/frontend/src/types/proto-es/v1/plan_service_pb.js b/frontend/src/types/proto-es/v1/plan_service_pb.js
index 35a9470510..d344019612 100644
--- a/frontend/src/types/proto-es/v1/plan_service_pb.js
+++ b/frontend/src/types/proto-es/v1/plan_service_pb.js
@@ -11,14 +11,13 @@ import { file_google_api_resource } from "../google/api/resource_pb";
import { file_google_protobuf_field_mask, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
import { file_v1_annotation } from "./annotation_pb";
import { file_v1_common } from "./common_pb";
-import { file_v1_database_service } from "./database_service_pb";
import { file_v1_sql_service } from "./sql_service_pb";
/**
* Describes the file v1/plan_service.proto.
*/
export const file_v1_plan_service = /*@__PURE__*/
- fileDesc("ChV2MS9wbGFuX3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIjkKDkdldFBsYW5SZXF1ZXN0EicKBG5hbWUYASABKAlCGeBBAvpBEwoRYnl0ZWJhc2UuY29tL1BsYW4iZwoQTGlzdFBsYW5zUmVxdWVzdBIsCgZwYXJlbnQYASABKAlCHOBBAvpBFgoUYnl0ZWJhc2UuY29tL1Byb2plY3QSEQoJcGFnZV9zaXplGAIgASgFEhIKCnBhZ2VfdG9rZW4YAyABKAkiTgoRTGlzdFBsYW5zUmVzcG9uc2USIAoFcGxhbnMYASADKAsyES5ieXRlYmFzZS52MS5QbGFuEhcKD25leHRfcGFnZV90b2tlbhgCIAEoCSJgChJTZWFyY2hQbGFuc1JlcXVlc3QSEwoGcGFyZW50GAEgASgJQgPgQQISEQoJcGFnZV9zaXplGAIgASgFEhIKCnBhZ2VfdG9rZW4YAyABKAkSDgoGZmlsdGVyGAQgASgJIlAKE1NlYXJjaFBsYW5zUmVzcG9uc2USIAoFcGxhbnMYASADKAsyES5ieXRlYmFzZS52MS5QbGFuEhcKD25leHRfcGFnZV90b2tlbhgCIAEoCSJnChFDcmVhdGVQbGFuUmVxdWVzdBIsCgZwYXJlbnQYASABKAlCHOBBAvpBFgoUYnl0ZWJhc2UuY29tL1Byb2plY3QSJAoEcGxhbhgCIAEoCzIRLmJ5dGViYXNlLnYxLlBsYW5CA+BBAiKGAQoRVXBkYXRlUGxhblJlcXVlc3QSJAoEcGxhbhgBIAEoCzIRLmJ5dGViYXNlLnYxLlBsYW5CA+BBAhI0Cgt1cGRhdGVfbWFzaxgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2tCA+BBAhIVCg1hbGxvd19taXNzaW5nGAMgASgIIpQNC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nNSZXF1ZXN0GiYuYnl0ZWJhc2UudjEuTGlzdFBsYW5DaGVja1J1bnNSZXNwb25zZSJb2kEGcGFyZW50iuowFWJiLnBsYW5DaGVja1J1bnMubGlzdJDqMAGC0+STAi8SLS92MS97cGFyZW50PXByb2plY3RzLyovcGxhbnMvKn0vcGxhbkNoZWNrUnVucxKxAQoNUnVuUGxhbkNoZWNrcxIhLmJ5dGViYXNlLnYxLlJ1blBsYW5DaGVja3NSZXF1ZXN0GiIuYnl0ZWJhc2UudjEuUnVuUGxhbkNoZWNrc1Jlc3BvbnNlIlnaQQRuYW1liuowFGJiLnBsYW5DaGVja1J1bnMucnVukOowAYLT5JMCMDoBKiIrL3YxL3tuYW1lPXByb2plY3RzLyovcGxhbnMvKn06cnVuUGxhbkNoZWNrcxLiAQoYQmF0Y2hDYW5jZWxQbGFuQ2hlY2tSdW5zEiwuYnl0ZWJhc2UudjEuQmF0Y2hDYW5jZWxQbGFuQ2hlY2tSdW5zUmVxdWVzdBotLmJ5dGViYXNlLnYxLkJhdGNoQ2FuY2VsUGxhbkNoZWNrUnVuc1Jlc3BvbnNlImnaQQZwYXJlbnSK6jAUYmIucGxhbkNoZWNrUnVucy5ydW6Q6jABgtPkkwI+OgEqIjkvdjEve3BhcmVudD1wcm9qZWN0cy8qL3BsYW5zLyp9L3BsYW5DaGVja1J1bnM6YmF0Y2hDYW5jZWxCpgEKD2NvbS5ieXRlYmFzZS52MUIQUGxhblNlcnZpY2VQcm90b1ABWjRnaXRodWIuY29tL2J5dGViYXNlL2J5dGViYXNlL2JhY2tlbmQvZ2VuZXJhdGVkLWdvL3YxogIDQlhYqgILQnl0ZWJhc2UuVjHKAgtCeXRlYmFzZVxWMeICF0J5dGViYXNlXFYxXEdQQk1ldGFkYXRh6gIMQnl0ZWJhc2U6OlYxYgZwcm90bzM", [file_buf_validate_validate, file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_v1_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wbGFucy8qfS9wbGFuQ2hlY2tSdW5zErEBCg1SdW5QbGFuQ2hlY2tzEiEuYnl0ZWJhc2UudjEuUnVuUGxhbkNoZWNrc1JlcXVlc3QaIi5ieXRlYmFzZS52MS5SdW5QbGFuQ2hlY2tzUmVzcG9uc2UiWdpBBG5hbWWK6jAUYmIucGxhbkNoZWNrUnVucy5ydW6Q6jABgtPkkwIwOgEqIisvdjEve25hbWU9cHJvamVjdHMvKi9wbGFucy8qfTpydW5QbGFuQ2hlY2tzEuIBChhCYXRjaENhbmNlbFBsYW5DaGVja1J1bnMSLC5ieXRlYmFzZS52MS5CYXRjaENhbmNlbFBsYW5DaGVja1J1bnNSZXF1ZXN0Gi0uYnl0ZWJhc2UudjEuQmF0Y2hDYW5jZWxQbGFuQ2hlY2tSdW5zUmVzcG9uc2UiadpBBnBhcmVudIrqMBRiYi5wbGFuQ2hlY2tSdW5zLnJ1bpDqMAGC0+STAj46ASoiOS92MS97cGFyZW50PXByb2plY3RzLyovcGxhbnMvKn0vcGxhbkNoZWNrUnVuczpiYXRjaENhbmNlbEKmAQoPY29tLmJ5dGViYXNlLnYxQhBQbGFuU2VydmljZVByb3RvUAFaNGdpdGh1Yi5jb20vYnl0ZWJhc2UvYnl0ZWJhc2UvYmFja2VuZC9nZW5lcmF0ZWQtZ28vdjGiAgNCWFiqAgtCeXRlYmFzZS5WMcoCC0J5dGViYXNlXFYx4gIXQnl0ZWJhc2VcVjFcR1BCTWV0YWRhdGHqAgxCeXRlYmFzZTo6VjFiBnByb3RvMw", [file_buf_validate_validate, file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_v1_annotation, file_v1_common, file_v1_sql_service]);
/**
* Describes the message bytebase.v1.GetPlanRequest.
diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yaml
index 4c53d3e2bb..ed74d52e71 100644
--- a/proto/gen/grpc-doc/openapi.yaml
+++ b/proto/gen/grpc-doc/openapi.yaml
@@ -8803,83 +8803,6 @@ components:
items:
$ref: '#/components/schemas/Content_Part'
description: parts is used for a result content with multiple parts.
- ChangedResourceDatabase:
- type: object
- properties:
- name:
- type: string
- schemas:
- type: array
- items:
- $ref: '#/components/schemas/ChangedResourceSchema'
- ChangedResourceFunction:
- type: object
- properties:
- name:
- type: string
- ranges:
- type: array
- items:
- $ref: '#/components/schemas/Range'
- description: The ranges of sub-strings correspond to the statements on the sheet.
- ChangedResourceProcedure:
- type: object
- properties:
- name:
- type: string
- ranges:
- type: array
- items:
- $ref: '#/components/schemas/Range'
- description: The ranges of sub-strings correspond to the statements on the sheet.
- ChangedResourceSchema:
- type: object
- properties:
- name:
- type: string
- tables:
- type: array
- items:
- $ref: '#/components/schemas/ChangedResourceTable'
- views:
- type: array
- items:
- $ref: '#/components/schemas/ChangedResourceView'
- functions:
- type: array
- items:
- $ref: '#/components/schemas/ChangedResourceFunction'
- procedures:
- type: array
- items:
- $ref: '#/components/schemas/ChangedResourceProcedure'
- ChangedResourceTable:
- type: object
- properties:
- name:
- type: string
- ranges:
- type: array
- items:
- $ref: '#/components/schemas/Range'
- description: The ranges of sub-strings correspond to the statements on the sheet.
- ChangedResourceView:
- type: object
- properties:
- name:
- type: string
- ranges:
- type: array
- items:
- $ref: '#/components/schemas/Range'
- description: The ranges of sub-strings correspond to the statements on the sheet.
- ChangedResources:
- type: object
- properties:
- databases:
- type: array
- items:
- $ref: '#/components/schemas/ChangedResourceDatabase'
Changelog:
type: object
properties:
@@ -8929,8 +8852,6 @@ components:
description: |-
Could be empty
Or present but not found if deleted
- changedResources:
- $ref: '#/components/schemas/ChangedResources'
type:
enum:
- TYPE_UNSPECIFIED
@@ -13074,8 +12995,6 @@ components:
description: statement_types are the types of statements that are found in the sql.
affectedRows:
type: string
- changedResources:
- $ref: '#/components/schemas/ChangedResources'
ReviewConfig:
type: object
properties:
diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.md
index b852e912df..7b64afbb78 100644
--- a/proto/gen/grpc-doc/store/README.md
+++ b/proto/gen/grpc-doc/store/README.md
@@ -35,13 +35,6 @@
- [AuditLog.Severity](#bytebase-store-AuditLog-Severity)
- [store/changelog.proto](#store_changelog-proto)
- - [ChangedResourceDatabase](#bytebase-store-ChangedResourceDatabase)
- - [ChangedResourceFunction](#bytebase-store-ChangedResourceFunction)
- - [ChangedResourceProcedure](#bytebase-store-ChangedResourceProcedure)
- - [ChangedResourceSchema](#bytebase-store-ChangedResourceSchema)
- - [ChangedResourceTable](#bytebase-store-ChangedResourceTable)
- - [ChangedResourceView](#bytebase-store-ChangedResourceView)
- - [ChangedResources](#bytebase-store-ChangedResources)
- [ChangelogPayload](#bytebase-store-ChangelogPayload)
- [ChangelogPayload.Type](#bytebase-store-ChangelogPayload-Type)
@@ -146,9 +139,6 @@
- [DataSourceExternalSecret.SecretType](#bytebase-store-DataSourceExternalSecret-SecretType)
- [DataSourceType](#bytebase-store-DataSourceType)
-- [store/instance_change_history.proto](#store_instance_change_history-proto)
- - [InstanceChangeHistoryPayload](#bytebase-store-InstanceChangeHistoryPayload)
-
- [store/issue.proto](#store_issue-proto)
- [GrantRequest](#bytebase-store-GrantRequest)
- [Issue](#bytebase-store-Issue)
@@ -193,6 +183,10 @@
- [PlanConfig.ChangeDatabaseConfig.Type](#bytebase-store-PlanConfig-ChangeDatabaseConfig-Type)
- [store/plan_check_run.proto](#store_plan_check_run-proto)
+ - [ChangedResourceDatabase](#bytebase-store-ChangedResourceDatabase)
+ - [ChangedResourceSchema](#bytebase-store-ChangedResourceSchema)
+ - [ChangedResourceTable](#bytebase-store-ChangedResourceTable)
+ - [ChangedResources](#bytebase-store-ChangedResources)
- [PlanCheckRunConfig](#bytebase-store-PlanCheckRunConfig)
- [PlanCheckRunConfig.GhostFlagsEntry](#bytebase-store-PlanCheckRunConfig-GhostFlagsEntry)
- [PlanCheckRunResult](#bytebase-store-PlanCheckRunResult)
@@ -762,121 +756,6 @@ Metadata about the request.
-<a name="bytebase-store-ChangedResourceDatabase"></a>
-
-### ChangedResourceDatabase
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | |
-| schemas | [ChangedResourceSchema](#bytebase-store-ChangedResourceSchema) | repeated | |
-
-
-
-
-
-
-<a name="bytebase-store-ChangedResourceFunction"></a>
-
-### ChangedResourceFunction
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | |
-| ranges | [Range](#bytebase-store-Range) | repeated | The ranges of substrings correspond to the statements on the sheet. |
-
-
-
-
-
-
-<a name="bytebase-store-ChangedResourceProcedure"></a>
-
-### ChangedResourceProcedure
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | |
-| ranges | [Range](#bytebase-store-Range) | repeated | The ranges of substrings correspond to the statements on the sheet. |
-
-
-
-
-
-
-<a name="bytebase-store-ChangedResourceSchema"></a>
-
-### ChangedResourceSchema
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | |
-| tables | [ChangedResourceTable](#bytebase-store-ChangedResourceTable) | repeated | |
-| views | [ChangedResourceView](#bytebase-store-ChangedResourceView) | repeated | |
-| functions | [ChangedResourceFunction](#bytebase-store-ChangedResourceFunction) | repeated | |
-| procedures | [ChangedResourceProcedure](#bytebase-store-ChangedResourceProcedure) | repeated | |
-
-
-
-
-
-
-<a name="bytebase-store-ChangedResourceTable"></a>
-
-### ChangedResourceTable
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | |
-| table_rows | [int64](#int64) | | The estimated row count of the table. |
-| ranges | [Range](#bytebase-store-Range) | repeated | The ranges of substrings correspond to the statements on the sheet. |
-
-
-
-
-
-
-<a name="bytebase-store-ChangedResourceView"></a>
-
-### ChangedResourceView
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | |
-| ranges | [Range](#bytebase-store-Range) | repeated | The ranges of substrings correspond to the statements on the sheet. |
-
-
-
-
-
-
-<a name="bytebase-store-ChangedResources"></a>
-
-### ChangedResources
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| databases | [ChangedResourceDatabase](#bytebase-store-ChangedResourceDatabase) | repeated | |
-
-
-
-
-
-
<a name="bytebase-store-ChangelogPayload"></a>
### ChangelogPayload
@@ -888,7 +767,6 @@ Metadata about the request.
| task_run | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskruns/{taskrun} |
| issue | [string](#string) | | Format: projects/{project}/issues/{issue} |
| revision | [int64](#int64) | | The revision uid. optional |
-| changed_resources | [ChangedResources](#bytebase-store-ChangedResources) | | |
| sheet | [string](#string) | | The sheet that holds the content. Format: projects/{project}/sheets/{sheet} |
| version | [string](#string) | | |
| type | [ChangelogPayload.Type](#bytebase-store-ChangelogPayload-Type) | | |
@@ -2675,37 +2553,6 @@ InstanceRole is the API message for instance role.
-<a name="store_instance_change_history-proto"></a>
-<p align="right"><a href="#top">Top</a></p>
-
-## store/instance_change_history.proto
-
-
-
-<a name="bytebase-store-InstanceChangeHistoryPayload"></a>
-
-### InstanceChangeHistoryPayload
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| changed_resources | [ChangedResources](#bytebase-store-ChangedResources) | | |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<a name="store_issue-proto"></a>
<p align="right"><a href="#top">Top</a></p>
@@ -3305,6 +3152,69 @@ Type is the database change type.
+<a name="bytebase-store-ChangedResourceDatabase"></a>
+
+### ChangedResourceDatabase
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | |
+| schemas | [ChangedResourceSchema](#bytebase-store-ChangedResourceSchema) | repeated | |
+
+
+
+
+
+
+<a name="bytebase-store-ChangedResourceSchema"></a>
+
+### ChangedResourceSchema
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | |
+| tables | [ChangedResourceTable](#bytebase-store-ChangedResourceTable) | repeated | |
+
+
+
+
+
+
+<a name="bytebase-store-ChangedResourceTable"></a>
+
+### ChangedResourceTable
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | |
+| table_rows | [int64](#int64) | | The estimated row count of the table. |
+
+
+
+
+
+
+<a name="bytebase-store-ChangedResources"></a>
+
+### ChangedResources
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| databases | [ChangedResourceDatabase](#bytebase-store-ChangedResourceDatabase) | repeated | |
+
+
+
+
+
+
<a name="bytebase-store-PlanCheckRunConfig"></a>
### PlanCheckRunConfig
diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.html
index 23da1e93b2..bc27538975 100644
--- a/proto/gen/grpc-doc/store/index.html
+++ b/proto/gen/grpc-doc/store/index.html
@@ -298,34 +298,6 @@
<a href="#store%2fchangelog.proto">store/changelog.proto</a>
<ul>
- <li>
- <a href="#bytebase.store.ChangedResourceDatabase"><span class="badge">M</span>ChangedResourceDatabase</a>
- </li>
-
- <li>
- <a href="#bytebase.store.ChangedResourceFunction"><span class="badge">M</span>ChangedResourceFunction</a>
- </li>
-
- <li>
- <a href="#bytebase.store.ChangedResourceProcedure"><span class="badge">M</span>ChangedResourceProcedure</a>
- </li>
-
- <li>
- <a href="#bytebase.store.ChangedResourceSchema"><span class="badge">M</span>ChangedResourceSchema</a>
- </li>
-
- <li>
- <a href="#bytebase.store.ChangedResourceTable"><span class="badge">M</span>ChangedResourceTable</a>
- </li>
-
- <li>
- <a href="#bytebase.store.ChangedResourceView"><span class="badge">M</span>ChangedResourceView</a>
- </li>
-
- <li>
- <a href="#bytebase.store.ChangedResources"><span class="badge">M</span>ChangedResources</a>
- </li>
-
<li>
<a href="#bytebase.store.ChangelogPayload"><span class="badge">M</span>ChangelogPayload</a>
</li>
@@ -740,21 +712,6 @@
</li>
- <li>
- <a href="#store%2finstance_change_history.proto">store/instance_change_history.proto</a>
- <ul>
-
- <li>
- <a href="#bytebase.store.InstanceChangeHistoryPayload"><span class="badge">M</span>InstanceChangeHistoryPayload</a>
- </li>
-
-
-
-
- </ul>
- </li>
-
-
<li>
<a href="#store%2fissue.proto">store/issue.proto</a>
<ul>
@@ -934,6 +891,22 @@
<a href="#store%2fplan_check_run.proto">store/plan_check_run.proto</a>
<ul>
+ <li>
+ <a href="#bytebase.store.ChangedResourceDatabase"><span class="badge">M</span>ChangedResourceDatabase</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.ChangedResourceSchema"><span class="badge">M</span>ChangedResourceSchema</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.ChangedResourceTable"><span class="badge">M</span>ChangedResourceTable</a>
+ </li>
+
+ <li>
+ <a href="#bytebase.store.ChangedResources"><span class="badge">M</span>ChangedResources</a>
+ </li>
+
<li>
<a href="#bytebase.store.PlanCheckRunConfig"><span class="badge">M</span>PlanCheckRunConfig</a>
</li>
@@ -2547,244 +2520,6 @@ This information is not authenticated and should be treated accordingly. </p></t
<p></p>
- <h3 id="bytebase.store.ChangedResourceDatabase">ChangedResourceDatabase</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>name</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>schemas</td>
- <td><a href="#bytebase.store.ChangedResourceSchema">ChangedResourceSchema</a></td>
- <td>repeated</td>
- <td><p> </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.store.ChangedResourceFunction">ChangedResourceFunction</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>name</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>ranges</td>
- <td><a href="#bytebase.store.Range">Range</a></td>
- <td>repeated</td>
- <td><p>The ranges of substrings correspond to the statements on the sheet. </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.store.ChangedResourceProcedure">ChangedResourceProcedure</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>name</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>ranges</td>
- <td><a href="#bytebase.store.Range">Range</a></td>
- <td>repeated</td>
- <td><p>The ranges of substrings correspond to the statements on the sheet. </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.store.ChangedResourceSchema">ChangedResourceSchema</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>name</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>tables</td>
- <td><a href="#bytebase.store.ChangedResourceTable">ChangedResourceTable</a></td>
- <td>repeated</td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>views</td>
- <td><a href="#bytebase.store.ChangedResourceView">ChangedResourceView</a></td>
- <td>repeated</td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>functions</td>
- <td><a href="#bytebase.store.ChangedResourceFunction">ChangedResourceFunction</a></td>
- <td>repeated</td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>procedures</td>
- <td><a href="#bytebase.store.ChangedResourceProcedure">ChangedResourceProcedure</a></td>
- <td>repeated</td>
- <td><p> </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.store.ChangedResourceTable">ChangedResourceTable</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>name</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>table_rows</td>
- <td><a href="#int64">int64</a></td>
- <td></td>
- <td><p>The estimated row count of the table. </p></td>
- </tr>
-
- <tr>
- <td>ranges</td>
- <td><a href="#bytebase.store.Range">Range</a></td>
- <td>repeated</td>
- <td><p>The ranges of substrings correspond to the statements on the sheet. </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.store.ChangedResourceView">ChangedResourceView</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>name</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>ranges</td>
- <td><a href="#bytebase.store.Range">Range</a></td>
- <td>repeated</td>
- <td><p>The ranges of substrings correspond to the statements on the sheet. </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.store.ChangedResources">ChangedResources</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>databases</td>
- <td><a href="#bytebase.store.ChangedResourceDatabase">ChangedResourceDatabase</a></td>
- <td>repeated</td>
- <td><p> </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
<h3 id="bytebase.store.ChangelogPayload">ChangelogPayload</h3>
<p></p>
@@ -2817,13 +2552,6 @@ This information is not authenticated and should be treated accordingly. </p></t
optional </p></td>
</tr>
- <tr>
- <td>changed_resources</td>
- <td><a href="#bytebase.store.ChangedResources">ChangedResources</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
<tr>
<td>sheet</td>
<td><a href="#string">string</a></td>
@@ -7975,44 +7703,6 @@ For MySQL, it is the global privileges as GRANT statements, which means it only
- <div class="file-heading">
- <h2 id="store/instance_change_history.proto">store/instance_change_history.proto</h2><a href="#title">Top</a>
- </div>
- <p></p>
-
-
- <h3 id="bytebase.store.InstanceChangeHistoryPayload">InstanceChangeHistoryPayload</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>changed_resources</td>
- <td><a href="#bytebase.store.ChangedResources">ChangedResources</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
-
-
-
-
-
-
-
-
<div class="file-heading">
<h2 id="store/issue.proto">store/issue.proto</h2><a href="#title">Top</a>
</div>
@@ -9345,6 +9035,123 @@ Leave it empty if there is no need to encrypt the zip file. </p></td>
<p></p>
+ <h3 id="bytebase.store.ChangedResourceDatabase">ChangedResourceDatabase</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>schemas</td>
+ <td><a href="#bytebase.store.ChangedResourceSchema">ChangedResourceSchema</a></td>
+ <td>repeated</td>
+ <td><p> </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.ChangedResourceSchema">ChangedResourceSchema</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>tables</td>
+ <td><a href="#bytebase.store.ChangedResourceTable">ChangedResourceTable</a></td>
+ <td>repeated</td>
+ <td><p> </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.ChangedResourceTable">ChangedResourceTable</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>name</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>table_rows</td>
+ <td><a href="#int64">int64</a></td>
+ <td></td>
+ <td><p>The estimated row count of the table. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.ChangedResources">ChangedResources</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>databases</td>
+ <td><a href="#bytebase.store.ChangedResourceDatabase">ChangedResourceDatabase</a></td>
+ <td>repeated</td>
+ <td><p> </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
<h3 id="bytebase.store.PlanCheckRunConfig">PlanCheckRunConfig</h3>
<p></p>
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index 6d7baa6932..e359ec506d 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -276,13 +276,6 @@
- [BatchUpdateDatabasesRequest](#bytebase-v1-BatchUpdateDatabasesRequest)
- [BatchUpdateDatabasesResponse](#bytebase-v1-BatchUpdateDatabasesResponse)
- [BoundingBox](#bytebase-v1-BoundingBox)
- - [ChangedResourceDatabase](#bytebase-v1-ChangedResourceDatabase)
- - [ChangedResourceFunction](#bytebase-v1-ChangedResourceFunction)
- - [ChangedResourceProcedure](#bytebase-v1-ChangedResourceProcedure)
- - [ChangedResourceSchema](#bytebase-v1-ChangedResourceSchema)
- - [ChangedResourceTable](#bytebase-v1-ChangedResourceTable)
- - [ChangedResourceView](#bytebase-v1-ChangedResourceView)
- - [ChangedResources](#bytebase-v1-ChangedResources)
- [Changelog](#bytebase-v1-Changelog)
- [CheckConstraintMetadata](#bytebase-v1-CheckConstraintMetadata)
- [ColumnMetadata](#bytebase-v1-ColumnMetadata)
@@ -4650,120 +4643,6 @@ BoundingBox defines the spatial bounds for GEOMETRY spatial indexes.
-<a name="bytebase-v1-ChangedResourceDatabase"></a>
-
-### ChangedResourceDatabase
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | |
-| schemas | [ChangedResourceSchema](#bytebase-v1-ChangedResourceSchema) | repeated | |
-
-
-
-
-
-
-<a name="bytebase-v1-ChangedResourceFunction"></a>
-
-### ChangedResourceFunction
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | |
-| ranges | [Range](#bytebase-v1-Range) | repeated | The ranges of sub-strings correspond to the statements on the sheet. |
-
-
-
-
-
-
-<a name="bytebase-v1-ChangedResourceProcedure"></a>
-
-### ChangedResourceProcedure
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | |
-| ranges | [Range](#bytebase-v1-Range) | repeated | The ranges of sub-strings correspond to the statements on the sheet. |
-
-
-
-
-
-
-<a name="bytebase-v1-ChangedResourceSchema"></a>
-
-### ChangedResourceSchema
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | |
-| tables | [ChangedResourceTable](#bytebase-v1-ChangedResourceTable) | repeated | |
-| views | [ChangedResourceView](#bytebase-v1-ChangedResourceView) | repeated | |
-| functions | [ChangedResourceFunction](#bytebase-v1-ChangedResourceFunction) | repeated | |
-| procedures | [ChangedResourceProcedure](#bytebase-v1-ChangedResourceProcedure) | repeated | |
-
-
-
-
-
-
-<a name="bytebase-v1-ChangedResourceTable"></a>
-
-### ChangedResourceTable
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | |
-| ranges | [Range](#bytebase-v1-Range) | repeated | The ranges of sub-strings correspond to the statements on the sheet. |
-
-
-
-
-
-
-<a name="bytebase-v1-ChangedResourceView"></a>
-
-### ChangedResourceView
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | |
-| ranges | [Range](#bytebase-v1-Range) | repeated | The ranges of sub-strings correspond to the statements on the sheet. |
-
-
-
-
-
-
-<a name="bytebase-v1-ChangedResources"></a>
-
-### ChangedResources
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| databases | [ChangedResourceDatabase](#bytebase-v1-ChangedResourceDatabase) | repeated | |
-
-
-
-
-
-
<a name="bytebase-v1-Changelog"></a>
### Changelog
@@ -4786,7 +4665,6 @@ BoundingBox defines the spatial bounds for GEOMETRY spatial indexes.
| task_run | [string](#string) | | Format: projects/{projects}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} |
| version | [string](#string) | | Could be empty |
| revision | [string](#string) | | Could be empty Or present but not found if deleted |
-| changed_resources | [ChangedResources](#bytebase-v1-ChangedResources) | | |
| type | [Changelog.Type](#bytebase-v1-Changelog-Type) | | |
@@ -7977,7 +7855,6 @@ When paginating, all other parameters provided to `ListPlans` must match the cal
| ----- | ---- | ----- | ----------- |
| statement_types | [string](#string) | repeated | statement_types are the types of statements that are found in the sql. |
| affected_rows | [int64](#int64) | | |
-| changed_resources | [ChangedResources](#bytebase-v1-ChangedResources) | | |
diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.html
index aa2bcba566..5f1f4d5b1e 100644
--- a/proto/gen/grpc-doc/v1/index.html
+++ b/proto/gen/grpc-doc/v1/index.html
@@ -1224,34 +1224,6 @@
<a href="#bytebase.v1.BoundingBox"><span class="badge">M</span>BoundingBox</a>
</li>
- <li>
- <a href="#bytebase.v1.ChangedResourceDatabase"><span class="badge">M</span>ChangedResourceDatabase</a>
- </li>
-
- <li>
- <a href="#bytebase.v1.ChangedResourceFunction"><span class="badge">M</span>ChangedResourceFunction</a>
- </li>
-
- <li>
- <a href="#bytebase.v1.ChangedResourceProcedure"><span class="badge">M</span>ChangedResourceProcedure</a>
- </li>
-
- <li>
- <a href="#bytebase.v1.ChangedResourceSchema"><span class="badge">M</span>ChangedResourceSchema</a>
- </li>
-
- <li>
- <a href="#bytebase.v1.ChangedResourceTable"><span class="badge">M</span>ChangedResourceTable</a>
- </li>
-
- <li>
- <a href="#bytebase.v1.ChangedResourceView"><span class="badge">M</span>ChangedResourceView</a>
- </li>
-
- <li>
- <a href="#bytebase.v1.ChangedResources"><span class="badge">M</span>ChangedResources</a>
- </li>
-
<li>
<a href="#bytebase.v1.Changelog"><span class="badge">M</span>Changelog</a>
</li>
@@ -13100,237 +13072,6 @@ A maximum of 1000 databases can be modified in a batch. </p></td>
- <h3 id="bytebase.v1.ChangedResourceDatabase">ChangedResourceDatabase</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>name</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>schemas</td>
- <td><a href="#bytebase.v1.ChangedResourceSchema">ChangedResourceSchema</a></td>
- <td>repeated</td>
- <td><p> </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.v1.ChangedResourceFunction">ChangedResourceFunction</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>name</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>ranges</td>
- <td><a href="#bytebase.v1.Range">Range</a></td>
- <td>repeated</td>
- <td><p>The ranges of sub-strings correspond to the statements on the sheet. </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.v1.ChangedResourceProcedure">ChangedResourceProcedure</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>name</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>ranges</td>
- <td><a href="#bytebase.v1.Range">Range</a></td>
- <td>repeated</td>
- <td><p>The ranges of sub-strings correspond to the statements on the sheet. </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.v1.ChangedResourceSchema">ChangedResourceSchema</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>name</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>tables</td>
- <td><a href="#bytebase.v1.ChangedResourceTable">ChangedResourceTable</a></td>
- <td>repeated</td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>views</td>
- <td><a href="#bytebase.v1.ChangedResourceView">ChangedResourceView</a></td>
- <td>repeated</td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>functions</td>
- <td><a href="#bytebase.v1.ChangedResourceFunction">ChangedResourceFunction</a></td>
- <td>repeated</td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>procedures</td>
- <td><a href="#bytebase.v1.ChangedResourceProcedure">ChangedResourceProcedure</a></td>
- <td>repeated</td>
- <td><p> </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.v1.ChangedResourceTable">ChangedResourceTable</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>name</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>ranges</td>
- <td><a href="#bytebase.v1.Range">Range</a></td>
- <td>repeated</td>
- <td><p>The ranges of sub-strings correspond to the statements on the sheet. </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.v1.ChangedResourceView">ChangedResourceView</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>name</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>ranges</td>
- <td><a href="#bytebase.v1.Range">Range</a></td>
- <td>repeated</td>
- <td><p>The ranges of sub-strings correspond to the statements on the sheet. </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.v1.ChangedResources">ChangedResources</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>databases</td>
- <td><a href="#bytebase.v1.ChangedResourceDatabase">ChangedResourceDatabase</a></td>
- <td>repeated</td>
- <td><p> </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
<h3 id="bytebase.v1.Changelog">Changelog</h3>
<p></p>
@@ -13441,13 +13182,6 @@ Format: projects/{project}/sheets/{sheet} </p></td>
Or present but not found if deleted </p></td>
</tr>
- <tr>
- <td>changed_resources</td>
- <td><a href="#bytebase.v1.ChangedResources">ChangedResources</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
<tr>
<td>type</td>
<td><a href="#bytebase.v1.Changelog.Type">Changelog.Type</a></td>
@@ -22396,13 +22130,6 @@ Leave it empty if no needs to encrypt the zip file. </p></td>
<td><p> </p></td>
</tr>
- <tr>
- <td>changed_resources</td>
- <td><a href="#bytebase.v1.ChangedResources">ChangedResources</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
</tbody>
</table>
diff --git a/proto/store/store/changelog.proto b/proto/store/store/changelog.proto
index e1dbaa9c55..bc85843518 100644
--- a/proto/store/store/changelog.proto
+++ b/proto/store/store/changelog.proto
@@ -2,8 +2,6 @@ syntax = "proto3";
package bytebase.store;
-import "store/common.proto";
-
option go_package = "generated-go/store";
message ChangelogPayload {
@@ -16,8 +14,6 @@ message ChangelogPayload {
// optional
int64 revision = 3;
- ChangedResources changed_resources = 4;
-
// The sheet that holds the content.
// Format: projects/{project}/sheets/{sheet}
string sheet = 5;
@@ -39,56 +35,3 @@ message ChangelogPayload {
// 0 = legacy changelog (pre-versioning).
int32 dump_version = 9;
}
-
-message ChangedResources {
- repeated ChangedResourceDatabase databases = 1;
-}
-
-message ChangedResourceDatabase {
- string name = 1;
-
- repeated ChangedResourceSchema schemas = 2;
-}
-
-message ChangedResourceSchema {
- string name = 1;
-
- repeated ChangedResourceTable tables = 2;
-
- repeated ChangedResourceView views = 3;
-
- repeated ChangedResourceFunction functions = 4;
-
- repeated ChangedResourceProcedure procedures = 5;
-}
-
-message ChangedResourceTable {
- string name = 1;
-
- // The estimated row count of the table.
- int64 table_rows = 2;
-
- // The ranges of substrings correspond to the statements on the sheet.
- repeated Range ranges = 3;
-}
-
-message ChangedResourceView {
- string name = 1;
-
- // The ranges of substrings correspond to the statements on the sheet.
- repeated Range ranges = 2;
-}
-
-message ChangedResourceFunction {
- string name = 1;
-
- // The ranges of substrings correspond to the statements on the sheet.
- repeated Range ranges = 2;
-}
-
-message ChangedResourceProcedure {
- string name = 1;
-
- // The ranges of substrings correspond to the statements on the sheet.
- repeated Range ranges = 2;
-}
diff --git a/proto/store/store/instance_change_history.proto b/proto/store/store/instance_change_history.proto
deleted file mode 100644
index 9d0998e656..0000000000
--- a/proto/store/store/instance_change_history.proto
+++ /dev/null
@@ -1,11 +0,0 @@
-syntax = "proto3";
-
-package bytebase.store;
-
-import "store/changelog.proto";
-
-option go_package = "generated-go/store";
-
-message InstanceChangeHistoryPayload {
- ChangedResources changed_resources = 1;
-}
diff --git a/proto/store/store/plan_check_run.proto b/proto/store/store/plan_check_run.proto
index eb4ddcfa06..11504a21af 100644
--- a/proto/store/store/plan_check_run.proto
+++ b/proto/store/store/plan_check_run.proto
@@ -3,7 +3,6 @@ syntax = "proto3";
package bytebase.store;
import "store/advice.proto";
-import "store/changelog.proto";
import "store/common.proto";
option go_package = "generated-go/store";
@@ -52,3 +51,26 @@ message PlanCheckRunResult {
}
}
}
+
+message ChangedResources {
+ repeated ChangedResourceDatabase databases = 1;
+}
+
+message ChangedResourceDatabase {
+ string name = 1;
+
+ repeated ChangedResourceSchema schemas = 2;
+}
+
+message ChangedResourceSchema {
+ string name = 1;
+
+ repeated ChangedResourceTable tables = 2;
+}
+
+message ChangedResourceTable {
+ string name = 1;
+
+ // The estimated row count of the table.
+ int64 table_rows = 2;
+}
diff --git a/proto/v1/v1/database_service.proto b/proto/v1/v1/database_service.proto
index 98333f53d4..9f74a584d7 100644
--- a/proto/v1/v1/database_service.proto
+++ b/proto/v1/v1/database_service.proto
@@ -1341,56 +1341,6 @@ message DatabaseSDLSchema {
string content_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
}
-message ChangedResources {
- repeated ChangedResourceDatabase databases = 1;
-}
-
-message ChangedResourceDatabase {
- string name = 1;
-
- repeated ChangedResourceSchema schemas = 2;
-}
-
-message ChangedResourceSchema {
- string name = 1;
-
- repeated ChangedResourceTable tables = 2;
-
- repeated ChangedResourceView views = 3;
-
- repeated ChangedResourceFunction functions = 4;
-
- repeated ChangedResourceProcedure procedures = 5;
-}
-
-message ChangedResourceTable {
- string name = 1;
-
- // The ranges of sub-strings correspond to the statements on the sheet.
- repeated Range ranges = 2;
-}
-
-message ChangedResourceView {
- string name = 1;
-
- // The ranges of sub-strings correspond to the statements on the sheet.
- repeated Range ranges = 2;
-}
-
-message ChangedResourceFunction {
- string name = 1;
-
- // The ranges of sub-strings correspond to the statements on the sheet.
- repeated Range ranges = 2;
-}
-
-message ChangedResourceProcedure {
- string name = 1;
-
- // The ranges of sub-strings correspond to the statements on the sheet.
- repeated Range ranges = 2;
-}
-
enum ChangelogView {
// The default / unset value.
// The API will default to the BASIC view.
@@ -1483,8 +1433,6 @@ message Changelog {
// Or present but not found if deleted
string revision = 14;
- ChangedResources changed_resources = 15;
-
enum Type {
TYPE_UNSPECIFIED = 0;
BASELINE = 1;
diff --git a/proto/v1/v1/plan_service.proto b/proto/v1/v1/plan_service.proto
index eeb26c7d3d..6f01cc977b 100644
--- a/proto/v1/v1/plan_service.proto
+++ b/proto/v1/v1/plan_service.proto
@@ -11,7 +11,6 @@ import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";
import "v1/annotation.proto";
import "v1/common.proto";
-import "v1/database_service.proto";
import "v1/sql_service.proto";
option go_package = "github.com/bytebase/bytebase/backend/generated-go/v1";
@@ -481,7 +480,6 @@ message PlanCheckRun {
// statement_types are the types of statements that are found in the sql.
repeated string statement_types = 2;
int64 affected_rows = 3;
- ChangedResources changed_resources = 4;
}
message SqlReviewReport {
// Position of the SQL statement.