Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Node) predicate.Node
- func HasNext() predicate.Node
- func HasNextWith(preds ...predicate.Node) predicate.Node
- func HasPrev() predicate.Node
- func HasPrevWith(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 PrevID(v int) predicate.Node
- func PrevIDEQ(v int) predicate.Node
- func PrevIDIn(vs ...int) predicate.Node
- func PrevIDIsNil() predicate.Node
- func PrevIDNEQ(v int) predicate.Node
- func PrevIDNotIn(vs ...int) predicate.Node
- func PrevIDNotNil() 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" // FieldPrevID holds the string denoting the prev_id field in the database. FieldPrevID = "prev_id" // EdgePrev holds the string denoting the prev edge name in mutations. EdgePrev = "prev" // EdgeNext holds the string denoting the next edge name in mutations. EdgeNext = "next" // Table holds the table name of the node in the database. Table = "nodes" // PrevTable is the table that holds the prev relation/edge. PrevTable = "nodes" // PrevColumn is the table column denoting the prev relation/edge. PrevColumn = "prev_id" // NextTable is the table that holds the next relation/edge. NextTable = "nodes" // NextColumn is the table column denoting the next relation/edge. NextColumn = "prev_id" )
Variables ¶
var Columns = []string{ FieldID, FieldValue, FieldPrevID, }
Columns holds all SQL columns for node fields.
var ( // DefaultValue holds the default value on creation for the "value" field. DefaultValue int )
Functions ¶
func HasNextWith ¶
HasNextWith applies the HasEdge predicate on the "next" edge with a given conditions (other predicates).
func HasPrevWith ¶
HasPrevWith applies the HasEdge predicate on the "prev" edge with a given conditions (other predicates).
func PrevID ¶
PrevID applies equality check predicate on the "prev_id" field. It's identical to PrevIDEQ.
func PrevIDIsNil ¶
PrevIDIsNil applies the IsNil predicate on the "prev_id" field.
func PrevIDNotIn ¶
PrevIDNotIn applies the NotIn predicate on the "prev_id" field.
func PrevIDNotNil ¶
PrevIDNotNil applies the NotNil predicate on the "prev_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.