Documentation ¶
Index ¶
- Variables
- type BinaryRules
- func (*BinaryRules) Descriptor() ([]byte, []int)deprecated
- func (x *BinaryRules) GetBinaryWidth() uint32
- func (x *BinaryRules) GetDefault() []byte
- func (x *BinaryRules) GetSize() uint32
- func (x *BinaryRules) GetType() BinaryType
- func (*BinaryRules) ProtoMessage()
- func (x *BinaryRules) ProtoReflect() protoreflect.Message
- func (x *BinaryRules) Reset()
- func (x *BinaryRules) String() string
- type BinaryType
- type BoolRules
- type EnumInt32S
- type EnumRules
- func (*EnumRules) Descriptor() ([]byte, []int)deprecated
- func (m *EnumRules) GetDefault() isEnumRules_Default
- func (x *EnumRules) GetEnumValues() []string
- func (x *EnumRules) GetIntDefault() int32
- func (x *EnumRules) GetStringDefault() string
- func (x *EnumRules) GetType() EnumType
- func (*EnumRules) ProtoMessage()
- func (x *EnumRules) ProtoReflect() protoreflect.Message
- func (x *EnumRules) Reset()
- func (x *EnumRules) String() string
- type EnumRules_IntDefault
- type EnumRules_StringDefault
- type EnumStrings
- type EnumType
- type FloatRules
- func (*FloatRules) Descriptor() ([]byte, []int)deprecated
- func (x *FloatRules) GetDefault() float64
- func (x *FloatRules) GetPrecision() *PrecisionRule
- func (x *FloatRules) GetType() FloatType
- func (x *FloatRules) GetUnsigned() bool
- func (*FloatRules) ProtoMessage()
- func (x *FloatRules) ProtoReflect() protoreflect.Message
- func (x *FloatRules) Reset()
- func (x *FloatRules) String() string
- type FloatType
- type IndexRules
- func (*IndexRules) Descriptor() ([]byte, []int)deprecated
- func (x *IndexRules) GetName() string
- func (x *IndexRules) GetPriority() uint32
- func (x *IndexRules) GetUnique() bool
- func (*IndexRules) ProtoMessage()
- func (x *IndexRules) ProtoReflect() protoreflect.Message
- func (x *IndexRules) Reset()
- func (x *IndexRules) String() string
- type IntRules
- func (*IntRules) Descriptor() ([]byte, []int)deprecated
- func (x *IntRules) GetDefault() int32
- func (x *IntRules) GetSize() uint32
- func (x *IntRules) GetType() IntType
- func (x *IntRules) GetWidth() uint32
- func (*IntRules) ProtoMessage()
- func (x *IntRules) ProtoReflect() protoreflect.Message
- func (x *IntRules) Reset()
- func (x *IntRules) String() string
- type IntType
- type PrecisionRule
- func (*PrecisionRule) Descriptor() ([]byte, []int)deprecated
- func (x *PrecisionRule) GetD() uint32
- func (x *PrecisionRule) GetM() uint32
- func (*PrecisionRule) ProtoMessage()
- func (x *PrecisionRule) ProtoReflect() protoreflect.Message
- func (x *PrecisionRule) Reset()
- func (x *PrecisionRule) String() string
- type Rules
- func (*Rules) Descriptor() ([]byte, []int)deprecated
- func (x *Rules) GetBinary() *BinaryRules
- func (x *Rules) GetBool() *BoolRules
- func (x *Rules) GetColumnName() string
- func (x *Rules) GetEnum() *EnumRules
- func (x *Rules) GetFloat() *FloatRules
- func (m *Rules) GetIdx() isRules_Idx
- func (x *Rules) GetIndex() *IndexRules
- func (x *Rules) GetInt() *IntRules
- func (x *Rules) GetNotNull() bool
- func (x *Rules) GetPrimaryKey() bool
- func (x *Rules) GetString_() *StringRules
- func (x *Rules) GetTime() *TimeRules
- func (m *Rules) GetType() isRules_Type
- func (x *Rules) GetUniqueIndex() *IndexRules
- func (*Rules) ProtoMessage()
- func (x *Rules) ProtoReflect() protoreflect.Message
- func (x *Rules) Reset()
- func (x *Rules) String() string
- type Rules_Binary
- type Rules_Bool
- type Rules_Enum
- type Rules_Float
- type Rules_Index
- type Rules_Int
- type Rules_PrimaryKey
- type Rules_String_
- type Rules_Time
- type Rules_UniqueIndex
- type StringRules
- func (*StringRules) Descriptor() ([]byte, []int)deprecated
- func (x *StringRules) GetCharWidth() uint32
- func (x *StringRules) GetDefault() string
- func (x *StringRules) GetSize() uint32
- func (x *StringRules) GetType() StringType
- func (*StringRules) ProtoMessage()
- func (x *StringRules) ProtoReflect() protoreflect.Message
- func (x *StringRules) Reset()
- func (x *StringRules) String() string
- type StringType
- type TimeRules
- func (*TimeRules) Descriptor() ([]byte, []int)deprecated
- func (x *TimeRules) GetAutoCreateTime() bool
- func (x *TimeRules) GetAutoUpdateTime() bool
- func (x *TimeRules) GetDeletedAt() bool
- func (x *TimeRules) GetTimeUnit() TimeUnit
- func (x *TimeRules) GetType() TimeType
- func (*TimeRules) ProtoMessage()
- func (x *TimeRules) ProtoReflect() protoreflect.Message
- func (x *TimeRules) Reset()
- func (x *TimeRules) String() string
- type TimeType
- type TimeUnit
Constants ¶
This section is empty.
Variables ¶
var ( IntType_name = map[int32]string{ 0: "tinyint", 1: "smallint", 2: "mediumint", 3: "int", 4: "bigint", } IntType_value = map[string]int32{ "tinyint": 0, "smallint": 1, "mediumint": 2, "int": 3, "bigint": 4, } )
Enum value maps for IntType.
var ( FloatType_name = map[int32]string{ 0: "float", 1: "double", 2: "decimal", } FloatType_value = map[string]int32{ "float": 0, "double": 1, "decimal": 2, } )
Enum value maps for FloatType.
var ( TimeType_name = map[int32]string{ 0: "datetime", 1: "date", 2: "timestamp", } TimeType_value = map[string]int32{ "datetime": 0, "date": 1, "timestamp": 2, } )
Enum value maps for TimeType.
var ( BinaryType_name = map[int32]string{ 0: "binary", 1: "varbinary", 2: "tinyblob", 3: "blob", 4: "mediumblob", 5: "longblob", } BinaryType_value = map[string]int32{ "binary": 0, "varbinary": 1, "tinyblob": 2, "blob": 3, "mediumblob": 4, "longblob": 5, } )
Enum value maps for BinaryType.
var ( StringType_name = map[int32]string{ 0: "char", 1: "varchar", 2: "tinytext", 3: "text", 4: "mediumtext", 5: "longtext", } StringType_value = map[string]int32{ "char": 0, "varchar": 1, "tinytext": 2, "text": 3, "mediumtext": 4, "longtext": 5, } )
Enum value maps for StringType.
var ( EnumType_name = map[int32]string{ 0: "enum", 1: "int32", 2: "string", } EnumType_value = map[string]int32{ "enum": 0, "int32": 1, "string": 2, } )
Enum value maps for EnumType.
var ( TimeUnit_name = map[int32]string{ 0: "s", 1: "ms", 2: "us", 3: "ns", } TimeUnit_value = map[string]int32{ "s": 0, "ms": 1, "us": 2, "ns": 3, } )
Enum value maps for TimeUnit.
var ( // optional bool set_table = 50000; E_SetTable = &file_gorm_proto_extTypes[0] // optional string table_name = 50001; E_TableName = &file_gorm_proto_extTypes[1] // optional bool disable_snake_case = 50002; E_DisableSnakeCase = &file_gorm_proto_extTypes[2] )
Extension fields to descriptor.MessageOptions.
var ( // optional bool ignore_gorm_column = 50000; E_IgnoreGormColumn = &file_gorm_proto_extTypes[3] // optional gorm.Rules rules = 50001; E_Rules = &file_gorm_proto_extTypes[4] )
Extension fields to descriptor.FieldOptions.
var File_gorm_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BinaryRules ¶
type BinaryRules struct { Type *BinaryType `protobuf:"varint,1,opt,name=type,proto3,enum=gorm.BinaryType,oneof" json:"type,omitempty"` // binary, varbinary, tinyblob, blob, mediumblob, longblob BinaryWidth *uint32 `protobuf:"varint,2,opt,name=binary_width,json=binaryWidth,proto3,oneof" json:"binary_width,omitempty"` Size *uint32 `protobuf:"varint,3,opt,name=size,proto3,oneof" json:"size,omitempty"` Default []byte `protobuf:"bytes,4,opt,name=default,proto3,oneof" json:"default,omitempty"` // contains filtered or unexported fields }
func (*BinaryRules) Descriptor
deprecated
func (*BinaryRules) Descriptor() ([]byte, []int)
Deprecated: Use BinaryRules.ProtoReflect.Descriptor instead.
func (*BinaryRules) GetBinaryWidth ¶
func (x *BinaryRules) GetBinaryWidth() uint32
func (*BinaryRules) GetDefault ¶
func (x *BinaryRules) GetDefault() []byte
func (*BinaryRules) GetSize ¶
func (x *BinaryRules) GetSize() uint32
func (*BinaryRules) GetType ¶
func (x *BinaryRules) GetType() BinaryType
func (*BinaryRules) ProtoMessage ¶
func (*BinaryRules) ProtoMessage()
func (*BinaryRules) ProtoReflect ¶
func (x *BinaryRules) ProtoReflect() protoreflect.Message
func (*BinaryRules) Reset ¶
func (x *BinaryRules) Reset()
func (*BinaryRules) String ¶
func (x *BinaryRules) String() string
type BinaryType ¶
type BinaryType int32
const ( BinaryType_binary BinaryType = 0 BinaryType_varbinary BinaryType = 1 BinaryType_tinyblob BinaryType = 2 BinaryType_blob BinaryType = 3 BinaryType_mediumblob BinaryType = 4 BinaryType_longblob BinaryType = 5 )
func (BinaryType) Descriptor ¶
func (BinaryType) Descriptor() protoreflect.EnumDescriptor
func (BinaryType) Enum ¶
func (x BinaryType) Enum() *BinaryType
func (BinaryType) EnumDescriptor
deprecated
func (BinaryType) EnumDescriptor() ([]byte, []int)
Deprecated: Use BinaryType.Descriptor instead.
func (BinaryType) Number ¶
func (x BinaryType) Number() protoreflect.EnumNumber
func (BinaryType) String ¶
func (x BinaryType) String() string
func (BinaryType) Type ¶
func (BinaryType) Type() protoreflect.EnumType
type BoolRules ¶
type BoolRules struct { Default *bool `protobuf:"varint,1,opt,name=default,proto3,oneof" json:"default,omitempty"` // contains filtered or unexported fields }
func (*BoolRules) Descriptor
deprecated
func (*BoolRules) GetDefault ¶
func (*BoolRules) ProtoMessage ¶
func (*BoolRules) ProtoMessage()
func (*BoolRules) ProtoReflect ¶
func (x *BoolRules) ProtoReflect() protoreflect.Message
type EnumInt32S ¶
type EnumInt32S struct { Values []int32 `protobuf:"varint,1,rep,packed,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
func (*EnumInt32S) Descriptor
deprecated
func (*EnumInt32S) Descriptor() ([]byte, []int)
Deprecated: Use EnumInt32S.ProtoReflect.Descriptor instead.
func (*EnumInt32S) GetValues ¶
func (x *EnumInt32S) GetValues() []int32
func (*EnumInt32S) ProtoMessage ¶
func (*EnumInt32S) ProtoMessage()
func (*EnumInt32S) ProtoReflect ¶
func (x *EnumInt32S) ProtoReflect() protoreflect.Message
func (*EnumInt32S) Reset ¶
func (x *EnumInt32S) Reset()
func (*EnumInt32S) String ¶
func (x *EnumInt32S) String() string
type EnumRules ¶
type EnumRules struct { Type *EnumType `protobuf:"varint,1,opt,name=type,proto3,enum=gorm.EnumType,oneof" json:"type,omitempty"` // enum, int32, string EnumValues []string `protobuf:"bytes,2,rep,name=enum_values,json=enumValues,proto3" json:"enum_values,omitempty"` // Types that are assignable to Default: // *EnumRules_StringDefault // *EnumRules_IntDefault Default isEnumRules_Default `protobuf_oneof:"default"` // contains filtered or unexported fields }
func (*EnumRules) Descriptor
deprecated
func (*EnumRules) GetDefault ¶
func (m *EnumRules) GetDefault() isEnumRules_Default
func (*EnumRules) GetEnumValues ¶
func (*EnumRules) GetIntDefault ¶
func (*EnumRules) GetStringDefault ¶
func (*EnumRules) ProtoMessage ¶
func (*EnumRules) ProtoMessage()
func (*EnumRules) ProtoReflect ¶
func (x *EnumRules) ProtoReflect() protoreflect.Message
type EnumRules_IntDefault ¶
type EnumRules_IntDefault struct {
IntDefault int32 `protobuf:"varint,4,opt,name=int_default,json=intDefault,proto3,oneof"`
}
type EnumRules_StringDefault ¶
type EnumRules_StringDefault struct {
StringDefault string `protobuf:"bytes,3,opt,name=string_default,json=stringDefault,proto3,oneof"`
}
type EnumStrings ¶
type EnumStrings struct { Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
func (*EnumStrings) Descriptor
deprecated
func (*EnumStrings) Descriptor() ([]byte, []int)
Deprecated: Use EnumStrings.ProtoReflect.Descriptor instead.
func (*EnumStrings) GetValues ¶
func (x *EnumStrings) GetValues() []string
func (*EnumStrings) ProtoMessage ¶
func (*EnumStrings) ProtoMessage()
func (*EnumStrings) ProtoReflect ¶
func (x *EnumStrings) ProtoReflect() protoreflect.Message
func (*EnumStrings) Reset ¶
func (x *EnumStrings) Reset()
func (*EnumStrings) String ¶
func (x *EnumStrings) String() string
type EnumType ¶
type EnumType int32
func (EnumType) Descriptor ¶
func (EnumType) Descriptor() protoreflect.EnumDescriptor
func (EnumType) EnumDescriptor
deprecated
func (EnumType) Number ¶
func (x EnumType) Number() protoreflect.EnumNumber
func (EnumType) Type ¶
func (EnumType) Type() protoreflect.EnumType
type FloatRules ¶
type FloatRules struct { Type *FloatType `protobuf:"varint,1,opt,name=type,proto3,enum=gorm.FloatType,oneof" json:"type,omitempty"` // float, double, decimal Default *float64 `protobuf:"fixed64,2,opt,name=default,proto3,oneof" json:"default,omitempty"` Precision *PrecisionRule `protobuf:"bytes,3,opt,name=precision,proto3,oneof" json:"precision,omitempty"` // float(10, 2), 10 is m,2 is d Unsigned *bool `protobuf:"varint,4,opt,name=unsigned,proto3,oneof" json:"unsigned,omitempty"` // contains filtered or unexported fields }
func (*FloatRules) Descriptor
deprecated
func (*FloatRules) Descriptor() ([]byte, []int)
Deprecated: Use FloatRules.ProtoReflect.Descriptor instead.
func (*FloatRules) GetDefault ¶
func (x *FloatRules) GetDefault() float64
func (*FloatRules) GetPrecision ¶
func (x *FloatRules) GetPrecision() *PrecisionRule
func (*FloatRules) GetType ¶
func (x *FloatRules) GetType() FloatType
func (*FloatRules) GetUnsigned ¶
func (x *FloatRules) GetUnsigned() bool
func (*FloatRules) ProtoMessage ¶
func (*FloatRules) ProtoMessage()
func (*FloatRules) ProtoReflect ¶
func (x *FloatRules) ProtoReflect() protoreflect.Message
func (*FloatRules) Reset ¶
func (x *FloatRules) Reset()
func (*FloatRules) String ¶
func (x *FloatRules) String() string
type FloatType ¶
type FloatType int32
func (FloatType) Descriptor ¶
func (FloatType) Descriptor() protoreflect.EnumDescriptor
func (FloatType) EnumDescriptor
deprecated
func (FloatType) Number ¶
func (x FloatType) Number() protoreflect.EnumNumber
func (FloatType) Type ¶
func (FloatType) Type() protoreflect.EnumType
type IndexRules ¶
type IndexRules struct { Name *string `protobuf:"bytes,1,opt,name=name,proto3,oneof" json:"name,omitempty"` Unique *bool `protobuf:"varint,2,opt,name=unique,proto3,oneof" json:"unique,omitempty"` Priority uint32 `protobuf:"varint,3,opt,name=priority,proto3" json:"priority,omitempty"` // contains filtered or unexported fields }
func (*IndexRules) Descriptor
deprecated
func (*IndexRules) Descriptor() ([]byte, []int)
Deprecated: Use IndexRules.ProtoReflect.Descriptor instead.
func (*IndexRules) GetName ¶
func (x *IndexRules) GetName() string
func (*IndexRules) GetPriority ¶
func (x *IndexRules) GetPriority() uint32
func (*IndexRules) GetUnique ¶
func (x *IndexRules) GetUnique() bool
func (*IndexRules) ProtoMessage ¶
func (*IndexRules) ProtoMessage()
func (*IndexRules) ProtoReflect ¶
func (x *IndexRules) ProtoReflect() protoreflect.Message
func (*IndexRules) Reset ¶
func (x *IndexRules) Reset()
func (*IndexRules) String ¶
func (x *IndexRules) String() string
type IntRules ¶
type IntRules struct { Type *IntType `protobuf:"varint,1,opt,name=type,proto3,enum=gorm.IntType,oneof" json:"type,omitempty"` // int, bigint, mediumint, smallint, tinyint Default *int32 `protobuf:"varint,2,opt,name=default,proto3,oneof" json:"default,omitempty"` Width *uint32 `protobuf:"varint,3,opt,name=width,proto3,oneof" json:"width,omitempty"` // int(11), 11 is width Size *uint32 `protobuf:"varint,4,opt,name=size,proto3,oneof" json:"size,omitempty"` // contains filtered or unexported fields }
func (*IntRules) Descriptor
deprecated
func (*IntRules) GetDefault ¶
func (*IntRules) ProtoMessage ¶
func (*IntRules) ProtoMessage()
func (*IntRules) ProtoReflect ¶
func (x *IntRules) ProtoReflect() protoreflect.Message
type IntType ¶
type IntType int32
func (IntType) Descriptor ¶
func (IntType) Descriptor() protoreflect.EnumDescriptor
func (IntType) EnumDescriptor
deprecated
func (IntType) Number ¶
func (x IntType) Number() protoreflect.EnumNumber
func (IntType) Type ¶
func (IntType) Type() protoreflect.EnumType
type PrecisionRule ¶
type PrecisionRule struct { M *uint32 `protobuf:"varint,1,opt,name=m,proto3,oneof" json:"m,omitempty"` // 可以使用的数字位数 D *uint32 `protobuf:"varint,2,opt,name=d,proto3,oneof" json:"d,omitempty"` // 小数位数 // contains filtered or unexported fields }
func (*PrecisionRule) Descriptor
deprecated
func (*PrecisionRule) Descriptor() ([]byte, []int)
Deprecated: Use PrecisionRule.ProtoReflect.Descriptor instead.
func (*PrecisionRule) GetD ¶
func (x *PrecisionRule) GetD() uint32
func (*PrecisionRule) GetM ¶
func (x *PrecisionRule) GetM() uint32
func (*PrecisionRule) ProtoMessage ¶
func (*PrecisionRule) ProtoMessage()
func (*PrecisionRule) ProtoReflect ¶
func (x *PrecisionRule) ProtoReflect() protoreflect.Message
func (*PrecisionRule) Reset ¶
func (x *PrecisionRule) Reset()
func (*PrecisionRule) String ¶
func (x *PrecisionRule) String() string
type Rules ¶
type Rules struct { ColumnName *string `protobuf:"bytes,1,opt,name=column_name,json=columnName,proto3,oneof" json:"column_name,omitempty"` // Types that are assignable to Type: // *Rules_Bool // *Rules_Int // *Rules_Float // *Rules_Time // *Rules_Binary // *Rules_String_ // *Rules_Enum Type isRules_Type `protobuf_oneof:"type"` // Types that are assignable to Idx: // *Rules_PrimaryKey // *Rules_UniqueIndex // *Rules_Index Idx isRules_Idx `protobuf_oneof:"idx"` NotNull *bool `protobuf:"varint,12,opt,name=not_null,json=notNull,proto3,oneof" json:"not_null,omitempty"` // contains filtered or unexported fields }
func (*Rules) Descriptor
deprecated
func (*Rules) GetBinary ¶
func (x *Rules) GetBinary() *BinaryRules
func (*Rules) GetColumnName ¶
func (*Rules) GetFloat ¶
func (x *Rules) GetFloat() *FloatRules
func (*Rules) GetIndex ¶
func (x *Rules) GetIndex() *IndexRules
func (*Rules) GetNotNull ¶
func (*Rules) GetPrimaryKey ¶
func (*Rules) GetString_ ¶
func (x *Rules) GetString_() *StringRules
func (*Rules) GetUniqueIndex ¶
func (x *Rules) GetUniqueIndex() *IndexRules
func (*Rules) ProtoMessage ¶
func (*Rules) ProtoMessage()
func (*Rules) ProtoReflect ¶
func (x *Rules) ProtoReflect() protoreflect.Message
type Rules_Binary ¶
type Rules_Binary struct {
Binary *BinaryRules `protobuf:"bytes,6,opt,name=binary,proto3,oneof"`
}
type Rules_Bool ¶
type Rules_Bool struct {
Bool *BoolRules `protobuf:"bytes,2,opt,name=bool,proto3,oneof"`
}
type Rules_Enum ¶
type Rules_Enum struct {
Enum *EnumRules `protobuf:"bytes,8,opt,name=enum,proto3,oneof"`
}
type Rules_Float ¶
type Rules_Float struct {
Float *FloatRules `protobuf:"bytes,4,opt,name=float,proto3,oneof"`
}
type Rules_Index ¶
type Rules_Index struct {
Index *IndexRules `protobuf:"bytes,11,opt,name=index,proto3,oneof"`
}
type Rules_Int ¶
type Rules_Int struct {
Int *IntRules `protobuf:"bytes,3,opt,name=int,proto3,oneof"`
}
type Rules_PrimaryKey ¶
type Rules_PrimaryKey struct {
PrimaryKey bool `protobuf:"varint,9,opt,name=primary_key,json=primaryKey,proto3,oneof"`
}
type Rules_String_ ¶
type Rules_String_ struct {
String_ *StringRules `protobuf:"bytes,7,opt,name=string,proto3,oneof"`
}
type Rules_Time ¶
type Rules_Time struct {
Time *TimeRules `protobuf:"bytes,5,opt,name=time,proto3,oneof"`
}
type Rules_UniqueIndex ¶
type Rules_UniqueIndex struct {
UniqueIndex *IndexRules `protobuf:"bytes,10,opt,name=uniqueIndex,proto3,oneof"`
}
type StringRules ¶
type StringRules struct { Type *StringType `protobuf:"varint,1,opt,name=type,proto3,enum=gorm.StringType,oneof" json:"type,omitempty"` // char, varchar, tinytext, text, mediumtext, longtext CharWidth *uint32 `protobuf:"varint,2,opt,name=char_width,json=charWidth,proto3,oneof" json:"char_width,omitempty"` Size *uint32 `protobuf:"varint,3,opt,name=size,proto3,oneof" json:"size,omitempty"` Default *string `protobuf:"bytes,4,opt,name=default,proto3,oneof" json:"default,omitempty"` // contains filtered or unexported fields }
func (*StringRules) Descriptor
deprecated
func (*StringRules) Descriptor() ([]byte, []int)
Deprecated: Use StringRules.ProtoReflect.Descriptor instead.
func (*StringRules) GetCharWidth ¶
func (x *StringRules) GetCharWidth() uint32
func (*StringRules) GetDefault ¶
func (x *StringRules) GetDefault() string
func (*StringRules) GetSize ¶
func (x *StringRules) GetSize() uint32
func (*StringRules) GetType ¶
func (x *StringRules) GetType() StringType
func (*StringRules) ProtoMessage ¶
func (*StringRules) ProtoMessage()
func (*StringRules) ProtoReflect ¶
func (x *StringRules) ProtoReflect() protoreflect.Message
func (*StringRules) Reset ¶
func (x *StringRules) Reset()
func (*StringRules) String ¶
func (x *StringRules) String() string
type StringType ¶
type StringType int32
const ( StringType_char StringType = 0 StringType_varchar StringType = 1 StringType_tinytext StringType = 2 StringType_text StringType = 3 StringType_mediumtext StringType = 4 StringType_longtext StringType = 5 )
func (StringType) Descriptor ¶
func (StringType) Descriptor() protoreflect.EnumDescriptor
func (StringType) Enum ¶
func (x StringType) Enum() *StringType
func (StringType) EnumDescriptor
deprecated
func (StringType) EnumDescriptor() ([]byte, []int)
Deprecated: Use StringType.Descriptor instead.
func (StringType) Number ¶
func (x StringType) Number() protoreflect.EnumNumber
func (StringType) String ¶
func (x StringType) String() string
func (StringType) Type ¶
func (StringType) Type() protoreflect.EnumType
type TimeRules ¶
type TimeRules struct { Type *TimeType `protobuf:"varint,1,opt,name=type,proto3,enum=gorm.TimeType,oneof" json:"type,omitempty"` // datetime, date, timestamp AutoCreateTime *bool `protobuf:"varint,2,opt,name=auto_create_time,json=autoCreateTime,proto3,oneof" json:"auto_create_time,omitempty"` AutoUpdateTime *bool `protobuf:"varint,3,opt,name=auto_update_time,json=autoUpdateTime,proto3,oneof" json:"auto_update_time,omitempty"` DeletedAt *bool `protobuf:"varint,4,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` TimeUnit *TimeUnit `protobuf:"varint,5,opt,name=time_unit,json=timeUnit,proto3,enum=gorm.TimeUnit,oneof" json:"time_unit,omitempty"` // contains filtered or unexported fields }
func (*TimeRules) Descriptor
deprecated
func (*TimeRules) GetAutoCreateTime ¶
func (*TimeRules) GetAutoUpdateTime ¶
func (*TimeRules) GetDeletedAt ¶
func (*TimeRules) GetTimeUnit ¶
func (*TimeRules) ProtoMessage ¶
func (*TimeRules) ProtoMessage()
func (*TimeRules) ProtoReflect ¶
func (x *TimeRules) ProtoReflect() protoreflect.Message
type TimeType ¶
type TimeType int32
func (TimeType) Descriptor ¶
func (TimeType) Descriptor() protoreflect.EnumDescriptor
func (TimeType) EnumDescriptor
deprecated
func (TimeType) Number ¶
func (x TimeType) Number() protoreflect.EnumNumber
func (TimeType) Type ¶
func (TimeType) Type() protoreflect.EnumType
type TimeUnit ¶
type TimeUnit int32
func (TimeUnit) Descriptor ¶
func (TimeUnit) Descriptor() protoreflect.EnumDescriptor
func (TimeUnit) EnumDescriptor
deprecated
func (TimeUnit) Number ¶
func (x TimeUnit) Number() protoreflect.EnumNumber
func (TimeUnit) Type ¶
func (TimeUnit) Type() protoreflect.EnumType