class

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 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

Columns holds all SQL columns for class fields.

View Source
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 And

func And(predicates ...predicate.Class) predicate.Class

And groups predicates with the AND operator between them.

func Code

func Code(v string) predicate.Class

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

func CodeContains

func CodeContains(v string) predicate.Class

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

func CodeContainsFold

func CodeContainsFold(v string) predicate.Class

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

func CodeEQ

func CodeEQ(v string) predicate.Class

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

func CodeEqualFold

func CodeEqualFold(v string) predicate.Class

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

func CodeGT

func CodeGT(v string) predicate.Class

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

func CodeGTE

func CodeGTE(v string) predicate.Class

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

func CodeHasPrefix

func CodeHasPrefix(v string) predicate.Class

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

func CodeHasSuffix

func CodeHasSuffix(v string) predicate.Class

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

func CodeIn

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

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

func CodeLT

func CodeLT(v string) predicate.Class

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

func CodeLTE

func CodeLTE(v string) predicate.Class

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

func CodeNEQ

func CodeNEQ(v string) predicate.Class

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

func CodeNotIn

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

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

func Description

func Description(v string) predicate.Class

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

func DescriptionContains

func DescriptionContains(v string) predicate.Class

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Class

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.Class

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Class

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

func DescriptionGT

func DescriptionGT(v string) predicate.Class

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.Class

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Class

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Class

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

func DescriptionIn

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

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

func DescriptionLT

func DescriptionLT(v string) predicate.Class

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.Class

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Class

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

func DescriptionNotIn

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

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

func HasCampus

func HasCampus() predicate.Class

HasCampus applies the HasEdge predicate on the "campus" edge.

func HasCampusWith

func HasCampusWith(preds ...predicate.Campus) predicate.Class

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

func HasClassLeader

func HasClassLeader() predicate.Class

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

func HasDepartment() predicate.Class

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 HasMajor

func HasMajor() predicate.Class

HasMajor applies the HasEdge predicate on the "major" edge.

func HasMajorDirection

func HasMajorDirection() predicate.Class

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

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

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

func HasStudent

func HasStudent() predicate.Class

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

func HasStudentWith

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

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

func HasTutor

func HasTutor() predicate.Class

HasTutor applies the HasEdge predicate on the "tutor" edge.

func HasTutorWith

func HasTutorWith(preds ...predicate.Tutor) predicate.Class

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

func ID

func ID(id int) predicate.Class

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Class

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Class

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Class

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Class

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Class

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Class

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Class

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

func NameContains

func NameContains(v string) predicate.Class

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

func NameContainsFold

func NameContainsFold(v string) predicate.Class

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

func NameEQ

func NameEQ(v string) predicate.Class

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

func NameEqualFold

func NameEqualFold(v string) predicate.Class

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

func NameGT

func NameGT(v string) predicate.Class

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

func NameGTE

func NameGTE(v string) predicate.Class

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Class

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Class

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Class

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

func NameLTE

func NameLTE(v string) predicate.Class

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

func NameNEQ

func NameNEQ(v string) predicate.Class

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

func NameNotIn

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

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.Class) predicate.Class

Or groups predicates with the OR operator between them.

func Type

func Type(v string) predicate.Class

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains

func TypeContains(v string) predicate.Class

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold

func TypeContainsFold(v string) predicate.Class

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ

func TypeEQ(v string) predicate.Class

TypeEQ applies the EQ predicate on the "type" field.

func TypeEqualFold

func TypeEqualFold(v string) predicate.Class

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT

func TypeGT(v string) predicate.Class

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

func TypeGTE(v string) predicate.Class

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.Class

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.Class

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn

func TypeIn(vs ...string) predicate.Class

TypeIn applies the In predicate on the "type" field.

func TypeLT

func TypeLT(v string) predicate.Class

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

func TypeLTE(v string) predicate.Class

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v string) predicate.Class

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...string) predicate.Class

TypeNotIn applies the NotIn predicate on the "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