classleader

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 classleader type in the database.
	Label = "class_leader"
	// 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 classleader in the database.
	Table = "class_leaders"
	// 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_leader_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 = "class_leader_student"
)

Variables

View Source
var Columns = []string{
	FieldID,
}

Columns holds all SQL columns for classleader fields.

Functions

func And

func And(predicates ...predicate.ClassLeader) predicate.ClassLeader

And groups predicates with the AND operator between them.

func HasClass

func HasClass() predicate.ClassLeader

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

func HasClassWith

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

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

func HasStudent

func HasStudent() predicate.ClassLeader

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

func HasStudentWith

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

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

func ID

func ID(id int) predicate.ClassLeader

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.ClassLeader

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.ClassLeader

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.ClassLeader

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.ClassLeader

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.ClassLeader

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.ClassLeader

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

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