Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Tutor) predicate.Tutor
- func HasClass() predicate.Tutor
- func HasClassWith(preds ...predicate.Class) predicate.Tutor
- func HasStudent() predicate.Tutor
- func HasStudentWith(preds ...predicate.Student) predicate.Tutor
- func ID(id int) predicate.Tutor
- func IDEQ(id int) predicate.Tutor
- func IDGT(id int) predicate.Tutor
- func IDGTE(id int) predicate.Tutor
- func IDIn(ids ...int) predicate.Tutor
- func IDLT(id int) predicate.Tutor
- func IDLTE(id int) predicate.Tutor
- func IDNEQ(id int) predicate.Tutor
- func IDNotIn(ids ...int) predicate.Tutor
- func Not(p predicate.Tutor) predicate.Tutor
- func Or(predicates ...predicate.Tutor) predicate.Tutor
- func ValidColumn(column string) bool
Constants ¶
View Source
const ( // Label holds the string label denoting the tutor type in the database. Label = "tutor" // 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 tutor in the database. Table = "tutors" // 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 = "tutor_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 = "tutor_student" )
Variables ¶
View Source
var Columns = []string{ FieldID, }
Columns holds all SQL columns for tutor fields.
Functions ¶
func HasClassWith ¶
HasClassWith applies the HasEdge predicate on the "class" edge with a given conditions (other predicates).
func HasStudent ¶
HasStudent applies the HasEdge predicate on the "student" edge.
func HasStudentWith ¶
HasStudentWith applies the HasEdge predicate on the "student" edge with a given conditions (other predicates).
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.