ent

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// optional ent.Field field = 150119;
	E_Field = &file_opts_proto_extTypes[1]
	// optional ent.Edge edge = 150120;
	E_Edge = &file_opts_proto_extTypes[2]
)

Extension fields to descriptorpb.FieldOptions.

View Source
var (
	// optional ent.Schema schema = 150119;
	E_Schema = &file_opts_proto_extTypes[0]
)

Extension fields to descriptorpb.MessageOptions.

Functions

This section is empty.

Types

type Edge

type Edge struct {
	Unique     *bool            `protobuf:"varint,1,opt,name=unique" json:"unique,omitempty"`
	Ref        *string          `protobuf:"bytes,2,opt,name=ref" json:"ref,omitempty"`
	Required   *bool            `protobuf:"varint,3,opt,name=required" json:"required,omitempty"`
	Field      *string          `protobuf:"bytes,4,opt,name=field" json:"field,omitempty"`
	StorageKey *Edge_StorageKey `protobuf:"bytes,5,opt,name=storage_key,json=storageKey" json:"storage_key,omitempty"`
	StructTag  *string          `protobuf:"bytes,6,opt,name=struct_tag,json=structTag" json:"struct_tag,omitempty"`
	// contains filtered or unexported fields
}

func (*Edge) Descriptor deprecated

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

Deprecated: Use Edge.ProtoReflect.Descriptor instead.

func (*Edge) GetField

func (x *Edge) GetField() string

func (*Edge) GetRef

func (x *Edge) GetRef() string

func (*Edge) GetRequired

func (x *Edge) GetRequired() bool

func (*Edge) GetStorageKey

func (x *Edge) GetStorageKey() *Edge_StorageKey

func (*Edge) GetStructTag

func (x *Edge) GetStructTag() string

func (*Edge) GetUnique

func (x *Edge) GetUnique() bool

func (*Edge) ProtoMessage

func (*Edge) ProtoMessage()

func (*Edge) ProtoReflect

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

func (*Edge) Reset

func (x *Edge) Reset()

func (*Edge) String

func (x *Edge) String() string

type Edge_StorageKey

type Edge_StorageKey struct {
	Table   *string  `protobuf:"bytes,1,opt,name=table" json:"table,omitempty"`
	Columns []string `protobuf:"bytes,2,rep,name=columns" json:"columns,omitempty"`
	// contains filtered or unexported fields
}

func (*Edge_StorageKey) Descriptor deprecated

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

Deprecated: Use Edge_StorageKey.ProtoReflect.Descriptor instead.

func (*Edge_StorageKey) GetColumns

func (x *Edge_StorageKey) GetColumns() []string

func (*Edge_StorageKey) GetTable

func (x *Edge_StorageKey) GetTable() string

func (*Edge_StorageKey) ProtoMessage

func (*Edge_StorageKey) ProtoMessage()

func (*Edge_StorageKey) ProtoReflect

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

func (*Edge_StorageKey) Reset

func (x *Edge_StorageKey) Reset()

func (*Edge_StorageKey) String

func (x *Edge_StorageKey) String() string

type Field

type Field struct {
	Optional   *bool             `protobuf:"varint,1,opt,name=optional" json:"optional,omitempty"`
	Nillable   *bool             `protobuf:"varint,2,opt,name=nillable" json:"nillable,omitempty"`
	Unique     *bool             `protobuf:"varint,3,opt,name=unique" json:"unique,omitempty"`
	Sensitive  *bool             `protobuf:"varint,4,opt,name=sensitive" json:"sensitive,omitempty"`
	Immutable  *bool             `protobuf:"varint,5,opt,name=immutable" json:"immutable,omitempty"`
	Comment    *string           `protobuf:"bytes,6,opt,name=comment" json:"comment,omitempty"`
	StructTag  *string           `protobuf:"bytes,7,opt,name=struct_tag,json=structTag" json:"struct_tag,omitempty"`
	StorageKey *string           `protobuf:"bytes,8,opt,name=storage_key,json=storageKey" json:"storage_key,omitempty"`
	SchemaType map[string]string `` /* 158-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Field) Descriptor deprecated

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

Deprecated: Use Field.ProtoReflect.Descriptor instead.

func (*Field) GetComment

func (x *Field) GetComment() string

func (*Field) GetImmutable

func (x *Field) GetImmutable() bool

func (*Field) GetNillable

func (x *Field) GetNillable() bool

func (*Field) GetOptional

func (x *Field) GetOptional() bool

func (*Field) GetSchemaType

func (x *Field) GetSchemaType() map[string]string

func (*Field) GetSensitive

func (x *Field) GetSensitive() bool

func (*Field) GetStorageKey

func (x *Field) GetStorageKey() string

func (*Field) GetStructTag

func (x *Field) GetStructTag() string

func (*Field) GetUnique

func (x *Field) GetUnique() bool

func (*Field) ProtoMessage

func (*Field) ProtoMessage()

func (*Field) ProtoReflect

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

func (*Field) Reset

func (x *Field) Reset()

func (*Field) String

func (x *Field) String() string

type Schema

type Schema struct {
	Gen  *bool   `protobuf:"varint,1,opt,name=gen" json:"gen,omitempty"`
	Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Schema) Descriptor deprecated

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

Deprecated: Use Schema.ProtoReflect.Descriptor instead.

func (*Schema) GetGen

func (x *Schema) GetGen() bool

func (*Schema) GetName

func (x *Schema) GetName() string

func (*Schema) ProtoMessage

func (*Schema) ProtoMessage()

func (*Schema) ProtoReflect

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

func (*Schema) Reset

func (x *Schema) Reset()

func (*Schema) String

func (x *Schema) String() string

Jump to

Keyboard shortcuts

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