Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Node) predicate.Node
- func CommentMode(v string) predicate.Node
- func CommentModeContains(v string) predicate.Node
- func CommentModeContainsFold(v string) predicate.Node
- func CommentModeEQ(v string) predicate.Node
- func CommentModeEqualFold(v string) predicate.Node
- func CommentModeGT(v string) predicate.Node
- func CommentModeGTE(v string) predicate.Node
- func CommentModeHasPrefix(v string) predicate.Node
- func CommentModeHasSuffix(v string) predicate.Node
- func CommentModeIn(vs ...string) predicate.Node
- func CommentModeLT(v string) predicate.Node
- func CommentModeLTE(v string) predicate.Node
- func CommentModeNEQ(v string) predicate.Node
- func CommentModeNotIn(vs ...string) predicate.Node
- func CreatedAt(v time.Time) predicate.Node
- func CreatedAtEQ(v time.Time) predicate.Node
- func CreatedAtGT(v time.Time) predicate.Node
- func CreatedAtGTE(v time.Time) predicate.Node
- func CreatedAtIn(vs ...time.Time) predicate.Node
- func CreatedAtLT(v time.Time) predicate.Node
- func CreatedAtLTE(v time.Time) predicate.Node
- func CreatedAtNEQ(v time.Time) predicate.Node
- func CreatedAtNotIn(vs ...time.Time) predicate.Node
- func CreatedBy(v int) predicate.Node
- func CreatedByEQ(v int) predicate.Node
- func CreatedByIn(vs ...int) predicate.Node
- func CreatedByIsNil() predicate.Node
- func CreatedByNEQ(v int) predicate.Node
- func CreatedByNotIn(vs ...int) predicate.Node
- func CreatedByNotNil() predicate.Node
- func DeletedAt(v time.Time) predicate.Node
- func DeletedAtEQ(v time.Time) predicate.Node
- func DeletedAtGT(v time.Time) predicate.Node
- func DeletedAtGTE(v time.Time) predicate.Node
- func DeletedAtIn(vs ...time.Time) predicate.Node
- func DeletedAtIsNil() predicate.Node
- func DeletedAtLT(v time.Time) predicate.Node
- func DeletedAtLTE(v time.Time) predicate.Node
- func DeletedAtNEQ(v time.Time) predicate.Node
- func DeletedAtNotIn(vs ...time.Time) predicate.Node
- func DeletedAtNotNil() predicate.Node
- func DeletedBy(v int) predicate.Node
- func DeletedByEQ(v int) predicate.Node
- func DeletedByGT(v int) predicate.Node
- func DeletedByGTE(v int) predicate.Node
- func DeletedByIn(vs ...int) predicate.Node
- func DeletedByIsNil() predicate.Node
- func DeletedByLT(v int) predicate.Node
- func DeletedByLTE(v int) predicate.Node
- func DeletedByNEQ(v int) predicate.Node
- func DeletedByNotIn(vs ...int) predicate.Node
- func DeletedByNotNil() predicate.Node
- func HasBlockItems() predicate.Node
- func HasBlockItemsWith(preds ...predicate.Node) predicate.Node
- func HasNodeCounter() predicate.Node
- func HasNodeCounterWith(preds ...predicate.NodeCounter) predicate.Node
- func HasPageSeo() predicate.Node
- func HasPageSeoWith(preds ...predicate.PageSeo) predicate.Node
- func HasParent() predicate.Node
- func HasParentWith(preds ...predicate.Node) predicate.Node
- func HasPreviewLinks() predicate.Node
- func HasPreviewLinksWith(preds ...predicate.PreviewLink) predicate.Node
- func HasSearchWords() predicate.Node
- func HasSearchWordsWith(preds ...predicate.SearchWord) predicate.Node
- func HasTaxonomyIndices() predicate.Node
- func HasTaxonomyIndicesWith(preds ...predicate.TaxonomyIndex) predicate.Node
- func HasUsers() predicate.Node
- func HasUsersWith(preds ...predicate.User) predicate.Node
- func HasViewDays() predicate.Node
- func HasViewDaysWith(preds ...predicate.NodeViewDay) predicate.Node
- func ID(id int) predicate.Node
- func IDEQ(id int) predicate.Node
- func IDGT(id int) predicate.Node
- func IDGTE(id int) predicate.Node
- func IDIn(ids ...int) predicate.Node
- func IDLT(id int) predicate.Node
- func IDLTE(id int) predicate.Node
- func IDNEQ(id int) predicate.Node
- func IDNotIn(ids ...int) predicate.Node
- func Langcode(v string) predicate.Node
- func LangcodeContains(v string) predicate.Node
- func LangcodeContainsFold(v string) predicate.Node
- func LangcodeEQ(v string) predicate.Node
- func LangcodeEqualFold(v string) predicate.Node
- func LangcodeGT(v string) predicate.Node
- func LangcodeGTE(v string) predicate.Node
- func LangcodeHasPrefix(v string) predicate.Node
- func LangcodeHasSuffix(v string) predicate.Node
- func LangcodeIn(vs ...string) predicate.Node
- func LangcodeLT(v string) predicate.Node
- func LangcodeLTE(v string) predicate.Node
- func LangcodeNEQ(v string) predicate.Node
- func LangcodeNotIn(vs ...string) predicate.Node
- func Not(p predicate.Node) predicate.Node
- func OnModeration(v int) predicate.Node
- func OnModerationEQ(v int) predicate.Node
- func OnModerationGT(v int) predicate.Node
- func OnModerationGTE(v int) predicate.Node
- func OnModerationIn(vs ...int) predicate.Node
- func OnModerationLT(v int) predicate.Node
- func OnModerationLTE(v int) predicate.Node
- func OnModerationNEQ(v int) predicate.Node
- func OnModerationNotIn(vs ...int) predicate.Node
- func Or(predicates ...predicate.Node) predicate.Node
- func ParentID(v int) predicate.Node
- func ParentIDEQ(v int) predicate.Node
- func ParentIDIn(vs ...int) predicate.Node
- func ParentIDIsNil() predicate.Node
- func ParentIDNEQ(v int) predicate.Node
- func ParentIDNotIn(vs ...int) predicate.Node
- func ParentIDNotNil() predicate.Node
- func PathAuto(v bool) predicate.Node
- func PathAutoEQ(v bool) predicate.Node
- func PathAutoNEQ(v bool) predicate.Node
- func Promote(v bool) predicate.Node
- func PromoteEQ(v bool) predicate.Node
- func PromoteNEQ(v bool) predicate.Node
- func PublishOn(v time.Time) predicate.Node
- func PublishOnEQ(v time.Time) predicate.Node
- func PublishOnGT(v time.Time) predicate.Node
- func PublishOnGTE(v time.Time) predicate.Node
- func PublishOnIn(vs ...time.Time) predicate.Node
- func PublishOnIsNil() predicate.Node
- func PublishOnLT(v time.Time) predicate.Node
- func PublishOnLTE(v time.Time) predicate.Node
- func PublishOnNEQ(v time.Time) predicate.Node
- func PublishOnNotIn(vs ...time.Time) predicate.Node
- func PublishOnNotNil() predicate.Node
- func Slug(v string) predicate.Node
- func SlugContains(v string) predicate.Node
- func SlugContainsFold(v string) predicate.Node
- func SlugEQ(v string) predicate.Node
- func SlugEqualFold(v string) predicate.Node
- func SlugGT(v string) predicate.Node
- func SlugGTE(v string) predicate.Node
- func SlugHasPrefix(v string) predicate.Node
- func SlugHasSuffix(v string) predicate.Node
- func SlugIn(vs ...string) predicate.Node
- func SlugIsNil() predicate.Node
- func SlugLT(v string) predicate.Node
- func SlugLTE(v string) predicate.Node
- func SlugNEQ(v string) predicate.Node
- func SlugNotIn(vs ...string) predicate.Node
- func SlugNotNil() predicate.Node
- func Status(v int) predicate.Node
- func StatusEQ(v int) predicate.Node
- func StatusGT(v int) predicate.Node
- func StatusGTE(v int) predicate.Node
- func StatusIn(vs ...int) predicate.Node
- func StatusLT(v int) predicate.Node
- func StatusLTE(v int) predicate.Node
- func StatusNEQ(v int) predicate.Node
- func StatusNotIn(vs ...int) predicate.Node
- func Sticky(v bool) predicate.Node
- func StickyEQ(v bool) predicate.Node
- func StickyNEQ(v bool) predicate.Node
- func Title(v string) predicate.Node
- func TitleContains(v string) predicate.Node
- func TitleContainsFold(v string) predicate.Node
- func TitleEQ(v string) predicate.Node
- func TitleEqualFold(v string) predicate.Node
- func TitleGT(v string) predicate.Node
- func TitleGTE(v string) predicate.Node
- func TitleHasPrefix(v string) predicate.Node
- func TitleHasSuffix(v string) predicate.Node
- func TitleIn(vs ...string) predicate.Node
- func TitleLT(v string) predicate.Node
- func TitleLTE(v string) predicate.Node
- func TitleNEQ(v string) predicate.Node
- func TitleNotIn(vs ...string) predicate.Node
- func Type(v string) predicate.Node
- func TypeContains(v string) predicate.Node
- func TypeContainsFold(v string) predicate.Node
- func TypeEQ(v string) predicate.Node
- func TypeEqualFold(v string) predicate.Node
- func TypeGT(v string) predicate.Node
- func TypeGTE(v string) predicate.Node
- func TypeHasPrefix(v string) predicate.Node
- func TypeHasSuffix(v string) predicate.Node
- func TypeIn(vs ...string) predicate.Node
- func TypeLT(v string) predicate.Node
- func TypeLTE(v string) predicate.Node
- func TypeNEQ(v string) predicate.Node
- func TypeNotIn(vs ...string) predicate.Node
- func UnpublishOn(v time.Time) predicate.Node
- func UnpublishOnEQ(v time.Time) predicate.Node
- func UnpublishOnGT(v time.Time) predicate.Node
- func UnpublishOnGTE(v time.Time) predicate.Node
- func UnpublishOnIn(vs ...time.Time) predicate.Node
- func UnpublishOnIsNil() predicate.Node
- func UnpublishOnLT(v time.Time) predicate.Node
- func UnpublishOnLTE(v time.Time) predicate.Node
- func UnpublishOnNEQ(v time.Time) predicate.Node
- func UnpublishOnNotIn(vs ...time.Time) predicate.Node
- func UnpublishOnNotNil() predicate.Node
- func UpdatedAt(v time.Time) predicate.Node
- func UpdatedAtEQ(v time.Time) predicate.Node
- func UpdatedAtGT(v time.Time) predicate.Node
- func UpdatedAtGTE(v time.Time) predicate.Node
- func UpdatedAtIn(vs ...time.Time) predicate.Node
- func UpdatedAtLT(v time.Time) predicate.Node
- func UpdatedAtLTE(v time.Time) predicate.Node
- func UpdatedAtNEQ(v time.Time) predicate.Node
- func UpdatedAtNotIn(vs ...time.Time) predicate.Node
- func ValidColumn(column string) bool
- func ViewRoles(v string) predicate.Node
- func ViewRolesContains(v string) predicate.Node
- func ViewRolesContainsFold(v string) predicate.Node
- func ViewRolesEQ(v string) predicate.Node
- func ViewRolesEqualFold(v string) predicate.Node
- func ViewRolesGT(v string) predicate.Node
- func ViewRolesGTE(v string) predicate.Node
- func ViewRolesHasPrefix(v string) predicate.Node
- func ViewRolesHasSuffix(v string) predicate.Node
- func ViewRolesIn(vs ...string) predicate.Node
- func ViewRolesLT(v string) predicate.Node
- func ViewRolesLTE(v string) predicate.Node
- func ViewRolesNEQ(v string) predicate.Node
- func ViewRolesNotIn(vs ...string) predicate.Node
- type OrderOption
- func ByBlockItems(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByBlockItemsCount(opts ...sql.OrderTermOption) OrderOption
- func ByCommentMode(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLangcode(opts ...sql.OrderTermOption) OrderOption
- func ByNodeCounterField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOnModeration(opts ...sql.OrderTermOption) OrderOption
- func ByPageSeoField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByParentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByParentID(opts ...sql.OrderTermOption) OrderOption
- func ByPathAuto(opts ...sql.OrderTermOption) OrderOption
- func ByPreviewLinks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPreviewLinksCount(opts ...sql.OrderTermOption) OrderOption
- func ByPromote(opts ...sql.OrderTermOption) OrderOption
- func ByPublishOn(opts ...sql.OrderTermOption) OrderOption
- func BySearchWords(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySearchWordsCount(opts ...sql.OrderTermOption) OrderOption
- func BySlug(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func BySticky(opts ...sql.OrderTermOption) OrderOption
- func ByTaxonomyIndices(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTaxonomyIndicesCount(opts ...sql.OrderTermOption) OrderOption
- func ByTitle(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- func ByUnpublishOn(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUsersField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByViewDays(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByViewDaysCount(opts ...sql.OrderTermOption) OrderOption
- func ByViewRoles(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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"
var Columns = []string{ FieldID, FieldType, FieldTitle, FieldSlug, FieldStatus, FieldOnModeration, FieldCommentMode, FieldPathAuto, FieldPromote, FieldSticky, FieldViewRoles, FieldPublishOn, FieldUnpublishOn, FieldParentID, FieldDeletedAt, FieldDeletedBy, FieldLangcode, FieldCreatedBy, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for node fields.
Functions ¶
func CommentMode ¶
CommentMode applies equality check predicate on the "comment_mode" field. It's identical to CommentModeEQ.
func CommentModeContains ¶
CommentModeContains applies the Contains predicate on the "comment_mode" field.
func CommentModeContainsFold ¶
CommentModeContainsFold applies the ContainsFold predicate on the "comment_mode" field.
func CommentModeEQ ¶
CommentModeEQ applies the EQ predicate on the "comment_mode" field.
func CommentModeEqualFold ¶
CommentModeEqualFold applies the EqualFold predicate on the "comment_mode" field.
func CommentModeGT ¶
CommentModeGT applies the GT predicate on the "comment_mode" field.
func CommentModeGTE ¶
CommentModeGTE applies the GTE predicate on the "comment_mode" field.
func CommentModeHasPrefix ¶
CommentModeHasPrefix applies the HasPrefix predicate on the "comment_mode" field.
func CommentModeHasSuffix ¶
CommentModeHasSuffix applies the HasSuffix predicate on the "comment_mode" field.
func CommentModeIn ¶
CommentModeIn applies the In predicate on the "comment_mode" field.
func CommentModeLT ¶
CommentModeLT applies the LT predicate on the "comment_mode" field.
func CommentModeLTE ¶
CommentModeLTE applies the LTE predicate on the "comment_mode" field.
func CommentModeNEQ ¶
CommentModeNEQ applies the NEQ predicate on the "comment_mode" field.
func CommentModeNotIn ¶
CommentModeNotIn applies the NotIn predicate on the "comment_mode" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedBy ¶
DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.
func DeletedByEQ ¶
DeletedByEQ applies the EQ predicate on the "deleted_by" field.
func DeletedByGT ¶
DeletedByGT applies the GT predicate on the "deleted_by" field.
func DeletedByGTE ¶
DeletedByGTE applies the GTE predicate on the "deleted_by" field.
func DeletedByIn ¶
DeletedByIn applies the In predicate on the "deleted_by" field.
func DeletedByIsNil ¶
DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.
func DeletedByLT ¶
DeletedByLT applies the LT predicate on the "deleted_by" field.
func DeletedByLTE ¶
DeletedByLTE applies the LTE predicate on the "deleted_by" field.
func DeletedByNEQ ¶
DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.
func DeletedByNotIn ¶
DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.
func DeletedByNotNil ¶
DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.
func HasBlockItems ¶
HasBlockItems applies the HasEdge predicate on the "block_items" edge.
func HasBlockItemsWith ¶
HasBlockItemsWith applies the HasEdge predicate on the "block_items" edge with a given conditions (other predicates).
func HasNodeCounter ¶
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 ¶
HasPageSeo applies the HasEdge predicate on the "page_seo" edge.
func HasPageSeoWith ¶
HasPageSeoWith applies the HasEdge predicate on the "page_seo" edge with a given conditions (other predicates).
func HasParentWith ¶
HasParentWith applies the HasEdge predicate on the "parent" edge with a given conditions (other predicates).
func HasPreviewLinks ¶
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 ¶
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 ¶
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 HasUsersWith ¶
HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).
func HasViewDays ¶
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 Langcode ¶
Langcode applies equality check predicate on the "langcode" field. It's identical to LangcodeEQ.
func LangcodeContains ¶
LangcodeContains applies the Contains predicate on the "langcode" field.
func LangcodeContainsFold ¶
LangcodeContainsFold applies the ContainsFold predicate on the "langcode" field.
func LangcodeEQ ¶
LangcodeEQ applies the EQ predicate on the "langcode" field.
func LangcodeEqualFold ¶
LangcodeEqualFold applies the EqualFold predicate on the "langcode" field.
func LangcodeGT ¶
LangcodeGT applies the GT predicate on the "langcode" field.
func LangcodeGTE ¶
LangcodeGTE applies the GTE predicate on the "langcode" field.
func LangcodeHasPrefix ¶
LangcodeHasPrefix applies the HasPrefix predicate on the "langcode" field.
func LangcodeHasSuffix ¶
LangcodeHasSuffix applies the HasSuffix predicate on the "langcode" field.
func LangcodeIn ¶
LangcodeIn applies the In predicate on the "langcode" field.
func LangcodeLT ¶
LangcodeLT applies the LT predicate on the "langcode" field.
func LangcodeLTE ¶
LangcodeLTE applies the LTE predicate on the "langcode" field.
func LangcodeNEQ ¶
LangcodeNEQ applies the NEQ predicate on the "langcode" field.
func LangcodeNotIn ¶
LangcodeNotIn applies the NotIn predicate on the "langcode" field.
func OnModeration ¶
OnModeration applies equality check predicate on the "on_moderation" field. It's identical to OnModerationEQ.
func OnModerationEQ ¶
OnModerationEQ applies the EQ predicate on the "on_moderation" field.
func OnModerationGT ¶
OnModerationGT applies the GT predicate on the "on_moderation" field.
func OnModerationGTE ¶
OnModerationGTE applies the GTE predicate on the "on_moderation" field.
func OnModerationIn ¶
OnModerationIn applies the In predicate on the "on_moderation" field.
func OnModerationLT ¶
OnModerationLT applies the LT predicate on the "on_moderation" field.
func OnModerationLTE ¶
OnModerationLTE applies the LTE predicate on the "on_moderation" field.
func OnModerationNEQ ¶
OnModerationNEQ applies the NEQ predicate on the "on_moderation" field.
func OnModerationNotIn ¶
OnModerationNotIn applies the NotIn predicate on the "on_moderation" field.
func ParentID ¶
ParentID applies equality check predicate on the "parent_id" field. It's identical to ParentIDEQ.
func ParentIDEQ ¶
ParentIDEQ applies the EQ predicate on the "parent_id" field.
func ParentIDIn ¶
ParentIDIn applies the In predicate on the "parent_id" field.
func ParentIDIsNil ¶
ParentIDIsNil applies the IsNil predicate on the "parent_id" field.
func ParentIDNEQ ¶
ParentIDNEQ applies the NEQ predicate on the "parent_id" field.
func ParentIDNotIn ¶
ParentIDNotIn applies the NotIn predicate on the "parent_id" field.
func ParentIDNotNil ¶
ParentIDNotNil applies the NotNil predicate on the "parent_id" field.
func PathAuto ¶
PathAuto applies equality check predicate on the "path_auto" field. It's identical to PathAutoEQ.
func PathAutoEQ ¶
PathAutoEQ applies the EQ predicate on the "path_auto" field.
func PathAutoNEQ ¶
PathAutoNEQ applies the NEQ predicate on the "path_auto" field.
func Promote ¶
Promote applies equality check predicate on the "promote" field. It's identical to PromoteEQ.
func PromoteNEQ ¶
PromoteNEQ applies the NEQ predicate on the "promote" field.
func PublishOn ¶
PublishOn applies equality check predicate on the "publish_on" field. It's identical to PublishOnEQ.
func PublishOnEQ ¶
PublishOnEQ applies the EQ predicate on the "publish_on" field.
func PublishOnGT ¶
PublishOnGT applies the GT predicate on the "publish_on" field.
func PublishOnGTE ¶
PublishOnGTE applies the GTE predicate on the "publish_on" field.
func PublishOnIn ¶
PublishOnIn applies the In predicate on the "publish_on" field.
func PublishOnIsNil ¶
PublishOnIsNil applies the IsNil predicate on the "publish_on" field.
func PublishOnLT ¶
PublishOnLT applies the LT predicate on the "publish_on" field.
func PublishOnLTE ¶
PublishOnLTE applies the LTE predicate on the "publish_on" field.
func PublishOnNEQ ¶
PublishOnNEQ applies the NEQ predicate on the "publish_on" field.
func PublishOnNotIn ¶
PublishOnNotIn applies the NotIn predicate on the "publish_on" field.
func PublishOnNotNil ¶
PublishOnNotNil applies the NotNil predicate on the "publish_on" field.
func SlugContains ¶
SlugContains applies the Contains predicate on the "slug" field.
func SlugContainsFold ¶
SlugContainsFold applies the ContainsFold predicate on the "slug" field.
func SlugEqualFold ¶
SlugEqualFold applies the EqualFold predicate on the "slug" field.
func SlugHasPrefix ¶
SlugHasPrefix applies the HasPrefix predicate on the "slug" field.
func SlugHasSuffix ¶
SlugHasSuffix applies the HasSuffix predicate on the "slug" field.
func SlugNotNil ¶
SlugNotNil applies the NotNil predicate on the "slug" field.
func Status ¶
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func Sticky ¶
Sticky applies equality check predicate on the "sticky" field. It's identical to StickyEQ.
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
func TypeContains ¶
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEqualFold ¶
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeHasPrefix ¶
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func UnpublishOn ¶
UnpublishOn applies equality check predicate on the "unpublish_on" field. It's identical to UnpublishOnEQ.
func UnpublishOnEQ ¶
UnpublishOnEQ applies the EQ predicate on the "unpublish_on" field.
func UnpublishOnGT ¶
UnpublishOnGT applies the GT predicate on the "unpublish_on" field.
func UnpublishOnGTE ¶
UnpublishOnGTE applies the GTE predicate on the "unpublish_on" field.
func UnpublishOnIn ¶
UnpublishOnIn applies the In predicate on the "unpublish_on" field.
func UnpublishOnIsNil ¶
UnpublishOnIsNil applies the IsNil predicate on the "unpublish_on" field.
func UnpublishOnLT ¶
UnpublishOnLT applies the LT predicate on the "unpublish_on" field.
func UnpublishOnLTE ¶
UnpublishOnLTE applies the LTE predicate on the "unpublish_on" field.
func UnpublishOnNEQ ¶
UnpublishOnNEQ applies the NEQ predicate on the "unpublish_on" field.
func UnpublishOnNotIn ¶
UnpublishOnNotIn applies the NotIn predicate on the "unpublish_on" field.
func UnpublishOnNotNil ¶
UnpublishOnNotNil applies the NotNil predicate on the "unpublish_on" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func ViewRoles ¶
ViewRoles applies equality check predicate on the "view_roles" field. It's identical to ViewRolesEQ.
func ViewRolesContains ¶
ViewRolesContains applies the Contains predicate on the "view_roles" field.
func ViewRolesContainsFold ¶
ViewRolesContainsFold applies the ContainsFold predicate on the "view_roles" field.
func ViewRolesEQ ¶
ViewRolesEQ applies the EQ predicate on the "view_roles" field.
func ViewRolesEqualFold ¶
ViewRolesEqualFold applies the EqualFold predicate on the "view_roles" field.
func ViewRolesGT ¶
ViewRolesGT applies the GT predicate on the "view_roles" field.
func ViewRolesGTE ¶
ViewRolesGTE applies the GTE predicate on the "view_roles" field.
func ViewRolesHasPrefix ¶
ViewRolesHasPrefix applies the HasPrefix predicate on the "view_roles" field.
func ViewRolesHasSuffix ¶
ViewRolesHasSuffix applies the HasSuffix predicate on the "view_roles" field.
func ViewRolesIn ¶
ViewRolesIn applies the In predicate on the "view_roles" field.
func ViewRolesLT ¶
ViewRolesLT applies the LT predicate on the "view_roles" field.
func ViewRolesLTE ¶
ViewRolesLTE applies the LTE predicate on the "view_roles" field.
func ViewRolesNEQ ¶
ViewRolesNEQ applies the NEQ predicate on the "view_roles" field.
func ViewRolesNotIn ¶
ViewRolesNotIn applies the NotIn predicate on the "view_roles" field.
Types ¶
type OrderOption ¶
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 ¶
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.