Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Comment) predicate.Comment
- func HasPost() predicate.Comment
- func HasPostWith(preds ...predicate.Post) 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 Not(p predicate.Comment) predicate.Comment
- func Or(predicates ...predicate.Comment) predicate.Comment
- func PostID(v int) predicate.Comment
- func PostIDEQ(v int) predicate.Comment
- func PostIDIn(vs ...int) predicate.Comment
- func PostIDNEQ(v int) predicate.Comment
- func PostIDNotIn(vs ...int) predicate.Comment
- func Text(v string) predicate.Comment
- func TextContains(v string) predicate.Comment
- func TextContainsFold(v string) predicate.Comment
- func TextEQ(v string) predicate.Comment
- func TextEqualFold(v string) predicate.Comment
- func TextGT(v string) predicate.Comment
- func TextGTE(v string) predicate.Comment
- func TextHasPrefix(v string) predicate.Comment
- func TextHasSuffix(v string) predicate.Comment
- func TextIn(vs ...string) predicate.Comment
- func TextLT(v string) predicate.Comment
- func TextLTE(v string) predicate.Comment
- func TextNEQ(v string) predicate.Comment
- func TextNotIn(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" // FieldText holds the string denoting the text field in the database. FieldText = "text" // FieldPostID holds the string denoting the post_id field in the database. FieldPostID = "post_id" // EdgePost holds the string denoting the post edge name in mutations. EdgePost = "post" // Table holds the table name of the comment in the database. Table = "comments" // PostTable is the table the holds the post relation/edge. PostTable = "comments" // PostInverseTable is the table name for the Post entity. // It exists in this package in order to avoid circular dependency with the "post" package. PostInverseTable = "posts" // PostColumn is the table column denoting the post relation/edge. PostColumn = "post_id" )
Variables ¶
var Columns = []string{ FieldID, FieldText, FieldPostID, }
Columns holds all SQL columns for comment fields.
Functions ¶
func HasPostWith ¶
HasPostWith applies the HasEdge predicate on the "post" edge with a given conditions (other predicates).
func PostID ¶
PostID applies equality check predicate on the "post_id" field. It's identical to PostIDEQ.
func PostIDNotIn ¶
PostIDNotIn applies the NotIn predicate on the "post_id" field.
func TextContains ¶
TextContains applies the Contains predicate on the "text" field.
func TextContainsFold ¶
TextContainsFold applies the ContainsFold predicate on the "text" field.
func TextEqualFold ¶
TextEqualFold applies the EqualFold predicate on the "text" field.
func TextHasPrefix ¶
TextHasPrefix applies the HasPrefix predicate on the "text" field.
func TextHasSuffix ¶
TextHasSuffix applies the HasSuffix predicate on the "text" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.