user

package
v0.0.0-...-b3d1480 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 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"
	// FieldRole holds the string denoting the role field in the database.
	FieldRole = "role"
	// FieldUserName holds the string denoting the user_name field in the database.
	FieldUserName = "user_name"
	// FieldIsExist holds the string denoting the is_exist field in the database.
	FieldIsExist = "is_exist"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// FieldUserTitle holds the string denoting the user_title field in the database.
	FieldUserTitle = "user_title"
	// Table holds the table name of the user in the database.
	Table = "users"
)

Variables

View Source
var (
	// DefaultRole holds the default value on creation for the "role" field.
	DefaultRole int8
	// UserNameValidator is a validator for the "user_name" field. It is called by the builders before save.
	UserNameValidator func(string) error
	// DefaultIsExist holds the default value on creation for the "is_exist" field.
	DefaultIsExist bool
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime time.Time
	// DefaultUpdateTime holds the default value on creation for the "update_time" field.
	DefaultUpdateTime func() time.Time
	// UpdateDefaultUpdateTime holds the default value on update for the "update_time" field.
	UpdateDefaultUpdateTime func() time.Time
)

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 CreateTime

func CreateTime(v time.Time) predicate.User

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.User

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.User

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.User

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.User

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.User

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.User

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.User

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.User

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

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 IsExist

func IsExist(v bool) predicate.User

IsExist applies equality check predicate on the "is_exist" field. It's identical to IsExistEQ.

func IsExistEQ

func IsExistEQ(v bool) predicate.User

IsExistEQ applies the EQ predicate on the "is_exist" field.

func IsExistNEQ

func IsExistNEQ(v bool) predicate.User

IsExistNEQ applies the NEQ predicate on the "is_exist" 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 Role

func Role(v int8) predicate.User

Role applies equality check predicate on the "role" field. It's identical to RoleEQ.

func RoleEQ

func RoleEQ(v int8) predicate.User

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

func RoleGT

func RoleGT(v int8) predicate.User

RoleGT applies the GT predicate on the "role" field.

func RoleGTE

func RoleGTE(v int8) predicate.User

RoleGTE applies the GTE predicate on the "role" field.

func RoleIn

func RoleIn(vs ...int8) predicate.User

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

func RoleLT

func RoleLT(v int8) predicate.User

RoleLT applies the LT predicate on the "role" field.

func RoleLTE

func RoleLTE(v int8) predicate.User

RoleLTE applies the LTE predicate on the "role" field.

func RoleNEQ

func RoleNEQ(v int8) predicate.User

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

func RoleNotIn

func RoleNotIn(vs ...int8) predicate.User

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

func UpdateTime

func UpdateTime(v time.Time) predicate.User

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.User

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.User

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.User

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.User

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.User

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.User

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.User

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.User

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

func UserName

func UserName(v string) predicate.User

UserName applies equality check predicate on the "user_name" field. It's identical to UserNameEQ.

func UserNameContains

func UserNameContains(v string) predicate.User

UserNameContains applies the Contains predicate on the "user_name" field.

func UserNameContainsFold

func UserNameContainsFold(v string) predicate.User

UserNameContainsFold applies the ContainsFold predicate on the "user_name" field.

func UserNameEQ

func UserNameEQ(v string) predicate.User

UserNameEQ applies the EQ predicate on the "user_name" field.

func UserNameEqualFold

func UserNameEqualFold(v string) predicate.User

UserNameEqualFold applies the EqualFold predicate on the "user_name" field.

func UserNameGT

func UserNameGT(v string) predicate.User

UserNameGT applies the GT predicate on the "user_name" field.

func UserNameGTE

func UserNameGTE(v string) predicate.User

UserNameGTE applies the GTE predicate on the "user_name" field.

func UserNameHasPrefix

func UserNameHasPrefix(v string) predicate.User

UserNameHasPrefix applies the HasPrefix predicate on the "user_name" field.

func UserNameHasSuffix

func UserNameHasSuffix(v string) predicate.User

UserNameHasSuffix applies the HasSuffix predicate on the "user_name" field.

func UserNameIn

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

UserNameIn applies the In predicate on the "user_name" field.

func UserNameLT

func UserNameLT(v string) predicate.User

UserNameLT applies the LT predicate on the "user_name" field.

func UserNameLTE

func UserNameLTE(v string) predicate.User

UserNameLTE applies the LTE predicate on the "user_name" field.

func UserNameNEQ

func UserNameNEQ(v string) predicate.User

UserNameNEQ applies the NEQ predicate on the "user_name" field.

func UserNameNotIn

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

UserNameNotIn applies the NotIn predicate on the "user_name" field.

func UserTitle

func UserTitle(v string) predicate.User

UserTitle applies equality check predicate on the "user_title" field. It's identical to UserTitleEQ.

func UserTitleContains

func UserTitleContains(v string) predicate.User

UserTitleContains applies the Contains predicate on the "user_title" field.

func UserTitleContainsFold

func UserTitleContainsFold(v string) predicate.User

UserTitleContainsFold applies the ContainsFold predicate on the "user_title" field.

func UserTitleEQ

func UserTitleEQ(v string) predicate.User

UserTitleEQ applies the EQ predicate on the "user_title" field.

func UserTitleEqualFold

func UserTitleEqualFold(v string) predicate.User

UserTitleEqualFold applies the EqualFold predicate on the "user_title" field.

func UserTitleGT

func UserTitleGT(v string) predicate.User

UserTitleGT applies the GT predicate on the "user_title" field.

func UserTitleGTE

func UserTitleGTE(v string) predicate.User

UserTitleGTE applies the GTE predicate on the "user_title" field.

func UserTitleHasPrefix

func UserTitleHasPrefix(v string) predicate.User

UserTitleHasPrefix applies the HasPrefix predicate on the "user_title" field.

func UserTitleHasSuffix

func UserTitleHasSuffix(v string) predicate.User

UserTitleHasSuffix applies the HasSuffix predicate on the "user_title" field.

func UserTitleIn

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

UserTitleIn applies the In predicate on the "user_title" field.

func UserTitleLT

func UserTitleLT(v string) predicate.User

UserTitleLT applies the LT predicate on the "user_title" field.

func UserTitleLTE

func UserTitleLTE(v string) predicate.User

UserTitleLTE applies the LTE predicate on the "user_title" field.

func UserTitleNEQ

func UserTitleNEQ(v string) predicate.User

UserTitleNEQ applies the NEQ predicate on the "user_title" field.

func UserTitleNotIn

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

UserTitleNotIn applies the NotIn predicate on the "user_title" 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