react

package
v0.0.0-...-8495beb Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 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"
	// 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

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.

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

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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