Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func ID(id int) predicate.User
- func IDEQ(id int) predicate.User
- func IDGT(id int) predicate.User
- func IDGTE(id int) predicate.User
- func IDIn(ids ...int) predicate.User
- func IDLT(id int) predicate.User
- func IDLTE(id int) predicate.User
- func IDNEQ(id int) predicate.User
- func IDNotIn(ids ...int) predicate.User
- func LastActive(v time.Time) predicate.User
- func LastActiveEQ(v time.Time) predicate.User
- func LastActiveGT(v time.Time) predicate.User
- func LastActiveGTE(v time.Time) predicate.User
- func LastActiveIn(vs ...time.Time) predicate.User
- func LastActiveLT(v time.Time) predicate.User
- func LastActiveLTE(v time.Time) predicate.User
- func LastActiveNEQ(v time.Time) predicate.User
- func LastActiveNotIn(vs ...time.Time) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func UserID(v uuid.UUID) predicate.User
- func UserIDEQ(v uuid.UUID) predicate.User
- func UserIDGT(v uuid.UUID) predicate.User
- func UserIDGTE(v uuid.UUID) predicate.User
- func UserIDIn(vs ...uuid.UUID) predicate.User
- func UserIDLT(v uuid.UUID) predicate.User
- func UserIDLTE(v uuid.UUID) predicate.User
- func UserIDNEQ(v uuid.UUID) predicate.User
- func UserIDNotIn(vs ...uuid.UUID) predicate.User
- func UserName(v string) predicate.User
- func UserNameContains(v string) predicate.User
- func UserNameContainsFold(v string) predicate.User
- func UserNameEQ(v string) predicate.User
- func UserNameEqualFold(v string) predicate.User
- func UserNameGT(v string) predicate.User
- func UserNameGTE(v string) predicate.User
- func UserNameHasPrefix(v string) predicate.User
- func UserNameHasSuffix(v string) predicate.User
- func UserNameIn(vs ...string) predicate.User
- func UserNameLT(v string) predicate.User
- func UserNameLTE(v string) predicate.User
- func UserNameNEQ(v string) predicate.User
- func UserNameNotIn(vs ...string) predicate.User
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
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" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldUserName holds the string denoting the user_name field in the database. FieldUserName = "user_name" // FieldLastActive holds the string denoting the last_active field in the database. FieldLastActive = "last_active" // Table holds the table name of the user in the database. Table = "users" )
Variables ¶
var ( // DefaultUserID holds the default value on creation for the "user_id" field. DefaultUserID func() uuid.UUID // UserNameValidator is a validator for the "user_name" field. It is called by the builders before save. UserNameValidator func(string) error // DefaultLastActive holds the default value on creation for the "last_active" field. DefaultLastActive time.Time // UpdateDefaultLastActive holds the default value on update for the "last_active" field. UpdateDefaultLastActive func() time.Time )
var Columns = []string{ FieldID, FieldUserID, FieldUserName, FieldLastActive, }
Columns holds all SQL columns for user fields.
Functions ¶
func LastActive ¶
LastActive applies equality check predicate on the "last_active" field. It's identical to LastActiveEQ.
func LastActiveEQ ¶
LastActiveEQ applies the EQ predicate on the "last_active" field.
func LastActiveGT ¶
LastActiveGT applies the GT predicate on the "last_active" field.
func LastActiveGTE ¶
LastActiveGTE applies the GTE predicate on the "last_active" field.
func LastActiveIn ¶
LastActiveIn applies the In predicate on the "last_active" field.
func LastActiveLT ¶
LastActiveLT applies the LT predicate on the "last_active" field.
func LastActiveLTE ¶
LastActiveLTE applies the LTE predicate on the "last_active" field.
func LastActiveNEQ ¶
LastActiveNEQ applies the NEQ predicate on the "last_active" field.
func LastActiveNotIn ¶
LastActiveNotIn applies the NotIn predicate on the "last_active" field.
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func UserName ¶
UserName applies equality check predicate on the "user_name" field. It's identical to UserNameEQ.
func UserNameContains ¶
UserNameContains applies the Contains predicate on the "user_name" field.
func UserNameContainsFold ¶
UserNameContainsFold applies the ContainsFold predicate on the "user_name" field.
func UserNameEQ ¶
UserNameEQ applies the EQ predicate on the "user_name" field.
func UserNameEqualFold ¶
UserNameEqualFold applies the EqualFold predicate on the "user_name" field.
func UserNameGT ¶
UserNameGT applies the GT predicate on the "user_name" field.
func UserNameGTE ¶
UserNameGTE applies the GTE predicate on the "user_name" field.
func UserNameHasPrefix ¶
UserNameHasPrefix applies the HasPrefix predicate on the "user_name" field.
func UserNameHasSuffix ¶
UserNameHasSuffix applies the HasSuffix predicate on the "user_name" field.
func UserNameIn ¶
UserNameIn applies the In predicate on the "user_name" field.
func UserNameLT ¶
UserNameLT applies the LT predicate on the "user_name" field.
func UserNameLTE ¶
UserNameLTE applies the LTE predicate on the "user_name" field.
func UserNameNEQ ¶
UserNameNEQ applies the NEQ predicate on the "user_name" field.
func UserNameNotIn ¶
UserNameNotIn applies the NotIn predicate on the "user_name" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the User queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastActive ¶
func ByLastActive(opts ...sql.OrderTermOption) OrderOption
ByLastActive orders the results by the last_active field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.
func ByUserName ¶
func ByUserName(opts ...sql.OrderTermOption) OrderOption
ByUserName orders the results by the user_name field.