Documentation ¶
Index ¶
- Constants
- Variables
- func Active(v bool) predicate.Badge
- func ActiveEQ(v bool) predicate.Badge
- func ActiveNEQ(v bool) predicate.Badge
- func And(predicates ...predicate.Badge) predicate.Badge
- func CreateTime(v time.Time) predicate.Badge
- func CreateTimeEQ(v time.Time) predicate.Badge
- func CreateTimeGT(v time.Time) predicate.Badge
- func CreateTimeGTE(v time.Time) predicate.Badge
- func CreateTimeIn(vs ...time.Time) predicate.Badge
- func CreateTimeLT(v time.Time) predicate.Badge
- func CreateTimeLTE(v time.Time) predicate.Badge
- func CreateTimeNEQ(v time.Time) predicate.Badge
- func CreateTimeNotIn(vs ...time.Time) predicate.Badge
- func HasUsers() predicate.Badge
- func HasUsersWith(preds ...predicate.User) predicate.Badge
- func ID(id int) predicate.Badge
- func IDEQ(id int) predicate.Badge
- func IDGT(id int) predicate.Badge
- func IDGTE(id int) predicate.Badge
- func IDIn(ids ...int) predicate.Badge
- func IDLT(id int) predicate.Badge
- func IDLTE(id int) predicate.Badge
- func IDNEQ(id int) predicate.Badge
- func IDNotIn(ids ...int) predicate.Badge
- func MetaIsNil() predicate.Badge
- func MetaNotNil() predicate.Badge
- func Not(p predicate.Badge) predicate.Badge
- func Or(predicates ...predicate.Badge) predicate.Badge
- func Type(v string) predicate.Badge
- func TypeContains(v string) predicate.Badge
- func TypeContainsFold(v string) predicate.Badge
- func TypeEQ(v string) predicate.Badge
- func TypeEqualFold(v string) predicate.Badge
- func TypeGT(v string) predicate.Badge
- func TypeGTE(v string) predicate.Badge
- func TypeHasPrefix(v string) predicate.Badge
- func TypeHasSuffix(v string) predicate.Badge
- func TypeIn(vs ...string) predicate.Badge
- func TypeLT(v string) predicate.Badge
- func TypeLTE(v string) predicate.Badge
- func TypeNEQ(v string) predicate.Badge
- func TypeNotIn(vs ...string) predicate.Badge
- func UpdateTime(v time.Time) predicate.Badge
- func UpdateTimeEQ(v time.Time) predicate.Badge
- func UpdateTimeGT(v time.Time) predicate.Badge
- func UpdateTimeGTE(v time.Time) predicate.Badge
- func UpdateTimeIn(vs ...time.Time) predicate.Badge
- func UpdateTimeLT(v time.Time) predicate.Badge
- func UpdateTimeLTE(v time.Time) predicate.Badge
- func UpdateTimeNEQ(v time.Time) predicate.Badge
- func UpdateTimeNotIn(vs ...time.Time) predicate.Badge
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the badge type in the database. Label = "badge" // 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" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldActive holds the string denoting the active field in the database. FieldActive = "active" // FieldMeta holds the string denoting the meta field in the database. FieldMeta = "meta" // EdgeUsers holds the string denoting the users edge name in mutations. EdgeUsers = "users" // Table holds the table name of the badge in the database. Table = "badges" // UsersTable is the table that holds the users relation/edge. The primary key declared below. UsersTable = "user_badges" // UsersInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UsersInverseTable = "users" )
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 // TypeValidator is a validator for the "type" field. It is called by the builders before save. TypeValidator func(string) error // DefaultActive holds the default value on creation for the "active" field. DefaultActive bool )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldType, FieldActive, FieldMeta, }
Columns holds all SQL columns for badge fields.
var ( // UsersPrimaryKey and UsersColumn2 are the table columns denoting the // primary key for the users relation (M2M). UsersPrimaryKey = []string{"user_id", "badge_id"} )
Functions ¶
func Active ¶
Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.
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 HasUsersWith ¶
HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).
func MetaNotNil ¶
MetaNotNil applies the NotNil predicate on the "meta" field.
func TypeContains ¶
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEqualFold ¶
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeHasPrefix ¶
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
TypeHasSuffix applies the HasSuffix predicate on the "type" 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.