Documentation
¶
Index ¶
- Constants
- Variables
- func AccountID(v xid.ID) predicate.React
- func AccountIDContains(v xid.ID) predicate.React
- func AccountIDContainsFold(v xid.ID) predicate.React
- func AccountIDEQ(v xid.ID) predicate.React
- func AccountIDEqualFold(v xid.ID) predicate.React
- func AccountIDGT(v xid.ID) predicate.React
- func AccountIDGTE(v xid.ID) predicate.React
- func AccountIDHasPrefix(v xid.ID) predicate.React
- func AccountIDHasSuffix(v xid.ID) predicate.React
- func AccountIDIn(vs ...xid.ID) predicate.React
- func AccountIDLT(v xid.ID) predicate.React
- func AccountIDLTE(v xid.ID) predicate.React
- func AccountIDNEQ(v xid.ID) predicate.React
- func AccountIDNotIn(vs ...xid.ID) predicate.React
- 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 PostID(v xid.ID) predicate.React
- func PostIDContains(v xid.ID) predicate.React
- func PostIDContainsFold(v xid.ID) predicate.React
- func PostIDEQ(v xid.ID) predicate.React
- func PostIDEqualFold(v xid.ID) predicate.React
- func PostIDGT(v xid.ID) predicate.React
- func PostIDGTE(v xid.ID) predicate.React
- func PostIDHasPrefix(v xid.ID) predicate.React
- func PostIDHasSuffix(v xid.ID) predicate.React
- func PostIDIn(vs ...xid.ID) predicate.React
- func PostIDLT(v xid.ID) predicate.React
- func PostIDLTE(v xid.ID) predicate.React
- func PostIDNEQ(v xid.ID) predicate.React
- func PostIDNotIn(vs ...xid.ID) predicate.React
- func ValidColumn(column string) bool
- type OrderOption
- func ByAccountField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByAccountID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEmoji(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByPostField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPostID(opts ...sql.OrderTermOption) OrderOption
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" // FieldAccountID holds the string denoting the account_id field in the database. FieldAccountID = "account_id" // FieldPostID holds the string denoting the post_id field in the database. FieldPostID = "post_id" // 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 = "account_id" // 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 = "post_id" )
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, FieldAccountID, FieldPostID, FieldEmoji, }
Columns holds all SQL columns for react fields.
Functions ¶
func AccountID ¶
AccountID applies equality check predicate on the "account_id" field. It's identical to AccountIDEQ.
func AccountIDContains ¶
AccountIDContains applies the Contains predicate on the "account_id" field.
func AccountIDContainsFold ¶
AccountIDContainsFold applies the ContainsFold predicate on the "account_id" field.
func AccountIDEQ ¶
AccountIDEQ applies the EQ predicate on the "account_id" field.
func AccountIDEqualFold ¶
AccountIDEqualFold applies the EqualFold predicate on the "account_id" field.
func AccountIDGT ¶
AccountIDGT applies the GT predicate on the "account_id" field.
func AccountIDGTE ¶
AccountIDGTE applies the GTE predicate on the "account_id" field.
func AccountIDHasPrefix ¶
AccountIDHasPrefix applies the HasPrefix predicate on the "account_id" field.
func AccountIDHasSuffix ¶
AccountIDHasSuffix applies the HasSuffix predicate on the "account_id" field.
func AccountIDIn ¶
AccountIDIn applies the In predicate on the "account_id" field.
func AccountIDLT ¶
AccountIDLT applies the LT predicate on the "account_id" field.
func AccountIDLTE ¶
AccountIDLTE applies the LTE predicate on the "account_id" field.
func AccountIDNEQ ¶
AccountIDNEQ applies the NEQ predicate on the "account_id" field.
func AccountIDNotIn ¶
AccountIDNotIn applies the NotIn predicate on the "account_id" 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 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 PostID ¶
PostID applies equality check predicate on the "post_id" field. It's identical to PostIDEQ.
func PostIDContains ¶
PostIDContains applies the Contains predicate on the "post_id" field.
func PostIDContainsFold ¶
PostIDContainsFold applies the ContainsFold predicate on the "post_id" field.
func PostIDEqualFold ¶
PostIDEqualFold applies the EqualFold predicate on the "post_id" field.
func PostIDHasPrefix ¶
PostIDHasPrefix applies the HasPrefix predicate on the "post_id" field.
func PostIDHasSuffix ¶
PostIDHasSuffix applies the HasSuffix predicate on the "post_id" field.
func PostIDNotIn ¶
PostIDNotIn applies the NotIn predicate on the "post_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 React queries.
func ByAccountField ¶
func ByAccountField(field string, opts ...sql.OrderTermOption) OrderOption
ByAccountField orders the results by account field.
func ByAccountID ¶
func ByAccountID(opts ...sql.OrderTermOption) OrderOption
ByAccountID orders the results by the account_id field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByEmoji ¶
func ByEmoji(opts ...sql.OrderTermOption) OrderOption
ByEmoji orders the results by the emoji field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByPostField ¶
func ByPostField(field string, opts ...sql.OrderTermOption) OrderOption
ByPostField orders the results by Post field.
func ByPostID ¶
func ByPostID(opts ...sql.OrderTermOption) OrderOption
ByPostID orders the results by the post_id field.