Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func Email(v string) predicate.User
- func EmailContains(v string) predicate.User
- func EmailContainsFold(v string) predicate.User
- func EmailEQ(v string) predicate.User
- func EmailEqualFold(v string) predicate.User
- func EmailGT(v string) predicate.User
- func EmailGTE(v string) predicate.User
- func EmailHasPrefix(v string) predicate.User
- func EmailHasSuffix(v string) predicate.User
- func EmailIn(vs ...string) predicate.User
- func EmailLT(v string) predicate.User
- func EmailLTE(v string) predicate.User
- func EmailNEQ(v string) predicate.User
- func EmailNotIn(vs ...string) predicate.User
- func HasCreatedTexture() predicate.User
- func HasCreatedTextureWith(preds ...predicate.Texture) predicate.User
- func HasProfile() predicate.User
- func HasProfileWith(preds ...predicate.UserProfile) predicate.User
- func HasToken() predicate.User
- func HasTokenWith(preds ...predicate.UserToken) 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 Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func Password(v string) predicate.User
- func PasswordContains(v string) predicate.User
- func PasswordContainsFold(v string) predicate.User
- func PasswordEQ(v string) predicate.User
- func PasswordEqualFold(v string) predicate.User
- func PasswordGT(v string) predicate.User
- func PasswordGTE(v string) predicate.User
- func PasswordHasPrefix(v string) predicate.User
- func PasswordHasSuffix(v string) predicate.User
- func PasswordIn(vs ...string) predicate.User
- func PasswordLT(v string) predicate.User
- func PasswordLTE(v string) predicate.User
- func PasswordNEQ(v string) predicate.User
- func PasswordNotIn(vs ...string) predicate.User
- func RegIP(v string) predicate.User
- func RegIPContains(v string) predicate.User
- func RegIPContainsFold(v string) predicate.User
- func RegIPEQ(v string) predicate.User
- func RegIPEqualFold(v string) predicate.User
- func RegIPGT(v string) predicate.User
- func RegIPGTE(v string) predicate.User
- func RegIPHasPrefix(v string) predicate.User
- func RegIPHasSuffix(v string) predicate.User
- func RegIPIn(vs ...string) predicate.User
- func RegIPLT(v string) predicate.User
- func RegIPLTE(v string) predicate.User
- func RegIPNEQ(v string) predicate.User
- func RegIPNotIn(vs ...string) predicate.User
- func RegTime(v int64) predicate.User
- func RegTimeEQ(v int64) predicate.User
- func RegTimeGT(v int64) predicate.User
- func RegTimeGTE(v int64) predicate.User
- func RegTimeIn(vs ...int64) predicate.User
- func RegTimeLT(v int64) predicate.User
- func RegTimeLTE(v int64) predicate.User
- func RegTimeNEQ(v int64) predicate.User
- func RegTimeNotIn(vs ...int64) predicate.User
- func Salt(v string) predicate.User
- func SaltContains(v string) predicate.User
- func SaltContainsFold(v string) predicate.User
- func SaltEQ(v string) predicate.User
- func SaltEqualFold(v string) predicate.User
- func SaltGT(v string) predicate.User
- func SaltGTE(v string) predicate.User
- func SaltHasPrefix(v string) predicate.User
- func SaltHasSuffix(v string) predicate.User
- func SaltIn(vs ...string) predicate.User
- func SaltLT(v string) predicate.User
- func SaltLTE(v string) predicate.User
- func SaltNEQ(v string) predicate.User
- func SaltNotIn(vs ...string) predicate.User
- func State(v int) predicate.User
- func StateEQ(v int) predicate.User
- func StateGT(v int) predicate.User
- func StateGTE(v int) predicate.User
- func StateIn(vs ...int) predicate.User
- func StateLT(v int) predicate.User
- func StateLTE(v int) predicate.User
- func StateNEQ(v int) predicate.User
- func StateNotIn(vs ...int) predicate.User
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedTexture(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCreatedTextureCount(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByPassword(opts ...sql.OrderTermOption) OrderOption
- func ByProfileField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByRegIP(opts ...sql.OrderTermOption) OrderOption
- func ByRegTime(opts ...sql.OrderTermOption) OrderOption
- func BySalt(opts ...sql.OrderTermOption) OrderOption
- func ByState(opts ...sql.OrderTermOption) OrderOption
- func ByTokenField(field string, opts ...sql.OrderTermOption) 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" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // FieldPassword holds the string denoting the password field in the database. FieldPassword = "password" // FieldSalt holds the string denoting the salt field in the database. FieldSalt = "salt" // FieldRegIP holds the string denoting the reg_ip field in the database. FieldRegIP = "reg_ip" // FieldState holds the string denoting the state field in the database. FieldState = "state" // FieldRegTime holds the string denoting the reg_time field in the database. FieldRegTime = "reg_time" // EdgeCreatedTexture holds the string denoting the created_texture edge name in mutations. EdgeCreatedTexture = "created_texture" // EdgeProfile holds the string denoting the profile edge name in mutations. EdgeProfile = "profile" // EdgeToken holds the string denoting the token edge name in mutations. EdgeToken = "token" // Table holds the table name of the user in the database. Table = "users" // CreatedTextureTable is the table that holds the created_texture relation/edge. CreatedTextureTable = "textures" // CreatedTextureInverseTable is the table name for the Texture entity. // It exists in this package in order to avoid circular dependency with the "texture" package. CreatedTextureInverseTable = "textures" // CreatedTextureColumn is the table column denoting the created_texture relation/edge. CreatedTextureColumn = "texture_created_user" // ProfileTable is the table that holds the profile relation/edge. ProfileTable = "user_profiles" // ProfileInverseTable is the table name for the UserProfile entity. // It exists in this package in order to avoid circular dependency with the "userprofile" package. ProfileInverseTable = "user_profiles" // ProfileColumn is the table column denoting the profile relation/edge. ProfileColumn = "user_profile" // TokenTable is the table that holds the token relation/edge. TokenTable = "user_tokens" // TokenInverseTable is the table name for the UserToken entity. // It exists in this package in order to avoid circular dependency with the "usertoken" package. TokenInverseTable = "user_tokens" // TokenColumn is the table column denoting the token relation/edge. TokenColumn = "user_token" )
Variables ¶
var Columns = []string{ FieldID, FieldEmail, FieldPassword, FieldSalt, FieldRegIP, FieldState, FieldRegTime, }
Columns holds all SQL columns for user fields.
Functions ¶
func Email ¶
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEqualFold ¶
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailHasPrefix ¶
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func HasCreatedTexture ¶
HasCreatedTexture applies the HasEdge predicate on the "created_texture" edge.
func HasCreatedTextureWith ¶
HasCreatedTextureWith applies the HasEdge predicate on the "created_texture" edge with a given conditions (other predicates).
func HasProfile ¶
HasProfile applies the HasEdge predicate on the "profile" edge.
func HasProfileWith ¶
func HasProfileWith(preds ...predicate.UserProfile) predicate.User
HasProfileWith applies the HasEdge predicate on the "profile" edge with a given conditions (other predicates).
func HasTokenWith ¶
HasTokenWith applies the HasEdge predicate on the "token" edge with a given conditions (other predicates).
func Password ¶
Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.
func PasswordContains ¶
PasswordContains applies the Contains predicate on the "password" field.
func PasswordContainsFold ¶
PasswordContainsFold applies the ContainsFold predicate on the "password" field.
func PasswordEQ ¶
PasswordEQ applies the EQ predicate on the "password" field.
func PasswordEqualFold ¶
PasswordEqualFold applies the EqualFold predicate on the "password" field.
func PasswordGT ¶
PasswordGT applies the GT predicate on the "password" field.
func PasswordGTE ¶
PasswordGTE applies the GTE predicate on the "password" field.
func PasswordHasPrefix ¶
PasswordHasPrefix applies the HasPrefix predicate on the "password" field.
func PasswordHasSuffix ¶
PasswordHasSuffix applies the HasSuffix predicate on the "password" field.
func PasswordIn ¶
PasswordIn applies the In predicate on the "password" field.
func PasswordLT ¶
PasswordLT applies the LT predicate on the "password" field.
func PasswordLTE ¶
PasswordLTE applies the LTE predicate on the "password" field.
func PasswordNEQ ¶
PasswordNEQ applies the NEQ predicate on the "password" field.
func PasswordNotIn ¶
PasswordNotIn applies the NotIn predicate on the "password" field.
func RegIP ¶
RegIP applies equality check predicate on the "reg_ip" field. It's identical to RegIPEQ.
func RegIPContains ¶
RegIPContains applies the Contains predicate on the "reg_ip" field.
func RegIPContainsFold ¶
RegIPContainsFold applies the ContainsFold predicate on the "reg_ip" field.
func RegIPEqualFold ¶
RegIPEqualFold applies the EqualFold predicate on the "reg_ip" field.
func RegIPHasPrefix ¶
RegIPHasPrefix applies the HasPrefix predicate on the "reg_ip" field.
func RegIPHasSuffix ¶
RegIPHasSuffix applies the HasSuffix predicate on the "reg_ip" field.
func RegIPNotIn ¶
RegIPNotIn applies the NotIn predicate on the "reg_ip" field.
func RegTime ¶
RegTime applies equality check predicate on the "reg_time" field. It's identical to RegTimeEQ.
func RegTimeGTE ¶
RegTimeGTE applies the GTE predicate on the "reg_time" field.
func RegTimeLTE ¶
RegTimeLTE applies the LTE predicate on the "reg_time" field.
func RegTimeNEQ ¶
RegTimeNEQ applies the NEQ predicate on the "reg_time" field.
func RegTimeNotIn ¶
RegTimeNotIn applies the NotIn predicate on the "reg_time" field.
func SaltContains ¶
SaltContains applies the Contains predicate on the "salt" field.
func SaltContainsFold ¶
SaltContainsFold applies the ContainsFold predicate on the "salt" field.
func SaltEqualFold ¶
SaltEqualFold applies the EqualFold predicate on the "salt" field.
func SaltHasPrefix ¶
SaltHasPrefix applies the HasPrefix predicate on the "salt" field.
func SaltHasSuffix ¶
SaltHasSuffix applies the HasSuffix predicate on the "salt" field.
func State ¶
State applies equality check predicate on the "state" field. It's identical to StateEQ.
func StateNotIn ¶
StateNotIn applies the NotIn predicate on the "state" 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 ByCreatedTexture ¶
func ByCreatedTexture(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByCreatedTexture orders the results by created_texture terms.
func ByCreatedTextureCount ¶
func ByCreatedTextureCount(opts ...sql.OrderTermOption) OrderOption
ByCreatedTextureCount orders the results by created_texture count.
func ByEmail ¶
func ByEmail(opts ...sql.OrderTermOption) OrderOption
ByEmail orders the results by the email field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByPassword ¶
func ByPassword(opts ...sql.OrderTermOption) OrderOption
ByPassword orders the results by the password field.
func ByProfileField ¶
func ByProfileField(field string, opts ...sql.OrderTermOption) OrderOption
ByProfileField orders the results by profile field.
func ByRegIP ¶
func ByRegIP(opts ...sql.OrderTermOption) OrderOption
ByRegIP orders the results by the reg_ip field.
func ByRegTime ¶
func ByRegTime(opts ...sql.OrderTermOption) OrderOption
ByRegTime orders the results by the reg_time field.
func BySalt ¶
func BySalt(opts ...sql.OrderTermOption) OrderOption
BySalt orders the results by the salt field.
func ByState ¶
func ByState(opts ...sql.OrderTermOption) OrderOption
ByState orders the results by the state field.
func ByTokenField ¶
func ByTokenField(field string, opts ...sql.OrderTermOption) OrderOption
ByTokenField orders the results by token field.