gorm

package
v0.0.0-...-91481ff Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// optional gorm.GormOptions opts = 2025;
	E_Opts = &file_gorm_proto_extTypes[0]
	// optional gorm.GormRef ref = 2027;
	E_Ref = &file_gorm_proto_extTypes[1]
)

Extension fields to descriptorpb.MessageOptions.

View Source
var (
	// optional gorm.GormType type = 2026;
	E_Type = &file_gorm_proto_extTypes[2]
)

Extension fields to descriptorpb.FieldOptions.

Functions

This section is empty.

Types

type BelongsTo

type BelongsTo struct {
	Key  string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*BelongsTo) Descriptor deprecated

func (*BelongsTo) Descriptor() ([]byte, []int)

Deprecated: Use BelongsTo.ProtoReflect.Descriptor instead.

func (*BelongsTo) GetKey

func (x *BelongsTo) GetKey() string

func (*BelongsTo) GetType

func (x *BelongsTo) GetType() string

func (*BelongsTo) ProtoMessage

func (*BelongsTo) ProtoMessage()

func (*BelongsTo) ProtoReflect

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

func (*BelongsTo) Reset

func (x *BelongsTo) Reset()

func (*BelongsTo) String

func (x *BelongsTo) String() string

type GormOptions

type GormOptions struct {
	Orm bool `protobuf:"varint,1,opt,name=orm,proto3" json:"orm,omitempty"`
	// contains filtered or unexported fields
}

func (*GormOptions) Descriptor deprecated

func (*GormOptions) Descriptor() ([]byte, []int)

Deprecated: Use GormOptions.ProtoReflect.Descriptor instead.

func (*GormOptions) GetOrm

func (x *GormOptions) GetOrm() bool

func (*GormOptions) ProtoMessage

func (*GormOptions) ProtoMessage()

func (*GormOptions) ProtoReflect

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

func (*GormOptions) Reset

func (x *GormOptions) Reset()

func (*GormOptions) String

func (x *GormOptions) String() string

type GormRef

type GormRef struct {

	// Types that are assignable to Ref:
	//
	//	*GormRef_BelongsTo
	Ref isGormRef_Ref `protobuf_oneof:"ref"`
	// contains filtered or unexported fields
}

func (*GormRef) Descriptor deprecated

func (*GormRef) Descriptor() ([]byte, []int)

Deprecated: Use GormRef.ProtoReflect.Descriptor instead.

func (*GormRef) GetBelongsTo

func (x *GormRef) GetBelongsTo() *BelongsTo

func (*GormRef) GetRef

func (m *GormRef) GetRef() isGormRef_Ref

func (*GormRef) ProtoMessage

func (*GormRef) ProtoMessage()

func (*GormRef) ProtoReflect

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

func (*GormRef) Reset

func (x *GormRef) Reset()

func (*GormRef) String

func (x *GormRef) String() string

type GormRef_BelongsTo

type GormRef_BelongsTo struct {
	BelongsTo *BelongsTo `protobuf:"bytes,1,opt,name=belongs_to,json=belongsTo,proto3,oneof"`
}

type GormType

type GormType struct {

	// Types that are assignable to Type:
	//
	//	*GormType_Primary
	//	*GormType_AutoIncrement
	//	*GormType_Index
	//	*GormType_NotNull
	//	*GormType_UniqueIndex
	Type isGormType_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*GormType) Descriptor deprecated

func (*GormType) Descriptor() ([]byte, []int)

Deprecated: Use GormType.ProtoReflect.Descriptor instead.

func (*GormType) GetAutoIncrement

func (x *GormType) GetAutoIncrement() bool

func (*GormType) GetIndex

func (x *GormType) GetIndex() bool

func (*GormType) GetNotNull

func (x *GormType) GetNotNull() bool

func (*GormType) GetPrimary

func (x *GormType) GetPrimary() bool

func (*GormType) GetType

func (m *GormType) GetType() isGormType_Type

func (*GormType) GetUniqueIndex

func (x *GormType) GetUniqueIndex() bool

func (*GormType) ProtoMessage

func (*GormType) ProtoMessage()

func (*GormType) ProtoReflect

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

func (*GormType) Reset

func (x *GormType) Reset()

func (*GormType) String

func (x *GormType) String() string

type GormType_AutoIncrement

type GormType_AutoIncrement struct {
	AutoIncrement bool `protobuf:"varint,2,opt,name=auto_increment,json=autoIncrement,proto3,oneof"`
}

type GormType_Index

type GormType_Index struct {
	Index bool `protobuf:"varint,3,opt,name=index,proto3,oneof"`
}

type GormType_NotNull

type GormType_NotNull struct {
	NotNull bool `protobuf:"varint,4,opt,name=not_null,json=notNull,proto3,oneof"`
}

type GormType_Primary

type GormType_Primary struct {
	Primary bool `protobuf:"varint,1,opt,name=primary,proto3,oneof"`
}

type GormType_UniqueIndex

type GormType_UniqueIndex struct {
	UniqueIndex bool `protobuf:"varint,5,opt,name=unique_index,json=uniqueIndex,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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