Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.GalleryNode) predicate.GalleryNode
- func HasNode() predicate.GalleryNode
- func HasNodeWith(preds ...predicate.Node) predicate.GalleryNode
- func ID(id int) predicate.GalleryNode
- func IDEQ(id int) predicate.GalleryNode
- func IDGT(id int) predicate.GalleryNode
- func IDGTE(id int) predicate.GalleryNode
- func IDIn(ids ...int) predicate.GalleryNode
- func IDLT(id int) predicate.GalleryNode
- func IDLTE(id int) predicate.GalleryNode
- func IDNEQ(id int) predicate.GalleryNode
- func IDNotIn(ids ...int) predicate.GalleryNode
- func Nid(v int) predicate.GalleryNode
- func NidEQ(v int) predicate.GalleryNode
- func NidIn(vs ...int) predicate.GalleryNode
- func NidNEQ(v int) predicate.GalleryNode
- func NidNotIn(vs ...int) predicate.GalleryNode
- func Not(p predicate.GalleryNode) predicate.GalleryNode
- func Or(predicates ...predicate.GalleryNode) predicate.GalleryNode
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the gallerynode type in the database. Label = "gallery_node" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldNid holds the string denoting the nid field in the database. FieldNid = "nid" // EdgeNode holds the string denoting the node edge name in mutations. EdgeNode = "node" // Table holds the table name of the gallerynode in the database. Table = "gallery_nodes" // NodeTable is the table that holds the node relation/edge. NodeTable = "gallery_nodes" // NodeInverseTable is the table name for the Node entity. // It exists in this package in order to avoid circular dependency with the "node" package. NodeInverseTable = "nodes" // NodeColumn is the table column denoting the node relation/edge. NodeColumn = "nid" )
Variables ¶
var Columns = []string{ FieldID, FieldNid, }
Columns holds all SQL columns for gallerynode fields.
Functions ¶
func And ¶
func And(predicates ...predicate.GalleryNode) predicate.GalleryNode
And groups predicates with the AND operator between them.
func HasNode ¶
func HasNode() predicate.GalleryNode
HasNode applies the HasEdge predicate on the "node" edge.
func HasNodeWith ¶
func HasNodeWith(preds ...predicate.Node) predicate.GalleryNode
HasNodeWith applies the HasEdge predicate on the "node" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.GalleryNode
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.GalleryNode
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.GalleryNode
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.GalleryNode
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.GalleryNode
IDNotIn applies the NotIn predicate on the ID field.
func Nid ¶
func Nid(v int) predicate.GalleryNode
Nid applies equality check predicate on the "nid" field. It's identical to NidEQ.
func NidEQ ¶
func NidEQ(v int) predicate.GalleryNode
NidEQ applies the EQ predicate on the "nid" field.
func NidIn ¶
func NidIn(vs ...int) predicate.GalleryNode
NidIn applies the In predicate on the "nid" field.
func NidNEQ ¶
func NidNEQ(v int) predicate.GalleryNode
NidNEQ applies the NEQ predicate on the "nid" field.
func NidNotIn ¶
func NidNotIn(vs ...int) predicate.GalleryNode
NidNotIn applies the NotIn predicate on the "nid" field.
func Not ¶
func Not(p predicate.GalleryNode) predicate.GalleryNode
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.GalleryNode) predicate.GalleryNode
Or groups predicates with the OR operator between them.
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 GalleryNode queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByNid ¶
func ByNid(opts ...sql.OrderTermOption) OrderOption
ByNid orders the results by the nid field.
func ByNodeField ¶
func ByNodeField(field string, opts ...sql.OrderTermOption) OrderOption
ByNodeField orders the results by node field.