Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UserProfile) predicate.UserProfile
- func HasTexture() predicate.UserProfile
- func HasTextureWith(preds ...predicate.Texture) predicate.UserProfile
- func HasUser() predicate.UserProfile
- func HasUserWith(preds ...predicate.User) predicate.UserProfile
- func HasUsertexture() predicate.UserProfile
- func HasUsertextureWith(preds ...predicate.UserTexture) predicate.UserProfile
- func ID(id int) predicate.UserProfile
- func IDEQ(id int) predicate.UserProfile
- func IDGT(id int) predicate.UserProfile
- func IDGTE(id int) predicate.UserProfile
- func IDIn(ids ...int) predicate.UserProfile
- func IDLT(id int) predicate.UserProfile
- func IDLTE(id int) predicate.UserProfile
- func IDNEQ(id int) predicate.UserProfile
- func IDNotIn(ids ...int) predicate.UserProfile
- func Name(v string) predicate.UserProfile
- func NameContains(v string) predicate.UserProfile
- func NameContainsFold(v string) predicate.UserProfile
- func NameEQ(v string) predicate.UserProfile
- func NameEqualFold(v string) predicate.UserProfile
- func NameGT(v string) predicate.UserProfile
- func NameGTE(v string) predicate.UserProfile
- func NameHasPrefix(v string) predicate.UserProfile
- func NameHasSuffix(v string) predicate.UserProfile
- func NameIn(vs ...string) predicate.UserProfile
- func NameLT(v string) predicate.UserProfile
- func NameLTE(v string) predicate.UserProfile
- func NameNEQ(v string) predicate.UserProfile
- func NameNotIn(vs ...string) predicate.UserProfile
- func Not(p predicate.UserProfile) predicate.UserProfile
- func Or(predicates ...predicate.UserProfile) predicate.UserProfile
- func UUID(v string) predicate.UserProfile
- func UUIDContains(v string) predicate.UserProfile
- func UUIDContainsFold(v string) predicate.UserProfile
- func UUIDEQ(v string) predicate.UserProfile
- func UUIDEqualFold(v string) predicate.UserProfile
- func UUIDGT(v string) predicate.UserProfile
- func UUIDGTE(v string) predicate.UserProfile
- func UUIDHasPrefix(v string) predicate.UserProfile
- func UUIDHasSuffix(v string) predicate.UserProfile
- func UUIDIn(vs ...string) predicate.UserProfile
- func UUIDLT(v string) predicate.UserProfile
- func UUIDLTE(v string) predicate.UserProfile
- func UUIDNEQ(v string) predicate.UserProfile
- func UUIDNotIn(vs ...string) predicate.UserProfile
- func ValidColumn(column string) bool
- type OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByTexture(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTextureCount(opts ...sql.OrderTermOption) OrderOption
- func ByUUID(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUsertexture(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByUsertextureCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the userprofile type in the database. Label = "user_profile" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldUUID holds the string denoting the uuid field in the database. FieldUUID = "uuid" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeTexture holds the string denoting the texture edge name in mutations. EdgeTexture = "texture" // EdgeUsertexture holds the string denoting the usertexture edge name in mutations. EdgeUsertexture = "usertexture" // Table holds the table name of the userprofile in the database. Table = "user_profiles" // UserTable is the table that holds the user relation/edge. UserTable = "user_profiles" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_profile" // TextureTable is the table that holds the texture relation/edge. The primary key declared below. TextureTable = "user_textures" // TextureInverseTable is the table name for the Texture entity. // It exists in this package in order to avoid circular dependency with the "texture" package. TextureInverseTable = "textures" // UsertextureTable is the table that holds the usertexture relation/edge. UsertextureTable = "user_textures" // UsertextureInverseTable is the table name for the UserTexture entity. // It exists in this package in order to avoid circular dependency with the "usertexture" package. UsertextureInverseTable = "user_textures" // UsertextureColumn is the table column denoting the usertexture relation/edge. UsertextureColumn = "user_profile_id" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldUUID, }
Columns holds all SQL columns for userprofile fields.
var ForeignKeys = []string{
"user_profile",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "user_profiles" table and are not defined as standalone fields in the schema.
var ( // TexturePrimaryKey and TextureColumn2 are the table columns denoting the // primary key for the texture relation (M2M). TexturePrimaryKey = []string{"texture_id", "user_profile_id"} )
Functions ¶
func And ¶
func And(predicates ...predicate.UserProfile) predicate.UserProfile
And groups predicates with the AND operator between them.
func HasTexture ¶
func HasTexture() predicate.UserProfile
HasTexture applies the HasEdge predicate on the "texture" edge.
func HasTextureWith ¶
func HasTextureWith(preds ...predicate.Texture) predicate.UserProfile
HasTextureWith applies the HasEdge predicate on the "texture" edge with a given conditions (other predicates).
func HasUser ¶
func HasUser() predicate.UserProfile
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.UserProfile
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func HasUsertexture ¶
func HasUsertexture() predicate.UserProfile
HasUsertexture applies the HasEdge predicate on the "usertexture" edge.
func HasUsertextureWith ¶
func HasUsertextureWith(preds ...predicate.UserTexture) predicate.UserProfile
HasUsertextureWith applies the HasEdge predicate on the "usertexture" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.UserProfile
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.UserProfile
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.UserProfile
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.UserProfile
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.UserProfile
IDNotIn applies the NotIn predicate on the ID field.
func Name ¶
func Name(v string) predicate.UserProfile
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.UserProfile
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.UserProfile
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.UserProfile
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.UserProfile
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.UserProfile
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.UserProfile
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.UserProfile
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.UserProfile
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.UserProfile
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.UserProfile
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.UserProfile
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.UserProfile
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.UserProfile
NameNotIn applies the NotIn predicate on the "name" field.
func Not ¶
func Not(p predicate.UserProfile) predicate.UserProfile
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.UserProfile) predicate.UserProfile
Or groups predicates with the OR operator between them.
func UUID ¶
func UUID(v string) predicate.UserProfile
UUID applies equality check predicate on the "uuid" field. It's identical to UUIDEQ.
func UUIDContains ¶
func UUIDContains(v string) predicate.UserProfile
UUIDContains applies the Contains predicate on the "uuid" field.
func UUIDContainsFold ¶
func UUIDContainsFold(v string) predicate.UserProfile
UUIDContainsFold applies the ContainsFold predicate on the "uuid" field.
func UUIDEQ ¶
func UUIDEQ(v string) predicate.UserProfile
UUIDEQ applies the EQ predicate on the "uuid" field.
func UUIDEqualFold ¶
func UUIDEqualFold(v string) predicate.UserProfile
UUIDEqualFold applies the EqualFold predicate on the "uuid" field.
func UUIDGT ¶
func UUIDGT(v string) predicate.UserProfile
UUIDGT applies the GT predicate on the "uuid" field.
func UUIDGTE ¶
func UUIDGTE(v string) predicate.UserProfile
UUIDGTE applies the GTE predicate on the "uuid" field.
func UUIDHasPrefix ¶
func UUIDHasPrefix(v string) predicate.UserProfile
UUIDHasPrefix applies the HasPrefix predicate on the "uuid" field.
func UUIDHasSuffix ¶
func UUIDHasSuffix(v string) predicate.UserProfile
UUIDHasSuffix applies the HasSuffix predicate on the "uuid" field.
func UUIDIn ¶
func UUIDIn(vs ...string) predicate.UserProfile
UUIDIn applies the In predicate on the "uuid" field.
func UUIDLT ¶
func UUIDLT(v string) predicate.UserProfile
UUIDLT applies the LT predicate on the "uuid" field.
func UUIDLTE ¶
func UUIDLTE(v string) predicate.UserProfile
UUIDLTE applies the LTE predicate on the "uuid" field.
func UUIDNEQ ¶
func UUIDNEQ(v string) predicate.UserProfile
UUIDNEQ applies the NEQ predicate on the "uuid" field.
func UUIDNotIn ¶
func UUIDNotIn(vs ...string) predicate.UserProfile
UUIDNotIn applies the NotIn predicate on the "uuid" 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 UserProfile queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByTexture ¶
func ByTexture(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTexture orders the results by texture terms.
func ByTextureCount ¶
func ByTextureCount(opts ...sql.OrderTermOption) OrderOption
ByTextureCount orders the results by texture count.
func ByUUID ¶
func ByUUID(opts ...sql.OrderTermOption) OrderOption
ByUUID orders the results by the uuid field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.
func ByUsertexture ¶
func ByUsertexture(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByUsertexture orders the results by usertexture terms.
func ByUsertextureCount ¶
func ByUsertextureCount(opts ...sql.OrderTermOption) OrderOption
ByUsertextureCount orders the results by usertexture count.