Documentation ¶
Index ¶
- Variables
- func FindMatchingFieldIndex(needle Field, haystack []Field) (int, error)
- type Field
- func (f Field) Internal() bool
- func (f Field) IsTID() bool
- func (f Field) Name() string
- func (f Field) RelationName() string
- func (f Field) String() string
- func (f Field) Type() types.Type
- func (f Field) WithName(alias string) Field
- func (f Field) WithRelationName(relationName string) Field
- func (f Field) WithType(typ types.Type) Field
- type InternalFieldType
Constants ¶
This section is empty.
Variables ¶
View Source
var TIDField = NewField("", "tid", types.TypeBigInteger, InternalFieldTid)
Functions ¶
Types ¶
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
func NewField ¶
func NewField(relationName, name string, typ types.Type, internalFieldType InternalFieldType) Field
func (Field) RelationName ¶
func (Field) WithRelationName ¶
type InternalFieldType ¶
type InternalFieldType int
const ( NonInternalField InternalFieldType = iota InternalFieldTid )
Click to show internal directories.
Click to hide internal directories.