Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.NodeList) predicate.NodeList
- func DocumentID(v string) predicate.NodeList
- func DocumentIDContains(v string) predicate.NodeList
- func DocumentIDContainsFold(v string) predicate.NodeList
- func DocumentIDEQ(v string) predicate.NodeList
- func DocumentIDEqualFold(v string) predicate.NodeList
- func DocumentIDGT(v string) predicate.NodeList
- func DocumentIDGTE(v string) predicate.NodeList
- func DocumentIDHasPrefix(v string) predicate.NodeList
- func DocumentIDHasSuffix(v string) predicate.NodeList
- func DocumentIDIn(vs ...string) predicate.NodeList
- func DocumentIDLT(v string) predicate.NodeList
- func DocumentIDLTE(v string) predicate.NodeList
- func DocumentIDNEQ(v string) predicate.NodeList
- func DocumentIDNotIn(vs ...string) 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
- func ByDocumentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByDocumentID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNodes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByNodesCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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" // FieldDocumentID holds the string denoting the document_id field in the database. FieldDocumentID = "document_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. The primary key declared below. NodesTable = "node_list_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" // DocumentTable is the table that holds the document relation/edge. DocumentTable = "node_lists" // 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 = "document_id" )
Variables ¶
var Columns = []string{ FieldID, FieldDocumentID, FieldRootElements, }
Columns holds all SQL columns for nodelist fields.
var ( // NodesPrimaryKey and NodesColumn2 are the table columns denoting the // primary key for the nodes relation (M2M). NodesPrimaryKey = []string{"node_list_id", "node_id"} )
Functions ¶
func DocumentID ¶
DocumentID applies equality check predicate on the "document_id" field. It's identical to DocumentIDEQ.
func DocumentIDContains ¶
DocumentIDContains applies the Contains predicate on the "document_id" field.
func DocumentIDContainsFold ¶
DocumentIDContainsFold applies the ContainsFold predicate on the "document_id" field.
func DocumentIDEQ ¶
DocumentIDEQ applies the EQ predicate on the "document_id" field.
func DocumentIDEqualFold ¶
DocumentIDEqualFold applies the EqualFold predicate on the "document_id" field.
func DocumentIDGT ¶
DocumentIDGT applies the GT predicate on the "document_id" field.
func DocumentIDGTE ¶
DocumentIDGTE applies the GTE predicate on the "document_id" field.
func DocumentIDHasPrefix ¶
DocumentIDHasPrefix applies the HasPrefix predicate on the "document_id" field.
func DocumentIDHasSuffix ¶
DocumentIDHasSuffix applies the HasSuffix predicate on the "document_id" field.
func DocumentIDIn ¶
DocumentIDIn applies the In predicate on the "document_id" field.
func DocumentIDLT ¶
DocumentIDLT applies the LT predicate on the "document_id" field.
func DocumentIDLTE ¶
DocumentIDLTE applies the LTE predicate on the "document_id" field.
func DocumentIDNEQ ¶
DocumentIDNEQ applies the NEQ predicate on the "document_id" field.
func DocumentIDNotIn ¶
DocumentIDNotIn applies the NotIn predicate on the "document_id" field.
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 ByDocumentID ¶
func ByDocumentID(opts ...sql.OrderTermOption) OrderOption
ByDocumentID orders the results by the document_id 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.