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 HasAuthor() predicate.Article
- func HasAuthorWith(preds ...predicate.KhumuUser) predicate.Article
- func HasComments() predicate.Article
- func HasCommentsWith(preds ...predicate.Comment) 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 ImagesIsNil() predicate.Article
- func ImagesNotNil() predicate.Article
- func Not(p predicate.Article) predicate.Article
- func Or(predicates ...predicate.Article) 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 TitleIsNil() 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 TitleNotNil() 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" // FieldImages holds the string denoting the images field in the database. FieldImages = "images" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeComments holds the string denoting the comments edge name in mutations. EdgeComments = "comments" // EdgeAuthor holds the string denoting the author edge name in mutations. EdgeAuthor = "author" // KhumuUserFieldID holds the string denoting the ID field of the KhumuUser. KhumuUserFieldID = "username" // Table holds the table name of the article in the database. Table = "article_article" // CommentsTable is the table the holds the comments relation/edge. CommentsTable = "comment_comment" // CommentsInverseTable is the table name for the Comment entity. // It exists in this package in order to avoid circular dependency with the "comment" package. CommentsInverseTable = "comment_comment" // CommentsColumn is the table column denoting the comments relation/edge. CommentsColumn = "article_id" // AuthorTable is the table the holds the author relation/edge. AuthorTable = "article_article" // AuthorInverseTable is the table name for the KhumuUser entity. // It exists in this package in order to avoid circular dependency with the "khumuuser" package. AuthorInverseTable = "user_khumuuser" // AuthorColumn is the table column denoting the author relation/edge. AuthorColumn = "author_id" )
Variables ¶
var Columns = []string{ FieldID, FieldTitle, FieldImages, FieldCreatedAt, }
Columns holds all SQL columns for article fields.
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
var ForeignKeys = []string{
"author_id",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "article_article" table and are not defined as standalone fields in the schema.
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 HasAuthorWith ¶
HasAuthorWith applies the HasEdge predicate on the "author" edge with a given conditions (other predicates).
func HasComments ¶
HasComments applies the HasEdge predicate on the "comments" edge.
func HasCommentsWith ¶
HasCommentsWith applies the HasEdge predicate on the "comments" edge with a given conditions (other predicates).
func ImagesIsNil ¶
ImagesIsNil applies the IsNil predicate on the "images" field.
func ImagesNotNil ¶
ImagesNotNil applies the NotNil predicate on the "images" 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 TitleIsNil ¶
TitleIsNil applies the IsNil predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
func TitleNotNil ¶
TitleNotNil applies the NotNil 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.