article

package
v0.0.0-...-5d3e565 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the article type in the database.
	Label = "article"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldThumbnailImgURL holds the string denoting the thumbnail_img_url field in the database.
	FieldThumbnailImgURL = "thumbnail_img_url"
	// FieldTitle holds the string denoting the title field in the database.
	FieldTitle = "title"
	// FieldContent holds the string denoting the content field in the database.
	FieldContent = "content"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeTags holds the string denoting the tags edge name in mutations.
	EdgeTags = "tags"
	// Table holds the table name of the article in the database.
	Table = "articles"
	// TagsTable is the table that holds the tags relation/edge.
	TagsTable = "tags"
	// 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"
	// TagsColumn is the table column denoting the tags relation/edge.
	TagsColumn = "article_tags"
)

Variables

View Source
var (
	// DefaultThumbnailImgURL holds the default value on creation for the "thumbnail_img_url" field.
	DefaultThumbnailImgURL string
	// TitleValidator is a validator for the "title" field. It is called by the builders before save.
	TitleValidator func(string) error
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt time.Time
)

Columns holds all SQL columns for article fields.

Functions

func And

func And(predicates ...predicate.Article) predicate.Article

And groups predicates with the AND operator between them.

func Content

func Content(v string) predicate.Article

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

func ContentContains

func ContentContains(v string) predicate.Article

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

func ContentContainsFold

func ContentContainsFold(v string) predicate.Article

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

func ContentEQ

func ContentEQ(v string) predicate.Article

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

func ContentEqualFold

func ContentEqualFold(v string) predicate.Article

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

func ContentGT

func ContentGT(v string) predicate.Article

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

func ContentGTE

func ContentGTE(v string) predicate.Article

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

func ContentHasPrefix

func ContentHasPrefix(v string) predicate.Article

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

func ContentHasSuffix

func ContentHasSuffix(v string) predicate.Article

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

func ContentIn

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

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

func ContentLT

func ContentLT(v string) predicate.Article

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

func ContentLTE

func ContentLTE(v string) predicate.Article

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

func ContentNEQ

func ContentNEQ(v string) predicate.Article

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

func ContentNotIn

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

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

func CreatedAt

func CreatedAt(v time.Time) predicate.Article

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Article

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Article

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Article

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Article

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Article

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Article

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

func CreatedAtNotIn

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

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

func HasTags

func HasTags() predicate.Article

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

func HasTagsWith

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

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

func ID

func ID(id int) predicate.Article

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Article

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Article

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Article

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Article

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Article

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Article

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func ThumbnailImgURL

func ThumbnailImgURL(v string) predicate.Article

ThumbnailImgURL applies equality check predicate on the "thumbnail_img_url" field. It's identical to ThumbnailImgURLEQ.

func ThumbnailImgURLContains

func ThumbnailImgURLContains(v string) predicate.Article

ThumbnailImgURLContains applies the Contains predicate on the "thumbnail_img_url" field.

func ThumbnailImgURLContainsFold

func ThumbnailImgURLContainsFold(v string) predicate.Article

ThumbnailImgURLContainsFold applies the ContainsFold predicate on the "thumbnail_img_url" field.

func ThumbnailImgURLEQ

func ThumbnailImgURLEQ(v string) predicate.Article

ThumbnailImgURLEQ applies the EQ predicate on the "thumbnail_img_url" field.

func ThumbnailImgURLEqualFold

func ThumbnailImgURLEqualFold(v string) predicate.Article

ThumbnailImgURLEqualFold applies the EqualFold predicate on the "thumbnail_img_url" field.

func ThumbnailImgURLGT

func ThumbnailImgURLGT(v string) predicate.Article

ThumbnailImgURLGT applies the GT predicate on the "thumbnail_img_url" field.

func ThumbnailImgURLGTE

func ThumbnailImgURLGTE(v string) predicate.Article

ThumbnailImgURLGTE applies the GTE predicate on the "thumbnail_img_url" field.

func ThumbnailImgURLHasPrefix

func ThumbnailImgURLHasPrefix(v string) predicate.Article

ThumbnailImgURLHasPrefix applies the HasPrefix predicate on the "thumbnail_img_url" field.

func ThumbnailImgURLHasSuffix

func ThumbnailImgURLHasSuffix(v string) predicate.Article

ThumbnailImgURLHasSuffix applies the HasSuffix predicate on the "thumbnail_img_url" field.

func ThumbnailImgURLIn

func ThumbnailImgURLIn(vs ...string) predicate.Article

ThumbnailImgURLIn applies the In predicate on the "thumbnail_img_url" field.

func ThumbnailImgURLLT

func ThumbnailImgURLLT(v string) predicate.Article

ThumbnailImgURLLT applies the LT predicate on the "thumbnail_img_url" field.

func ThumbnailImgURLLTE

func ThumbnailImgURLLTE(v string) predicate.Article

ThumbnailImgURLLTE applies the LTE predicate on the "thumbnail_img_url" field.

func ThumbnailImgURLNEQ

func ThumbnailImgURLNEQ(v string) predicate.Article

ThumbnailImgURLNEQ applies the NEQ predicate on the "thumbnail_img_url" field.

func ThumbnailImgURLNotIn

func ThumbnailImgURLNotIn(vs ...string) predicate.Article

ThumbnailImgURLNotIn applies the NotIn predicate on the "thumbnail_img_url" field.

func Title

func Title(v string) predicate.Article

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

func TitleContains

func TitleContains(v string) predicate.Article

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

func TitleContainsFold

func TitleContainsFold(v string) predicate.Article

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

func TitleEQ

func TitleEQ(v string) predicate.Article

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

func TitleEqualFold

func TitleEqualFold(v string) predicate.Article

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

func TitleGT

func TitleGT(v string) predicate.Article

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

func TitleGTE

func TitleGTE(v string) predicate.Article

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

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Article

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

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Article

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

func TitleIn

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

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

func TitleLT

func TitleLT(v string) predicate.Article

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

func TitleLTE

func TitleLTE(v string) predicate.Article

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

func TitleNEQ

func TitleNEQ(v string) predicate.Article

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

func TitleNotIn

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

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