Documentation
¶
Index ¶
- Variables
- type Edge
- func (*Edge) Descriptor() ([]byte, []int)deprecated
- func (x *Edge) GetField() string
- func (x *Edge) GetRef() string
- func (x *Edge) GetRequired() bool
- func (x *Edge) GetStorageKey() *Edge_StorageKey
- func (x *Edge) GetStructTag() string
- func (x *Edge) GetUnique() bool
- func (*Edge) ProtoMessage()
- func (x *Edge) ProtoReflect() protoreflect.Message
- func (x *Edge) Reset()
- func (x *Edge) String() string
- type Edge_StorageKey
- func (*Edge_StorageKey) Descriptor() ([]byte, []int)deprecated
- func (x *Edge_StorageKey) GetColumns() []string
- func (x *Edge_StorageKey) GetTable() string
- func (*Edge_StorageKey) ProtoMessage()
- func (x *Edge_StorageKey) ProtoReflect() protoreflect.Message
- func (x *Edge_StorageKey) Reset()
- func (x *Edge_StorageKey) String() string
- type Field
- func (*Field) Descriptor() ([]byte, []int)deprecated
- func (x *Field) GetComment() string
- func (x *Field) GetImmutable() bool
- func (x *Field) GetNillable() bool
- func (x *Field) GetOptional() bool
- func (x *Field) GetSchemaType() map[string]string
- func (x *Field) GetSensitive() bool
- func (x *Field) GetStorageKey() string
- func (x *Field) GetStructTag() string
- func (x *Field) GetUnique() bool
- func (*Field) ProtoMessage()
- func (x *Field) ProtoReflect() protoreflect.Message
- func (x *Field) Reset()
- func (x *Field) String() string
- type Schema
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.
View Source
var File_opts_proto protoreflect.FileDescriptor
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) GetRequired ¶
func (*Edge) GetStorageKey ¶
func (x *Edge) GetStorageKey() *Edge_StorageKey
func (*Edge) GetStructTag ¶
func (*Edge) ProtoMessage ¶
func (*Edge) ProtoMessage()
func (*Edge) ProtoReflect ¶
func (x *Edge) ProtoReflect() protoreflect.Message
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) GetComment ¶
func (*Field) GetImmutable ¶
func (*Field) GetNillable ¶
func (*Field) GetOptional ¶
func (*Field) GetSchemaType ¶
func (*Field) GetSensitive ¶
func (*Field) GetStorageKey ¶
func (*Field) GetStructTag ¶
func (*Field) ProtoMessage ¶
func (*Field) ProtoMessage()
func (*Field) ProtoReflect ¶
func (x *Field) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Schema) ProtoMessage()
func (*Schema) ProtoReflect ¶
func (x *Schema) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.