Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.React) predicate.React
- func CreatedAt(v time.Time) predicate.React
- func CreatedAtEQ(v time.Time) predicate.React
- func CreatedAtGT(v time.Time) predicate.React
- func CreatedAtGTE(v time.Time) predicate.React
- func CreatedAtIn(vs ...time.Time) predicate.React
- func CreatedAtLT(v time.Time) predicate.React
- func CreatedAtLTE(v time.Time) predicate.React
- func CreatedAtNEQ(v time.Time) predicate.React
- func CreatedAtNotIn(vs ...time.Time) predicate.React
- func Emoji(v string) predicate.React
- func EmojiContains(v string) predicate.React
- func EmojiContainsFold(v string) predicate.React
- func EmojiEQ(v string) predicate.React
- func EmojiEqualFold(v string) predicate.React
- func EmojiGT(v string) predicate.React
- func EmojiGTE(v string) predicate.React
- func EmojiHasPrefix(v string) predicate.React
- func EmojiHasSuffix(v string) predicate.React
- func EmojiIn(vs ...string) predicate.React
- func EmojiLT(v string) predicate.React
- func EmojiLTE(v string) predicate.React
- func EmojiNEQ(v string) predicate.React
- func EmojiNotIn(vs ...string) predicate.React
- func HasAccount() predicate.React
- func HasAccountWith(preds ...predicate.Account) predicate.React
- func HasPost() predicate.React
- func HasPostWith(preds ...predicate.Post) predicate.React
- func ID(id xid.ID) predicate.React
- func IDEQ(id xid.ID) predicate.React
- func IDGT(id xid.ID) predicate.React
- func IDGTE(id xid.ID) predicate.React
- func IDIn(ids ...xid.ID) predicate.React
- func IDLT(id xid.ID) predicate.React
- func IDLTE(id xid.ID) predicate.React
- func IDNEQ(id xid.ID) predicate.React
- func IDNotIn(ids ...xid.ID) predicate.React
- func Not(p predicate.React) predicate.React
- func Or(predicates ...predicate.React) predicate.React
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the react type in the database. Label = "react" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldEmoji holds the string denoting the emoji field in the database. FieldEmoji = "emoji" // EdgeAccount holds the string denoting the account edge name in mutations. EdgeAccount = "account" // EdgePost holds the string denoting the post edge name in mutations. EdgePost = "Post" // Table holds the table name of the react in the database. Table = "reacts" // AccountTable is the table that holds the account relation/edge. AccountTable = "reacts" // AccountInverseTable is the table name for the Account entity. // It exists in this package in order to avoid circular dependency with the "account" package. AccountInverseTable = "accounts" // AccountColumn is the table column denoting the account relation/edge. AccountColumn = "react_account" // PostTable is the table that holds the Post relation/edge. PostTable = "reacts" // 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 = "react_post" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() xid.ID // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldEmoji, }
Columns holds all SQL columns for react fields.
var ForeignKeys = []string{
"account_reacts",
"post_reacts",
"react_account",
"react_post",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "reacts" table and are not defined as standalone fields in the schema.
Functions ¶
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 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 HasAccount ¶
HasAccount applies the HasEdge predicate on the "account" edge.
func HasAccountWith ¶
HasAccountWith applies the HasEdge predicate on the "account" edge with a given conditions (other predicates).
func HasPostWith ¶
HasPostWith applies the HasEdge predicate on the "Post" edge with a given conditions (other predicates).
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.