post

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 post type in the database.
	Label = "post"
	// 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"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// 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"
	// FieldViewCount holds the string denoting the view_count field in the database.
	FieldViewCount = "view_count"
	// FieldCommentCount holds the string denoting the comment_count field in the database.
	FieldCommentCount = "comment_count"
	// FieldRatingCount holds the string denoting the rating_count field in the database.
	FieldRatingCount = "rating_count"
	// FieldRatingTotal holds the string denoting the rating_total field in the database.
	FieldRatingTotal = "rating_total"
	// FieldDraft holds the string denoting the draft field in the database.
	FieldDraft = "draft"
	// FieldApproved holds the string denoting the approved field in the database.
	FieldApproved = "approved"
	// FieldFeaturedImageID holds the string denoting the featured_image_id field in the database.
	FieldFeaturedImageID = "featured_image_id"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeTopics holds the string denoting the topics edge name in mutations.
	EdgeTopics = "topics"
	// EdgeFeaturedImage holds the string denoting the featured_image edge name in mutations.
	EdgeFeaturedImage = "featured_image"
	// EdgeComments holds the string denoting the comments edge name in mutations.
	EdgeComments = "comments"
	// Table holds the table name of the post in the database.
	Table = "posts"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "posts"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_id"
	// TopicsTable is the table that holds the topics relation/edge. The primary key declared below.
	TopicsTable = "topic_posts"
	// TopicsInverseTable is the table name for the Topic entity.
	// It exists in this package in order to avoid circular dependency with the "topic" package.
	TopicsInverseTable = "topics"
	// FeaturedImageTable is the table that holds the featured_image relation/edge.
	FeaturedImageTable = "posts"
	// 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"
	// CommentsTable is the table that holds the comments relation/edge.
	CommentsTable = "comments"
	// CommentsInverseTable is the table name for the Comment entity.
	// It exists in this package in order to avoid circular dependency with the "comment" package.
	CommentsInverseTable = "comments"
	// CommentsColumn is the table column denoting the comments relation/edge.
	CommentsColumn = "post_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
	// DefaultViewCount holds the default value on creation for the "view_count" field.
	DefaultViewCount int64
	// DefaultCommentCount holds the default value on creation for the "comment_count" field.
	DefaultCommentCount int64
	// DefaultRatingCount holds the default value on creation for the "rating_count" field.
	DefaultRatingCount int64
	// DefaultRatingTotal holds the default value on creation for the "rating_total" field.
	DefaultRatingTotal int64
	// DefaultDraft holds the default value on creation for the "draft" field.
	DefaultDraft bool
	// DefaultApproved holds the default value on creation for the "approved" field.
	DefaultApproved bool
)

Columns holds all SQL columns for post fields.

View Source
var (
	// TopicsPrimaryKey and TopicsColumn2 are the table columns denoting the
	// primary key for the topics relation (M2M).
	TopicsPrimaryKey = []string{"topic_id", "post_id"}
)

Functions

func And

func And(predicates ...predicate.Post) predicate.Post

And groups predicates with the AND operator between them.

func Approved

func Approved(v bool) predicate.Post

Approved applies equality check predicate on the "approved" field. It's identical to ApprovedEQ.

func ApprovedEQ

func ApprovedEQ(v bool) predicate.Post

ApprovedEQ applies the EQ predicate on the "approved" field.

func ApprovedIsNil

func ApprovedIsNil() predicate.Post

ApprovedIsNil applies the IsNil predicate on the "approved" field.

func ApprovedNEQ

func ApprovedNEQ(v bool) predicate.Post

ApprovedNEQ applies the NEQ predicate on the "approved" field.

func ApprovedNotNil

func ApprovedNotNil() predicate.Post

ApprovedNotNil applies the NotNil predicate on the "approved" field.

func CommentCount

func CommentCount(v int64) predicate.Post

CommentCount applies equality check predicate on the "comment_count" field. It's identical to CommentCountEQ.

func CommentCountEQ

func CommentCountEQ(v int64) predicate.Post

CommentCountEQ applies the EQ predicate on the "comment_count" field.

func CommentCountGT

func CommentCountGT(v int64) predicate.Post

CommentCountGT applies the GT predicate on the "comment_count" field.

func CommentCountGTE

func CommentCountGTE(v int64) predicate.Post

CommentCountGTE applies the GTE predicate on the "comment_count" field.

func CommentCountIn

func CommentCountIn(vs ...int64) predicate.Post

CommentCountIn applies the In predicate on the "comment_count" field.

func CommentCountLT

func CommentCountLT(v int64) predicate.Post

CommentCountLT applies the LT predicate on the "comment_count" field.

func CommentCountLTE

func CommentCountLTE(v int64) predicate.Post

CommentCountLTE applies the LTE predicate on the "comment_count" field.

func CommentCountNEQ

func CommentCountNEQ(v int64) predicate.Post

CommentCountNEQ applies the NEQ predicate on the "comment_count" field.

func CommentCountNotIn

func CommentCountNotIn(vs ...int64) predicate.Post

CommentCountNotIn applies the NotIn predicate on the "comment_count" field.

func Content

func Content(v string) predicate.Post

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

func ContentContains

func ContentContains(v string) predicate.Post

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

func ContentContainsFold

func ContentContainsFold(v string) predicate.Post

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

func ContentEQ

func ContentEQ(v string) predicate.Post

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

func ContentEqualFold

func ContentEqualFold(v string) predicate.Post

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

func ContentGT

func ContentGT(v string) predicate.Post

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

func ContentGTE

func ContentGTE(v string) predicate.Post

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

func ContentHTML

func ContentHTML(v string) predicate.Post

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

func ContentHTMLContains

func ContentHTMLContains(v string) predicate.Post

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

func ContentHTMLContainsFold

func ContentHTMLContainsFold(v string) predicate.Post

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

func ContentHTMLEQ

func ContentHTMLEQ(v string) predicate.Post

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

func ContentHTMLEqualFold

func ContentHTMLEqualFold(v string) predicate.Post

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

func ContentHTMLGT

func ContentHTMLGT(v string) predicate.Post

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

func ContentHTMLGTE

func ContentHTMLGTE(v string) predicate.Post

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

func ContentHTMLHasPrefix

func ContentHTMLHasPrefix(v string) predicate.Post

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

func ContentHTMLHasSuffix

func ContentHTMLHasSuffix(v string) predicate.Post

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

func ContentHTMLIn

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

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

func ContentHTMLLT

func ContentHTMLLT(v string) predicate.Post

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

func ContentHTMLLTE

func ContentHTMLLTE(v string) predicate.Post

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

func ContentHTMLNEQ

func ContentHTMLNEQ(v string) predicate.Post

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

func ContentHTMLNotIn

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

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

func ContentHasPrefix

func ContentHasPrefix(v string) predicate.Post

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

func ContentHasSuffix

func ContentHasSuffix(v string) predicate.Post

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

func ContentIn

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

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

func ContentLT

func ContentLT(v string) predicate.Post

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

func ContentLTE

func ContentLTE(v string) predicate.Post

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

func ContentNEQ

func ContentNEQ(v string) predicate.Post

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

func ContentNotIn

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

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

func CreatedAt

func CreatedAt(v time.Time) predicate.Post

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Post

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Post

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Post

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Post

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Post

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Post

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.Post

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Post

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Post

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Post

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Post

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Post

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Post

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Post

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Post

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

func Description

func Description(v string) predicate.Post

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Post

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Post

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Post

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Post

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Post

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Post

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Post

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Post

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Post

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.Post

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Post

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Post

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Post

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Post

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.Post

DescriptionNotNil applies the NotNil predicate on the "description" field.

func Draft

func Draft(v bool) predicate.Post

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

func DraftEQ

func DraftEQ(v bool) predicate.Post

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

func DraftIsNil

func DraftIsNil() predicate.Post

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

func DraftNEQ

func DraftNEQ(v bool) predicate.Post

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

func DraftNotNil

func DraftNotNil() predicate.Post

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

func FeaturedImageID

func FeaturedImageID(v int) predicate.Post

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

func FeaturedImageIDEQ

func FeaturedImageIDEQ(v int) predicate.Post

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

func FeaturedImageIDIn

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

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

func FeaturedImageIDIsNil

func FeaturedImageIDIsNil() predicate.Post

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

func FeaturedImageIDNEQ

func FeaturedImageIDNEQ(v int) predicate.Post

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

func FeaturedImageIDNotIn

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

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

func FeaturedImageIDNotNil

func FeaturedImageIDNotNil() predicate.Post

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

func HasComments

func HasComments() predicate.Post

HasComments applies the HasEdge predicate on the "comments" edge.

func HasCommentsWith

func HasCommentsWith(preds ...predicate.Comment) predicate.Post

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

func HasFeaturedImage

func HasFeaturedImage() predicate.Post

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

func HasFeaturedImageWith

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

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

func HasTopics

func HasTopics() predicate.Post

HasTopics applies the HasEdge predicate on the "topics" edge.

func HasTopicsWith

func HasTopicsWith(preds ...predicate.Topic) predicate.Post

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

func HasUser

func HasUser() predicate.Post

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.Post

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

func ID

func ID(id int) predicate.Post

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Post

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Post

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Post

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Post

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Post

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Post

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Post

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

func NameContains

func NameContains(v string) predicate.Post

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

func NameContainsFold

func NameContainsFold(v string) predicate.Post

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

func NameEQ

func NameEQ(v string) predicate.Post

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

func NameEqualFold

func NameEqualFold(v string) predicate.Post

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

func NameGT

func NameGT(v string) predicate.Post

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

func NameGTE

func NameGTE(v string) predicate.Post

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Post

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Post

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Post

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

func NameLTE

func NameLTE(v string) predicate.Post

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

func NameNEQ

func NameNEQ(v string) predicate.Post

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

func NameNotIn

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

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

Or groups predicates with the OR operator between them.

func RatingCount

func RatingCount(v int64) predicate.Post

RatingCount applies equality check predicate on the "rating_count" field. It's identical to RatingCountEQ.

func RatingCountEQ

func RatingCountEQ(v int64) predicate.Post

RatingCountEQ applies the EQ predicate on the "rating_count" field.

func RatingCountGT

func RatingCountGT(v int64) predicate.Post

RatingCountGT applies the GT predicate on the "rating_count" field.

func RatingCountGTE

func RatingCountGTE(v int64) predicate.Post

RatingCountGTE applies the GTE predicate on the "rating_count" field.

func RatingCountIn

func RatingCountIn(vs ...int64) predicate.Post

RatingCountIn applies the In predicate on the "rating_count" field.

func RatingCountIsNil

func RatingCountIsNil() predicate.Post

RatingCountIsNil applies the IsNil predicate on the "rating_count" field.

func RatingCountLT

func RatingCountLT(v int64) predicate.Post

RatingCountLT applies the LT predicate on the "rating_count" field.

func RatingCountLTE

func RatingCountLTE(v int64) predicate.Post

RatingCountLTE applies the LTE predicate on the "rating_count" field.

func RatingCountNEQ

func RatingCountNEQ(v int64) predicate.Post

RatingCountNEQ applies the NEQ predicate on the "rating_count" field.

func RatingCountNotIn

func RatingCountNotIn(vs ...int64) predicate.Post

RatingCountNotIn applies the NotIn predicate on the "rating_count" field.

func RatingCountNotNil

func RatingCountNotNil() predicate.Post

RatingCountNotNil applies the NotNil predicate on the "rating_count" field.

func RatingTotal

func RatingTotal(v int64) predicate.Post

RatingTotal applies equality check predicate on the "rating_total" field. It's identical to RatingTotalEQ.

func RatingTotalEQ

func RatingTotalEQ(v int64) predicate.Post

RatingTotalEQ applies the EQ predicate on the "rating_total" field.

func RatingTotalGT

func RatingTotalGT(v int64) predicate.Post

RatingTotalGT applies the GT predicate on the "rating_total" field.

func RatingTotalGTE

func RatingTotalGTE(v int64) predicate.Post

RatingTotalGTE applies the GTE predicate on the "rating_total" field.

func RatingTotalIn

func RatingTotalIn(vs ...int64) predicate.Post

RatingTotalIn applies the In predicate on the "rating_total" field.

func RatingTotalIsNil

func RatingTotalIsNil() predicate.Post

RatingTotalIsNil applies the IsNil predicate on the "rating_total" field.

func RatingTotalLT

func RatingTotalLT(v int64) predicate.Post

RatingTotalLT applies the LT predicate on the "rating_total" field.

func RatingTotalLTE

func RatingTotalLTE(v int64) predicate.Post

RatingTotalLTE applies the LTE predicate on the "rating_total" field.

func RatingTotalNEQ

func RatingTotalNEQ(v int64) predicate.Post

RatingTotalNEQ applies the NEQ predicate on the "rating_total" field.

func RatingTotalNotIn

func RatingTotalNotIn(vs ...int64) predicate.Post

RatingTotalNotIn applies the NotIn predicate on the "rating_total" field.

func RatingTotalNotNil

func RatingTotalNotNil() predicate.Post

RatingTotalNotNil applies the NotNil predicate on the "rating_total" field.

func Slug

func Slug(v string) predicate.Post

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

func SlugContains

func SlugContains(v string) predicate.Post

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

func SlugContainsFold

func SlugContainsFold(v string) predicate.Post

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

func SlugEQ

func SlugEQ(v string) predicate.Post

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

func SlugEqualFold

func SlugEqualFold(v string) predicate.Post

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

func SlugGT

func SlugGT(v string) predicate.Post

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

func SlugGTE

func SlugGTE(v string) predicate.Post

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

func SlugHasPrefix

func SlugHasPrefix(v string) predicate.Post

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

func SlugHasSuffix

func SlugHasSuffix(v string) predicate.Post

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

func SlugIn

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

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

func SlugLT

func SlugLT(v string) predicate.Post

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

func SlugLTE

func SlugLTE(v string) predicate.Post

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

func SlugNEQ

func SlugNEQ(v string) predicate.Post

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

func SlugNotIn

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

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Post

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Post

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Post

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Post

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Post

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Post

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Post

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

func UpdatedAtNotIn

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

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

func UserID

func UserID(v int) predicate.Post

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v int) predicate.Post

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...int) predicate.Post

UserIDIn applies the In predicate on the "user_id" field.

func UserIDIsNil

func UserIDIsNil() predicate.Post

UserIDIsNil applies the IsNil predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v int) predicate.Post

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...int) predicate.Post

UserIDNotIn applies the NotIn predicate on the "user_id" field.

func UserIDNotNil

func UserIDNotNil() predicate.Post

UserIDNotNil applies the NotNil predicate on the "user_id" field.

func ValidColumn

func ValidColumn(column string) bool

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

func ViewCount

func ViewCount(v int64) predicate.Post

ViewCount applies equality check predicate on the "view_count" field. It's identical to ViewCountEQ.

func ViewCountEQ

func ViewCountEQ(v int64) predicate.Post

ViewCountEQ applies the EQ predicate on the "view_count" field.

func ViewCountGT

func ViewCountGT(v int64) predicate.Post

ViewCountGT applies the GT predicate on the "view_count" field.

func ViewCountGTE

func ViewCountGTE(v int64) predicate.Post

ViewCountGTE applies the GTE predicate on the "view_count" field.

func ViewCountIn

func ViewCountIn(vs ...int64) predicate.Post

ViewCountIn applies the In predicate on the "view_count" field.

func ViewCountLT

func ViewCountLT(v int64) predicate.Post

ViewCountLT applies the LT predicate on the "view_count" field.

func ViewCountLTE

func ViewCountLTE(v int64) predicate.Post

ViewCountLTE applies the LTE predicate on the "view_count" field.

func ViewCountNEQ

func ViewCountNEQ(v int64) predicate.Post

ViewCountNEQ applies the NEQ predicate on the "view_count" field.

func ViewCountNotIn

func ViewCountNotIn(vs ...int64) predicate.Post

ViewCountNotIn applies the NotIn predicate on the "view_count" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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