Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Hero) predicate.Hero
- func CreateTime(v time.Time) predicate.Hero
- func CreateTimeEQ(v time.Time) predicate.Hero
- func CreateTimeGT(v time.Time) predicate.Hero
- func CreateTimeGTE(v time.Time) predicate.Hero
- func CreateTimeIn(vs ...time.Time) predicate.Hero
- func CreateTimeLT(v time.Time) predicate.Hero
- func CreateTimeLTE(v time.Time) predicate.Hero
- func CreateTimeNEQ(v time.Time) predicate.Hero
- func CreateTimeNotIn(vs ...time.Time) predicate.Hero
- func HeroID(v int) predicate.Hero
- func HeroIDEQ(v int) predicate.Hero
- func HeroIDGT(v int) predicate.Hero
- func HeroIDGTE(v int) predicate.Hero
- func HeroIDIn(vs ...int) predicate.Hero
- func HeroIDLT(v int) predicate.Hero
- func HeroIDLTE(v int) predicate.Hero
- func HeroIDNEQ(v int) predicate.Hero
- func HeroIDNotIn(vs ...int) predicate.Hero
- func ID(id int) predicate.Hero
- func IDEQ(id int) predicate.Hero
- func IDGT(id int) predicate.Hero
- func IDGTE(id int) predicate.Hero
- func IDIn(ids ...int) predicate.Hero
- func IDLT(id int) predicate.Hero
- func IDLTE(id int) predicate.Hero
- func IDNEQ(id int) predicate.Hero
- func IDNotIn(ids ...int) predicate.Hero
- func LocalizedName(v string) predicate.Hero
- func LocalizedNameContains(v string) predicate.Hero
- func LocalizedNameContainsFold(v string) predicate.Hero
- func LocalizedNameEQ(v string) predicate.Hero
- func LocalizedNameEqualFold(v string) predicate.Hero
- func LocalizedNameGT(v string) predicate.Hero
- func LocalizedNameGTE(v string) predicate.Hero
- func LocalizedNameHasPrefix(v string) predicate.Hero
- func LocalizedNameHasSuffix(v string) predicate.Hero
- func LocalizedNameIn(vs ...string) predicate.Hero
- func LocalizedNameLT(v string) predicate.Hero
- func LocalizedNameLTE(v string) predicate.Hero
- func LocalizedNameNEQ(v string) predicate.Hero
- func LocalizedNameNotIn(vs ...string) predicate.Hero
- func Name(v string) predicate.Hero
- func NameContains(v string) predicate.Hero
- func NameContainsFold(v string) predicate.Hero
- func NameEQ(v string) predicate.Hero
- func NameEqualFold(v string) predicate.Hero
- func NameGT(v string) predicate.Hero
- func NameGTE(v string) predicate.Hero
- func NameHasPrefix(v string) predicate.Hero
- func NameHasSuffix(v string) predicate.Hero
- func NameIn(vs ...string) predicate.Hero
- func NameLT(v string) predicate.Hero
- func NameLTE(v string) predicate.Hero
- func NameNEQ(v string) predicate.Hero
- func NameNotIn(vs ...string) predicate.Hero
- func Not(p predicate.Hero) predicate.Hero
- func Or(predicates ...predicate.Hero) predicate.Hero
- func UpdateTime(v time.Time) predicate.Hero
- func UpdateTimeEQ(v time.Time) predicate.Hero
- func UpdateTimeGT(v time.Time) predicate.Hero
- func UpdateTimeGTE(v time.Time) predicate.Hero
- func UpdateTimeIn(vs ...time.Time) predicate.Hero
- func UpdateTimeLT(v time.Time) predicate.Hero
- func UpdateTimeLTE(v time.Time) predicate.Hero
- func UpdateTimeNEQ(v time.Time) predicate.Hero
- func UpdateTimeNotIn(vs ...time.Time) predicate.Hero
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the hero type in the database. Label = "hero" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldHeroID holds the string denoting the hero_id field in the database. FieldHeroID = "hero_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldLocalizedName holds the string denoting the localized_name field in the database. FieldLocalizedName = "localized_name" // Table holds the table name of the hero in the database. Table = "heros" )
Variables ¶
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldHeroID, FieldName, FieldLocalizedName, }
Columns holds all SQL columns for hero fields.
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func HeroID ¶
HeroID applies equality check predicate on the "hero_id" field. It's identical to HeroIDEQ.
func HeroIDNotIn ¶
HeroIDNotIn applies the NotIn predicate on the "hero_id" field.
func LocalizedName ¶
LocalizedName applies equality check predicate on the "localized_name" field. It's identical to LocalizedNameEQ.
func LocalizedNameContains ¶
LocalizedNameContains applies the Contains predicate on the "localized_name" field.
func LocalizedNameContainsFold ¶
LocalizedNameContainsFold applies the ContainsFold predicate on the "localized_name" field.
func LocalizedNameEQ ¶
LocalizedNameEQ applies the EQ predicate on the "localized_name" field.
func LocalizedNameEqualFold ¶
LocalizedNameEqualFold applies the EqualFold predicate on the "localized_name" field.
func LocalizedNameGT ¶
LocalizedNameGT applies the GT predicate on the "localized_name" field.
func LocalizedNameGTE ¶
LocalizedNameGTE applies the GTE predicate on the "localized_name" field.
func LocalizedNameHasPrefix ¶
LocalizedNameHasPrefix applies the HasPrefix predicate on the "localized_name" field.
func LocalizedNameHasSuffix ¶
LocalizedNameHasSuffix applies the HasSuffix predicate on the "localized_name" field.
func LocalizedNameIn ¶
LocalizedNameIn applies the In predicate on the "localized_name" field.
func LocalizedNameLT ¶
LocalizedNameLT applies the LT predicate on the "localized_name" field.
func LocalizedNameLTE ¶
LocalizedNameLTE applies the LTE predicate on the "localized_name" field.
func LocalizedNameNEQ ¶
LocalizedNameNEQ applies the NEQ predicate on the "localized_name" field.
func LocalizedNameNotIn ¶
LocalizedNameNotIn applies the NotIn predicate on the "localized_name" 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 UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.