node

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the node type in the database.
	Label = "node"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldTitle holds the string denoting the title field in the database.
	FieldTitle = "title"
	// FieldSlug holds the string denoting the slug field in the database.
	FieldSlug = "slug"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldOnModeration holds the string denoting the on_moderation field in the database.
	FieldOnModeration = "on_moderation"
	// FieldCommentMode holds the string denoting the comment_mode field in the database.
	FieldCommentMode = "comment_mode"
	// FieldPathAuto holds the string denoting the path_auto field in the database.
	FieldPathAuto = "path_auto"
	// FieldPromote holds the string denoting the promote field in the database.
	FieldPromote = "promote"
	// FieldSticky holds the string denoting the sticky field in the database.
	FieldSticky = "sticky"
	// FieldViewRoles holds the string denoting the view_roles field in the database.
	FieldViewRoles = "view_roles"
	// FieldPublishOn holds the string denoting the publish_on field in the database.
	FieldPublishOn = "publish_on"
	// FieldUnpublishOn holds the string denoting the unpublish_on field in the database.
	FieldUnpublishOn = "unpublish_on"
	// FieldParentID holds the string denoting the parent_id field in the database.
	FieldParentID = "parent_id"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldDeletedBy holds the string denoting the deleted_by field in the database.
	FieldDeletedBy = "deleted_by"
	// FieldLangcode holds the string denoting the langcode field in the database.
	FieldLangcode = "langcode"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// EdgeUsers holds the string denoting the users edge name in mutations.
	EdgeUsers = "users"
	// EdgeTaxonomyIndices holds the string denoting the taxonomy_indices edge name in mutations.
	EdgeTaxonomyIndices = "taxonomy_indices"
	// EdgeNodeCounter holds the string denoting the node_counter edge name in mutations.
	EdgeNodeCounter = "node_counter"
	// EdgeViewDays holds the string denoting the view_days edge name in mutations.
	EdgeViewDays = "view_days"
	// EdgeSearchWords holds the string denoting the search_words edge name in mutations.
	EdgeSearchWords = "search_words"
	// EdgePageSeo holds the string denoting the page_seo edge name in mutations.
	EdgePageSeo = "page_seo"
	// EdgePreviewLinks holds the string denoting the preview_links edge name in mutations.
	EdgePreviewLinks = "preview_links"
	// EdgeParent holds the string denoting the parent edge name in mutations.
	EdgeParent = "parent"
	// EdgeBlockItems holds the string denoting the block_items edge name in mutations.
	EdgeBlockItems = "block_items"
	// Table holds the table name of the node in the database.
	Table = "nodes"
	// UsersTable is the table that holds the users relation/edge.
	UsersTable = "nodes"
	// UsersInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UsersInverseTable = "users"
	// UsersColumn is the table column denoting the users relation/edge.
	UsersColumn = "created_by"
	// TaxonomyIndicesTable is the table that holds the taxonomy_indices relation/edge.
	TaxonomyIndicesTable = "taxonomy_index"
	// TaxonomyIndicesInverseTable is the table name for the TaxonomyIndex entity.
	// It exists in this package in order to avoid circular dependency with the "taxonomyindex" package.
	TaxonomyIndicesInverseTable = "taxonomy_index"
	// TaxonomyIndicesColumn is the table column denoting the taxonomy_indices relation/edge.
	TaxonomyIndicesColumn = "nid"
	// NodeCounterTable is the table that holds the node_counter relation/edge.
	NodeCounterTable = "node_counter"
	// NodeCounterInverseTable is the table name for the NodeCounter entity.
	// It exists in this package in order to avoid circular dependency with the "nodecounter" package.
	NodeCounterInverseTable = "node_counter"
	// NodeCounterColumn is the table column denoting the node_counter relation/edge.
	NodeCounterColumn = "nid"
	// ViewDaysTable is the table that holds the view_days relation/edge.
	ViewDaysTable = "node_view_days"
	// ViewDaysInverseTable is the table name for the NodeViewDay entity.
	// It exists in this package in order to avoid circular dependency with the "nodeviewday" package.
	ViewDaysInverseTable = "node_view_days"
	// ViewDaysColumn is the table column denoting the view_days relation/edge.
	ViewDaysColumn = "nid"
	// SearchWordsTable is the table that holds the search_words relation/edge.
	SearchWordsTable = "search_words"
	// SearchWordsInverseTable is the table name for the SearchWord entity.
	// It exists in this package in order to avoid circular dependency with the "searchword" package.
	SearchWordsInverseTable = "search_words"
	// SearchWordsColumn is the table column denoting the search_words relation/edge.
	SearchWordsColumn = "nid"
	// PageSeoTable is the table that holds the page_seo relation/edge.
	PageSeoTable = "page_seo"
	// PageSeoInverseTable is the table name for the PageSeo entity.
	// It exists in this package in order to avoid circular dependency with the "pageseo" package.
	PageSeoInverseTable = "page_seo"
	// PageSeoColumn is the table column denoting the page_seo relation/edge.
	PageSeoColumn = "nid"
	// PreviewLinksTable is the table that holds the preview_links relation/edge.
	PreviewLinksTable = "preview_links"
	// PreviewLinksInverseTable is the table name for the PreviewLink entity.
	// It exists in this package in order to avoid circular dependency with the "previewlink" package.
	PreviewLinksInverseTable = "preview_links"
	// PreviewLinksColumn is the table column denoting the preview_links relation/edge.
	PreviewLinksColumn = "nid"
	// ParentTable is the table that holds the parent relation/edge.
	ParentTable = "nodes"
	// ParentColumn is the table column denoting the parent relation/edge.
	ParentColumn = "parent_id"
	// BlockItemsTable is the table that holds the block_items relation/edge.
	BlockItemsTable = "nodes"
	// BlockItemsColumn is the table column denoting the block_items relation/edge.
	BlockItemsColumn = "parent_id"
)

Variables

View Source
var (
	Hooks        [1]ent.Hook
	Interceptors [1]ent.Interceptor
	// TypeValidator is a validator for the "type" field. It is called by the builders before save.
	TypeValidator func(string) error
	// TitleValidator is a validator for the "title" field. It is called by the builders before save.
	TitleValidator func(string) error
	// SlugValidator is a validator for the "slug" field. It is called by the builders before save.
	SlugValidator func(string) error
	// DefaultStatus holds the default value on creation for the "status" field.
	DefaultStatus int
	// DefaultOnModeration holds the default value on creation for the "on_moderation" field.
	DefaultOnModeration int
	// DefaultCommentMode holds the default value on creation for the "comment_mode" field.
	DefaultCommentMode string
	// CommentModeValidator is a validator for the "comment_mode" field. It is called by the builders before save.
	CommentModeValidator func(string) error
	// DefaultPathAuto holds the default value on creation for the "path_auto" field.
	DefaultPathAuto bool
	// DefaultPromote holds the default value on creation for the "promote" field.
	DefaultPromote bool
	// DefaultSticky holds the default value on creation for the "sticky" field.
	DefaultSticky bool
	// DefaultViewRoles holds the default value on creation for the "view_roles" field.
	DefaultViewRoles string
	// ViewRolesValidator is a validator for the "view_roles" field. It is called by the builders before save.
	ViewRolesValidator func(string) error
	// DefaultLangcode holds the default value on creation for the "langcode" field.
	DefaultLangcode string
	// LangcodeValidator is a validator for the "langcode" field. It is called by the builders before save.
	LangcodeValidator func(string) error
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/kosatka-cms/kosatka/internal/infrastructure/ent/generated/runtime"

Columns holds all SQL columns for node fields.

Functions

func And

func And(predicates ...predicate.Node) predicate.Node

And groups predicates with the AND operator between them.

func CommentMode

func CommentMode(v string) predicate.Node

CommentMode applies equality check predicate on the "comment_mode" field. It's identical to CommentModeEQ.

func CommentModeContains

func CommentModeContains(v string) predicate.Node

CommentModeContains applies the Contains predicate on the "comment_mode" field.

func CommentModeContainsFold

func CommentModeContainsFold(v string) predicate.Node

CommentModeContainsFold applies the ContainsFold predicate on the "comment_mode" field.

func CommentModeEQ

func CommentModeEQ(v string) predicate.Node

CommentModeEQ applies the EQ predicate on the "comment_mode" field.

func CommentModeEqualFold

func CommentModeEqualFold(v string) predicate.Node

CommentModeEqualFold applies the EqualFold predicate on the "comment_mode" field.

func CommentModeGT

func CommentModeGT(v string) predicate.Node

CommentModeGT applies the GT predicate on the "comment_mode" field.

func CommentModeGTE

func CommentModeGTE(v string) predicate.Node

CommentModeGTE applies the GTE predicate on the "comment_mode" field.

func CommentModeHasPrefix

func CommentModeHasPrefix(v string) predicate.Node

CommentModeHasPrefix applies the HasPrefix predicate on the "comment_mode" field.

func CommentModeHasSuffix

func CommentModeHasSuffix(v string) predicate.Node

CommentModeHasSuffix applies the HasSuffix predicate on the "comment_mode" field.

func CommentModeIn

func CommentModeIn(vs ...string) predicate.Node

CommentModeIn applies the In predicate on the "comment_mode" field.

func CommentModeLT

func CommentModeLT(v string) predicate.Node

CommentModeLT applies the LT predicate on the "comment_mode" field.

func CommentModeLTE

func CommentModeLTE(v string) predicate.Node

CommentModeLTE applies the LTE predicate on the "comment_mode" field.

func CommentModeNEQ

func CommentModeNEQ(v string) predicate.Node

CommentModeNEQ applies the NEQ predicate on the "comment_mode" field.

func CommentModeNotIn

func CommentModeNotIn(vs ...string) predicate.Node

CommentModeNotIn applies the NotIn predicate on the "comment_mode" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Node

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Node

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Node

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Node

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Node

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Node

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Node

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Node

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Node

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CreatedBy

func CreatedBy(v int) predicate.Node

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByEQ

func CreatedByEQ(v int) predicate.Node

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...int) predicate.Node

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByIsNil

func CreatedByIsNil() predicate.Node

CreatedByIsNil applies the IsNil predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v int) predicate.Node

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...int) predicate.Node

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func CreatedByNotNil

func CreatedByNotNil() predicate.Node

CreatedByNotNil applies the NotNil predicate on the "created_by" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.Node

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Node

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Node

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Node

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Node

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Node

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Node

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Node

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Node

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Node

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Node

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func DeletedBy

func DeletedBy(v int) predicate.Node

DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.

func DeletedByEQ

func DeletedByEQ(v int) predicate.Node

DeletedByEQ applies the EQ predicate on the "deleted_by" field.

func DeletedByGT

func DeletedByGT(v int) predicate.Node

DeletedByGT applies the GT predicate on the "deleted_by" field.

func DeletedByGTE

func DeletedByGTE(v int) predicate.Node

DeletedByGTE applies the GTE predicate on the "deleted_by" field.

func DeletedByIn

func DeletedByIn(vs ...int) predicate.Node

DeletedByIn applies the In predicate on the "deleted_by" field.

func DeletedByIsNil

func DeletedByIsNil() predicate.Node

DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.

func DeletedByLT

func DeletedByLT(v int) predicate.Node

DeletedByLT applies the LT predicate on the "deleted_by" field.

func DeletedByLTE

func DeletedByLTE(v int) predicate.Node

DeletedByLTE applies the LTE predicate on the "deleted_by" field.

func DeletedByNEQ

func DeletedByNEQ(v int) predicate.Node

DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.

func DeletedByNotIn

func DeletedByNotIn(vs ...int) predicate.Node

DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.

func DeletedByNotNil

func DeletedByNotNil() predicate.Node

DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.

func HasBlockItems

func HasBlockItems() predicate.Node

HasBlockItems applies the HasEdge predicate on the "block_items" edge.

func HasBlockItemsWith

func HasBlockItemsWith(preds ...predicate.Node) predicate.Node

HasBlockItemsWith applies the HasEdge predicate on the "block_items" edge with a given conditions (other predicates).

func HasNodeCounter

func HasNodeCounter() predicate.Node

HasNodeCounter applies the HasEdge predicate on the "node_counter" edge.

func HasNodeCounterWith

func HasNodeCounterWith(preds ...predicate.NodeCounter) predicate.Node

HasNodeCounterWith applies the HasEdge predicate on the "node_counter" edge with a given conditions (other predicates).

func HasPageSeo

func HasPageSeo() predicate.Node

HasPageSeo applies the HasEdge predicate on the "page_seo" edge.

func HasPageSeoWith

func HasPageSeoWith(preds ...predicate.PageSeo) predicate.Node

HasPageSeoWith applies the HasEdge predicate on the "page_seo" edge with a given conditions (other predicates).

func HasParent

func HasParent() predicate.Node

HasParent applies the HasEdge predicate on the "parent" edge.

func HasParentWith

func HasParentWith(preds ...predicate.Node) predicate.Node

HasParentWith applies the HasEdge predicate on the "parent" edge with a given conditions (other predicates).

func HasPreviewLinks() predicate.Node

HasPreviewLinks applies the HasEdge predicate on the "preview_links" edge.

func HasPreviewLinksWith

func HasPreviewLinksWith(preds ...predicate.PreviewLink) predicate.Node

HasPreviewLinksWith applies the HasEdge predicate on the "preview_links" edge with a given conditions (other predicates).

func HasSearchWords

func HasSearchWords() predicate.Node

HasSearchWords applies the HasEdge predicate on the "search_words" edge.

func HasSearchWordsWith

func HasSearchWordsWith(preds ...predicate.SearchWord) predicate.Node

HasSearchWordsWith applies the HasEdge predicate on the "search_words" edge with a given conditions (other predicates).

func HasTaxonomyIndices

func HasTaxonomyIndices() predicate.Node

HasTaxonomyIndices applies the HasEdge predicate on the "taxonomy_indices" edge.

func HasTaxonomyIndicesWith

func HasTaxonomyIndicesWith(preds ...predicate.TaxonomyIndex) predicate.Node

HasTaxonomyIndicesWith applies the HasEdge predicate on the "taxonomy_indices" edge with a given conditions (other predicates).

func HasUsers

func HasUsers() predicate.Node

HasUsers applies the HasEdge predicate on the "users" edge.

func HasUsersWith

func HasUsersWith(preds ...predicate.User) predicate.Node

HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).

func HasViewDays

func HasViewDays() predicate.Node

HasViewDays applies the HasEdge predicate on the "view_days" edge.

func HasViewDaysWith

func HasViewDaysWith(preds ...predicate.NodeViewDay) predicate.Node

HasViewDaysWith applies the HasEdge predicate on the "view_days" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Node

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Node

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Node

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Node

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Node

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Node

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Node

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Node

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Node

IDNotIn applies the NotIn predicate on the ID field.

func Langcode

func Langcode(v string) predicate.Node

Langcode applies equality check predicate on the "langcode" field. It's identical to LangcodeEQ.

func LangcodeContains

func LangcodeContains(v string) predicate.Node

LangcodeContains applies the Contains predicate on the "langcode" field.

func LangcodeContainsFold

func LangcodeContainsFold(v string) predicate.Node

LangcodeContainsFold applies the ContainsFold predicate on the "langcode" field.

func LangcodeEQ

func LangcodeEQ(v string) predicate.Node

LangcodeEQ applies the EQ predicate on the "langcode" field.

func LangcodeEqualFold

func LangcodeEqualFold(v string) predicate.Node

LangcodeEqualFold applies the EqualFold predicate on the "langcode" field.

func LangcodeGT

func LangcodeGT(v string) predicate.Node

LangcodeGT applies the GT predicate on the "langcode" field.

func LangcodeGTE

func LangcodeGTE(v string) predicate.Node

LangcodeGTE applies the GTE predicate on the "langcode" field.

func LangcodeHasPrefix

func LangcodeHasPrefix(v string) predicate.Node

LangcodeHasPrefix applies the HasPrefix predicate on the "langcode" field.

func LangcodeHasSuffix

func LangcodeHasSuffix(v string) predicate.Node

LangcodeHasSuffix applies the HasSuffix predicate on the "langcode" field.

func LangcodeIn

func LangcodeIn(vs ...string) predicate.Node

LangcodeIn applies the In predicate on the "langcode" field.

func LangcodeLT

func LangcodeLT(v string) predicate.Node

LangcodeLT applies the LT predicate on the "langcode" field.

func LangcodeLTE

func LangcodeLTE(v string) predicate.Node

LangcodeLTE applies the LTE predicate on the "langcode" field.

func LangcodeNEQ

func LangcodeNEQ(v string) predicate.Node

LangcodeNEQ applies the NEQ predicate on the "langcode" field.

func LangcodeNotIn

func LangcodeNotIn(vs ...string) predicate.Node

LangcodeNotIn applies the NotIn predicate on the "langcode" field.

func Not

Not applies the not operator on the given predicate.

func OnModeration

func OnModeration(v int) predicate.Node

OnModeration applies equality check predicate on the "on_moderation" field. It's identical to OnModerationEQ.

func OnModerationEQ

func OnModerationEQ(v int) predicate.Node

OnModerationEQ applies the EQ predicate on the "on_moderation" field.

func OnModerationGT

func OnModerationGT(v int) predicate.Node

OnModerationGT applies the GT predicate on the "on_moderation" field.

func OnModerationGTE

func OnModerationGTE(v int) predicate.Node

OnModerationGTE applies the GTE predicate on the "on_moderation" field.

func OnModerationIn

func OnModerationIn(vs ...int) predicate.Node

OnModerationIn applies the In predicate on the "on_moderation" field.

func OnModerationLT

func OnModerationLT(v int) predicate.Node

OnModerationLT applies the LT predicate on the "on_moderation" field.

func OnModerationLTE

func OnModerationLTE(v int) predicate.Node

OnModerationLTE applies the LTE predicate on the "on_moderation" field.

func OnModerationNEQ

func OnModerationNEQ(v int) predicate.Node

OnModerationNEQ applies the NEQ predicate on the "on_moderation" field.

func OnModerationNotIn

func OnModerationNotIn(vs ...int) predicate.Node

OnModerationNotIn applies the NotIn predicate on the "on_moderation" field.

func Or

func Or(predicates ...predicate.Node) predicate.Node

Or groups predicates with the OR operator between them.

func ParentID

func ParentID(v int) predicate.Node

ParentID applies equality check predicate on the "parent_id" field. It's identical to ParentIDEQ.

func ParentIDEQ

func ParentIDEQ(v int) predicate.Node

ParentIDEQ applies the EQ predicate on the "parent_id" field.

func ParentIDIn

func ParentIDIn(vs ...int) predicate.Node

ParentIDIn applies the In predicate on the "parent_id" field.

func ParentIDIsNil

func ParentIDIsNil() predicate.Node

ParentIDIsNil applies the IsNil predicate on the "parent_id" field.

func ParentIDNEQ

func ParentIDNEQ(v int) predicate.Node

ParentIDNEQ applies the NEQ predicate on the "parent_id" field.

func ParentIDNotIn

func ParentIDNotIn(vs ...int) predicate.Node

ParentIDNotIn applies the NotIn predicate on the "parent_id" field.

func ParentIDNotNil

func ParentIDNotNil() predicate.Node

ParentIDNotNil applies the NotNil predicate on the "parent_id" field.

func PathAuto

func PathAuto(v bool) predicate.Node

PathAuto applies equality check predicate on the "path_auto" field. It's identical to PathAutoEQ.

func PathAutoEQ

func PathAutoEQ(v bool) predicate.Node

PathAutoEQ applies the EQ predicate on the "path_auto" field.

func PathAutoNEQ

func PathAutoNEQ(v bool) predicate.Node

PathAutoNEQ applies the NEQ predicate on the "path_auto" field.

func Promote

func Promote(v bool) predicate.Node

Promote applies equality check predicate on the "promote" field. It's identical to PromoteEQ.

func PromoteEQ

func PromoteEQ(v bool) predicate.Node

PromoteEQ applies the EQ predicate on the "promote" field.

func PromoteNEQ

func PromoteNEQ(v bool) predicate.Node

PromoteNEQ applies the NEQ predicate on the "promote" field.

func PublishOn

func PublishOn(v time.Time) predicate.Node

PublishOn applies equality check predicate on the "publish_on" field. It's identical to PublishOnEQ.

func PublishOnEQ

func PublishOnEQ(v time.Time) predicate.Node

PublishOnEQ applies the EQ predicate on the "publish_on" field.

func PublishOnGT

func PublishOnGT(v time.Time) predicate.Node

PublishOnGT applies the GT predicate on the "publish_on" field.

func PublishOnGTE

func PublishOnGTE(v time.Time) predicate.Node

PublishOnGTE applies the GTE predicate on the "publish_on" field.

func PublishOnIn

func PublishOnIn(vs ...time.Time) predicate.Node

PublishOnIn applies the In predicate on the "publish_on" field.

func PublishOnIsNil

func PublishOnIsNil() predicate.Node

PublishOnIsNil applies the IsNil predicate on the "publish_on" field.

func PublishOnLT

func PublishOnLT(v time.Time) predicate.Node

PublishOnLT applies the LT predicate on the "publish_on" field.

func PublishOnLTE

func PublishOnLTE(v time.Time) predicate.Node

PublishOnLTE applies the LTE predicate on the "publish_on" field.

func PublishOnNEQ

func PublishOnNEQ(v time.Time) predicate.Node

PublishOnNEQ applies the NEQ predicate on the "publish_on" field.

func PublishOnNotIn

func PublishOnNotIn(vs ...time.Time) predicate.Node

PublishOnNotIn applies the NotIn predicate on the "publish_on" field.

func PublishOnNotNil

func PublishOnNotNil() predicate.Node

PublishOnNotNil applies the NotNil predicate on the "publish_on" field.

func Slug

func Slug(v string) predicate.Node

Slug applies equality check predicate on the "slug" field. It's identical to SlugEQ.

func SlugContains

func SlugContains(v string) predicate.Node

SlugContains applies the Contains predicate on the "slug" field.

func SlugContainsFold

func SlugContainsFold(v string) predicate.Node

SlugContainsFold applies the ContainsFold predicate on the "slug" field.

func SlugEQ

func SlugEQ(v string) predicate.Node

SlugEQ applies the EQ predicate on the "slug" field.

func SlugEqualFold

func SlugEqualFold(v string) predicate.Node

SlugEqualFold applies the EqualFold predicate on the "slug" field.

func SlugGT

func SlugGT(v string) predicate.Node

SlugGT applies the GT predicate on the "slug" field.

func SlugGTE

func SlugGTE(v string) predicate.Node

SlugGTE applies the GTE predicate on the "slug" field.

func SlugHasPrefix

func SlugHasPrefix(v string) predicate.Node

SlugHasPrefix applies the HasPrefix predicate on the "slug" field.

func SlugHasSuffix

func SlugHasSuffix(v string) predicate.Node

SlugHasSuffix applies the HasSuffix predicate on the "slug" field.

func SlugIn

func SlugIn(vs ...string) predicate.Node

SlugIn applies the In predicate on the "slug" field.

func SlugIsNil

func SlugIsNil() predicate.Node

SlugIsNil applies the IsNil predicate on the "slug" field.

func SlugLT

func SlugLT(v string) predicate.Node

SlugLT applies the LT predicate on the "slug" field.

func SlugLTE

func SlugLTE(v string) predicate.Node

SlugLTE applies the LTE predicate on the "slug" field.

func SlugNEQ

func SlugNEQ(v string) predicate.Node

SlugNEQ applies the NEQ predicate on the "slug" field.

func SlugNotIn

func SlugNotIn(vs ...string) predicate.Node

SlugNotIn applies the NotIn predicate on the "slug" field.

func SlugNotNil

func SlugNotNil() predicate.Node

SlugNotNil applies the NotNil predicate on the "slug" field.

func Status

func Status(v int) predicate.Node

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusEQ

func StatusEQ(v int) predicate.Node

StatusEQ applies the EQ predicate on the "status" field.

func StatusGT

func StatusGT(v int) predicate.Node

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v int) predicate.Node

StatusGTE applies the GTE predicate on the "status" field.

func StatusIn

func StatusIn(vs ...int) predicate.Node

StatusIn applies the In predicate on the "status" field.

func StatusLT

func StatusLT(v int) predicate.Node

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v int) predicate.Node

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v int) predicate.Node

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...int) predicate.Node

StatusNotIn applies the NotIn predicate on the "status" field.

func Sticky

func Sticky(v bool) predicate.Node

Sticky applies equality check predicate on the "sticky" field. It's identical to StickyEQ.

func StickyEQ

func StickyEQ(v bool) predicate.Node

StickyEQ applies the EQ predicate on the "sticky" field.

func StickyNEQ

func StickyNEQ(v bool) predicate.Node

StickyNEQ applies the NEQ predicate on the "sticky" field.

func Title

func Title(v string) predicate.Node

Title applies equality check predicate on the "title" field. It's identical to TitleEQ.

func TitleContains

func TitleContains(v string) predicate.Node

TitleContains applies the Contains predicate on the "title" field.

func TitleContainsFold

func TitleContainsFold(v string) predicate.Node

TitleContainsFold applies the ContainsFold predicate on the "title" field.

func TitleEQ

func TitleEQ(v string) predicate.Node

TitleEQ applies the EQ predicate on the "title" field.

func TitleEqualFold

func TitleEqualFold(v string) predicate.Node

TitleEqualFold applies the EqualFold predicate on the "title" field.

func TitleGT

func TitleGT(v string) predicate.Node

TitleGT applies the GT predicate on the "title" field.

func TitleGTE

func TitleGTE(v string) predicate.Node

TitleGTE applies the GTE predicate on the "title" field.

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Node

TitleHasPrefix applies the HasPrefix predicate on the "title" field.

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Node

TitleHasSuffix applies the HasSuffix predicate on the "title" field.

func TitleIn

func TitleIn(vs ...string) predicate.Node

TitleIn applies the In predicate on the "title" field.

func TitleLT

func TitleLT(v string) predicate.Node

TitleLT applies the LT predicate on the "title" field.

func TitleLTE

func TitleLTE(v string) predicate.Node

TitleLTE applies the LTE predicate on the "title" field.

func TitleNEQ

func TitleNEQ(v string) predicate.Node

TitleNEQ applies the NEQ predicate on the "title" field.

func TitleNotIn

func TitleNotIn(vs ...string) predicate.Node

TitleNotIn applies the NotIn predicate on the "title" field.

func Type

func Type(v string) predicate.Node

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains

func TypeContains(v string) predicate.Node

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold

func TypeContainsFold(v string) predicate.Node

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ

func TypeEQ(v string) predicate.Node

TypeEQ applies the EQ predicate on the "type" field.

func TypeEqualFold

func TypeEqualFold(v string) predicate.Node

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT

func TypeGT(v string) predicate.Node

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

func TypeGTE(v string) predicate.Node

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.Node

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.Node

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn

func TypeIn(vs ...string) predicate.Node

TypeIn applies the In predicate on the "type" field.

func TypeLT

func TypeLT(v string) predicate.Node

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

func TypeLTE(v string) predicate.Node

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v string) predicate.Node

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...string) predicate.Node

TypeNotIn applies the NotIn predicate on the "type" field.

func UnpublishOn

func UnpublishOn(v time.Time) predicate.Node

UnpublishOn applies equality check predicate on the "unpublish_on" field. It's identical to UnpublishOnEQ.

func UnpublishOnEQ

func UnpublishOnEQ(v time.Time) predicate.Node

UnpublishOnEQ applies the EQ predicate on the "unpublish_on" field.

func UnpublishOnGT

func UnpublishOnGT(v time.Time) predicate.Node

UnpublishOnGT applies the GT predicate on the "unpublish_on" field.

func UnpublishOnGTE

func UnpublishOnGTE(v time.Time) predicate.Node

UnpublishOnGTE applies the GTE predicate on the "unpublish_on" field.

func UnpublishOnIn

func UnpublishOnIn(vs ...time.Time) predicate.Node

UnpublishOnIn applies the In predicate on the "unpublish_on" field.

func UnpublishOnIsNil

func UnpublishOnIsNil() predicate.Node

UnpublishOnIsNil applies the IsNil predicate on the "unpublish_on" field.

func UnpublishOnLT

func UnpublishOnLT(v time.Time) predicate.Node

UnpublishOnLT applies the LT predicate on the "unpublish_on" field.

func UnpublishOnLTE

func UnpublishOnLTE(v time.Time) predicate.Node

UnpublishOnLTE applies the LTE predicate on the "unpublish_on" field.

func UnpublishOnNEQ

func UnpublishOnNEQ(v time.Time) predicate.Node

UnpublishOnNEQ applies the NEQ predicate on the "unpublish_on" field.

func UnpublishOnNotIn

func UnpublishOnNotIn(vs ...time.Time) predicate.Node

UnpublishOnNotIn applies the NotIn predicate on the "unpublish_on" field.

func UnpublishOnNotNil

func UnpublishOnNotNil() predicate.Node

UnpublishOnNotNil applies the NotNil predicate on the "unpublish_on" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Node

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Node

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Node

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Node

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Node

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Node

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Node

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Node

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Node

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func ViewRoles

func ViewRoles(v string) predicate.Node

ViewRoles applies equality check predicate on the "view_roles" field. It's identical to ViewRolesEQ.

func ViewRolesContains

func ViewRolesContains(v string) predicate.Node

ViewRolesContains applies the Contains predicate on the "view_roles" field.

func ViewRolesContainsFold

func ViewRolesContainsFold(v string) predicate.Node

ViewRolesContainsFold applies the ContainsFold predicate on the "view_roles" field.

func ViewRolesEQ

func ViewRolesEQ(v string) predicate.Node

ViewRolesEQ applies the EQ predicate on the "view_roles" field.

func ViewRolesEqualFold

func ViewRolesEqualFold(v string) predicate.Node

ViewRolesEqualFold applies the EqualFold predicate on the "view_roles" field.

func ViewRolesGT

func ViewRolesGT(v string) predicate.Node

ViewRolesGT applies the GT predicate on the "view_roles" field.

func ViewRolesGTE

func ViewRolesGTE(v string) predicate.Node

ViewRolesGTE applies the GTE predicate on the "view_roles" field.

func ViewRolesHasPrefix

func ViewRolesHasPrefix(v string) predicate.Node

ViewRolesHasPrefix applies the HasPrefix predicate on the "view_roles" field.

func ViewRolesHasSuffix

func ViewRolesHasSuffix(v string) predicate.Node

ViewRolesHasSuffix applies the HasSuffix predicate on the "view_roles" field.

func ViewRolesIn

func ViewRolesIn(vs ...string) predicate.Node

ViewRolesIn applies the In predicate on the "view_roles" field.

func ViewRolesLT

func ViewRolesLT(v string) predicate.Node

ViewRolesLT applies the LT predicate on the "view_roles" field.

func ViewRolesLTE

func ViewRolesLTE(v string) predicate.Node

ViewRolesLTE applies the LTE predicate on the "view_roles" field.

func ViewRolesNEQ

func ViewRolesNEQ(v string) predicate.Node

ViewRolesNEQ applies the NEQ predicate on the "view_roles" field.

func ViewRolesNotIn

func ViewRolesNotIn(vs ...string) predicate.Node

ViewRolesNotIn applies the NotIn predicate on the "view_roles" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Node queries.

func ByBlockItems

func ByBlockItems(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByBlockItems orders the results by block_items terms.

func ByBlockItemsCount

func ByBlockItemsCount(opts ...sql.OrderTermOption) OrderOption

ByBlockItemsCount orders the results by block_items count.

func ByCommentMode

func ByCommentMode(opts ...sql.OrderTermOption) OrderOption

ByCommentMode orders the results by the comment_mode field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByCreatedBy

func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption

ByCreatedBy orders the results by the created_by field.

func ByDeletedAt

func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption

ByDeletedAt orders the results by the deleted_at field.

func ByDeletedBy

func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption

ByDeletedBy orders the results by the deleted_by field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByLangcode

func ByLangcode(opts ...sql.OrderTermOption) OrderOption

ByLangcode orders the results by the langcode field.

func ByNodeCounterField

func ByNodeCounterField(field string, opts ...sql.OrderTermOption) OrderOption

ByNodeCounterField orders the results by node_counter field.

func ByOnModeration

func ByOnModeration(opts ...sql.OrderTermOption) OrderOption

ByOnModeration orders the results by the on_moderation field.

func ByPageSeoField

func ByPageSeoField(field string, opts ...sql.OrderTermOption) OrderOption

ByPageSeoField orders the results by page_seo field.

func ByParentField

func ByParentField(field string, opts ...sql.OrderTermOption) OrderOption

ByParentField orders the results by parent field.

func ByParentID

func ByParentID(opts ...sql.OrderTermOption) OrderOption

ByParentID orders the results by the parent_id field.

func ByPathAuto

func ByPathAuto(opts ...sql.OrderTermOption) OrderOption

ByPathAuto orders the results by the path_auto field.

func ByPreviewLinks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByPreviewLinks orders the results by preview_links terms.

func ByPreviewLinksCount

func ByPreviewLinksCount(opts ...sql.OrderTermOption) OrderOption

ByPreviewLinksCount orders the results by preview_links count.

func ByPromote

func ByPromote(opts ...sql.OrderTermOption) OrderOption

ByPromote orders the results by the promote field.

func ByPublishOn

func ByPublishOn(opts ...sql.OrderTermOption) OrderOption

ByPublishOn orders the results by the publish_on field.

func BySearchWords

func BySearchWords(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

BySearchWords orders the results by search_words terms.

func BySearchWordsCount

func BySearchWordsCount(opts ...sql.OrderTermOption) OrderOption

BySearchWordsCount orders the results by search_words count.

func BySlug

func BySlug(opts ...sql.OrderTermOption) OrderOption

BySlug orders the results by the slug field.

func ByStatus

func ByStatus(opts ...sql.OrderTermOption) OrderOption

ByStatus orders the results by the status field.

func BySticky

func BySticky(opts ...sql.OrderTermOption) OrderOption

BySticky orders the results by the sticky field.

func ByTaxonomyIndices

func ByTaxonomyIndices(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByTaxonomyIndices orders the results by taxonomy_indices terms.

func ByTaxonomyIndicesCount

func ByTaxonomyIndicesCount(opts ...sql.OrderTermOption) OrderOption

ByTaxonomyIndicesCount orders the results by taxonomy_indices count.

func ByTitle

func ByTitle(opts ...sql.OrderTermOption) OrderOption

ByTitle orders the results by the title field.

func ByType

func ByType(opts ...sql.OrderTermOption) OrderOption

ByType orders the results by the type field.

func ByUnpublishOn

func ByUnpublishOn(opts ...sql.OrderTermOption) OrderOption

ByUnpublishOn orders the results by the unpublish_on field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByUsersField

func ByUsersField(field string, opts ...sql.OrderTermOption) OrderOption

ByUsersField orders the results by users field.

func ByViewDays

func ByViewDays(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByViewDays orders the results by view_days terms.

func ByViewDaysCount

func ByViewDaysCount(opts ...sql.OrderTermOption) OrderOption

ByViewDaysCount orders the results by view_days count.

func ByViewRoles

func ByViewRoles(opts ...sql.OrderTermOption) OrderOption

ByViewRoles orders the results by the view_roles field.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL