Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Badge) predicate.Badge
- func ColorEQ(v Color) predicate.Badge
- func ColorIn(vs ...Color) predicate.Badge
- func ColorNEQ(v Color) predicate.Badge
- func ColorNotIn(vs ...Color) predicate.Badge
- func ColorValidator(c Color) error
- func HasWearer() predicate.Badge
- func HasWearerWith(preds ...predicate.Pet) predicate.Badge
- func ID(id uint32) predicate.Badge
- func IDEQ(id uint32) predicate.Badge
- func IDGT(id uint32) predicate.Badge
- func IDGTE(id uint32) predicate.Badge
- func IDIn(ids ...uint32) predicate.Badge
- func IDLT(id uint32) predicate.Badge
- func IDLTE(id uint32) predicate.Badge
- func IDNEQ(id uint32) predicate.Badge
- func IDNotIn(ids ...uint32) predicate.Badge
- func MaterialEQ(v Material) predicate.Badge
- func MaterialIn(vs ...Material) predicate.Badge
- func MaterialNEQ(v Material) predicate.Badge
- func MaterialNotIn(vs ...Material) predicate.Badge
- func MaterialValidator(m Material) error
- func Not(p predicate.Badge) predicate.Badge
- func Or(predicates ...predicate.Badge) predicate.Badge
- func ValidColumn(column string) bool
- type Color
- type Material
Constants ¶
const ( // Label holds the string label denoting the badge type in the database. Label = "badge" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldColor holds the string denoting the color field in the database. FieldColor = "color" // FieldMaterial holds the string denoting the material field in the database. FieldMaterial = "material" // EdgeWearer holds the string denoting the wearer edge name in mutations. EdgeWearer = "wearer" // Table holds the table name of the badge in the database. Table = "badges" // WearerTable is the table that holds the wearer relation/edge. WearerTable = "badges" // WearerInverseTable is the table name for the Pet entity. // It exists in this package in order to avoid circular dependency with the "pet" package. WearerInverseTable = "pets" // WearerColumn is the table column denoting the wearer relation/edge. WearerColumn = "pet_badge" )
Variables ¶
var Columns = []string{ FieldID, FieldColor, FieldMaterial, }
Columns holds all SQL columns for badge fields.
var ForeignKeys = []string{
"pet_badge",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "badges" table and are not defined as standalone fields in the schema.
Functions ¶
func ColorNotIn ¶
ColorNotIn applies the NotIn predicate on the "color" field.
func ColorValidator ¶
ColorValidator is a validator for the "color" field enum values. It is called by the builders before save.
func HasWearerWith ¶
HasWearerWith applies the HasEdge predicate on the "wearer" edge with a given conditions (other predicates).
func MaterialEQ ¶
MaterialEQ applies the EQ predicate on the "material" field.
func MaterialIn ¶
MaterialIn applies the In predicate on the "material" field.
func MaterialNEQ ¶
MaterialNEQ applies the NEQ predicate on the "material" field.
func MaterialNotIn ¶
MaterialNotIn applies the NotIn predicate on the "material" field.
func MaterialValidator ¶
MaterialValidator is a validator for the "material" 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 Color ¶
type Color string
Color defines the type for the "color" enum field.
const ( ColorRed Color = "red" ColorOrange Color = "orange" ColorYellow Color = "yellow" ColorGreen Color = "green" ColorBlue Color = "blue" ColorIndigo Color = "indigo" ColorViolet Color = "violet" ColorPurple Color = "purple" ColorPink Color = "pink" ColorSilver Color = "silver" ColorGold Color = "gold" ColorBeige Color = "beige" ColorBrown Color = "brown" ColorGrey Color = "grey" ColorBlack Color = "black" ColorWhite Color = "white" )
Color values.