Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.LikeComment) predicate.LikeComment
- func HasAbout() predicate.LikeComment
- func HasAboutWith(preds ...predicate.Comment) predicate.LikeComment
- func HasLikedBy() predicate.LikeComment
- func HasLikedByWith(preds ...predicate.KhumuUser) predicate.LikeComment
- func ID(id int) predicate.LikeComment
- func IDEQ(id int) predicate.LikeComment
- func IDGT(id int) predicate.LikeComment
- func IDGTE(id int) predicate.LikeComment
- func IDIn(ids ...int) predicate.LikeComment
- func IDLT(id int) predicate.LikeComment
- func IDLTE(id int) predicate.LikeComment
- func IDNEQ(id int) predicate.LikeComment
- func IDNotIn(ids ...int) predicate.LikeComment
- func Not(p predicate.LikeComment) predicate.LikeComment
- func Or(predicates ...predicate.LikeComment) predicate.LikeComment
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the likecomment type in the database. Label = "like_comment" // FieldID holds the string denoting the id field in the database. FieldID = "id" // EdgeLikedBy holds the string denoting the likedby edge name in mutations. EdgeLikedBy = "likedBy" // EdgeAbout holds the string denoting the about edge name in mutations. EdgeAbout = "about" // KhumuUserFieldID holds the string denoting the ID field of the KhumuUser. KhumuUserFieldID = "username" // Table holds the table name of the likecomment in the database. Table = "comment_likecomment" // LikedByTable is the table the holds the likedBy relation/edge. LikedByTable = "comment_likecomment" // LikedByInverseTable is the table name for the KhumuUser entity. // It exists in this package in order to avoid circular dependency with the "khumuuser" package. LikedByInverseTable = "user_khumuuser" // LikedByColumn is the table column denoting the likedBy relation/edge. LikedByColumn = "user_id" // AboutTable is the table the holds the about relation/edge. AboutTable = "comment_likecomment" // AboutInverseTable is the table name for the Comment entity. // It exists in this package in order to avoid circular dependency with the "comment" package. AboutInverseTable = "comment_comment" // AboutColumn is the table column denoting the about relation/edge. AboutColumn = "comment_id" )
Variables ¶
var Columns = []string{ FieldID, }
Columns holds all SQL columns for likecomment fields.
var ForeignKeys = []string{
"comment_id",
"user_id",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "comment_likecomment" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.LikeComment) predicate.LikeComment
And groups predicates with the AND operator between them.
func HasAbout ¶
func HasAbout() predicate.LikeComment
HasAbout applies the HasEdge predicate on the "about" edge.
func HasAboutWith ¶
func HasAboutWith(preds ...predicate.Comment) predicate.LikeComment
HasAboutWith applies the HasEdge predicate on the "about" edge with a given conditions (other predicates).
func HasLikedBy ¶
func HasLikedBy() predicate.LikeComment
HasLikedBy applies the HasEdge predicate on the "likedBy" edge.
func HasLikedByWith ¶
func HasLikedByWith(preds ...predicate.KhumuUser) predicate.LikeComment
HasLikedByWith applies the HasEdge predicate on the "likedBy" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.LikeComment
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.LikeComment
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.LikeComment
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.LikeComment
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.LikeComment
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.LikeComment) predicate.LikeComment
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.LikeComment) predicate.LikeComment
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.