campus

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 campus type in the database.
	Label = "campus"
	// 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"
	// FieldAddress holds the string denoting the address field in the database.
	FieldAddress = "address"
	// EdgeClass holds the string denoting the class edge name in mutations.
	EdgeClass = "class"
	// Table holds the table name of the campus in the database.
	Table = "campus"
	// 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 = "campus_class"
)

Variables

Columns holds all SQL columns for campus fields.

Functions

func Address

func Address(v string) predicate.Campus

Address applies equality check predicate on the "address" field. It's identical to AddressEQ.

func AddressContains

func AddressContains(v string) predicate.Campus

AddressContains applies the Contains predicate on the "address" field.

func AddressContainsFold

func AddressContainsFold(v string) predicate.Campus

AddressContainsFold applies the ContainsFold predicate on the "address" field.

func AddressEQ

func AddressEQ(v string) predicate.Campus

AddressEQ applies the EQ predicate on the "address" field.

func AddressEqualFold

func AddressEqualFold(v string) predicate.Campus

AddressEqualFold applies the EqualFold predicate on the "address" field.

func AddressGT

func AddressGT(v string) predicate.Campus

AddressGT applies the GT predicate on the "address" field.

func AddressGTE

func AddressGTE(v string) predicate.Campus

AddressGTE applies the GTE predicate on the "address" field.

func AddressHasPrefix

func AddressHasPrefix(v string) predicate.Campus

AddressHasPrefix applies the HasPrefix predicate on the "address" field.

func AddressHasSuffix

func AddressHasSuffix(v string) predicate.Campus

AddressHasSuffix applies the HasSuffix predicate on the "address" field.

func AddressIn

func AddressIn(vs ...string) predicate.Campus

AddressIn applies the In predicate on the "address" field.

func AddressLT

func AddressLT(v string) predicate.Campus

AddressLT applies the LT predicate on the "address" field.

func AddressLTE

func AddressLTE(v string) predicate.Campus

AddressLTE applies the LTE predicate on the "address" field.

func AddressNEQ

func AddressNEQ(v string) predicate.Campus

AddressNEQ applies the NEQ predicate on the "address" field.

func AddressNotIn

func AddressNotIn(vs ...string) predicate.Campus

AddressNotIn applies the NotIn predicate on the "address" field.

func And

func And(predicates ...predicate.Campus) predicate.Campus

And groups predicates with the AND operator between them.

func HasClass

func HasClass() predicate.Campus

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

func HasClassWith

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

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

func ID

func ID(id int) predicate.Campus

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Campus

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Campus

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Campus

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Campus

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Campus

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Campus

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Campus

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

func NameContains

func NameContains(v string) predicate.Campus

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

func NameContainsFold

func NameContainsFold(v string) predicate.Campus

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

func NameEQ

func NameEQ(v string) predicate.Campus

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

func NameEqualFold

func NameEqualFold(v string) predicate.Campus

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

func NameGT

func NameGT(v string) predicate.Campus

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

func NameGTE

func NameGTE(v string) predicate.Campus

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Campus

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Campus

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Campus

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

func NameLTE

func NameLTE(v string) predicate.Campus

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

func NameNEQ

func NameNEQ(v string) predicate.Campus

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

func NameNotIn

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

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

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