Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.BodyPart) predicate.BodyPart
- func HasHustlerBeards() predicate.BodyPart
- func HasHustlerBeardsWith(preds ...predicate.Hustler) predicate.BodyPart
- func HasHustlerBodies() predicate.BodyPart
- func HasHustlerBodiesWith(preds ...predicate.Hustler) predicate.BodyPart
- func HasHustlerHairs() predicate.BodyPart
- func HasHustlerHairsWith(preds ...predicate.Hustler) predicate.BodyPart
- func ID(id string) predicate.BodyPart
- func IDEQ(id string) predicate.BodyPart
- func IDGT(id string) predicate.BodyPart
- func IDGTE(id string) predicate.BodyPart
- func IDIn(ids ...string) predicate.BodyPart
- func IDLT(id string) predicate.BodyPart
- func IDLTE(id string) predicate.BodyPart
- func IDNEQ(id string) predicate.BodyPart
- func IDNotIn(ids ...string) predicate.BodyPart
- func Not(p predicate.BodyPart) predicate.BodyPart
- func Or(predicates ...predicate.BodyPart) predicate.BodyPart
- func Rle(v string) predicate.BodyPart
- func RleContains(v string) predicate.BodyPart
- func RleContainsFold(v string) predicate.BodyPart
- func RleEQ(v string) predicate.BodyPart
- func RleEqualFold(v string) predicate.BodyPart
- func RleGT(v string) predicate.BodyPart
- func RleGTE(v string) predicate.BodyPart
- func RleHasPrefix(v string) predicate.BodyPart
- func RleHasSuffix(v string) predicate.BodyPart
- func RleIn(vs ...string) predicate.BodyPart
- func RleLT(v string) predicate.BodyPart
- func RleLTE(v string) predicate.BodyPart
- func RleNEQ(v string) predicate.BodyPart
- func RleNotIn(vs ...string) predicate.BodyPart
- func SexEQ(v Sex) predicate.BodyPart
- func SexIn(vs ...Sex) predicate.BodyPart
- func SexNEQ(v Sex) predicate.BodyPart
- func SexNotIn(vs ...Sex) predicate.BodyPart
- func SexValidator(s Sex) error
- func Sprite(v string) predicate.BodyPart
- func SpriteContains(v string) predicate.BodyPart
- func SpriteContainsFold(v string) predicate.BodyPart
- func SpriteEQ(v string) predicate.BodyPart
- func SpriteEqualFold(v string) predicate.BodyPart
- func SpriteGT(v string) predicate.BodyPart
- func SpriteGTE(v string) predicate.BodyPart
- func SpriteHasPrefix(v string) predicate.BodyPart
- func SpriteHasSuffix(v string) predicate.BodyPart
- func SpriteIn(vs ...string) predicate.BodyPart
- func SpriteIsNil() predicate.BodyPart
- func SpriteLT(v string) predicate.BodyPart
- func SpriteLTE(v string) predicate.BodyPart
- func SpriteNEQ(v string) predicate.BodyPart
- func SpriteNotIn(vs ...string) predicate.BodyPart
- func SpriteNotNil() predicate.BodyPart
- func TypeEQ(v Type) predicate.BodyPart
- func TypeIn(vs ...Type) predicate.BodyPart
- func TypeNEQ(v Type) predicate.BodyPart
- func TypeNotIn(vs ...Type) predicate.BodyPart
- func TypeValidator(_type Type) error
- func ValidColumn(column string) bool
- type Sex
- type Type
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldType, FieldSex, FieldRle, FieldSprite, }
Columns holds all SQL columns for bodypart fields.
Functions ¶
func HasHustlerBeards ¶
HasHustlerBeards applies the HasEdge predicate on the "hustler_beards" edge.
func HasHustlerBeardsWith ¶
HasHustlerBeardsWith applies the HasEdge predicate on the "hustler_beards" edge with a given conditions (other predicates).
func HasHustlerBodies ¶
HasHustlerBodies applies the HasEdge predicate on the "hustler_bodies" edge.
func HasHustlerBodiesWith ¶
HasHustlerBodiesWith applies the HasEdge predicate on the "hustler_bodies" edge with a given conditions (other predicates).
func HasHustlerHairs ¶
HasHustlerHairs applies the HasEdge predicate on the "hustler_hairs" edge.
func HasHustlerHairsWith ¶
HasHustlerHairsWith applies the HasEdge predicate on the "hustler_hairs" edge with a given conditions (other predicates).
func RleContains ¶
RleContains applies the Contains predicate on the "rle" field.
func RleContainsFold ¶
RleContainsFold applies the ContainsFold predicate on the "rle" field.
func RleEqualFold ¶
RleEqualFold applies the EqualFold predicate on the "rle" field.
func RleHasPrefix ¶
RleHasPrefix applies the HasPrefix predicate on the "rle" field.
func RleHasSuffix ¶
RleHasSuffix applies the HasSuffix predicate on the "rle" field.
func SexValidator ¶
SexValidator is a validator for the "sex" field enum values. It is called by the builders before save.
func Sprite ¶
Sprite applies equality check predicate on the "sprite" field. It's identical to SpriteEQ.
func SpriteContains ¶
SpriteContains applies the Contains predicate on the "sprite" field.
func SpriteContainsFold ¶
SpriteContainsFold applies the ContainsFold predicate on the "sprite" field.
func SpriteEqualFold ¶
SpriteEqualFold applies the EqualFold predicate on the "sprite" field.
func SpriteHasPrefix ¶
SpriteHasPrefix applies the HasPrefix predicate on the "sprite" field.
func SpriteHasSuffix ¶
SpriteHasSuffix applies the HasSuffix predicate on the "sprite" field.
func SpriteIsNil ¶
SpriteIsNil applies the IsNil predicate on the "sprite" field.
func SpriteNotIn ¶
SpriteNotIn applies the NotIn predicate on the "sprite" field.
func SpriteNotNil ¶
SpriteNotNil applies the NotNil predicate on the "sprite" field.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func ValidColumn ¶
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.
func (Sex) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Sex) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.
type Type ¶
type Type string
Type defines the type for the "type" enum field.
func (Type) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Type) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.