Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Article) predicate.Article
- func CreatedAt(v time.Time) predicate.Article
- func CreatedAtEQ(v time.Time) predicate.Article
- func CreatedAtGT(v time.Time) predicate.Article
- func CreatedAtGTE(v time.Time) predicate.Article
- func CreatedAtIn(vs ...time.Time) predicate.Article
- func CreatedAtLT(v time.Time) predicate.Article
- func CreatedAtLTE(v time.Time) predicate.Article
- func CreatedAtNEQ(v time.Time) predicate.Article
- func CreatedAtNotIn(vs ...time.Time) predicate.Article
- func DeletedAt(v time.Time) predicate.Article
- func DeletedAtEQ(v time.Time) predicate.Article
- func DeletedAtGT(v time.Time) predicate.Article
- func DeletedAtGTE(v time.Time) predicate.Article
- func DeletedAtIn(vs ...time.Time) predicate.Article
- func DeletedAtIsNil() predicate.Article
- func DeletedAtLT(v time.Time) predicate.Article
- func DeletedAtLTE(v time.Time) predicate.Article
- func DeletedAtNEQ(v time.Time) predicate.Article
- func DeletedAtNotIn(vs ...time.Time) predicate.Article
- func DeletedAtNotNil() predicate.Article
- func Description(v string) predicate.Article
- func DescriptionContains(v string) predicate.Article
- func DescriptionContainsFold(v string) predicate.Article
- func DescriptionEQ(v string) predicate.Article
- func DescriptionEqualFold(v string) predicate.Article
- func DescriptionGT(v string) predicate.Article
- func DescriptionGTE(v string) predicate.Article
- func DescriptionHasPrefix(v string) predicate.Article
- func DescriptionHasSuffix(v string) predicate.Article
- func DescriptionIn(vs ...string) predicate.Article
- func DescriptionLT(v string) predicate.Article
- func DescriptionLTE(v string) predicate.Article
- func DescriptionNEQ(v string) predicate.Article
- func DescriptionNotIn(vs ...string) predicate.Article
- func HasReadArticles() predicate.Article
- func HasReadArticlesWith(preds ...predicate.ReadArticle) predicate.Article
- func HasTags() predicate.Article
- func HasTagsWith(preds ...predicate.ArticleTag) predicate.Article
- func ID(id uuid.UUID) predicate.Article
- func IDEQ(id uuid.UUID) predicate.Article
- func IDGT(id uuid.UUID) predicate.Article
- func IDGTE(id uuid.UUID) predicate.Article
- func IDIn(ids ...uuid.UUID) predicate.Article
- func IDLT(id uuid.UUID) predicate.Article
- func IDLTE(id uuid.UUID) predicate.Article
- func IDNEQ(id uuid.UUID) predicate.Article
- func IDNotIn(ids ...uuid.UUID) predicate.Article
- func Not(p predicate.Article) predicate.Article
- func Or(predicates ...predicate.Article) predicate.Article
- func Thumbnail(v string) predicate.Article
- func ThumbnailContains(v string) predicate.Article
- func ThumbnailContainsFold(v string) predicate.Article
- func ThumbnailEQ(v string) predicate.Article
- func ThumbnailEqualFold(v string) predicate.Article
- func ThumbnailGT(v string) predicate.Article
- func ThumbnailGTE(v string) predicate.Article
- func ThumbnailHasPrefix(v string) predicate.Article
- func ThumbnailHasSuffix(v string) predicate.Article
- func ThumbnailIn(vs ...string) predicate.Article
- func ThumbnailLT(v string) predicate.Article
- func ThumbnailLTE(v string) predicate.Article
- func ThumbnailNEQ(v string) predicate.Article
- func ThumbnailNotIn(vs ...string) predicate.Article
- func Title(v string) predicate.Article
- func TitleContains(v string) predicate.Article
- func TitleContainsFold(v string) predicate.Article
- func TitleEQ(v string) predicate.Article
- func TitleEqualFold(v string) predicate.Article
- func TitleGT(v string) predicate.Article
- func TitleGTE(v string) predicate.Article
- func TitleHasPrefix(v string) predicate.Article
- func TitleHasSuffix(v string) predicate.Article
- func TitleIn(vs ...string) predicate.Article
- func TitleLT(v string) predicate.Article
- func TitleLTE(v string) predicate.Article
- func TitleNEQ(v string) predicate.Article
- func TitleNotIn(vs ...string) predicate.Article
- func URL(v string) predicate.Article
- func URLContains(v string) predicate.Article
- func URLContainsFold(v string) predicate.Article
- func URLEQ(v string) predicate.Article
- func URLEqualFold(v string) predicate.Article
- func URLGT(v string) predicate.Article
- func URLGTE(v string) predicate.Article
- func URLHasPrefix(v string) predicate.Article
- func URLHasSuffix(v string) predicate.Article
- func URLIn(vs ...string) predicate.Article
- func URLLT(v string) predicate.Article
- func URLLTE(v string) predicate.Article
- func URLNEQ(v string) predicate.Article
- func URLNotIn(vs ...string) predicate.Article
- func UpdatedAt(v time.Time) predicate.Article
- func UpdatedAtEQ(v time.Time) predicate.Article
- func UpdatedAtGT(v time.Time) predicate.Article
- func UpdatedAtGTE(v time.Time) predicate.Article
- func UpdatedAtIn(vs ...time.Time) predicate.Article
- func UpdatedAtLT(v time.Time) predicate.Article
- func UpdatedAtLTE(v time.Time) predicate.Article
- func UpdatedAtNEQ(v time.Time) predicate.Article
- func UpdatedAtNotIn(vs ...time.Time) predicate.Article
- func ValidColumn(column string) bool
Constants ¶
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" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldURL holds the string denoting the url field in the database. FieldURL = "url" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldThumbnail holds the string denoting the thumbnail field in the database. FieldThumbnail = "thumbnail" // 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" // EdgeTags holds the string denoting the tags edge name in mutations. EdgeTags = "tags" // EdgeReadArticles holds the string denoting the read_articles edge name in mutations. EdgeReadArticles = "read_articles" // Table holds the table name of the article in the database. Table = "articles" // TagsTable is the table that holds the tags relation/edge. TagsTable = "article_tags" // TagsInverseTable is the table name for the ArticleTag entity. // It exists in this package in order to avoid circular dependency with the "articletag" package. TagsInverseTable = "article_tags" // TagsColumn is the table column denoting the tags relation/edge. TagsColumn = "article_id" // ReadArticlesTable is the table that holds the read_articles relation/edge. ReadArticlesTable = "read_articles" // ReadArticlesInverseTable is the table name for the ReadArticle entity. // It exists in this package in order to avoid circular dependency with the "readarticle" package. ReadArticlesInverseTable = "read_articles" // ReadArticlesColumn is the table column denoting the read_articles relation/edge. ReadArticlesColumn = "article_id" )
Variables ¶
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 // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldTitle, FieldURL, FieldDescription, FieldThumbnail, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, }
Columns holds all SQL columns for article fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func HasReadArticles ¶
HasReadArticles applies the HasEdge predicate on the "read_articles" edge.
func HasReadArticlesWith ¶
func HasReadArticlesWith(preds ...predicate.ReadArticle) predicate.Article
HasReadArticlesWith applies the HasEdge predicate on the "read_articles" edge with a given conditions (other predicates).
func HasTagsWith ¶
func HasTagsWith(preds ...predicate.ArticleTag) predicate.Article
HasTagsWith applies the HasEdge predicate on the "tags" edge with a given conditions (other predicates).
func Thumbnail ¶
Thumbnail applies equality check predicate on the "thumbnail" field. It's identical to ThumbnailEQ.
func ThumbnailContains ¶
ThumbnailContains applies the Contains predicate on the "thumbnail" field.
func ThumbnailContainsFold ¶
ThumbnailContainsFold applies the ContainsFold predicate on the "thumbnail" field.
func ThumbnailEQ ¶
ThumbnailEQ applies the EQ predicate on the "thumbnail" field.
func ThumbnailEqualFold ¶
ThumbnailEqualFold applies the EqualFold predicate on the "thumbnail" field.
func ThumbnailGT ¶
ThumbnailGT applies the GT predicate on the "thumbnail" field.
func ThumbnailGTE ¶
ThumbnailGTE applies the GTE predicate on the "thumbnail" field.
func ThumbnailHasPrefix ¶
ThumbnailHasPrefix applies the HasPrefix predicate on the "thumbnail" field.
func ThumbnailHasSuffix ¶
ThumbnailHasSuffix applies the HasSuffix predicate on the "thumbnail" field.
func ThumbnailIn ¶
ThumbnailIn applies the In predicate on the "thumbnail" field.
func ThumbnailLT ¶
ThumbnailLT applies the LT predicate on the "thumbnail" field.
func ThumbnailLTE ¶
ThumbnailLTE applies the LTE predicate on the "thumbnail" field.
func ThumbnailNEQ ¶
ThumbnailNEQ applies the NEQ predicate on the "thumbnail" field.
func ThumbnailNotIn ¶
ThumbnailNotIn applies the NotIn predicate on the "thumbnail" field.
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
func URLContains ¶
URLContains applies the Contains predicate on the "url" field.
func URLContainsFold ¶
URLContainsFold applies the ContainsFold predicate on the "url" field.
func URLEqualFold ¶
URLEqualFold applies the EqualFold predicate on the "url" field.
func URLHasPrefix ¶
URLHasPrefix applies the HasPrefix predicate on the "url" field.
func URLHasSuffix ¶
URLHasSuffix applies the HasSuffix predicate on the "url" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.