Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Challenge) predicate.Challenge
- func ChallengeID(v string) predicate.Challenge
- func ChallengeIDContains(v string) predicate.Challenge
- func ChallengeIDContainsFold(v string) predicate.Challenge
- func ChallengeIDEQ(v string) predicate.Challenge
- func ChallengeIDEqualFold(v string) predicate.Challenge
- func ChallengeIDGT(v string) predicate.Challenge
- func ChallengeIDGTE(v string) predicate.Challenge
- func ChallengeIDHasPrefix(v string) predicate.Challenge
- func ChallengeIDHasSuffix(v string) predicate.Challenge
- func ChallengeIDIn(vs ...string) predicate.Challenge
- func ChallengeIDLT(v string) predicate.Challenge
- func ChallengeIDLTE(v string) predicate.Challenge
- func ChallengeIDNEQ(v string) predicate.Challenge
- func ChallengeIDNotIn(vs ...string) predicate.Challenge
- func CreateTime(v time.Time) predicate.Challenge
- func CreateTimeEQ(v time.Time) predicate.Challenge
- func CreateTimeGT(v time.Time) predicate.Challenge
- func CreateTimeGTE(v time.Time) predicate.Challenge
- func CreateTimeIn(vs ...time.Time) predicate.Challenge
- func CreateTimeLT(v time.Time) predicate.Challenge
- func CreateTimeLTE(v time.Time) predicate.Challenge
- func CreateTimeNEQ(v time.Time) predicate.Challenge
- func CreateTimeNotIn(vs ...time.Time) predicate.Challenge
- func ExpiresAt(v time.Time) predicate.Challenge
- func ExpiresAtEQ(v time.Time) predicate.Challenge
- func ExpiresAtGT(v time.Time) predicate.Challenge
- func ExpiresAtGTE(v time.Time) predicate.Challenge
- func ExpiresAtIn(vs ...time.Time) predicate.Challenge
- func ExpiresAtLT(v time.Time) predicate.Challenge
- func ExpiresAtLTE(v time.Time) predicate.Challenge
- func ExpiresAtNEQ(v time.Time) predicate.Challenge
- func ExpiresAtNotIn(vs ...time.Time) predicate.Challenge
- func Human(v string) predicate.Challenge
- func HumanContains(v string) predicate.Challenge
- func HumanContainsFold(v string) predicate.Challenge
- func HumanEQ(v string) predicate.Challenge
- func HumanEqualFold(v string) predicate.Challenge
- func HumanGT(v string) predicate.Challenge
- func HumanGTE(v string) predicate.Challenge
- func HumanHasPrefix(v string) predicate.Challenge
- func HumanHasSuffix(v string) predicate.Challenge
- func HumanIn(vs ...string) predicate.Challenge
- func HumanLT(v string) predicate.Challenge
- func HumanLTE(v string) predicate.Challenge
- func HumanNEQ(v string) predicate.Challenge
- func HumanNotIn(vs ...string) predicate.Challenge
- func ID(id int) predicate.Challenge
- func IDEQ(id int) predicate.Challenge
- func IDGT(id int) predicate.Challenge
- func IDGTE(id int) predicate.Challenge
- func IDIn(ids ...int) predicate.Challenge
- func IDLT(id int) predicate.Challenge
- func IDLTE(id int) predicate.Challenge
- func IDNEQ(id int) predicate.Challenge
- func IDNotIn(ids ...int) predicate.Challenge
- func Magic(v string) predicate.Challenge
- func MagicContains(v string) predicate.Challenge
- func MagicContainsFold(v string) predicate.Challenge
- func MagicEQ(v string) predicate.Challenge
- func MagicEqualFold(v string) predicate.Challenge
- func MagicGT(v string) predicate.Challenge
- func MagicGTE(v string) predicate.Challenge
- func MagicHasPrefix(v string) predicate.Challenge
- func MagicHasSuffix(v string) predicate.Challenge
- func MagicIn(vs ...string) predicate.Challenge
- func MagicLT(v string) predicate.Challenge
- func MagicLTE(v string) predicate.Challenge
- func MagicNEQ(v string) predicate.Challenge
- func MagicNotIn(vs ...string) predicate.Challenge
- func Not(p predicate.Challenge) predicate.Challenge
- func Or(predicates ...predicate.Challenge) predicate.Challenge
- func UpdateTime(v time.Time) predicate.Challenge
- func UpdateTimeEQ(v time.Time) predicate.Challenge
- func UpdateTimeGT(v time.Time) predicate.Challenge
- func UpdateTimeGTE(v time.Time) predicate.Challenge
- func UpdateTimeIn(vs ...time.Time) predicate.Challenge
- func UpdateTimeLT(v time.Time) predicate.Challenge
- func UpdateTimeLTE(v time.Time) predicate.Challenge
- func UpdateTimeNEQ(v time.Time) predicate.Challenge
- func UpdateTimeNotIn(vs ...time.Time) predicate.Challenge
- func UserID(v string) predicate.Challenge
- func UserIDContains(v string) predicate.Challenge
- func UserIDContainsFold(v string) predicate.Challenge
- func UserIDEQ(v string) predicate.Challenge
- func UserIDEqualFold(v string) predicate.Challenge
- func UserIDGT(v string) predicate.Challenge
- func UserIDGTE(v string) predicate.Challenge
- func UserIDHasPrefix(v string) predicate.Challenge
- func UserIDHasSuffix(v string) predicate.Challenge
- func UserIDIn(vs ...string) predicate.Challenge
- func UserIDLT(v string) predicate.Challenge
- func UserIDLTE(v string) predicate.Challenge
- func UserIDNEQ(v string) predicate.Challenge
- func UserIDNotIn(vs ...string) predicate.Challenge
Constants ¶
const ( // Label holds the string label denoting the challenge type in the database. Label = "challenge" // 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" // FieldChallengeID holds the string denoting the challenge_id field in the database. FieldChallengeID = "challenge_id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldHuman holds the string denoting the human field in the database. FieldHuman = "human" // FieldMagic holds the string denoting the magic field in the database. FieldMagic = "magic" // FieldExpiresAt holds the string denoting the expires_at field in the database. FieldExpiresAt = "expires_at" // Table holds the table name of the challenge in the database. Table = "challenges" )
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 // DefaultExpiresAt holds the default value on creation for the expires_at field. DefaultExpiresAt func() time.Time )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldChallengeID, FieldUserID, FieldHuman, FieldMagic, FieldExpiresAt, }
Columns holds all SQL columns for challenge fields.
Functions ¶
func ChallengeID ¶
ChallengeID applies equality check predicate on the "challenge_id" field. It's identical to ChallengeIDEQ.
func ChallengeIDContains ¶
ChallengeIDContains applies the Contains predicate on the "challenge_id" field.
func ChallengeIDContainsFold ¶
ChallengeIDContainsFold applies the ContainsFold predicate on the "challenge_id" field.
func ChallengeIDEQ ¶
ChallengeIDEQ applies the EQ predicate on the "challenge_id" field.
func ChallengeIDEqualFold ¶
ChallengeIDEqualFold applies the EqualFold predicate on the "challenge_id" field.
func ChallengeIDGT ¶
ChallengeIDGT applies the GT predicate on the "challenge_id" field.
func ChallengeIDGTE ¶
ChallengeIDGTE applies the GTE predicate on the "challenge_id" field.
func ChallengeIDHasPrefix ¶
ChallengeIDHasPrefix applies the HasPrefix predicate on the "challenge_id" field.
func ChallengeIDHasSuffix ¶
ChallengeIDHasSuffix applies the HasSuffix predicate on the "challenge_id" field.
func ChallengeIDIn ¶
ChallengeIDIn applies the In predicate on the "challenge_id" field.
func ChallengeIDLT ¶
ChallengeIDLT applies the LT predicate on the "challenge_id" field.
func ChallengeIDLTE ¶
ChallengeIDLTE applies the LTE predicate on the "challenge_id" field.
func ChallengeIDNEQ ¶
ChallengeIDNEQ applies the NEQ predicate on the "challenge_id" field.
func ChallengeIDNotIn ¶
ChallengeIDNotIn applies the NotIn predicate on the "challenge_id" field.
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 ExpiresAt ¶
ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
func ExpiresAtGT ¶
ExpiresAtGT applies the GT predicate on the "expires_at" field.
func ExpiresAtGTE ¶
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
func ExpiresAtIn ¶
ExpiresAtIn applies the In predicate on the "expires_at" field.
func ExpiresAtLT ¶
ExpiresAtLT applies the LT predicate on the "expires_at" field.
func ExpiresAtLTE ¶
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
func ExpiresAtNEQ ¶
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
func ExpiresAtNotIn ¶
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
func Human ¶
Human applies equality check predicate on the "human" field. It's identical to HumanEQ.
func HumanContains ¶
HumanContains applies the Contains predicate on the "human" field.
func HumanContainsFold ¶
HumanContainsFold applies the ContainsFold predicate on the "human" field.
func HumanEqualFold ¶
HumanEqualFold applies the EqualFold predicate on the "human" field.
func HumanHasPrefix ¶
HumanHasPrefix applies the HasPrefix predicate on the "human" field.
func HumanHasSuffix ¶
HumanHasSuffix applies the HasSuffix predicate on the "human" field.
func HumanNotIn ¶
HumanNotIn applies the NotIn predicate on the "human" field.
func Magic ¶
Magic applies equality check predicate on the "magic" field. It's identical to MagicEQ.
func MagicContains ¶
MagicContains applies the Contains predicate on the "magic" field.
func MagicContainsFold ¶
MagicContainsFold applies the ContainsFold predicate on the "magic" field.
func MagicEqualFold ¶
MagicEqualFold applies the EqualFold predicate on the "magic" field.
func MagicHasPrefix ¶
MagicHasPrefix applies the HasPrefix predicate on the "magic" field.
func MagicHasSuffix ¶
MagicHasSuffix applies the HasSuffix predicate on the "magic" field.
func MagicNotIn ¶
MagicNotIn applies the NotIn predicate on the "magic" 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 UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDContains ¶
UserIDContains applies the Contains predicate on the "user_id" field.
func UserIDContainsFold ¶
UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.
func UserIDEqualFold ¶
UserIDEqualFold applies the EqualFold predicate on the "user_id" field.
func UserIDHasPrefix ¶
UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.
func UserIDHasSuffix ¶
UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" field.
Types ¶
This section is empty.