user

package
v0.0.0-...-fa69b9e Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the user type in the database.
	Label = "user"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldStudentID holds the string denoting the student_id field in the database.
	FieldStudentID = "student_id"
	// FieldFirstname holds the string denoting the firstname field in the database.
	FieldFirstname = "firstname"
	// FieldLastname holds the string denoting the lastname field in the database.
	FieldLastname = "lastname"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldMailingAddress holds the string denoting the mailing_address field in the database.
	FieldMailingAddress = "mailing_address"
	// FieldGpa holds the string denoting the gpa field in the database.
	FieldGpa = "gpa"
	// Table holds the table name of the user in the database.
	Table = "users"
)

Variables

View Source
var (
	// EmailValidator is a validator for the "email" field. It is called by the builders before save.
	EmailValidator func(string) error
	// GpaValidator is a validator for the "gpa" field. It is called by the builders before save.
	GpaValidator func(int) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for user fields.

Functions

func And

func And(predicates ...predicate.User) predicate.User

And groups predicates with the AND operator between them.

func Email

func Email(v string) predicate.User

Email applies equality check predicate on the "email" field. It's identical to EmailEQ.

func EmailContains

func EmailContains(v string) predicate.User

EmailContains applies the Contains predicate on the "email" field.

func EmailContainsFold

func EmailContainsFold(v string) predicate.User

EmailContainsFold applies the ContainsFold predicate on the "email" field.

func EmailEQ

func EmailEQ(v string) predicate.User

EmailEQ applies the EQ predicate on the "email" field.

func EmailEqualFold

func EmailEqualFold(v string) predicate.User

EmailEqualFold applies the EqualFold predicate on the "email" field.

func EmailGT

func EmailGT(v string) predicate.User

EmailGT applies the GT predicate on the "email" field.

func EmailGTE

func EmailGTE(v string) predicate.User

EmailGTE applies the GTE predicate on the "email" field.

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.User

EmailHasPrefix applies the HasPrefix predicate on the "email" field.

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.User

EmailHasSuffix applies the HasSuffix predicate on the "email" field.

func EmailIn

func EmailIn(vs ...string) predicate.User

EmailIn applies the In predicate on the "email" field.

func EmailLT

func EmailLT(v string) predicate.User

EmailLT applies the LT predicate on the "email" field.

func EmailLTE

func EmailLTE(v string) predicate.User

EmailLTE applies the LTE predicate on the "email" field.

func EmailNEQ

func EmailNEQ(v string) predicate.User

EmailNEQ applies the NEQ predicate on the "email" field.

func EmailNotIn

func EmailNotIn(vs ...string) predicate.User

EmailNotIn applies the NotIn predicate on the "email" field.

func Firstname

func Firstname(v string) predicate.User

Firstname applies equality check predicate on the "firstname" field. It's identical to FirstnameEQ.

func FirstnameContains

func FirstnameContains(v string) predicate.User

FirstnameContains applies the Contains predicate on the "firstname" field.

func FirstnameContainsFold

func FirstnameContainsFold(v string) predicate.User

FirstnameContainsFold applies the ContainsFold predicate on the "firstname" field.

func FirstnameEQ

func FirstnameEQ(v string) predicate.User

FirstnameEQ applies the EQ predicate on the "firstname" field.

func FirstnameEqualFold

func FirstnameEqualFold(v string) predicate.User

FirstnameEqualFold applies the EqualFold predicate on the "firstname" field.

func FirstnameGT

func FirstnameGT(v string) predicate.User

FirstnameGT applies the GT predicate on the "firstname" field.

func FirstnameGTE

func FirstnameGTE(v string) predicate.User

FirstnameGTE applies the GTE predicate on the "firstname" field.

func FirstnameHasPrefix

func FirstnameHasPrefix(v string) predicate.User

FirstnameHasPrefix applies the HasPrefix predicate on the "firstname" field.

func FirstnameHasSuffix

func FirstnameHasSuffix(v string) predicate.User

FirstnameHasSuffix applies the HasSuffix predicate on the "firstname" field.

func FirstnameIn

func FirstnameIn(vs ...string) predicate.User

FirstnameIn applies the In predicate on the "firstname" field.

func FirstnameLT

func FirstnameLT(v string) predicate.User

FirstnameLT applies the LT predicate on the "firstname" field.

func FirstnameLTE

func FirstnameLTE(v string) predicate.User

FirstnameLTE applies the LTE predicate on the "firstname" field.

func FirstnameNEQ

func FirstnameNEQ(v string) predicate.User

FirstnameNEQ applies the NEQ predicate on the "firstname" field.

func FirstnameNotIn

func FirstnameNotIn(vs ...string) predicate.User

FirstnameNotIn applies the NotIn predicate on the "firstname" field.

func Gpa

func Gpa(v int) predicate.User

Gpa applies equality check predicate on the "gpa" field. It's identical to GpaEQ.

func GpaEQ

func GpaEQ(v int) predicate.User

GpaEQ applies the EQ predicate on the "gpa" field.

func GpaGT

func GpaGT(v int) predicate.User

GpaGT applies the GT predicate on the "gpa" field.

func GpaGTE

func GpaGTE(v int) predicate.User

GpaGTE applies the GTE predicate on the "gpa" field.

func GpaIn

func GpaIn(vs ...int) predicate.User

GpaIn applies the In predicate on the "gpa" field.

func GpaLT

func GpaLT(v int) predicate.User

GpaLT applies the LT predicate on the "gpa" field.

func GpaLTE

func GpaLTE(v int) predicate.User

GpaLTE applies the LTE predicate on the "gpa" field.

func GpaNEQ

func GpaNEQ(v int) predicate.User

GpaNEQ applies the NEQ predicate on the "gpa" field.

func GpaNotIn

func GpaNotIn(vs ...int) predicate.User

GpaNotIn applies the NotIn predicate on the "gpa" field.

func ID

func ID(id uuid.UUID) predicate.User

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.User

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.User

IDNotIn applies the NotIn predicate on the ID field.

func Lastname

func Lastname(v string) predicate.User

Lastname applies equality check predicate on the "lastname" field. It's identical to LastnameEQ.

func LastnameContains

func LastnameContains(v string) predicate.User

LastnameContains applies the Contains predicate on the "lastname" field.

func LastnameContainsFold

func LastnameContainsFold(v string) predicate.User

LastnameContainsFold applies the ContainsFold predicate on the "lastname" field.

func LastnameEQ

func LastnameEQ(v string) predicate.User

LastnameEQ applies the EQ predicate on the "lastname" field.

func LastnameEqualFold

func LastnameEqualFold(v string) predicate.User

LastnameEqualFold applies the EqualFold predicate on the "lastname" field.

func LastnameGT

func LastnameGT(v string) predicate.User

LastnameGT applies the GT predicate on the "lastname" field.

func LastnameGTE

func LastnameGTE(v string) predicate.User

LastnameGTE applies the GTE predicate on the "lastname" field.

func LastnameHasPrefix

func LastnameHasPrefix(v string) predicate.User

LastnameHasPrefix applies the HasPrefix predicate on the "lastname" field.

func LastnameHasSuffix

func LastnameHasSuffix(v string) predicate.User

LastnameHasSuffix applies the HasSuffix predicate on the "lastname" field.

func LastnameIn

func LastnameIn(vs ...string) predicate.User

LastnameIn applies the In predicate on the "lastname" field.

func LastnameLT

func LastnameLT(v string) predicate.User

LastnameLT applies the LT predicate on the "lastname" field.

func LastnameLTE

func LastnameLTE(v string) predicate.User

LastnameLTE applies the LTE predicate on the "lastname" field.

func LastnameNEQ

func LastnameNEQ(v string) predicate.User

LastnameNEQ applies the NEQ predicate on the "lastname" field.

func LastnameNotIn

func LastnameNotIn(vs ...string) predicate.User

LastnameNotIn applies the NotIn predicate on the "lastname" field.

func MailingAddress

func MailingAddress(v string) predicate.User

MailingAddress applies equality check predicate on the "mailing_address" field. It's identical to MailingAddressEQ.

func MailingAddressContains

func MailingAddressContains(v string) predicate.User

MailingAddressContains applies the Contains predicate on the "mailing_address" field.

func MailingAddressContainsFold

func MailingAddressContainsFold(v string) predicate.User

MailingAddressContainsFold applies the ContainsFold predicate on the "mailing_address" field.

func MailingAddressEQ

func MailingAddressEQ(v string) predicate.User

MailingAddressEQ applies the EQ predicate on the "mailing_address" field.

func MailingAddressEqualFold

func MailingAddressEqualFold(v string) predicate.User

MailingAddressEqualFold applies the EqualFold predicate on the "mailing_address" field.

func MailingAddressGT

func MailingAddressGT(v string) predicate.User

MailingAddressGT applies the GT predicate on the "mailing_address" field.

func MailingAddressGTE

func MailingAddressGTE(v string) predicate.User

MailingAddressGTE applies the GTE predicate on the "mailing_address" field.

func MailingAddressHasPrefix

func MailingAddressHasPrefix(v string) predicate.User

MailingAddressHasPrefix applies the HasPrefix predicate on the "mailing_address" field.

func MailingAddressHasSuffix

func MailingAddressHasSuffix(v string) predicate.User

MailingAddressHasSuffix applies the HasSuffix predicate on the "mailing_address" field.

func MailingAddressIn

func MailingAddressIn(vs ...string) predicate.User

MailingAddressIn applies the In predicate on the "mailing_address" field.

func MailingAddressLT

func MailingAddressLT(v string) predicate.User

MailingAddressLT applies the LT predicate on the "mailing_address" field.

func MailingAddressLTE

func MailingAddressLTE(v string) predicate.User

MailingAddressLTE applies the LTE predicate on the "mailing_address" field.

func MailingAddressNEQ

func MailingAddressNEQ(v string) predicate.User

MailingAddressNEQ applies the NEQ predicate on the "mailing_address" field.

func MailingAddressNotIn

func MailingAddressNotIn(vs ...string) predicate.User

MailingAddressNotIn applies the NotIn predicate on the "mailing_address" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.User) predicate.User

Or groups predicates with the OR operator between them.

func StudentID

func StudentID(v string) predicate.User

StudentID applies equality check predicate on the "student_id" field. It's identical to StudentIDEQ.

func StudentIDContains

func StudentIDContains(v string) predicate.User

StudentIDContains applies the Contains predicate on the "student_id" field.

func StudentIDContainsFold

func StudentIDContainsFold(v string) predicate.User

StudentIDContainsFold applies the ContainsFold predicate on the "student_id" field.

func StudentIDEQ

func StudentIDEQ(v string) predicate.User

StudentIDEQ applies the EQ predicate on the "student_id" field.

func StudentIDEqualFold

func StudentIDEqualFold(v string) predicate.User

StudentIDEqualFold applies the EqualFold predicate on the "student_id" field.

func StudentIDGT

func StudentIDGT(v string) predicate.User

StudentIDGT applies the GT predicate on the "student_id" field.

func StudentIDGTE

func StudentIDGTE(v string) predicate.User

StudentIDGTE applies the GTE predicate on the "student_id" field.

func StudentIDHasPrefix

func StudentIDHasPrefix(v string) predicate.User

StudentIDHasPrefix applies the HasPrefix predicate on the "student_id" field.

func StudentIDHasSuffix

func StudentIDHasSuffix(v string) predicate.User

StudentIDHasSuffix applies the HasSuffix predicate on the "student_id" field.

func StudentIDIn

func StudentIDIn(vs ...string) predicate.User

StudentIDIn applies the In predicate on the "student_id" field.

func StudentIDLT

func StudentIDLT(v string) predicate.User

StudentIDLT applies the LT predicate on the "student_id" field.

func StudentIDLTE

func StudentIDLTE(v string) predicate.User

StudentIDLTE applies the LTE predicate on the "student_id" field.

func StudentIDNEQ

func StudentIDNEQ(v string) predicate.User

StudentIDNEQ applies the NEQ predicate on the "student_id" field.

func StudentIDNotIn

func StudentIDNotIn(vs ...string) predicate.User

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