hustler

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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the hustler type in the database.
	Label = "hustler"
	// 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"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldTitle holds the string denoting the title field in the database.
	FieldTitle = "title"
	// FieldColor holds the string denoting the color field in the database.
	FieldColor = "color"
	// FieldBackground holds the string denoting the background field in the database.
	FieldBackground = "background"
	// FieldAge holds the string denoting the age field in the database.
	FieldAge = "age"
	// FieldSex holds the string denoting the sex field in the database.
	FieldSex = "sex"
	// FieldViewbox holds the string denoting the viewbox field in the database.
	FieldViewbox = "viewbox"
	// FieldOrder holds the string denoting the order field in the database.
	FieldOrder = "order"
	// FieldSvg holds the string denoting the svg field in the database.
	FieldSvg = "svg"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeWallet holds the string denoting the wallet edge name in mutations.
	EdgeWallet = "wallet"
	// EdgeWeapon holds the string denoting the weapon edge name in mutations.
	EdgeWeapon = "weapon"
	// EdgeClothes holds the string denoting the clothes edge name in mutations.
	EdgeClothes = "clothes"
	// EdgeVehicle holds the string denoting the vehicle edge name in mutations.
	EdgeVehicle = "vehicle"
	// EdgeWaist holds the string denoting the waist edge name in mutations.
	EdgeWaist = "waist"
	// EdgeFoot holds the string denoting the foot edge name in mutations.
	EdgeFoot = "foot"
	// EdgeHand holds the string denoting the hand edge name in mutations.
	EdgeHand = "hand"
	// EdgeDrug holds the string denoting the drug edge name in mutations.
	EdgeDrug = "drug"
	// EdgeNeck holds the string denoting the neck edge name in mutations.
	EdgeNeck = "neck"
	// EdgeRing holds the string denoting the ring edge name in mutations.
	EdgeRing = "ring"
	// EdgeAccessory holds the string denoting the accessory edge name in mutations.
	EdgeAccessory = "accessory"
	// EdgeBody holds the string denoting the body edge name in mutations.
	EdgeBody = "body"
	// EdgeHair holds the string denoting the hair edge name in mutations.
	EdgeHair = "hair"
	// EdgeBeard holds the string denoting the beard edge name in mutations.
	EdgeBeard = "beard"
	// EdgeIndex holds the string denoting the index edge name in mutations.
	EdgeIndex = "index"
	// Table holds the table name of the hustler in the database.
	Table = "hustlers"
	// WalletTable is the table that holds the wallet relation/edge.
	WalletTable = "hustlers"
	// WalletInverseTable is the table name for the Wallet entity.
	// It exists in this package in order to avoid circular dependency with the "wallet" package.
	WalletInverseTable = "wallets"
	// WalletColumn is the table column denoting the wallet relation/edge.
	WalletColumn = "wallet_hustlers"
	// WeaponTable is the table that holds the weapon relation/edge.
	WeaponTable = "hustlers"
	// WeaponInverseTable is the table name for the Item entity.
	// It exists in this package in order to avoid circular dependency with the "item" package.
	WeaponInverseTable = "items"
	// WeaponColumn is the table column denoting the weapon relation/edge.
	WeaponColumn = "item_hustler_weapons"
	// ClothesTable is the table that holds the clothes relation/edge.
	ClothesTable = "hustlers"
	// ClothesInverseTable is the table name for the Item entity.
	// It exists in this package in order to avoid circular dependency with the "item" package.
	ClothesInverseTable = "items"
	// ClothesColumn is the table column denoting the clothes relation/edge.
	ClothesColumn = "item_hustler_clothes"
	// VehicleTable is the table that holds the vehicle relation/edge.
	VehicleTable = "hustlers"
	// VehicleInverseTable is the table name for the Item entity.
	// It exists in this package in order to avoid circular dependency with the "item" package.
	VehicleInverseTable = "items"
	// VehicleColumn is the table column denoting the vehicle relation/edge.
	VehicleColumn = "item_hustler_vehicles"
	// WaistTable is the table that holds the waist relation/edge.
	WaistTable = "hustlers"
	// WaistInverseTable is the table name for the Item entity.
	// It exists in this package in order to avoid circular dependency with the "item" package.
	WaistInverseTable = "items"
	// WaistColumn is the table column denoting the waist relation/edge.
	WaistColumn = "item_hustler_waists"
	// FootTable is the table that holds the foot relation/edge.
	FootTable = "hustlers"
	// FootInverseTable is the table name for the Item entity.
	// It exists in this package in order to avoid circular dependency with the "item" package.
	FootInverseTable = "items"
	// FootColumn is the table column denoting the foot relation/edge.
	FootColumn = "item_hustler_feet"
	// HandTable is the table that holds the hand relation/edge.
	HandTable = "hustlers"
	// HandInverseTable is the table name for the Item entity.
	// It exists in this package in order to avoid circular dependency with the "item" package.
	HandInverseTable = "items"
	// HandColumn is the table column denoting the hand relation/edge.
	HandColumn = "item_hustler_hands"
	// DrugTable is the table that holds the drug relation/edge.
	DrugTable = "hustlers"
	// DrugInverseTable is the table name for the Item entity.
	// It exists in this package in order to avoid circular dependency with the "item" package.
	DrugInverseTable = "items"
	// DrugColumn is the table column denoting the drug relation/edge.
	DrugColumn = "item_hustler_drugs"
	// NeckTable is the table that holds the neck relation/edge.
	NeckTable = "hustlers"
	// NeckInverseTable is the table name for the Item entity.
	// It exists in this package in order to avoid circular dependency with the "item" package.
	NeckInverseTable = "items"
	// NeckColumn is the table column denoting the neck relation/edge.
	NeckColumn = "item_hustler_necks"
	// RingTable is the table that holds the ring relation/edge.
	RingTable = "hustlers"
	// RingInverseTable is the table name for the Item entity.
	// It exists in this package in order to avoid circular dependency with the "item" package.
	RingInverseTable = "items"
	// RingColumn is the table column denoting the ring relation/edge.
	RingColumn = "item_hustler_rings"
	// AccessoryTable is the table that holds the accessory relation/edge.
	AccessoryTable = "hustlers"
	// AccessoryInverseTable is the table name for the Item entity.
	// It exists in this package in order to avoid circular dependency with the "item" package.
	AccessoryInverseTable = "items"
	// AccessoryColumn is the table column denoting the accessory relation/edge.
	AccessoryColumn = "item_hustler_accessories"
	// BodyTable is the table that holds the body relation/edge.
	BodyTable = "hustlers"
	// BodyInverseTable is the table name for the BodyPart entity.
	// It exists in this package in order to avoid circular dependency with the "bodypart" package.
	BodyInverseTable = "body_parts"
	// BodyColumn is the table column denoting the body relation/edge.
	BodyColumn = "body_part_hustler_bodies"
	// HairTable is the table that holds the hair relation/edge.
	HairTable = "hustlers"
	// HairInverseTable is the table name for the BodyPart entity.
	// It exists in this package in order to avoid circular dependency with the "bodypart" package.
	HairInverseTable = "body_parts"
	// HairColumn is the table column denoting the hair relation/edge.
	HairColumn = "body_part_hustler_hairs"
	// BeardTable is the table that holds the beard relation/edge.
	BeardTable = "hustlers"
	// BeardInverseTable is the table name for the BodyPart entity.
	// It exists in this package in order to avoid circular dependency with the "bodypart" package.
	BeardInverseTable = "body_parts"
	// BeardColumn is the table column denoting the beard relation/edge.
	BeardColumn = "body_part_hustler_beards"
	// IndexTable is the table that holds the index relation/edge.
	IndexTable = "search_index"
	// IndexInverseTable is the table name for the Search entity.
	// It exists in this package in order to avoid circular dependency with the "search" package.
	IndexInverseTable = "search_index"
	// IndexColumn is the table column denoting the index relation/edge.
	IndexColumn = "hustler_index"
)
View Source
const DefaultSex = SexMALE

SexMALE is the default value of the Sex enum.

Variables

View Source
var (
	// DefaultViewbox holds the default value on creation for the "viewbox" field.
	DefaultViewbox []int
	// DefaultOrder holds the default value on creation for the "order" field.
	DefaultOrder []int
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
)

Columns holds all SQL columns for hustler fields.

View Source
var ForeignKeys = []string{
	"body_part_hustler_bodies",
	"body_part_hustler_hairs",
	"body_part_hustler_beards",
	"item_hustler_weapons",
	"item_hustler_clothes",
	"item_hustler_vehicles",
	"item_hustler_waists",
	"item_hustler_feet",
	"item_hustler_hands",
	"item_hustler_drugs",
	"item_hustler_necks",
	"item_hustler_rings",
	"item_hustler_accessories",
	"wallet_hustlers",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "hustlers" table and are not defined as standalone fields in the schema.

Functions

func Age

func Age(v uint64) predicate.Hustler

Age applies equality check predicate on the "age" field. It's identical to AgeEQ.

func AgeEQ

func AgeEQ(v uint64) predicate.Hustler

AgeEQ applies the EQ predicate on the "age" field.

func AgeGT

func AgeGT(v uint64) predicate.Hustler

AgeGT applies the GT predicate on the "age" field.

func AgeGTE

func AgeGTE(v uint64) predicate.Hustler

AgeGTE applies the GTE predicate on the "age" field.

func AgeIn

func AgeIn(vs ...uint64) predicate.Hustler

AgeIn applies the In predicate on the "age" field.

func AgeLT

func AgeLT(v uint64) predicate.Hustler

AgeLT applies the LT predicate on the "age" field.

func AgeLTE

func AgeLTE(v uint64) predicate.Hustler

AgeLTE applies the LTE predicate on the "age" field.

func AgeNEQ

func AgeNEQ(v uint64) predicate.Hustler

AgeNEQ applies the NEQ predicate on the "age" field.

func AgeNotIn

func AgeNotIn(vs ...uint64) predicate.Hustler

AgeNotIn applies the NotIn predicate on the "age" field.

func And

func And(predicates ...predicate.Hustler) predicate.Hustler

And groups predicates with the AND operator between them.

func Background

func Background(v string) predicate.Hustler

Background applies equality check predicate on the "background" field. It's identical to BackgroundEQ.

func BackgroundContains

func BackgroundContains(v string) predicate.Hustler

BackgroundContains applies the Contains predicate on the "background" field.

func BackgroundContainsFold

func BackgroundContainsFold(v string) predicate.Hustler

BackgroundContainsFold applies the ContainsFold predicate on the "background" field.

func BackgroundEQ

func BackgroundEQ(v string) predicate.Hustler

BackgroundEQ applies the EQ predicate on the "background" field.

func BackgroundEqualFold

func BackgroundEqualFold(v string) predicate.Hustler

BackgroundEqualFold applies the EqualFold predicate on the "background" field.

func BackgroundGT

func BackgroundGT(v string) predicate.Hustler

BackgroundGT applies the GT predicate on the "background" field.

func BackgroundGTE

func BackgroundGTE(v string) predicate.Hustler

BackgroundGTE applies the GTE predicate on the "background" field.

func BackgroundHasPrefix

func BackgroundHasPrefix(v string) predicate.Hustler

BackgroundHasPrefix applies the HasPrefix predicate on the "background" field.

func BackgroundHasSuffix

func BackgroundHasSuffix(v string) predicate.Hustler

BackgroundHasSuffix applies the HasSuffix predicate on the "background" field.

func BackgroundIn

func BackgroundIn(vs ...string) predicate.Hustler

BackgroundIn applies the In predicate on the "background" field.

func BackgroundIsNil

func BackgroundIsNil() predicate.Hustler

BackgroundIsNil applies the IsNil predicate on the "background" field.

func BackgroundLT

func BackgroundLT(v string) predicate.Hustler

BackgroundLT applies the LT predicate on the "background" field.

func BackgroundLTE

func BackgroundLTE(v string) predicate.Hustler

BackgroundLTE applies the LTE predicate on the "background" field.

func BackgroundNEQ

func BackgroundNEQ(v string) predicate.Hustler

BackgroundNEQ applies the NEQ predicate on the "background" field.

func BackgroundNotIn

func BackgroundNotIn(vs ...string) predicate.Hustler

BackgroundNotIn applies the NotIn predicate on the "background" field.

func BackgroundNotNil

func BackgroundNotNil() predicate.Hustler

BackgroundNotNil applies the NotNil predicate on the "background" field.

func Color

func Color(v string) predicate.Hustler

Color applies equality check predicate on the "color" field. It's identical to ColorEQ.

func ColorContains

func ColorContains(v string) predicate.Hustler

ColorContains applies the Contains predicate on the "color" field.

func ColorContainsFold

func ColorContainsFold(v string) predicate.Hustler

ColorContainsFold applies the ContainsFold predicate on the "color" field.

func ColorEQ

func ColorEQ(v string) predicate.Hustler

ColorEQ applies the EQ predicate on the "color" field.

func ColorEqualFold

func ColorEqualFold(v string) predicate.Hustler

ColorEqualFold applies the EqualFold predicate on the "color" field.

func ColorGT

func ColorGT(v string) predicate.Hustler

ColorGT applies the GT predicate on the "color" field.

func ColorGTE

func ColorGTE(v string) predicate.Hustler

ColorGTE applies the GTE predicate on the "color" field.

func ColorHasPrefix

func ColorHasPrefix(v string) predicate.Hustler

ColorHasPrefix applies the HasPrefix predicate on the "color" field.

func ColorHasSuffix

func ColorHasSuffix(v string) predicate.Hustler

ColorHasSuffix applies the HasSuffix predicate on the "color" field.

func ColorIn

func ColorIn(vs ...string) predicate.Hustler

ColorIn applies the In predicate on the "color" field.

func ColorIsNil

func ColorIsNil() predicate.Hustler

ColorIsNil applies the IsNil predicate on the "color" field.

func ColorLT

func ColorLT(v string) predicate.Hustler

ColorLT applies the LT predicate on the "color" field.

func ColorLTE

func ColorLTE(v string) predicate.Hustler

ColorLTE applies the LTE predicate on the "color" field.

func ColorNEQ

func ColorNEQ(v string) predicate.Hustler

ColorNEQ applies the NEQ predicate on the "color" field.

func ColorNotIn

func ColorNotIn(vs ...string) predicate.Hustler

ColorNotIn applies the NotIn predicate on the "color" field.

func ColorNotNil

func ColorNotNil() predicate.Hustler

ColorNotNil applies the NotNil predicate on the "color" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Hustler

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Hustler

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Hustler

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Hustler

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Hustler

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Hustler

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Hustler

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Hustler

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Hustler

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func HasAccessory

func HasAccessory() predicate.Hustler

HasAccessory applies the HasEdge predicate on the "accessory" edge.

func HasAccessoryWith

func HasAccessoryWith(preds ...predicate.Item) predicate.Hustler

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

func HasBeard

func HasBeard() predicate.Hustler

HasBeard applies the HasEdge predicate on the "beard" edge.

func HasBeardWith

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

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

func HasBody

func HasBody() predicate.Hustler

HasBody applies the HasEdge predicate on the "body" edge.

func HasBodyWith

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

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

func HasClothes

func HasClothes() predicate.Hustler

HasClothes applies the HasEdge predicate on the "clothes" edge.

func HasClothesWith

func HasClothesWith(preds ...predicate.Item) predicate.Hustler

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

func HasDrug

func HasDrug() predicate.Hustler

HasDrug applies the HasEdge predicate on the "drug" edge.

func HasDrugWith

func HasDrugWith(preds ...predicate.Item) predicate.Hustler

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

func HasFoot

func HasFoot() predicate.Hustler

HasFoot applies the HasEdge predicate on the "foot" edge.

func HasFootWith

func HasFootWith(preds ...predicate.Item) predicate.Hustler

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

func HasHair

func HasHair() predicate.Hustler

HasHair applies the HasEdge predicate on the "hair" edge.

func HasHairWith

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

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

func HasHand

func HasHand() predicate.Hustler

HasHand applies the HasEdge predicate on the "hand" edge.

func HasHandWith

func HasHandWith(preds ...predicate.Item) predicate.Hustler

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

func HasIndex

func HasIndex() predicate.Hustler

HasIndex applies the HasEdge predicate on the "index" edge.

func HasIndexWith

func HasIndexWith(preds ...predicate.Search) predicate.Hustler

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

func HasNeck

func HasNeck() predicate.Hustler

HasNeck applies the HasEdge predicate on the "neck" edge.

func HasNeckWith

func HasNeckWith(preds ...predicate.Item) predicate.Hustler

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

func HasRing

func HasRing() predicate.Hustler

HasRing applies the HasEdge predicate on the "ring" edge.

func HasRingWith

func HasRingWith(preds ...predicate.Item) predicate.Hustler

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

func HasVehicle

func HasVehicle() predicate.Hustler

HasVehicle applies the HasEdge predicate on the "vehicle" edge.

func HasVehicleWith

func HasVehicleWith(preds ...predicate.Item) predicate.Hustler

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

func HasWaist

func HasWaist() predicate.Hustler

HasWaist applies the HasEdge predicate on the "waist" edge.

func HasWaistWith

func HasWaistWith(preds ...predicate.Item) predicate.Hustler

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

func HasWallet

func HasWallet() predicate.Hustler

HasWallet applies the HasEdge predicate on the "wallet" edge.

func HasWalletWith

func HasWalletWith(preds ...predicate.Wallet) predicate.Hustler

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

func HasWeapon

func HasWeapon() predicate.Hustler

HasWeapon applies the HasEdge predicate on the "weapon" edge.

func HasWeaponWith

func HasWeaponWith(preds ...predicate.Item) predicate.Hustler

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

func ID

func ID(id string) predicate.Hustler

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.Hustler

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Hustler

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Hustler

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Hustler

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Hustler

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Hustler

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Hustler

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Hustler

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Hustler

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Hustler

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Hustler

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Hustler

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Hustler

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Hustler

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Hustler

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Hustler

NameIn applies the In predicate on the "name" field.

func NameIsNil

func NameIsNil() predicate.Hustler

NameIsNil applies the IsNil predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Hustler

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Hustler

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Hustler

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Hustler

NameNotIn applies the NotIn predicate on the "name" field.

func NameNotNil

func NameNotNil() predicate.Hustler

NameNotNil applies the NotNil predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Hustler) predicate.Hustler

Or groups predicates with the OR operator between them.

func SexEQ

func SexEQ(v Sex) predicate.Hustler

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

func SexIn

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

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

func SexNEQ

func SexNEQ(v Sex) predicate.Hustler

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

func SexNotIn

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

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 Svg

func Svg(v string) predicate.Hustler

Svg applies equality check predicate on the "svg" field. It's identical to SvgEQ.

func SvgContains

func SvgContains(v string) predicate.Hustler

SvgContains applies the Contains predicate on the "svg" field.

func SvgContainsFold

func SvgContainsFold(v string) predicate.Hustler

SvgContainsFold applies the ContainsFold predicate on the "svg" field.

func SvgEQ

func SvgEQ(v string) predicate.Hustler

SvgEQ applies the EQ predicate on the "svg" field.

func SvgEqualFold

func SvgEqualFold(v string) predicate.Hustler

SvgEqualFold applies the EqualFold predicate on the "svg" field.

func SvgGT

func SvgGT(v string) predicate.Hustler

SvgGT applies the GT predicate on the "svg" field.

func SvgGTE

func SvgGTE(v string) predicate.Hustler

SvgGTE applies the GTE predicate on the "svg" field.

func SvgHasPrefix

func SvgHasPrefix(v string) predicate.Hustler

SvgHasPrefix applies the HasPrefix predicate on the "svg" field.

func SvgHasSuffix

func SvgHasSuffix(v string) predicate.Hustler

SvgHasSuffix applies the HasSuffix predicate on the "svg" field.

func SvgIn

func SvgIn(vs ...string) predicate.Hustler

SvgIn applies the In predicate on the "svg" field.

func SvgIsNil

func SvgIsNil() predicate.Hustler

SvgIsNil applies the IsNil predicate on the "svg" field.

func SvgLT

func SvgLT(v string) predicate.Hustler

SvgLT applies the LT predicate on the "svg" field.

func SvgLTE

func SvgLTE(v string) predicate.Hustler

SvgLTE applies the LTE predicate on the "svg" field.

func SvgNEQ

func SvgNEQ(v string) predicate.Hustler

SvgNEQ applies the NEQ predicate on the "svg" field.

func SvgNotIn

func SvgNotIn(vs ...string) predicate.Hustler

SvgNotIn applies the NotIn predicate on the "svg" field.

func SvgNotNil

func SvgNotNil() predicate.Hustler

SvgNotNil applies the NotNil predicate on the "svg" field.

func Title

func Title(v string) predicate.Hustler

Title applies equality check predicate on the "title" field. It's identical to TitleEQ.

func TitleContains

func TitleContains(v string) predicate.Hustler

TitleContains applies the Contains predicate on the "title" field.

func TitleContainsFold

func TitleContainsFold(v string) predicate.Hustler

TitleContainsFold applies the ContainsFold predicate on the "title" field.

func TitleEQ

func TitleEQ(v string) predicate.Hustler

TitleEQ applies the EQ predicate on the "title" field.

func TitleEqualFold

func TitleEqualFold(v string) predicate.Hustler

TitleEqualFold applies the EqualFold predicate on the "title" field.

func TitleGT

func TitleGT(v string) predicate.Hustler

TitleGT applies the GT predicate on the "title" field.

func TitleGTE

func TitleGTE(v string) predicate.Hustler

TitleGTE applies the GTE predicate on the "title" field.

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Hustler

TitleHasPrefix applies the HasPrefix predicate on the "title" field.

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Hustler

TitleHasSuffix applies the HasSuffix predicate on the "title" field.

func TitleIn

func TitleIn(vs ...string) predicate.Hustler

TitleIn applies the In predicate on the "title" field.

func TitleIsNil

func TitleIsNil() predicate.Hustler

TitleIsNil applies the IsNil predicate on the "title" field.

func TitleLT

func TitleLT(v string) predicate.Hustler

TitleLT applies the LT predicate on the "title" field.

func TitleLTE

func TitleLTE(v string) predicate.Hustler

TitleLTE applies the LTE predicate on the "title" field.

func TitleNEQ

func TitleNEQ(v string) predicate.Hustler

TitleNEQ applies the NEQ predicate on the "title" field.

func TitleNotIn

func TitleNotIn(vs ...string) predicate.Hustler

TitleNotIn applies the NotIn predicate on the "title" field.

func TitleNotNil

func TitleNotNil() predicate.Hustler

TitleNotNil applies the NotNil predicate on the "title" field.

func TypeEQ

func TypeEQ(v Type) predicate.Hustler

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

func TypeIn

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

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

func TypeNEQ

func TypeNEQ(v Type) predicate.Hustler

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

func TypeNotIn

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

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 (
	TypeORIGINAL_GANGSTA Type = "ORIGINAL_GANGSTA"
	TypeREGULAR          Type = "REGULAR"
)

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