263 lines
9.7 KiB
Go
263 lines
9.7 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package contributorsociallink
|
|
|
|
import (
|
|
"tss-rocks-be/ent/predicate"
|
|
|
|
"entgo.io/ent/dialect/sql"
|
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
|
)
|
|
|
|
// ID filters vertices based on their ID field.
|
|
func ID(id int) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id int) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id int) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...int) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...int) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id int) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id int) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id int) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id int) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
|
|
func Name(v string) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldEQ(FieldName, v))
|
|
}
|
|
|
|
// Value applies equality check predicate on the "value" field. It's identical to ValueEQ.
|
|
func Value(v string) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldEQ(FieldValue, v))
|
|
}
|
|
|
|
// TypeEQ applies the EQ predicate on the "type" field.
|
|
func TypeEQ(v Type) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldEQ(FieldType, v))
|
|
}
|
|
|
|
// TypeNEQ applies the NEQ predicate on the "type" field.
|
|
func TypeNEQ(v Type) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldNEQ(FieldType, v))
|
|
}
|
|
|
|
// TypeIn applies the In predicate on the "type" field.
|
|
func TypeIn(vs ...Type) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldIn(FieldType, vs...))
|
|
}
|
|
|
|
// TypeNotIn applies the NotIn predicate on the "type" field.
|
|
func TypeNotIn(vs ...Type) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldNotIn(FieldType, vs...))
|
|
}
|
|
|
|
// NameEQ applies the EQ predicate on the "name" field.
|
|
func NameEQ(v string) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldEQ(FieldName, v))
|
|
}
|
|
|
|
// NameNEQ applies the NEQ predicate on the "name" field.
|
|
func NameNEQ(v string) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldNEQ(FieldName, v))
|
|
}
|
|
|
|
// NameIn applies the In predicate on the "name" field.
|
|
func NameIn(vs ...string) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldIn(FieldName, vs...))
|
|
}
|
|
|
|
// NameNotIn applies the NotIn predicate on the "name" field.
|
|
func NameNotIn(vs ...string) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldNotIn(FieldName, vs...))
|
|
}
|
|
|
|
// NameGT applies the GT predicate on the "name" field.
|
|
func NameGT(v string) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldGT(FieldName, v))
|
|
}
|
|
|
|
// NameGTE applies the GTE predicate on the "name" field.
|
|
func NameGTE(v string) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldGTE(FieldName, v))
|
|
}
|
|
|
|
// NameLT applies the LT predicate on the "name" field.
|
|
func NameLT(v string) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldLT(FieldName, v))
|
|
}
|
|
|
|
// NameLTE applies the LTE predicate on the "name" field.
|
|
func NameLTE(v string) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldLTE(FieldName, v))
|
|
}
|
|
|
|
// NameContains applies the Contains predicate on the "name" field.
|
|
func NameContains(v string) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldContains(FieldName, v))
|
|
}
|
|
|
|
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
|
|
func NameHasPrefix(v string) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldHasPrefix(FieldName, v))
|
|
}
|
|
|
|
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
|
|
func NameHasSuffix(v string) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldHasSuffix(FieldName, v))
|
|
}
|
|
|
|
// NameIsNil applies the IsNil predicate on the "name" field.
|
|
func NameIsNil() predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldIsNull(FieldName))
|
|
}
|
|
|
|
// NameNotNil applies the NotNil predicate on the "name" field.
|
|
func NameNotNil() predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldNotNull(FieldName))
|
|
}
|
|
|
|
// NameEqualFold applies the EqualFold predicate on the "name" field.
|
|
func NameEqualFold(v string) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldEqualFold(FieldName, v))
|
|
}
|
|
|
|
// NameContainsFold applies the ContainsFold predicate on the "name" field.
|
|
func NameContainsFold(v string) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldContainsFold(FieldName, v))
|
|
}
|
|
|
|
// ValueEQ applies the EQ predicate on the "value" field.
|
|
func ValueEQ(v string) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldEQ(FieldValue, v))
|
|
}
|
|
|
|
// ValueNEQ applies the NEQ predicate on the "value" field.
|
|
func ValueNEQ(v string) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldNEQ(FieldValue, v))
|
|
}
|
|
|
|
// ValueIn applies the In predicate on the "value" field.
|
|
func ValueIn(vs ...string) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldIn(FieldValue, vs...))
|
|
}
|
|
|
|
// ValueNotIn applies the NotIn predicate on the "value" field.
|
|
func ValueNotIn(vs ...string) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldNotIn(FieldValue, vs...))
|
|
}
|
|
|
|
// ValueGT applies the GT predicate on the "value" field.
|
|
func ValueGT(v string) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldGT(FieldValue, v))
|
|
}
|
|
|
|
// ValueGTE applies the GTE predicate on the "value" field.
|
|
func ValueGTE(v string) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldGTE(FieldValue, v))
|
|
}
|
|
|
|
// ValueLT applies the LT predicate on the "value" field.
|
|
func ValueLT(v string) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldLT(FieldValue, v))
|
|
}
|
|
|
|
// ValueLTE applies the LTE predicate on the "value" field.
|
|
func ValueLTE(v string) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldLTE(FieldValue, v))
|
|
}
|
|
|
|
// ValueContains applies the Contains predicate on the "value" field.
|
|
func ValueContains(v string) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldContains(FieldValue, v))
|
|
}
|
|
|
|
// ValueHasPrefix applies the HasPrefix predicate on the "value" field.
|
|
func ValueHasPrefix(v string) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldHasPrefix(FieldValue, v))
|
|
}
|
|
|
|
// ValueHasSuffix applies the HasSuffix predicate on the "value" field.
|
|
func ValueHasSuffix(v string) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldHasSuffix(FieldValue, v))
|
|
}
|
|
|
|
// ValueEqualFold applies the EqualFold predicate on the "value" field.
|
|
func ValueEqualFold(v string) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldEqualFold(FieldValue, v))
|
|
}
|
|
|
|
// ValueContainsFold applies the ContainsFold predicate on the "value" field.
|
|
func ValueContainsFold(v string) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.FieldContainsFold(FieldValue, v))
|
|
}
|
|
|
|
// HasContributor applies the HasEdge predicate on the "contributor" edge.
|
|
func HasContributor() predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(func(s *sql.Selector) {
|
|
step := sqlgraph.NewStep(
|
|
sqlgraph.From(Table, FieldID),
|
|
sqlgraph.Edge(sqlgraph.M2O, true, ContributorTable, ContributorColumn),
|
|
)
|
|
sqlgraph.HasNeighbors(s, step)
|
|
})
|
|
}
|
|
|
|
// HasContributorWith applies the HasEdge predicate on the "contributor" edge with a given conditions (other predicates).
|
|
func HasContributorWith(preds ...predicate.Contributor) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(func(s *sql.Selector) {
|
|
step := newContributorStep()
|
|
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
|
for _, p := range preds {
|
|
p(s)
|
|
}
|
|
})
|
|
})
|
|
}
|
|
|
|
// And groups predicates with the AND operator between them.
|
|
func And(predicates ...predicate.ContributorSocialLink) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.ContributorSocialLink) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.ContributorSocialLink) predicate.ContributorSocialLink {
|
|
return predicate.ContributorSocialLink(sql.NotPredicates(p))
|
|
}
|