feat: add FlushTableExpr (#11)
This commit is contained in:
+178
-83
@@ -441,6 +441,77 @@ func (x *DropTableExpr) GetTableName() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type FlushTableExpr struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
CatalogName string `protobuf:"bytes,1,opt,name=catalog_name,json=catalogName,proto3" json:"catalog_name,omitempty"`
|
||||||
|
SchemaName string `protobuf:"bytes,2,opt,name=schema_name,json=schemaName,proto3" json:"schema_name,omitempty"`
|
||||||
|
TableName string `protobuf:"bytes,3,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
|
||||||
|
RegionId *uint32 `protobuf:"varint,4,opt,name=region_id,json=regionId,proto3,oneof" json:"region_id,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FlushTableExpr) Reset() {
|
||||||
|
*x = FlushTableExpr{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_greptime_v1_ddl_proto_msgTypes[4]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FlushTableExpr) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*FlushTableExpr) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *FlushTableExpr) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_greptime_v1_ddl_proto_msgTypes[4]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use FlushTableExpr.ProtoReflect.Descriptor instead.
|
||||||
|
func (*FlushTableExpr) Descriptor() ([]byte, []int) {
|
||||||
|
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{4}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FlushTableExpr) GetCatalogName() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.CatalogName
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FlushTableExpr) GetSchemaName() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.SchemaName
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FlushTableExpr) GetTableName() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.TableName
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FlushTableExpr) GetRegionId() uint32 {
|
||||||
|
if x != nil && x.RegionId != nil {
|
||||||
|
return *x.RegionId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
type CreateDatabaseExpr struct {
|
type CreateDatabaseExpr struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
@@ -454,7 +525,7 @@ type CreateDatabaseExpr struct {
|
|||||||
func (x *CreateDatabaseExpr) Reset() {
|
func (x *CreateDatabaseExpr) Reset() {
|
||||||
*x = CreateDatabaseExpr{}
|
*x = CreateDatabaseExpr{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[4]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[5]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -467,7 +538,7 @@ func (x *CreateDatabaseExpr) String() string {
|
|||||||
func (*CreateDatabaseExpr) ProtoMessage() {}
|
func (*CreateDatabaseExpr) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *CreateDatabaseExpr) ProtoReflect() protoreflect.Message {
|
func (x *CreateDatabaseExpr) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[4]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[5]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -480,7 +551,7 @@ func (x *CreateDatabaseExpr) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use CreateDatabaseExpr.ProtoReflect.Descriptor instead.
|
// Deprecated: Use CreateDatabaseExpr.ProtoReflect.Descriptor instead.
|
||||||
func (*CreateDatabaseExpr) Descriptor() ([]byte, []int) {
|
func (*CreateDatabaseExpr) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{4}
|
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{5}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CreateDatabaseExpr) GetDatabaseName() string {
|
func (x *CreateDatabaseExpr) GetDatabaseName() string {
|
||||||
@@ -508,7 +579,7 @@ type AddColumns struct {
|
|||||||
func (x *AddColumns) Reset() {
|
func (x *AddColumns) Reset() {
|
||||||
*x = AddColumns{}
|
*x = AddColumns{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[5]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[6]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -521,7 +592,7 @@ func (x *AddColumns) String() string {
|
|||||||
func (*AddColumns) ProtoMessage() {}
|
func (*AddColumns) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *AddColumns) ProtoReflect() protoreflect.Message {
|
func (x *AddColumns) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[5]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[6]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -534,7 +605,7 @@ func (x *AddColumns) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use AddColumns.ProtoReflect.Descriptor instead.
|
// Deprecated: Use AddColumns.ProtoReflect.Descriptor instead.
|
||||||
func (*AddColumns) Descriptor() ([]byte, []int) {
|
func (*AddColumns) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{5}
|
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{6}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *AddColumns) GetAddColumns() []*AddColumn {
|
func (x *AddColumns) GetAddColumns() []*AddColumn {
|
||||||
@@ -555,7 +626,7 @@ type DropColumns struct {
|
|||||||
func (x *DropColumns) Reset() {
|
func (x *DropColumns) Reset() {
|
||||||
*x = DropColumns{}
|
*x = DropColumns{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[6]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[7]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -568,7 +639,7 @@ func (x *DropColumns) String() string {
|
|||||||
func (*DropColumns) ProtoMessage() {}
|
func (*DropColumns) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *DropColumns) ProtoReflect() protoreflect.Message {
|
func (x *DropColumns) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[6]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[7]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -581,7 +652,7 @@ func (x *DropColumns) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use DropColumns.ProtoReflect.Descriptor instead.
|
// Deprecated: Use DropColumns.ProtoReflect.Descriptor instead.
|
||||||
func (*DropColumns) Descriptor() ([]byte, []int) {
|
func (*DropColumns) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{6}
|
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{7}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DropColumns) GetDropColumns() []*DropColumn {
|
func (x *DropColumns) GetDropColumns() []*DropColumn {
|
||||||
@@ -602,7 +673,7 @@ type RenameTable struct {
|
|||||||
func (x *RenameTable) Reset() {
|
func (x *RenameTable) Reset() {
|
||||||
*x = RenameTable{}
|
*x = RenameTable{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[7]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[8]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -615,7 +686,7 @@ func (x *RenameTable) String() string {
|
|||||||
func (*RenameTable) ProtoMessage() {}
|
func (*RenameTable) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *RenameTable) ProtoReflect() protoreflect.Message {
|
func (x *RenameTable) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[7]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[8]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -628,7 +699,7 @@ func (x *RenameTable) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use RenameTable.ProtoReflect.Descriptor instead.
|
// Deprecated: Use RenameTable.ProtoReflect.Descriptor instead.
|
||||||
func (*RenameTable) Descriptor() ([]byte, []int) {
|
func (*RenameTable) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{7}
|
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{8}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *RenameTable) GetNewTableName() string {
|
func (x *RenameTable) GetNewTableName() string {
|
||||||
@@ -650,7 +721,7 @@ type AddColumn struct {
|
|||||||
func (x *AddColumn) Reset() {
|
func (x *AddColumn) Reset() {
|
||||||
*x = AddColumn{}
|
*x = AddColumn{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[8]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[9]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -663,7 +734,7 @@ func (x *AddColumn) String() string {
|
|||||||
func (*AddColumn) ProtoMessage() {}
|
func (*AddColumn) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *AddColumn) ProtoReflect() protoreflect.Message {
|
func (x *AddColumn) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[8]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[9]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -676,7 +747,7 @@ func (x *AddColumn) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use AddColumn.ProtoReflect.Descriptor instead.
|
// Deprecated: Use AddColumn.ProtoReflect.Descriptor instead.
|
||||||
func (*AddColumn) Descriptor() ([]byte, []int) {
|
func (*AddColumn) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{8}
|
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{9}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *AddColumn) GetColumnDef() *ColumnDef {
|
func (x *AddColumn) GetColumnDef() *ColumnDef {
|
||||||
@@ -704,7 +775,7 @@ type DropColumn struct {
|
|||||||
func (x *DropColumn) Reset() {
|
func (x *DropColumn) Reset() {
|
||||||
*x = DropColumn{}
|
*x = DropColumn{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[9]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[10]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -717,7 +788,7 @@ func (x *DropColumn) String() string {
|
|||||||
func (*DropColumn) ProtoMessage() {}
|
func (*DropColumn) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *DropColumn) ProtoReflect() protoreflect.Message {
|
func (x *DropColumn) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[9]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[10]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -730,7 +801,7 @@ func (x *DropColumn) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use DropColumn.ProtoReflect.Descriptor instead.
|
// Deprecated: Use DropColumn.ProtoReflect.Descriptor instead.
|
||||||
func (*DropColumn) Descriptor() ([]byte, []int) {
|
func (*DropColumn) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{9}
|
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{10}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DropColumn) GetName() string {
|
func (x *DropColumn) GetName() string {
|
||||||
@@ -751,7 +822,7 @@ type TableId struct {
|
|||||||
func (x *TableId) Reset() {
|
func (x *TableId) Reset() {
|
||||||
*x = TableId{}
|
*x = TableId{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[10]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[11]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -764,7 +835,7 @@ func (x *TableId) String() string {
|
|||||||
func (*TableId) ProtoMessage() {}
|
func (*TableId) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *TableId) ProtoReflect() protoreflect.Message {
|
func (x *TableId) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[10]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[11]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -777,7 +848,7 @@ func (x *TableId) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use TableId.ProtoReflect.Descriptor instead.
|
// Deprecated: Use TableId.ProtoReflect.Descriptor instead.
|
||||||
func (*TableId) Descriptor() ([]byte, []int) {
|
func (*TableId) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{10}
|
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{11}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *TableId) GetId() uint32 {
|
func (x *TableId) GetId() uint32 {
|
||||||
@@ -871,41 +942,51 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{
|
|||||||
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65,
|
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65,
|
||||||
0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f,
|
0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f,
|
||||||
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c,
|
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c,
|
||||||
0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x6a, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44,
|
0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xa3, 0x01, 0x0a, 0x0e, 0x46, 0x6c, 0x75, 0x73, 0x68, 0x54,
|
||||||
0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x64,
|
0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61,
|
||||||
0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
|
0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
|
||||||
0x28, 0x09, 0x52, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4e, 0x61, 0x6d, 0x65,
|
0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73,
|
||||||
0x12, 0x2f, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x66, 0x5f, 0x6e, 0x6f,
|
0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
||||||
0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11,
|
0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a,
|
||||||
0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74,
|
0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
|
||||||
0x73, 0x22, 0x45, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12,
|
0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x09, 0x72,
|
||||||
0x37, 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01,
|
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00,
|
||||||
0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
|
0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0c, 0x0a,
|
||||||
0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a, 0x61, 0x64,
|
0x0a, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x22, 0x6a, 0x0a, 0x12, 0x43,
|
||||||
0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x49, 0x0a, 0x0b, 0x44, 0x72, 0x6f, 0x70,
|
0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70,
|
||||||
0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3a, 0x0a, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f,
|
0x72, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6e, 0x61,
|
||||||
0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e,
|
0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,
|
||||||
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70,
|
0x73, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
|
||||||
0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0b, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75,
|
0x5f, 0x69, 0x66, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x02,
|
||||||
0x6d, 0x6e, 0x73, 0x22, 0x33, 0x0a, 0x0b, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62,
|
0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f,
|
||||||
0x6c, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x65, 0x77, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f,
|
0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x45, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x43, 0x6f,
|
||||||
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x54,
|
0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x63, 0x6f, 0x6c,
|
||||||
0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x59, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x43,
|
0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65,
|
||||||
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x35, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f,
|
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75,
|
||||||
0x64, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70,
|
0x6d, 0x6e, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x49,
|
||||||
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65,
|
0x0a, 0x0b, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3a, 0x0a,
|
||||||
0x66, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x15, 0x0a, 0x06,
|
0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20,
|
||||||
0x69, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x69, 0x73,
|
0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
|
||||||
0x4b, 0x65, 0x79, 0x22, 0x20, 0x0a, 0x0a, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d,
|
0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0b, 0x64, 0x72,
|
||||||
0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x33, 0x0a, 0x0b, 0x52, 0x65, 0x6e,
|
||||||
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x19, 0x0a, 0x07, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64,
|
0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x65, 0x77, 0x5f,
|
||||||
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64,
|
0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
||||||
0x42, 0x4c, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
|
0x52, 0x0c, 0x6e, 0x65, 0x77, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x59,
|
||||||
0x76, 0x31, 0x42, 0x03, 0x44, 0x64, 0x6c, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
|
0x0a, 0x09, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x35, 0x0a, 0x0a, 0x63,
|
||||||
0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d,
|
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||||
0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
|
0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f,
|
||||||
0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06,
|
0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44,
|
||||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x65, 0x66, 0x12, 0x15, 0x0a, 0x06, 0x69, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01,
|
||||||
|
0x28, 0x08, 0x52, 0x05, 0x69, 0x73, 0x4b, 0x65, 0x79, 0x22, 0x20, 0x0a, 0x0a, 0x44, 0x72, 0x6f,
|
||||||
|
0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
|
||||||
|
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x19, 0x0a, 0x07, 0x54,
|
||||||
|
0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
|
||||||
|
0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x42, 0x4c, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65,
|
||||||
|
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x03, 0x44, 0x64, 0x6c, 0x5a, 0x35, 0x67,
|
||||||
|
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69,
|
||||||
|
0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d,
|
||||||
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
||||||
|
0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@@ -920,36 +1001,37 @@ func file_greptime_v1_ddl_proto_rawDescGZIP() []byte {
|
|||||||
return file_greptime_v1_ddl_proto_rawDescData
|
return file_greptime_v1_ddl_proto_rawDescData
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
|
var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
|
||||||
var file_greptime_v1_ddl_proto_goTypes = []interface{}{
|
var file_greptime_v1_ddl_proto_goTypes = []interface{}{
|
||||||
(*DdlRequest)(nil), // 0: greptime.v1.DdlRequest
|
(*DdlRequest)(nil), // 0: greptime.v1.DdlRequest
|
||||||
(*CreateTableExpr)(nil), // 1: greptime.v1.CreateTableExpr
|
(*CreateTableExpr)(nil), // 1: greptime.v1.CreateTableExpr
|
||||||
(*AlterExpr)(nil), // 2: greptime.v1.AlterExpr
|
(*AlterExpr)(nil), // 2: greptime.v1.AlterExpr
|
||||||
(*DropTableExpr)(nil), // 3: greptime.v1.DropTableExpr
|
(*DropTableExpr)(nil), // 3: greptime.v1.DropTableExpr
|
||||||
(*CreateDatabaseExpr)(nil), // 4: greptime.v1.CreateDatabaseExpr
|
(*FlushTableExpr)(nil), // 4: greptime.v1.FlushTableExpr
|
||||||
(*AddColumns)(nil), // 5: greptime.v1.AddColumns
|
(*CreateDatabaseExpr)(nil), // 5: greptime.v1.CreateDatabaseExpr
|
||||||
(*DropColumns)(nil), // 6: greptime.v1.DropColumns
|
(*AddColumns)(nil), // 6: greptime.v1.AddColumns
|
||||||
(*RenameTable)(nil), // 7: greptime.v1.RenameTable
|
(*DropColumns)(nil), // 7: greptime.v1.DropColumns
|
||||||
(*AddColumn)(nil), // 8: greptime.v1.AddColumn
|
(*RenameTable)(nil), // 8: greptime.v1.RenameTable
|
||||||
(*DropColumn)(nil), // 9: greptime.v1.DropColumn
|
(*AddColumn)(nil), // 9: greptime.v1.AddColumn
|
||||||
(*TableId)(nil), // 10: greptime.v1.TableId
|
(*DropColumn)(nil), // 10: greptime.v1.DropColumn
|
||||||
nil, // 11: greptime.v1.CreateTableExpr.TableOptionsEntry
|
(*TableId)(nil), // 11: greptime.v1.TableId
|
||||||
(*ColumnDef)(nil), // 12: greptime.v1.ColumnDef
|
nil, // 12: greptime.v1.CreateTableExpr.TableOptionsEntry
|
||||||
|
(*ColumnDef)(nil), // 13: greptime.v1.ColumnDef
|
||||||
}
|
}
|
||||||
var file_greptime_v1_ddl_proto_depIdxs = []int32{
|
var file_greptime_v1_ddl_proto_depIdxs = []int32{
|
||||||
4, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr
|
5, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr
|
||||||
1, // 1: greptime.v1.DdlRequest.create_table:type_name -> greptime.v1.CreateTableExpr
|
1, // 1: greptime.v1.DdlRequest.create_table:type_name -> greptime.v1.CreateTableExpr
|
||||||
2, // 2: greptime.v1.DdlRequest.alter:type_name -> greptime.v1.AlterExpr
|
2, // 2: greptime.v1.DdlRequest.alter:type_name -> greptime.v1.AlterExpr
|
||||||
3, // 3: greptime.v1.DdlRequest.drop_table:type_name -> greptime.v1.DropTableExpr
|
3, // 3: greptime.v1.DdlRequest.drop_table:type_name -> greptime.v1.DropTableExpr
|
||||||
12, // 4: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef
|
13, // 4: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef
|
||||||
11, // 5: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry
|
12, // 5: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry
|
||||||
10, // 6: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId
|
11, // 6: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId
|
||||||
5, // 7: greptime.v1.AlterExpr.add_columns:type_name -> greptime.v1.AddColumns
|
6, // 7: greptime.v1.AlterExpr.add_columns:type_name -> greptime.v1.AddColumns
|
||||||
6, // 8: greptime.v1.AlterExpr.drop_columns:type_name -> greptime.v1.DropColumns
|
7, // 8: greptime.v1.AlterExpr.drop_columns:type_name -> greptime.v1.DropColumns
|
||||||
7, // 9: greptime.v1.AlterExpr.rename_table:type_name -> greptime.v1.RenameTable
|
8, // 9: greptime.v1.AlterExpr.rename_table:type_name -> greptime.v1.RenameTable
|
||||||
8, // 10: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn
|
9, // 10: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn
|
||||||
9, // 11: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn
|
10, // 11: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn
|
||||||
12, // 12: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef
|
13, // 12: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef
|
||||||
13, // [13:13] is the sub-list for method output_type
|
13, // [13:13] is the sub-list for method output_type
|
||||||
13, // [13:13] is the sub-list for method input_type
|
13, // [13:13] is the sub-list for method input_type
|
||||||
13, // [13:13] is the sub-list for extension type_name
|
13, // [13:13] is the sub-list for extension type_name
|
||||||
@@ -1013,7 +1095,7 @@ func file_greptime_v1_ddl_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_ddl_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_ddl_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*CreateDatabaseExpr); i {
|
switch v := v.(*FlushTableExpr); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -1025,7 +1107,7 @@ func file_greptime_v1_ddl_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_ddl_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_ddl_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*AddColumns); i {
|
switch v := v.(*CreateDatabaseExpr); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -1037,7 +1119,7 @@ func file_greptime_v1_ddl_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_ddl_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_ddl_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*DropColumns); i {
|
switch v := v.(*AddColumns); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -1049,7 +1131,7 @@ func file_greptime_v1_ddl_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_ddl_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_ddl_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*RenameTable); i {
|
switch v := v.(*DropColumns); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -1061,7 +1143,7 @@ func file_greptime_v1_ddl_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_ddl_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_ddl_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*AddColumn); i {
|
switch v := v.(*RenameTable); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -1073,7 +1155,7 @@ func file_greptime_v1_ddl_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_ddl_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_ddl_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*DropColumn); i {
|
switch v := v.(*AddColumn); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -1085,6 +1167,18 @@ func file_greptime_v1_ddl_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_ddl_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_ddl_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*DropColumn); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_greptime_v1_ddl_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*TableId); i {
|
switch v := v.(*TableId); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
@@ -1108,13 +1202,14 @@ func file_greptime_v1_ddl_proto_init() {
|
|||||||
(*AlterExpr_DropColumns)(nil),
|
(*AlterExpr_DropColumns)(nil),
|
||||||
(*AlterExpr_RenameTable)(nil),
|
(*AlterExpr_RenameTable)(nil),
|
||||||
}
|
}
|
||||||
|
file_greptime_v1_ddl_proto_msgTypes[4].OneofWrappers = []interface{}{}
|
||||||
type x struct{}
|
type x struct{}
|
||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_greptime_v1_ddl_proto_rawDesc,
|
RawDescriptor: file_greptime_v1_ddl_proto_rawDesc,
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 12,
|
NumMessages: 13,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 0,
|
NumServices: 0,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -51,6 +51,13 @@ message DropTableExpr {
|
|||||||
string table_name = 3;
|
string table_name = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message FlushTableExpr {
|
||||||
|
string catalog_name = 1;
|
||||||
|
string schema_name = 2;
|
||||||
|
string table_name = 3;
|
||||||
|
optional uint32 region_id = 4;
|
||||||
|
}
|
||||||
|
|
||||||
message CreateDatabaseExpr {
|
message CreateDatabaseExpr {
|
||||||
//TODO(hl): maybe rename to schema_name?
|
//TODO(hl): maybe rename to schema_name?
|
||||||
string database_name = 1;
|
string database_name = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user