ent: github.com/facebookincubator/ent/entc/integration/ent/node Index | Files

package node

import "github.com/facebookincubator/ent/entc/integration/ent/node"

Index

Package Files

node.go where.go

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 vertex property in the database.
    FieldValue = "value"

    // Table holds the table name of the node in the database.
    Table = "nodes"
    // PrevTable is the table the holds the prev relation/edge.
    PrevTable = "nodes"
    // PrevColumn is the table column denoting the prev relation/edge.
    PrevColumn = "prev_id"
    // NextTable is the table the holds the next relation/edge.
    NextTable = "nodes"
    // NextColumn is the table column denoting the next relation/edge.
    NextColumn = "prev_id"

    // PrevInverseLabel holds the string label denoting the prev inverse edge type in the database.
    PrevInverseLabel = "node_next"
    // NextLabel holds the string label denoting the next edge type in the database.
    NextLabel = "node_next"
)

Variables

var Columns = []string{
    FieldID,
    FieldValue,
}

Columns holds all SQL columns are node fields.

func And Uses

func And(predicates ...predicate.Node) predicate.Node

And groups list of predicates with the AND operator between them.

func HasNext Uses

func HasNext() predicate.Node

HasNext applies the HasEdge predicate on the "next" edge.

func HasNextWith Uses

func HasNextWith(preds ...predicate.Node) predicate.Node

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

func HasPrev Uses

func HasPrev() predicate.Node

HasPrev applies the HasEdge predicate on the "prev" edge.

func HasPrevWith Uses

func HasPrevWith(preds ...predicate.Node) predicate.Node

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

func ID Uses

func ID(id string) predicate.Node

ID filters vertices based on their identifier.

func IDEQ Uses

func IDEQ(id string) predicate.Node

IDEQ applies the EQ predicate on the ID field.

func IDGT Uses

func IDGT(id string) predicate.Node

IDGT applies the GT predicate on the ID field.

func IDGTE Uses

func IDGTE(id string) predicate.Node

IDGTE applies the GTE predicate on the ID field.

func IDIn Uses

func IDIn(ids ...string) predicate.Node

IDIn applies the In predicate on the ID field.

func IDLT Uses

func IDLT(id string) predicate.Node

IDLT applies the LT predicate on the ID field.

func IDLTE Uses

func IDLTE(id string) predicate.Node

IDLTE applies the LTE predicate on the ID field.

func IDNEQ Uses

func IDNEQ(id string) predicate.Node

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn Uses

func IDNotIn(ids ...string) predicate.Node

IDNotIn applies the NotIn predicate on the ID field.

func Not Uses

func Not(p predicate.Node) predicate.Node

Not applies the not operator on the given predicate.

func Or Uses

func Or(predicates ...predicate.Node) predicate.Node

Or groups list of predicates with the OR operator between them.

func Value Uses

func Value(v int) predicate.Node

Value applies equality check predicate on the "value" field. It's identical to ValueEQ.

func ValueEQ Uses

func ValueEQ(v int) predicate.Node

ValueEQ applies the EQ predicate on the "value" field.

func ValueGT Uses

func ValueGT(v int) predicate.Node

ValueGT applies the GT predicate on the "value" field.

func ValueGTE Uses

func ValueGTE(v int) predicate.Node

ValueGTE applies the GTE predicate on the "value" field.

func ValueIn Uses

func ValueIn(vs ...int) predicate.Node

ValueIn applies the In predicate on the "value" field.

func ValueIsNil Uses

func ValueIsNil() predicate.Node

ValueIsNil applies the IsNil predicate on the "value" field.

func ValueLT Uses

func ValueLT(v int) predicate.Node

ValueLT applies the LT predicate on the "value" field.

func ValueLTE Uses

func ValueLTE(v int) predicate.Node

ValueLTE applies the LTE predicate on the "value" field.

func ValueNEQ Uses

func ValueNEQ(v int) predicate.Node

ValueNEQ applies the NEQ predicate on the "value" field.

func ValueNotIn Uses

func ValueNotIn(vs ...int) predicate.Node

ValueNotIn applies the NotIn predicate on the "value" field.

func ValueNotNil Uses

func ValueNotNil() predicate.Node

ValueNotNil applies the NotNil predicate on the "value" field.

Package node imports 6 packages (graph) and is imported by 1 packages. Updated 2019-11-19. Refresh now. Tools for package owners.