package
0.1.5
Repository: https://github.com/danieltitkov/predictor.git
Documentation: pkg.go.dev

# Functions

And groups predicates with the AND operator between them.
Content applies equality check predicate on the "content" field.
ContentContains applies the Contains predicate on the "content" field.
ContentContainsFold applies the ContainsFold predicate on the "content" field.
ContentEQ applies the EQ predicate on the "content" field.
ContentEqualFold applies the EqualFold predicate on the "content" field.
ContentGT applies the GT predicate on the "content" field.
ContentGTE applies the GTE predicate on the "content" field.
ContentHasPrefix applies the HasPrefix predicate on the "content" field.
ContentHasSuffix applies the HasSuffix predicate on the "content" field.
ContentIn applies the In predicate on the "content" field.
ContentLT applies the LT predicate on the "content" field.
ContentLTE applies the LTE predicate on the "content" field.
ContentNEQ applies the NEQ predicate on the "content" field.
ContentNotIn applies the NotIn predicate on the "content" field.
CreateTime applies equality check predicate on the "create_time" field.
CreateTimeEQ applies the EQ predicate on the "create_time" field.
CreateTimeGT applies the GT predicate on the "create_time" field.
CreateTimeGTE applies the GTE predicate on the "create_time" field.
CreateTimeIn applies the In predicate on the "create_time" field.
CreateTimeLT applies the LT predicate on the "create_time" field.
CreateTimeLTE applies the LTE predicate on the "create_time" field.
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
Description applies equality check predicate on the "description" field.
DescriptionContains applies the Contains predicate on the "description" field.
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
DescriptionEQ applies the EQ predicate on the "description" field.
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
DescriptionGT applies the GT predicate on the "description" field.
DescriptionGTE applies the GTE predicate on the "description" field.
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
DescriptionIn applies the In predicate on the "description" field.
DescriptionIsNil applies the IsNil predicate on the "description" field.
DescriptionLT applies the LT predicate on the "description" field.
DescriptionLTE applies the LTE predicate on the "description" field.
DescriptionNEQ applies the NEQ predicate on the "description" field.
DescriptionNotIn applies the NotIn predicate on the "description" field.
DescriptionNotNil applies the NotNil predicate on the "description" field.
EndTime applies equality check predicate on the "end_time" field.
EndTimeEQ applies the EQ predicate on the "end_time" field.
EndTimeGT applies the GT predicate on the "end_time" field.
EndTimeGTE applies the GTE predicate on the "end_time" field.
EndTimeIn applies the In predicate on the "end_time" field.
EndTimeLT applies the LT predicate on the "end_time" field.
EndTimeLTE applies the LTE predicate on the "end_time" field.
EndTimeNEQ applies the NEQ predicate on the "end_time" field.
EndTimeNotIn applies the NotIn predicate on the "end_time" field.
HasAuthor applies the HasEdge predicate on the "author" edge.
HasAuthorWith applies the HasEdge predicate on the "author" edge with a given conditions (other predicates).
HasPredictions applies the HasEdge predicate on the "predictions" edge.
HasPredictionsWith applies the HasEdge predicate on the "predictions" edge with a given conditions (other predicates).
HasProofs applies the HasEdge predicate on the "proofs" edge.
HasProofsWith applies the HasEdge predicate on the "proofs" edge with a given conditions (other predicates).
ID filters vertices based on their ID field.
IDEQ applies the EQ predicate on the ID field.
IDGT applies the GT predicate on the ID field.
IDGTE applies the GTE predicate on the ID field.
IDIn applies the In predicate on the ID field.
IDLT applies the LT predicate on the ID field.
IDLTE applies the LTE predicate on the ID field.
IDNEQ applies the NEQ predicate on the ID field.
IDNotIn applies the NotIn predicate on the ID field.
Not applies the not operator on the given predicate.
Or groups predicates with the OR operator between them.
Outcome applies equality check predicate on the "outcome" field.
OutcomeEQ applies the EQ predicate on the "outcome" field.
OutcomeIsNil applies the IsNil predicate on the "outcome" field.
OutcomeNEQ applies the NEQ predicate on the "outcome" field.
OutcomeNotNil applies the NotNil predicate on the "outcome" field.
Published applies equality check predicate on the "published" field.
PublishedEQ applies the EQ predicate on the "published" field.
PublishedNEQ applies the NEQ predicate on the "published" field.
StartTime applies equality check predicate on the "start_time" field.
StartTimeEQ applies the EQ predicate on the "start_time" field.
StartTimeGT applies the GT predicate on the "start_time" field.
StartTimeGTE applies the GTE predicate on the "start_time" field.
StartTimeIn applies the In predicate on the "start_time" field.
StartTimeLT applies the LT predicate on the "start_time" field.
StartTimeLTE applies the LTE predicate on the "start_time" field.
StartTimeNEQ applies the NEQ predicate on the "start_time" field.
StartTimeNotIn applies the NotIn predicate on the "start_time" field.
TypeEQ applies the EQ predicate on the "type" field.
TypeIn applies the In predicate on the "type" field.
TypeNEQ applies the NEQ predicate on the "type" field.
TypeNotIn applies the NotIn predicate on the "type" field.
TypeValidator is a validator for the "type" field enum values.
UpdateTime applies equality check predicate on the "update_time" field.
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
UpdateTimeGT applies the GT predicate on the "update_time" field.
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
UpdateTimeIn applies the In predicate on the "update_time" field.
UpdateTimeLT applies the LT predicate on the "update_time" field.
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
ValidColumn reports if the column name is valid (part of the table columns).

# Constants

AuthorColumn is the table column denoting the author relation/edge.
AuthorInverseTable is the table name for the User entity.
AuthorTable is the table that holds the author relation/edge.
TypeBool is the default value of the Type enum.
EdgeAuthor holds the string denoting the author edge name in mutations.
EdgePredictions holds the string denoting the predictions edge name in mutations.
EdgeProofs holds the string denoting the proofs edge name in mutations.
FieldContent holds the string denoting the content field in the database.
FieldCreateTime holds the string denoting the create_time field in the database.
FieldDescription holds the string denoting the description field in the database.
FieldEndTime holds the string denoting the end_time field in the database.
FieldID holds the string denoting the id field in the database.
FieldOutcome holds the string denoting the outcome field in the database.
FieldPublished holds the string denoting the published field in the database.
FieldStartTime holds the string denoting the start_time field in the database.
FieldType holds the string denoting the type field in the database.
FieldUpdateTime holds the string denoting the update_time field in the database.
Label holds the string label denoting the challenge type in the database.
PredictionsColumn is the table column denoting the predictions relation/edge.
PredictionsInverseTable is the table name for the Prediction entity.
PredictionsTable is the table that holds the predictions relation/edge.
ProofsColumn is the table column denoting the proofs relation/edge.
ProofsInverseTable is the table name for the Proof entity.
ProofsTable is the table that holds the proofs relation/edge.
Table holds the table name of the challenge in the database.
Type values.

# Variables

Columns holds all SQL columns for challenge fields.
ContentValidator is a validator for the "content" field.
DefaultCreateTime holds the default value on creation for the "create_time" field.
DefaultID holds the default value on creation for the "id" field.
DefaultPublished holds the default value on creation for the "published" field.
DefaultUpdateTime holds the default value on creation for the "update_time" field.
DescriptionValidator is a validator for the "description" field.
ForeignKeys holds the SQL foreign-keys that are owned by the "challenges" table and are not defined as standalone fields in the schema.
UpdateDefaultUpdateTime holds the default value on update for the "update_time" field.

# Type aliases

Type defines the type for the "type" enum field.