abilitybonus

package
v0.0.0-...-67bf1eb Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the abilitybonus type in the database.
	Label = "ability_bonus"
	// FieldBonus holds the string denoting the bonus field in the database.
	FieldBonus = "bonus"
	// FieldRaceID holds the string denoting the race_id field in the database.
	FieldRaceID = "race_id"
	// FieldAbilityScoreID holds the string denoting the ability_score_id field in the database.
	FieldAbilityScoreID = "ability_score_id"
	// EdgeRace holds the string denoting the race edge name in mutations.
	EdgeRace = "race"
	// EdgeAbilityScore holds the string denoting the ability_score edge name in mutations.
	EdgeAbilityScore = "ability_score"
	// RaceFieldID holds the string denoting the ID field of the Race.
	RaceFieldID = "id"
	// AbilityScoreFieldID holds the string denoting the ID field of the AbilityScore.
	AbilityScoreFieldID = "id"
	// Table holds the table name of the abilitybonus in the database.
	Table = "ability_bonus"
	// RaceTable is the table that holds the race relation/edge.
	RaceTable = "ability_bonus"
	// RaceInverseTable is the table name for the Race entity.
	// It exists in this package in order to avoid circular dependency with the "race" package.
	RaceInverseTable = "races"
	// RaceColumn is the table column denoting the race relation/edge.
	RaceColumn = "race_id"
	// AbilityScoreTable is the table that holds the ability_score relation/edge.
	AbilityScoreTable = "ability_bonus"
	// AbilityScoreInverseTable is the table name for the AbilityScore entity.
	// It exists in this package in order to avoid circular dependency with the "abilityscore" package.
	AbilityScoreInverseTable = "ability_scores"
	// AbilityScoreColumn is the table column denoting the ability_score relation/edge.
	AbilityScoreColumn = "ability_score_id"
)

Variables

View Source
var (
	// BonusValidator is a validator for the "bonus" field. It is called by the builders before save.
	BonusValidator func(int) error
)

Columns holds all SQL columns for abilitybonus fields.

Functions

func AbilityScoreID

func AbilityScoreID(v int) predicate.AbilityBonus

AbilityScoreID applies equality check predicate on the "ability_score_id" field. It's identical to AbilityScoreIDEQ.

func AbilityScoreIDEQ

func AbilityScoreIDEQ(v int) predicate.AbilityBonus

AbilityScoreIDEQ applies the EQ predicate on the "ability_score_id" field.

func AbilityScoreIDIn

func AbilityScoreIDIn(vs ...int) predicate.AbilityBonus

AbilityScoreIDIn applies the In predicate on the "ability_score_id" field.

func AbilityScoreIDNEQ

func AbilityScoreIDNEQ(v int) predicate.AbilityBonus

AbilityScoreIDNEQ applies the NEQ predicate on the "ability_score_id" field.

func AbilityScoreIDNotIn

func AbilityScoreIDNotIn(vs ...int) predicate.AbilityBonus

AbilityScoreIDNotIn applies the NotIn predicate on the "ability_score_id" field.

func And

func And(predicates ...predicate.AbilityBonus) predicate.AbilityBonus

And groups predicates with the AND operator between them.

func Bonus

func Bonus(v int) predicate.AbilityBonus

Bonus applies equality check predicate on the "bonus" field. It's identical to BonusEQ.

func BonusEQ

func BonusEQ(v int) predicate.AbilityBonus

BonusEQ applies the EQ predicate on the "bonus" field.

func BonusGT

func BonusGT(v int) predicate.AbilityBonus

BonusGT applies the GT predicate on the "bonus" field.

func BonusGTE

func BonusGTE(v int) predicate.AbilityBonus

BonusGTE applies the GTE predicate on the "bonus" field.

func BonusIn

func BonusIn(vs ...int) predicate.AbilityBonus

BonusIn applies the In predicate on the "bonus" field.

func BonusLT

func BonusLT(v int) predicate.AbilityBonus

BonusLT applies the LT predicate on the "bonus" field.

func BonusLTE

func BonusLTE(v int) predicate.AbilityBonus

BonusLTE applies the LTE predicate on the "bonus" field.

func BonusNEQ

func BonusNEQ(v int) predicate.AbilityBonus

BonusNEQ applies the NEQ predicate on the "bonus" field.

func BonusNotIn

func BonusNotIn(vs ...int) predicate.AbilityBonus

BonusNotIn applies the NotIn predicate on the "bonus" field.

func HasAbilityScore

func HasAbilityScore() predicate.AbilityBonus

HasAbilityScore applies the HasEdge predicate on the "ability_score" edge.

func HasAbilityScoreWith

func HasAbilityScoreWith(preds ...predicate.AbilityScore) predicate.AbilityBonus

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

func HasRace

func HasRace() predicate.AbilityBonus

HasRace applies the HasEdge predicate on the "race" edge.

func HasRaceWith

func HasRaceWith(preds ...predicate.Race) predicate.AbilityBonus

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

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.AbilityBonus) predicate.AbilityBonus

Or groups predicates with the OR operator between them.

func RaceID

func RaceID(v int) predicate.AbilityBonus

RaceID applies equality check predicate on the "race_id" field. It's identical to RaceIDEQ.

func RaceIDEQ

func RaceIDEQ(v int) predicate.AbilityBonus

RaceIDEQ applies the EQ predicate on the "race_id" field.

func RaceIDIn

func RaceIDIn(vs ...int) predicate.AbilityBonus

RaceIDIn applies the In predicate on the "race_id" field.

func RaceIDNEQ

func RaceIDNEQ(v int) predicate.AbilityBonus

RaceIDNEQ applies the NEQ predicate on the "race_id" field.

func RaceIDNotIn

func RaceIDNotIn(vs ...int) predicate.AbilityBonus

RaceIDNotIn applies the NotIn predicate on the "race_id" 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 AbilityBonus queries.

func ByAbilityScoreField

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

ByAbilityScoreField orders the results by ability_score field.

func ByAbilityScoreID

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

ByAbilityScoreID orders the results by the ability_score_id field.

func ByBonus

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

ByBonus orders the results by the bonus field.

func ByRaceField

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

ByRaceField orders the results by race field.

func ByRaceID

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

ByRaceID orders the results by the race_id field.

Jump to

Keyboard shortcuts

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