2024-03-13 14:39:45 +01:00
|
|
|
// Code generated by ent, DO NOT EDIT.
|
|
|
|
|
|
|
|
|
|
package project
|
|
|
|
|
|
|
|
|
|
import (
|
2024-05-16 17:36:44 +02:00
|
|
|
"portfolio/database/ent/predicate"
|
2024-03-13 14:39:45 +01:00
|
|
|
|
|
|
|
|
"entgo.io/ent/dialect/sql"
|
|
|
|
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// ID filters vertices based on their ID field.
|
|
|
|
|
func ID(id int) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldEQ(FieldID, id))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
|
|
|
func IDEQ(id int) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldEQ(FieldID, id))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
|
|
|
func IDNEQ(id int) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldNEQ(FieldID, id))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
|
|
|
func IDIn(ids ...int) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldIn(FieldID, ids...))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
|
|
|
func IDNotIn(ids ...int) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldNotIn(FieldID, ids...))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
|
|
|
func IDGT(id int) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldGT(FieldID, id))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
|
|
|
func IDGTE(id int) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldGTE(FieldID, id))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
|
|
|
func IDLT(id int) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldLT(FieldID, id))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
|
|
|
func IDLTE(id int) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldLTE(FieldID, id))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
|
|
|
|
|
func Name(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldEQ(FieldName, v))
|
|
|
|
|
}
|
|
|
|
|
|
2024-05-19 17:04:15 +02:00
|
|
|
// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
|
|
|
|
|
func Description(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldEQ(FieldDescription, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// URL applies equality check predicate on the "url" field. It's identical to URLEQ.
|
|
|
|
|
func URL(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldEQ(FieldURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ImageURL applies equality check predicate on the "image_url" field. It's identical to ImageURLEQ.
|
|
|
|
|
func ImageURL(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldEQ(FieldImageURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DocURL applies equality check predicate on the "doc_url" field. It's identical to DocURLEQ.
|
|
|
|
|
func DocURL(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldEQ(FieldDocURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
2024-03-13 14:39:45 +01:00
|
|
|
// NameEQ applies the EQ predicate on the "name" field.
|
|
|
|
|
func NameEQ(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldEQ(FieldName, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NameNEQ applies the NEQ predicate on the "name" field.
|
|
|
|
|
func NameNEQ(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldNEQ(FieldName, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NameIn applies the In predicate on the "name" field.
|
|
|
|
|
func NameIn(vs ...string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldIn(FieldName, vs...))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NameNotIn applies the NotIn predicate on the "name" field.
|
|
|
|
|
func NameNotIn(vs ...string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldNotIn(FieldName, vs...))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NameGT applies the GT predicate on the "name" field.
|
|
|
|
|
func NameGT(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldGT(FieldName, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NameGTE applies the GTE predicate on the "name" field.
|
|
|
|
|
func NameGTE(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldGTE(FieldName, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NameLT applies the LT predicate on the "name" field.
|
|
|
|
|
func NameLT(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldLT(FieldName, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NameLTE applies the LTE predicate on the "name" field.
|
|
|
|
|
func NameLTE(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldLTE(FieldName, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NameContains applies the Contains predicate on the "name" field.
|
|
|
|
|
func NameContains(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldContains(FieldName, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
|
|
|
|
|
func NameHasPrefix(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldHasPrefix(FieldName, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
|
|
|
|
|
func NameHasSuffix(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldHasSuffix(FieldName, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NameEqualFold applies the EqualFold predicate on the "name" field.
|
|
|
|
|
func NameEqualFold(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldEqualFold(FieldName, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NameContainsFold applies the ContainsFold predicate on the "name" field.
|
|
|
|
|
func NameContainsFold(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldContainsFold(FieldName, v))
|
|
|
|
|
}
|
|
|
|
|
|
2024-05-19 17:04:15 +02:00
|
|
|
// DescriptionEQ applies the EQ predicate on the "description" field.
|
|
|
|
|
func DescriptionEQ(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldEQ(FieldDescription, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DescriptionNEQ applies the NEQ predicate on the "description" field.
|
|
|
|
|
func DescriptionNEQ(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldNEQ(FieldDescription, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DescriptionIn applies the In predicate on the "description" field.
|
|
|
|
|
func DescriptionIn(vs ...string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldIn(FieldDescription, vs...))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DescriptionNotIn applies the NotIn predicate on the "description" field.
|
|
|
|
|
func DescriptionNotIn(vs ...string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldNotIn(FieldDescription, vs...))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DescriptionGT applies the GT predicate on the "description" field.
|
|
|
|
|
func DescriptionGT(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldGT(FieldDescription, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DescriptionGTE applies the GTE predicate on the "description" field.
|
|
|
|
|
func DescriptionGTE(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldGTE(FieldDescription, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DescriptionLT applies the LT predicate on the "description" field.
|
|
|
|
|
func DescriptionLT(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldLT(FieldDescription, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DescriptionLTE applies the LTE predicate on the "description" field.
|
|
|
|
|
func DescriptionLTE(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldLTE(FieldDescription, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DescriptionContains applies the Contains predicate on the "description" field.
|
|
|
|
|
func DescriptionContains(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldContains(FieldDescription, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
|
|
|
|
|
func DescriptionHasPrefix(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldHasPrefix(FieldDescription, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
|
|
|
|
|
func DescriptionHasSuffix(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldHasSuffix(FieldDescription, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DescriptionEqualFold applies the EqualFold predicate on the "description" field.
|
|
|
|
|
func DescriptionEqualFold(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldEqualFold(FieldDescription, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
|
|
|
|
|
func DescriptionContainsFold(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldContainsFold(FieldDescription, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// URLEQ applies the EQ predicate on the "url" field.
|
|
|
|
|
func URLEQ(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldEQ(FieldURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// URLNEQ applies the NEQ predicate on the "url" field.
|
|
|
|
|
func URLNEQ(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldNEQ(FieldURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// URLIn applies the In predicate on the "url" field.
|
|
|
|
|
func URLIn(vs ...string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldIn(FieldURL, vs...))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// URLNotIn applies the NotIn predicate on the "url" field.
|
|
|
|
|
func URLNotIn(vs ...string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldNotIn(FieldURL, vs...))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// URLGT applies the GT predicate on the "url" field.
|
|
|
|
|
func URLGT(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldGT(FieldURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// URLGTE applies the GTE predicate on the "url" field.
|
|
|
|
|
func URLGTE(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldGTE(FieldURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// URLLT applies the LT predicate on the "url" field.
|
|
|
|
|
func URLLT(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldLT(FieldURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// URLLTE applies the LTE predicate on the "url" field.
|
|
|
|
|
func URLLTE(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldLTE(FieldURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// URLContains applies the Contains predicate on the "url" field.
|
|
|
|
|
func URLContains(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldContains(FieldURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// URLHasPrefix applies the HasPrefix predicate on the "url" field.
|
|
|
|
|
func URLHasPrefix(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldHasPrefix(FieldURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// URLHasSuffix applies the HasSuffix predicate on the "url" field.
|
|
|
|
|
func URLHasSuffix(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldHasSuffix(FieldURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// URLEqualFold applies the EqualFold predicate on the "url" field.
|
|
|
|
|
func URLEqualFold(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldEqualFold(FieldURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// URLContainsFold applies the ContainsFold predicate on the "url" field.
|
|
|
|
|
func URLContainsFold(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldContainsFold(FieldURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ImageURLEQ applies the EQ predicate on the "image_url" field.
|
|
|
|
|
func ImageURLEQ(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldEQ(FieldImageURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ImageURLNEQ applies the NEQ predicate on the "image_url" field.
|
|
|
|
|
func ImageURLNEQ(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldNEQ(FieldImageURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ImageURLIn applies the In predicate on the "image_url" field.
|
|
|
|
|
func ImageURLIn(vs ...string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldIn(FieldImageURL, vs...))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ImageURLNotIn applies the NotIn predicate on the "image_url" field.
|
|
|
|
|
func ImageURLNotIn(vs ...string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldNotIn(FieldImageURL, vs...))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ImageURLGT applies the GT predicate on the "image_url" field.
|
|
|
|
|
func ImageURLGT(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldGT(FieldImageURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ImageURLGTE applies the GTE predicate on the "image_url" field.
|
|
|
|
|
func ImageURLGTE(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldGTE(FieldImageURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ImageURLLT applies the LT predicate on the "image_url" field.
|
|
|
|
|
func ImageURLLT(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldLT(FieldImageURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ImageURLLTE applies the LTE predicate on the "image_url" field.
|
|
|
|
|
func ImageURLLTE(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldLTE(FieldImageURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ImageURLContains applies the Contains predicate on the "image_url" field.
|
|
|
|
|
func ImageURLContains(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldContains(FieldImageURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ImageURLHasPrefix applies the HasPrefix predicate on the "image_url" field.
|
|
|
|
|
func ImageURLHasPrefix(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldHasPrefix(FieldImageURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ImageURLHasSuffix applies the HasSuffix predicate on the "image_url" field.
|
|
|
|
|
func ImageURLHasSuffix(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldHasSuffix(FieldImageURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ImageURLEqualFold applies the EqualFold predicate on the "image_url" field.
|
|
|
|
|
func ImageURLEqualFold(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldEqualFold(FieldImageURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ImageURLContainsFold applies the ContainsFold predicate on the "image_url" field.
|
|
|
|
|
func ImageURLContainsFold(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldContainsFold(FieldImageURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DocURLEQ applies the EQ predicate on the "doc_url" field.
|
|
|
|
|
func DocURLEQ(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldEQ(FieldDocURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DocURLNEQ applies the NEQ predicate on the "doc_url" field.
|
|
|
|
|
func DocURLNEQ(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldNEQ(FieldDocURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DocURLIn applies the In predicate on the "doc_url" field.
|
|
|
|
|
func DocURLIn(vs ...string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldIn(FieldDocURL, vs...))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DocURLNotIn applies the NotIn predicate on the "doc_url" field.
|
|
|
|
|
func DocURLNotIn(vs ...string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldNotIn(FieldDocURL, vs...))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DocURLGT applies the GT predicate on the "doc_url" field.
|
|
|
|
|
func DocURLGT(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldGT(FieldDocURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DocURLGTE applies the GTE predicate on the "doc_url" field.
|
|
|
|
|
func DocURLGTE(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldGTE(FieldDocURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DocURLLT applies the LT predicate on the "doc_url" field.
|
|
|
|
|
func DocURLLT(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldLT(FieldDocURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DocURLLTE applies the LTE predicate on the "doc_url" field.
|
|
|
|
|
func DocURLLTE(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldLTE(FieldDocURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DocURLContains applies the Contains predicate on the "doc_url" field.
|
|
|
|
|
func DocURLContains(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldContains(FieldDocURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DocURLHasPrefix applies the HasPrefix predicate on the "doc_url" field.
|
|
|
|
|
func DocURLHasPrefix(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldHasPrefix(FieldDocURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DocURLHasSuffix applies the HasSuffix predicate on the "doc_url" field.
|
|
|
|
|
func DocURLHasSuffix(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldHasSuffix(FieldDocURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DocURLEqualFold applies the EqualFold predicate on the "doc_url" field.
|
|
|
|
|
func DocURLEqualFold(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldEqualFold(FieldDocURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DocURLContainsFold applies the ContainsFold predicate on the "doc_url" field.
|
|
|
|
|
func DocURLContainsFold(v string) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.FieldContainsFold(FieldDocURL, v))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// HasUsers applies the HasEdge predicate on the "users" edge.
|
|
|
|
|
func HasUsers() predicate.Project {
|
|
|
|
|
return predicate.Project(func(s *sql.Selector) {
|
|
|
|
|
step := sqlgraph.NewStep(
|
|
|
|
|
sqlgraph.From(Table, FieldID),
|
|
|
|
|
sqlgraph.Edge(sqlgraph.M2M, true, UsersTable, UsersPrimaryKey...),
|
|
|
|
|
)
|
|
|
|
|
sqlgraph.HasNeighbors(s, step)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).
|
|
|
|
|
func HasUsersWith(preds ...predicate.User) predicate.Project {
|
|
|
|
|
return predicate.Project(func(s *sql.Selector) {
|
|
|
|
|
step := newUsersStep()
|
|
|
|
|
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
|
|
|
|
for _, p := range preds {
|
|
|
|
|
p(s)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// HasTeams applies the HasEdge predicate on the "teams" edge.
|
|
|
|
|
func HasTeams() predicate.Project {
|
2024-03-13 14:39:45 +01:00
|
|
|
return predicate.Project(func(s *sql.Selector) {
|
|
|
|
|
step := sqlgraph.NewStep(
|
|
|
|
|
sqlgraph.From(Table, FieldID),
|
2024-05-19 17:04:15 +02:00
|
|
|
sqlgraph.Edge(sqlgraph.M2M, true, TeamsTable, TeamsPrimaryKey...),
|
2024-03-13 14:39:45 +01:00
|
|
|
)
|
|
|
|
|
sqlgraph.HasNeighbors(s, step)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2024-05-19 17:04:15 +02:00
|
|
|
// HasTeamsWith applies the HasEdge predicate on the "teams" edge with a given conditions (other predicates).
|
|
|
|
|
func HasTeamsWith(preds ...predicate.Team) predicate.Project {
|
2024-03-13 14:39:45 +01:00
|
|
|
return predicate.Project(func(s *sql.Selector) {
|
2024-05-19 17:04:15 +02:00
|
|
|
step := newTeamsStep()
|
2024-03-13 14:39:45 +01:00
|
|
|
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.Project) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.AndPredicates(predicates...))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
|
|
|
func Or(predicates ...predicate.Project) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.OrPredicates(predicates...))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
|
|
|
func Not(p predicate.Project) predicate.Project {
|
|
|
|
|
return predicate.Project(sql.NotPredicates(p))
|
|
|
|
|
}
|