weapon

package
v0.0.0-...-52c565a Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the weapon type in the database.
	Label = "weapon"
	// FieldID holds the string denoting the id field in the database.
	FieldID        = "id"         // FieldCreatedAt holds the string denoting the created_at vertex property in the database.
	FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at vertex property in the database.
	FieldUpdatedAt = "updated_at" // FieldName holds the string denoting the name vertex property in the database.
	FieldName      = "name"       // FieldLevel holds the string denoting the level vertex property in the database.
	FieldLevel     = "level"      // FieldCategory holds the string denoting the category vertex property in the database.
	FieldCategory  = "category"

	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"

	// Table holds the table name of the weapon in the database.
	Table = "weapons"
	// OwnerTable is the table the holds the owner relation/edge.
	OwnerTable = "weapons"
	// OwnerInverseTable is the table name for the JiangHuRen entity.
	// It exists in this package in order to avoid circular dependency with the "jianghuren" package.
	OwnerInverseTable = "jiang_hu_rens"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "jiang_hu_ren_weapon"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the created_at field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the updated_at field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultLevel holds the default value on creation for the level field.
	DefaultLevel int
	// DefaultCategory holds the default value on creation for the category field.
	DefaultCategory int
)

Columns holds all SQL columns for weapon fields.

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

ForeignKeys holds the SQL foreign-keys that are owned by the Weapon type.

Functions

func And

func And(predicates ...predicate.Weapon) predicate.Weapon

And groups list of predicates with the AND operator between them.

func Category

func Category(v int) predicate.Weapon

Category applies equality check predicate on the "category" field. It's identical to CategoryEQ.

func CategoryEQ

func CategoryEQ(v int) predicate.Weapon

CategoryEQ applies the EQ predicate on the "category" field.

func CategoryGT

func CategoryGT(v int) predicate.Weapon

CategoryGT applies the GT predicate on the "category" field.

func CategoryGTE

func CategoryGTE(v int) predicate.Weapon

CategoryGTE applies the GTE predicate on the "category" field.

func CategoryIn

func CategoryIn(vs ...int) predicate.Weapon

CategoryIn applies the In predicate on the "category" field.

func CategoryLT

func CategoryLT(v int) predicate.Weapon

CategoryLT applies the LT predicate on the "category" field.

func CategoryLTE

func CategoryLTE(v int) predicate.Weapon

CategoryLTE applies the LTE predicate on the "category" field.

func CategoryNEQ

func CategoryNEQ(v int) predicate.Weapon

CategoryNEQ applies the NEQ predicate on the "category" field.

func CategoryNotIn

func CategoryNotIn(vs ...int) predicate.Weapon

CategoryNotIn applies the NotIn predicate on the "category" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Weapon

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Weapon

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Weapon

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Weapon

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Weapon

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Weapon

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Weapon

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Weapon

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Weapon

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func HasOwner

func HasOwner() predicate.Weapon

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.JiangHuRen) predicate.Weapon

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

func ID

func ID(id int) predicate.Weapon

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Weapon

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Weapon

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Weapon

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Weapon

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Weapon

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Weapon

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Level

func Level(v int) predicate.Weapon

Level applies equality check predicate on the "level" field. It's identical to LevelEQ.

func LevelEQ

func LevelEQ(v int) predicate.Weapon

LevelEQ applies the EQ predicate on the "level" field.

func LevelGT

func LevelGT(v int) predicate.Weapon

LevelGT applies the GT predicate on the "level" field.

func LevelGTE

func LevelGTE(v int) predicate.Weapon

LevelGTE applies the GTE predicate on the "level" field.

func LevelIn

func LevelIn(vs ...int) predicate.Weapon

LevelIn applies the In predicate on the "level" field.

func LevelLT

func LevelLT(v int) predicate.Weapon

LevelLT applies the LT predicate on the "level" field.

func LevelLTE

func LevelLTE(v int) predicate.Weapon

LevelLTE applies the LTE predicate on the "level" field.

func LevelNEQ

func LevelNEQ(v int) predicate.Weapon

LevelNEQ applies the NEQ predicate on the "level" field.

func LevelNotIn

func LevelNotIn(vs ...int) predicate.Weapon

LevelNotIn applies the NotIn predicate on the "level" field.

func Name

func Name(v string) predicate.Weapon

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

func NameContains

func NameContains(v string) predicate.Weapon

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

func NameContainsFold

func NameContainsFold(v string) predicate.Weapon

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

func NameEQ

func NameEQ(v string) predicate.Weapon

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

func NameEqualFold

func NameEqualFold(v string) predicate.Weapon

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

func NameGT

func NameGT(v string) predicate.Weapon

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

func NameGTE

func NameGTE(v string) predicate.Weapon

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Weapon

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Weapon

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Weapon

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

func NameLTE

func NameLTE(v string) predicate.Weapon

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

func NameNEQ

func NameNEQ(v string) predicate.Weapon

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

func NameNotIn

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

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

Or groups list of predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Weapon

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Weapon

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Weapon

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Weapon

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Weapon

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Weapon

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Weapon

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Weapon

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Weapon

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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