blogpost

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the blogpost type in the database.
	Label = "blog_post"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldTitle holds the string denoting the title field in the database.
	FieldTitle = "title"
	// FieldBody holds the string denoting the body field in the database.
	FieldBody = "body"
	// FieldExternalID holds the string denoting the external_id field in the database.
	FieldExternalID = "external_id"
	// EdgeAuthor holds the string denoting the author edge name in mutations.
	EdgeAuthor = "author"
	// EdgeCategories holds the string denoting the categories edge name in mutations.
	EdgeCategories = "categories"
	// Table holds the table name of the blogpost in the database.
	Table = "blog_posts"
	// AuthorTable is the table that holds the author relation/edge.
	AuthorTable = "blog_posts"
	// AuthorInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	AuthorInverseTable = "users"
	// AuthorColumn is the table column denoting the author relation/edge.
	AuthorColumn = "blog_post_author"
	// CategoriesTable is the table that holds the categories relation/edge. The primary key declared below.
	CategoriesTable = "category_blog_posts"
	// CategoriesInverseTable is the table name for the Category entity.
	// It exists in this package in order to avoid circular dependency with the "category" package.
	CategoriesInverseTable = "categories"
)

Variables

View Source
var (
	// CategoriesPrimaryKey and CategoriesColumn2 are the table columns denoting the
	// primary key for the categories relation (M2M).
	CategoriesPrimaryKey = []string{"category_id", "blog_post_id"}
)

Columns holds all SQL columns for blogpost fields.

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

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

Functions

func And

func And(predicates ...predicate.BlogPost) predicate.BlogPost

And groups predicates with the AND operator between them.

func Body

func Body(v string) predicate.BlogPost

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

func BodyContains

func BodyContains(v string) predicate.BlogPost

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

func BodyContainsFold

func BodyContainsFold(v string) predicate.BlogPost

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

func BodyEQ

func BodyEQ(v string) predicate.BlogPost

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

func BodyEqualFold

func BodyEqualFold(v string) predicate.BlogPost

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

func BodyGT

func BodyGT(v string) predicate.BlogPost

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

func BodyGTE

func BodyGTE(v string) predicate.BlogPost

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

func BodyHasPrefix

func BodyHasPrefix(v string) predicate.BlogPost

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

func BodyHasSuffix

func BodyHasSuffix(v string) predicate.BlogPost

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

func BodyIn

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

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

func BodyLT

func BodyLT(v string) predicate.BlogPost

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

func BodyLTE

func BodyLTE(v string) predicate.BlogPost

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

func BodyNEQ

func BodyNEQ(v string) predicate.BlogPost

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

func BodyNotIn

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

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

func ExternalID

func ExternalID(v int) predicate.BlogPost

ExternalID applies equality check predicate on the "external_id" field. It's identical to ExternalIDEQ.

func ExternalIDEQ

func ExternalIDEQ(v int) predicate.BlogPost

ExternalIDEQ applies the EQ predicate on the "external_id" field.

func ExternalIDGT

func ExternalIDGT(v int) predicate.BlogPost

ExternalIDGT applies the GT predicate on the "external_id" field.

func ExternalIDGTE

func ExternalIDGTE(v int) predicate.BlogPost

ExternalIDGTE applies the GTE predicate on the "external_id" field.

func ExternalIDIn

func ExternalIDIn(vs ...int) predicate.BlogPost

ExternalIDIn applies the In predicate on the "external_id" field.

func ExternalIDLT

func ExternalIDLT(v int) predicate.BlogPost

ExternalIDLT applies the LT predicate on the "external_id" field.

func ExternalIDLTE

func ExternalIDLTE(v int) predicate.BlogPost

ExternalIDLTE applies the LTE predicate on the "external_id" field.

func ExternalIDNEQ

func ExternalIDNEQ(v int) predicate.BlogPost

ExternalIDNEQ applies the NEQ predicate on the "external_id" field.

func ExternalIDNotIn

func ExternalIDNotIn(vs ...int) predicate.BlogPost

ExternalIDNotIn applies the NotIn predicate on the "external_id" field.

func HasAuthor

func HasAuthor() predicate.BlogPost

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

func HasAuthorWith

func HasAuthorWith(preds ...predicate.User) predicate.BlogPost

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

func HasCategories

func HasCategories() predicate.BlogPost

HasCategories applies the HasEdge predicate on the "categories" edge.

func HasCategoriesWith

func HasCategoriesWith(preds ...predicate.Category) predicate.BlogPost

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

func ID

func ID(id int) predicate.BlogPost

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.BlogPost

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.BlogPost

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.BlogPost

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.BlogPost

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.BlogPost

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.BlogPost

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func Title

func Title(v string) predicate.BlogPost

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

func TitleContains

func TitleContains(v string) predicate.BlogPost

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

func TitleContainsFold

func TitleContainsFold(v string) predicate.BlogPost

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

func TitleEQ

func TitleEQ(v string) predicate.BlogPost

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

func TitleEqualFold

func TitleEqualFold(v string) predicate.BlogPost

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

func TitleGT

func TitleGT(v string) predicate.BlogPost

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

func TitleGTE

func TitleGTE(v string) predicate.BlogPost

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

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.BlogPost

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

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.BlogPost

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

func TitleIn

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

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

func TitleLT

func TitleLT(v string) predicate.BlogPost

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

func TitleLTE

func TitleLTE(v string) predicate.BlogPost

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

func TitleNEQ

func TitleNEQ(v string) predicate.BlogPost

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

func TitleNotIn

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

TitleNotIn applies the NotIn predicate on the "title" 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