abilitybonus

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 abilitybonus type in the database.
	Label = "ability_bonus"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldAbilityScoreID holds the string denoting the ability_score_id field in the database.
	FieldAbilityScoreID = "ability_score_id"
	// FieldBonus holds the string denoting the bonus field in the database.
	FieldBonus = "bonus"
	// EdgeAbilityScore holds the string denoting the ability_score edge name in mutations.
	EdgeAbilityScore = "ability_score"
	// EdgeRace holds the string denoting the race edge name in mutations.
	EdgeRace = "race"
	// EdgeSubrace holds the string denoting the subrace edge name in mutations.
	EdgeSubrace = "subrace"
	// Table holds the table name of the abilitybonus in the database.
	Table = "ability_bonus"
	// 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"
	// 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_ability_bonuses"
	// SubraceTable is the table that holds the subrace relation/edge.
	SubraceTable = "ability_bonus"
	// SubraceInverseTable is the table name for the Subrace entity.
	// It exists in this package in order to avoid circular dependency with the "subrace" package.
	SubraceInverseTable = "subraces"
	// SubraceColumn is the table column denoting the subrace relation/edge.
	SubraceColumn = "subrace_ability_bonuses"
)

Variables

Columns holds all SQL columns for abilitybonus fields.

View Source
var ForeignKeys = []string{
	"race_ability_bonuses",
	"subrace_ability_bonuses",
}

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

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 HasSubrace

func HasSubrace() predicate.AbilityBonus

HasSubrace applies the HasEdge predicate on the "subrace" edge.

func HasSubraceWith

func HasSubraceWith(preds ...predicate.Subrace) predicate.AbilityBonus

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

func ID

func ID(id int) predicate.AbilityBonus

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.AbilityBonus

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.AbilityBonus

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.AbilityBonus

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.AbilityBonus

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.AbilityBonus

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.AbilityBonus

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

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 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 ByID

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

ByID orders the results by the id field.

func ByRaceField

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

ByRaceField orders the results by race field.

func BySubraceField

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

BySubraceField orders the results by subrace field.

Jump to

Keyboard shortcuts

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