Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Article) predicate.Article
- func Content(v string) predicate.Article
- func ContentContains(v string) predicate.Article
- func ContentContainsFold(v string) predicate.Article
- func ContentEQ(v string) predicate.Article
- func ContentEqualFold(v string) predicate.Article
- func ContentGT(v string) predicate.Article
- func ContentGTE(v string) predicate.Article
- func ContentHasPrefix(v string) predicate.Article
- func ContentHasSuffix(v string) predicate.Article
- func ContentIn(vs ...string) predicate.Article
- func ContentLT(v string) predicate.Article
- func ContentLTE(v string) predicate.Article
- func ContentNEQ(v string) predicate.Article
- func ContentNotIn(vs ...string) 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 HasTags() predicate.Article
- func HasTagsWith(preds ...predicate.Tag) predicate.Article
- func ID(id int) predicate.Article
- func IDEQ(id int) predicate.Article
- func IDGT(id int) predicate.Article
- func IDGTE(id int) predicate.Article
- func IDIn(ids ...int) predicate.Article
- func IDLT(id int) predicate.Article
- func IDLTE(id int) predicate.Article
- func IDNEQ(id int) predicate.Article
- func IDNotIn(ids ...int) predicate.Article
- func Not(p predicate.Article) predicate.Article
- func Or(predicates ...predicate.Article) predicate.Article
- func ThumbnailImgURL(v string) predicate.Article
- func ThumbnailImgURLContains(v string) predicate.Article
- func ThumbnailImgURLContainsFold(v string) predicate.Article
- func ThumbnailImgURLEQ(v string) predicate.Article
- func ThumbnailImgURLEqualFold(v string) predicate.Article
- func ThumbnailImgURLGT(v string) predicate.Article
- func ThumbnailImgURLGTE(v string) predicate.Article
- func ThumbnailImgURLHasPrefix(v string) predicate.Article
- func ThumbnailImgURLHasSuffix(v string) predicate.Article
- func ThumbnailImgURLIn(vs ...string) predicate.Article
- func ThumbnailImgURLLT(v string) predicate.Article
- func ThumbnailImgURLLTE(v string) predicate.Article
- func ThumbnailImgURLNEQ(v string) predicate.Article
- func ThumbnailImgURLNotIn(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 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" // 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 ¶
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 )
var Columns = []string{ FieldID, FieldThumbnailImgURL, FieldTitle, FieldContent, FieldCreatedAt, }
Columns holds all SQL columns for article fields.
Functions ¶
func Content ¶
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentContains ¶
ContentContains applies the Contains predicate on the "content" field.
func ContentContainsFold ¶
ContentContainsFold applies the ContainsFold predicate on the "content" field.
func ContentEqualFold ¶
ContentEqualFold applies the EqualFold predicate on the "content" field.
func ContentGTE ¶
ContentGTE applies the GTE predicate on the "content" field.
func ContentHasPrefix ¶
ContentHasPrefix applies the HasPrefix predicate on the "content" field.
func ContentHasSuffix ¶
ContentHasSuffix applies the HasSuffix predicate on the "content" field.
func ContentLTE ¶
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
ContentNotIn applies the NotIn predicate on the "content" field.
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 HasTagsWith ¶
HasTagsWith applies the HasEdge predicate on the "tags" edge with a given conditions (other predicates).
func ThumbnailImgURL ¶
ThumbnailImgURL applies equality check predicate on the "thumbnail_img_url" field. It's identical to ThumbnailImgURLEQ.
func ThumbnailImgURLContains ¶
ThumbnailImgURLContains applies the Contains predicate on the "thumbnail_img_url" field.
func ThumbnailImgURLContainsFold ¶
ThumbnailImgURLContainsFold applies the ContainsFold predicate on the "thumbnail_img_url" field.
func ThumbnailImgURLEQ ¶
ThumbnailImgURLEQ applies the EQ predicate on the "thumbnail_img_url" field.
func ThumbnailImgURLEqualFold ¶
ThumbnailImgURLEqualFold applies the EqualFold predicate on the "thumbnail_img_url" field.
func ThumbnailImgURLGT ¶
ThumbnailImgURLGT applies the GT predicate on the "thumbnail_img_url" field.
func ThumbnailImgURLGTE ¶
ThumbnailImgURLGTE applies the GTE predicate on the "thumbnail_img_url" field.
func ThumbnailImgURLHasPrefix ¶
ThumbnailImgURLHasPrefix applies the HasPrefix predicate on the "thumbnail_img_url" field.
func ThumbnailImgURLHasSuffix ¶
ThumbnailImgURLHasSuffix applies the HasSuffix predicate on the "thumbnail_img_url" field.
func ThumbnailImgURLIn ¶
ThumbnailImgURLIn applies the In predicate on the "thumbnail_img_url" field.
func ThumbnailImgURLLT ¶
ThumbnailImgURLLT applies the LT predicate on the "thumbnail_img_url" field.
func ThumbnailImgURLLTE ¶
ThumbnailImgURLLTE applies the LTE predicate on the "thumbnail_img_url" field.
func ThumbnailImgURLNEQ ¶
ThumbnailImgURLNEQ applies the NEQ predicate on the "thumbnail_img_url" field.
func ThumbnailImgURLNotIn ¶
ThumbnailImgURLNotIn applies the NotIn predicate on the "thumbnail_img_url" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.