Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Page) predicate.Page
- func Content(v string) predicate.Page
- func ContentContains(v string) predicate.Page
- func ContentContainsFold(v string) predicate.Page
- func ContentEQ(v string) predicate.Page
- func ContentEqualFold(v string) predicate.Page
- func ContentGT(v string) predicate.Page
- func ContentGTE(v string) predicate.Page
- func ContentHTML(v string) predicate.Page
- func ContentHTMLContains(v string) predicate.Page
- func ContentHTMLContainsFold(v string) predicate.Page
- func ContentHTMLEQ(v string) predicate.Page
- func ContentHTMLEqualFold(v string) predicate.Page
- func ContentHTMLGT(v string) predicate.Page
- func ContentHTMLGTE(v string) predicate.Page
- func ContentHTMLHasPrefix(v string) predicate.Page
- func ContentHTMLHasSuffix(v string) predicate.Page
- func ContentHTMLIn(vs ...string) predicate.Page
- func ContentHTMLLT(v string) predicate.Page
- func ContentHTMLLTE(v string) predicate.Page
- func ContentHTMLNEQ(v string) predicate.Page
- func ContentHTMLNotIn(vs ...string) predicate.Page
- func ContentHasPrefix(v string) predicate.Page
- func ContentHasSuffix(v string) predicate.Page
- func ContentIn(vs ...string) predicate.Page
- func ContentLT(v string) predicate.Page
- func ContentLTE(v string) predicate.Page
- func ContentNEQ(v string) predicate.Page
- func ContentNotIn(vs ...string) predicate.Page
- func CreatedAt(v time.Time) predicate.Page
- func CreatedAtEQ(v time.Time) predicate.Page
- func CreatedAtGT(v time.Time) predicate.Page
- func CreatedAtGTE(v time.Time) predicate.Page
- func CreatedAtIn(vs ...time.Time) predicate.Page
- func CreatedAtLT(v time.Time) predicate.Page
- func CreatedAtLTE(v time.Time) predicate.Page
- func CreatedAtNEQ(v time.Time) predicate.Page
- func CreatedAtNotIn(vs ...time.Time) predicate.Page
- func DeletedAt(v time.Time) predicate.Page
- func DeletedAtEQ(v time.Time) predicate.Page
- func DeletedAtGT(v time.Time) predicate.Page
- func DeletedAtGTE(v time.Time) predicate.Page
- func DeletedAtIn(vs ...time.Time) predicate.Page
- func DeletedAtIsNil() predicate.Page
- func DeletedAtLT(v time.Time) predicate.Page
- func DeletedAtLTE(v time.Time) predicate.Page
- func DeletedAtNEQ(v time.Time) predicate.Page
- func DeletedAtNotIn(vs ...time.Time) predicate.Page
- func DeletedAtNotNil() predicate.Page
- func Draft(v bool) predicate.Page
- func DraftEQ(v bool) predicate.Page
- func DraftIsNil() predicate.Page
- func DraftNEQ(v bool) predicate.Page
- func DraftNotNil() predicate.Page
- func FeaturedImageID(v int) predicate.Page
- func FeaturedImageIDEQ(v int) predicate.Page
- func FeaturedImageIDIn(vs ...int) predicate.Page
- func FeaturedImageIDIsNil() predicate.Page
- func FeaturedImageIDNEQ(v int) predicate.Page
- func FeaturedImageIDNotIn(vs ...int) predicate.Page
- func FeaturedImageIDNotNil() predicate.Page
- func HasFeaturedImage() predicate.Page
- func HasFeaturedImageWith(preds ...predicate.File) predicate.Page
- func ID(id int) predicate.Page
- func IDEQ(id int) predicate.Page
- func IDGT(id int) predicate.Page
- func IDGTE(id int) predicate.Page
- func IDIn(ids ...int) predicate.Page
- func IDLT(id int) predicate.Page
- func IDLTE(id int) predicate.Page
- func IDNEQ(id int) predicate.Page
- func IDNotIn(ids ...int) predicate.Page
- func Name(v string) predicate.Page
- func NameContains(v string) predicate.Page
- func NameContainsFold(v string) predicate.Page
- func NameEQ(v string) predicate.Page
- func NameEqualFold(v string) predicate.Page
- func NameGT(v string) predicate.Page
- func NameGTE(v string) predicate.Page
- func NameHasPrefix(v string) predicate.Page
- func NameHasSuffix(v string) predicate.Page
- func NameIn(vs ...string) predicate.Page
- func NameLT(v string) predicate.Page
- func NameLTE(v string) predicate.Page
- func NameNEQ(v string) predicate.Page
- func NameNotIn(vs ...string) predicate.Page
- func Not(p predicate.Page) predicate.Page
- func Or(predicates ...predicate.Page) predicate.Page
- func Slug(v string) predicate.Page
- func SlugContains(v string) predicate.Page
- func SlugContainsFold(v string) predicate.Page
- func SlugEQ(v string) predicate.Page
- func SlugEqualFold(v string) predicate.Page
- func SlugGT(v string) predicate.Page
- func SlugGTE(v string) predicate.Page
- func SlugHasPrefix(v string) predicate.Page
- func SlugHasSuffix(v string) predicate.Page
- func SlugIn(vs ...string) predicate.Page
- func SlugLT(v string) predicate.Page
- func SlugLTE(v string) predicate.Page
- func SlugNEQ(v string) predicate.Page
- func SlugNotIn(vs ...string) predicate.Page
- func UpdatedAt(v time.Time) predicate.Page
- func UpdatedAtEQ(v time.Time) predicate.Page
- func UpdatedAtGT(v time.Time) predicate.Page
- func UpdatedAtGTE(v time.Time) predicate.Page
- func UpdatedAtIn(vs ...time.Time) predicate.Page
- func UpdatedAtLT(v time.Time) predicate.Page
- func UpdatedAtLTE(v time.Time) predicate.Page
- func UpdatedAtNEQ(v time.Time) predicate.Page
- func UpdatedAtNotIn(vs ...time.Time) predicate.Page
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the page type in the database. Label = "page" // FieldID holds the string denoting the id field in the database. FieldID = "id" // 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" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldSlug holds the string denoting the slug field in the database. FieldSlug = "slug" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // FieldContentHTML holds the string denoting the content_html field in the database. FieldContentHTML = "content_html" // FieldDraft holds the string denoting the draft field in the database. FieldDraft = "draft" // FieldFeaturedImageID holds the string denoting the featured_image_id field in the database. FieldFeaturedImageID = "featured_image_id" // EdgeFeaturedImage holds the string denoting the featured_image edge name in mutations. EdgeFeaturedImage = "featured_image" // Table holds the table name of the page in the database. Table = "pages" // FeaturedImageTable is the table that holds the featured_image relation/edge. FeaturedImageTable = "pages" // FeaturedImageInverseTable is the table name for the File entity. // It exists in this package in order to avoid circular dependency with the "file" package. FeaturedImageInverseTable = "files" // FeaturedImageColumn is the table column denoting the featured_image relation/edge. FeaturedImageColumn = "featured_image_id" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultDraft holds the default value on creation for the "draft" field. DefaultDraft bool )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldName, FieldSlug, FieldContent, FieldContentHTML, FieldDraft, FieldFeaturedImageID, }
Columns holds all SQL columns for page fields.
Functions ¶
func Content ¶
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentContains ¶
ContentContains applies the Contains predicate on the "content" field.
func ContentContainsFold ¶
ContentContainsFold applies the ContainsFold predicate on the "content" field.
func ContentEqualFold ¶
ContentEqualFold applies the EqualFold predicate on the "content" field.
func ContentGTE ¶
ContentGTE applies the GTE predicate on the "content" field.
func ContentHTML ¶
ContentHTML applies equality check predicate on the "content_html" field. It's identical to ContentHTMLEQ.
func ContentHTMLContains ¶
ContentHTMLContains applies the Contains predicate on the "content_html" field.
func ContentHTMLContainsFold ¶
ContentHTMLContainsFold applies the ContainsFold predicate on the "content_html" field.
func ContentHTMLEQ ¶
ContentHTMLEQ applies the EQ predicate on the "content_html" field.
func ContentHTMLEqualFold ¶
ContentHTMLEqualFold applies the EqualFold predicate on the "content_html" field.
func ContentHTMLGT ¶
ContentHTMLGT applies the GT predicate on the "content_html" field.
func ContentHTMLGTE ¶
ContentHTMLGTE applies the GTE predicate on the "content_html" field.
func ContentHTMLHasPrefix ¶
ContentHTMLHasPrefix applies the HasPrefix predicate on the "content_html" field.
func ContentHTMLHasSuffix ¶
ContentHTMLHasSuffix applies the HasSuffix predicate on the "content_html" field.
func ContentHTMLIn ¶
ContentHTMLIn applies the In predicate on the "content_html" field.
func ContentHTMLLT ¶
ContentHTMLLT applies the LT predicate on the "content_html" field.
func ContentHTMLLTE ¶
ContentHTMLLTE applies the LTE predicate on the "content_html" field.
func ContentHTMLNEQ ¶
ContentHTMLNEQ applies the NEQ predicate on the "content_html" field.
func ContentHTMLNotIn ¶
ContentHTMLNotIn applies the NotIn predicate on the "content_html" field.
func ContentHasPrefix ¶
ContentHasPrefix applies the HasPrefix predicate on the "content" field.
func ContentHasSuffix ¶
ContentHasSuffix applies the HasSuffix predicate on the "content" field.
func ContentLTE ¶
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
ContentNotIn applies the NotIn predicate on the "content" 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 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 Draft ¶
Draft applies equality check predicate on the "draft" field. It's identical to DraftEQ.
func DraftIsNil ¶
DraftIsNil applies the IsNil predicate on the "draft" field.
func DraftNotNil ¶
DraftNotNil applies the NotNil predicate on the "draft" field.
func FeaturedImageID ¶
FeaturedImageID applies equality check predicate on the "featured_image_id" field. It's identical to FeaturedImageIDEQ.
func FeaturedImageIDEQ ¶
FeaturedImageIDEQ applies the EQ predicate on the "featured_image_id" field.
func FeaturedImageIDIn ¶
FeaturedImageIDIn applies the In predicate on the "featured_image_id" field.
func FeaturedImageIDIsNil ¶
FeaturedImageIDIsNil applies the IsNil predicate on the "featured_image_id" field.
func FeaturedImageIDNEQ ¶
FeaturedImageIDNEQ applies the NEQ predicate on the "featured_image_id" field.
func FeaturedImageIDNotIn ¶
FeaturedImageIDNotIn applies the NotIn predicate on the "featured_image_id" field.
func FeaturedImageIDNotNil ¶
FeaturedImageIDNotNil applies the NotNil predicate on the "featured_image_id" field.
func HasFeaturedImage ¶
HasFeaturedImage applies the HasEdge predicate on the "featured_image" edge.
func HasFeaturedImageWith ¶
HasFeaturedImageWith applies the HasEdge predicate on the "featured_image" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" 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 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).
Types ¶
This section is empty.