Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Reaction) predicate.Reaction
- func Emoji(v string) predicate.Reaction
- func EmojiContains(v string) predicate.Reaction
- func EmojiContainsFold(v string) predicate.Reaction
- func EmojiEQ(v string) predicate.Reaction
- func EmojiEqualFold(v string) predicate.Reaction
- func EmojiGT(v string) predicate.Reaction
- func EmojiGTE(v string) predicate.Reaction
- func EmojiHasPrefix(v string) predicate.Reaction
- func EmojiHasSuffix(v string) predicate.Reaction
- func EmojiIn(vs ...string) predicate.Reaction
- func EmojiLT(v string) predicate.Reaction
- func EmojiLTE(v string) predicate.Reaction
- func EmojiNEQ(v string) predicate.Reaction
- func EmojiNotIn(vs ...string) predicate.Reaction
- func ForumPostID(v int) predicate.Reaction
- func ForumPostIDEQ(v int) predicate.Reaction
- func ForumPostIDIn(vs ...int) predicate.Reaction
- func ForumPostIDNEQ(v int) predicate.Reaction
- func ForumPostIDNotIn(vs ...int) predicate.Reaction
- func HasForumPost() predicate.Reaction
- func HasForumPostWith(preds ...predicate.ForumPost) predicate.Reaction
- func HasUser() predicate.Reaction
- func HasUserWith(preds ...predicate.User) predicate.Reaction
- func Not(p predicate.Reaction) predicate.Reaction
- func Or(predicates ...predicate.Reaction) predicate.Reaction
- func UserID(v int) predicate.Reaction
- func UserIDEQ(v int) predicate.Reaction
- func UserIDIn(vs ...int) predicate.Reaction
- func UserIDNEQ(v int) predicate.Reaction
- func UserIDNotIn(vs ...int) predicate.Reaction
- func ValidColumn(column string) bool
- type OrderOption
- func ByEmoji(opts ...sql.OrderTermOption) OrderOption
- func ByForumPostField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByForumPostID(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the reaction type in the database. Label = "reaction" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldForumPostID holds the string denoting the forum_post_id field in the database. FieldForumPostID = "forum_post_id" // FieldEmoji holds the string denoting the emoji field in the database. FieldEmoji = "emoji" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeForumPost holds the string denoting the forum_post edge name in mutations. EdgeForumPost = "forum_post" // UserFieldID holds the string denoting the ID field of the User. UserFieldID = "id" // ForumPostFieldID holds the string denoting the ID field of the ForumPost. ForumPostFieldID = "id" // Table holds the table name of the reaction in the database. Table = "reactions" // UserTable is the table that holds the user relation/edge. UserTable = "reactions" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_id" // ForumPostTable is the table that holds the forum_post relation/edge. ForumPostTable = "reactions" // ForumPostInverseTable is the table name for the ForumPost entity. // It exists in this package in order to avoid circular dependency with the "forumpost" package. ForumPostInverseTable = "forum_posts" // ForumPostColumn is the table column denoting the forum_post relation/edge. ForumPostColumn = "forum_post_id" )
Variables ¶
var Columns = []string{ FieldUserID, FieldForumPostID, FieldEmoji, }
Columns holds all SQL columns for reaction fields.
var ( // EmojiValidator is a validator for the "emoji" field. It is called by the builders before save. EmojiValidator func(string) error )
Functions ¶
func Emoji ¶
Emoji applies equality check predicate on the "emoji" field. It's identical to EmojiEQ.
func EmojiContains ¶
EmojiContains applies the Contains predicate on the "emoji" field.
func EmojiContainsFold ¶
EmojiContainsFold applies the ContainsFold predicate on the "emoji" field.
func EmojiEqualFold ¶
EmojiEqualFold applies the EqualFold predicate on the "emoji" field.
func EmojiHasPrefix ¶
EmojiHasPrefix applies the HasPrefix predicate on the "emoji" field.
func EmojiHasSuffix ¶
EmojiHasSuffix applies the HasSuffix predicate on the "emoji" field.
func EmojiNotIn ¶
EmojiNotIn applies the NotIn predicate on the "emoji" field.
func ForumPostID ¶
ForumPostID applies equality check predicate on the "forum_post_id" field. It's identical to ForumPostIDEQ.
func ForumPostIDEQ ¶
ForumPostIDEQ applies the EQ predicate on the "forum_post_id" field.
func ForumPostIDIn ¶
ForumPostIDIn applies the In predicate on the "forum_post_id" field.
func ForumPostIDNEQ ¶
ForumPostIDNEQ applies the NEQ predicate on the "forum_post_id" field.
func ForumPostIDNotIn ¶
ForumPostIDNotIn applies the NotIn predicate on the "forum_post_id" field.
func HasForumPost ¶
HasForumPost applies the HasEdge predicate on the "forum_post" edge.
func HasForumPostWith ¶
HasForumPostWith applies the HasEdge predicate on the "forum_post" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Reaction queries.
func ByEmoji ¶
func ByEmoji(opts ...sql.OrderTermOption) OrderOption
ByEmoji orders the results by the emoji field.
func ByForumPostField ¶
func ByForumPostField(field string, opts ...sql.OrderTermOption) OrderOption
ByForumPostField orders the results by forum_post field.
func ByForumPostID ¶
func ByForumPostID(opts ...sql.OrderTermOption) OrderOption
ByForumPostID orders the results by the forum_post_id field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.