nodelist

package
v0.0.0-...-7acab80 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the nodelist type in the database.
	Label = "node_list"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldRootElements holds the string denoting the root_elements field in the database.
	FieldRootElements = "root_elements"
	// EdgeNodes holds the string denoting the nodes edge name in mutations.
	EdgeNodes = "nodes"
	// EdgeDocument holds the string denoting the document edge name in mutations.
	EdgeDocument = "document"
	// Table holds the table name of the nodelist in the database.
	Table = "node_lists"
	// NodesTable is the table that holds the nodes relation/edge.
	NodesTable = "nodes"
	// NodesInverseTable is the table name for the Node entity.
	// It exists in this package in order to avoid circular dependency with the "node" package.
	NodesInverseTable = "nodes"
	// NodesColumn is the table column denoting the nodes relation/edge.
	NodesColumn = "node_list_nodes"
	// DocumentTable is the table that holds the document relation/edge.
	DocumentTable = "documents"
	// DocumentInverseTable is the table name for the Document entity.
	// It exists in this package in order to avoid circular dependency with the "document" package.
	DocumentInverseTable = "documents"
	// DocumentColumn is the table column denoting the document relation/edge.
	DocumentColumn = "node_list_document"
)

Variables

Columns holds all SQL columns for nodelist fields.

Functions

func And

func And(predicates ...predicate.NodeList) predicate.NodeList

And groups predicates with the AND operator between them.

func HasDocument

func HasDocument() predicate.NodeList

HasDocument applies the HasEdge predicate on the "document" edge.

func HasDocumentWith

func HasDocumentWith(preds ...predicate.Document) predicate.NodeList

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

func HasNodes

func HasNodes() predicate.NodeList

HasNodes applies the HasEdge predicate on the "nodes" edge.

func HasNodesWith

func HasNodesWith(preds ...predicate.Node) predicate.NodeList

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

func ID

func ID(id int) predicate.NodeList

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.NodeList

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.NodeList

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.NodeList

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.NodeList

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.NodeList

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.NodeList

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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.NodeList) predicate.NodeList

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the NodeList queries.

func ByDocumentField

func ByDocumentField(field string, opts ...sql.OrderTermOption) OrderOption

ByDocumentField orders the results by document field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByNodes

func ByNodes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByNodes orders the results by nodes terms.

func ByNodesCount

func ByNodesCount(opts ...sql.OrderTermOption) OrderOption

ByNodesCount orders the results by nodes count.

Jump to

Keyboard shortcuts

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