Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.WuGong) predicate.WuGong
- func CreatedAt(v time.Time) predicate.WuGong
- func CreatedAtEQ(v time.Time) predicate.WuGong
- func CreatedAtGT(v time.Time) predicate.WuGong
- func CreatedAtGTE(v time.Time) predicate.WuGong
- func CreatedAtIn(vs ...time.Time) predicate.WuGong
- func CreatedAtLT(v time.Time) predicate.WuGong
- func CreatedAtLTE(v time.Time) predicate.WuGong
- func CreatedAtNEQ(v time.Time) predicate.WuGong
- func CreatedAtNotIn(vs ...time.Time) predicate.WuGong
- func Damage(v int) predicate.WuGong
- func DamageEQ(v int) predicate.WuGong
- func DamageGT(v int) predicate.WuGong
- func DamageGTE(v int) predicate.WuGong
- func DamageIn(vs ...int) predicate.WuGong
- func DamageLT(v int) predicate.WuGong
- func DamageLTE(v int) predicate.WuGong
- func DamageNEQ(v int) predicate.WuGong
- func DamageNotIn(vs ...int) predicate.WuGong
- func ID(id int) predicate.WuGong
- func IDEQ(id int) predicate.WuGong
- func IDGT(id int) predicate.WuGong
- func IDGTE(id int) predicate.WuGong
- func IDIn(ids ...int) predicate.WuGong
- func IDLT(id int) predicate.WuGong
- func IDLTE(id int) predicate.WuGong
- func IDNEQ(id int) predicate.WuGong
- func IDNotIn(ids ...int) predicate.WuGong
- func Level(v uint8) predicate.WuGong
- func LevelEQ(v uint8) predicate.WuGong
- func LevelGT(v uint8) predicate.WuGong
- func LevelGTE(v uint8) predicate.WuGong
- func LevelIn(vs ...uint8) predicate.WuGong
- func LevelLT(v uint8) predicate.WuGong
- func LevelLTE(v uint8) predicate.WuGong
- func LevelNEQ(v uint8) predicate.WuGong
- func LevelNotIn(vs ...uint8) predicate.WuGong
- func Name(v string) predicate.WuGong
- func NameContains(v string) predicate.WuGong
- func NameContainsFold(v string) predicate.WuGong
- func NameEQ(v string) predicate.WuGong
- func NameEqualFold(v string) predicate.WuGong
- func NameGT(v string) predicate.WuGong
- func NameGTE(v string) predicate.WuGong
- func NameHasPrefix(v string) predicate.WuGong
- func NameHasSuffix(v string) predicate.WuGong
- func NameIn(vs ...string) predicate.WuGong
- func NameLT(v string) predicate.WuGong
- func NameLTE(v string) predicate.WuGong
- func NameNEQ(v string) predicate.WuGong
- func NameNotIn(vs ...string) predicate.WuGong
- func Not(p predicate.WuGong) predicate.WuGong
- func Or(predicates ...predicate.WuGong) predicate.WuGong
- func UpdatedAt(v time.Time) predicate.WuGong
- func UpdatedAtEQ(v time.Time) predicate.WuGong
- func UpdatedAtGT(v time.Time) predicate.WuGong
- func UpdatedAtGTE(v time.Time) predicate.WuGong
- func UpdatedAtIn(vs ...time.Time) predicate.WuGong
- func UpdatedAtLT(v time.Time) predicate.WuGong
- func UpdatedAtLTE(v time.Time) predicate.WuGong
- func UpdatedAtNEQ(v time.Time) predicate.WuGong
- func UpdatedAtNotIn(vs ...time.Time) predicate.WuGong
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldName, FieldDamage, FieldLevel, }
Columns holds all SQL columns for wugong fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Damage ¶
Damage applies equality check predicate on the "damage" field. It's identical to DamageEQ.
func DamageNotIn ¶
DamageNotIn applies the NotIn predicate on the "damage" field.
func Level ¶
Level applies equality check predicate on the "level" field. It's identical to LevelEQ.
func LevelNotIn ¶
LevelNotIn applies the NotIn predicate on the "level" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
Types ¶
This section is empty.