bodypart

package
v0.0.0-...-3befcbb Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the bodypart type in the database.
	Label = "body_part"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldSex holds the string denoting the sex field in the database.
	FieldSex = "sex"
	// FieldRle holds the string denoting the rle field in the database.
	FieldRle = "rle"
	// FieldSprite holds the string denoting the sprite field in the database.
	FieldSprite = "sprite"
	// EdgeHustlerBodies holds the string denoting the hustler_bodies edge name in mutations.
	EdgeHustlerBodies = "hustler_bodies"
	// EdgeHustlerHairs holds the string denoting the hustler_hairs edge name in mutations.
	EdgeHustlerHairs = "hustler_hairs"
	// EdgeHustlerBeards holds the string denoting the hustler_beards edge name in mutations.
	EdgeHustlerBeards = "hustler_beards"
	// Table holds the table name of the bodypart in the database.
	Table = "body_parts"
	// HustlerBodiesTable is the table that holds the hustler_bodies relation/edge.
	HustlerBodiesTable = "hustlers"
	// HustlerBodiesInverseTable is the table name for the Hustler entity.
	// It exists in this package in order to avoid circular dependency with the "hustler" package.
	HustlerBodiesInverseTable = "hustlers"
	// HustlerBodiesColumn is the table column denoting the hustler_bodies relation/edge.
	HustlerBodiesColumn = "body_part_hustler_bodies"
	// HustlerHairsTable is the table that holds the hustler_hairs relation/edge.
	HustlerHairsTable = "hustlers"
	// HustlerHairsInverseTable is the table name for the Hustler entity.
	// It exists in this package in order to avoid circular dependency with the "hustler" package.
	HustlerHairsInverseTable = "hustlers"
	// HustlerHairsColumn is the table column denoting the hustler_hairs relation/edge.
	HustlerHairsColumn = "body_part_hustler_hairs"
	// HustlerBeardsTable is the table that holds the hustler_beards relation/edge.
	HustlerBeardsTable = "hustlers"
	// HustlerBeardsInverseTable is the table name for the Hustler entity.
	// It exists in this package in order to avoid circular dependency with the "hustler" package.
	HustlerBeardsInverseTable = "hustlers"
	// HustlerBeardsColumn is the table column denoting the hustler_beards relation/edge.
	HustlerBeardsColumn = "body_part_hustler_beards"
)

Variables

Columns holds all SQL columns for bodypart fields.

Functions

func And

func And(predicates ...predicate.BodyPart) predicate.BodyPart

And groups predicates with the AND operator between them.

func HasHustlerBeards

func HasHustlerBeards() predicate.BodyPart

HasHustlerBeards applies the HasEdge predicate on the "hustler_beards" edge.

func HasHustlerBeardsWith

func HasHustlerBeardsWith(preds ...predicate.Hustler) predicate.BodyPart

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

func HasHustlerBodies

func HasHustlerBodies() predicate.BodyPart

HasHustlerBodies applies the HasEdge predicate on the "hustler_bodies" edge.

func HasHustlerBodiesWith

func HasHustlerBodiesWith(preds ...predicate.Hustler) predicate.BodyPart

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

func HasHustlerHairs

func HasHustlerHairs() predicate.BodyPart

HasHustlerHairs applies the HasEdge predicate on the "hustler_hairs" edge.

func HasHustlerHairsWith

func HasHustlerHairsWith(preds ...predicate.Hustler) predicate.BodyPart

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

func ID

func ID(id string) predicate.BodyPart

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.BodyPart

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.BodyPart

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.BodyPart

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.BodyPart

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.BodyPart

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.BodyPart

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.BodyPart

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.BodyPart

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.BodyPart) predicate.BodyPart

Or groups predicates with the OR operator between them.

func Rle

func Rle(v string) predicate.BodyPart

Rle applies equality check predicate on the "rle" field. It's identical to RleEQ.

func RleContains

func RleContains(v string) predicate.BodyPart

RleContains applies the Contains predicate on the "rle" field.

func RleContainsFold

func RleContainsFold(v string) predicate.BodyPart

RleContainsFold applies the ContainsFold predicate on the "rle" field.

func RleEQ

func RleEQ(v string) predicate.BodyPart

RleEQ applies the EQ predicate on the "rle" field.

func RleEqualFold

func RleEqualFold(v string) predicate.BodyPart

RleEqualFold applies the EqualFold predicate on the "rle" field.

func RleGT

func RleGT(v string) predicate.BodyPart

RleGT applies the GT predicate on the "rle" field.

func RleGTE

func RleGTE(v string) predicate.BodyPart

RleGTE applies the GTE predicate on the "rle" field.

func RleHasPrefix

func RleHasPrefix(v string) predicate.BodyPart

RleHasPrefix applies the HasPrefix predicate on the "rle" field.

func RleHasSuffix

func RleHasSuffix(v string) predicate.BodyPart

RleHasSuffix applies the HasSuffix predicate on the "rle" field.

func RleIn

func RleIn(vs ...string) predicate.BodyPart

RleIn applies the In predicate on the "rle" field.

func RleLT

func RleLT(v string) predicate.BodyPart

RleLT applies the LT predicate on the "rle" field.

func RleLTE

func RleLTE(v string) predicate.BodyPart

RleLTE applies the LTE predicate on the "rle" field.

func RleNEQ

func RleNEQ(v string) predicate.BodyPart

RleNEQ applies the NEQ predicate on the "rle" field.

func RleNotIn

func RleNotIn(vs ...string) predicate.BodyPart

RleNotIn applies the NotIn predicate on the "rle" field.

func SexEQ

func SexEQ(v Sex) predicate.BodyPart

SexEQ applies the EQ predicate on the "sex" field.

func SexIn

func SexIn(vs ...Sex) predicate.BodyPart

SexIn applies the In predicate on the "sex" field.

func SexNEQ

func SexNEQ(v Sex) predicate.BodyPart

SexNEQ applies the NEQ predicate on the "sex" field.

func SexNotIn

func SexNotIn(vs ...Sex) predicate.BodyPart

SexNotIn applies the NotIn predicate on the "sex" field.

func SexValidator

func SexValidator(s Sex) error

SexValidator is a validator for the "sex" field enum values. It is called by the builders before save.

func Sprite

func Sprite(v string) predicate.BodyPart

Sprite applies equality check predicate on the "sprite" field. It's identical to SpriteEQ.

func SpriteContains

func SpriteContains(v string) predicate.BodyPart

SpriteContains applies the Contains predicate on the "sprite" field.

func SpriteContainsFold

func SpriteContainsFold(v string) predicate.BodyPart

SpriteContainsFold applies the ContainsFold predicate on the "sprite" field.

func SpriteEQ

func SpriteEQ(v string) predicate.BodyPart

SpriteEQ applies the EQ predicate on the "sprite" field.

func SpriteEqualFold

func SpriteEqualFold(v string) predicate.BodyPart

SpriteEqualFold applies the EqualFold predicate on the "sprite" field.

func SpriteGT

func SpriteGT(v string) predicate.BodyPart

SpriteGT applies the GT predicate on the "sprite" field.

func SpriteGTE

func SpriteGTE(v string) predicate.BodyPart

SpriteGTE applies the GTE predicate on the "sprite" field.

func SpriteHasPrefix

func SpriteHasPrefix(v string) predicate.BodyPart

SpriteHasPrefix applies the HasPrefix predicate on the "sprite" field.

func SpriteHasSuffix

func SpriteHasSuffix(v string) predicate.BodyPart

SpriteHasSuffix applies the HasSuffix predicate on the "sprite" field.

func SpriteIn

func SpriteIn(vs ...string) predicate.BodyPart

SpriteIn applies the In predicate on the "sprite" field.

func SpriteIsNil

func SpriteIsNil() predicate.BodyPart

SpriteIsNil applies the IsNil predicate on the "sprite" field.

func SpriteLT

func SpriteLT(v string) predicate.BodyPart

SpriteLT applies the LT predicate on the "sprite" field.

func SpriteLTE

func SpriteLTE(v string) predicate.BodyPart

SpriteLTE applies the LTE predicate on the "sprite" field.

func SpriteNEQ

func SpriteNEQ(v string) predicate.BodyPart

SpriteNEQ applies the NEQ predicate on the "sprite" field.

func SpriteNotIn

func SpriteNotIn(vs ...string) predicate.BodyPart

SpriteNotIn applies the NotIn predicate on the "sprite" field.

func SpriteNotNil

func SpriteNotNil() predicate.BodyPart

SpriteNotNil applies the NotNil predicate on the "sprite" field.

func TypeEQ

func TypeEQ(v Type) predicate.BodyPart

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

func TypeIn(vs ...Type) predicate.BodyPart

TypeIn applies the In predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v Type) predicate.BodyPart

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.BodyPart

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type Sex

type Sex string

Sex defines the type for the "sex" enum field.

const (
	SexMALE   Sex = "MALE"
	SexFEMALE Sex = "FEMALE"
)

Sex values.

func (Sex) MarshalGQL

func (s Sex) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Sex) String

func (s Sex) String() string

func (*Sex) UnmarshalGQL

func (s *Sex) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type Type

type Type string

Type defines the type for the "type" enum field.

const (
	TypeBODY  Type = "BODY"
	TypeHAIR  Type = "HAIR"
	TypeBEARD Type = "BEARD"
)

Type values.

func (Type) MarshalGQL

func (_type Type) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Type) String

func (_type Type) String() string

func (*Type) UnmarshalGQL

func (_type *Type) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

Jump to

Keyboard shortcuts

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