option

package
v0.0.0-...-59ce3e0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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

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

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

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

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

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

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

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

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

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

Deprecated: Use BoolRules.ProtoReflect.Descriptor instead.

func (*BoolRules) GetDefault

func (x *BoolRules) GetDefault() bool

func (*BoolRules) ProtoMessage

func (*BoolRules) ProtoMessage()

func (*BoolRules) ProtoReflect

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

func (*BoolRules) Reset

func (x *BoolRules) Reset()

func (*BoolRules) String

func (x *BoolRules) String() string

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

Deprecated: Use EnumRules.ProtoReflect.Descriptor instead.

func (*EnumRules) GetDefault

func (m *EnumRules) GetDefault() isEnumRules_Default

func (*EnumRules) GetEnumValues

func (x *EnumRules) GetEnumValues() []string

func (*EnumRules) GetIntDefault

func (x *EnumRules) GetIntDefault() int32

func (*EnumRules) GetStringDefault

func (x *EnumRules) GetStringDefault() string

func (*EnumRules) GetType

func (x *EnumRules) GetType() EnumType

func (*EnumRules) ProtoMessage

func (*EnumRules) ProtoMessage()

func (*EnumRules) ProtoReflect

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

func (*EnumRules) Reset

func (x *EnumRules) Reset()

func (*EnumRules) String

func (x *EnumRules) String() string

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
const (
	EnumType_enum   EnumType = 0 // 如果后续新增枚举值,可能需要改表,这往往得不偿失,慎用
	EnumType_int32  EnumType = 1
	EnumType_string EnumType = 2
)

func (EnumType) Descriptor

func (EnumType) Descriptor() protoreflect.EnumDescriptor

func (EnumType) Enum

func (x EnumType) Enum() *EnumType

func (EnumType) EnumDescriptor deprecated

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

Deprecated: Use EnumType.Descriptor instead.

func (EnumType) Number

func (x EnumType) Number() protoreflect.EnumNumber

func (EnumType) String

func (x EnumType) String() string

func (EnumType) Type

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
const (
	FloatType_float   FloatType = 0
	FloatType_double  FloatType = 1
	FloatType_decimal FloatType = 2
)

func (FloatType) Descriptor

func (FloatType) Descriptor() protoreflect.EnumDescriptor

func (FloatType) Enum

func (x FloatType) Enum() *FloatType

func (FloatType) EnumDescriptor deprecated

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

Deprecated: Use FloatType.Descriptor instead.

func (FloatType) Number

func (x FloatType) Number() protoreflect.EnumNumber

func (FloatType) String

func (x FloatType) String() string

func (FloatType) Type

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

Deprecated: Use IntRules.ProtoReflect.Descriptor instead.

func (*IntRules) GetDefault

func (x *IntRules) GetDefault() int32

func (*IntRules) GetSize

func (x *IntRules) GetSize() uint32

func (*IntRules) GetType

func (x *IntRules) GetType() IntType

func (*IntRules) GetWidth

func (x *IntRules) GetWidth() uint32

func (*IntRules) ProtoMessage

func (*IntRules) ProtoMessage()

func (*IntRules) ProtoReflect

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

func (*IntRules) Reset

func (x *IntRules) Reset()

func (*IntRules) String

func (x *IntRules) String() string

type IntType

type IntType int32
const (
	IntType_tinyint   IntType = 0
	IntType_smallint  IntType = 1
	IntType_mediumint IntType = 2
	IntType_int       IntType = 3
	IntType_bigint    IntType = 4
)

func (IntType) Descriptor

func (IntType) Descriptor() protoreflect.EnumDescriptor

func (IntType) Enum

func (x IntType) Enum() *IntType

func (IntType) EnumDescriptor deprecated

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

Deprecated: Use IntType.Descriptor instead.

func (IntType) Number

func (x IntType) Number() protoreflect.EnumNumber

func (IntType) String

func (x IntType) String() string

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

Deprecated: Use Rules.ProtoReflect.Descriptor instead.

func (*Rules) GetBinary

func (x *Rules) GetBinary() *BinaryRules

func (*Rules) GetBool

func (x *Rules) GetBool() *BoolRules

func (*Rules) GetColumnName

func (x *Rules) GetColumnName() string

func (*Rules) GetEnum

func (x *Rules) GetEnum() *EnumRules

func (*Rules) GetFloat

func (x *Rules) GetFloat() *FloatRules

func (*Rules) GetIdx

func (m *Rules) GetIdx() isRules_Idx

func (*Rules) GetIndex

func (x *Rules) GetIndex() *IndexRules

func (*Rules) GetInt

func (x *Rules) GetInt() *IntRules

func (*Rules) GetNotNull

func (x *Rules) GetNotNull() bool

func (*Rules) GetPrimaryKey

func (x *Rules) GetPrimaryKey() bool

func (*Rules) GetString_

func (x *Rules) GetString_() *StringRules

func (*Rules) GetTime

func (x *Rules) GetTime() *TimeRules

func (*Rules) GetType

func (m *Rules) GetType() isRules_Type

func (*Rules) GetUniqueIndex

func (x *Rules) GetUniqueIndex() *IndexRules

func (*Rules) ProtoMessage

func (*Rules) ProtoMessage()

func (*Rules) ProtoReflect

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

func (*Rules) Reset

func (x *Rules) Reset()

func (*Rules) String

func (x *Rules) String() string

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

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

Deprecated: Use TimeRules.ProtoReflect.Descriptor instead.

func (*TimeRules) GetAutoCreateTime

func (x *TimeRules) GetAutoCreateTime() bool

func (*TimeRules) GetAutoUpdateTime

func (x *TimeRules) GetAutoUpdateTime() bool

func (*TimeRules) GetDeletedAt

func (x *TimeRules) GetDeletedAt() bool

func (*TimeRules) GetTimeUnit

func (x *TimeRules) GetTimeUnit() TimeUnit

func (*TimeRules) GetType

func (x *TimeRules) GetType() TimeType

func (*TimeRules) ProtoMessage

func (*TimeRules) ProtoMessage()

func (*TimeRules) ProtoReflect

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

func (*TimeRules) Reset

func (x *TimeRules) Reset()

func (*TimeRules) String

func (x *TimeRules) String() string

type TimeType

type TimeType int32
const (
	TimeType_datetime  TimeType = 0
	TimeType_date      TimeType = 1
	TimeType_timestamp TimeType = 2
)

func (TimeType) Descriptor

func (TimeType) Descriptor() protoreflect.EnumDescriptor

func (TimeType) Enum

func (x TimeType) Enum() *TimeType

func (TimeType) EnumDescriptor deprecated

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

Deprecated: Use TimeType.Descriptor instead.

func (TimeType) Number

func (x TimeType) Number() protoreflect.EnumNumber

func (TimeType) String

func (x TimeType) String() string

func (TimeType) Type

type TimeUnit

type TimeUnit int32
const (
	TimeUnit_s  TimeUnit = 0
	TimeUnit_ms TimeUnit = 1
	TimeUnit_us TimeUnit = 2
	TimeUnit_ns TimeUnit = 3
)

func (TimeUnit) Descriptor

func (TimeUnit) Descriptor() protoreflect.EnumDescriptor

func (TimeUnit) Enum

func (x TimeUnit) Enum() *TimeUnit

func (TimeUnit) EnumDescriptor deprecated

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

Deprecated: Use TimeUnit.Descriptor instead.

func (TimeUnit) Number

func (x TimeUnit) Number() protoreflect.EnumNumber

func (TimeUnit) String

func (x TimeUnit) String() string

func (TimeUnit) Type

Jump to

Keyboard shortcuts

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