Documentation
¶
Index ¶
- Variables
- type GormTag
- func (*GormTag) Descriptor() ([]byte, []int)deprecated
- func (x *GormTag) GetAutoCreateTime() int64
- func (x *GormTag) GetAutoIncrement() bool
- func (x *GormTag) GetAutoIncrementIncrement() int32
- func (x *GormTag) GetAutoUpdateTime() int64
- func (x *GormTag) GetCheck() string
- func (x *GormTag) GetColumn() string
- func (x *GormTag) GetComment() string
- func (x *GormTag) GetConstraint() string
- func (x *GormTag) GetDefault() string
- func (x *GormTag) GetEmbedded() bool
- func (x *GormTag) GetEmbeddedPrefix() string
- func (x *GormTag) GetForeignKey() string
- func (x *GormTag) GetIgnore() string
- func (x *GormTag) GetIndex() string
- func (x *GormTag) GetJoinForeignKey() string
- func (x *GormTag) GetJoinReferences() string
- func (x *GormTag) GetMany2Many() string
- func (x *GormTag) GetNotNull() bool
- func (x *GormTag) GetPolymorphic() string
- func (x *GormTag) GetPolymorphicValue() string
- func (x *GormTag) GetPrecision() int32
- func (x *GormTag) GetPrimaryKey() bool
- func (x *GormTag) GetReadPermission() string
- func (x *GormTag) GetReferences() string
- func (x *GormTag) GetScale() int32
- func (x *GormTag) GetSerializer() string
- func (x *GormTag) GetSize() int32
- func (x *GormTag) GetType() string
- func (x *GormTag) GetUnique() bool
- func (x *GormTag) GetUniqueIndex() string
- func (x *GormTag) GetWritePermission() string
- func (*GormTag) ProtoMessage()
- func (x *GormTag) ProtoReflect() protoreflect.Message
- func (x *GormTag) Reset()
- func (x *GormTag) String() string
- type ORMDialectOptions
- func (*ORMDialectOptions) Descriptor() ([]byte, []int)deprecated
- func (x *ORMDialectOptions) GetType() string
- func (x *ORMDialectOptions) GetValue() string
- func (*ORMDialectOptions) ProtoMessage()
- func (x *ORMDialectOptions) ProtoReflect() protoreflect.Message
- func (x *ORMDialectOptions) Reset()
- func (x *ORMDialectOptions) String() string
- type ORMFieldOptions
- func (*ORMFieldOptions) Descriptor() ([]byte, []int)deprecated
- func (x *ORMFieldOptions) GetGorm() *GormTag
- func (m *ORMFieldOptions) GetTag() isORMFieldOptions_Tag
- func (*ORMFieldOptions) ProtoMessage()
- func (x *ORMFieldOptions) ProtoReflect() protoreflect.Message
- func (x *ORMFieldOptions) Reset()
- func (x *ORMFieldOptions) String() string
- type ORMFieldOptions_Gorm
- type ORMMessagePolicy
- func (*ORMMessagePolicy) Descriptor() ([]byte, []int)deprecated
- func (x *ORMMessagePolicy) GetEnabled() bool
- func (x *ORMMessagePolicy) GetOptions() []*ORMDialectOptions
- func (*ORMMessagePolicy) ProtoMessage()
- func (x *ORMMessagePolicy) ProtoReflect() protoreflect.Message
- func (x *ORMMessagePolicy) Reset()
- func (x *ORMMessagePolicy) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// optional orm.ORMFieldOptions orm = 52119;
E_Orm = &file_orm_proto_extTypes[1]
)
Extension fields to descriptorpb.FieldOptions.
View Source
var ( // ormable will cause orm code to be generated for this message/object // // optional orm.ORMMessagePolicy ormPolicy = 52119; E_OrmPolicy = &file_orm_proto_extTypes[0] )
Extension fields to descriptorpb.MessageOptions.
View Source
var File_orm_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type GormTag ¶
type GormTag struct { Column string `protobuf:"bytes,1,opt,name=column,proto3" json:"column,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Serializer string `protobuf:"bytes,3,opt,name=serializer,proto3" json:"serializer,omitempty"` Size int32 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` PrimaryKey bool `protobuf:"varint,5,opt,name=primaryKey,proto3" json:"primaryKey,omitempty"` Unique bool `protobuf:"varint,6,opt,name=unique,proto3" json:"unique,omitempty"` Default string `protobuf:"bytes,7,opt,name=default,proto3" json:"default,omitempty"` Precision int32 `protobuf:"varint,8,opt,name=precision,proto3" json:"precision,omitempty"` Scale int32 `protobuf:"varint,9,opt,name=scale,proto3" json:"scale,omitempty"` NotNull bool `protobuf:"varint,10,opt,name=notNull,proto3" json:"notNull,omitempty"` AutoIncrement bool `protobuf:"varint,11,opt,name=autoIncrement,proto3" json:"autoIncrement,omitempty"` AutoIncrementIncrement int32 `protobuf:"varint,12,opt,name=autoIncrementIncrement,proto3" json:"autoIncrementIncrement,omitempty"` Embedded bool `protobuf:"varint,13,opt,name=embedded,proto3" json:"embedded,omitempty"` EmbeddedPrefix string `protobuf:"bytes,14,opt,name=embeddedPrefix,proto3" json:"embeddedPrefix,omitempty"` AutoCreateTime int64 `protobuf:"varint,15,opt,name=autoCreateTime,proto3" json:"autoCreateTime,omitempty"` AutoUpdateTime int64 `protobuf:"varint,16,opt,name=autoUpdateTime,proto3" json:"autoUpdateTime,omitempty"` Index string `protobuf:"bytes,17,opt,name=index,proto3" json:"index,omitempty"` UniqueIndex string `protobuf:"bytes,18,opt,name=uniqueIndex,proto3" json:"uniqueIndex,omitempty"` Check string `protobuf:"bytes,19,opt,name=check,proto3" json:"check,omitempty"` WritePermission string `protobuf:"bytes,20,opt,name=writePermission,proto3" json:"writePermission,omitempty"` ReadPermission string `protobuf:"bytes,21,opt,name=readPermission,proto3" json:"readPermission,omitempty"` Ignore string `protobuf:"bytes,22,opt,name=ignore,proto3" json:"ignore,omitempty"` Comment string `protobuf:"bytes,23,opt,name=comment,proto3" json:"comment,omitempty"` // Association tags ForeignKey string `protobuf:"bytes,24,opt,name=foreignKey,proto3" json:"foreignKey,omitempty"` References string `protobuf:"bytes,25,opt,name=references,proto3" json:"references,omitempty"` Polymorphic string `protobuf:"bytes,26,opt,name=polymorphic,proto3" json:"polymorphic,omitempty"` PolymorphicValue string `protobuf:"bytes,27,opt,name=polymorphicValue,proto3" json:"polymorphicValue,omitempty"` Many2Many string `protobuf:"bytes,28,opt,name=many2many,proto3" json:"many2many,omitempty"` JoinForeignKey string `protobuf:"bytes,29,opt,name=joinForeignKey,proto3" json:"joinForeignKey,omitempty"` JoinReferences string `protobuf:"bytes,30,opt,name=joinReferences,proto3" json:"joinReferences,omitempty"` Constraint string `protobuf:"bytes,31,opt,name=constraint,proto3" json:"constraint,omitempty"` // contains filtered or unexported fields }
func (*GormTag) Descriptor
deprecated
func (*GormTag) GetAutoCreateTime ¶
func (*GormTag) GetAutoIncrement ¶
func (*GormTag) GetAutoIncrementIncrement ¶
func (*GormTag) GetAutoUpdateTime ¶
func (*GormTag) GetComment ¶
func (*GormTag) GetConstraint ¶
func (*GormTag) GetDefault ¶
func (*GormTag) GetEmbedded ¶
func (*GormTag) GetEmbeddedPrefix ¶
func (*GormTag) GetForeignKey ¶
func (*GormTag) GetJoinForeignKey ¶
func (*GormTag) GetJoinReferences ¶
func (*GormTag) GetMany2Many ¶
func (*GormTag) GetNotNull ¶
func (*GormTag) GetPolymorphic ¶
func (*GormTag) GetPolymorphicValue ¶
func (*GormTag) GetPrecision ¶
func (*GormTag) GetPrimaryKey ¶
func (*GormTag) GetReadPermission ¶
func (*GormTag) GetReferences ¶
func (*GormTag) GetSerializer ¶
func (*GormTag) GetUniqueIndex ¶
func (*GormTag) GetWritePermission ¶
func (*GormTag) ProtoMessage ¶
func (*GormTag) ProtoMessage()
func (*GormTag) ProtoReflect ¶
func (x *GormTag) ProtoReflect() protoreflect.Message
type ORMDialectOptions ¶
type ORMDialectOptions struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*ORMDialectOptions) Descriptor
deprecated
func (*ORMDialectOptions) Descriptor() ([]byte, []int)
Deprecated: Use ORMDialectOptions.ProtoReflect.Descriptor instead.
func (*ORMDialectOptions) GetType ¶
func (x *ORMDialectOptions) GetType() string
func (*ORMDialectOptions) GetValue ¶
func (x *ORMDialectOptions) GetValue() string
func (*ORMDialectOptions) ProtoMessage ¶
func (*ORMDialectOptions) ProtoMessage()
func (*ORMDialectOptions) ProtoReflect ¶
func (x *ORMDialectOptions) ProtoReflect() protoreflect.Message
func (*ORMDialectOptions) Reset ¶
func (x *ORMDialectOptions) Reset()
func (*ORMDialectOptions) String ¶
func (x *ORMDialectOptions) String() string
type ORMFieldOptions ¶
type ORMFieldOptions struct { // Types that are assignable to Tag: // // *ORMFieldOptions_Gorm Tag isORMFieldOptions_Tag `protobuf_oneof:"tag"` // contains filtered or unexported fields }
func (*ORMFieldOptions) Descriptor
deprecated
func (*ORMFieldOptions) Descriptor() ([]byte, []int)
Deprecated: Use ORMFieldOptions.ProtoReflect.Descriptor instead.
func (*ORMFieldOptions) GetGorm ¶
func (x *ORMFieldOptions) GetGorm() *GormTag
func (*ORMFieldOptions) GetTag ¶
func (m *ORMFieldOptions) GetTag() isORMFieldOptions_Tag
func (*ORMFieldOptions) ProtoMessage ¶
func (*ORMFieldOptions) ProtoMessage()
func (*ORMFieldOptions) ProtoReflect ¶
func (x *ORMFieldOptions) ProtoReflect() protoreflect.Message
func (*ORMFieldOptions) Reset ¶
func (x *ORMFieldOptions) Reset()
func (*ORMFieldOptions) String ¶
func (x *ORMFieldOptions) String() string
type ORMFieldOptions_Gorm ¶
type ORMFieldOptions_Gorm struct {
Gorm *GormTag `protobuf:"bytes,1,opt,name=gorm,proto3,oneof"`
}
type ORMMessagePolicy ¶
type ORMMessagePolicy struct { Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` Options []*ORMDialectOptions `protobuf:"bytes,2,rep,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
func (*ORMMessagePolicy) Descriptor
deprecated
func (*ORMMessagePolicy) Descriptor() ([]byte, []int)
Deprecated: Use ORMMessagePolicy.ProtoReflect.Descriptor instead.
func (*ORMMessagePolicy) GetEnabled ¶
func (x *ORMMessagePolicy) GetEnabled() bool
func (*ORMMessagePolicy) GetOptions ¶
func (x *ORMMessagePolicy) GetOptions() []*ORMDialectOptions
func (*ORMMessagePolicy) ProtoMessage ¶
func (*ORMMessagePolicy) ProtoMessage()
func (*ORMMessagePolicy) ProtoReflect ¶
func (x *ORMMessagePolicy) ProtoReflect() protoreflect.Message
func (*ORMMessagePolicy) Reset ¶
func (x *ORMMessagePolicy) Reset()
func (*ORMMessagePolicy) String ¶
func (x *ORMMessagePolicy) String() string
Click to show internal directories.
Click to hide internal directories.