Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Message) predicate.Message
- func ChatID(v int64) predicate.Message
- func ChatIDEQ(v int64) predicate.Message
- func ChatIDIn(vs ...int64) predicate.Message
- func ChatIDNEQ(v int64) predicate.Message
- func ChatIDNotIn(vs ...int64) predicate.Message
- func HasChat() predicate.Message
- func HasChatWith(preds ...predicate.Chat) predicate.Message
- func HasUser() predicate.Message
- func HasUserWith(preds ...predicate.User) predicate.Message
- func ID(id int64) predicate.Message
- func IDEQ(id int64) predicate.Message
- func IDGT(id int64) predicate.Message
- func IDGTE(id int64) predicate.Message
- func IDIn(ids ...int64) predicate.Message
- func IDLT(id int64) predicate.Message
- func IDLTE(id int64) predicate.Message
- func IDNEQ(id int64) predicate.Message
- func IDNotIn(ids ...int64) predicate.Message
- func Not(p predicate.Message) predicate.Message
- func Or(predicates ...predicate.Message) predicate.Message
- func Text(v string) predicate.Message
- func TextContains(v string) predicate.Message
- func TextContainsFold(v string) predicate.Message
- func TextEQ(v string) predicate.Message
- func TextEqualFold(v string) predicate.Message
- func TextGT(v string) predicate.Message
- func TextGTE(v string) predicate.Message
- func TextHasPrefix(v string) predicate.Message
- func TextHasSuffix(v string) predicate.Message
- func TextIn(vs ...string) predicate.Message
- func TextLT(v string) predicate.Message
- func TextLTE(v string) predicate.Message
- func TextNEQ(v string) predicate.Message
- func TextNotIn(vs ...string) predicate.Message
- func Timestamp(v time.Time) predicate.Message
- func TimestampEQ(v time.Time) predicate.Message
- func TimestampGT(v time.Time) predicate.Message
- func TimestampGTE(v time.Time) predicate.Message
- func TimestampIn(vs ...time.Time) predicate.Message
- func TimestampLT(v time.Time) predicate.Message
- func TimestampLTE(v time.Time) predicate.Message
- func TimestampNEQ(v time.Time) predicate.Message
- func TimestampNotIn(vs ...time.Time) predicate.Message
- func UserID(v int64) predicate.Message
- func UserIDEQ(v int64) predicate.Message
- func UserIDIn(vs ...int64) predicate.Message
- func UserIDNEQ(v int64) predicate.Message
- func UserIDNotIn(vs ...int64) predicate.Message
- func ValidColumn(column string) bool
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldChatID, FieldUserID, FieldText, FieldTimestamp, }
Columns holds all SQL columns for message fields.
Functions ¶
func ChatID ¶
ChatID applies equality check predicate on the "chatID" field. It's identical to ChatIDEQ.
func ChatIDNotIn ¶
ChatIDNotIn applies the NotIn predicate on the "chatID" field.
func HasChatWith ¶
HasChatWith applies the HasEdge predicate on the "chat" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func TextContains ¶
TextContains applies the Contains predicate on the "text" field.
func TextContainsFold ¶
TextContainsFold applies the ContainsFold predicate on the "text" field.
func TextEqualFold ¶
TextEqualFold applies the EqualFold predicate on the "text" field.
func TextHasPrefix ¶
TextHasPrefix applies the HasPrefix predicate on the "text" field.
func TextHasSuffix ¶
TextHasSuffix applies the HasSuffix predicate on the "text" field.
func Timestamp ¶
Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.
func TimestampEQ ¶
TimestampEQ applies the EQ predicate on the "timestamp" field.
func TimestampGT ¶
TimestampGT applies the GT predicate on the "timestamp" field.
func TimestampGTE ¶
TimestampGTE applies the GTE predicate on the "timestamp" field.
func TimestampIn ¶
TimestampIn applies the In predicate on the "timestamp" field.
func TimestampLT ¶
TimestampLT applies the LT predicate on the "timestamp" field.
func TimestampLTE ¶
TimestampLTE applies the LTE predicate on the "timestamp" field.
func TimestampNEQ ¶
TimestampNEQ applies the NEQ predicate on the "timestamp" field.
func TimestampNotIn ¶
TimestampNotIn applies the NotIn predicate on the "timestamp" field.
func UserID ¶
UserID applies equality check predicate on the "userID" field. It's identical to UserIDEQ.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "userID" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.