Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Class) predicate.Class
- func Code(v string) predicate.Class
- func CodeContains(v string) predicate.Class
- func CodeContainsFold(v string) predicate.Class
- func CodeEQ(v string) predicate.Class
- func CodeEqualFold(v string) predicate.Class
- func CodeGT(v string) predicate.Class
- func CodeGTE(v string) predicate.Class
- func CodeHasPrefix(v string) predicate.Class
- func CodeHasSuffix(v string) predicate.Class
- func CodeIn(vs ...string) predicate.Class
- func CodeLT(v string) predicate.Class
- func CodeLTE(v string) predicate.Class
- func CodeNEQ(v string) predicate.Class
- func CodeNotIn(vs ...string) predicate.Class
- func Description(v string) predicate.Class
- func DescriptionContains(v string) predicate.Class
- func DescriptionContainsFold(v string) predicate.Class
- func DescriptionEQ(v string) predicate.Class
- func DescriptionEqualFold(v string) predicate.Class
- func DescriptionGT(v string) predicate.Class
- func DescriptionGTE(v string) predicate.Class
- func DescriptionHasPrefix(v string) predicate.Class
- func DescriptionHasSuffix(v string) predicate.Class
- func DescriptionIn(vs ...string) predicate.Class
- func DescriptionLT(v string) predicate.Class
- func DescriptionLTE(v string) predicate.Class
- func DescriptionNEQ(v string) predicate.Class
- func DescriptionNotIn(vs ...string) predicate.Class
- func HasCampus() predicate.Class
- func HasCampusWith(preds ...predicate.Campus) predicate.Class
- func HasClassLeader() predicate.Class
- func HasClassLeaderWith(preds ...predicate.ClassLeader) predicate.Class
- func HasDepartment() predicate.Class
- func HasDepartmentWith(preds ...predicate.Department) predicate.Class
- func HasMajor() predicate.Class
- func HasMajorDirection() predicate.Class
- func HasMajorDirectionWith(preds ...predicate.MajorDirection) predicate.Class
- func HasMajorWith(preds ...predicate.Major) predicate.Class
- func HasStudent() predicate.Class
- func HasStudentWith(preds ...predicate.Student) predicate.Class
- func HasTutor() predicate.Class
- func HasTutorWith(preds ...predicate.Tutor) predicate.Class
- func ID(id int) predicate.Class
- func IDEQ(id int) predicate.Class
- func IDGT(id int) predicate.Class
- func IDGTE(id int) predicate.Class
- func IDIn(ids ...int) predicate.Class
- func IDLT(id int) predicate.Class
- func IDLTE(id int) predicate.Class
- func IDNEQ(id int) predicate.Class
- func IDNotIn(ids ...int) predicate.Class
- func Name(v string) predicate.Class
- func NameContains(v string) predicate.Class
- func NameContainsFold(v string) predicate.Class
- func NameEQ(v string) predicate.Class
- func NameEqualFold(v string) predicate.Class
- func NameGT(v string) predicate.Class
- func NameGTE(v string) predicate.Class
- func NameHasPrefix(v string) predicate.Class
- func NameHasSuffix(v string) predicate.Class
- func NameIn(vs ...string) predicate.Class
- func NameLT(v string) predicate.Class
- func NameLTE(v string) predicate.Class
- func NameNEQ(v string) predicate.Class
- func NameNotIn(vs ...string) predicate.Class
- func Not(p predicate.Class) predicate.Class
- func Or(predicates ...predicate.Class) predicate.Class
- func Type(v string) predicate.Class
- func TypeContains(v string) predicate.Class
- func TypeContainsFold(v string) predicate.Class
- func TypeEQ(v string) predicate.Class
- func TypeEqualFold(v string) predicate.Class
- func TypeGT(v string) predicate.Class
- func TypeGTE(v string) predicate.Class
- func TypeHasPrefix(v string) predicate.Class
- func TypeHasSuffix(v string) predicate.Class
- func TypeIn(vs ...string) predicate.Class
- func TypeLT(v string) predicate.Class
- func TypeLTE(v string) predicate.Class
- func TypeNEQ(v string) predicate.Class
- func TypeNotIn(vs ...string) predicate.Class
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the class type in the database. Label = "class" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldCode holds the string denoting the code field in the database. FieldCode = "code" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldType holds the string denoting the type field in the database. FieldType = "type" // EdgeMajor holds the string denoting the major edge name in mutations. EdgeMajor = "major" // EdgeDepartment holds the string denoting the department edge name in mutations. EdgeDepartment = "department" // EdgeCampus holds the string denoting the campus edge name in mutations. EdgeCampus = "campus" // EdgeStudent holds the string denoting the student edge name in mutations. EdgeStudent = "student" // EdgeClassLeader holds the string denoting the class_leader edge name in mutations. EdgeClassLeader = "class_leader" // EdgeTutor holds the string denoting the tutor edge name in mutations. EdgeTutor = "tutor" // EdgeMajorDirection holds the string denoting the major_direction edge name in mutations. EdgeMajorDirection = "major_direction" // Table holds the table name of the class in the database. Table = "classes" // MajorTable is the table that holds the major relation/edge. MajorTable = "classes" // MajorInverseTable is the table name for the Major entity. // It exists in this package in order to avoid circular dependency with the "major" package. MajorInverseTable = "majors" // MajorColumn is the table column denoting the major relation/edge. MajorColumn = "class_major" // DepartmentTable is the table that holds the department relation/edge. DepartmentTable = "classes" // DepartmentInverseTable is the table name for the Department entity. // It exists in this package in order to avoid circular dependency with the "department" package. DepartmentInverseTable = "departments" // DepartmentColumn is the table column denoting the department relation/edge. DepartmentColumn = "class_department" // CampusTable is the table that holds the campus relation/edge. CampusTable = "classes" // CampusInverseTable is the table name for the Campus entity. // It exists in this package in order to avoid circular dependency with the "campus" package. CampusInverseTable = "campus" // CampusColumn is the table column denoting the campus relation/edge. CampusColumn = "campus_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 = "student_class" // ClassLeaderTable is the table that holds the class_leader relation/edge. ClassLeaderTable = "classes" // ClassLeaderInverseTable is the table name for the ClassLeader entity. // It exists in this package in order to avoid circular dependency with the "classleader" package. ClassLeaderInverseTable = "class_leaders" // ClassLeaderColumn is the table column denoting the class_leader relation/edge. ClassLeaderColumn = "class_leader_class" // TutorTable is the table that holds the tutor relation/edge. TutorTable = "classes" // TutorInverseTable is the table name for the Tutor entity. // It exists in this package in order to avoid circular dependency with the "tutor" package. TutorInverseTable = "tutors" // TutorColumn is the table column denoting the tutor relation/edge. TutorColumn = "tutor_class" // MajorDirectionTable is the table that holds the major_direction relation/edge. MajorDirectionTable = "classes" // MajorDirectionInverseTable is the table name for the MajorDirection entity. // It exists in this package in order to avoid circular dependency with the "majordirection" package. MajorDirectionInverseTable = "major_directions" // MajorDirectionColumn is the table column denoting the major_direction relation/edge. MajorDirectionColumn = "major_direction_class" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldCode, FieldDescription, FieldType, }
Columns holds all SQL columns for class fields.
var ForeignKeys = []string{
"campus_class",
"class_major",
"class_department",
"class_leader_class",
"major_direction_class",
"tutor_class",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "classes" table and are not defined as standalone fields in the schema.
Functions ¶
func CodeContains ¶
CodeContains applies the Contains predicate on the "code" field.
func CodeContainsFold ¶
CodeContainsFold applies the ContainsFold predicate on the "code" field.
func CodeEqualFold ¶
CodeEqualFold applies the EqualFold predicate on the "code" field.
func CodeHasPrefix ¶
CodeHasPrefix applies the HasPrefix predicate on the "code" field.
func CodeHasSuffix ¶
CodeHasSuffix applies the HasSuffix predicate on the "code" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func HasCampusWith ¶
HasCampusWith applies the HasEdge predicate on the "campus" edge with a given conditions (other predicates).
func HasClassLeader ¶
HasClassLeader applies the HasEdge predicate on the "class_leader" edge.
func HasClassLeaderWith ¶
func HasClassLeaderWith(preds ...predicate.ClassLeader) predicate.Class
HasClassLeaderWith applies the HasEdge predicate on the "class_leader" edge with a given conditions (other predicates).
func HasDepartment ¶
HasDepartment applies the HasEdge predicate on the "department" edge.
func HasDepartmentWith ¶
func HasDepartmentWith(preds ...predicate.Department) predicate.Class
HasDepartmentWith applies the HasEdge predicate on the "department" edge with a given conditions (other predicates).
func HasMajorDirection ¶
HasMajorDirection applies the HasEdge predicate on the "major_direction" edge.
func HasMajorDirectionWith ¶
func HasMajorDirectionWith(preds ...predicate.MajorDirection) predicate.Class
HasMajorDirectionWith applies the HasEdge predicate on the "major_direction" edge with a given conditions (other predicates).
func HasMajorWith ¶
HasMajorWith applies the HasEdge predicate on the "major" 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 HasTutorWith ¶
HasTutorWith applies the HasEdge predicate on the "tutor" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func TypeContains ¶
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEqualFold ¶
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeHasPrefix ¶
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.