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 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 HasTags() predicate.Article
- func HasTagsWith(preds ...predicate.ArticleTag) predicate.Article
- func HasUserArticles() predicate.Article
- func HasUserArticlesWith(preds ...predicate.UserArticle) 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
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByTags(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTagsCount(opts ...sql.OrderTermOption) OrderOption
- func ByThumbnail(opts ...sql.OrderTermOption) OrderOption
- func ByTitle(opts ...sql.OrderTermOption) OrderOption
- func ByURL(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserArticles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByUserArticlesCount(opts ...sql.OrderTermOption) OrderOption
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" // EdgeTags holds the string denoting the tags edge name in mutations. EdgeTags = "tags" // EdgeUserArticles holds the string denoting the user_articles edge name in mutations. EdgeUserArticles = "user_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" // UserArticlesTable is the table that holds the user_articles relation/edge. UserArticlesTable = "user_articles" // UserArticlesInverseTable is the table name for the UserArticle entity. // It exists in this package in order to avoid circular dependency with the "userarticle" package. UserArticlesInverseTable = "user_articles" // UserArticlesColumn is the table column denoting the user_articles relation/edge. UserArticlesColumn = "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, }
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 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 HasTagsWith ¶
func HasTagsWith(preds ...predicate.ArticleTag) predicate.Article
HasTagsWith applies the HasEdge predicate on the "tags" edge with a given conditions (other predicates).
func HasUserArticles ¶
HasUserArticles applies the HasEdge predicate on the "user_articles" edge.
func HasUserArticlesWith ¶
func HasUserArticlesWith(preds ...predicate.UserArticle) predicate.Article
HasUserArticlesWith applies the HasEdge predicate on the "user_articles" 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 ¶
type OrderOption ¶
OrderOption defines the ordering options for the Article queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByTags ¶
func ByTags(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTags orders the results by tags terms.
func ByTagsCount ¶
func ByTagsCount(opts ...sql.OrderTermOption) OrderOption
ByTagsCount orders the results by tags count.
func ByThumbnail ¶
func ByThumbnail(opts ...sql.OrderTermOption) OrderOption
ByThumbnail orders the results by the thumbnail field.
func ByTitle ¶
func ByTitle(opts ...sql.OrderTermOption) OrderOption
ByTitle orders the results by the title field.
func ByURL ¶
func ByURL(opts ...sql.OrderTermOption) OrderOption
ByURL orders the results by the url field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUserArticles ¶
func ByUserArticles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByUserArticles orders the results by user_articles terms.
func ByUserArticlesCount ¶
func ByUserArticlesCount(opts ...sql.OrderTermOption) OrderOption
ByUserArticlesCount orders the results by user_articles count.