armor

package
v0.0.0-...-c5055fb Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the armor type in the database.
	Label = "armor"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldIndx holds the string denoting the indx field in the database.
	FieldIndx = "indx"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldArmorCategory holds the string denoting the armor_category field in the database.
	FieldArmorCategory = "armor_category"
	// FieldStealthDisadvantage holds the string denoting the stealth_disadvantage field in the database.
	FieldStealthDisadvantage = "stealth_disadvantage"
	// FieldMinStrength holds the string denoting the min_strength field in the database.
	FieldMinStrength = "min_strength"
	// FieldEquipmentID holds the string denoting the equipment_id field in the database.
	FieldEquipmentID = "equipment_id"
	// EdgeEquipment holds the string denoting the equipment edge name in mutations.
	EdgeEquipment = "equipment"
	// EdgeArmorClass holds the string denoting the armor_class edge name in mutations.
	EdgeArmorClass = "armor_class"
	// Table holds the table name of the armor in the database.
	Table = "armors"
	// EquipmentTable is the table that holds the equipment relation/edge.
	EquipmentTable = "armors"
	// EquipmentInverseTable is the table name for the Equipment entity.
	// It exists in this package in order to avoid circular dependency with the "equipment" package.
	EquipmentInverseTable = "equipment"
	// EquipmentColumn is the table column denoting the equipment relation/edge.
	EquipmentColumn = "equipment_id"
	// ArmorClassTable is the table that holds the armor_class relation/edge.
	ArmorClassTable = "armor_classes"
	// ArmorClassInverseTable is the table name for the ArmorClass entity.
	// It exists in this package in order to avoid circular dependency with the "armorclass" package.
	ArmorClassInverseTable = "armor_classes"
	// ArmorClassColumn is the table column denoting the armor_class relation/edge.
	ArmorClassColumn = "armor_armor_class"
)

Variables

View Source
var (
	// IndxValidator is a validator for the "indx" field. It is called by the builders before save.
	IndxValidator func(string) error
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
)

Columns holds all SQL columns for armor fields.

Functions

func And

func And(predicates ...predicate.Armor) predicate.Armor

And groups predicates with the AND operator between them.

func ArmorCategory

func ArmorCategory(v string) predicate.Armor

ArmorCategory applies equality check predicate on the "armor_category" field. It's identical to ArmorCategoryEQ.

func ArmorCategoryContains

func ArmorCategoryContains(v string) predicate.Armor

ArmorCategoryContains applies the Contains predicate on the "armor_category" field.

func ArmorCategoryContainsFold

func ArmorCategoryContainsFold(v string) predicate.Armor

ArmorCategoryContainsFold applies the ContainsFold predicate on the "armor_category" field.

func ArmorCategoryEQ

func ArmorCategoryEQ(v string) predicate.Armor

ArmorCategoryEQ applies the EQ predicate on the "armor_category" field.

func ArmorCategoryEqualFold

func ArmorCategoryEqualFold(v string) predicate.Armor

ArmorCategoryEqualFold applies the EqualFold predicate on the "armor_category" field.

func ArmorCategoryGT

func ArmorCategoryGT(v string) predicate.Armor

ArmorCategoryGT applies the GT predicate on the "armor_category" field.

func ArmorCategoryGTE

func ArmorCategoryGTE(v string) predicate.Armor

ArmorCategoryGTE applies the GTE predicate on the "armor_category" field.

func ArmorCategoryHasPrefix

func ArmorCategoryHasPrefix(v string) predicate.Armor

ArmorCategoryHasPrefix applies the HasPrefix predicate on the "armor_category" field.

func ArmorCategoryHasSuffix

func ArmorCategoryHasSuffix(v string) predicate.Armor

ArmorCategoryHasSuffix applies the HasSuffix predicate on the "armor_category" field.

func ArmorCategoryIn

func ArmorCategoryIn(vs ...string) predicate.Armor

ArmorCategoryIn applies the In predicate on the "armor_category" field.

func ArmorCategoryLT

func ArmorCategoryLT(v string) predicate.Armor

ArmorCategoryLT applies the LT predicate on the "armor_category" field.

func ArmorCategoryLTE

func ArmorCategoryLTE(v string) predicate.Armor

ArmorCategoryLTE applies the LTE predicate on the "armor_category" field.

func ArmorCategoryNEQ

func ArmorCategoryNEQ(v string) predicate.Armor

ArmorCategoryNEQ applies the NEQ predicate on the "armor_category" field.

func ArmorCategoryNotIn

func ArmorCategoryNotIn(vs ...string) predicate.Armor

ArmorCategoryNotIn applies the NotIn predicate on the "armor_category" field.

func EquipmentID

func EquipmentID(v int) predicate.Armor

EquipmentID applies equality check predicate on the "equipment_id" field. It's identical to EquipmentIDEQ.

func EquipmentIDEQ

func EquipmentIDEQ(v int) predicate.Armor

EquipmentIDEQ applies the EQ predicate on the "equipment_id" field.

func EquipmentIDIn

func EquipmentIDIn(vs ...int) predicate.Armor

EquipmentIDIn applies the In predicate on the "equipment_id" field.

func EquipmentIDNEQ

func EquipmentIDNEQ(v int) predicate.Armor

EquipmentIDNEQ applies the NEQ predicate on the "equipment_id" field.

func EquipmentIDNotIn

func EquipmentIDNotIn(vs ...int) predicate.Armor

EquipmentIDNotIn applies the NotIn predicate on the "equipment_id" field.

func HasArmorClass

func HasArmorClass() predicate.Armor

HasArmorClass applies the HasEdge predicate on the "armor_class" edge.

func HasArmorClassWith

func HasArmorClassWith(preds ...predicate.ArmorClass) predicate.Armor

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

func HasEquipment

func HasEquipment() predicate.Armor

HasEquipment applies the HasEdge predicate on the "equipment" edge.

func HasEquipmentWith

func HasEquipmentWith(preds ...predicate.Equipment) predicate.Armor

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

func ID

func ID(id int) predicate.Armor

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Armor

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Armor

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Armor

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Armor

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Armor

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Armor

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Armor

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Armor

IDNotIn applies the NotIn predicate on the ID field.

func Indx

func Indx(v string) predicate.Armor

Indx applies equality check predicate on the "indx" field. It's identical to IndxEQ.

func IndxContains

func IndxContains(v string) predicate.Armor

IndxContains applies the Contains predicate on the "indx" field.

func IndxContainsFold

func IndxContainsFold(v string) predicate.Armor

IndxContainsFold applies the ContainsFold predicate on the "indx" field.

func IndxEQ

func IndxEQ(v string) predicate.Armor

IndxEQ applies the EQ predicate on the "indx" field.

func IndxEqualFold

func IndxEqualFold(v string) predicate.Armor

IndxEqualFold applies the EqualFold predicate on the "indx" field.

func IndxGT

func IndxGT(v string) predicate.Armor

IndxGT applies the GT predicate on the "indx" field.

func IndxGTE

func IndxGTE(v string) predicate.Armor

IndxGTE applies the GTE predicate on the "indx" field.

func IndxHasPrefix

func IndxHasPrefix(v string) predicate.Armor

IndxHasPrefix applies the HasPrefix predicate on the "indx" field.

func IndxHasSuffix

func IndxHasSuffix(v string) predicate.Armor

IndxHasSuffix applies the HasSuffix predicate on the "indx" field.

func IndxIn

func IndxIn(vs ...string) predicate.Armor

IndxIn applies the In predicate on the "indx" field.

func IndxLT

func IndxLT(v string) predicate.Armor

IndxLT applies the LT predicate on the "indx" field.

func IndxLTE

func IndxLTE(v string) predicate.Armor

IndxLTE applies the LTE predicate on the "indx" field.

func IndxNEQ

func IndxNEQ(v string) predicate.Armor

IndxNEQ applies the NEQ predicate on the "indx" field.

func IndxNotIn

func IndxNotIn(vs ...string) predicate.Armor

IndxNotIn applies the NotIn predicate on the "indx" field.

func MinStrength

func MinStrength(v int) predicate.Armor

MinStrength applies equality check predicate on the "min_strength" field. It's identical to MinStrengthEQ.

func MinStrengthEQ

func MinStrengthEQ(v int) predicate.Armor

MinStrengthEQ applies the EQ predicate on the "min_strength" field.

func MinStrengthGT

func MinStrengthGT(v int) predicate.Armor

MinStrengthGT applies the GT predicate on the "min_strength" field.

func MinStrengthGTE

func MinStrengthGTE(v int) predicate.Armor

MinStrengthGTE applies the GTE predicate on the "min_strength" field.

func MinStrengthIn

func MinStrengthIn(vs ...int) predicate.Armor

MinStrengthIn applies the In predicate on the "min_strength" field.

func MinStrengthLT

func MinStrengthLT(v int) predicate.Armor

MinStrengthLT applies the LT predicate on the "min_strength" field.

func MinStrengthLTE

func MinStrengthLTE(v int) predicate.Armor

MinStrengthLTE applies the LTE predicate on the "min_strength" field.

func MinStrengthNEQ

func MinStrengthNEQ(v int) predicate.Armor

MinStrengthNEQ applies the NEQ predicate on the "min_strength" field.

func MinStrengthNotIn

func MinStrengthNotIn(vs ...int) predicate.Armor

MinStrengthNotIn applies the NotIn predicate on the "min_strength" field.

func Name

func Name(v string) predicate.Armor

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

func NameContains

func NameContains(v string) predicate.Armor

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

func NameContainsFold

func NameContainsFold(v string) predicate.Armor

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

func NameEQ

func NameEQ(v string) predicate.Armor

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

func NameEqualFold

func NameEqualFold(v string) predicate.Armor

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

func NameGT

func NameGT(v string) predicate.Armor

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

func NameGTE

func NameGTE(v string) predicate.Armor

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Armor

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Armor

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Armor

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

func NameLTE

func NameLTE(v string) predicate.Armor

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

func NameNEQ

func NameNEQ(v string) predicate.Armor

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

func NameNotIn

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

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

Or groups predicates with the OR operator between them.

func StealthDisadvantage

func StealthDisadvantage(v bool) predicate.Armor

StealthDisadvantage applies equality check predicate on the "stealth_disadvantage" field. It's identical to StealthDisadvantageEQ.

func StealthDisadvantageEQ

func StealthDisadvantageEQ(v bool) predicate.Armor

StealthDisadvantageEQ applies the EQ predicate on the "stealth_disadvantage" field.

func StealthDisadvantageNEQ

func StealthDisadvantageNEQ(v bool) predicate.Armor

StealthDisadvantageNEQ applies the NEQ predicate on the "stealth_disadvantage" 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 Armor queries.

func ByArmorCategory

func ByArmorCategory(opts ...sql.OrderTermOption) OrderOption

ByArmorCategory orders the results by the armor_category field.

func ByArmorClass

func ByArmorClass(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByArmorClass orders the results by armor_class terms.

func ByArmorClassCount

func ByArmorClassCount(opts ...sql.OrderTermOption) OrderOption

ByArmorClassCount orders the results by armor_class count.

func ByEquipmentField

func ByEquipmentField(field string, opts ...sql.OrderTermOption) OrderOption

ByEquipmentField orders the results by equipment field.

func ByEquipmentID

func ByEquipmentID(opts ...sql.OrderTermOption) OrderOption

ByEquipmentID orders the results by the equipment_id field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByIndx

func ByIndx(opts ...sql.OrderTermOption) OrderOption

ByIndx orders the results by the indx field.

func ByMinStrength

func ByMinStrength(opts ...sql.OrderTermOption) OrderOption

ByMinStrength orders the results by the min_strength field.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByStealthDisadvantage

func ByStealthDisadvantage(opts ...sql.OrderTermOption) OrderOption

ByStealthDisadvantage orders the results by the stealth_disadvantage field.

Jump to

Keyboard shortcuts

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