Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
227
where.go28.1 kB
// Code generated by ent, DO NOT EDIT. package category import ( "time" "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "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.Category { return predicate.Category(sql.FieldEQ(FieldID, id)) } // IDEQ applies the EQ predicate on the ID field. func IDEQ(id xid.ID) predicate.Category { return predicate.Category(sql.FieldEQ(FieldID, id)) } // IDNEQ applies the NEQ predicate on the ID field. func IDNEQ(id xid.ID) predicate.Category { return predicate.Category(sql.FieldNEQ(FieldID, id)) } // IDIn applies the In predicate on the ID field. func IDIn(ids ...xid.ID) predicate.Category { return predicate.Category(sql.FieldIn(FieldID, ids...)) } // IDNotIn applies the NotIn predicate on the ID field. func IDNotIn(ids ...xid.ID) predicate.Category { return predicate.Category(sql.FieldNotIn(FieldID, ids...)) } // IDGT applies the GT predicate on the ID field. func IDGT(id xid.ID) predicate.Category { return predicate.Category(sql.FieldGT(FieldID, id)) } // IDGTE applies the GTE predicate on the ID field. func IDGTE(id xid.ID) predicate.Category { return predicate.Category(sql.FieldGTE(FieldID, id)) } // IDLT applies the LT predicate on the ID field. func IDLT(id xid.ID) predicate.Category { return predicate.Category(sql.FieldLT(FieldID, id)) } // IDLTE applies the LTE predicate on the ID field. func IDLTE(id xid.ID) predicate.Category { return predicate.Category(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.Category { return predicate.Category(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.Category { return predicate.Category(sql.FieldEQ(FieldUpdatedAt, v)) } // Name applies equality check predicate on the "name" field. It's identical to NameEQ. func Name(v string) predicate.Category { return predicate.Category(sql.FieldEQ(FieldName, v)) } // Slug applies equality check predicate on the "slug" field. It's identical to SlugEQ. func Slug(v string) predicate.Category { return predicate.Category(sql.FieldEQ(FieldSlug, v)) } // Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ. func Description(v string) predicate.Category { return predicate.Category(sql.FieldEQ(FieldDescription, v)) } // Colour applies equality check predicate on the "colour" field. It's identical to ColourEQ. func Colour(v string) predicate.Category { return predicate.Category(sql.FieldEQ(FieldColour, v)) } // Sort applies equality check predicate on the "sort" field. It's identical to SortEQ. func Sort(v int) predicate.Category { return predicate.Category(sql.FieldEQ(FieldSort, v)) } // Admin applies equality check predicate on the "admin" field. It's identical to AdminEQ. func Admin(v bool) predicate.Category { return predicate.Category(sql.FieldEQ(FieldAdmin, v)) } // ParentCategoryID applies equality check predicate on the "parent_category_id" field. It's identical to ParentCategoryIDEQ. func ParentCategoryID(v xid.ID) predicate.Category { return predicate.Category(sql.FieldEQ(FieldParentCategoryID, v)) } // CoverImageAssetID applies equality check predicate on the "cover_image_asset_id" field. It's identical to CoverImageAssetIDEQ. func CoverImageAssetID(v xid.ID) predicate.Category { return predicate.Category(sql.FieldEQ(FieldCoverImageAssetID, v)) } // CreatedAtEQ applies the EQ predicate on the "created_at" field. func CreatedAtEQ(v time.Time) predicate.Category { return predicate.Category(sql.FieldEQ(FieldCreatedAt, v)) } // CreatedAtNEQ applies the NEQ predicate on the "created_at" field. func CreatedAtNEQ(v time.Time) predicate.Category { return predicate.Category(sql.FieldNEQ(FieldCreatedAt, v)) } // CreatedAtIn applies the In predicate on the "created_at" field. func CreatedAtIn(vs ...time.Time) predicate.Category { return predicate.Category(sql.FieldIn(FieldCreatedAt, vs...)) } // CreatedAtNotIn applies the NotIn predicate on the "created_at" field. func CreatedAtNotIn(vs ...time.Time) predicate.Category { return predicate.Category(sql.FieldNotIn(FieldCreatedAt, vs...)) } // CreatedAtGT applies the GT predicate on the "created_at" field. func CreatedAtGT(v time.Time) predicate.Category { return predicate.Category(sql.FieldGT(FieldCreatedAt, v)) } // CreatedAtGTE applies the GTE predicate on the "created_at" field. func CreatedAtGTE(v time.Time) predicate.Category { return predicate.Category(sql.FieldGTE(FieldCreatedAt, v)) } // CreatedAtLT applies the LT predicate on the "created_at" field. func CreatedAtLT(v time.Time) predicate.Category { return predicate.Category(sql.FieldLT(FieldCreatedAt, v)) } // CreatedAtLTE applies the LTE predicate on the "created_at" field. func CreatedAtLTE(v time.Time) predicate.Category { return predicate.Category(sql.FieldLTE(FieldCreatedAt, v)) } // UpdatedAtEQ applies the EQ predicate on the "updated_at" field. func UpdatedAtEQ(v time.Time) predicate.Category { return predicate.Category(sql.FieldEQ(FieldUpdatedAt, v)) } // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. func UpdatedAtNEQ(v time.Time) predicate.Category { return predicate.Category(sql.FieldNEQ(FieldUpdatedAt, v)) } // UpdatedAtIn applies the In predicate on the "updated_at" field. func UpdatedAtIn(vs ...time.Time) predicate.Category { return predicate.Category(sql.FieldIn(FieldUpdatedAt, vs...)) } // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. func UpdatedAtNotIn(vs ...time.Time) predicate.Category { return predicate.Category(sql.FieldNotIn(FieldUpdatedAt, vs...)) } // UpdatedAtGT applies the GT predicate on the "updated_at" field. func UpdatedAtGT(v time.Time) predicate.Category { return predicate.Category(sql.FieldGT(FieldUpdatedAt, v)) } // UpdatedAtGTE applies the GTE predicate on the "updated_at" field. func UpdatedAtGTE(v time.Time) predicate.Category { return predicate.Category(sql.FieldGTE(FieldUpdatedAt, v)) } // UpdatedAtLT applies the LT predicate on the "updated_at" field. func UpdatedAtLT(v time.Time) predicate.Category { return predicate.Category(sql.FieldLT(FieldUpdatedAt, v)) } // UpdatedAtLTE applies the LTE predicate on the "updated_at" field. func UpdatedAtLTE(v time.Time) predicate.Category { return predicate.Category(sql.FieldLTE(FieldUpdatedAt, v)) } // NameEQ applies the EQ predicate on the "name" field. func NameEQ(v string) predicate.Category { return predicate.Category(sql.FieldEQ(FieldName, v)) } // NameNEQ applies the NEQ predicate on the "name" field. func NameNEQ(v string) predicate.Category { return predicate.Category(sql.FieldNEQ(FieldName, v)) } // NameIn applies the In predicate on the "name" field. func NameIn(vs ...string) predicate.Category { return predicate.Category(sql.FieldIn(FieldName, vs...)) } // NameNotIn applies the NotIn predicate on the "name" field. func NameNotIn(vs ...string) predicate.Category { return predicate.Category(sql.FieldNotIn(FieldName, vs...)) } // NameGT applies the GT predicate on the "name" field. func NameGT(v string) predicate.Category { return predicate.Category(sql.FieldGT(FieldName, v)) } // NameGTE applies the GTE predicate on the "name" field. func NameGTE(v string) predicate.Category { return predicate.Category(sql.FieldGTE(FieldName, v)) } // NameLT applies the LT predicate on the "name" field. func NameLT(v string) predicate.Category { return predicate.Category(sql.FieldLT(FieldName, v)) } // NameLTE applies the LTE predicate on the "name" field. func NameLTE(v string) predicate.Category { return predicate.Category(sql.FieldLTE(FieldName, v)) } // NameContains applies the Contains predicate on the "name" field. func NameContains(v string) predicate.Category { return predicate.Category(sql.FieldContains(FieldName, v)) } // NameHasPrefix applies the HasPrefix predicate on the "name" field. func NameHasPrefix(v string) predicate.Category { return predicate.Category(sql.FieldHasPrefix(FieldName, v)) } // NameHasSuffix applies the HasSuffix predicate on the "name" field. func NameHasSuffix(v string) predicate.Category { return predicate.Category(sql.FieldHasSuffix(FieldName, v)) } // NameEqualFold applies the EqualFold predicate on the "name" field. func NameEqualFold(v string) predicate.Category { return predicate.Category(sql.FieldEqualFold(FieldName, v)) } // NameContainsFold applies the ContainsFold predicate on the "name" field. func NameContainsFold(v string) predicate.Category { return predicate.Category(sql.FieldContainsFold(FieldName, v)) } // SlugEQ applies the EQ predicate on the "slug" field. func SlugEQ(v string) predicate.Category { return predicate.Category(sql.FieldEQ(FieldSlug, v)) } // SlugNEQ applies the NEQ predicate on the "slug" field. func SlugNEQ(v string) predicate.Category { return predicate.Category(sql.FieldNEQ(FieldSlug, v)) } // SlugIn applies the In predicate on the "slug" field. func SlugIn(vs ...string) predicate.Category { return predicate.Category(sql.FieldIn(FieldSlug, vs...)) } // SlugNotIn applies the NotIn predicate on the "slug" field. func SlugNotIn(vs ...string) predicate.Category { return predicate.Category(sql.FieldNotIn(FieldSlug, vs...)) } // SlugGT applies the GT predicate on the "slug" field. func SlugGT(v string) predicate.Category { return predicate.Category(sql.FieldGT(FieldSlug, v)) } // SlugGTE applies the GTE predicate on the "slug" field. func SlugGTE(v string) predicate.Category { return predicate.Category(sql.FieldGTE(FieldSlug, v)) } // SlugLT applies the LT predicate on the "slug" field. func SlugLT(v string) predicate.Category { return predicate.Category(sql.FieldLT(FieldSlug, v)) } // SlugLTE applies the LTE predicate on the "slug" field. func SlugLTE(v string) predicate.Category { return predicate.Category(sql.FieldLTE(FieldSlug, v)) } // SlugContains applies the Contains predicate on the "slug" field. func SlugContains(v string) predicate.Category { return predicate.Category(sql.FieldContains(FieldSlug, v)) } // SlugHasPrefix applies the HasPrefix predicate on the "slug" field. func SlugHasPrefix(v string) predicate.Category { return predicate.Category(sql.FieldHasPrefix(FieldSlug, v)) } // SlugHasSuffix applies the HasSuffix predicate on the "slug" field. func SlugHasSuffix(v string) predicate.Category { return predicate.Category(sql.FieldHasSuffix(FieldSlug, v)) } // SlugEqualFold applies the EqualFold predicate on the "slug" field. func SlugEqualFold(v string) predicate.Category { return predicate.Category(sql.FieldEqualFold(FieldSlug, v)) } // SlugContainsFold applies the ContainsFold predicate on the "slug" field. func SlugContainsFold(v string) predicate.Category { return predicate.Category(sql.FieldContainsFold(FieldSlug, v)) } // DescriptionEQ applies the EQ predicate on the "description" field. func DescriptionEQ(v string) predicate.Category { return predicate.Category(sql.FieldEQ(FieldDescription, v)) } // DescriptionNEQ applies the NEQ predicate on the "description" field. func DescriptionNEQ(v string) predicate.Category { return predicate.Category(sql.FieldNEQ(FieldDescription, v)) } // DescriptionIn applies the In predicate on the "description" field. func DescriptionIn(vs ...string) predicate.Category { return predicate.Category(sql.FieldIn(FieldDescription, vs...)) } // DescriptionNotIn applies the NotIn predicate on the "description" field. func DescriptionNotIn(vs ...string) predicate.Category { return predicate.Category(sql.FieldNotIn(FieldDescription, vs...)) } // DescriptionGT applies the GT predicate on the "description" field. func DescriptionGT(v string) predicate.Category { return predicate.Category(sql.FieldGT(FieldDescription, v)) } // DescriptionGTE applies the GTE predicate on the "description" field. func DescriptionGTE(v string) predicate.Category { return predicate.Category(sql.FieldGTE(FieldDescription, v)) } // DescriptionLT applies the LT predicate on the "description" field. func DescriptionLT(v string) predicate.Category { return predicate.Category(sql.FieldLT(FieldDescription, v)) } // DescriptionLTE applies the LTE predicate on the "description" field. func DescriptionLTE(v string) predicate.Category { return predicate.Category(sql.FieldLTE(FieldDescription, v)) } // DescriptionContains applies the Contains predicate on the "description" field. func DescriptionContains(v string) predicate.Category { return predicate.Category(sql.FieldContains(FieldDescription, v)) } // DescriptionHasPrefix applies the HasPrefix predicate on the "description" field. func DescriptionHasPrefix(v string) predicate.Category { return predicate.Category(sql.FieldHasPrefix(FieldDescription, v)) } // DescriptionHasSuffix applies the HasSuffix predicate on the "description" field. func DescriptionHasSuffix(v string) predicate.Category { return predicate.Category(sql.FieldHasSuffix(FieldDescription, v)) } // DescriptionEqualFold applies the EqualFold predicate on the "description" field. func DescriptionEqualFold(v string) predicate.Category { return predicate.Category(sql.FieldEqualFold(FieldDescription, v)) } // DescriptionContainsFold applies the ContainsFold predicate on the "description" field. func DescriptionContainsFold(v string) predicate.Category { return predicate.Category(sql.FieldContainsFold(FieldDescription, v)) } // ColourEQ applies the EQ predicate on the "colour" field. func ColourEQ(v string) predicate.Category { return predicate.Category(sql.FieldEQ(FieldColour, v)) } // ColourNEQ applies the NEQ predicate on the "colour" field. func ColourNEQ(v string) predicate.Category { return predicate.Category(sql.FieldNEQ(FieldColour, v)) } // ColourIn applies the In predicate on the "colour" field. func ColourIn(vs ...string) predicate.Category { return predicate.Category(sql.FieldIn(FieldColour, vs...)) } // ColourNotIn applies the NotIn predicate on the "colour" field. func ColourNotIn(vs ...string) predicate.Category { return predicate.Category(sql.FieldNotIn(FieldColour, vs...)) } // ColourGT applies the GT predicate on the "colour" field. func ColourGT(v string) predicate.Category { return predicate.Category(sql.FieldGT(FieldColour, v)) } // ColourGTE applies the GTE predicate on the "colour" field. func ColourGTE(v string) predicate.Category { return predicate.Category(sql.FieldGTE(FieldColour, v)) } // ColourLT applies the LT predicate on the "colour" field. func ColourLT(v string) predicate.Category { return predicate.Category(sql.FieldLT(FieldColour, v)) } // ColourLTE applies the LTE predicate on the "colour" field. func ColourLTE(v string) predicate.Category { return predicate.Category(sql.FieldLTE(FieldColour, v)) } // ColourContains applies the Contains predicate on the "colour" field. func ColourContains(v string) predicate.Category { return predicate.Category(sql.FieldContains(FieldColour, v)) } // ColourHasPrefix applies the HasPrefix predicate on the "colour" field. func ColourHasPrefix(v string) predicate.Category { return predicate.Category(sql.FieldHasPrefix(FieldColour, v)) } // ColourHasSuffix applies the HasSuffix predicate on the "colour" field. func ColourHasSuffix(v string) predicate.Category { return predicate.Category(sql.FieldHasSuffix(FieldColour, v)) } // ColourEqualFold applies the EqualFold predicate on the "colour" field. func ColourEqualFold(v string) predicate.Category { return predicate.Category(sql.FieldEqualFold(FieldColour, v)) } // ColourContainsFold applies the ContainsFold predicate on the "colour" field. func ColourContainsFold(v string) predicate.Category { return predicate.Category(sql.FieldContainsFold(FieldColour, v)) } // SortEQ applies the EQ predicate on the "sort" field. func SortEQ(v int) predicate.Category { return predicate.Category(sql.FieldEQ(FieldSort, v)) } // SortNEQ applies the NEQ predicate on the "sort" field. func SortNEQ(v int) predicate.Category { return predicate.Category(sql.FieldNEQ(FieldSort, v)) } // SortIn applies the In predicate on the "sort" field. func SortIn(vs ...int) predicate.Category { return predicate.Category(sql.FieldIn(FieldSort, vs...)) } // SortNotIn applies the NotIn predicate on the "sort" field. func SortNotIn(vs ...int) predicate.Category { return predicate.Category(sql.FieldNotIn(FieldSort, vs...)) } // SortGT applies the GT predicate on the "sort" field. func SortGT(v int) predicate.Category { return predicate.Category(sql.FieldGT(FieldSort, v)) } // SortGTE applies the GTE predicate on the "sort" field. func SortGTE(v int) predicate.Category { return predicate.Category(sql.FieldGTE(FieldSort, v)) } // SortLT applies the LT predicate on the "sort" field. func SortLT(v int) predicate.Category { return predicate.Category(sql.FieldLT(FieldSort, v)) } // SortLTE applies the LTE predicate on the "sort" field. func SortLTE(v int) predicate.Category { return predicate.Category(sql.FieldLTE(FieldSort, v)) } // AdminEQ applies the EQ predicate on the "admin" field. func AdminEQ(v bool) predicate.Category { return predicate.Category(sql.FieldEQ(FieldAdmin, v)) } // AdminNEQ applies the NEQ predicate on the "admin" field. func AdminNEQ(v bool) predicate.Category { return predicate.Category(sql.FieldNEQ(FieldAdmin, v)) } // ParentCategoryIDEQ applies the EQ predicate on the "parent_category_id" field. func ParentCategoryIDEQ(v xid.ID) predicate.Category { return predicate.Category(sql.FieldEQ(FieldParentCategoryID, v)) } // ParentCategoryIDNEQ applies the NEQ predicate on the "parent_category_id" field. func ParentCategoryIDNEQ(v xid.ID) predicate.Category { return predicate.Category(sql.FieldNEQ(FieldParentCategoryID, v)) } // ParentCategoryIDIn applies the In predicate on the "parent_category_id" field. func ParentCategoryIDIn(vs ...xid.ID) predicate.Category { return predicate.Category(sql.FieldIn(FieldParentCategoryID, vs...)) } // ParentCategoryIDNotIn applies the NotIn predicate on the "parent_category_id" field. func ParentCategoryIDNotIn(vs ...xid.ID) predicate.Category { return predicate.Category(sql.FieldNotIn(FieldParentCategoryID, vs...)) } // ParentCategoryIDGT applies the GT predicate on the "parent_category_id" field. func ParentCategoryIDGT(v xid.ID) predicate.Category { return predicate.Category(sql.FieldGT(FieldParentCategoryID, v)) } // ParentCategoryIDGTE applies the GTE predicate on the "parent_category_id" field. func ParentCategoryIDGTE(v xid.ID) predicate.Category { return predicate.Category(sql.FieldGTE(FieldParentCategoryID, v)) } // ParentCategoryIDLT applies the LT predicate on the "parent_category_id" field. func ParentCategoryIDLT(v xid.ID) predicate.Category { return predicate.Category(sql.FieldLT(FieldParentCategoryID, v)) } // ParentCategoryIDLTE applies the LTE predicate on the "parent_category_id" field. func ParentCategoryIDLTE(v xid.ID) predicate.Category { return predicate.Category(sql.FieldLTE(FieldParentCategoryID, v)) } // ParentCategoryIDContains applies the Contains predicate on the "parent_category_id" field. func ParentCategoryIDContains(v xid.ID) predicate.Category { vc := v.String() return predicate.Category(sql.FieldContains(FieldParentCategoryID, vc)) } // ParentCategoryIDHasPrefix applies the HasPrefix predicate on the "parent_category_id" field. func ParentCategoryIDHasPrefix(v xid.ID) predicate.Category { vc := v.String() return predicate.Category(sql.FieldHasPrefix(FieldParentCategoryID, vc)) } // ParentCategoryIDHasSuffix applies the HasSuffix predicate on the "parent_category_id" field. func ParentCategoryIDHasSuffix(v xid.ID) predicate.Category { vc := v.String() return predicate.Category(sql.FieldHasSuffix(FieldParentCategoryID, vc)) } // ParentCategoryIDIsNil applies the IsNil predicate on the "parent_category_id" field. func ParentCategoryIDIsNil() predicate.Category { return predicate.Category(sql.FieldIsNull(FieldParentCategoryID)) } // ParentCategoryIDNotNil applies the NotNil predicate on the "parent_category_id" field. func ParentCategoryIDNotNil() predicate.Category { return predicate.Category(sql.FieldNotNull(FieldParentCategoryID)) } // ParentCategoryIDEqualFold applies the EqualFold predicate on the "parent_category_id" field. func ParentCategoryIDEqualFold(v xid.ID) predicate.Category { vc := v.String() return predicate.Category(sql.FieldEqualFold(FieldParentCategoryID, vc)) } // ParentCategoryIDContainsFold applies the ContainsFold predicate on the "parent_category_id" field. func ParentCategoryIDContainsFold(v xid.ID) predicate.Category { vc := v.String() return predicate.Category(sql.FieldContainsFold(FieldParentCategoryID, vc)) } // CoverImageAssetIDEQ applies the EQ predicate on the "cover_image_asset_id" field. func CoverImageAssetIDEQ(v xid.ID) predicate.Category { return predicate.Category(sql.FieldEQ(FieldCoverImageAssetID, v)) } // CoverImageAssetIDNEQ applies the NEQ predicate on the "cover_image_asset_id" field. func CoverImageAssetIDNEQ(v xid.ID) predicate.Category { return predicate.Category(sql.FieldNEQ(FieldCoverImageAssetID, v)) } // CoverImageAssetIDIn applies the In predicate on the "cover_image_asset_id" field. func CoverImageAssetIDIn(vs ...xid.ID) predicate.Category { return predicate.Category(sql.FieldIn(FieldCoverImageAssetID, vs...)) } // CoverImageAssetIDNotIn applies the NotIn predicate on the "cover_image_asset_id" field. func CoverImageAssetIDNotIn(vs ...xid.ID) predicate.Category { return predicate.Category(sql.FieldNotIn(FieldCoverImageAssetID, vs...)) } // CoverImageAssetIDGT applies the GT predicate on the "cover_image_asset_id" field. func CoverImageAssetIDGT(v xid.ID) predicate.Category { return predicate.Category(sql.FieldGT(FieldCoverImageAssetID, v)) } // CoverImageAssetIDGTE applies the GTE predicate on the "cover_image_asset_id" field. func CoverImageAssetIDGTE(v xid.ID) predicate.Category { return predicate.Category(sql.FieldGTE(FieldCoverImageAssetID, v)) } // CoverImageAssetIDLT applies the LT predicate on the "cover_image_asset_id" field. func CoverImageAssetIDLT(v xid.ID) predicate.Category { return predicate.Category(sql.FieldLT(FieldCoverImageAssetID, v)) } // CoverImageAssetIDLTE applies the LTE predicate on the "cover_image_asset_id" field. func CoverImageAssetIDLTE(v xid.ID) predicate.Category { return predicate.Category(sql.FieldLTE(FieldCoverImageAssetID, v)) } // CoverImageAssetIDContains applies the Contains predicate on the "cover_image_asset_id" field. func CoverImageAssetIDContains(v xid.ID) predicate.Category { vc := v.String() return predicate.Category(sql.FieldContains(FieldCoverImageAssetID, vc)) } // CoverImageAssetIDHasPrefix applies the HasPrefix predicate on the "cover_image_asset_id" field. func CoverImageAssetIDHasPrefix(v xid.ID) predicate.Category { vc := v.String() return predicate.Category(sql.FieldHasPrefix(FieldCoverImageAssetID, vc)) } // CoverImageAssetIDHasSuffix applies the HasSuffix predicate on the "cover_image_asset_id" field. func CoverImageAssetIDHasSuffix(v xid.ID) predicate.Category { vc := v.String() return predicate.Category(sql.FieldHasSuffix(FieldCoverImageAssetID, vc)) } // CoverImageAssetIDIsNil applies the IsNil predicate on the "cover_image_asset_id" field. func CoverImageAssetIDIsNil() predicate.Category { return predicate.Category(sql.FieldIsNull(FieldCoverImageAssetID)) } // CoverImageAssetIDNotNil applies the NotNil predicate on the "cover_image_asset_id" field. func CoverImageAssetIDNotNil() predicate.Category { return predicate.Category(sql.FieldNotNull(FieldCoverImageAssetID)) } // CoverImageAssetIDEqualFold applies the EqualFold predicate on the "cover_image_asset_id" field. func CoverImageAssetIDEqualFold(v xid.ID) predicate.Category { vc := v.String() return predicate.Category(sql.FieldEqualFold(FieldCoverImageAssetID, vc)) } // CoverImageAssetIDContainsFold applies the ContainsFold predicate on the "cover_image_asset_id" field. func CoverImageAssetIDContainsFold(v xid.ID) predicate.Category { vc := v.String() return predicate.Category(sql.FieldContainsFold(FieldCoverImageAssetID, vc)) } // MetadataIsNil applies the IsNil predicate on the "metadata" field. func MetadataIsNil() predicate.Category { return predicate.Category(sql.FieldIsNull(FieldMetadata)) } // MetadataNotNil applies the NotNil predicate on the "metadata" field. func MetadataNotNil() predicate.Category { return predicate.Category(sql.FieldNotNull(FieldMetadata)) } // HasPosts applies the HasEdge predicate on the "posts" edge. func HasPosts() predicate.Category { return predicate.Category(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.O2M, false, PostsTable, PostsColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasPostsWith applies the HasEdge predicate on the "posts" edge with a given conditions (other predicates). func HasPostsWith(preds ...predicate.Post) predicate.Category { return predicate.Category(func(s *sql.Selector) { step := newPostsStep() 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.Category { return predicate.Category(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.Category) predicate.Category { return predicate.Category(func(s *sql.Selector) { step := newParentStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasChildren applies the HasEdge predicate on the "children" edge. func HasChildren() predicate.Category { return predicate.Category(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.O2M, false, ChildrenTable, ChildrenColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasChildrenWith applies the HasEdge predicate on the "children" edge with a given conditions (other predicates). func HasChildrenWith(preds ...predicate.Category) predicate.Category { return predicate.Category(func(s *sql.Selector) { step := newChildrenStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasCoverImage applies the HasEdge predicate on the "cover_image" edge. func HasCoverImage() predicate.Category { return predicate.Category(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.M2O, false, CoverImageTable, CoverImageColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasCoverImageWith applies the HasEdge predicate on the "cover_image" edge with a given conditions (other predicates). func HasCoverImageWith(preds ...predicate.Asset) predicate.Category { return predicate.Category(func(s *sql.Selector) { step := newCoverImageStep() 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.Category) predicate.Category { return predicate.Category(sql.AndPredicates(predicates...)) } // Or groups predicates with the OR operator between them. func Or(predicates ...predicate.Category) predicate.Category { return predicate.Category(sql.OrPredicates(predicates...)) } // Not applies the not operator on the given predicate. func Not(p predicate.Category) predicate.Category { return predicate.Category(sql.NotPredicates(p)) }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Southclaws/storyden'

If you have feedback or need assistance with the MCP directory API, please join our Discord server