page

package
v0.0.7-alpha Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for page fields.

Functions

func And

func And(predicates ...predicate.Page) predicate.Page

And groups predicates with the AND operator between them.

func Content

func Content(v string) predicate.Page

Content applies equality check predicate on the "content" field. It's identical to ContentEQ.

func ContentContains

func ContentContains(v string) predicate.Page

ContentContains applies the Contains predicate on the "content" field.

func ContentContainsFold

func ContentContainsFold(v string) predicate.Page

ContentContainsFold applies the ContainsFold predicate on the "content" field.

func ContentEQ

func ContentEQ(v string) predicate.Page

ContentEQ applies the EQ predicate on the "content" field.

func ContentEqualFold

func ContentEqualFold(v string) predicate.Page

ContentEqualFold applies the EqualFold predicate on the "content" field.

func ContentGT

func ContentGT(v string) predicate.Page

ContentGT applies the GT predicate on the "content" field.

func ContentGTE

func ContentGTE(v string) predicate.Page

ContentGTE applies the GTE predicate on the "content" field.

func ContentHTML

func ContentHTML(v string) predicate.Page

ContentHTML applies equality check predicate on the "content_html" field. It's identical to ContentHTMLEQ.

func ContentHTMLContains

func ContentHTMLContains(v string) predicate.Page

ContentHTMLContains applies the Contains predicate on the "content_html" field.

func ContentHTMLContainsFold

func ContentHTMLContainsFold(v string) predicate.Page

ContentHTMLContainsFold applies the ContainsFold predicate on the "content_html" field.

func ContentHTMLEQ

func ContentHTMLEQ(v string) predicate.Page

ContentHTMLEQ applies the EQ predicate on the "content_html" field.

func ContentHTMLEqualFold

func ContentHTMLEqualFold(v string) predicate.Page

ContentHTMLEqualFold applies the EqualFold predicate on the "content_html" field.

func ContentHTMLGT

func ContentHTMLGT(v string) predicate.Page

ContentHTMLGT applies the GT predicate on the "content_html" field.

func ContentHTMLGTE

func ContentHTMLGTE(v string) predicate.Page

ContentHTMLGTE applies the GTE predicate on the "content_html" field.

func ContentHTMLHasPrefix

func ContentHTMLHasPrefix(v string) predicate.Page

ContentHTMLHasPrefix applies the HasPrefix predicate on the "content_html" field.

func ContentHTMLHasSuffix

func ContentHTMLHasSuffix(v string) predicate.Page

ContentHTMLHasSuffix applies the HasSuffix predicate on the "content_html" field.

func ContentHTMLIn

func ContentHTMLIn(vs ...string) predicate.Page

ContentHTMLIn applies the In predicate on the "content_html" field.

func ContentHTMLLT

func ContentHTMLLT(v string) predicate.Page

ContentHTMLLT applies the LT predicate on the "content_html" field.

func ContentHTMLLTE

func ContentHTMLLTE(v string) predicate.Page

ContentHTMLLTE applies the LTE predicate on the "content_html" field.

func ContentHTMLNEQ

func ContentHTMLNEQ(v string) predicate.Page

ContentHTMLNEQ applies the NEQ predicate on the "content_html" field.

func ContentHTMLNotIn

func ContentHTMLNotIn(vs ...string) predicate.Page

ContentHTMLNotIn applies the NotIn predicate on the "content_html" field.

func ContentHasPrefix

func ContentHasPrefix(v string) predicate.Page

ContentHasPrefix applies the HasPrefix predicate on the "content" field.

func ContentHasSuffix

func ContentHasSuffix(v string) predicate.Page

ContentHasSuffix applies the HasSuffix predicate on the "content" field.

func ContentIn

func ContentIn(vs ...string) predicate.Page

ContentIn applies the In predicate on the "content" field.

func ContentLT

func ContentLT(v string) predicate.Page

ContentLT applies the LT predicate on the "content" field.

func ContentLTE

func ContentLTE(v string) predicate.Page

ContentLTE applies the LTE predicate on the "content" field.

func ContentNEQ

func ContentNEQ(v string) predicate.Page

ContentNEQ applies the NEQ predicate on the "content" field.

func ContentNotIn

func ContentNotIn(vs ...string) predicate.Page

ContentNotIn applies the NotIn predicate on the "content" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Page

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Page

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Page

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Page

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Page

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Page

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Page

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.Page

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Page

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Page

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Page

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Page

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Page

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Page

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Page

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Page

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

func Draft

func Draft(v bool) predicate.Page

Draft applies equality check predicate on the "draft" field. It's identical to DraftEQ.

func DraftEQ

func DraftEQ(v bool) predicate.Page

DraftEQ applies the EQ predicate on the "draft" field.

func DraftIsNil

func DraftIsNil() predicate.Page

DraftIsNil applies the IsNil predicate on the "draft" field.

func DraftNEQ

func DraftNEQ(v bool) predicate.Page

DraftNEQ applies the NEQ predicate on the "draft" field.

func DraftNotNil

func DraftNotNil() predicate.Page

DraftNotNil applies the NotNil predicate on the "draft" field.

func FeaturedImageID

func FeaturedImageID(v int) predicate.Page

FeaturedImageID applies equality check predicate on the "featured_image_id" field. It's identical to FeaturedImageIDEQ.

func FeaturedImageIDEQ

func FeaturedImageIDEQ(v int) predicate.Page

FeaturedImageIDEQ applies the EQ predicate on the "featured_image_id" field.

func FeaturedImageIDIn

func FeaturedImageIDIn(vs ...int) predicate.Page

FeaturedImageIDIn applies the In predicate on the "featured_image_id" field.

func FeaturedImageIDIsNil

func FeaturedImageIDIsNil() predicate.Page

FeaturedImageIDIsNil applies the IsNil predicate on the "featured_image_id" field.

func FeaturedImageIDNEQ

func FeaturedImageIDNEQ(v int) predicate.Page

FeaturedImageIDNEQ applies the NEQ predicate on the "featured_image_id" field.

func FeaturedImageIDNotIn

func FeaturedImageIDNotIn(vs ...int) predicate.Page

FeaturedImageIDNotIn applies the NotIn predicate on the "featured_image_id" field.

func FeaturedImageIDNotNil

func FeaturedImageIDNotNil() predicate.Page

FeaturedImageIDNotNil applies the NotNil predicate on the "featured_image_id" field.

func HasFeaturedImage

func HasFeaturedImage() predicate.Page

HasFeaturedImage applies the HasEdge predicate on the "featured_image" edge.

func HasFeaturedImageWith

func HasFeaturedImageWith(preds ...predicate.File) predicate.Page

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

func ID

func ID(id int) predicate.Page

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Page

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Page

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Page

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Page

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Page

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Page

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Page

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Page

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Page

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Page

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Page

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Page

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Page

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Page

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Page

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Page

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Page

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Page

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Page

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Page

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Page) predicate.Page

Or groups predicates with the OR operator between them.

func Slug

func Slug(v string) predicate.Page

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

func SlugContains

func SlugContains(v string) predicate.Page

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

func SlugContainsFold

func SlugContainsFold(v string) predicate.Page

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

func SlugEQ

func SlugEQ(v string) predicate.Page

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

func SlugEqualFold

func SlugEqualFold(v string) predicate.Page

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

func SlugGT

func SlugGT(v string) predicate.Page

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

func SlugGTE

func SlugGTE(v string) predicate.Page

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

func SlugHasPrefix

func SlugHasPrefix(v string) predicate.Page

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

func SlugHasSuffix

func SlugHasSuffix(v string) predicate.Page

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

func SlugIn

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

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

func SlugLT

func SlugLT(v string) predicate.Page

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

func SlugLTE

func SlugLTE(v string) predicate.Page

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

func SlugNEQ

func SlugNEQ(v string) predicate.Page

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

func SlugNotIn

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

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Page

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Page

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Page

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Page

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Page

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Page

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Page

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

func UpdatedAtNotIn

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

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).

Types

This section is empty.

Jump to

Keyboard shortcuts

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