post

package
v0.0.0-...-8495beb Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MPL-2.0 Imports: 5 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"
	// FieldFirst holds the string denoting the first field in the database.
	FieldFirst = "first"
	// 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"
	// FieldPinned holds the string denoting the pinned field in the database.
	FieldPinned = "pinned"
	// FieldRootPostID holds the string denoting the root_post_id field in the database.
	FieldRootPostID = "root_post_id"
	// FieldReplyToPostID holds the string denoting the reply_to_post_id field in the database.
	FieldReplyToPostID = "reply_to_post_id"
	// FieldBody holds the string denoting the body field in the database.
	FieldBody = "body"
	// FieldShort holds the string denoting the short field in the database.
	FieldShort = "short"
	// FieldCategoryID holds the string denoting the category_id field in the database.
	FieldCategoryID = "category_id"
	// EdgeAuthor holds the string denoting the author edge name in mutations.
	EdgeAuthor = "author"
	// EdgeCategory holds the string denoting the category edge name in mutations.
	EdgeCategory = "category"
	// EdgeTags holds the string denoting the tags edge name in mutations.
	EdgeTags = "tags"
	// EdgeRoot holds the string denoting the root edge name in mutations.
	EdgeRoot = "root"
	// EdgePosts holds the string denoting the posts edge name in mutations.
	EdgePosts = "posts"
	// EdgeReplyTo holds the string denoting the replyto edge name in mutations.
	EdgeReplyTo = "replyTo"
	// EdgeReplies holds the string denoting the replies edge name in mutations.
	EdgeReplies = "replies"
	// EdgeReacts holds the string denoting the reacts edge name in mutations.
	EdgeReacts = "reacts"
	// Table holds the table name of the post in the database.
	Table = "posts"
	// AuthorTable is the table that holds the author relation/edge.
	AuthorTable = "posts"
	// AuthorInverseTable is the table name for the Account entity.
	// It exists in this package in order to avoid circular dependency with the "account" package.
	AuthorInverseTable = "accounts"
	// AuthorColumn is the table column denoting the author relation/edge.
	AuthorColumn = "account_posts"
	// CategoryTable is the table that holds the category relation/edge.
	CategoryTable = "posts"
	// CategoryInverseTable is the table name for the Category entity.
	// It exists in this package in order to avoid circular dependency with the "category" package.
	CategoryInverseTable = "categories"
	// CategoryColumn is the table column denoting the category relation/edge.
	CategoryColumn = "category_id"
	// TagsTable is the table that holds the tags relation/edge. The primary key declared below.
	TagsTable = "tag_posts"
	// TagsInverseTable is the table name for the Tag entity.
	// It exists in this package in order to avoid circular dependency with the "tag" package.
	TagsInverseTable = "tags"
	// RootTable is the table that holds the root relation/edge.
	RootTable = "posts"
	// RootColumn is the table column denoting the root relation/edge.
	RootColumn = "root_post_id"
	// PostsTable is the table that holds the posts relation/edge.
	PostsTable = "posts"
	// PostsColumn is the table column denoting the posts relation/edge.
	PostsColumn = "root_post_id"
	// ReplyToTable is the table that holds the replyTo relation/edge.
	ReplyToTable = "posts"
	// ReplyToColumn is the table column denoting the replyTo relation/edge.
	ReplyToColumn = "reply_to_post_id"
	// RepliesTable is the table that holds the replies relation/edge.
	RepliesTable = "posts"
	// RepliesColumn is the table column denoting the replies relation/edge.
	RepliesColumn = "reply_to_post_id"
	// ReactsTable is the table that holds the reacts relation/edge.
	ReactsTable = "reacts"
	// ReactsInverseTable is the table name for the React entity.
	// It exists in this package in order to avoid circular dependency with the "react" package.
	ReactsInverseTable = "reacts"
	// ReactsColumn is the table column denoting the reacts relation/edge.
	ReactsColumn = "post_reacts"
)

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
	// DefaultPinned holds the default value on creation for the "pinned" field.
	DefaultPinned bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() xid.ID
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(string) error
)

Columns holds all SQL columns for post fields.

View Source
var ForeignKeys = []string{
	"account_posts",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "posts" table and are not defined as standalone fields in the schema.

View Source
var (
	// TagsPrimaryKey and TagsColumn2 are the table columns denoting the
	// primary key for the tags relation (M2M).
	TagsPrimaryKey = []string{"tag_id", "post_id"}
)

Functions

func And

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

And groups predicates with the AND operator between them.

func Body

func Body(v string) predicate.Post

Body applies equality check predicate on the "body" field. It's identical to BodyEQ.

func BodyContains

func BodyContains(v string) predicate.Post

BodyContains applies the Contains predicate on the "body" field.

func BodyContainsFold

func BodyContainsFold(v string) predicate.Post

BodyContainsFold applies the ContainsFold predicate on the "body" field.

func BodyEQ

func BodyEQ(v string) predicate.Post

BodyEQ applies the EQ predicate on the "body" field.

func BodyEqualFold

func BodyEqualFold(v string) predicate.Post

BodyEqualFold applies the EqualFold predicate on the "body" field.

func BodyGT

func BodyGT(v string) predicate.Post

BodyGT applies the GT predicate on the "body" field.

func BodyGTE

func BodyGTE(v string) predicate.Post

BodyGTE applies the GTE predicate on the "body" field.

func BodyHasPrefix

func BodyHasPrefix(v string) predicate.Post

BodyHasPrefix applies the HasPrefix predicate on the "body" field.

func BodyHasSuffix

func BodyHasSuffix(v string) predicate.Post

BodyHasSuffix applies the HasSuffix predicate on the "body" field.

func BodyIn

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

BodyIn applies the In predicate on the "body" field.

func BodyLT

func BodyLT(v string) predicate.Post

BodyLT applies the LT predicate on the "body" field.

func BodyLTE

func BodyLTE(v string) predicate.Post

BodyLTE applies the LTE predicate on the "body" field.

func BodyNEQ

func BodyNEQ(v string) predicate.Post

BodyNEQ applies the NEQ predicate on the "body" field.

func BodyNotIn

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

BodyNotIn applies the NotIn predicate on the "body" field.

func CategoryID

func CategoryID(v xid.ID) predicate.Post

CategoryID applies equality check predicate on the "category_id" field. It's identical to CategoryIDEQ.

func CategoryIDContains

func CategoryIDContains(v xid.ID) predicate.Post

CategoryIDContains applies the Contains predicate on the "category_id" field.

func CategoryIDContainsFold

func CategoryIDContainsFold(v xid.ID) predicate.Post

CategoryIDContainsFold applies the ContainsFold predicate on the "category_id" field.

func CategoryIDEQ

func CategoryIDEQ(v xid.ID) predicate.Post

CategoryIDEQ applies the EQ predicate on the "category_id" field.

func CategoryIDEqualFold

func CategoryIDEqualFold(v xid.ID) predicate.Post

CategoryIDEqualFold applies the EqualFold predicate on the "category_id" field.

func CategoryIDGT

func CategoryIDGT(v xid.ID) predicate.Post

CategoryIDGT applies the GT predicate on the "category_id" field.

func CategoryIDGTE

func CategoryIDGTE(v xid.ID) predicate.Post

CategoryIDGTE applies the GTE predicate on the "category_id" field.

func CategoryIDHasPrefix

func CategoryIDHasPrefix(v xid.ID) predicate.Post

CategoryIDHasPrefix applies the HasPrefix predicate on the "category_id" field.

func CategoryIDHasSuffix

func CategoryIDHasSuffix(v xid.ID) predicate.Post

CategoryIDHasSuffix applies the HasSuffix predicate on the "category_id" field.

func CategoryIDIn

func CategoryIDIn(vs ...xid.ID) predicate.Post

CategoryIDIn applies the In predicate on the "category_id" field.

func CategoryIDIsNil

func CategoryIDIsNil() predicate.Post

CategoryIDIsNil applies the IsNil predicate on the "category_id" field.

func CategoryIDLT

func CategoryIDLT(v xid.ID) predicate.Post

CategoryIDLT applies the LT predicate on the "category_id" field.

func CategoryIDLTE

func CategoryIDLTE(v xid.ID) predicate.Post

CategoryIDLTE applies the LTE predicate on the "category_id" field.

func CategoryIDNEQ

func CategoryIDNEQ(v xid.ID) predicate.Post

CategoryIDNEQ applies the NEQ predicate on the "category_id" field.

func CategoryIDNotIn

func CategoryIDNotIn(vs ...xid.ID) predicate.Post

CategoryIDNotIn applies the NotIn predicate on the "category_id" field.

func CategoryIDNotNil

func CategoryIDNotNil() predicate.Post

CategoryIDNotNil applies the NotNil predicate on the "category_id" 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 First

func First(v bool) predicate.Post

First applies equality check predicate on the "first" field. It's identical to FirstEQ.

func FirstEQ

func FirstEQ(v bool) predicate.Post

FirstEQ applies the EQ predicate on the "first" field.

func FirstNEQ

func FirstNEQ(v bool) predicate.Post

FirstNEQ applies the NEQ predicate on the "first" field.

func HasAuthor

func HasAuthor() predicate.Post

HasAuthor applies the HasEdge predicate on the "author" edge.

func HasAuthorWith

func HasAuthorWith(preds ...predicate.Account) predicate.Post

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

func HasCategory

func HasCategory() predicate.Post

HasCategory applies the HasEdge predicate on the "category" edge.

func HasCategoryWith

func HasCategoryWith(preds ...predicate.Category) predicate.Post

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

func HasPosts

func HasPosts() predicate.Post

HasPosts applies the HasEdge predicate on the "posts" edge.

func HasPostsWith

func HasPostsWith(preds ...predicate.Post) predicate.Post

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

func HasReacts

func HasReacts() predicate.Post

HasReacts applies the HasEdge predicate on the "reacts" edge.

func HasReactsWith

func HasReactsWith(preds ...predicate.React) predicate.Post

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

func HasReplies

func HasReplies() predicate.Post

HasReplies applies the HasEdge predicate on the "replies" edge.

func HasRepliesWith

func HasRepliesWith(preds ...predicate.Post) predicate.Post

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

func HasReplyTo

func HasReplyTo() predicate.Post

HasReplyTo applies the HasEdge predicate on the "replyTo" edge.

func HasReplyToWith

func HasReplyToWith(preds ...predicate.Post) predicate.Post

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

func HasRoot

func HasRoot() predicate.Post

HasRoot applies the HasEdge predicate on the "root" edge.

func HasRootWith

func HasRootWith(preds ...predicate.Post) predicate.Post

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

func HasTags

func HasTags() predicate.Post

HasTags applies the HasEdge predicate on the "tags" edge.

func HasTagsWith

func HasTagsWith(preds ...predicate.Tag) predicate.Post

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

func ID

func ID(id xid.ID) predicate.Post

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id xid.ID) predicate.Post

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id xid.ID) predicate.Post

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id xid.ID) predicate.Post

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...xid.ID) predicate.Post

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id xid.ID) predicate.Post

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id xid.ID) predicate.Post

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id xid.ID) predicate.Post

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...xid.ID) predicate.Post

IDNotIn applies the NotIn predicate on the ID 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 Pinned

func Pinned(v bool) predicate.Post

Pinned applies equality check predicate on the "pinned" field. It's identical to PinnedEQ.

func PinnedEQ

func PinnedEQ(v bool) predicate.Post

PinnedEQ applies the EQ predicate on the "pinned" field.

func PinnedNEQ

func PinnedNEQ(v bool) predicate.Post

PinnedNEQ applies the NEQ predicate on the "pinned" field.

func ReplyToPostID

func ReplyToPostID(v xid.ID) predicate.Post

ReplyToPostID applies equality check predicate on the "reply_to_post_id" field. It's identical to ReplyToPostIDEQ.

func ReplyToPostIDContains

func ReplyToPostIDContains(v xid.ID) predicate.Post

ReplyToPostIDContains applies the Contains predicate on the "reply_to_post_id" field.

func ReplyToPostIDContainsFold

func ReplyToPostIDContainsFold(v xid.ID) predicate.Post

ReplyToPostIDContainsFold applies the ContainsFold predicate on the "reply_to_post_id" field.

func ReplyToPostIDEQ

func ReplyToPostIDEQ(v xid.ID) predicate.Post

ReplyToPostIDEQ applies the EQ predicate on the "reply_to_post_id" field.

func ReplyToPostIDEqualFold

func ReplyToPostIDEqualFold(v xid.ID) predicate.Post

ReplyToPostIDEqualFold applies the EqualFold predicate on the "reply_to_post_id" field.

func ReplyToPostIDGT

func ReplyToPostIDGT(v xid.ID) predicate.Post

ReplyToPostIDGT applies the GT predicate on the "reply_to_post_id" field.

func ReplyToPostIDGTE

func ReplyToPostIDGTE(v xid.ID) predicate.Post

ReplyToPostIDGTE applies the GTE predicate on the "reply_to_post_id" field.

func ReplyToPostIDHasPrefix

func ReplyToPostIDHasPrefix(v xid.ID) predicate.Post

ReplyToPostIDHasPrefix applies the HasPrefix predicate on the "reply_to_post_id" field.

func ReplyToPostIDHasSuffix

func ReplyToPostIDHasSuffix(v xid.ID) predicate.Post

ReplyToPostIDHasSuffix applies the HasSuffix predicate on the "reply_to_post_id" field.

func ReplyToPostIDIn

func ReplyToPostIDIn(vs ...xid.ID) predicate.Post

ReplyToPostIDIn applies the In predicate on the "reply_to_post_id" field.

func ReplyToPostIDIsNil

func ReplyToPostIDIsNil() predicate.Post

ReplyToPostIDIsNil applies the IsNil predicate on the "reply_to_post_id" field.

func ReplyToPostIDLT

func ReplyToPostIDLT(v xid.ID) predicate.Post

ReplyToPostIDLT applies the LT predicate on the "reply_to_post_id" field.

func ReplyToPostIDLTE

func ReplyToPostIDLTE(v xid.ID) predicate.Post

ReplyToPostIDLTE applies the LTE predicate on the "reply_to_post_id" field.

func ReplyToPostIDNEQ

func ReplyToPostIDNEQ(v xid.ID) predicate.Post

ReplyToPostIDNEQ applies the NEQ predicate on the "reply_to_post_id" field.

func ReplyToPostIDNotIn

func ReplyToPostIDNotIn(vs ...xid.ID) predicate.Post

ReplyToPostIDNotIn applies the NotIn predicate on the "reply_to_post_id" field.

func ReplyToPostIDNotNil

func ReplyToPostIDNotNil() predicate.Post

ReplyToPostIDNotNil applies the NotNil predicate on the "reply_to_post_id" field.

func RootPostID

func RootPostID(v xid.ID) predicate.Post

RootPostID applies equality check predicate on the "root_post_id" field. It's identical to RootPostIDEQ.

func RootPostIDContains

func RootPostIDContains(v xid.ID) predicate.Post

RootPostIDContains applies the Contains predicate on the "root_post_id" field.

func RootPostIDContainsFold

func RootPostIDContainsFold(v xid.ID) predicate.Post

RootPostIDContainsFold applies the ContainsFold predicate on the "root_post_id" field.

func RootPostIDEQ

func RootPostIDEQ(v xid.ID) predicate.Post

RootPostIDEQ applies the EQ predicate on the "root_post_id" field.

func RootPostIDEqualFold

func RootPostIDEqualFold(v xid.ID) predicate.Post

RootPostIDEqualFold applies the EqualFold predicate on the "root_post_id" field.

func RootPostIDGT

func RootPostIDGT(v xid.ID) predicate.Post

RootPostIDGT applies the GT predicate on the "root_post_id" field.

func RootPostIDGTE

func RootPostIDGTE(v xid.ID) predicate.Post

RootPostIDGTE applies the GTE predicate on the "root_post_id" field.

func RootPostIDHasPrefix

func RootPostIDHasPrefix(v xid.ID) predicate.Post

RootPostIDHasPrefix applies the HasPrefix predicate on the "root_post_id" field.

func RootPostIDHasSuffix

func RootPostIDHasSuffix(v xid.ID) predicate.Post

RootPostIDHasSuffix applies the HasSuffix predicate on the "root_post_id" field.

func RootPostIDIn

func RootPostIDIn(vs ...xid.ID) predicate.Post

RootPostIDIn applies the In predicate on the "root_post_id" field.

func RootPostIDIsNil

func RootPostIDIsNil() predicate.Post

RootPostIDIsNil applies the IsNil predicate on the "root_post_id" field.

func RootPostIDLT

func RootPostIDLT(v xid.ID) predicate.Post

RootPostIDLT applies the LT predicate on the "root_post_id" field.

func RootPostIDLTE

func RootPostIDLTE(v xid.ID) predicate.Post

RootPostIDLTE applies the LTE predicate on the "root_post_id" field.

func RootPostIDNEQ

func RootPostIDNEQ(v xid.ID) predicate.Post

RootPostIDNEQ applies the NEQ predicate on the "root_post_id" field.

func RootPostIDNotIn

func RootPostIDNotIn(vs ...xid.ID) predicate.Post

RootPostIDNotIn applies the NotIn predicate on the "root_post_id" field.

func RootPostIDNotNil

func RootPostIDNotNil() predicate.Post

RootPostIDNotNil applies the NotNil predicate on the "root_post_id" field.

func Short

func Short(v string) predicate.Post

Short applies equality check predicate on the "short" field. It's identical to ShortEQ.

func ShortContains

func ShortContains(v string) predicate.Post

ShortContains applies the Contains predicate on the "short" field.

func ShortContainsFold

func ShortContainsFold(v string) predicate.Post

ShortContainsFold applies the ContainsFold predicate on the "short" field.

func ShortEQ

func ShortEQ(v string) predicate.Post

ShortEQ applies the EQ predicate on the "short" field.

func ShortEqualFold

func ShortEqualFold(v string) predicate.Post

ShortEqualFold applies the EqualFold predicate on the "short" field.

func ShortGT

func ShortGT(v string) predicate.Post

ShortGT applies the GT predicate on the "short" field.

func ShortGTE

func ShortGTE(v string) predicate.Post

ShortGTE applies the GTE predicate on the "short" field.

func ShortHasPrefix

func ShortHasPrefix(v string) predicate.Post

ShortHasPrefix applies the HasPrefix predicate on the "short" field.

func ShortHasSuffix

func ShortHasSuffix(v string) predicate.Post

ShortHasSuffix applies the HasSuffix predicate on the "short" field.

func ShortIn

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

ShortIn applies the In predicate on the "short" field.

func ShortLT

func ShortLT(v string) predicate.Post

ShortLT applies the LT predicate on the "short" field.

func ShortLTE

func ShortLTE(v string) predicate.Post

ShortLTE applies the LTE predicate on the "short" field.

func ShortNEQ

func ShortNEQ(v string) predicate.Post

ShortNEQ applies the NEQ predicate on the "short" field.

func ShortNotIn

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

ShortNotIn applies the NotIn predicate on the "short" 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 SlugIsNil

func SlugIsNil() predicate.Post

SlugIsNil applies the IsNil 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 SlugNotNil

func SlugNotNil() predicate.Post

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

func Title

func Title(v string) predicate.Post

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

func TitleContains

func TitleContains(v string) predicate.Post

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

func TitleContainsFold

func TitleContainsFold(v string) predicate.Post

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

func TitleEQ

func TitleEQ(v string) predicate.Post

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

func TitleEqualFold

func TitleEqualFold(v string) predicate.Post

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

func TitleGT

func TitleGT(v string) predicate.Post

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

func TitleGTE

func TitleGTE(v string) predicate.Post

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

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Post

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

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Post

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

func TitleIn

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

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

func TitleIsNil

func TitleIsNil() predicate.Post

TitleIsNil applies the IsNil predicate on the "title" field.

func TitleLT

func TitleLT(v string) predicate.Post

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

func TitleLTE

func TitleLTE(v string) predicate.Post

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

func TitleNEQ

func TitleNEQ(v string) predicate.Post

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

func TitleNotIn

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

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

func TitleNotNil

func TitleNotNil() predicate.Post

TitleNotNil applies the NotNil predicate on the "title" 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 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