armorclass

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the armorclass type in the database.
	Label = "armor_class"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldBase holds the string denoting the base field in the database.
	FieldBase = "base"
	// FieldDexBonus holds the string denoting the dex_bonus field in the database.
	FieldDexBonus = "dex_bonus"
	// FieldMaxBonus holds the string denoting the max_bonus field in the database.
	FieldMaxBonus = "max_bonus"
	// Table holds the table name of the armorclass in the database.
	Table = "armor_classes"
)

Variables

Columns holds all SQL columns for armorclass fields.

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

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

Functions

func And

func And(predicates ...predicate.ArmorClass) predicate.ArmorClass

And groups predicates with the AND operator between them.

func Base

func Base(v int) predicate.ArmorClass

Base applies equality check predicate on the "base" field. It's identical to BaseEQ.

func BaseEQ

func BaseEQ(v int) predicate.ArmorClass

BaseEQ applies the EQ predicate on the "base" field.

func BaseGT

func BaseGT(v int) predicate.ArmorClass

BaseGT applies the GT predicate on the "base" field.

func BaseGTE

func BaseGTE(v int) predicate.ArmorClass

BaseGTE applies the GTE predicate on the "base" field.

func BaseIn

func BaseIn(vs ...int) predicate.ArmorClass

BaseIn applies the In predicate on the "base" field.

func BaseLT

func BaseLT(v int) predicate.ArmorClass

BaseLT applies the LT predicate on the "base" field.

func BaseLTE

func BaseLTE(v int) predicate.ArmorClass

BaseLTE applies the LTE predicate on the "base" field.

func BaseNEQ

func BaseNEQ(v int) predicate.ArmorClass

BaseNEQ applies the NEQ predicate on the "base" field.

func BaseNotIn

func BaseNotIn(vs ...int) predicate.ArmorClass

BaseNotIn applies the NotIn predicate on the "base" field.

func DexBonus

func DexBonus(v bool) predicate.ArmorClass

DexBonus applies equality check predicate on the "dex_bonus" field. It's identical to DexBonusEQ.

func DexBonusEQ

func DexBonusEQ(v bool) predicate.ArmorClass

DexBonusEQ applies the EQ predicate on the "dex_bonus" field.

func DexBonusNEQ

func DexBonusNEQ(v bool) predicate.ArmorClass

DexBonusNEQ applies the NEQ predicate on the "dex_bonus" field.

func ID

func ID(id int) predicate.ArmorClass

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.ArmorClass

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.ArmorClass

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.ArmorClass

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.ArmorClass

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.ArmorClass

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.ArmorClass

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func MaxBonus

func MaxBonus(v int) predicate.ArmorClass

MaxBonus applies equality check predicate on the "max_bonus" field. It's identical to MaxBonusEQ.

func MaxBonusEQ

func MaxBonusEQ(v int) predicate.ArmorClass

MaxBonusEQ applies the EQ predicate on the "max_bonus" field.

func MaxBonusGT

func MaxBonusGT(v int) predicate.ArmorClass

MaxBonusGT applies the GT predicate on the "max_bonus" field.

func MaxBonusGTE

func MaxBonusGTE(v int) predicate.ArmorClass

MaxBonusGTE applies the GTE predicate on the "max_bonus" field.

func MaxBonusIn

func MaxBonusIn(vs ...int) predicate.ArmorClass

MaxBonusIn applies the In predicate on the "max_bonus" field.

func MaxBonusIsNil

func MaxBonusIsNil() predicate.ArmorClass

MaxBonusIsNil applies the IsNil predicate on the "max_bonus" field.

func MaxBonusLT

func MaxBonusLT(v int) predicate.ArmorClass

MaxBonusLT applies the LT predicate on the "max_bonus" field.

func MaxBonusLTE

func MaxBonusLTE(v int) predicate.ArmorClass

MaxBonusLTE applies the LTE predicate on the "max_bonus" field.

func MaxBonusNEQ

func MaxBonusNEQ(v int) predicate.ArmorClass

MaxBonusNEQ applies the NEQ predicate on the "max_bonus" field.

func MaxBonusNotIn

func MaxBonusNotIn(vs ...int) predicate.ArmorClass

MaxBonusNotIn applies the NotIn predicate on the "max_bonus" field.

func MaxBonusNotNil

func MaxBonusNotNil() predicate.ArmorClass

MaxBonusNotNil applies the NotNil predicate on the "max_bonus" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.ArmorClass) predicate.ArmorClass

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 ArmorClass queries.

func ByBase

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

ByBase orders the results by the base field.

func ByDexBonus

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

ByDexBonus orders the results by the dex_bonus field.

func ByID

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

ByID orders the results by the id field.

func ByMaxBonus

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

ByMaxBonus orders the results by the max_bonus field.

Jump to

Keyboard shortcuts

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