node

package
v0.11.10 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// 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 = "node_next"
	// NextTable is the table that holds the next relation/edge.
	NextTable = "nodes"
	// NextColumn is the table column denoting the next relation/edge.
	NextColumn = "node_next"
)

Variables

Columns holds all SQL columns for node fields.

View Source
var ForeignKeys = []string{
	"node_next",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "nodes" table and are not defined as standalone fields in the schema.

View Source
var (
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
)

Functions

func And

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

And groups predicates with the AND operator between them.

func HasNext

func HasNext() predicate.Node

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

func HasNextWith

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

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

func HasPrev

func HasPrev() predicate.Node

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

func HasPrevWith

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

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

func ID

func ID(id int) predicate.Node

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Node

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Node

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Node

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Node

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Node

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Node

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

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

Or groups predicates with the OR operator between them.

func UpdatedAt added in v0.11.8

func UpdatedAt(v time.Time) predicate.Node

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ added in v0.11.8

func UpdatedAtEQ(v time.Time) predicate.Node

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT added in v0.11.8

func UpdatedAtGT(v time.Time) predicate.Node

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE added in v0.11.8

func UpdatedAtGTE(v time.Time) predicate.Node

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn added in v0.11.8

func UpdatedAtIn(vs ...time.Time) predicate.Node

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtIsNil added in v0.11.8

func UpdatedAtIsNil() predicate.Node

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT added in v0.11.8

func UpdatedAtLT(v time.Time) predicate.Node

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE added in v0.11.8

func UpdatedAtLTE(v time.Time) predicate.Node

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ added in v0.11.8

func UpdatedAtNEQ(v time.Time) predicate.Node

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn added in v0.11.8

func UpdatedAtNotIn(vs ...time.Time) predicate.Node

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedAtNotNil added in v0.11.8

func UpdatedAtNotNil() predicate.Node

UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

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

func Value

func Value(v int) predicate.Node

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

func ValueEQ

func ValueEQ(v int) predicate.Node

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

func ValueGT

func ValueGT(v int) predicate.Node

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

func ValueGTE

func ValueGTE(v int) predicate.Node

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

func ValueIn

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

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

func ValueIsNil

func ValueIsNil() predicate.Node

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

func ValueLT

func ValueLT(v int) predicate.Node

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

func ValueLTE

func ValueLTE(v int) predicate.Node

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

func ValueNEQ

func ValueNEQ(v int) predicate.Node

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

func ValueNotIn

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

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

func ValueNotNil

func ValueNotNil() predicate.Node

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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