Documentation ¶
Index ¶
- Constants
- Variables
- func Age(v int) predicate.Student
- func AgeEQ(v int) predicate.Student
- func AgeGT(v int) predicate.Student
- func AgeGTE(v int) predicate.Student
- func AgeIn(vs ...int) predicate.Student
- func AgeLT(v int) predicate.Student
- func AgeLTE(v int) predicate.Student
- func AgeNEQ(v int) predicate.Student
- func AgeNotIn(vs ...int) predicate.Student
- func And(predicates ...predicate.Student) predicate.Student
- func Avatar(v []byte) predicate.Student
- func AvatarEQ(v []byte) predicate.Student
- func AvatarGT(v []byte) predicate.Student
- func AvatarGTE(v []byte) predicate.Student
- func AvatarIn(vs ...[]byte) predicate.Student
- func AvatarLT(v []byte) predicate.Student
- func AvatarLTE(v []byte) predicate.Student
- func AvatarNEQ(v []byte) predicate.Student
- func AvatarNotIn(vs ...[]byte) predicate.Student
- func Code(v string) predicate.Student
- func CodeContains(v string) predicate.Student
- func CodeContainsFold(v string) predicate.Student
- func CodeEQ(v string) predicate.Student
- func CodeEqualFold(v string) predicate.Student
- func CodeGT(v string) predicate.Student
- func CodeGTE(v string) predicate.Student
- func CodeHasPrefix(v string) predicate.Student
- func CodeHasSuffix(v string) predicate.Student
- func CodeIn(vs ...string) predicate.Student
- func CodeLT(v string) predicate.Student
- func CodeLTE(v string) predicate.Student
- func CodeNEQ(v string) predicate.Student
- func CodeNotIn(vs ...string) predicate.Student
- func HasCertificate() predicate.Student
- func HasCertificateWith(preds ...predicate.Certificate) predicate.Student
- func HasClass() predicate.Student
- func HasClassLeader() predicate.Student
- func HasClassLeaderWith(preds ...predicate.ClassLeader) predicate.Student
- func HasClassWith(preds ...predicate.Class) predicate.Student
- func HasDepartment() predicate.Student
- func HasDepartmentWith(preds ...predicate.Department) predicate.Student
- func HasEducationLevel() predicate.Student
- func HasEducationLevelWith(preds ...predicate.EducationLevel) predicate.Student
- func HasEnrollmentStatus() predicate.Student
- func HasEnrollmentStatusWith(preds ...predicate.EnrollmentStatus) predicate.Student
- func HasFamilyInfo() predicate.Student
- func HasFamilyInfoWith(preds ...predicate.FamilyInfo) predicate.Student
- func HasMajor() predicate.Student
- func HasMajorWith(preds ...predicate.Major) predicate.Student
- func HasPracticalExperience() predicate.Student
- func HasPracticalExperienceWith(preds ...predicate.PracticalExperience) predicate.Student
- func HasTutor() predicate.Student
- func HasTutorWith(preds ...predicate.Tutor) predicate.Student
- func HasUser() predicate.Student
- func HasUserWith(preds ...predicate.User) predicate.Student
- func ID(id int) predicate.Student
- func IDEQ(id int) predicate.Student
- func IDGT(id int) predicate.Student
- func IDGTE(id int) predicate.Student
- func IDIn(ids ...int) predicate.Student
- func IDLT(id int) predicate.Student
- func IDLTE(id int) predicate.Student
- func IDNEQ(id int) predicate.Student
- func IDNotIn(ids ...int) predicate.Student
- func Name(v string) predicate.Student
- func NameContains(v string) predicate.Student
- func NameContainsFold(v string) predicate.Student
- func NameEQ(v string) predicate.Student
- func NameEqualFold(v string) predicate.Student
- func NameGT(v string) predicate.Student
- func NameGTE(v string) predicate.Student
- func NameHasPrefix(v string) predicate.Student
- func NameHasSuffix(v string) predicate.Student
- func NameIn(vs ...string) predicate.Student
- func NameLT(v string) predicate.Student
- func NameLTE(v string) predicate.Student
- func NameNEQ(v string) predicate.Student
- func NameNotIn(vs ...string) predicate.Student
- func Not(p predicate.Student) predicate.Student
- func Or(predicates ...predicate.Student) predicate.Student
- func Sex(v string) predicate.Student
- func SexContains(v string) predicate.Student
- func SexContainsFold(v string) predicate.Student
- func SexEQ(v string) predicate.Student
- func SexEqualFold(v string) predicate.Student
- func SexGT(v string) predicate.Student
- func SexGTE(v string) predicate.Student
- func SexHasPrefix(v string) predicate.Student
- func SexHasSuffix(v string) predicate.Student
- func SexIn(vs ...string) predicate.Student
- func SexLT(v string) predicate.Student
- func SexLTE(v string) predicate.Student
- func SexNEQ(v string) predicate.Student
- func SexNotIn(vs ...string) predicate.Student
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the student type in the database. Label = "student" // 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" // FieldAge holds the string denoting the age field in the database. FieldAge = "age" // FieldSex holds the string denoting the sex field in the database. FieldSex = "sex" // FieldCode holds the string denoting the code field in the database. FieldCode = "code" // FieldAvatar holds the string denoting the avatar field in the database. FieldAvatar = "avatar" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeDepartment holds the string denoting the department edge name in mutations. EdgeDepartment = "department" // EdgeMajor holds the string denoting the major edge name in mutations. EdgeMajor = "major" // EdgeClass holds the string denoting the class edge name in mutations. EdgeClass = "class" // 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" // EdgeCertificate holds the string denoting the certificate edge name in mutations. EdgeCertificate = "certificate" // EdgeEducationLevel holds the string denoting the education_level edge name in mutations. EdgeEducationLevel = "education_level" // EdgeEnrollmentStatus holds the string denoting the enrollment_status edge name in mutations. EdgeEnrollmentStatus = "enrollment_status" // EdgeFamilyInfo holds the string denoting the family_info edge name in mutations. EdgeFamilyInfo = "family_info" // EdgePracticalExperience holds the string denoting the practical_experience edge name in mutations. EdgePracticalExperience = "practical_experience" // Table holds the table name of the student in the database. Table = "students" // UserTable is the table that holds the user relation/edge. UserTable = "users" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "student_user" // DepartmentTable is the table that holds the department relation/edge. DepartmentTable = "students" // 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 = "student_department" // MajorTable is the table that holds the major relation/edge. MajorTable = "students" // 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 = "student_major" // ClassTable is the table that holds the class relation/edge. ClassTable = "students" // 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 = "student_class" // ClassLeaderTable is the table that holds the class_leader relation/edge. ClassLeaderTable = "students" // 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_student" // TutorTable is the table that holds the tutor relation/edge. TutorTable = "students" // 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_student" // CertificateTable is the table that holds the certificate relation/edge. CertificateTable = "certificates" // CertificateInverseTable is the table name for the Certificate entity. // It exists in this package in order to avoid circular dependency with the "certificate" package. CertificateInverseTable = "certificates" // CertificateColumn is the table column denoting the certificate relation/edge. CertificateColumn = "certificate_student" // EducationLevelTable is the table that holds the education_level relation/edge. EducationLevelTable = "education_levels" // EducationLevelInverseTable is the table name for the EducationLevel entity. // It exists in this package in order to avoid circular dependency with the "educationlevel" package. EducationLevelInverseTable = "education_levels" // EducationLevelColumn is the table column denoting the education_level relation/edge. EducationLevelColumn = "education_level_student" // EnrollmentStatusTable is the table that holds the enrollment_status relation/edge. EnrollmentStatusTable = "enrollment_status" // EnrollmentStatusInverseTable is the table name for the EnrollmentStatus entity. // It exists in this package in order to avoid circular dependency with the "enrollmentstatus" package. EnrollmentStatusInverseTable = "enrollment_status" // EnrollmentStatusColumn is the table column denoting the enrollment_status relation/edge. EnrollmentStatusColumn = "enrollment_status_student" // FamilyInfoTable is the table that holds the family_info relation/edge. FamilyInfoTable = "family_infos" // FamilyInfoInverseTable is the table name for the FamilyInfo entity. // It exists in this package in order to avoid circular dependency with the "familyinfo" package. FamilyInfoInverseTable = "family_infos" // FamilyInfoColumn is the table column denoting the family_info relation/edge. FamilyInfoColumn = "family_info_student" // PracticalExperienceTable is the table that holds the practical_experience relation/edge. PracticalExperienceTable = "practical_experiences" // PracticalExperienceInverseTable is the table name for the PracticalExperience entity. // It exists in this package in order to avoid circular dependency with the "practicalexperience" package. PracticalExperienceInverseTable = "practical_experiences" // PracticalExperienceColumn is the table column denoting the practical_experience relation/edge. PracticalExperienceColumn = "practical_experience_student" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldAge, FieldSex, FieldCode, FieldAvatar, }
Columns holds all SQL columns for student fields.
var ForeignKeys = []string{
"class_leader_student",
"student_department",
"student_major",
"student_class",
"tutor_student",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "students" table and are not defined as standalone fields in the schema.
Functions ¶
func Avatar ¶
Avatar applies equality check predicate on the "avatar" field. It's identical to AvatarEQ.
func AvatarNotIn ¶
AvatarNotIn applies the NotIn predicate on the "avatar" field.
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 HasCertificate ¶
HasCertificate applies the HasEdge predicate on the "certificate" edge.
func HasCertificateWith ¶
func HasCertificateWith(preds ...predicate.Certificate) predicate.Student
HasCertificateWith applies the HasEdge predicate on the "certificate" 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.Student
HasClassLeaderWith applies the HasEdge predicate on the "class_leader" edge with a given conditions (other predicates).
func HasClassWith ¶
HasClassWith applies the HasEdge predicate on the "class" 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.Student
HasDepartmentWith applies the HasEdge predicate on the "department" edge with a given conditions (other predicates).
func HasEducationLevel ¶
HasEducationLevel applies the HasEdge predicate on the "education_level" edge.
func HasEducationLevelWith ¶
func HasEducationLevelWith(preds ...predicate.EducationLevel) predicate.Student
HasEducationLevelWith applies the HasEdge predicate on the "education_level" edge with a given conditions (other predicates).
func HasEnrollmentStatus ¶
HasEnrollmentStatus applies the HasEdge predicate on the "enrollment_status" edge.
func HasEnrollmentStatusWith ¶
func HasEnrollmentStatusWith(preds ...predicate.EnrollmentStatus) predicate.Student
HasEnrollmentStatusWith applies the HasEdge predicate on the "enrollment_status" edge with a given conditions (other predicates).
func HasFamilyInfo ¶
HasFamilyInfo applies the HasEdge predicate on the "family_info" edge.
func HasFamilyInfoWith ¶
func HasFamilyInfoWith(preds ...predicate.FamilyInfo) predicate.Student
HasFamilyInfoWith applies the HasEdge predicate on the "family_info" 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 HasPracticalExperience ¶
HasPracticalExperience applies the HasEdge predicate on the "practical_experience" edge.
func HasPracticalExperienceWith ¶
func HasPracticalExperienceWith(preds ...predicate.PracticalExperience) predicate.Student
HasPracticalExperienceWith applies the HasEdge predicate on the "practical_experience" 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 HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" 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 SexContains ¶
SexContains applies the Contains predicate on the "sex" field.
func SexContainsFold ¶
SexContainsFold applies the ContainsFold predicate on the "sex" field.
func SexEqualFold ¶
SexEqualFold applies the EqualFold predicate on the "sex" field.
func SexHasPrefix ¶
SexHasPrefix applies the HasPrefix predicate on the "sex" field.
func SexHasSuffix ¶
SexHasSuffix applies the HasSuffix predicate on the "sex" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.