fieldvaluereference

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the fieldvaluereference type in the database.
	Label = "field_value_reference"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldNodeID holds the string denoting the node_id field in the database.
	FieldNodeID = "node_id"
	// FieldFieldID holds the string denoting the field_id field in the database.
	FieldFieldID = "field_id"
	// FieldTargetNodeID holds the string denoting the target_node_id field in the database.
	FieldTargetNodeID = "target_node_id"
	// EdgeTargetNode holds the string denoting the target_node edge name in mutations.
	EdgeTargetNode = "target_node"
	// EdgeNode holds the string denoting the node edge name in mutations.
	EdgeNode = "node"
	// EdgeFieldStorage holds the string denoting the field_storage edge name in mutations.
	EdgeFieldStorage = "field_storage"
	// Table holds the table name of the fieldvaluereference in the database.
	Table = "field_value_reference"
	// TargetNodeTable is the table that holds the target_node relation/edge.
	TargetNodeTable = "field_value_reference"
	// TargetNodeInverseTable is the table name for the Node entity.
	// It exists in this package in order to avoid circular dependency with the "node" package.
	TargetNodeInverseTable = "nodes"
	// TargetNodeColumn is the table column denoting the target_node relation/edge.
	TargetNodeColumn = "target_node_id"
	// NodeTable is the table that holds the node relation/edge.
	NodeTable = "field_value_reference"
	// NodeInverseTable is the table name for the Node entity.
	// It exists in this package in order to avoid circular dependency with the "node" package.
	NodeInverseTable = "nodes"
	// NodeColumn is the table column denoting the node relation/edge.
	NodeColumn = "node_id"
	// FieldStorageTable is the table that holds the field_storage relation/edge.
	FieldStorageTable = "field_value_reference"
	// FieldStorageInverseTable is the table name for the FieldStorageDef entity.
	// It exists in this package in order to avoid circular dependency with the "fieldstoragedef" package.
	FieldStorageInverseTable = "field_storages"
	// FieldStorageColumn is the table column denoting the field_storage relation/edge.
	FieldStorageColumn = "field_id"
)

Variables

Columns holds all SQL columns for fieldvaluereference fields.

Functions

func And

And groups predicates with the AND operator between them.

func FieldIDEQ

func FieldIDEQ(v int) predicate.FieldValueReference

FieldIDEQ applies the EQ predicate on the "field_id" field.

func FieldIDIn

func FieldIDIn(vs ...int) predicate.FieldValueReference

FieldIDIn applies the In predicate on the "field_id" field.

func FieldIDNEQ

func FieldIDNEQ(v int) predicate.FieldValueReference

FieldIDNEQ applies the NEQ predicate on the "field_id" field.

func FieldIDNotIn

func FieldIDNotIn(vs ...int) predicate.FieldValueReference

FieldIDNotIn applies the NotIn predicate on the "field_id" field.

func HasFieldStorage

func HasFieldStorage() predicate.FieldValueReference

HasFieldStorage applies the HasEdge predicate on the "field_storage" edge.

func HasFieldStorageWith

func HasFieldStorageWith(preds ...predicate.FieldStorageDef) predicate.FieldValueReference

HasFieldStorageWith applies the HasEdge predicate on the "field_storage" edge with a given conditions (other predicates).

func HasNode

HasNode applies the HasEdge predicate on the "node" edge.

func HasNodeWith

func HasNodeWith(preds ...predicate.Node) predicate.FieldValueReference

HasNodeWith applies the HasEdge predicate on the "node" edge with a given conditions (other predicates).

func HasTargetNode

func HasTargetNode() predicate.FieldValueReference

HasTargetNode applies the HasEdge predicate on the "target_node" edge.

func HasTargetNodeWith

func HasTargetNodeWith(preds ...predicate.Node) predicate.FieldValueReference

HasTargetNodeWith applies the HasEdge predicate on the "target_node" edge with a given conditions (other predicates).

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.FieldValueReference

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.FieldValueReference

IDNotIn applies the NotIn predicate on the ID field.

func NodeID

NodeID applies equality check predicate on the "node_id" field. It's identical to NodeIDEQ.

func NodeIDEQ

func NodeIDEQ(v int) predicate.FieldValueReference

NodeIDEQ applies the EQ predicate on the "node_id" field.

func NodeIDIn

func NodeIDIn(vs ...int) predicate.FieldValueReference

NodeIDIn applies the In predicate on the "node_id" field.

func NodeIDNEQ

func NodeIDNEQ(v int) predicate.FieldValueReference

NodeIDNEQ applies the NEQ predicate on the "node_id" field.

func NodeIDNotIn

func NodeIDNotIn(vs ...int) predicate.FieldValueReference

NodeIDNotIn applies the NotIn predicate on the "node_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func TargetNodeID

func TargetNodeID(v int) predicate.FieldValueReference

TargetNodeID applies equality check predicate on the "target_node_id" field. It's identical to TargetNodeIDEQ.

func TargetNodeIDEQ

func TargetNodeIDEQ(v int) predicate.FieldValueReference

TargetNodeIDEQ applies the EQ predicate on the "target_node_id" field.

func TargetNodeIDIn

func TargetNodeIDIn(vs ...int) predicate.FieldValueReference

TargetNodeIDIn applies the In predicate on the "target_node_id" field.

func TargetNodeIDNEQ

func TargetNodeIDNEQ(v int) predicate.FieldValueReference

TargetNodeIDNEQ applies the NEQ predicate on the "target_node_id" field.

func TargetNodeIDNotIn

func TargetNodeIDNotIn(vs ...int) predicate.FieldValueReference

TargetNodeIDNotIn applies the NotIn predicate on the "target_node_id" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the FieldValueReference queries.

func ByFieldID

func ByFieldID(opts ...sql.OrderTermOption) OrderOption

ByFieldID orders the results by the field_id field.

func ByFieldStorageField

func ByFieldStorageField(field string, opts ...sql.OrderTermOption) OrderOption

ByFieldStorageField orders the results by field_storage field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByNodeField

func ByNodeField(field string, opts ...sql.OrderTermOption) OrderOption

ByNodeField orders the results by node field.

func ByNodeID

func ByNodeID(opts ...sql.OrderTermOption) OrderOption

ByNodeID orders the results by the node_id field.

func ByTargetNodeField

func ByTargetNodeField(field string, opts ...sql.OrderTermOption) OrderOption

ByTargetNodeField orders the results by target_node field.

func ByTargetNodeID

func ByTargetNodeID(opts ...sql.OrderTermOption) OrderOption

ByTargetNodeID orders the results by the target_node_id field.

Jump to

Keyboard shortcuts

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