users

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the users type in the database.
	Label = "users"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldUsername holds the string denoting the username field in the database.
	FieldUsername = "username"
	// FieldHashedPassword holds the string denoting the hashed_password field in the database.
	FieldHashedPassword = "hashed_password"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldFullName holds the string denoting the full_name field in the database.
	FieldFullName = "full_name"
	// FieldPasswordChangedAt holds the string denoting the password_changed_at field in the database.
	FieldPasswordChangedAt = "password_changed_at"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// Table holds the table name of the users in the database.
	Table = "users"
)

Variables

View Source
var (
	// UsernameValidator is a validator for the "username" field. It is called by the builders before save.
	UsernameValidator func(string) error
	// HashedPasswordValidator is a validator for the "hashed_password" field. It is called by the builders before save.
	HashedPasswordValidator func(string) error
	// EmailValidator is a validator for the "email" field. It is called by the builders before save.
	EmailValidator func(string) error
	// FullNameValidator is a validator for the "full_name" field. It is called by the builders before save.
	FullNameValidator func(string) error
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt time.Time
)

Columns holds all SQL columns for users fields.

Functions

func And

func And(predicates ...predicate.Users) predicate.Users

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Users

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Users

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Users

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Users

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Users

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Users

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Users

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Users

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Users

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Email

func Email(v string) predicate.Users

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

func EmailContains

func EmailContains(v string) predicate.Users

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

func EmailContainsFold

func EmailContainsFold(v string) predicate.Users

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

func EmailEQ

func EmailEQ(v string) predicate.Users

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

func EmailEqualFold

func EmailEqualFold(v string) predicate.Users

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

func EmailGT

func EmailGT(v string) predicate.Users

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

func EmailGTE

func EmailGTE(v string) predicate.Users

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

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.Users

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

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.Users

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

func EmailIn

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

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

func EmailLT

func EmailLT(v string) predicate.Users

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

func EmailLTE

func EmailLTE(v string) predicate.Users

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

func EmailNEQ

func EmailNEQ(v string) predicate.Users

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

func EmailNotIn

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

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

func FullName

func FullName(v string) predicate.Users

FullName applies equality check predicate on the "full_name" field. It's identical to FullNameEQ.

func FullNameContains

func FullNameContains(v string) predicate.Users

FullNameContains applies the Contains predicate on the "full_name" field.

func FullNameContainsFold

func FullNameContainsFold(v string) predicate.Users

FullNameContainsFold applies the ContainsFold predicate on the "full_name" field.

func FullNameEQ

func FullNameEQ(v string) predicate.Users

FullNameEQ applies the EQ predicate on the "full_name" field.

func FullNameEqualFold

func FullNameEqualFold(v string) predicate.Users

FullNameEqualFold applies the EqualFold predicate on the "full_name" field.

func FullNameGT

func FullNameGT(v string) predicate.Users

FullNameGT applies the GT predicate on the "full_name" field.

func FullNameGTE

func FullNameGTE(v string) predicate.Users

FullNameGTE applies the GTE predicate on the "full_name" field.

func FullNameHasPrefix

func FullNameHasPrefix(v string) predicate.Users

FullNameHasPrefix applies the HasPrefix predicate on the "full_name" field.

func FullNameHasSuffix

func FullNameHasSuffix(v string) predicate.Users

FullNameHasSuffix applies the HasSuffix predicate on the "full_name" field.

func FullNameIn

func FullNameIn(vs ...string) predicate.Users

FullNameIn applies the In predicate on the "full_name" field.

func FullNameLT

func FullNameLT(v string) predicate.Users

FullNameLT applies the LT predicate on the "full_name" field.

func FullNameLTE

func FullNameLTE(v string) predicate.Users

FullNameLTE applies the LTE predicate on the "full_name" field.

func FullNameNEQ

func FullNameNEQ(v string) predicate.Users

FullNameNEQ applies the NEQ predicate on the "full_name" field.

func FullNameNotIn

func FullNameNotIn(vs ...string) predicate.Users

FullNameNotIn applies the NotIn predicate on the "full_name" field.

func HashedPassword

func HashedPassword(v string) predicate.Users

HashedPassword applies equality check predicate on the "hashed_password" field. It's identical to HashedPasswordEQ.

func HashedPasswordContains

func HashedPasswordContains(v string) predicate.Users

HashedPasswordContains applies the Contains predicate on the "hashed_password" field.

func HashedPasswordContainsFold

func HashedPasswordContainsFold(v string) predicate.Users

HashedPasswordContainsFold applies the ContainsFold predicate on the "hashed_password" field.

func HashedPasswordEQ

func HashedPasswordEQ(v string) predicate.Users

HashedPasswordEQ applies the EQ predicate on the "hashed_password" field.

func HashedPasswordEqualFold

func HashedPasswordEqualFold(v string) predicate.Users

HashedPasswordEqualFold applies the EqualFold predicate on the "hashed_password" field.

func HashedPasswordGT

func HashedPasswordGT(v string) predicate.Users

HashedPasswordGT applies the GT predicate on the "hashed_password" field.

func HashedPasswordGTE

func HashedPasswordGTE(v string) predicate.Users

HashedPasswordGTE applies the GTE predicate on the "hashed_password" field.

func HashedPasswordHasPrefix

func HashedPasswordHasPrefix(v string) predicate.Users

HashedPasswordHasPrefix applies the HasPrefix predicate on the "hashed_password" field.

func HashedPasswordHasSuffix

func HashedPasswordHasSuffix(v string) predicate.Users

HashedPasswordHasSuffix applies the HasSuffix predicate on the "hashed_password" field.

func HashedPasswordIn

func HashedPasswordIn(vs ...string) predicate.Users

HashedPasswordIn applies the In predicate on the "hashed_password" field.

func HashedPasswordIsNil

func HashedPasswordIsNil() predicate.Users

HashedPasswordIsNil applies the IsNil predicate on the "hashed_password" field.

func HashedPasswordLT

func HashedPasswordLT(v string) predicate.Users

HashedPasswordLT applies the LT predicate on the "hashed_password" field.

func HashedPasswordLTE

func HashedPasswordLTE(v string) predicate.Users

HashedPasswordLTE applies the LTE predicate on the "hashed_password" field.

func HashedPasswordNEQ

func HashedPasswordNEQ(v string) predicate.Users

HashedPasswordNEQ applies the NEQ predicate on the "hashed_password" field.

func HashedPasswordNotIn

func HashedPasswordNotIn(vs ...string) predicate.Users

HashedPasswordNotIn applies the NotIn predicate on the "hashed_password" field.

func HashedPasswordNotNil

func HashedPasswordNotNil() predicate.Users

HashedPasswordNotNil applies the NotNil predicate on the "hashed_password" field.

func ID

func ID(id uuid.UUID) predicate.Users

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Users

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Users

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Users

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Users

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Users

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Users

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func PasswordChangedAt

func PasswordChangedAt(v time.Time) predicate.Users

PasswordChangedAt applies equality check predicate on the "password_changed_at" field. It's identical to PasswordChangedAtEQ.

func PasswordChangedAtEQ

func PasswordChangedAtEQ(v time.Time) predicate.Users

PasswordChangedAtEQ applies the EQ predicate on the "password_changed_at" field.

func PasswordChangedAtGT

func PasswordChangedAtGT(v time.Time) predicate.Users

PasswordChangedAtGT applies the GT predicate on the "password_changed_at" field.

func PasswordChangedAtGTE

func PasswordChangedAtGTE(v time.Time) predicate.Users

PasswordChangedAtGTE applies the GTE predicate on the "password_changed_at" field.

func PasswordChangedAtIn

func PasswordChangedAtIn(vs ...time.Time) predicate.Users

PasswordChangedAtIn applies the In predicate on the "password_changed_at" field.

func PasswordChangedAtIsNil

func PasswordChangedAtIsNil() predicate.Users

PasswordChangedAtIsNil applies the IsNil predicate on the "password_changed_at" field.

func PasswordChangedAtLT

func PasswordChangedAtLT(v time.Time) predicate.Users

PasswordChangedAtLT applies the LT predicate on the "password_changed_at" field.

func PasswordChangedAtLTE

func PasswordChangedAtLTE(v time.Time) predicate.Users

PasswordChangedAtLTE applies the LTE predicate on the "password_changed_at" field.

func PasswordChangedAtNEQ

func PasswordChangedAtNEQ(v time.Time) predicate.Users

PasswordChangedAtNEQ applies the NEQ predicate on the "password_changed_at" field.

func PasswordChangedAtNotIn

func PasswordChangedAtNotIn(vs ...time.Time) predicate.Users

PasswordChangedAtNotIn applies the NotIn predicate on the "password_changed_at" field.

func PasswordChangedAtNotNil

func PasswordChangedAtNotNil() predicate.Users

PasswordChangedAtNotNil applies the NotNil predicate on the "password_changed_at" field.

func Username

func Username(v string) predicate.Users

Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.

func UsernameContains

func UsernameContains(v string) predicate.Users

UsernameContains applies the Contains predicate on the "username" field.

func UsernameContainsFold

func UsernameContainsFold(v string) predicate.Users

UsernameContainsFold applies the ContainsFold predicate on the "username" field.

func UsernameEQ

func UsernameEQ(v string) predicate.Users

UsernameEQ applies the EQ predicate on the "username" field.

func UsernameEqualFold

func UsernameEqualFold(v string) predicate.Users

UsernameEqualFold applies the EqualFold predicate on the "username" field.

func UsernameGT

func UsernameGT(v string) predicate.Users

UsernameGT applies the GT predicate on the "username" field.

func UsernameGTE

func UsernameGTE(v string) predicate.Users

UsernameGTE applies the GTE predicate on the "username" field.

func UsernameHasPrefix

func UsernameHasPrefix(v string) predicate.Users

UsernameHasPrefix applies the HasPrefix predicate on the "username" field.

func UsernameHasSuffix

func UsernameHasSuffix(v string) predicate.Users

UsernameHasSuffix applies the HasSuffix predicate on the "username" field.

func UsernameIn

func UsernameIn(vs ...string) predicate.Users

UsernameIn applies the In predicate on the "username" field.

func UsernameLT

func UsernameLT(v string) predicate.Users

UsernameLT applies the LT predicate on the "username" field.

func UsernameLTE

func UsernameLTE(v string) predicate.Users

UsernameLTE applies the LTE predicate on the "username" field.

func UsernameNEQ

func UsernameNEQ(v string) predicate.Users

UsernameNEQ applies the NEQ predicate on the "username" field.

func UsernameNotIn

func UsernameNotIn(vs ...string) predicate.Users

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