Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Texture) predicate.Texture
- func HasCreatedUser() predicate.Texture
- func HasCreatedUserWith(preds ...predicate.User) predicate.Texture
- func HasUserProfile() predicate.Texture
- func HasUserProfileWith(preds ...predicate.UserProfile) predicate.Texture
- func HasUsertexture() predicate.Texture
- func HasUsertextureWith(preds ...predicate.UserTexture) predicate.Texture
- func ID(id int) predicate.Texture
- func IDEQ(id int) predicate.Texture
- func IDGT(id int) predicate.Texture
- func IDGTE(id int) predicate.Texture
- func IDIn(ids ...int) predicate.Texture
- func IDLT(id int) predicate.Texture
- func IDLTE(id int) predicate.Texture
- func IDNEQ(id int) predicate.Texture
- func IDNotIn(ids ...int) predicate.Texture
- func Not(p predicate.Texture) predicate.Texture
- func Or(predicates ...predicate.Texture) predicate.Texture
- func TextureHash(v string) predicate.Texture
- func TextureHashContains(v string) predicate.Texture
- func TextureHashContainsFold(v string) predicate.Texture
- func TextureHashEQ(v string) predicate.Texture
- func TextureHashEqualFold(v string) predicate.Texture
- func TextureHashGT(v string) predicate.Texture
- func TextureHashGTE(v string) predicate.Texture
- func TextureHashHasPrefix(v string) predicate.Texture
- func TextureHashHasSuffix(v string) predicate.Texture
- func TextureHashIn(vs ...string) predicate.Texture
- func TextureHashLT(v string) predicate.Texture
- func TextureHashLTE(v string) predicate.Texture
- func TextureHashNEQ(v string) predicate.Texture
- func TextureHashNotIn(vs ...string) predicate.Texture
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByTextureHash(opts ...sql.OrderTermOption) OrderOption
- func ByUserProfile(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByUserProfileCount(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 texture type in the database. Label = "texture" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTextureHash holds the string denoting the texture_hash field in the database. FieldTextureHash = "texture_hash" // EdgeCreatedUser holds the string denoting the created_user edge name in mutations. EdgeCreatedUser = "created_user" // EdgeUserProfile holds the string denoting the user_profile edge name in mutations. EdgeUserProfile = "user_profile" // EdgeUsertexture holds the string denoting the usertexture edge name in mutations. EdgeUsertexture = "usertexture" // Table holds the table name of the texture in the database. Table = "textures" // CreatedUserTable is the table that holds the created_user relation/edge. CreatedUserTable = "textures" // CreatedUserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. CreatedUserInverseTable = "users" // CreatedUserColumn is the table column denoting the created_user relation/edge. CreatedUserColumn = "texture_created_user" // UserProfileTable is the table that holds the user_profile relation/edge. The primary key declared below. UserProfileTable = "user_textures" // UserProfileInverseTable is the table name for the UserProfile entity. // It exists in this package in order to avoid circular dependency with the "userprofile" package. UserProfileInverseTable = "user_profiles" // 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 = "texture_id" )
Variables ¶
var Columns = []string{ FieldID, FieldTextureHash, }
Columns holds all SQL columns for texture fields.
var ForeignKeys = []string{
"texture_created_user",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "textures" table and are not defined as standalone fields in the schema.
var ( // UserProfilePrimaryKey and UserProfileColumn2 are the table columns denoting the // primary key for the user_profile relation (M2M). UserProfilePrimaryKey = []string{"texture_id", "user_profile_id"} )
Functions ¶
func HasCreatedUser ¶
HasCreatedUser applies the HasEdge predicate on the "created_user" edge.
func HasCreatedUserWith ¶
HasCreatedUserWith applies the HasEdge predicate on the "created_user" edge with a given conditions (other predicates).
func HasUserProfile ¶
HasUserProfile applies the HasEdge predicate on the "user_profile" edge.
func HasUserProfileWith ¶
func HasUserProfileWith(preds ...predicate.UserProfile) predicate.Texture
HasUserProfileWith applies the HasEdge predicate on the "user_profile" edge with a given conditions (other predicates).
func HasUsertexture ¶
HasUsertexture applies the HasEdge predicate on the "usertexture" edge.
func HasUsertextureWith ¶
func HasUsertextureWith(preds ...predicate.UserTexture) predicate.Texture
HasUsertextureWith applies the HasEdge predicate on the "usertexture" edge with a given conditions (other predicates).
func TextureHash ¶
TextureHash applies equality check predicate on the "texture_hash" field. It's identical to TextureHashEQ.
func TextureHashContains ¶
TextureHashContains applies the Contains predicate on the "texture_hash" field.
func TextureHashContainsFold ¶
TextureHashContainsFold applies the ContainsFold predicate on the "texture_hash" field.
func TextureHashEQ ¶
TextureHashEQ applies the EQ predicate on the "texture_hash" field.
func TextureHashEqualFold ¶
TextureHashEqualFold applies the EqualFold predicate on the "texture_hash" field.
func TextureHashGT ¶
TextureHashGT applies the GT predicate on the "texture_hash" field.
func TextureHashGTE ¶
TextureHashGTE applies the GTE predicate on the "texture_hash" field.
func TextureHashHasPrefix ¶
TextureHashHasPrefix applies the HasPrefix predicate on the "texture_hash" field.
func TextureHashHasSuffix ¶
TextureHashHasSuffix applies the HasSuffix predicate on the "texture_hash" field.
func TextureHashIn ¶
TextureHashIn applies the In predicate on the "texture_hash" field.
func TextureHashLT ¶
TextureHashLT applies the LT predicate on the "texture_hash" field.
func TextureHashLTE ¶
TextureHashLTE applies the LTE predicate on the "texture_hash" field.
func TextureHashNEQ ¶
TextureHashNEQ applies the NEQ predicate on the "texture_hash" field.
func TextureHashNotIn ¶
TextureHashNotIn applies the NotIn predicate on the "texture_hash" 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 Texture queries.
func ByCreatedUserField ¶
func ByCreatedUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByCreatedUserField orders the results by created_user field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByTextureHash ¶
func ByTextureHash(opts ...sql.OrderTermOption) OrderOption
ByTextureHash orders the results by the texture_hash field.
func ByUserProfile ¶
func ByUserProfile(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByUserProfile orders the results by user_profile terms.
func ByUserProfileCount ¶
func ByUserProfileCount(opts ...sql.OrderTermOption) OrderOption
ByUserProfileCount orders the results by user_profile count.
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.