where.go•47.9 kB
// Code generated by ent, DO NOT EDIT.
package node
import (
"time"
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"github.com/Southclaws/lexorank"
"github.com/Southclaws/storyden/internal/ent/predicate"
"github.com/rs/xid"
)
// ID filters vertices based on their ID field.
func ID(id xid.ID) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id xid.ID) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id xid.ID) predicate.Node {
return predicate.Node(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...xid.ID) predicate.Node {
return predicate.Node(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...xid.ID) predicate.Node {
return predicate.Node(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id xid.ID) predicate.Node {
return predicate.Node(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id xid.ID) predicate.Node {
return predicate.Node(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id xid.ID) predicate.Node {
return predicate.Node(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id xid.ID) predicate.Node {
return predicate.Node(sql.FieldLTE(FieldID, id))
}
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldCreatedAt, v))
}
// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAt(v time.Time) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldUpdatedAt, v))
}
// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAt(v time.Time) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldDeletedAt, v))
}
// IndexedAt applies equality check predicate on the "indexed_at" field. It's identical to IndexedAtEQ.
func IndexedAt(v time.Time) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldIndexedAt, v))
}
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func Name(v string) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldName, v))
}
// Slug applies equality check predicate on the "slug" field. It's identical to SlugEQ.
func Slug(v string) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldSlug, v))
}
// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func Description(v string) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldDescription, v))
}
// Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func Content(v string) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldContent, v))
}
// ParentNodeID applies equality check predicate on the "parent_node_id" field. It's identical to ParentNodeIDEQ.
func ParentNodeID(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldParentNodeID, v))
}
// HideChildTree applies equality check predicate on the "hide_child_tree" field. It's identical to HideChildTreeEQ.
func HideChildTree(v bool) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldHideChildTree, v))
}
// AccountID applies equality check predicate on the "account_id" field. It's identical to AccountIDEQ.
func AccountID(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldAccountID, v))
}
// PropertySchemaID applies equality check predicate on the "property_schema_id" field. It's identical to PropertySchemaIDEQ.
func PropertySchemaID(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldPropertySchemaID, v))
}
// PrimaryAssetID applies equality check predicate on the "primary_asset_id" field. It's identical to PrimaryAssetIDEQ.
func PrimaryAssetID(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldPrimaryAssetID, v))
}
// LinkID applies equality check predicate on the "link_id" field. It's identical to LinkIDEQ.
func LinkID(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldLinkID, v))
}
// Sort applies equality check predicate on the "sort" field. It's identical to SortEQ.
func Sort(v lexorank.Key) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldSort, v))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v time.Time) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v time.Time) predicate.Node {
return predicate.Node(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...time.Time) predicate.Node {
return predicate.Node(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...time.Time) predicate.Node {
return predicate.Node(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v time.Time) predicate.Node {
return predicate.Node(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v time.Time) predicate.Node {
return predicate.Node(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v time.Time) predicate.Node {
return predicate.Node(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v time.Time) predicate.Node {
return predicate.Node(sql.FieldLTE(FieldCreatedAt, v))
}
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtEQ(v time.Time) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldUpdatedAt, v))
}
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNEQ(v time.Time) predicate.Node {
return predicate.Node(sql.FieldNEQ(FieldUpdatedAt, v))
}
// UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIn(vs ...time.Time) predicate.Node {
return predicate.Node(sql.FieldIn(FieldUpdatedAt, vs...))
}
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotIn(vs ...time.Time) predicate.Node {
return predicate.Node(sql.FieldNotIn(FieldUpdatedAt, vs...))
}
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGT(v time.Time) predicate.Node {
return predicate.Node(sql.FieldGT(FieldUpdatedAt, v))
}
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtGTE(v time.Time) predicate.Node {
return predicate.Node(sql.FieldGTE(FieldUpdatedAt, v))
}
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLT(v time.Time) predicate.Node {
return predicate.Node(sql.FieldLT(FieldUpdatedAt, v))
}
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtLTE(v time.Time) predicate.Node {
return predicate.Node(sql.FieldLTE(FieldUpdatedAt, v))
}
// DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtEQ(v time.Time) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldDeletedAt, v))
}
// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNEQ(v time.Time) predicate.Node {
return predicate.Node(sql.FieldNEQ(FieldDeletedAt, v))
}
// DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIn(vs ...time.Time) predicate.Node {
return predicate.Node(sql.FieldIn(FieldDeletedAt, vs...))
}
// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotIn(vs ...time.Time) predicate.Node {
return predicate.Node(sql.FieldNotIn(FieldDeletedAt, vs...))
}
// DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGT(v time.Time) predicate.Node {
return predicate.Node(sql.FieldGT(FieldDeletedAt, v))
}
// DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtGTE(v time.Time) predicate.Node {
return predicate.Node(sql.FieldGTE(FieldDeletedAt, v))
}
// DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLT(v time.Time) predicate.Node {
return predicate.Node(sql.FieldLT(FieldDeletedAt, v))
}
// DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtLTE(v time.Time) predicate.Node {
return predicate.Node(sql.FieldLTE(FieldDeletedAt, v))
}
// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtIsNil() predicate.Node {
return predicate.Node(sql.FieldIsNull(FieldDeletedAt))
}
// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedAtNotNil() predicate.Node {
return predicate.Node(sql.FieldNotNull(FieldDeletedAt))
}
// IndexedAtEQ applies the EQ predicate on the "indexed_at" field.
func IndexedAtEQ(v time.Time) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldIndexedAt, v))
}
// IndexedAtNEQ applies the NEQ predicate on the "indexed_at" field.
func IndexedAtNEQ(v time.Time) predicate.Node {
return predicate.Node(sql.FieldNEQ(FieldIndexedAt, v))
}
// IndexedAtIn applies the In predicate on the "indexed_at" field.
func IndexedAtIn(vs ...time.Time) predicate.Node {
return predicate.Node(sql.FieldIn(FieldIndexedAt, vs...))
}
// IndexedAtNotIn applies the NotIn predicate on the "indexed_at" field.
func IndexedAtNotIn(vs ...time.Time) predicate.Node {
return predicate.Node(sql.FieldNotIn(FieldIndexedAt, vs...))
}
// IndexedAtGT applies the GT predicate on the "indexed_at" field.
func IndexedAtGT(v time.Time) predicate.Node {
return predicate.Node(sql.FieldGT(FieldIndexedAt, v))
}
// IndexedAtGTE applies the GTE predicate on the "indexed_at" field.
func IndexedAtGTE(v time.Time) predicate.Node {
return predicate.Node(sql.FieldGTE(FieldIndexedAt, v))
}
// IndexedAtLT applies the LT predicate on the "indexed_at" field.
func IndexedAtLT(v time.Time) predicate.Node {
return predicate.Node(sql.FieldLT(FieldIndexedAt, v))
}
// IndexedAtLTE applies the LTE predicate on the "indexed_at" field.
func IndexedAtLTE(v time.Time) predicate.Node {
return predicate.Node(sql.FieldLTE(FieldIndexedAt, v))
}
// IndexedAtIsNil applies the IsNil predicate on the "indexed_at" field.
func IndexedAtIsNil() predicate.Node {
return predicate.Node(sql.FieldIsNull(FieldIndexedAt))
}
// IndexedAtNotNil applies the NotNil predicate on the "indexed_at" field.
func IndexedAtNotNil() predicate.Node {
return predicate.Node(sql.FieldNotNull(FieldIndexedAt))
}
// NameEQ applies the EQ predicate on the "name" field.
func NameEQ(v string) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldName, v))
}
// NameNEQ applies the NEQ predicate on the "name" field.
func NameNEQ(v string) predicate.Node {
return predicate.Node(sql.FieldNEQ(FieldName, v))
}
// NameIn applies the In predicate on the "name" field.
func NameIn(vs ...string) predicate.Node {
return predicate.Node(sql.FieldIn(FieldName, vs...))
}
// NameNotIn applies the NotIn predicate on the "name" field.
func NameNotIn(vs ...string) predicate.Node {
return predicate.Node(sql.FieldNotIn(FieldName, vs...))
}
// NameGT applies the GT predicate on the "name" field.
func NameGT(v string) predicate.Node {
return predicate.Node(sql.FieldGT(FieldName, v))
}
// NameGTE applies the GTE predicate on the "name" field.
func NameGTE(v string) predicate.Node {
return predicate.Node(sql.FieldGTE(FieldName, v))
}
// NameLT applies the LT predicate on the "name" field.
func NameLT(v string) predicate.Node {
return predicate.Node(sql.FieldLT(FieldName, v))
}
// NameLTE applies the LTE predicate on the "name" field.
func NameLTE(v string) predicate.Node {
return predicate.Node(sql.FieldLTE(FieldName, v))
}
// NameContains applies the Contains predicate on the "name" field.
func NameContains(v string) predicate.Node {
return predicate.Node(sql.FieldContains(FieldName, v))
}
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasPrefix(v string) predicate.Node {
return predicate.Node(sql.FieldHasPrefix(FieldName, v))
}
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameHasSuffix(v string) predicate.Node {
return predicate.Node(sql.FieldHasSuffix(FieldName, v))
}
// NameEqualFold applies the EqualFold predicate on the "name" field.
func NameEqualFold(v string) predicate.Node {
return predicate.Node(sql.FieldEqualFold(FieldName, v))
}
// NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameContainsFold(v string) predicate.Node {
return predicate.Node(sql.FieldContainsFold(FieldName, v))
}
// SlugEQ applies the EQ predicate on the "slug" field.
func SlugEQ(v string) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldSlug, v))
}
// SlugNEQ applies the NEQ predicate on the "slug" field.
func SlugNEQ(v string) predicate.Node {
return predicate.Node(sql.FieldNEQ(FieldSlug, v))
}
// SlugIn applies the In predicate on the "slug" field.
func SlugIn(vs ...string) predicate.Node {
return predicate.Node(sql.FieldIn(FieldSlug, vs...))
}
// SlugNotIn applies the NotIn predicate on the "slug" field.
func SlugNotIn(vs ...string) predicate.Node {
return predicate.Node(sql.FieldNotIn(FieldSlug, vs...))
}
// SlugGT applies the GT predicate on the "slug" field.
func SlugGT(v string) predicate.Node {
return predicate.Node(sql.FieldGT(FieldSlug, v))
}
// SlugGTE applies the GTE predicate on the "slug" field.
func SlugGTE(v string) predicate.Node {
return predicate.Node(sql.FieldGTE(FieldSlug, v))
}
// SlugLT applies the LT predicate on the "slug" field.
func SlugLT(v string) predicate.Node {
return predicate.Node(sql.FieldLT(FieldSlug, v))
}
// SlugLTE applies the LTE predicate on the "slug" field.
func SlugLTE(v string) predicate.Node {
return predicate.Node(sql.FieldLTE(FieldSlug, v))
}
// SlugContains applies the Contains predicate on the "slug" field.
func SlugContains(v string) predicate.Node {
return predicate.Node(sql.FieldContains(FieldSlug, v))
}
// SlugHasPrefix applies the HasPrefix predicate on the "slug" field.
func SlugHasPrefix(v string) predicate.Node {
return predicate.Node(sql.FieldHasPrefix(FieldSlug, v))
}
// SlugHasSuffix applies the HasSuffix predicate on the "slug" field.
func SlugHasSuffix(v string) predicate.Node {
return predicate.Node(sql.FieldHasSuffix(FieldSlug, v))
}
// SlugEqualFold applies the EqualFold predicate on the "slug" field.
func SlugEqualFold(v string) predicate.Node {
return predicate.Node(sql.FieldEqualFold(FieldSlug, v))
}
// SlugContainsFold applies the ContainsFold predicate on the "slug" field.
func SlugContainsFold(v string) predicate.Node {
return predicate.Node(sql.FieldContainsFold(FieldSlug, v))
}
// DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEQ(v string) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldDescription, v))
}
// DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNEQ(v string) predicate.Node {
return predicate.Node(sql.FieldNEQ(FieldDescription, v))
}
// DescriptionIn applies the In predicate on the "description" field.
func DescriptionIn(vs ...string) predicate.Node {
return predicate.Node(sql.FieldIn(FieldDescription, vs...))
}
// DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotIn(vs ...string) predicate.Node {
return predicate.Node(sql.FieldNotIn(FieldDescription, vs...))
}
// DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGT(v string) predicate.Node {
return predicate.Node(sql.FieldGT(FieldDescription, v))
}
// DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionGTE(v string) predicate.Node {
return predicate.Node(sql.FieldGTE(FieldDescription, v))
}
// DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLT(v string) predicate.Node {
return predicate.Node(sql.FieldLT(FieldDescription, v))
}
// DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionLTE(v string) predicate.Node {
return predicate.Node(sql.FieldLTE(FieldDescription, v))
}
// DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContains(v string) predicate.Node {
return predicate.Node(sql.FieldContains(FieldDescription, v))
}
// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasPrefix(v string) predicate.Node {
return predicate.Node(sql.FieldHasPrefix(FieldDescription, v))
}
// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionHasSuffix(v string) predicate.Node {
return predicate.Node(sql.FieldHasSuffix(FieldDescription, v))
}
// DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionIsNil() predicate.Node {
return predicate.Node(sql.FieldIsNull(FieldDescription))
}
// DescriptionNotNil applies the NotNil predicate on the "description" field.
func DescriptionNotNil() predicate.Node {
return predicate.Node(sql.FieldNotNull(FieldDescription))
}
// DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionEqualFold(v string) predicate.Node {
return predicate.Node(sql.FieldEqualFold(FieldDescription, v))
}
// DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionContainsFold(v string) predicate.Node {
return predicate.Node(sql.FieldContainsFold(FieldDescription, v))
}
// ContentEQ applies the EQ predicate on the "content" field.
func ContentEQ(v string) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldContent, v))
}
// ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNEQ(v string) predicate.Node {
return predicate.Node(sql.FieldNEQ(FieldContent, v))
}
// ContentIn applies the In predicate on the "content" field.
func ContentIn(vs ...string) predicate.Node {
return predicate.Node(sql.FieldIn(FieldContent, vs...))
}
// ContentNotIn applies the NotIn predicate on the "content" field.
func ContentNotIn(vs ...string) predicate.Node {
return predicate.Node(sql.FieldNotIn(FieldContent, vs...))
}
// ContentGT applies the GT predicate on the "content" field.
func ContentGT(v string) predicate.Node {
return predicate.Node(sql.FieldGT(FieldContent, v))
}
// ContentGTE applies the GTE predicate on the "content" field.
func ContentGTE(v string) predicate.Node {
return predicate.Node(sql.FieldGTE(FieldContent, v))
}
// ContentLT applies the LT predicate on the "content" field.
func ContentLT(v string) predicate.Node {
return predicate.Node(sql.FieldLT(FieldContent, v))
}
// ContentLTE applies the LTE predicate on the "content" field.
func ContentLTE(v string) predicate.Node {
return predicate.Node(sql.FieldLTE(FieldContent, v))
}
// ContentContains applies the Contains predicate on the "content" field.
func ContentContains(v string) predicate.Node {
return predicate.Node(sql.FieldContains(FieldContent, v))
}
// ContentHasPrefix applies the HasPrefix predicate on the "content" field.
func ContentHasPrefix(v string) predicate.Node {
return predicate.Node(sql.FieldHasPrefix(FieldContent, v))
}
// ContentHasSuffix applies the HasSuffix predicate on the "content" field.
func ContentHasSuffix(v string) predicate.Node {
return predicate.Node(sql.FieldHasSuffix(FieldContent, v))
}
// ContentIsNil applies the IsNil predicate on the "content" field.
func ContentIsNil() predicate.Node {
return predicate.Node(sql.FieldIsNull(FieldContent))
}
// ContentNotNil applies the NotNil predicate on the "content" field.
func ContentNotNil() predicate.Node {
return predicate.Node(sql.FieldNotNull(FieldContent))
}
// ContentEqualFold applies the EqualFold predicate on the "content" field.
func ContentEqualFold(v string) predicate.Node {
return predicate.Node(sql.FieldEqualFold(FieldContent, v))
}
// ContentContainsFold applies the ContainsFold predicate on the "content" field.
func ContentContainsFold(v string) predicate.Node {
return predicate.Node(sql.FieldContainsFold(FieldContent, v))
}
// ParentNodeIDEQ applies the EQ predicate on the "parent_node_id" field.
func ParentNodeIDEQ(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldParentNodeID, v))
}
// ParentNodeIDNEQ applies the NEQ predicate on the "parent_node_id" field.
func ParentNodeIDNEQ(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldNEQ(FieldParentNodeID, v))
}
// ParentNodeIDIn applies the In predicate on the "parent_node_id" field.
func ParentNodeIDIn(vs ...xid.ID) predicate.Node {
return predicate.Node(sql.FieldIn(FieldParentNodeID, vs...))
}
// ParentNodeIDNotIn applies the NotIn predicate on the "parent_node_id" field.
func ParentNodeIDNotIn(vs ...xid.ID) predicate.Node {
return predicate.Node(sql.FieldNotIn(FieldParentNodeID, vs...))
}
// ParentNodeIDGT applies the GT predicate on the "parent_node_id" field.
func ParentNodeIDGT(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldGT(FieldParentNodeID, v))
}
// ParentNodeIDGTE applies the GTE predicate on the "parent_node_id" field.
func ParentNodeIDGTE(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldGTE(FieldParentNodeID, v))
}
// ParentNodeIDLT applies the LT predicate on the "parent_node_id" field.
func ParentNodeIDLT(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldLT(FieldParentNodeID, v))
}
// ParentNodeIDLTE applies the LTE predicate on the "parent_node_id" field.
func ParentNodeIDLTE(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldLTE(FieldParentNodeID, v))
}
// ParentNodeIDContains applies the Contains predicate on the "parent_node_id" field.
func ParentNodeIDContains(v xid.ID) predicate.Node {
vc := v.String()
return predicate.Node(sql.FieldContains(FieldParentNodeID, vc))
}
// ParentNodeIDHasPrefix applies the HasPrefix predicate on the "parent_node_id" field.
func ParentNodeIDHasPrefix(v xid.ID) predicate.Node {
vc := v.String()
return predicate.Node(sql.FieldHasPrefix(FieldParentNodeID, vc))
}
// ParentNodeIDHasSuffix applies the HasSuffix predicate on the "parent_node_id" field.
func ParentNodeIDHasSuffix(v xid.ID) predicate.Node {
vc := v.String()
return predicate.Node(sql.FieldHasSuffix(FieldParentNodeID, vc))
}
// ParentNodeIDIsNil applies the IsNil predicate on the "parent_node_id" field.
func ParentNodeIDIsNil() predicate.Node {
return predicate.Node(sql.FieldIsNull(FieldParentNodeID))
}
// ParentNodeIDNotNil applies the NotNil predicate on the "parent_node_id" field.
func ParentNodeIDNotNil() predicate.Node {
return predicate.Node(sql.FieldNotNull(FieldParentNodeID))
}
// ParentNodeIDEqualFold applies the EqualFold predicate on the "parent_node_id" field.
func ParentNodeIDEqualFold(v xid.ID) predicate.Node {
vc := v.String()
return predicate.Node(sql.FieldEqualFold(FieldParentNodeID, vc))
}
// ParentNodeIDContainsFold applies the ContainsFold predicate on the "parent_node_id" field.
func ParentNodeIDContainsFold(v xid.ID) predicate.Node {
vc := v.String()
return predicate.Node(sql.FieldContainsFold(FieldParentNodeID, vc))
}
// HideChildTreeEQ applies the EQ predicate on the "hide_child_tree" field.
func HideChildTreeEQ(v bool) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldHideChildTree, v))
}
// HideChildTreeNEQ applies the NEQ predicate on the "hide_child_tree" field.
func HideChildTreeNEQ(v bool) predicate.Node {
return predicate.Node(sql.FieldNEQ(FieldHideChildTree, v))
}
// AccountIDEQ applies the EQ predicate on the "account_id" field.
func AccountIDEQ(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldAccountID, v))
}
// AccountIDNEQ applies the NEQ predicate on the "account_id" field.
func AccountIDNEQ(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldNEQ(FieldAccountID, v))
}
// AccountIDIn applies the In predicate on the "account_id" field.
func AccountIDIn(vs ...xid.ID) predicate.Node {
return predicate.Node(sql.FieldIn(FieldAccountID, vs...))
}
// AccountIDNotIn applies the NotIn predicate on the "account_id" field.
func AccountIDNotIn(vs ...xid.ID) predicate.Node {
return predicate.Node(sql.FieldNotIn(FieldAccountID, vs...))
}
// AccountIDGT applies the GT predicate on the "account_id" field.
func AccountIDGT(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldGT(FieldAccountID, v))
}
// AccountIDGTE applies the GTE predicate on the "account_id" field.
func AccountIDGTE(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldGTE(FieldAccountID, v))
}
// AccountIDLT applies the LT predicate on the "account_id" field.
func AccountIDLT(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldLT(FieldAccountID, v))
}
// AccountIDLTE applies the LTE predicate on the "account_id" field.
func AccountIDLTE(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldLTE(FieldAccountID, v))
}
// AccountIDContains applies the Contains predicate on the "account_id" field.
func AccountIDContains(v xid.ID) predicate.Node {
vc := v.String()
return predicate.Node(sql.FieldContains(FieldAccountID, vc))
}
// AccountIDHasPrefix applies the HasPrefix predicate on the "account_id" field.
func AccountIDHasPrefix(v xid.ID) predicate.Node {
vc := v.String()
return predicate.Node(sql.FieldHasPrefix(FieldAccountID, vc))
}
// AccountIDHasSuffix applies the HasSuffix predicate on the "account_id" field.
func AccountIDHasSuffix(v xid.ID) predicate.Node {
vc := v.String()
return predicate.Node(sql.FieldHasSuffix(FieldAccountID, vc))
}
// AccountIDEqualFold applies the EqualFold predicate on the "account_id" field.
func AccountIDEqualFold(v xid.ID) predicate.Node {
vc := v.String()
return predicate.Node(sql.FieldEqualFold(FieldAccountID, vc))
}
// AccountIDContainsFold applies the ContainsFold predicate on the "account_id" field.
func AccountIDContainsFold(v xid.ID) predicate.Node {
vc := v.String()
return predicate.Node(sql.FieldContainsFold(FieldAccountID, vc))
}
// PropertySchemaIDEQ applies the EQ predicate on the "property_schema_id" field.
func PropertySchemaIDEQ(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldPropertySchemaID, v))
}
// PropertySchemaIDNEQ applies the NEQ predicate on the "property_schema_id" field.
func PropertySchemaIDNEQ(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldNEQ(FieldPropertySchemaID, v))
}
// PropertySchemaIDIn applies the In predicate on the "property_schema_id" field.
func PropertySchemaIDIn(vs ...xid.ID) predicate.Node {
return predicate.Node(sql.FieldIn(FieldPropertySchemaID, vs...))
}
// PropertySchemaIDNotIn applies the NotIn predicate on the "property_schema_id" field.
func PropertySchemaIDNotIn(vs ...xid.ID) predicate.Node {
return predicate.Node(sql.FieldNotIn(FieldPropertySchemaID, vs...))
}
// PropertySchemaIDGT applies the GT predicate on the "property_schema_id" field.
func PropertySchemaIDGT(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldGT(FieldPropertySchemaID, v))
}
// PropertySchemaIDGTE applies the GTE predicate on the "property_schema_id" field.
func PropertySchemaIDGTE(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldGTE(FieldPropertySchemaID, v))
}
// PropertySchemaIDLT applies the LT predicate on the "property_schema_id" field.
func PropertySchemaIDLT(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldLT(FieldPropertySchemaID, v))
}
// PropertySchemaIDLTE applies the LTE predicate on the "property_schema_id" field.
func PropertySchemaIDLTE(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldLTE(FieldPropertySchemaID, v))
}
// PropertySchemaIDContains applies the Contains predicate on the "property_schema_id" field.
func PropertySchemaIDContains(v xid.ID) predicate.Node {
vc := v.String()
return predicate.Node(sql.FieldContains(FieldPropertySchemaID, vc))
}
// PropertySchemaIDHasPrefix applies the HasPrefix predicate on the "property_schema_id" field.
func PropertySchemaIDHasPrefix(v xid.ID) predicate.Node {
vc := v.String()
return predicate.Node(sql.FieldHasPrefix(FieldPropertySchemaID, vc))
}
// PropertySchemaIDHasSuffix applies the HasSuffix predicate on the "property_schema_id" field.
func PropertySchemaIDHasSuffix(v xid.ID) predicate.Node {
vc := v.String()
return predicate.Node(sql.FieldHasSuffix(FieldPropertySchemaID, vc))
}
// PropertySchemaIDIsNil applies the IsNil predicate on the "property_schema_id" field.
func PropertySchemaIDIsNil() predicate.Node {
return predicate.Node(sql.FieldIsNull(FieldPropertySchemaID))
}
// PropertySchemaIDNotNil applies the NotNil predicate on the "property_schema_id" field.
func PropertySchemaIDNotNil() predicate.Node {
return predicate.Node(sql.FieldNotNull(FieldPropertySchemaID))
}
// PropertySchemaIDEqualFold applies the EqualFold predicate on the "property_schema_id" field.
func PropertySchemaIDEqualFold(v xid.ID) predicate.Node {
vc := v.String()
return predicate.Node(sql.FieldEqualFold(FieldPropertySchemaID, vc))
}
// PropertySchemaIDContainsFold applies the ContainsFold predicate on the "property_schema_id" field.
func PropertySchemaIDContainsFold(v xid.ID) predicate.Node {
vc := v.String()
return predicate.Node(sql.FieldContainsFold(FieldPropertySchemaID, vc))
}
// PrimaryAssetIDEQ applies the EQ predicate on the "primary_asset_id" field.
func PrimaryAssetIDEQ(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldPrimaryAssetID, v))
}
// PrimaryAssetIDNEQ applies the NEQ predicate on the "primary_asset_id" field.
func PrimaryAssetIDNEQ(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldNEQ(FieldPrimaryAssetID, v))
}
// PrimaryAssetIDIn applies the In predicate on the "primary_asset_id" field.
func PrimaryAssetIDIn(vs ...xid.ID) predicate.Node {
return predicate.Node(sql.FieldIn(FieldPrimaryAssetID, vs...))
}
// PrimaryAssetIDNotIn applies the NotIn predicate on the "primary_asset_id" field.
func PrimaryAssetIDNotIn(vs ...xid.ID) predicate.Node {
return predicate.Node(sql.FieldNotIn(FieldPrimaryAssetID, vs...))
}
// PrimaryAssetIDGT applies the GT predicate on the "primary_asset_id" field.
func PrimaryAssetIDGT(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldGT(FieldPrimaryAssetID, v))
}
// PrimaryAssetIDGTE applies the GTE predicate on the "primary_asset_id" field.
func PrimaryAssetIDGTE(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldGTE(FieldPrimaryAssetID, v))
}
// PrimaryAssetIDLT applies the LT predicate on the "primary_asset_id" field.
func PrimaryAssetIDLT(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldLT(FieldPrimaryAssetID, v))
}
// PrimaryAssetIDLTE applies the LTE predicate on the "primary_asset_id" field.
func PrimaryAssetIDLTE(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldLTE(FieldPrimaryAssetID, v))
}
// PrimaryAssetIDContains applies the Contains predicate on the "primary_asset_id" field.
func PrimaryAssetIDContains(v xid.ID) predicate.Node {
vc := v.String()
return predicate.Node(sql.FieldContains(FieldPrimaryAssetID, vc))
}
// PrimaryAssetIDHasPrefix applies the HasPrefix predicate on the "primary_asset_id" field.
func PrimaryAssetIDHasPrefix(v xid.ID) predicate.Node {
vc := v.String()
return predicate.Node(sql.FieldHasPrefix(FieldPrimaryAssetID, vc))
}
// PrimaryAssetIDHasSuffix applies the HasSuffix predicate on the "primary_asset_id" field.
func PrimaryAssetIDHasSuffix(v xid.ID) predicate.Node {
vc := v.String()
return predicate.Node(sql.FieldHasSuffix(FieldPrimaryAssetID, vc))
}
// PrimaryAssetIDIsNil applies the IsNil predicate on the "primary_asset_id" field.
func PrimaryAssetIDIsNil() predicate.Node {
return predicate.Node(sql.FieldIsNull(FieldPrimaryAssetID))
}
// PrimaryAssetIDNotNil applies the NotNil predicate on the "primary_asset_id" field.
func PrimaryAssetIDNotNil() predicate.Node {
return predicate.Node(sql.FieldNotNull(FieldPrimaryAssetID))
}
// PrimaryAssetIDEqualFold applies the EqualFold predicate on the "primary_asset_id" field.
func PrimaryAssetIDEqualFold(v xid.ID) predicate.Node {
vc := v.String()
return predicate.Node(sql.FieldEqualFold(FieldPrimaryAssetID, vc))
}
// PrimaryAssetIDContainsFold applies the ContainsFold predicate on the "primary_asset_id" field.
func PrimaryAssetIDContainsFold(v xid.ID) predicate.Node {
vc := v.String()
return predicate.Node(sql.FieldContainsFold(FieldPrimaryAssetID, vc))
}
// LinkIDEQ applies the EQ predicate on the "link_id" field.
func LinkIDEQ(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldLinkID, v))
}
// LinkIDNEQ applies the NEQ predicate on the "link_id" field.
func LinkIDNEQ(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldNEQ(FieldLinkID, v))
}
// LinkIDIn applies the In predicate on the "link_id" field.
func LinkIDIn(vs ...xid.ID) predicate.Node {
return predicate.Node(sql.FieldIn(FieldLinkID, vs...))
}
// LinkIDNotIn applies the NotIn predicate on the "link_id" field.
func LinkIDNotIn(vs ...xid.ID) predicate.Node {
return predicate.Node(sql.FieldNotIn(FieldLinkID, vs...))
}
// LinkIDGT applies the GT predicate on the "link_id" field.
func LinkIDGT(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldGT(FieldLinkID, v))
}
// LinkIDGTE applies the GTE predicate on the "link_id" field.
func LinkIDGTE(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldGTE(FieldLinkID, v))
}
// LinkIDLT applies the LT predicate on the "link_id" field.
func LinkIDLT(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldLT(FieldLinkID, v))
}
// LinkIDLTE applies the LTE predicate on the "link_id" field.
func LinkIDLTE(v xid.ID) predicate.Node {
return predicate.Node(sql.FieldLTE(FieldLinkID, v))
}
// LinkIDContains applies the Contains predicate on the "link_id" field.
func LinkIDContains(v xid.ID) predicate.Node {
vc := v.String()
return predicate.Node(sql.FieldContains(FieldLinkID, vc))
}
// LinkIDHasPrefix applies the HasPrefix predicate on the "link_id" field.
func LinkIDHasPrefix(v xid.ID) predicate.Node {
vc := v.String()
return predicate.Node(sql.FieldHasPrefix(FieldLinkID, vc))
}
// LinkIDHasSuffix applies the HasSuffix predicate on the "link_id" field.
func LinkIDHasSuffix(v xid.ID) predicate.Node {
vc := v.String()
return predicate.Node(sql.FieldHasSuffix(FieldLinkID, vc))
}
// LinkIDIsNil applies the IsNil predicate on the "link_id" field.
func LinkIDIsNil() predicate.Node {
return predicate.Node(sql.FieldIsNull(FieldLinkID))
}
// LinkIDNotNil applies the NotNil predicate on the "link_id" field.
func LinkIDNotNil() predicate.Node {
return predicate.Node(sql.FieldNotNull(FieldLinkID))
}
// LinkIDEqualFold applies the EqualFold predicate on the "link_id" field.
func LinkIDEqualFold(v xid.ID) predicate.Node {
vc := v.String()
return predicate.Node(sql.FieldEqualFold(FieldLinkID, vc))
}
// LinkIDContainsFold applies the ContainsFold predicate on the "link_id" field.
func LinkIDContainsFold(v xid.ID) predicate.Node {
vc := v.String()
return predicate.Node(sql.FieldContainsFold(FieldLinkID, vc))
}
// VisibilityEQ applies the EQ predicate on the "visibility" field.
func VisibilityEQ(v Visibility) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldVisibility, v))
}
// VisibilityNEQ applies the NEQ predicate on the "visibility" field.
func VisibilityNEQ(v Visibility) predicate.Node {
return predicate.Node(sql.FieldNEQ(FieldVisibility, v))
}
// VisibilityIn applies the In predicate on the "visibility" field.
func VisibilityIn(vs ...Visibility) predicate.Node {
return predicate.Node(sql.FieldIn(FieldVisibility, vs...))
}
// VisibilityNotIn applies the NotIn predicate on the "visibility" field.
func VisibilityNotIn(vs ...Visibility) predicate.Node {
return predicate.Node(sql.FieldNotIn(FieldVisibility, vs...))
}
// SortEQ applies the EQ predicate on the "sort" field.
func SortEQ(v lexorank.Key) predicate.Node {
return predicate.Node(sql.FieldEQ(FieldSort, v))
}
// SortNEQ applies the NEQ predicate on the "sort" field.
func SortNEQ(v lexorank.Key) predicate.Node {
return predicate.Node(sql.FieldNEQ(FieldSort, v))
}
// SortIn applies the In predicate on the "sort" field.
func SortIn(vs ...lexorank.Key) predicate.Node {
return predicate.Node(sql.FieldIn(FieldSort, vs...))
}
// SortNotIn applies the NotIn predicate on the "sort" field.
func SortNotIn(vs ...lexorank.Key) predicate.Node {
return predicate.Node(sql.FieldNotIn(FieldSort, vs...))
}
// SortGT applies the GT predicate on the "sort" field.
func SortGT(v lexorank.Key) predicate.Node {
return predicate.Node(sql.FieldGT(FieldSort, v))
}
// SortGTE applies the GTE predicate on the "sort" field.
func SortGTE(v lexorank.Key) predicate.Node {
return predicate.Node(sql.FieldGTE(FieldSort, v))
}
// SortLT applies the LT predicate on the "sort" field.
func SortLT(v lexorank.Key) predicate.Node {
return predicate.Node(sql.FieldLT(FieldSort, v))
}
// SortLTE applies the LTE predicate on the "sort" field.
func SortLTE(v lexorank.Key) predicate.Node {
return predicate.Node(sql.FieldLTE(FieldSort, v))
}
// SortContains applies the Contains predicate on the "sort" field.
func SortContains(v lexorank.Key) predicate.Node {
vc := v.String()
return predicate.Node(sql.FieldContains(FieldSort, vc))
}
// SortHasPrefix applies the HasPrefix predicate on the "sort" field.
func SortHasPrefix(v lexorank.Key) predicate.Node {
vc := v.String()
return predicate.Node(sql.FieldHasPrefix(FieldSort, vc))
}
// SortHasSuffix applies the HasSuffix predicate on the "sort" field.
func SortHasSuffix(v lexorank.Key) predicate.Node {
vc := v.String()
return predicate.Node(sql.FieldHasSuffix(FieldSort, vc))
}
// SortEqualFold applies the EqualFold predicate on the "sort" field.
func SortEqualFold(v lexorank.Key) predicate.Node {
vc := v.String()
return predicate.Node(sql.FieldEqualFold(FieldSort, vc))
}
// SortContainsFold applies the ContainsFold predicate on the "sort" field.
func SortContainsFold(v lexorank.Key) predicate.Node {
vc := v.String()
return predicate.Node(sql.FieldContainsFold(FieldSort, vc))
}
// MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataIsNil() predicate.Node {
return predicate.Node(sql.FieldIsNull(FieldMetadata))
}
// MetadataNotNil applies the NotNil predicate on the "metadata" field.
func MetadataNotNil() predicate.Node {
return predicate.Node(sql.FieldNotNull(FieldMetadata))
}
// HasOwner applies the HasEdge predicate on the "owner" edge.
func HasOwner() predicate.Node {
return predicate.Node(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2O, true, OwnerTable, OwnerColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasOwnerWith(preds ...predicate.Account) predicate.Node {
return predicate.Node(func(s *sql.Selector) {
step := newOwnerStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasParent applies the HasEdge predicate on the "parent" edge.
func HasParent() predicate.Node {
return predicate.Node(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2O, true, ParentTable, ParentColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasParentWith applies the HasEdge predicate on the "parent" edge with a given conditions (other predicates).
func HasParentWith(preds ...predicate.Node) predicate.Node {
return predicate.Node(func(s *sql.Selector) {
step := newParentStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasNodes applies the HasEdge predicate on the "nodes" edge.
func HasNodes() predicate.Node {
return predicate.Node(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, NodesTable, NodesColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasNodesWith applies the HasEdge predicate on the "nodes" edge with a given conditions (other predicates).
func HasNodesWith(preds ...predicate.Node) predicate.Node {
return predicate.Node(func(s *sql.Selector) {
step := newNodesStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasPrimaryImage applies the HasEdge predicate on the "primary_image" edge.
func HasPrimaryImage() predicate.Node {
return predicate.Node(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2O, false, PrimaryImageTable, PrimaryImageColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasPrimaryImageWith applies the HasEdge predicate on the "primary_image" edge with a given conditions (other predicates).
func HasPrimaryImageWith(preds ...predicate.Asset) predicate.Node {
return predicate.Node(func(s *sql.Selector) {
step := newPrimaryImageStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasAssets applies the HasEdge predicate on the "assets" edge.
func HasAssets() predicate.Node {
return predicate.Node(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2M, false, AssetsTable, AssetsPrimaryKey...),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasAssetsWith applies the HasEdge predicate on the "assets" edge with a given conditions (other predicates).
func HasAssetsWith(preds ...predicate.Asset) predicate.Node {
return predicate.Node(func(s *sql.Selector) {
step := newAssetsStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasTags applies the HasEdge predicate on the "tags" edge.
func HasTags() predicate.Node {
return predicate.Node(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2M, true, TagsTable, TagsPrimaryKey...),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasTagsWith applies the HasEdge predicate on the "tags" edge with a given conditions (other predicates).
func HasTagsWith(preds ...predicate.Tag) predicate.Node {
return predicate.Node(func(s *sql.Selector) {
step := newTagsStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasProperties applies the HasEdge predicate on the "properties" edge.
func HasProperties() predicate.Node {
return predicate.Node(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, PropertiesTable, PropertiesColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasPropertiesWith applies the HasEdge predicate on the "properties" edge with a given conditions (other predicates).
func HasPropertiesWith(preds ...predicate.Property) predicate.Node {
return predicate.Node(func(s *sql.Selector) {
step := newPropertiesStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasPropertySchema applies the HasEdge predicate on the "property_schema" edge.
func HasPropertySchema() predicate.Node {
return predicate.Node(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2O, true, PropertySchemaTable, PropertySchemaColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasPropertySchemaWith applies the HasEdge predicate on the "property_schema" edge with a given conditions (other predicates).
func HasPropertySchemaWith(preds ...predicate.PropertySchema) predicate.Node {
return predicate.Node(func(s *sql.Selector) {
step := newPropertySchemaStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasLink applies the HasEdge predicate on the "link" edge.
func HasLink() predicate.Node {
return predicate.Node(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2O, true, LinkTable, LinkColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasLinkWith applies the HasEdge predicate on the "link" edge with a given conditions (other predicates).
func HasLinkWith(preds ...predicate.Link) predicate.Node {
return predicate.Node(func(s *sql.Selector) {
step := newLinkStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasContentLinks applies the HasEdge predicate on the "content_links" edge.
func HasContentLinks() predicate.Node {
return predicate.Node(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2M, true, ContentLinksTable, ContentLinksPrimaryKey...),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasContentLinksWith applies the HasEdge predicate on the "content_links" edge with a given conditions (other predicates).
func HasContentLinksWith(preds ...predicate.Link) predicate.Node {
return predicate.Node(func(s *sql.Selector) {
step := newContentLinksStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasCollections applies the HasEdge predicate on the "collections" edge.
func HasCollections() predicate.Node {
return predicate.Node(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2M, true, CollectionsTable, CollectionsPrimaryKey...),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasCollectionsWith applies the HasEdge predicate on the "collections" edge with a given conditions (other predicates).
func HasCollectionsWith(preds ...predicate.Collection) predicate.Node {
return predicate.Node(func(s *sql.Selector) {
step := newCollectionsStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// HasCollectionNodes applies the HasEdge predicate on the "collection_nodes" edge.
func HasCollectionNodes() predicate.Node {
return predicate.Node(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, true, CollectionNodesTable, CollectionNodesColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasCollectionNodesWith applies the HasEdge predicate on the "collection_nodes" edge with a given conditions (other predicates).
func HasCollectionNodesWith(preds ...predicate.CollectionNode) predicate.Node {
return predicate.Node(func(s *sql.Selector) {
step := newCollectionNodesStep()
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.Node) predicate.Node {
return predicate.Node(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.Node) predicate.Node {
return predicate.Node(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.Node) predicate.Node {
return predicate.Node(sql.NotPredicates(p))
}