Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.StudyArticle) predicate.StudyArticle
- func HasAuthor() predicate.StudyArticle
- func HasAuthorWith(preds ...predicate.KhumuUser) predicate.StudyArticle
- func HasComments() predicate.StudyArticle
- func HasCommentsWith(preds ...predicate.Comment) predicate.StudyArticle
- func ID(id int) predicate.StudyArticle
- func IDEQ(id int) predicate.StudyArticle
- func IDGT(id int) predicate.StudyArticle
- func IDGTE(id int) predicate.StudyArticle
- func IDIn(ids ...int) predicate.StudyArticle
- func IDLT(id int) predicate.StudyArticle
- func IDLTE(id int) predicate.StudyArticle
- func IDNEQ(id int) predicate.StudyArticle
- func IDNotIn(ids ...int) predicate.StudyArticle
- func Not(p predicate.StudyArticle) predicate.StudyArticle
- func Or(predicates ...predicate.StudyArticle) predicate.StudyArticle
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the studyarticle type in the database. Label = "study_article" // FieldID holds the string denoting the id field in the database. FieldID = "id" // 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 studyarticle in the database. Table = "article_studyarticle" // 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 = "study_article_id" // AuthorTable is the table the holds the author relation/edge. AuthorTable = "article_studyarticle" // 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, }
Columns holds all SQL columns for studyarticle fields.
var ForeignKeys = []string{
"author_id",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "article_studyarticle" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.StudyArticle) predicate.StudyArticle
And groups predicates with the AND operator between them.
func HasAuthor ¶
func HasAuthor() predicate.StudyArticle
HasAuthor applies the HasEdge predicate on the "author" edge.
func HasAuthorWith ¶
func HasAuthorWith(preds ...predicate.KhumuUser) predicate.StudyArticle
HasAuthorWith applies the HasEdge predicate on the "author" edge with a given conditions (other predicates).
func HasComments ¶
func HasComments() predicate.StudyArticle
HasComments applies the HasEdge predicate on the "comments" edge.
func HasCommentsWith ¶
func HasCommentsWith(preds ...predicate.Comment) predicate.StudyArticle
HasCommentsWith applies the HasEdge predicate on the "comments" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.StudyArticle
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.StudyArticle
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.StudyArticle
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.StudyArticle
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.StudyArticle
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.StudyArticle) predicate.StudyArticle
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.StudyArticle) predicate.StudyArticle
Or groups predicates with the OR operator between them.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.