fields

package
v0.0.0-...-b19370d Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func FindMatchingFieldIndex

func FindMatchingFieldIndex(needle Field, haystack []Field) (int, error)

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) Internal

func (f Field) Internal() bool

func (Field) IsTID

func (f Field) IsTID() bool

func (Field) Name

func (f Field) Name() string

func (Field) RelationName

func (f Field) RelationName() string

func (Field) String

func (f Field) String() string

func (Field) Type

func (f Field) Type() types.Type

func (Field) WithName

func (f Field) WithName(alias string) Field

func (Field) WithRelationName

func (f Field) WithRelationName(relationName string) Field

func (Field) WithType

func (f Field) WithType(typ types.Type) Field

type InternalFieldType

type InternalFieldType int
const (
	NonInternalField InternalFieldType = iota
	InternalFieldTid
)

Jump to

Keyboard shortcuts

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