userprofile

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

View Source
var Columns = []string{
	FieldID,
	FieldName,
	FieldUUID,
}

Columns holds all SQL columns for userprofile fields.

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

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

func ID(id int) predicate.UserProfile

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.UserProfile

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.UserProfile

IDGT applies the GT predicate on the ID field.

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 IDLT

func IDLT(id int) predicate.UserProfile

IDLT applies the LT 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

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

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

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

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

Jump to

Keyboard shortcuts

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