pboptions

package
v0.0.0-...-e50a79a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var (
	// optional Mysql.Options.MysqlField Field = 5002;
	E_Field = &file_Mysql_Options_Annotations_proto_extTypes[4]
)

Extension fields to descriptorpb.FieldOptions.

View Source
var (
	// optional Mysql.Options.MysqlFile File = 5002;
	E_File = &file_Mysql_Options_Annotations_proto_extTypes[0]
)

Extension fields to descriptorpb.FileOptions.

View Source
var (
	// optional Mysql.Options.MysqlMessage Message = 5002;
	E_Message = &file_Mysql_Options_Annotations_proto_extTypes[2]
)

Extension fields to descriptorpb.MessageOptions.

View Source
var (
	// optional Mysql.Options.MysqlMethod Method = 5002;
	E_Method = &file_Mysql_Options_Annotations_proto_extTypes[1]
)

Extension fields to descriptorpb.MethodOptions.

View Source
var (
	// optional Mysql.Options.MysqlService Service = 5002;
	E_Service = &file_Mysql_Options_Annotations_proto_extTypes[3]
)

Extension fields to descriptorpb.ServiceOptions.

View Source
var File_Mysql_Options_Annotations_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Index.ProtoReflect.Descriptor instead.

func (*Index) GetComment

func (x *Index) GetComment() string

func (*Index) GetIndexField

func (x *Index) GetIndexField() []string

func (*Index) GetIndexType

func (x *Index) GetIndexType() Type

func (*Index) ProtoMessage

func (*Index) ProtoMessage()

func (*Index) ProtoReflect

func (x *Index) ProtoReflect() protoreflect.Message

func (*Index) Reset

func (x *Index) Reset()

func (*Index) String

func (x *Index) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use MysqlFile.ProtoReflect.Descriptor instead.

func (*MysqlFile) ProtoMessage

func (*MysqlFile) ProtoMessage()

func (*MysqlFile) ProtoReflect

func (x *MysqlFile) ProtoReflect() protoreflect.Message

func (*MysqlFile) Reset

func (x *MysqlFile) Reset()

func (*MysqlFile) String

func (x *MysqlFile) String() string

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 索引类型

const (
	// T_UNK 索引类型未知
	Type_T_UNK Type = 0
	// T_PKI 索引类型为主键
	Type_T_PKI Type = 1
	// T_FTI 索引类型为全文索引
	Type_T_FTI Type = 2
	// T_UII 索引类型为唯一索引
	Type_T_UII Type = 3
	// T_NII 索引类型为普通索引
	Type_T_NII Type = 4
)

func (Type) Descriptor

func (Type) Descriptor() protoreflect.EnumDescriptor

func (Type) Enum

func (x Type) Enum() *Type

func (Type) EnumDescriptor deprecated

func (Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Type.Descriptor instead.

func (Type) Number

func (x Type) Number() protoreflect.EnumNumber

func (Type) String

func (x Type) String() string

func (Type) Type

func (Type) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL