react

package
v1.26.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2026 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for react fields.

Functions

func AccountID

func AccountID(v xid.ID) predicate.React

AccountID applies equality check predicate on the "account_id" field. It's identical to AccountIDEQ.

func AccountIDContains

func AccountIDContains(v xid.ID) predicate.React

AccountIDContains applies the Contains predicate on the "account_id" field.

func AccountIDContainsFold

func AccountIDContainsFold(v xid.ID) predicate.React

AccountIDContainsFold applies the ContainsFold predicate on the "account_id" field.

func AccountIDEQ

func AccountIDEQ(v xid.ID) predicate.React

AccountIDEQ applies the EQ predicate on the "account_id" field.

func AccountIDEqualFold

func AccountIDEqualFold(v xid.ID) predicate.React

AccountIDEqualFold applies the EqualFold predicate on the "account_id" field.

func AccountIDGT

func AccountIDGT(v xid.ID) predicate.React

AccountIDGT applies the GT predicate on the "account_id" field.

func AccountIDGTE

func AccountIDGTE(v xid.ID) predicate.React

AccountIDGTE applies the GTE predicate on the "account_id" field.

func AccountIDHasPrefix

func AccountIDHasPrefix(v xid.ID) predicate.React

AccountIDHasPrefix applies the HasPrefix predicate on the "account_id" field.

func AccountIDHasSuffix

func AccountIDHasSuffix(v xid.ID) predicate.React

AccountIDHasSuffix applies the HasSuffix predicate on the "account_id" field.

func AccountIDIn

func AccountIDIn(vs ...xid.ID) predicate.React

AccountIDIn applies the In predicate on the "account_id" field.

func AccountIDLT

func AccountIDLT(v xid.ID) predicate.React

AccountIDLT applies the LT predicate on the "account_id" field.

func AccountIDLTE

func AccountIDLTE(v xid.ID) predicate.React

AccountIDLTE applies the LTE predicate on the "account_id" field.

func AccountIDNEQ

func AccountIDNEQ(v xid.ID) predicate.React

AccountIDNEQ applies the NEQ predicate on the "account_id" field.

func AccountIDNotIn

func AccountIDNotIn(vs ...xid.ID) predicate.React

AccountIDNotIn applies the NotIn predicate on the "account_id" field.

func And

func And(predicates ...predicate.React) predicate.React

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.React

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.React

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.React

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.React

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.React

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.React

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.React

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.React

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.React

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Emoji

func Emoji(v string) predicate.React

Emoji applies equality check predicate on the "emoji" field. It's identical to EmojiEQ.

func EmojiContains

func EmojiContains(v string) predicate.React

EmojiContains applies the Contains predicate on the "emoji" field.

func EmojiContainsFold

func EmojiContainsFold(v string) predicate.React

EmojiContainsFold applies the ContainsFold predicate on the "emoji" field.

func EmojiEQ

func EmojiEQ(v string) predicate.React

EmojiEQ applies the EQ predicate on the "emoji" field.

func EmojiEqualFold

func EmojiEqualFold(v string) predicate.React

EmojiEqualFold applies the EqualFold predicate on the "emoji" field.

func EmojiGT

func EmojiGT(v string) predicate.React

EmojiGT applies the GT predicate on the "emoji" field.

func EmojiGTE

func EmojiGTE(v string) predicate.React

EmojiGTE applies the GTE predicate on the "emoji" field.

func EmojiHasPrefix

func EmojiHasPrefix(v string) predicate.React

EmojiHasPrefix applies the HasPrefix predicate on the "emoji" field.

func EmojiHasSuffix

func EmojiHasSuffix(v string) predicate.React

EmojiHasSuffix applies the HasSuffix predicate on the "emoji" field.

func EmojiIn

func EmojiIn(vs ...string) predicate.React

EmojiIn applies the In predicate on the "emoji" field.

func EmojiLT

func EmojiLT(v string) predicate.React

EmojiLT applies the LT predicate on the "emoji" field.

func EmojiLTE

func EmojiLTE(v string) predicate.React

EmojiLTE applies the LTE predicate on the "emoji" field.

func EmojiNEQ

func EmojiNEQ(v string) predicate.React

EmojiNEQ applies the NEQ predicate on the "emoji" field.

func EmojiNotIn

func EmojiNotIn(vs ...string) predicate.React

EmojiNotIn applies the NotIn predicate on the "emoji" field.

func HasAccount

func HasAccount() predicate.React

HasAccount applies the HasEdge predicate on the "account" edge.

func HasAccountWith

func HasAccountWith(preds ...predicate.Account) predicate.React

HasAccountWith applies the HasEdge predicate on the "account" edge with a given conditions (other predicates).

func HasPost

func HasPost() predicate.React

HasPost applies the HasEdge predicate on the "Post" edge.

func HasPostWith

func HasPostWith(preds ...predicate.Post) predicate.React

HasPostWith applies the HasEdge predicate on the "Post" edge with a given conditions (other predicates).

func ID

func ID(id xid.ID) predicate.React

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id xid.ID) predicate.React

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id xid.ID) predicate.React

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id xid.ID) predicate.React

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...xid.ID) predicate.React

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id xid.ID) predicate.React

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id xid.ID) predicate.React

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id xid.ID) predicate.React

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...xid.ID) predicate.React

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.React) predicate.React

Or groups predicates with the OR operator between them.

func PostID

func PostID(v xid.ID) predicate.React

PostID applies equality check predicate on the "post_id" field. It's identical to PostIDEQ.

func PostIDContains

func PostIDContains(v xid.ID) predicate.React

PostIDContains applies the Contains predicate on the "post_id" field.

func PostIDContainsFold

func PostIDContainsFold(v xid.ID) predicate.React

PostIDContainsFold applies the ContainsFold predicate on the "post_id" field.

func PostIDEQ

func PostIDEQ(v xid.ID) predicate.React

PostIDEQ applies the EQ predicate on the "post_id" field.

func PostIDEqualFold

func PostIDEqualFold(v xid.ID) predicate.React

PostIDEqualFold applies the EqualFold predicate on the "post_id" field.

func PostIDGT

func PostIDGT(v xid.ID) predicate.React

PostIDGT applies the GT predicate on the "post_id" field.

func PostIDGTE

func PostIDGTE(v xid.ID) predicate.React

PostIDGTE applies the GTE predicate on the "post_id" field.

func PostIDHasPrefix

func PostIDHasPrefix(v xid.ID) predicate.React

PostIDHasPrefix applies the HasPrefix predicate on the "post_id" field.

func PostIDHasSuffix

func PostIDHasSuffix(v xid.ID) predicate.React

PostIDHasSuffix applies the HasSuffix predicate on the "post_id" field.

func PostIDIn

func PostIDIn(vs ...xid.ID) predicate.React

PostIDIn applies the In predicate on the "post_id" field.

func PostIDLT

func PostIDLT(v xid.ID) predicate.React

PostIDLT applies the LT predicate on the "post_id" field.

func PostIDLTE

func PostIDLTE(v xid.ID) predicate.React

PostIDLTE applies the LTE predicate on the "post_id" field.

func PostIDNEQ

func PostIDNEQ(v xid.ID) predicate.React

PostIDNEQ applies the NEQ predicate on the "post_id" field.

func PostIDNotIn

func PostIDNotIn(vs ...xid.ID) predicate.React

PostIDNotIn applies the NotIn predicate on the "post_id" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL