Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Challenge) predicate.Challenge
- func Content(v string) predicate.Challenge
- func ContentContains(v string) predicate.Challenge
- func ContentContainsFold(v string) predicate.Challenge
- func ContentEQ(v string) predicate.Challenge
- func ContentEqualFold(v string) predicate.Challenge
- func ContentGT(v string) predicate.Challenge
- func ContentGTE(v string) predicate.Challenge
- func ContentHasPrefix(v string) predicate.Challenge
- func ContentHasSuffix(v string) predicate.Challenge
- func ContentIn(vs ...string) predicate.Challenge
- func ContentLT(v string) predicate.Challenge
- func ContentLTE(v string) predicate.Challenge
- func ContentNEQ(v string) predicate.Challenge
- func ContentNotIn(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 Description(v string) predicate.Challenge
- func DescriptionContains(v string) predicate.Challenge
- func DescriptionContainsFold(v string) predicate.Challenge
- func DescriptionEQ(v string) predicate.Challenge
- func DescriptionEqualFold(v string) predicate.Challenge
- func DescriptionGT(v string) predicate.Challenge
- func DescriptionGTE(v string) predicate.Challenge
- func DescriptionHasPrefix(v string) predicate.Challenge
- func DescriptionHasSuffix(v string) predicate.Challenge
- func DescriptionIn(vs ...string) predicate.Challenge
- func DescriptionIsNil() predicate.Challenge
- func DescriptionLT(v string) predicate.Challenge
- func DescriptionLTE(v string) predicate.Challenge
- func DescriptionNEQ(v string) predicate.Challenge
- func DescriptionNotIn(vs ...string) predicate.Challenge
- func DescriptionNotNil() predicate.Challenge
- func EndTime(v time.Time) predicate.Challenge
- func EndTimeEQ(v time.Time) predicate.Challenge
- func EndTimeGT(v time.Time) predicate.Challenge
- func EndTimeGTE(v time.Time) predicate.Challenge
- func EndTimeIn(vs ...time.Time) predicate.Challenge
- func EndTimeLT(v time.Time) predicate.Challenge
- func EndTimeLTE(v time.Time) predicate.Challenge
- func EndTimeNEQ(v time.Time) predicate.Challenge
- func EndTimeNotIn(vs ...time.Time) predicate.Challenge
- func HasAuthor() predicate.Challenge
- func HasAuthorWith(preds ...predicate.User) predicate.Challenge
- func HasPredictions() predicate.Challenge
- func HasPredictionsWith(preds ...predicate.Prediction) predicate.Challenge
- func HasProofs() predicate.Challenge
- func HasProofsWith(preds ...predicate.Proof) predicate.Challenge
- func ID(id uuid.UUID) predicate.Challenge
- func IDEQ(id uuid.UUID) predicate.Challenge
- func IDGT(id uuid.UUID) predicate.Challenge
- func IDGTE(id uuid.UUID) predicate.Challenge
- func IDIn(ids ...uuid.UUID) predicate.Challenge
- func IDLT(id uuid.UUID) predicate.Challenge
- func IDLTE(id uuid.UUID) predicate.Challenge
- func IDNEQ(id uuid.UUID) predicate.Challenge
- func IDNotIn(ids ...uuid.UUID) predicate.Challenge
- func Not(p predicate.Challenge) predicate.Challenge
- func Or(predicates ...predicate.Challenge) predicate.Challenge
- func Outcome(v bool) predicate.Challenge
- func OutcomeEQ(v bool) predicate.Challenge
- func OutcomeIsNil() predicate.Challenge
- func OutcomeNEQ(v bool) predicate.Challenge
- func OutcomeNotNil() predicate.Challenge
- func Published(v bool) predicate.Challenge
- func PublishedEQ(v bool) predicate.Challenge
- func PublishedNEQ(v bool) predicate.Challenge
- func StartTime(v time.Time) predicate.Challenge
- func StartTimeEQ(v time.Time) predicate.Challenge
- func StartTimeGT(v time.Time) predicate.Challenge
- func StartTimeGTE(v time.Time) predicate.Challenge
- func StartTimeIn(vs ...time.Time) predicate.Challenge
- func StartTimeLT(v time.Time) predicate.Challenge
- func StartTimeLTE(v time.Time) predicate.Challenge
- func StartTimeNEQ(v time.Time) predicate.Challenge
- func StartTimeNotIn(vs ...time.Time) predicate.Challenge
- func TypeEQ(v Type) predicate.Challenge
- func TypeIn(vs ...Type) predicate.Challenge
- func TypeNEQ(v Type) predicate.Challenge
- func TypeNotIn(vs ...Type) predicate.Challenge
- func TypeValidator(_type Type) error
- 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 ValidColumn(column string) bool
- type Type
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" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldOutcome holds the string denoting the outcome field in the database. FieldOutcome = "outcome" // FieldPublished holds the string denoting the published field in the database. FieldPublished = "published" // FieldStartTime holds the string denoting the start_time field in the database. FieldStartTime = "start_time" // FieldEndTime holds the string denoting the end_time field in the database. FieldEndTime = "end_time" // FieldType holds the string denoting the type field in the database. FieldType = "type" // EdgePredictions holds the string denoting the predictions edge name in mutations. EdgePredictions = "predictions" // EdgeProofs holds the string denoting the proofs edge name in mutations. EdgeProofs = "proofs" // EdgeAuthor holds the string denoting the author edge name in mutations. EdgeAuthor = "author" // Table holds the table name of the challenge in the database. Table = "challenges" // PredictionsTable is the table that holds the predictions relation/edge. PredictionsTable = "predictions" // PredictionsInverseTable is the table name for the Prediction entity. // It exists in this package in order to avoid circular dependency with the "prediction" package. PredictionsInverseTable = "predictions" // PredictionsColumn is the table column denoting the predictions relation/edge. PredictionsColumn = "challenge_predictions" // ProofsTable is the table that holds the proofs relation/edge. ProofsTable = "proofs" // ProofsInverseTable is the table name for the Proof entity. // It exists in this package in order to avoid circular dependency with the "proof" package. ProofsInverseTable = "proofs" // ProofsColumn is the table column denoting the proofs relation/edge. ProofsColumn = "challenge_proofs" // AuthorTable is the table that holds the author relation/edge. AuthorTable = "challenges" // AuthorInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. AuthorInverseTable = "users" // AuthorColumn is the table column denoting the author relation/edge. AuthorColumn = "user_challenges" )
const DefaultType = TypeBool
TypeBool is the default value of the Type enum.
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 // ContentValidator is a validator for the "content" field. It is called by the builders before save. ContentValidator func(string) error // DescriptionValidator is a validator for the "description" field. It is called by the builders before save. DescriptionValidator func(string) error // DefaultPublished holds the default value on creation for the "published" field. DefaultPublished bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldContent, FieldDescription, FieldOutcome, FieldPublished, FieldStartTime, FieldEndTime, FieldType, }
Columns holds all SQL columns for challenge fields.
var ForeignKeys = []string{
"user_challenges",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "challenges" table and are not defined as standalone fields in the schema.
Functions ¶
func Content ¶
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentContains ¶
ContentContains applies the Contains predicate on the "content" field.
func ContentContainsFold ¶
ContentContainsFold applies the ContainsFold predicate on the "content" field.
func ContentEqualFold ¶
ContentEqualFold applies the EqualFold predicate on the "content" field.
func ContentGTE ¶
ContentGTE applies the GTE predicate on the "content" field.
func ContentHasPrefix ¶
ContentHasPrefix applies the HasPrefix predicate on the "content" field.
func ContentHasSuffix ¶
ContentHasSuffix applies the HasSuffix predicate on the "content" field.
func ContentLTE ¶
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
ContentNotIn applies the NotIn predicate on the "content" 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 Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func EndTime ¶
EndTime applies equality check predicate on the "end_time" field. It's identical to EndTimeEQ.
func EndTimeGTE ¶
EndTimeGTE applies the GTE predicate on the "end_time" field.
func EndTimeLTE ¶
EndTimeLTE applies the LTE predicate on the "end_time" field.
func EndTimeNEQ ¶
EndTimeNEQ applies the NEQ predicate on the "end_time" field.
func EndTimeNotIn ¶
EndTimeNotIn applies the NotIn predicate on the "end_time" field.
func HasAuthorWith ¶
HasAuthorWith applies the HasEdge predicate on the "author" edge with a given conditions (other predicates).
func HasPredictions ¶
HasPredictions applies the HasEdge predicate on the "predictions" edge.
func HasPredictionsWith ¶
func HasPredictionsWith(preds ...predicate.Prediction) predicate.Challenge
HasPredictionsWith applies the HasEdge predicate on the "predictions" edge with a given conditions (other predicates).
func HasProofsWith ¶
HasProofsWith applies the HasEdge predicate on the "proofs" edge with a given conditions (other predicates).
func Outcome ¶
Outcome applies equality check predicate on the "outcome" field. It's identical to OutcomeEQ.
func OutcomeIsNil ¶
OutcomeIsNil applies the IsNil predicate on the "outcome" field.
func OutcomeNEQ ¶
OutcomeNEQ applies the NEQ predicate on the "outcome" field.
func OutcomeNotNil ¶
OutcomeNotNil applies the NotNil predicate on the "outcome" field.
func Published ¶
Published applies equality check predicate on the "published" field. It's identical to PublishedEQ.
func PublishedEQ ¶
PublishedEQ applies the EQ predicate on the "published" field.
func PublishedNEQ ¶
PublishedNEQ applies the NEQ predicate on the "published" field.
func StartTime ¶
StartTime applies equality check predicate on the "start_time" field. It's identical to StartTimeEQ.
func StartTimeEQ ¶
StartTimeEQ applies the EQ predicate on the "start_time" field.
func StartTimeGT ¶
StartTimeGT applies the GT predicate on the "start_time" field.
func StartTimeGTE ¶
StartTimeGTE applies the GTE predicate on the "start_time" field.
func StartTimeIn ¶
StartTimeIn applies the In predicate on the "start_time" field.
func StartTimeLT ¶
StartTimeLT applies the LT predicate on the "start_time" field.
func StartTimeLTE ¶
StartTimeLTE applies the LTE predicate on the "start_time" field.
func StartTimeNEQ ¶
StartTimeNEQ applies the NEQ predicate on the "start_time" field.
func StartTimeNotIn ¶
StartTimeNotIn applies the NotIn predicate on the "start_time" field.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
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).