wugong

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the wugong type in the database.
	Label = "wu_gong"
	// 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"       // FieldDamage holds the string denoting the damage vertex property in the database.
	FieldDamage    = "damage"     // FieldLevel holds the string denoting the level vertex property in the database.
	FieldLevel     = "level"

	// Table holds the table name of the wugong in the database.
	Table = "wu_gongs"
)

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
	// DefaultDamage holds the default value on creation for the damage field.
	DefaultDamage int
	// LevelValidator is a validator for the "level" field. It is called by the builders before save.
	LevelValidator func(uint8) error
)

Columns holds all SQL columns for wugong fields.

Functions

func And

func And(predicates ...predicate.WuGong) predicate.WuGong

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

func CreatedAt

func CreatedAt(v time.Time) predicate.WuGong

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.WuGong

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.WuGong

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.WuGong

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.WuGong

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.WuGong

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.WuGong

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

func CreatedAtNotIn

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

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

func Damage

func Damage(v int) predicate.WuGong

Damage applies equality check predicate on the "damage" field. It's identical to DamageEQ.

func DamageEQ

func DamageEQ(v int) predicate.WuGong

DamageEQ applies the EQ predicate on the "damage" field.

func DamageGT

func DamageGT(v int) predicate.WuGong

DamageGT applies the GT predicate on the "damage" field.

func DamageGTE

func DamageGTE(v int) predicate.WuGong

DamageGTE applies the GTE predicate on the "damage" field.

func DamageIn

func DamageIn(vs ...int) predicate.WuGong

DamageIn applies the In predicate on the "damage" field.

func DamageLT

func DamageLT(v int) predicate.WuGong

DamageLT applies the LT predicate on the "damage" field.

func DamageLTE

func DamageLTE(v int) predicate.WuGong

DamageLTE applies the LTE predicate on the "damage" field.

func DamageNEQ

func DamageNEQ(v int) predicate.WuGong

DamageNEQ applies the NEQ predicate on the "damage" field.

func DamageNotIn

func DamageNotIn(vs ...int) predicate.WuGong

DamageNotIn applies the NotIn predicate on the "damage" field.

func ID

func ID(id int) predicate.WuGong

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.WuGong

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.WuGong

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.WuGong

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.WuGong

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.WuGong

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.WuGong

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Level

func Level(v uint8) predicate.WuGong

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

func LevelEQ

func LevelEQ(v uint8) predicate.WuGong

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

func LevelGT

func LevelGT(v uint8) predicate.WuGong

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

func LevelGTE

func LevelGTE(v uint8) predicate.WuGong

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

func LevelIn

func LevelIn(vs ...uint8) predicate.WuGong

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

func LevelLT

func LevelLT(v uint8) predicate.WuGong

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

func LevelLTE

func LevelLTE(v uint8) predicate.WuGong

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

func LevelNEQ

func LevelNEQ(v uint8) predicate.WuGong

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

func LevelNotIn

func LevelNotIn(vs ...uint8) predicate.WuGong

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

func Name

func Name(v string) predicate.WuGong

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

func NameContains

func NameContains(v string) predicate.WuGong

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

func NameContainsFold

func NameContainsFold(v string) predicate.WuGong

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

func NameEQ

func NameEQ(v string) predicate.WuGong

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

func NameEqualFold

func NameEqualFold(v string) predicate.WuGong

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

func NameGT

func NameGT(v string) predicate.WuGong

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

func NameGTE

func NameGTE(v string) predicate.WuGong

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.WuGong

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.WuGong

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.WuGong

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

func NameLTE

func NameLTE(v string) predicate.WuGong

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

func NameNEQ

func NameNEQ(v string) predicate.WuGong

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

func NameNotIn

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

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

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.WuGong

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.WuGong

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.WuGong

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.WuGong

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.WuGong

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.WuGong

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.WuGong

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

func UpdatedAtNotIn

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

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