Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Node) predicate.Node
- func HasChildren() predicate.Node
- func HasChildrenWith(preds ...predicate.Node) predicate.Node
- func HasParent() predicate.Node
- func HasParentWith(preds ...predicate.Node) predicate.Node
- func ID(id int) predicate.Node
- func IDEQ(id int) predicate.Node
- func IDGT(id int) predicate.Node
- func IDGTE(id int) predicate.Node
- func IDIn(ids ...int) predicate.Node
- func IDLT(id int) predicate.Node
- func IDLTE(id int) predicate.Node
- func IDNEQ(id int) predicate.Node
- func IDNotIn(ids ...int) predicate.Node
- func Not(p predicate.Node) predicate.Node
- func Or(predicates ...predicate.Node) predicate.Node
- func ParentID(v int) predicate.Node
- func ParentIDEQ(v int) predicate.Node
- func ParentIDIn(vs ...int) predicate.Node
- func ParentIDIsNil() predicate.Node
- func ParentIDNEQ(v int) predicate.Node
- func ParentIDNotIn(vs ...int) predicate.Node
- func ParentIDNotNil() predicate.Node
- func ValidColumn(column string) bool
- func Value(v int) predicate.Node
- func ValueEQ(v int) predicate.Node
- func ValueGT(v int) predicate.Node
- func ValueGTE(v int) predicate.Node
- func ValueIn(vs ...int) predicate.Node
- func ValueLT(v int) predicate.Node
- func ValueLTE(v int) predicate.Node
- func ValueNEQ(v int) predicate.Node
- func ValueNotIn(vs ...int) predicate.Node
Constants ¶
const ( // Label holds the string label denoting the node type in the database. Label = "node" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldValue holds the string denoting the value field in the database. FieldValue = "value" // FieldParentID holds the string denoting the parent_id field in the database. FieldParentID = "parent_id" // EdgeParent holds the string denoting the parent edge name in mutations. EdgeParent = "parent" // EdgeChildren holds the string denoting the children edge name in mutations. EdgeChildren = "children" // Table holds the table name of the node in the database. Table = "nodes" // ParentTable is the table that holds the parent relation/edge. ParentTable = "nodes" // ParentColumn is the table column denoting the parent relation/edge. ParentColumn = "parent_id" // ChildrenTable is the table that holds the children relation/edge. ChildrenTable = "nodes" // ChildrenColumn is the table column denoting the children relation/edge. ChildrenColumn = "parent_id" )
Variables ¶
var Columns = []string{ FieldID, FieldValue, FieldParentID, }
Columns holds all SQL columns for node fields.
Functions ¶
func HasChildren ¶
HasChildren applies the HasEdge predicate on the "children" edge.
func HasChildrenWith ¶
HasChildrenWith applies the HasEdge predicate on the "children" edge with a given conditions (other predicates).
func HasParentWith ¶
HasParentWith applies the HasEdge predicate on the "parent" edge with a given conditions (other predicates).
func ParentID ¶
ParentID applies equality check predicate on the "parent_id" field. It's identical to ParentIDEQ.
func ParentIDEQ ¶
ParentIDEQ applies the EQ predicate on the "parent_id" field.
func ParentIDIn ¶
ParentIDIn applies the In predicate on the "parent_id" field.
func ParentIDIsNil ¶
ParentIDIsNil applies the IsNil predicate on the "parent_id" field.
func ParentIDNEQ ¶
ParentIDNEQ applies the NEQ predicate on the "parent_id" field.
func ParentIDNotIn ¶
ParentIDNotIn applies the NotIn predicate on the "parent_id" field.
func ParentIDNotNil ¶
ParentIDNotNil applies the NotNil predicate on the "parent_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Value ¶
Value applies equality check predicate on the "value" field. It's identical to ValueEQ.
func ValueNotIn ¶
ValueNotIn applies the NotIn predicate on the "value" field.
Types ¶
This section is empty.