Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Judge) predicate.Judge
- func Code(v string) predicate.Judge
- func CodeContains(v string) predicate.Judge
- func CodeContainsFold(v string) predicate.Judge
- func CodeEQ(v string) predicate.Judge
- func CodeEqualFold(v string) predicate.Judge
- func CodeGT(v string) predicate.Judge
- func CodeGTE(v string) predicate.Judge
- func CodeHasPrefix(v string) predicate.Judge
- func CodeHasSuffix(v string) predicate.Judge
- func CodeIn(vs ...string) predicate.Judge
- func CodeLT(v string) predicate.Judge
- func CodeLTE(v string) predicate.Judge
- func CodeNEQ(v string) predicate.Judge
- func CodeNotIn(vs ...string) predicate.Judge
- func Configuration(v string) predicate.Judge
- func ConfigurationContains(v string) predicate.Judge
- func ConfigurationContainsFold(v string) predicate.Judge
- func ConfigurationEQ(v string) predicate.Judge
- func ConfigurationEqualFold(v string) predicate.Judge
- func ConfigurationGT(v string) predicate.Judge
- func ConfigurationGTE(v string) predicate.Judge
- func ConfigurationHasPrefix(v string) predicate.Judge
- func ConfigurationHasSuffix(v string) predicate.Judge
- func ConfigurationIn(vs ...string) predicate.Judge
- func ConfigurationLT(v string) predicate.Judge
- func ConfigurationLTE(v string) predicate.Judge
- func ConfigurationNEQ(v string) predicate.Judge
- func ConfigurationNotIn(vs ...string) predicate.Judge
- func CreatedAt(v time.Time) predicate.Judge
- func CreatedAtEQ(v time.Time) predicate.Judge
- func CreatedAtGT(v time.Time) predicate.Judge
- func CreatedAtGTE(v time.Time) predicate.Judge
- func CreatedAtIn(vs ...time.Time) predicate.Judge
- func CreatedAtLT(v time.Time) predicate.Judge
- func CreatedAtLTE(v time.Time) predicate.Judge
- func CreatedAtNEQ(v time.Time) predicate.Judge
- func CreatedAtNotIn(vs ...time.Time) predicate.Judge
- func HasProblems() predicate.Judge
- func HasProblemsWith(preds ...predicate.Problem) predicate.Judge
- func ID(id int) predicate.Judge
- func IDEQ(id int) predicate.Judge
- func IDGT(id int) predicate.Judge
- func IDGTE(id int) predicate.Judge
- func IDIn(ids ...int) predicate.Judge
- func IDLT(id int) predicate.Judge
- func IDLTE(id int) predicate.Judge
- func IDNEQ(id int) predicate.Judge
- func IDNotIn(ids ...int) predicate.Judge
- func Name(v string) predicate.Judge
- func NameContains(v string) predicate.Judge
- func NameContainsFold(v string) predicate.Judge
- func NameEQ(v string) predicate.Judge
- func NameEqualFold(v string) predicate.Judge
- func NameGT(v string) predicate.Judge
- func NameGTE(v string) predicate.Judge
- func NameHasPrefix(v string) predicate.Judge
- func NameHasSuffix(v string) predicate.Judge
- func NameIn(vs ...string) predicate.Judge
- func NameLT(v string) predicate.Judge
- func NameLTE(v string) predicate.Judge
- func NameNEQ(v string) predicate.Judge
- func NameNotIn(vs ...string) predicate.Judge
- func Not(p predicate.Judge) predicate.Judge
- func Or(predicates ...predicate.Judge) predicate.Judge
- func TypeEQ(v Type) predicate.Judge
- func TypeIn(vs ...Type) predicate.Judge
- func TypeNEQ(v Type) predicate.Judge
- func TypeNotIn(vs ...Type) predicate.Judge
- func TypeValidator(_type Type) error
- func UpdatedAt(v time.Time) predicate.Judge
- func UpdatedAtEQ(v time.Time) predicate.Judge
- func UpdatedAtGT(v time.Time) predicate.Judge
- func UpdatedAtGTE(v time.Time) predicate.Judge
- func UpdatedAtIn(vs ...time.Time) predicate.Judge
- func UpdatedAtLT(v time.Time) predicate.Judge
- func UpdatedAtLTE(v time.Time) predicate.Judge
- func UpdatedAtNEQ(v time.Time) predicate.Judge
- func UpdatedAtNotIn(vs ...time.Time) predicate.Judge
- func ValidColumn(column string) bool
- type OrderOption
- func ByCode(opts ...sql.OrderTermOption) OrderOption
- func ByConfiguration(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByProblems(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByProblemsCount(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- type Type
Constants ¶
const ( // Label holds the string label denoting the judge type in the database. Label = "judge" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldCode holds the string denoting the code field in the database. FieldCode = "code" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldConfiguration holds the string denoting the configuration field in the database. FieldConfiguration = "configuration" // EdgeProblems holds the string denoting the problems edge name in mutations. EdgeProblems = "problems" // Table holds the table name of the judge in the database. Table = "judges" // ProblemsTable is the table that holds the problems relation/edge. ProblemsTable = "problems" // ProblemsInverseTable is the table name for the Problem entity. // It exists in this package in order to avoid circular dependency with the "problem" package. ProblemsInverseTable = "problems" // ProblemsColumn is the table column denoting the problems relation/edge. ProblemsColumn = "judge_problems" )
const DefaultType = TypeLocal
TypeLocal is the default value of the Type enum.
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // CodeValidator is a validator for the "code" field. It is called by the builders before save. CodeValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldName, FieldCode, FieldType, FieldConfiguration, }
Columns holds all SQL columns for judge fields.
Functions ¶
func CodeContains ¶
CodeContains applies the Contains predicate on the "code" field.
func CodeContainsFold ¶
CodeContainsFold applies the ContainsFold predicate on the "code" field.
func CodeEqualFold ¶
CodeEqualFold applies the EqualFold predicate on the "code" field.
func CodeHasPrefix ¶
CodeHasPrefix applies the HasPrefix predicate on the "code" field.
func CodeHasSuffix ¶
CodeHasSuffix applies the HasSuffix predicate on the "code" field.
func Configuration ¶
Configuration applies equality check predicate on the "configuration" field. It's identical to ConfigurationEQ.
func ConfigurationContains ¶
ConfigurationContains applies the Contains predicate on the "configuration" field.
func ConfigurationContainsFold ¶
ConfigurationContainsFold applies the ContainsFold predicate on the "configuration" field.
func ConfigurationEQ ¶
ConfigurationEQ applies the EQ predicate on the "configuration" field.
func ConfigurationEqualFold ¶
ConfigurationEqualFold applies the EqualFold predicate on the "configuration" field.
func ConfigurationGT ¶
ConfigurationGT applies the GT predicate on the "configuration" field.
func ConfigurationGTE ¶
ConfigurationGTE applies the GTE predicate on the "configuration" field.
func ConfigurationHasPrefix ¶
ConfigurationHasPrefix applies the HasPrefix predicate on the "configuration" field.
func ConfigurationHasSuffix ¶
ConfigurationHasSuffix applies the HasSuffix predicate on the "configuration" field.
func ConfigurationIn ¶
ConfigurationIn applies the In predicate on the "configuration" field.
func ConfigurationLT ¶
ConfigurationLT applies the LT predicate on the "configuration" field.
func ConfigurationLTE ¶
ConfigurationLTE applies the LTE predicate on the "configuration" field.
func ConfigurationNEQ ¶
ConfigurationNEQ applies the NEQ predicate on the "configuration" field.
func ConfigurationNotIn ¶
ConfigurationNotIn applies the NotIn predicate on the "configuration" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasProblems ¶
HasProblems applies the HasEdge predicate on the "problems" edge.
func HasProblemsWith ¶
HasProblemsWith applies the HasEdge predicate on the "problems" edge with a given conditions (other predicates).
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 TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Judge queries.
func ByCode ¶
func ByCode(opts ...sql.OrderTermOption) OrderOption
ByCode orders the results by the code field.
func ByConfiguration ¶
func ByConfiguration(opts ...sql.OrderTermOption) OrderOption
ByConfiguration orders the results by the configuration field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByProblems ¶
func ByProblems(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByProblems orders the results by problems terms.
func ByProblemsCount ¶
func ByProblemsCount(opts ...sql.OrderTermOption) OrderOption
ByProblemsCount orders the results by problems count.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
type Type ¶
type Type string
Type defines the type for the "type" enum field.
const ( TypeLocal Type = "local" TypeCodeforces Type = "codeforces" TypeVjudge Type = "vjudge" TypeSyoj Type = "syoj" TypeNoop Type = "noop" )
Type values.
func (Type) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Type) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.