texture

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

Columns holds all SQL columns for texture fields.

View Source
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.

View Source
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 And

func And(predicates ...predicate.Texture) predicate.Texture

And groups predicates with the AND operator between them.

func HasCreatedUser

func HasCreatedUser() predicate.Texture

HasCreatedUser applies the HasEdge predicate on the "created_user" edge.

func HasCreatedUserWith

func HasCreatedUserWith(preds ...predicate.User) predicate.Texture

HasCreatedUserWith applies the HasEdge predicate on the "created_user" edge with a given conditions (other predicates).

func HasUserProfile

func HasUserProfile() predicate.Texture

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

func HasUsertexture() predicate.Texture

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 ID

func ID(id int) predicate.Texture

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Texture

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Texture

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Texture

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Texture

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Texture

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Texture

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Texture

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Texture

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Texture) predicate.Texture

Or groups predicates with the OR operator between them.

func TextureHash

func TextureHash(v string) predicate.Texture

TextureHash applies equality check predicate on the "texture_hash" field. It's identical to TextureHashEQ.

func TextureHashContains

func TextureHashContains(v string) predicate.Texture

TextureHashContains applies the Contains predicate on the "texture_hash" field.

func TextureHashContainsFold

func TextureHashContainsFold(v string) predicate.Texture

TextureHashContainsFold applies the ContainsFold predicate on the "texture_hash" field.

func TextureHashEQ

func TextureHashEQ(v string) predicate.Texture

TextureHashEQ applies the EQ predicate on the "texture_hash" field.

func TextureHashEqualFold

func TextureHashEqualFold(v string) predicate.Texture

TextureHashEqualFold applies the EqualFold predicate on the "texture_hash" field.

func TextureHashGT

func TextureHashGT(v string) predicate.Texture

TextureHashGT applies the GT predicate on the "texture_hash" field.

func TextureHashGTE

func TextureHashGTE(v string) predicate.Texture

TextureHashGTE applies the GTE predicate on the "texture_hash" field.

func TextureHashHasPrefix

func TextureHashHasPrefix(v string) predicate.Texture

TextureHashHasPrefix applies the HasPrefix predicate on the "texture_hash" field.

func TextureHashHasSuffix

func TextureHashHasSuffix(v string) predicate.Texture

TextureHashHasSuffix applies the HasSuffix predicate on the "texture_hash" field.

func TextureHashIn

func TextureHashIn(vs ...string) predicate.Texture

TextureHashIn applies the In predicate on the "texture_hash" field.

func TextureHashLT

func TextureHashLT(v string) predicate.Texture

TextureHashLT applies the LT predicate on the "texture_hash" field.

func TextureHashLTE

func TextureHashLTE(v string) predicate.Texture

TextureHashLTE applies the LTE predicate on the "texture_hash" field.

func TextureHashNEQ

func TextureHashNEQ(v string) predicate.Texture

TextureHashNEQ applies the NEQ predicate on the "texture_hash" field.

func TextureHashNotIn

func TextureHashNotIn(vs ...string) predicate.Texture

TextureHashNotIn applies the NotIn predicate on the "texture_hash" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL