Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ClassLeader) predicate.ClassLeader
- func HasClass() predicate.ClassLeader
- func HasClassWith(preds ...predicate.Class) predicate.ClassLeader
- func HasStudent() predicate.ClassLeader
- func HasStudentWith(preds ...predicate.Student) predicate.ClassLeader
- func ID(id int) predicate.ClassLeader
- func IDEQ(id int) predicate.ClassLeader
- func IDGT(id int) predicate.ClassLeader
- func IDGTE(id int) predicate.ClassLeader
- func IDIn(ids ...int) predicate.ClassLeader
- func IDLT(id int) predicate.ClassLeader
- func IDLTE(id int) predicate.ClassLeader
- func IDNEQ(id int) predicate.ClassLeader
- func IDNotIn(ids ...int) predicate.ClassLeader
- func Not(p predicate.ClassLeader) predicate.ClassLeader
- func Or(predicates ...predicate.ClassLeader) predicate.ClassLeader
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the classleader type in the database. Label = "class_leader" // FieldID holds the string denoting the id field in the database. FieldID = "id" // EdgeClass holds the string denoting the class edge name in mutations. EdgeClass = "class" // EdgeStudent holds the string denoting the student edge name in mutations. EdgeStudent = "student" // Table holds the table name of the classleader in the database. Table = "class_leaders" // ClassTable is the table that holds the class relation/edge. ClassTable = "classes" // ClassInverseTable is the table name for the Class entity. // It exists in this package in order to avoid circular dependency with the "class" package. ClassInverseTable = "classes" // ClassColumn is the table column denoting the class relation/edge. ClassColumn = "class_leader_class" // StudentTable is the table that holds the student relation/edge. StudentTable = "students" // StudentInverseTable is the table name for the Student entity. // It exists in this package in order to avoid circular dependency with the "student" package. StudentInverseTable = "students" // StudentColumn is the table column denoting the student relation/edge. StudentColumn = "class_leader_student" )
Variables ¶
var Columns = []string{ FieldID, }
Columns holds all SQL columns for classleader fields.
Functions ¶
func And ¶
func And(predicates ...predicate.ClassLeader) predicate.ClassLeader
And groups predicates with the AND operator between them.
func HasClass ¶
func HasClass() predicate.ClassLeader
HasClass applies the HasEdge predicate on the "class" edge.
func HasClassWith ¶
func HasClassWith(preds ...predicate.Class) predicate.ClassLeader
HasClassWith applies the HasEdge predicate on the "class" edge with a given conditions (other predicates).
func HasStudent ¶
func HasStudent() predicate.ClassLeader
HasStudent applies the HasEdge predicate on the "student" edge.
func HasStudentWith ¶
func HasStudentWith(preds ...predicate.Student) predicate.ClassLeader
HasStudentWith applies the HasEdge predicate on the "student" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.ClassLeader
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.ClassLeader
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.ClassLeader
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.ClassLeader
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.ClassLeader
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.ClassLeader) predicate.ClassLeader
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ClassLeader) predicate.ClassLeader
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 ¶
This section is empty.