Documentation ¶
Index ¶
- Variables
- type Index
- func (*Index) Descriptor() ([]byte, []int)deprecated
- func (x *Index) GetComment() string
- func (x *Index) GetIndexField() []string
- func (x *Index) GetIndexType() Type
- func (*Index) ProtoMessage()
- func (x *Index) ProtoReflect() protoreflect.Message
- func (x *Index) Reset()
- func (x *Index) String() string
- type MysqlField
- func (*MysqlField) Descriptor() ([]byte, []int)deprecated
- func (x *MysqlField) GetAutoIncr() bool
- func (x *MysqlField) GetComment() string
- func (x *MysqlField) GetDefault() string
- func (x *MysqlField) GetIsNULL() bool
- func (*MysqlField) ProtoMessage()
- func (x *MysqlField) ProtoReflect() protoreflect.Message
- func (x *MysqlField) Reset()
- func (x *MysqlField) String() string
- type MysqlFile
- type MysqlMessage
- func (*MysqlMessage) Descriptor() ([]byte, []int)deprecated
- func (x *MysqlMessage) GetCharacter() string
- func (x *MysqlMessage) GetCollate() string
- func (x *MysqlMessage) GetComment() string
- func (x *MysqlMessage) GetDatabase() string
- func (x *MysqlMessage) GetEngine() string
- func (x *MysqlMessage) GetIndexs() []*Index
- func (x *MysqlMessage) GetRowFormat() string
- func (*MysqlMessage) ProtoMessage()
- func (x *MysqlMessage) ProtoReflect() protoreflect.Message
- func (x *MysqlMessage) Reset()
- func (x *MysqlMessage) String() string
- type MysqlMethod
- type MysqlService
- type Type
Constants ¶
This section is empty.
Variables ¶
var ( Type_name = map[int32]string{ 0: "T_UNK", 1: "T_PKI", 2: "T_FTI", 3: "T_UII", 4: "T_NII", } Type_value = map[string]int32{ "T_UNK": 0, "T_PKI": 1, "T_FTI": 2, "T_UII": 3, "T_NII": 4, } )
Enum value maps for Type.
var (
// optional Mysql.Options.MysqlField Field = 5002;
E_Field = &file_Mysql_Options_Annotations_proto_extTypes[4]
)
Extension fields to descriptorpb.FieldOptions.
var (
// optional Mysql.Options.MysqlFile File = 5002;
E_File = &file_Mysql_Options_Annotations_proto_extTypes[0]
)
Extension fields to descriptorpb.FileOptions.
var (
// optional Mysql.Options.MysqlMessage Message = 5002;
E_Message = &file_Mysql_Options_Annotations_proto_extTypes[2]
)
Extension fields to descriptorpb.MessageOptions.
var (
// optional Mysql.Options.MysqlMethod Method = 5002;
E_Method = &file_Mysql_Options_Annotations_proto_extTypes[1]
)
Extension fields to descriptorpb.MethodOptions.
var (
// optional Mysql.Options.MysqlService Service = 5002;
E_Service = &file_Mysql_Options_Annotations_proto_extTypes[3]
)
Extension fields to descriptorpb.ServiceOptions.
var File_Mysql_Options_Annotations_proto protoreflect.FileDescriptor
var File_Mysql_Options_MysqlOptions_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Index struct { // IndexType 索引类型 IndexType Type `` /* 185-byte string literal not displayed */ // IndexField 索引字段 IndexField []string `protobuf:"bytes,2,rep,name=IndexField,proto3" json:"IndexField,omitempty" xorm:"json notnull 'IndexField'"` // Comment 索引注释 Comment string `protobuf:"bytes,3,opt,name=Comment,proto3" json:"Comment,omitempty" xorm:"VARCHAR(255) notnull default('') 'Comment'"` // contains filtered or unexported fields }
Index 用于描述一个索引
func (*Index) Descriptor
deprecated
func (*Index) GetComment ¶
func (*Index) GetIndexField ¶
func (*Index) GetIndexType ¶
func (*Index) ProtoMessage ¶
func (*Index) ProtoMessage()
func (*Index) ProtoReflect ¶
func (x *Index) ProtoReflect() protoreflect.Message
type MysqlField ¶
type MysqlField struct { // Commment 注释 Comment string `protobuf:"bytes,1,opt,name=Comment,proto3" json:"Comment,omitempty" xorm:"VARCHAR(255) notnull default('') 'Comment'"` // AutoIncr 是否自增 AutoIncr bool `` /* 127-byte string literal not displayed */ // IsNull 是否为NULL IsNULL bool `protobuf:"varint,3,opt,name=IsNULL,proto3" json:"IsNULL,omitempty" xorm:"TINYINT(1) unsigned notnull default(0) 'IsNULL'"` // Default 默认值 Default string `protobuf:"bytes,4,opt,name=Default,proto3" json:"Default,omitempty" xorm:"VARCHAR(255) notnull default('') 'Default'"` // contains filtered or unexported fields }
protoc-gen-mysql 的service
func (*MysqlField) Descriptor
deprecated
func (*MysqlField) Descriptor() ([]byte, []int)
Deprecated: Use MysqlField.ProtoReflect.Descriptor instead.
func (*MysqlField) GetAutoIncr ¶
func (x *MysqlField) GetAutoIncr() bool
func (*MysqlField) GetComment ¶
func (x *MysqlField) GetComment() string
func (*MysqlField) GetDefault ¶
func (x *MysqlField) GetDefault() string
func (*MysqlField) GetIsNULL ¶
func (x *MysqlField) GetIsNULL() bool
func (*MysqlField) ProtoMessage ¶
func (*MysqlField) ProtoMessage()
func (*MysqlField) ProtoReflect ¶
func (x *MysqlField) ProtoReflect() protoreflect.Message
func (*MysqlField) Reset ¶
func (x *MysqlField) Reset()
func (*MysqlField) String ¶
func (x *MysqlField) String() string
type MysqlFile ¶
type MysqlFile struct {
// contains filtered or unexported fields
}
protoc-gen-mysql的File
func (*MysqlFile) Descriptor
deprecated
func (*MysqlFile) ProtoMessage ¶
func (*MysqlFile) ProtoMessage()
func (*MysqlFile) ProtoReflect ¶
func (x *MysqlFile) ProtoReflect() protoreflect.Message
type MysqlMessage ¶
type MysqlMessage struct { // Commment 注释 Comment string `protobuf:"bytes,1,opt,name=Comment,proto3" json:"Comment,omitempty" xorm:"VARCHAR(255) notnull default('') 'Comment'"` // Engine 引擎,如果不填,默认为innodb Engine string `protobuf:"bytes,2,opt,name=Engine,proto3" json:"Engine,omitempty" xorm:"VARCHAR(255) notnull default('') 'Engine'"` // Character 字符集,默认为utf8mb4 Character string `protobuf:"bytes,3,opt,name=Character,proto3" json:"Character,omitempty" xorm:"VARCHAR(255) notnull default('') 'Character'"` // Collate 默认为utf8mb4_general_ci Collate string `protobuf:"bytes,4,opt,name=Collate,proto3" json:"Collate,omitempty" xorm:"VARCHAR(255) notnull default('') 'Collate'"` // RowFormat 默认为Dynamic RowFormat string `protobuf:"bytes,5,opt,name=RowFormat,proto3" json:"RowFormat,omitempty" xorm:"VARCHAR(255) notnull default('') 'RowFormat'"` // Indexs 索引 Indexs []*Index `protobuf:"bytes,6,rep,name=Indexs,proto3" json:"Indexs,omitempty" xorm:"json notnull 'Indexs'"` // Database 数据库名称 Database string `protobuf:"bytes,7,opt,name=Database,proto3" json:"Database,omitempty" xorm:"VARCHAR(255) notnull default('') 'Database'"` // contains filtered or unexported fields }
protoc-gen-mysql的Message
func (*MysqlMessage) Descriptor
deprecated
func (*MysqlMessage) Descriptor() ([]byte, []int)
Deprecated: Use MysqlMessage.ProtoReflect.Descriptor instead.
func (*MysqlMessage) GetCharacter ¶
func (x *MysqlMessage) GetCharacter() string
func (*MysqlMessage) GetCollate ¶
func (x *MysqlMessage) GetCollate() string
func (*MysqlMessage) GetComment ¶
func (x *MysqlMessage) GetComment() string
func (*MysqlMessage) GetDatabase ¶
func (x *MysqlMessage) GetDatabase() string
func (*MysqlMessage) GetEngine ¶
func (x *MysqlMessage) GetEngine() string
func (*MysqlMessage) GetIndexs ¶
func (x *MysqlMessage) GetIndexs() []*Index
func (*MysqlMessage) GetRowFormat ¶
func (x *MysqlMessage) GetRowFormat() string
func (*MysqlMessage) ProtoMessage ¶
func (*MysqlMessage) ProtoMessage()
func (*MysqlMessage) ProtoReflect ¶
func (x *MysqlMessage) ProtoReflect() protoreflect.Message
func (*MysqlMessage) Reset ¶
func (x *MysqlMessage) Reset()
func (*MysqlMessage) String ¶
func (x *MysqlMessage) String() string
type MysqlMethod ¶
type MysqlMethod struct {
// contains filtered or unexported fields
}
protoc-gen-mysql的Method
func (*MysqlMethod) Descriptor
deprecated
func (*MysqlMethod) Descriptor() ([]byte, []int)
Deprecated: Use MysqlMethod.ProtoReflect.Descriptor instead.
func (*MysqlMethod) ProtoMessage ¶
func (*MysqlMethod) ProtoMessage()
func (*MysqlMethod) ProtoReflect ¶
func (x *MysqlMethod) ProtoReflect() protoreflect.Message
func (*MysqlMethod) Reset ¶
func (x *MysqlMethod) Reset()
func (*MysqlMethod) String ¶
func (x *MysqlMethod) String() string
type MysqlService ¶
type MysqlService struct {
// contains filtered or unexported fields
}
protoc-gen-mysql的service
func (*MysqlService) Descriptor
deprecated
func (*MysqlService) Descriptor() ([]byte, []int)
Deprecated: Use MysqlService.ProtoReflect.Descriptor instead.
func (*MysqlService) ProtoMessage ¶
func (*MysqlService) ProtoMessage()
func (*MysqlService) ProtoReflect ¶
func (x *MysqlService) ProtoReflect() protoreflect.Message
func (*MysqlService) Reset ¶
func (x *MysqlService) Reset()
func (*MysqlService) String ¶
func (x *MysqlService) String() string
type Type ¶
type Type int32
Type 索引类型
func (Type) Descriptor ¶
func (Type) Descriptor() protoreflect.EnumDescriptor
func (Type) EnumDescriptor
deprecated
func (Type) Number ¶
func (x Type) Number() protoreflect.EnumNumber
func (Type) Type ¶
func (Type) Type() protoreflect.EnumType