message

package
v0.0.0-...-4c0fd1a Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the message type in the database.
	Label = "message"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldChatID holds the string denoting the chatid field in the database.
	FieldChatID = "chat_id"
	// FieldUserID holds the string denoting the userid field in the database.
	FieldUserID = "user_id"
	// FieldText holds the string denoting the text field in the database.
	FieldText = "text"
	// FieldTimestamp holds the string denoting the timestamp field in the database.
	FieldTimestamp = "timestamp"
	// EdgeChat holds the string denoting the chat edge name in mutations.
	EdgeChat = "chat"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// Table holds the table name of the message in the database.
	Table = "messages"
	// ChatTable is the table that holds the chat relation/edge.
	ChatTable = "messages"
	// ChatInverseTable is the table name for the Chat entity.
	// It exists in this package in order to avoid circular dependency with the "chat" package.
	ChatInverseTable = "chats"
	// ChatColumn is the table column denoting the chat relation/edge.
	ChatColumn = "chat_id"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "messages"
	// 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"
)

Variables

Columns holds all SQL columns for message fields.

Functions

func And

func And(predicates ...predicate.Message) predicate.Message

And groups predicates with the AND operator between them.

func ChatID

func ChatID(v int64) predicate.Message

ChatID applies equality check predicate on the "chatID" field. It's identical to ChatIDEQ.

func ChatIDEQ

func ChatIDEQ(v int64) predicate.Message

ChatIDEQ applies the EQ predicate on the "chatID" field.

func ChatIDIn

func ChatIDIn(vs ...int64) predicate.Message

ChatIDIn applies the In predicate on the "chatID" field.

func ChatIDNEQ

func ChatIDNEQ(v int64) predicate.Message

ChatIDNEQ applies the NEQ predicate on the "chatID" field.

func ChatIDNotIn

func ChatIDNotIn(vs ...int64) predicate.Message

ChatIDNotIn applies the NotIn predicate on the "chatID" field.

func HasChat

func HasChat() predicate.Message

HasChat applies the HasEdge predicate on the "chat" edge.

func HasChatWith

func HasChatWith(preds ...predicate.Chat) predicate.Message

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

func HasUser

func HasUser() predicate.Message

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.Message

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

func ID

func ID(id int64) predicate.Message

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Message

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Message

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Message

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.Message

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Message

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Message

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Message

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.Message

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.Message) predicate.Message

Or groups predicates with the OR operator between them.

func Text

func Text(v string) predicate.Message

Text applies equality check predicate on the "text" field. It's identical to TextEQ.

func TextContains

func TextContains(v string) predicate.Message

TextContains applies the Contains predicate on the "text" field.

func TextContainsFold

func TextContainsFold(v string) predicate.Message

TextContainsFold applies the ContainsFold predicate on the "text" field.

func TextEQ

func TextEQ(v string) predicate.Message

TextEQ applies the EQ predicate on the "text" field.

func TextEqualFold

func TextEqualFold(v string) predicate.Message

TextEqualFold applies the EqualFold predicate on the "text" field.

func TextGT

func TextGT(v string) predicate.Message

TextGT applies the GT predicate on the "text" field.

func TextGTE

func TextGTE(v string) predicate.Message

TextGTE applies the GTE predicate on the "text" field.

func TextHasPrefix

func TextHasPrefix(v string) predicate.Message

TextHasPrefix applies the HasPrefix predicate on the "text" field.

func TextHasSuffix

func TextHasSuffix(v string) predicate.Message

TextHasSuffix applies the HasSuffix predicate on the "text" field.

func TextIn

func TextIn(vs ...string) predicate.Message

TextIn applies the In predicate on the "text" field.

func TextLT

func TextLT(v string) predicate.Message

TextLT applies the LT predicate on the "text" field.

func TextLTE

func TextLTE(v string) predicate.Message

TextLTE applies the LTE predicate on the "text" field.

func TextNEQ

func TextNEQ(v string) predicate.Message

TextNEQ applies the NEQ predicate on the "text" field.

func TextNotIn

func TextNotIn(vs ...string) predicate.Message

TextNotIn applies the NotIn predicate on the "text" field.

func Timestamp

func Timestamp(v time.Time) predicate.Message

Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.

func TimestampEQ

func TimestampEQ(v time.Time) predicate.Message

TimestampEQ applies the EQ predicate on the "timestamp" field.

func TimestampGT

func TimestampGT(v time.Time) predicate.Message

TimestampGT applies the GT predicate on the "timestamp" field.

func TimestampGTE

func TimestampGTE(v time.Time) predicate.Message

TimestampGTE applies the GTE predicate on the "timestamp" field.

func TimestampIn

func TimestampIn(vs ...time.Time) predicate.Message

TimestampIn applies the In predicate on the "timestamp" field.

func TimestampLT

func TimestampLT(v time.Time) predicate.Message

TimestampLT applies the LT predicate on the "timestamp" field.

func TimestampLTE

func TimestampLTE(v time.Time) predicate.Message

TimestampLTE applies the LTE predicate on the "timestamp" field.

func TimestampNEQ

func TimestampNEQ(v time.Time) predicate.Message

TimestampNEQ applies the NEQ predicate on the "timestamp" field.

func TimestampNotIn

func TimestampNotIn(vs ...time.Time) predicate.Message

TimestampNotIn applies the NotIn predicate on the "timestamp" field.

func UserID

func UserID(v int64) predicate.Message

UserID applies equality check predicate on the "userID" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v int64) predicate.Message

UserIDEQ applies the EQ predicate on the "userID" field.

func UserIDIn

func UserIDIn(vs ...int64) predicate.Message

UserIDIn applies the In predicate on the "userID" field.

func UserIDNEQ

func UserIDNEQ(v int64) predicate.Message

UserIDNEQ applies the NEQ predicate on the "userID" field.

func UserIDNotIn

func UserIDNotIn(vs ...int64) predicate.Message

UserIDNotIn applies the NotIn predicate on the "userID" field.

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