Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Chat) predicate.Chat
- func HasMessages() predicate.Chat
- func HasMessagesWith(preds ...predicate.Message) predicate.Chat
- func HasOwner() predicate.Chat
- func HasOwnerWith(preds ...predicate.User) predicate.Chat
- func ID(id int64) predicate.Chat
- func IDEQ(id int64) predicate.Chat
- func IDGT(id int64) predicate.Chat
- func IDGTE(id int64) predicate.Chat
- func IDIn(ids ...int64) predicate.Chat
- func IDLT(id int64) predicate.Chat
- func IDLTE(id int64) predicate.Chat
- func IDNEQ(id int64) predicate.Chat
- func IDNotIn(ids ...int64) predicate.Chat
- func Not(p predicate.Chat) predicate.Chat
- func Or(predicates ...predicate.Chat) predicate.Chat
- func OwnerID(v int64) predicate.Chat
- func OwnerIDEQ(v int64) predicate.Chat
- func OwnerIDIn(vs ...int64) predicate.Chat
- func OwnerIDNEQ(v int64) predicate.Chat
- func OwnerIDNotIn(vs ...int64) predicate.Chat
- func ValidColumn(column string) bool
Constants ¶
View Source
const ( // Label holds the string label denoting the chat type in the database. Label = "chat" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldOwnerID holds the string denoting the ownerid field in the database. FieldOwnerID = "owner_id" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // EdgeMessages holds the string denoting the messages edge name in mutations. EdgeMessages = "messages" // Table holds the table name of the chat in the database. Table = "chats" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "chats" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. OwnerInverseTable = "users" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "owner_id" // MessagesTable is the table that holds the messages relation/edge. MessagesTable = "messages" // MessagesInverseTable is the table name for the Message entity. // It exists in this package in order to avoid circular dependency with the "message" package. MessagesInverseTable = "messages" // MessagesColumn is the table column denoting the messages relation/edge. MessagesColumn = "chat_id" )
Variables ¶
View Source
var Columns = []string{ FieldID, FieldOwnerID, }
Columns holds all SQL columns for chat fields.
Functions ¶
func HasMessages ¶
HasMessages applies the HasEdge predicate on the "messages" edge.
func HasMessagesWith ¶
HasMessagesWith applies the HasEdge predicate on the "messages" edge with a given conditions (other predicates).
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func OwnerID ¶
OwnerID applies equality check predicate on the "ownerID" field. It's identical to OwnerIDEQ.
func OwnerIDNEQ ¶
OwnerIDNEQ applies the NEQ predicate on the "ownerID" field.
func OwnerIDNotIn ¶
OwnerIDNotIn applies the NotIn predicate on the "ownerID" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.