Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.FieldValueReference) predicate.FieldValueReference
- func FieldIDEQ(v int) predicate.FieldValueReference
- func FieldIDIn(vs ...int) predicate.FieldValueReference
- func FieldIDNEQ(v int) predicate.FieldValueReference
- func FieldIDNotIn(vs ...int) predicate.FieldValueReference
- func HasFieldStorage() predicate.FieldValueReference
- func HasFieldStorageWith(preds ...predicate.FieldStorageDef) predicate.FieldValueReference
- func HasNode() predicate.FieldValueReference
- func HasNodeWith(preds ...predicate.Node) predicate.FieldValueReference
- func HasTargetNode() predicate.FieldValueReference
- func HasTargetNodeWith(preds ...predicate.Node) predicate.FieldValueReference
- func ID(id int) predicate.FieldValueReference
- func IDEQ(id int) predicate.FieldValueReference
- func IDGT(id int) predicate.FieldValueReference
- func IDGTE(id int) predicate.FieldValueReference
- func IDIn(ids ...int) predicate.FieldValueReference
- func IDLT(id int) predicate.FieldValueReference
- func IDLTE(id int) predicate.FieldValueReference
- func IDNEQ(id int) predicate.FieldValueReference
- func IDNotIn(ids ...int) predicate.FieldValueReference
- func NodeID(v int) predicate.FieldValueReference
- func NodeIDEQ(v int) predicate.FieldValueReference
- func NodeIDIn(vs ...int) predicate.FieldValueReference
- func NodeIDNEQ(v int) predicate.FieldValueReference
- func NodeIDNotIn(vs ...int) predicate.FieldValueReference
- func Not(p predicate.FieldValueReference) predicate.FieldValueReference
- func Or(predicates ...predicate.FieldValueReference) predicate.FieldValueReference
- func TargetNodeID(v int) predicate.FieldValueReference
- func TargetNodeIDEQ(v int) predicate.FieldValueReference
- func TargetNodeIDIn(vs ...int) predicate.FieldValueReference
- func TargetNodeIDNEQ(v int) predicate.FieldValueReference
- func TargetNodeIDNotIn(vs ...int) predicate.FieldValueReference
- func ValidColumn(column string) bool
- type OrderOption
- func ByFieldID(opts ...sql.OrderTermOption) OrderOption
- func ByFieldStorageField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNodeField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByNodeID(opts ...sql.OrderTermOption) OrderOption
- func ByTargetNodeField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTargetNodeID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldNodeID, FieldFieldID, FieldTargetNodeID, }
Columns holds all SQL columns for fieldvaluereference fields.
Functions ¶
func And ¶
func And(predicates ...predicate.FieldValueReference) predicate.FieldValueReference
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 ¶
func HasNode() predicate.FieldValueReference
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 ¶
func ID(id int) predicate.FieldValueReference
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id int) predicate.FieldValueReference
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.FieldValueReference
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.FieldValueReference
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 ¶
func IDLT(id int) predicate.FieldValueReference
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.FieldValueReference
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.FieldValueReference
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 ¶
func NodeID(v int) predicate.FieldValueReference
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 ¶
func Not(p predicate.FieldValueReference) predicate.FieldValueReference
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.FieldValueReference) predicate.FieldValueReference
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 ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.