535 lines
19 KiB
Go
535 lines
19 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package document
|
|
|
|
import (
|
|
"voidraft/internal/models/ent/predicate"
|
|
|
|
"entgo.io/ent/dialect/sql"
|
|
)
|
|
|
|
// ID filters vertices based on their ID field.
|
|
func ID(id int) predicate.Document {
|
|
return predicate.Document(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id int) predicate.Document {
|
|
return predicate.Document(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id int) predicate.Document {
|
|
return predicate.Document(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...int) predicate.Document {
|
|
return predicate.Document(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...int) predicate.Document {
|
|
return predicate.Document(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id int) predicate.Document {
|
|
return predicate.Document(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id int) predicate.Document {
|
|
return predicate.Document(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id int) predicate.Document {
|
|
return predicate.Document(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id int) predicate.Document {
|
|
return predicate.Document(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// UUID applies equality check predicate on the "uuid" field. It's identical to UUIDEQ.
|
|
func UUID(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldEQ(FieldUUID, v))
|
|
}
|
|
|
|
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
|
func CreatedAt(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
|
|
func UpdatedAt(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
|
|
func DeletedAt(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldEQ(FieldDeletedAt, v))
|
|
}
|
|
|
|
// Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
|
|
func Title(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldEQ(FieldTitle, v))
|
|
}
|
|
|
|
// Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
|
|
func Content(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldEQ(FieldContent, v))
|
|
}
|
|
|
|
// Locked applies equality check predicate on the "locked" field. It's identical to LockedEQ.
|
|
func Locked(v bool) predicate.Document {
|
|
return predicate.Document(sql.FieldEQ(FieldLocked, v))
|
|
}
|
|
|
|
// UUIDEQ applies the EQ predicate on the "uuid" field.
|
|
func UUIDEQ(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldEQ(FieldUUID, v))
|
|
}
|
|
|
|
// UUIDNEQ applies the NEQ predicate on the "uuid" field.
|
|
func UUIDNEQ(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldNEQ(FieldUUID, v))
|
|
}
|
|
|
|
// UUIDIn applies the In predicate on the "uuid" field.
|
|
func UUIDIn(vs ...string) predicate.Document {
|
|
return predicate.Document(sql.FieldIn(FieldUUID, vs...))
|
|
}
|
|
|
|
// UUIDNotIn applies the NotIn predicate on the "uuid" field.
|
|
func UUIDNotIn(vs ...string) predicate.Document {
|
|
return predicate.Document(sql.FieldNotIn(FieldUUID, vs...))
|
|
}
|
|
|
|
// UUIDGT applies the GT predicate on the "uuid" field.
|
|
func UUIDGT(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldGT(FieldUUID, v))
|
|
}
|
|
|
|
// UUIDGTE applies the GTE predicate on the "uuid" field.
|
|
func UUIDGTE(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldGTE(FieldUUID, v))
|
|
}
|
|
|
|
// UUIDLT applies the LT predicate on the "uuid" field.
|
|
func UUIDLT(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldLT(FieldUUID, v))
|
|
}
|
|
|
|
// UUIDLTE applies the LTE predicate on the "uuid" field.
|
|
func UUIDLTE(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldLTE(FieldUUID, v))
|
|
}
|
|
|
|
// UUIDContains applies the Contains predicate on the "uuid" field.
|
|
func UUIDContains(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldContains(FieldUUID, v))
|
|
}
|
|
|
|
// UUIDHasPrefix applies the HasPrefix predicate on the "uuid" field.
|
|
func UUIDHasPrefix(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldHasPrefix(FieldUUID, v))
|
|
}
|
|
|
|
// UUIDHasSuffix applies the HasSuffix predicate on the "uuid" field.
|
|
func UUIDHasSuffix(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldHasSuffix(FieldUUID, v))
|
|
}
|
|
|
|
// UUIDIsNil applies the IsNil predicate on the "uuid" field.
|
|
func UUIDIsNil() predicate.Document {
|
|
return predicate.Document(sql.FieldIsNull(FieldUUID))
|
|
}
|
|
|
|
// UUIDNotNil applies the NotNil predicate on the "uuid" field.
|
|
func UUIDNotNil() predicate.Document {
|
|
return predicate.Document(sql.FieldNotNull(FieldUUID))
|
|
}
|
|
|
|
// UUIDEqualFold applies the EqualFold predicate on the "uuid" field.
|
|
func UUIDEqualFold(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldEqualFold(FieldUUID, v))
|
|
}
|
|
|
|
// UUIDContainsFold applies the ContainsFold predicate on the "uuid" field.
|
|
func UUIDContainsFold(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldContainsFold(FieldUUID, v))
|
|
}
|
|
|
|
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
|
func CreatedAtEQ(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
|
func CreatedAtNEQ(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldNEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtIn applies the In predicate on the "created_at" field.
|
|
func CreatedAtIn(vs ...string) predicate.Document {
|
|
return predicate.Document(sql.FieldIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
|
func CreatedAtNotIn(vs ...string) predicate.Document {
|
|
return predicate.Document(sql.FieldNotIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
|
func CreatedAtGT(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldGT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
|
func CreatedAtGTE(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldGTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
|
func CreatedAtLT(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldLT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
|
func CreatedAtLTE(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldLTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtContains applies the Contains predicate on the "created_at" field.
|
|
func CreatedAtContains(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldContains(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtHasPrefix applies the HasPrefix predicate on the "created_at" field.
|
|
func CreatedAtHasPrefix(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldHasPrefix(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtHasSuffix applies the HasSuffix predicate on the "created_at" field.
|
|
func CreatedAtHasSuffix(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldHasSuffix(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtEqualFold applies the EqualFold predicate on the "created_at" field.
|
|
func CreatedAtEqualFold(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldEqualFold(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtContainsFold applies the ContainsFold predicate on the "created_at" field.
|
|
func CreatedAtContainsFold(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldContainsFold(FieldCreatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
|
|
func UpdatedAtEQ(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
|
|
func UpdatedAtNEQ(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldNEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtIn applies the In predicate on the "updated_at" field.
|
|
func UpdatedAtIn(vs ...string) predicate.Document {
|
|
return predicate.Document(sql.FieldIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
|
|
func UpdatedAtNotIn(vs ...string) predicate.Document {
|
|
return predicate.Document(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
|
|
func UpdatedAtGT(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldGT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
|
|
func UpdatedAtGTE(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldGTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
|
|
func UpdatedAtLT(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldLT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
|
|
func UpdatedAtLTE(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldLTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtContains applies the Contains predicate on the "updated_at" field.
|
|
func UpdatedAtContains(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldContains(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtHasPrefix applies the HasPrefix predicate on the "updated_at" field.
|
|
func UpdatedAtHasPrefix(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldHasPrefix(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtHasSuffix applies the HasSuffix predicate on the "updated_at" field.
|
|
func UpdatedAtHasSuffix(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldHasSuffix(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtEqualFold applies the EqualFold predicate on the "updated_at" field.
|
|
func UpdatedAtEqualFold(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldEqualFold(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtContainsFold applies the ContainsFold predicate on the "updated_at" field.
|
|
func UpdatedAtContainsFold(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldContainsFold(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
|
|
func DeletedAtEQ(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldEQ(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
|
|
func DeletedAtNEQ(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldNEQ(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtIn applies the In predicate on the "deleted_at" field.
|
|
func DeletedAtIn(vs ...string) predicate.Document {
|
|
return predicate.Document(sql.FieldIn(FieldDeletedAt, vs...))
|
|
}
|
|
|
|
// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
|
|
func DeletedAtNotIn(vs ...string) predicate.Document {
|
|
return predicate.Document(sql.FieldNotIn(FieldDeletedAt, vs...))
|
|
}
|
|
|
|
// DeletedAtGT applies the GT predicate on the "deleted_at" field.
|
|
func DeletedAtGT(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldGT(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
|
|
func DeletedAtGTE(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldGTE(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtLT applies the LT predicate on the "deleted_at" field.
|
|
func DeletedAtLT(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldLT(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
|
|
func DeletedAtLTE(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldLTE(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtContains applies the Contains predicate on the "deleted_at" field.
|
|
func DeletedAtContains(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldContains(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtHasPrefix applies the HasPrefix predicate on the "deleted_at" field.
|
|
func DeletedAtHasPrefix(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldHasPrefix(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtHasSuffix applies the HasSuffix predicate on the "deleted_at" field.
|
|
func DeletedAtHasSuffix(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldHasSuffix(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
|
|
func DeletedAtIsNil() predicate.Document {
|
|
return predicate.Document(sql.FieldIsNull(FieldDeletedAt))
|
|
}
|
|
|
|
// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
|
|
func DeletedAtNotNil() predicate.Document {
|
|
return predicate.Document(sql.FieldNotNull(FieldDeletedAt))
|
|
}
|
|
|
|
// DeletedAtEqualFold applies the EqualFold predicate on the "deleted_at" field.
|
|
func DeletedAtEqualFold(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldEqualFold(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtContainsFold applies the ContainsFold predicate on the "deleted_at" field.
|
|
func DeletedAtContainsFold(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldContainsFold(FieldDeletedAt, v))
|
|
}
|
|
|
|
// TitleEQ applies the EQ predicate on the "title" field.
|
|
func TitleEQ(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldEQ(FieldTitle, v))
|
|
}
|
|
|
|
// TitleNEQ applies the NEQ predicate on the "title" field.
|
|
func TitleNEQ(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldNEQ(FieldTitle, v))
|
|
}
|
|
|
|
// TitleIn applies the In predicate on the "title" field.
|
|
func TitleIn(vs ...string) predicate.Document {
|
|
return predicate.Document(sql.FieldIn(FieldTitle, vs...))
|
|
}
|
|
|
|
// TitleNotIn applies the NotIn predicate on the "title" field.
|
|
func TitleNotIn(vs ...string) predicate.Document {
|
|
return predicate.Document(sql.FieldNotIn(FieldTitle, vs...))
|
|
}
|
|
|
|
// TitleGT applies the GT predicate on the "title" field.
|
|
func TitleGT(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldGT(FieldTitle, v))
|
|
}
|
|
|
|
// TitleGTE applies the GTE predicate on the "title" field.
|
|
func TitleGTE(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldGTE(FieldTitle, v))
|
|
}
|
|
|
|
// TitleLT applies the LT predicate on the "title" field.
|
|
func TitleLT(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldLT(FieldTitle, v))
|
|
}
|
|
|
|
// TitleLTE applies the LTE predicate on the "title" field.
|
|
func TitleLTE(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldLTE(FieldTitle, v))
|
|
}
|
|
|
|
// TitleContains applies the Contains predicate on the "title" field.
|
|
func TitleContains(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldContains(FieldTitle, v))
|
|
}
|
|
|
|
// TitleHasPrefix applies the HasPrefix predicate on the "title" field.
|
|
func TitleHasPrefix(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldHasPrefix(FieldTitle, v))
|
|
}
|
|
|
|
// TitleHasSuffix applies the HasSuffix predicate on the "title" field.
|
|
func TitleHasSuffix(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldHasSuffix(FieldTitle, v))
|
|
}
|
|
|
|
// TitleEqualFold applies the EqualFold predicate on the "title" field.
|
|
func TitleEqualFold(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldEqualFold(FieldTitle, v))
|
|
}
|
|
|
|
// TitleContainsFold applies the ContainsFold predicate on the "title" field.
|
|
func TitleContainsFold(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldContainsFold(FieldTitle, v))
|
|
}
|
|
|
|
// ContentEQ applies the EQ predicate on the "content" field.
|
|
func ContentEQ(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldEQ(FieldContent, v))
|
|
}
|
|
|
|
// ContentNEQ applies the NEQ predicate on the "content" field.
|
|
func ContentNEQ(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldNEQ(FieldContent, v))
|
|
}
|
|
|
|
// ContentIn applies the In predicate on the "content" field.
|
|
func ContentIn(vs ...string) predicate.Document {
|
|
return predicate.Document(sql.FieldIn(FieldContent, vs...))
|
|
}
|
|
|
|
// ContentNotIn applies the NotIn predicate on the "content" field.
|
|
func ContentNotIn(vs ...string) predicate.Document {
|
|
return predicate.Document(sql.FieldNotIn(FieldContent, vs...))
|
|
}
|
|
|
|
// ContentGT applies the GT predicate on the "content" field.
|
|
func ContentGT(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldGT(FieldContent, v))
|
|
}
|
|
|
|
// ContentGTE applies the GTE predicate on the "content" field.
|
|
func ContentGTE(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldGTE(FieldContent, v))
|
|
}
|
|
|
|
// ContentLT applies the LT predicate on the "content" field.
|
|
func ContentLT(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldLT(FieldContent, v))
|
|
}
|
|
|
|
// ContentLTE applies the LTE predicate on the "content" field.
|
|
func ContentLTE(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldLTE(FieldContent, v))
|
|
}
|
|
|
|
// ContentContains applies the Contains predicate on the "content" field.
|
|
func ContentContains(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldContains(FieldContent, v))
|
|
}
|
|
|
|
// ContentHasPrefix applies the HasPrefix predicate on the "content" field.
|
|
func ContentHasPrefix(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldHasPrefix(FieldContent, v))
|
|
}
|
|
|
|
// ContentHasSuffix applies the HasSuffix predicate on the "content" field.
|
|
func ContentHasSuffix(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldHasSuffix(FieldContent, v))
|
|
}
|
|
|
|
// ContentIsNil applies the IsNil predicate on the "content" field.
|
|
func ContentIsNil() predicate.Document {
|
|
return predicate.Document(sql.FieldIsNull(FieldContent))
|
|
}
|
|
|
|
// ContentNotNil applies the NotNil predicate on the "content" field.
|
|
func ContentNotNil() predicate.Document {
|
|
return predicate.Document(sql.FieldNotNull(FieldContent))
|
|
}
|
|
|
|
// ContentEqualFold applies the EqualFold predicate on the "content" field.
|
|
func ContentEqualFold(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldEqualFold(FieldContent, v))
|
|
}
|
|
|
|
// ContentContainsFold applies the ContainsFold predicate on the "content" field.
|
|
func ContentContainsFold(v string) predicate.Document {
|
|
return predicate.Document(sql.FieldContainsFold(FieldContent, v))
|
|
}
|
|
|
|
// LockedEQ applies the EQ predicate on the "locked" field.
|
|
func LockedEQ(v bool) predicate.Document {
|
|
return predicate.Document(sql.FieldEQ(FieldLocked, v))
|
|
}
|
|
|
|
// LockedNEQ applies the NEQ predicate on the "locked" field.
|
|
func LockedNEQ(v bool) predicate.Document {
|
|
return predicate.Document(sql.FieldNEQ(FieldLocked, v))
|
|
}
|
|
|
|
// And groups predicates with the AND operator between them.
|
|
func And(predicates ...predicate.Document) predicate.Document {
|
|
return predicate.Document(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.Document) predicate.Document {
|
|
return predicate.Document(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.Document) predicate.Document {
|
|
return predicate.Document(sql.NotPredicates(p))
|
|
}
|