Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.NodeList) predicate.NodeList
- func HasDocument() predicate.NodeList
- func HasDocumentWith(preds ...predicate.Document) predicate.NodeList
- func HasNodes() predicate.NodeList
- func HasNodesWith(preds ...predicate.Node) predicate.NodeList
- func ID(id int) predicate.NodeList
- func IDEQ(id int) predicate.NodeList
- func IDGT(id int) predicate.NodeList
- func IDGTE(id int) predicate.NodeList
- func IDIn(ids ...int) predicate.NodeList
- func IDLT(id int) predicate.NodeList
- func IDLTE(id int) predicate.NodeList
- func IDNEQ(id int) predicate.NodeList
- func IDNotIn(ids ...int) predicate.NodeList
- func Not(p predicate.NodeList) predicate.NodeList
- func Or(predicates ...predicate.NodeList) predicate.NodeList
- func ValidColumn(column string) bool
- type OrderOption
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 ¶
View Source
var Columns = []string{ FieldID, FieldRootElements, }
Columns holds all SQL columns for nodelist fields.
Functions ¶
func HasDocument ¶
HasDocument applies the HasEdge predicate on the "document" edge.
func HasDocumentWith ¶
HasDocumentWith applies the HasEdge predicate on the "document" edge with a given conditions (other predicates).
func HasNodesWith ¶
HasNodesWith applies the HasEdge predicate on the "nodes" edge with a given conditions (other predicates).
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.
Click to show internal directories.
Click to hide internal directories.