tutor

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

func And(predicates ...predicate.Tutor) predicate.Tutor

And groups predicates with the AND operator between them.

func HasClass

func HasClass() predicate.Tutor

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

func HasClassWith

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

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

func HasStudent

func HasStudent() predicate.Tutor

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

func HasStudentWith

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

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

func ID

func ID(id int) predicate.Tutor

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Tutor

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Tutor

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Tutor

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Tutor

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Tutor

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Tutor

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Tutor) predicate.Tutor

Or groups predicates with the OR operator between them.

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