user

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 6 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"
	// FieldUsername holds the string denoting the username field in the database.
	FieldUsername = "username"
	// FieldAge holds the string denoting the age field in the database.
	FieldAge = "age"
	// FieldAmount holds the string denoting the amount field in the database.
	FieldAmount = "amount"
	// FieldRole holds the string denoting the role field in the database.
	FieldRole = "role"
	// FieldNullableString holds the string denoting the nullable_string field in the database.
	FieldNullableString = "nullable_string"
	// Table holds the table name of the user in the database.
	Table = "users"
)

Variables

Columns holds all SQL columns for user fields.

Functions

func Age

func Age(v int) predicate.User

Age applies equality check predicate on the "age" field. It's identical to AgeEQ.

func AgeEQ

func AgeEQ(v int) predicate.User

AgeEQ applies the EQ predicate on the "age" field.

func AgeGT

func AgeGT(v int) predicate.User

AgeGT applies the GT predicate on the "age" field.

func AgeGTE

func AgeGTE(v int) predicate.User

AgeGTE applies the GTE predicate on the "age" field.

func AgeIn

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

AgeIn applies the In predicate on the "age" field.

func AgeLT

func AgeLT(v int) predicate.User

AgeLT applies the LT predicate on the "age" field.

func AgeLTE

func AgeLTE(v int) predicate.User

AgeLTE applies the LTE predicate on the "age" field.

func AgeNEQ

func AgeNEQ(v int) predicate.User

AgeNEQ applies the NEQ predicate on the "age" field.

func AgeNotIn

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

AgeNotIn applies the NotIn predicate on the "age" field.

func Amount

func Amount(v schema.Amount) predicate.User

Amount applies equality check predicate on the "amount" field. It's identical to AmountEQ.

func AmountEQ

func AmountEQ(v schema.Amount) predicate.User

AmountEQ applies the EQ predicate on the "amount" field.

func AmountGT

func AmountGT(v schema.Amount) predicate.User

AmountGT applies the GT predicate on the "amount" field.

func AmountGTE

func AmountGTE(v schema.Amount) predicate.User

AmountGTE applies the GTE predicate on the "amount" field.

func AmountIn

func AmountIn(vs ...schema.Amount) predicate.User

AmountIn applies the In predicate on the "amount" field.

func AmountLT

func AmountLT(v schema.Amount) predicate.User

AmountLT applies the LT predicate on the "amount" field.

func AmountLTE

func AmountLTE(v schema.Amount) predicate.User

AmountLTE applies the LTE predicate on the "amount" field.

func AmountNEQ

func AmountNEQ(v schema.Amount) predicate.User

AmountNEQ applies the NEQ predicate on the "amount" field.

func AmountNotIn

func AmountNotIn(vs ...schema.Amount) predicate.User

AmountNotIn applies the NotIn predicate on the "amount" field.

func And

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

And groups predicates with the AND operator between them.

func ID

func ID(id int) predicate.User

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func NullableString

func NullableString(v string) predicate.User

NullableString applies equality check predicate on the "nullable_string" field. It's identical to NullableStringEQ.

func NullableStringContains

func NullableStringContains(v string) predicate.User

NullableStringContains applies the Contains predicate on the "nullable_string" field.

func NullableStringContainsFold

func NullableStringContainsFold(v string) predicate.User

NullableStringContainsFold applies the ContainsFold predicate on the "nullable_string" field.

func NullableStringEQ

func NullableStringEQ(v string) predicate.User

NullableStringEQ applies the EQ predicate on the "nullable_string" field.

func NullableStringEqualFold

func NullableStringEqualFold(v string) predicate.User

NullableStringEqualFold applies the EqualFold predicate on the "nullable_string" field.

func NullableStringGT

func NullableStringGT(v string) predicate.User

NullableStringGT applies the GT predicate on the "nullable_string" field.

func NullableStringGTE

func NullableStringGTE(v string) predicate.User

NullableStringGTE applies the GTE predicate on the "nullable_string" field.

func NullableStringHasPrefix

func NullableStringHasPrefix(v string) predicate.User

NullableStringHasPrefix applies the HasPrefix predicate on the "nullable_string" field.

func NullableStringHasSuffix

func NullableStringHasSuffix(v string) predicate.User

NullableStringHasSuffix applies the HasSuffix predicate on the "nullable_string" field.

func NullableStringIn

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

NullableStringIn applies the In predicate on the "nullable_string" field.

func NullableStringIsNil

func NullableStringIsNil() predicate.User

NullableStringIsNil applies the IsNil predicate on the "nullable_string" field.

func NullableStringLT

func NullableStringLT(v string) predicate.User

NullableStringLT applies the LT predicate on the "nullable_string" field.

func NullableStringLTE

func NullableStringLTE(v string) predicate.User

NullableStringLTE applies the LTE predicate on the "nullable_string" field.

func NullableStringNEQ

func NullableStringNEQ(v string) predicate.User

NullableStringNEQ applies the NEQ predicate on the "nullable_string" field.

func NullableStringNotIn

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

NullableStringNotIn applies the NotIn predicate on the "nullable_string" field.

func NullableStringNotNil

func NullableStringNotNil() predicate.User

NullableStringNotNil applies the NotNil predicate on the "nullable_string" field.

func Or

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

Or groups predicates with the OR operator between them.

func RoleEQ

func RoleEQ(v role.Role) predicate.User

RoleEQ applies the EQ predicate on the "role" field.

func RoleIn

func RoleIn(vs ...role.Role) predicate.User

RoleIn applies the In predicate on the "role" field.

func RoleNEQ

func RoleNEQ(v role.Role) predicate.User

RoleNEQ applies the NEQ predicate on the "role" field.

func RoleNotIn

func RoleNotIn(vs ...role.Role) predicate.User

RoleNotIn applies the NotIn predicate on the "role" field.

func RoleValidator

func RoleValidator(r role.Role) error

RoleValidator is a validator for the "role" field enum values. It is called by the builders before save.

func Username

func Username(v string) predicate.User

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

func UsernameContains

func UsernameContains(v string) predicate.User

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

func UsernameContainsFold

func UsernameContainsFold(v string) predicate.User

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

func UsernameEQ

func UsernameEQ(v string) predicate.User

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

func UsernameEqualFold

func UsernameEqualFold(v string) predicate.User

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

func UsernameGT

func UsernameGT(v string) predicate.User

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

func UsernameGTE

func UsernameGTE(v string) predicate.User

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

func UsernameHasPrefix

func UsernameHasPrefix(v string) predicate.User

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

func UsernameHasSuffix

func UsernameHasSuffix(v string) predicate.User

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

func UsernameIn

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

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

func UsernameLT

func UsernameLT(v string) predicate.User

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

func UsernameLTE

func UsernameLTE(v string) predicate.User

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

func UsernameNEQ

func UsernameNEQ(v string) predicate.User

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

func UsernameNotIn

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

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