major

package
v0.0.0-...-1cc1a95 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the major type in the database.
	Label = "major"
	// 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"
	// FieldSpecialType holds the string denoting the special_type field in the database.
	FieldSpecialType = "special_type"
	// FieldEnrollmentType holds the string denoting the enrollment_type field in the database.
	FieldEnrollmentType = "enrollment_type"
	// FieldIsMajorCategory holds the string denoting the is_major_category field in the database.
	FieldIsMajorCategory = "is_major_category"
	// FieldMajorCategory holds the string denoting the major_category field in the database.
	FieldMajorCategory = "major_category"
	// EdgeDepartment holds the string denoting the department edge name in mutations.
	EdgeDepartment = "department"
	// EdgeStudent holds the string denoting the student edge name in mutations.
	EdgeStudent = "student"
	// EdgeClass holds the string denoting the class edge name in mutations.
	EdgeClass = "class"
	// Table holds the table name of the major in the database.
	Table = "majors"
	// DepartmentTable is the table that holds the department relation/edge.
	DepartmentTable = "majors"
	// 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 = "major_department"
	// 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_major"
	// 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_major"
)

Variables

Columns holds all SQL columns for major fields.

View Source
var ForeignKeys = []string{
	"major_department",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "majors" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Major) predicate.Major

And groups predicates with the AND operator between them.

func Code

func Code(v string) predicate.Major

Code applies equality check predicate on the "code" field. It's identical to CodeEQ.

func CodeContains

func CodeContains(v string) predicate.Major

CodeContains applies the Contains predicate on the "code" field.

func CodeContainsFold

func CodeContainsFold(v string) predicate.Major

CodeContainsFold applies the ContainsFold predicate on the "code" field.

func CodeEQ

func CodeEQ(v string) predicate.Major

CodeEQ applies the EQ predicate on the "code" field.

func CodeEqualFold

func CodeEqualFold(v string) predicate.Major

CodeEqualFold applies the EqualFold predicate on the "code" field.

func CodeGT

func CodeGT(v string) predicate.Major

CodeGT applies the GT predicate on the "code" field.

func CodeGTE

func CodeGTE(v string) predicate.Major

CodeGTE applies the GTE predicate on the "code" field.

func CodeHasPrefix

func CodeHasPrefix(v string) predicate.Major

CodeHasPrefix applies the HasPrefix predicate on the "code" field.

func CodeHasSuffix

func CodeHasSuffix(v string) predicate.Major

CodeHasSuffix applies the HasSuffix predicate on the "code" field.

func CodeIn

func CodeIn(vs ...string) predicate.Major

CodeIn applies the In predicate on the "code" field.

func CodeLT

func CodeLT(v string) predicate.Major

CodeLT applies the LT predicate on the "code" field.

func CodeLTE

func CodeLTE(v string) predicate.Major

CodeLTE applies the LTE predicate on the "code" field.

func CodeNEQ

func CodeNEQ(v string) predicate.Major

CodeNEQ applies the NEQ predicate on the "code" field.

func CodeNotIn

func CodeNotIn(vs ...string) predicate.Major

CodeNotIn applies the NotIn predicate on the "code" field.

func Description

func Description(v string) predicate.Major

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Major

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Major

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Major

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Major

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Major

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Major

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Major

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Major

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Major

DescriptionIn applies the In predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Major

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Major

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Major

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Major

DescriptionNotIn applies the NotIn predicate on the "description" field.

func EnrollmentType

func EnrollmentType(v string) predicate.Major

EnrollmentType applies equality check predicate on the "enrollment_type" field. It's identical to EnrollmentTypeEQ.

func EnrollmentTypeContains

func EnrollmentTypeContains(v string) predicate.Major

EnrollmentTypeContains applies the Contains predicate on the "enrollment_type" field.

func EnrollmentTypeContainsFold

func EnrollmentTypeContainsFold(v string) predicate.Major

EnrollmentTypeContainsFold applies the ContainsFold predicate on the "enrollment_type" field.

func EnrollmentTypeEQ

func EnrollmentTypeEQ(v string) predicate.Major

EnrollmentTypeEQ applies the EQ predicate on the "enrollment_type" field.

func EnrollmentTypeEqualFold

func EnrollmentTypeEqualFold(v string) predicate.Major

EnrollmentTypeEqualFold applies the EqualFold predicate on the "enrollment_type" field.

func EnrollmentTypeGT

func EnrollmentTypeGT(v string) predicate.Major

EnrollmentTypeGT applies the GT predicate on the "enrollment_type" field.

func EnrollmentTypeGTE

func EnrollmentTypeGTE(v string) predicate.Major

EnrollmentTypeGTE applies the GTE predicate on the "enrollment_type" field.

func EnrollmentTypeHasPrefix

func EnrollmentTypeHasPrefix(v string) predicate.Major

EnrollmentTypeHasPrefix applies the HasPrefix predicate on the "enrollment_type" field.

func EnrollmentTypeHasSuffix

func EnrollmentTypeHasSuffix(v string) predicate.Major

EnrollmentTypeHasSuffix applies the HasSuffix predicate on the "enrollment_type" field.

func EnrollmentTypeIn

func EnrollmentTypeIn(vs ...string) predicate.Major

EnrollmentTypeIn applies the In predicate on the "enrollment_type" field.

func EnrollmentTypeLT

func EnrollmentTypeLT(v string) predicate.Major

EnrollmentTypeLT applies the LT predicate on the "enrollment_type" field.

func EnrollmentTypeLTE

func EnrollmentTypeLTE(v string) predicate.Major

EnrollmentTypeLTE applies the LTE predicate on the "enrollment_type" field.

func EnrollmentTypeNEQ

func EnrollmentTypeNEQ(v string) predicate.Major

EnrollmentTypeNEQ applies the NEQ predicate on the "enrollment_type" field.

func EnrollmentTypeNotIn

func EnrollmentTypeNotIn(vs ...string) predicate.Major

EnrollmentTypeNotIn applies the NotIn predicate on the "enrollment_type" field.

func HasClass

func HasClass() predicate.Major

HasClass applies the HasEdge predicate on the "class" edge.

func HasClassWith

func HasClassWith(preds ...predicate.Class) predicate.Major

HasClassWith applies the HasEdge predicate on the "class" edge with a given conditions (other predicates).

func HasDepartment

func HasDepartment() predicate.Major

HasDepartment applies the HasEdge predicate on the "department" edge.

func HasDepartmentWith

func HasDepartmentWith(preds ...predicate.Department) predicate.Major

HasDepartmentWith applies the HasEdge predicate on the "department" edge with a given conditions (other predicates).

func HasStudent

func HasStudent() predicate.Major

HasStudent applies the HasEdge predicate on the "student" edge.

func HasStudentWith

func HasStudentWith(preds ...predicate.Student) predicate.Major

HasStudentWith applies the HasEdge predicate on the "student" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Major

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Major

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Major

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Major

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Major

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Major

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Major

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Major

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Major

IDNotIn applies the NotIn predicate on the ID field.

func IsMajorCategory

func IsMajorCategory(v bool) predicate.Major

IsMajorCategory applies equality check predicate on the "is_major_category" field. It's identical to IsMajorCategoryEQ.

func IsMajorCategoryEQ

func IsMajorCategoryEQ(v bool) predicate.Major

IsMajorCategoryEQ applies the EQ predicate on the "is_major_category" field.

func IsMajorCategoryNEQ

func IsMajorCategoryNEQ(v bool) predicate.Major

IsMajorCategoryNEQ applies the NEQ predicate on the "is_major_category" field.

func MajorCategory

func MajorCategory(v string) predicate.Major

MajorCategory applies equality check predicate on the "major_category" field. It's identical to MajorCategoryEQ.

func MajorCategoryContains

func MajorCategoryContains(v string) predicate.Major

MajorCategoryContains applies the Contains predicate on the "major_category" field.

func MajorCategoryContainsFold

func MajorCategoryContainsFold(v string) predicate.Major

MajorCategoryContainsFold applies the ContainsFold predicate on the "major_category" field.

func MajorCategoryEQ

func MajorCategoryEQ(v string) predicate.Major

MajorCategoryEQ applies the EQ predicate on the "major_category" field.

func MajorCategoryEqualFold

func MajorCategoryEqualFold(v string) predicate.Major

MajorCategoryEqualFold applies the EqualFold predicate on the "major_category" field.

func MajorCategoryGT

func MajorCategoryGT(v string) predicate.Major

MajorCategoryGT applies the GT predicate on the "major_category" field.

func MajorCategoryGTE

func MajorCategoryGTE(v string) predicate.Major

MajorCategoryGTE applies the GTE predicate on the "major_category" field.

func MajorCategoryHasPrefix

func MajorCategoryHasPrefix(v string) predicate.Major

MajorCategoryHasPrefix applies the HasPrefix predicate on the "major_category" field.

func MajorCategoryHasSuffix

func MajorCategoryHasSuffix(v string) predicate.Major

MajorCategoryHasSuffix applies the HasSuffix predicate on the "major_category" field.

func MajorCategoryIn

func MajorCategoryIn(vs ...string) predicate.Major

MajorCategoryIn applies the In predicate on the "major_category" field.

func MajorCategoryLT

func MajorCategoryLT(v string) predicate.Major

MajorCategoryLT applies the LT predicate on the "major_category" field.

func MajorCategoryLTE

func MajorCategoryLTE(v string) predicate.Major

MajorCategoryLTE applies the LTE predicate on the "major_category" field.

func MajorCategoryNEQ

func MajorCategoryNEQ(v string) predicate.Major

MajorCategoryNEQ applies the NEQ predicate on the "major_category" field.

func MajorCategoryNotIn

func MajorCategoryNotIn(vs ...string) predicate.Major

MajorCategoryNotIn applies the NotIn predicate on the "major_category" field.

func Name

func Name(v string) predicate.Major

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Major

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Major

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Major

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Major

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Major

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Major

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Major

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Major

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Major

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Major

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Major

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Major

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Major

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Major) predicate.Major

Or groups predicates with the OR operator between them.

func SpecialType

func SpecialType(v string) predicate.Major

SpecialType applies equality check predicate on the "special_type" field. It's identical to SpecialTypeEQ.

func SpecialTypeContains

func SpecialTypeContains(v string) predicate.Major

SpecialTypeContains applies the Contains predicate on the "special_type" field.

func SpecialTypeContainsFold

func SpecialTypeContainsFold(v string) predicate.Major

SpecialTypeContainsFold applies the ContainsFold predicate on the "special_type" field.

func SpecialTypeEQ

func SpecialTypeEQ(v string) predicate.Major

SpecialTypeEQ applies the EQ predicate on the "special_type" field.

func SpecialTypeEqualFold

func SpecialTypeEqualFold(v string) predicate.Major

SpecialTypeEqualFold applies the EqualFold predicate on the "special_type" field.

func SpecialTypeGT

func SpecialTypeGT(v string) predicate.Major

SpecialTypeGT applies the GT predicate on the "special_type" field.

func SpecialTypeGTE

func SpecialTypeGTE(v string) predicate.Major

SpecialTypeGTE applies the GTE predicate on the "special_type" field.

func SpecialTypeHasPrefix

func SpecialTypeHasPrefix(v string) predicate.Major

SpecialTypeHasPrefix applies the HasPrefix predicate on the "special_type" field.

func SpecialTypeHasSuffix

func SpecialTypeHasSuffix(v string) predicate.Major

SpecialTypeHasSuffix applies the HasSuffix predicate on the "special_type" field.

func SpecialTypeIn

func SpecialTypeIn(vs ...string) predicate.Major

SpecialTypeIn applies the In predicate on the "special_type" field.

func SpecialTypeLT

func SpecialTypeLT(v string) predicate.Major

SpecialTypeLT applies the LT predicate on the "special_type" field.

func SpecialTypeLTE

func SpecialTypeLTE(v string) predicate.Major

SpecialTypeLTE applies the LTE predicate on the "special_type" field.

func SpecialTypeNEQ

func SpecialTypeNEQ(v string) predicate.Major

SpecialTypeNEQ applies the NEQ predicate on the "special_type" field.

func SpecialTypeNotIn

func SpecialTypeNotIn(vs ...string) predicate.Major

SpecialTypeNotIn applies the NotIn predicate on the "special_type" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL