Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Weapon) predicate.Weapon
- func Category(v int) predicate.Weapon
- func CategoryEQ(v int) predicate.Weapon
- func CategoryGT(v int) predicate.Weapon
- func CategoryGTE(v int) predicate.Weapon
- func CategoryIn(vs ...int) predicate.Weapon
- func CategoryLT(v int) predicate.Weapon
- func CategoryLTE(v int) predicate.Weapon
- func CategoryNEQ(v int) predicate.Weapon
- func CategoryNotIn(vs ...int) predicate.Weapon
- func CreatedAt(v time.Time) predicate.Weapon
- func CreatedAtEQ(v time.Time) predicate.Weapon
- func CreatedAtGT(v time.Time) predicate.Weapon
- func CreatedAtGTE(v time.Time) predicate.Weapon
- func CreatedAtIn(vs ...time.Time) predicate.Weapon
- func CreatedAtLT(v time.Time) predicate.Weapon
- func CreatedAtLTE(v time.Time) predicate.Weapon
- func CreatedAtNEQ(v time.Time) predicate.Weapon
- func CreatedAtNotIn(vs ...time.Time) predicate.Weapon
- func HasOwner() predicate.Weapon
- func HasOwnerWith(preds ...predicate.JiangHuRen) predicate.Weapon
- func ID(id int) predicate.Weapon
- func IDEQ(id int) predicate.Weapon
- func IDGT(id int) predicate.Weapon
- func IDGTE(id int) predicate.Weapon
- func IDIn(ids ...int) predicate.Weapon
- func IDLT(id int) predicate.Weapon
- func IDLTE(id int) predicate.Weapon
- func IDNEQ(id int) predicate.Weapon
- func IDNotIn(ids ...int) predicate.Weapon
- func Level(v int) predicate.Weapon
- func LevelEQ(v int) predicate.Weapon
- func LevelGT(v int) predicate.Weapon
- func LevelGTE(v int) predicate.Weapon
- func LevelIn(vs ...int) predicate.Weapon
- func LevelLT(v int) predicate.Weapon
- func LevelLTE(v int) predicate.Weapon
- func LevelNEQ(v int) predicate.Weapon
- func LevelNotIn(vs ...int) predicate.Weapon
- func Name(v string) predicate.Weapon
- func NameContains(v string) predicate.Weapon
- func NameContainsFold(v string) predicate.Weapon
- func NameEQ(v string) predicate.Weapon
- func NameEqualFold(v string) predicate.Weapon
- func NameGT(v string) predicate.Weapon
- func NameGTE(v string) predicate.Weapon
- func NameHasPrefix(v string) predicate.Weapon
- func NameHasSuffix(v string) predicate.Weapon
- func NameIn(vs ...string) predicate.Weapon
- func NameLT(v string) predicate.Weapon
- func NameLTE(v string) predicate.Weapon
- func NameNEQ(v string) predicate.Weapon
- func NameNotIn(vs ...string) predicate.Weapon
- func Not(p predicate.Weapon) predicate.Weapon
- func Or(predicates ...predicate.Weapon) predicate.Weapon
- func UpdatedAt(v time.Time) predicate.Weapon
- func UpdatedAtEQ(v time.Time) predicate.Weapon
- func UpdatedAtGT(v time.Time) predicate.Weapon
- func UpdatedAtGTE(v time.Time) predicate.Weapon
- func UpdatedAtIn(vs ...time.Time) predicate.Weapon
- func UpdatedAtLT(v time.Time) predicate.Weapon
- func UpdatedAtLTE(v time.Time) predicate.Weapon
- func UpdatedAtNEQ(v time.Time) predicate.Weapon
- func UpdatedAtNotIn(vs ...time.Time) predicate.Weapon
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldName, FieldLevel, FieldCategory, }
Columns holds all SQL columns for weapon fields.
var ForeignKeys = []string{
"jiang_hu_ren_weapon",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Weapon type.
Functions ¶
func Category ¶
Category applies equality check predicate on the "category" field. It's identical to CategoryEQ.
func CategoryEQ ¶
CategoryEQ applies the EQ predicate on the "category" field.
func CategoryGT ¶
CategoryGT applies the GT predicate on the "category" field.
func CategoryGTE ¶
CategoryGTE applies the GTE predicate on the "category" field.
func CategoryIn ¶
CategoryIn applies the In predicate on the "category" field.
func CategoryLT ¶
CategoryLT applies the LT predicate on the "category" field.
func CategoryLTE ¶
CategoryLTE applies the LTE predicate on the "category" field.
func CategoryNEQ ¶
CategoryNEQ applies the NEQ predicate on the "category" field.
func CategoryNotIn ¶
CategoryNotIn applies the NotIn predicate on the "category" field.
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 HasOwnerWith ¶
func HasOwnerWith(preds ...predicate.JiangHuRen) predicate.Weapon
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
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.