orm

package
v5.0.0-...-a6f3eba Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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.

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

Deprecated: Use GormTag.ProtoReflect.Descriptor instead.

func (*GormTag) GetAutoCreateTime

func (x *GormTag) GetAutoCreateTime() int64

func (*GormTag) GetAutoIncrement

func (x *GormTag) GetAutoIncrement() bool

func (*GormTag) GetAutoIncrementIncrement

func (x *GormTag) GetAutoIncrementIncrement() int32

func (*GormTag) GetAutoUpdateTime

func (x *GormTag) GetAutoUpdateTime() int64

func (*GormTag) GetCheck

func (x *GormTag) GetCheck() string

func (*GormTag) GetColumn

func (x *GormTag) GetColumn() string

func (*GormTag) GetComment

func (x *GormTag) GetComment() string

func (*GormTag) GetConstraint

func (x *GormTag) GetConstraint() string

func (*GormTag) GetDefault

func (x *GormTag) GetDefault() string

func (*GormTag) GetEmbedded

func (x *GormTag) GetEmbedded() bool

func (*GormTag) GetEmbeddedPrefix

func (x *GormTag) GetEmbeddedPrefix() string

func (*GormTag) GetForeignKey

func (x *GormTag) GetForeignKey() string

func (*GormTag) GetIgnore

func (x *GormTag) GetIgnore() string

func (*GormTag) GetIndex

func (x *GormTag) GetIndex() string

func (*GormTag) GetJoinForeignKey

func (x *GormTag) GetJoinForeignKey() string

func (*GormTag) GetJoinReferences

func (x *GormTag) GetJoinReferences() string

func (*GormTag) GetMany2Many

func (x *GormTag) GetMany2Many() string

func (*GormTag) GetNotNull

func (x *GormTag) GetNotNull() bool

func (*GormTag) GetPolymorphic

func (x *GormTag) GetPolymorphic() string

func (*GormTag) GetPolymorphicValue

func (x *GormTag) GetPolymorphicValue() string

func (*GormTag) GetPrecision

func (x *GormTag) GetPrecision() int32

func (*GormTag) GetPrimaryKey

func (x *GormTag) GetPrimaryKey() bool

func (*GormTag) GetReadPermission

func (x *GormTag) GetReadPermission() string

func (*GormTag) GetReferences

func (x *GormTag) GetReferences() string

func (*GormTag) GetScale

func (x *GormTag) GetScale() int32

func (*GormTag) GetSerializer

func (x *GormTag) GetSerializer() string

func (*GormTag) GetSize

func (x *GormTag) GetSize() int32

func (*GormTag) GetType

func (x *GormTag) GetType() string

func (*GormTag) GetUnique

func (x *GormTag) GetUnique() bool

func (*GormTag) GetUniqueIndex

func (x *GormTag) GetUniqueIndex() string

func (*GormTag) GetWritePermission

func (x *GormTag) GetWritePermission() string

func (*GormTag) ProtoMessage

func (*GormTag) ProtoMessage()

func (*GormTag) ProtoReflect

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

func (*GormTag) Reset

func (x *GormTag) Reset()

func (*GormTag) String

func (x *GormTag) String() string

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

Jump to

Keyboard shortcuts

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