Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Comment) predicate.Comment
- func Content(v string) predicate.Comment
- func ContentContains(v string) predicate.Comment
- func ContentContainsFold(v string) predicate.Comment
- func ContentEQ(v string) predicate.Comment
- func ContentEqualFold(v string) predicate.Comment
- func ContentGT(v string) predicate.Comment
- func ContentGTE(v string) predicate.Comment
- func ContentHasPrefix(v string) predicate.Comment
- func ContentHasSuffix(v string) predicate.Comment
- func ContentIn(vs ...string) predicate.Comment
- func ContentLT(v string) predicate.Comment
- func ContentLTE(v string) predicate.Comment
- func ContentNEQ(v string) predicate.Comment
- func ContentNotIn(vs ...string) predicate.Comment
- func CreatedAt(v time.Time) predicate.Comment
- func CreatedAtEQ(v time.Time) predicate.Comment
- func CreatedAtGT(v time.Time) predicate.Comment
- func CreatedAtGTE(v time.Time) predicate.Comment
- func CreatedAtIn(vs ...time.Time) predicate.Comment
- func CreatedAtLT(v time.Time) predicate.Comment
- func CreatedAtLTE(v time.Time) predicate.Comment
- func CreatedAtNEQ(v time.Time) predicate.Comment
- func CreatedAtNotIn(vs ...time.Time) predicate.Comment
- func HasArticle() predicate.Comment
- func HasArticleWith(preds ...predicate.Article) predicate.Comment
- func HasAuthor() predicate.Comment
- func HasAuthorWith(preds ...predicate.KhumuUser) predicate.Comment
- func HasChildren() predicate.Comment
- func HasChildrenWith(preds ...predicate.Comment) predicate.Comment
- func HasLike() predicate.Comment
- func HasLikeWith(preds ...predicate.LikeComment) predicate.Comment
- func HasParent() predicate.Comment
- func HasParentWith(preds ...predicate.Comment) predicate.Comment
- func HasStudyArticle() predicate.Comment
- func HasStudyArticleWith(preds ...predicate.StudyArticle) predicate.Comment
- func ID(id int) predicate.Comment
- func IDEQ(id int) predicate.Comment
- func IDGT(id int) predicate.Comment
- func IDGTE(id int) predicate.Comment
- func IDIn(ids ...int) predicate.Comment
- func IDLT(id int) predicate.Comment
- func IDLTE(id int) predicate.Comment
- func IDNEQ(id int) predicate.Comment
- func IDNotIn(ids ...int) predicate.Comment
- func IsWrittenByArticleAuthor(v bool) predicate.Comment
- func IsWrittenByArticleAuthorEQ(v bool) predicate.Comment
- func IsWrittenByArticleAuthorNEQ(v bool) predicate.Comment
- func Kind(v string) predicate.Comment
- func KindContains(v string) predicate.Comment
- func KindContainsFold(v string) predicate.Comment
- func KindEQ(v string) predicate.Comment
- func KindEqualFold(v string) predicate.Comment
- func KindGT(v string) predicate.Comment
- func KindGTE(v string) predicate.Comment
- func KindHasPrefix(v string) predicate.Comment
- func KindHasSuffix(v string) predicate.Comment
- func KindIn(vs ...string) predicate.Comment
- func KindLT(v string) predicate.Comment
- func KindLTE(v string) predicate.Comment
- func KindNEQ(v string) predicate.Comment
- func KindNotIn(vs ...string) predicate.Comment
- func Not(p predicate.Comment) predicate.Comment
- func Or(predicates ...predicate.Comment) predicate.Comment
- func State(v string) predicate.Comment
- func StateContains(v string) predicate.Comment
- func StateContainsFold(v string) predicate.Comment
- func StateEQ(v string) predicate.Comment
- func StateEqualFold(v string) predicate.Comment
- func StateGT(v string) predicate.Comment
- func StateGTE(v string) predicate.Comment
- func StateHasPrefix(v string) predicate.Comment
- func StateHasSuffix(v string) predicate.Comment
- func StateIn(vs ...string) predicate.Comment
- func StateLT(v string) predicate.Comment
- func StateLTE(v string) predicate.Comment
- func StateNEQ(v string) predicate.Comment
- func StateNotIn(vs ...string) predicate.Comment
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the comment type in the database. Label = "comment" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldState holds the string denoting the state field in the database. FieldState = "state" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // FieldKind holds the string denoting the kind field in the database. FieldKind = "kind" // FieldIsWrittenByArticleAuthor holds the string denoting the is_written_by_article_author field in the database. FieldIsWrittenByArticleAuthor = "is_written_by_article_author" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeAuthor holds the string denoting the author edge name in mutations. EdgeAuthor = "author" // EdgeArticle holds the string denoting the article edge name in mutations. EdgeArticle = "article" // EdgeStudyArticle holds the string denoting the studyarticle edge name in mutations. EdgeStudyArticle = "studyArticle" // EdgeParent holds the string denoting the parent edge name in mutations. EdgeParent = "parent" // EdgeChildren holds the string denoting the children edge name in mutations. EdgeChildren = "children" // EdgeLike holds the string denoting the like edge name in mutations. EdgeLike = "like" // KhumuUserFieldID holds the string denoting the ID field of the KhumuUser. KhumuUserFieldID = "username" // Table holds the table name of the comment in the database. Table = "comment_comment" // AuthorTable is the table the holds the author relation/edge. AuthorTable = "comment_comment" // 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" // ArticleTable is the table the holds the article relation/edge. ArticleTable = "comment_comment" // ArticleInverseTable is the table name for the Article entity. // It exists in this package in order to avoid circular dependency with the "article" package. ArticleInverseTable = "article_article" // ArticleColumn is the table column denoting the article relation/edge. ArticleColumn = "article_id" // StudyArticleTable is the table the holds the studyArticle relation/edge. StudyArticleTable = "comment_comment" // StudyArticleInverseTable is the table name for the StudyArticle entity. // It exists in this package in order to avoid circular dependency with the "studyarticle" package. StudyArticleInverseTable = "article_studyarticle" // StudyArticleColumn is the table column denoting the studyArticle relation/edge. StudyArticleColumn = "study_article_id" // ParentTable is the table the holds the parent relation/edge. ParentTable = "comment_comment" // ParentColumn is the table column denoting the parent relation/edge. ParentColumn = "parent_id" // ChildrenTable is the table the holds the children relation/edge. ChildrenTable = "comment_comment" // ChildrenColumn is the table column denoting the children relation/edge. ChildrenColumn = "parent_id" // LikeTable is the table the holds the like relation/edge. LikeTable = "comment_likecomment" // LikeInverseTable is the table name for the LikeComment entity. // It exists in this package in order to avoid circular dependency with the "likecomment" package. LikeInverseTable = "comment_likecomment" // LikeColumn is the table column denoting the like relation/edge. LikeColumn = "comment_id" )
Variables ¶
var ( // DefaultState holds the default value on creation for the "state" field. DefaultState string // DefaultKind holds the default value on creation for the "kind" field. DefaultKind string // DefaultIsWrittenByArticleAuthor holds the default value on creation for the "is_written_by_article_author" field. DefaultIsWrittenByArticleAuthor bool // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
var Columns = []string{ FieldID, FieldState, FieldContent, FieldKind, FieldIsWrittenByArticleAuthor, FieldCreatedAt, }
Columns holds all SQL columns for comment fields.
var ForeignKeys = []string{
"article_id",
"parent_id",
"author_id",
"study_article_id",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "comment_comment" table and are not defined as standalone fields in the schema.
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 HasArticle ¶
HasArticle applies the HasEdge predicate on the "article" edge.
func HasArticleWith ¶
HasArticleWith applies the HasEdge predicate on the "article" edge with a given conditions (other predicates).
func HasAuthorWith ¶
HasAuthorWith applies the HasEdge predicate on the "author" edge with a given conditions (other predicates).
func HasChildren ¶
HasChildren applies the HasEdge predicate on the "children" edge.
func HasChildrenWith ¶
HasChildrenWith applies the HasEdge predicate on the "children" edge with a given conditions (other predicates).
func HasLikeWith ¶
func HasLikeWith(preds ...predicate.LikeComment) predicate.Comment
HasLikeWith applies the HasEdge predicate on the "like" edge with a given conditions (other predicates).
func HasParentWith ¶
HasParentWith applies the HasEdge predicate on the "parent" edge with a given conditions (other predicates).
func HasStudyArticle ¶
HasStudyArticle applies the HasEdge predicate on the "studyArticle" edge.
func HasStudyArticleWith ¶
func HasStudyArticleWith(preds ...predicate.StudyArticle) predicate.Comment
HasStudyArticleWith applies the HasEdge predicate on the "studyArticle" edge with a given conditions (other predicates).
func IsWrittenByArticleAuthor ¶
IsWrittenByArticleAuthor applies equality check predicate on the "is_written_by_article_author" field. It's identical to IsWrittenByArticleAuthorEQ.
func IsWrittenByArticleAuthorEQ ¶
IsWrittenByArticleAuthorEQ applies the EQ predicate on the "is_written_by_article_author" field.
func IsWrittenByArticleAuthorNEQ ¶
IsWrittenByArticleAuthorNEQ applies the NEQ predicate on the "is_written_by_article_author" field.
func KindContains ¶
KindContains applies the Contains predicate on the "kind" field.
func KindContainsFold ¶
KindContainsFold applies the ContainsFold predicate on the "kind" field.
func KindEqualFold ¶
KindEqualFold applies the EqualFold predicate on the "kind" field.
func KindHasPrefix ¶
KindHasPrefix applies the HasPrefix predicate on the "kind" field.
func KindHasSuffix ¶
KindHasSuffix applies the HasSuffix predicate on the "kind" field.
func State ¶
State applies equality check predicate on the "state" field. It's identical to StateEQ.
func StateContains ¶
StateContains applies the Contains predicate on the "state" field.
func StateContainsFold ¶
StateContainsFold applies the ContainsFold predicate on the "state" field.
func StateEqualFold ¶
StateEqualFold applies the EqualFold predicate on the "state" field.
func StateHasPrefix ¶
StateHasPrefix applies the HasPrefix predicate on the "state" field.
func StateHasSuffix ¶
StateHasSuffix applies the HasSuffix predicate on the "state" field.
func StateNotIn ¶
StateNotIn applies the NotIn predicate on the "state" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.