package
0.0.0-20240406232500-6a612345b654
Repository: https://github.com/kayprogrammer/socialnet-v4.git
Documentation: pkg.go.dev

# Functions

And groups predicates with the AND operator between them.
ByChatField orders the results by chat field.
ByChatID orders the results by the chat_id field.
ByCreatedAt orders the results by the created_at field.
ByFileField orders the results by file field.
ByFileID orders the results by the file_id field.
ByID orders the results by the id field.
BySenderField orders the results by sender field.
BySenderID orders the results by the sender_id field.
ByText orders the results by the text field.
ByUpdatedAt orders the results by the updated_at field.
ChatID applies equality check predicate on the "chat_id" field.
ChatIDEQ applies the EQ predicate on the "chat_id" field.
ChatIDIn applies the In predicate on the "chat_id" field.
ChatIDNEQ applies the NEQ predicate on the "chat_id" field.
ChatIDNotIn applies the NotIn predicate on the "chat_id" field.
CreatedAt applies equality check predicate on the "created_at" field.
CreatedAtEQ applies the EQ predicate on the "created_at" field.
CreatedAtGT applies the GT predicate on the "created_at" field.
CreatedAtGTE applies the GTE predicate on the "created_at" field.
CreatedAtIn applies the In predicate on the "created_at" field.
CreatedAtLT applies the LT predicate on the "created_at" field.
CreatedAtLTE applies the LTE predicate on the "created_at" field.
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
FileID applies equality check predicate on the "file_id" field.
FileIDEQ applies the EQ predicate on the "file_id" field.
FileIDIn applies the In predicate on the "file_id" field.
FileIDIsNil applies the IsNil predicate on the "file_id" field.
FileIDNEQ applies the NEQ predicate on the "file_id" field.
FileIDNotIn applies the NotIn predicate on the "file_id" field.
FileIDNotNil applies the NotNil predicate on the "file_id" field.
HasChat applies the HasEdge predicate on the "chat" edge.
HasChatWith applies the HasEdge predicate on the "chat" edge with a given conditions (other predicates).
HasFile applies the HasEdge predicate on the "file" edge.
HasFileWith applies the HasEdge predicate on the "file" edge with a given conditions (other predicates).
HasSender applies the HasEdge predicate on the "sender" edge.
HasSenderWith applies the HasEdge predicate on the "sender" edge with a given conditions (other predicates).
ID filters vertices based on their ID field.
IDEQ applies the EQ predicate on the ID field.
IDGT applies the GT predicate on the ID field.
IDGTE applies the GTE predicate on the ID field.
IDIn applies the In predicate on the ID field.
IDLT applies the LT predicate on the ID field.
IDLTE applies the LTE predicate on the ID field.
IDNEQ applies the NEQ predicate on the ID field.
IDNotIn applies the NotIn predicate on the ID field.
Not applies the not operator on the given predicate.
Or groups predicates with the OR operator between them.
SenderID applies equality check predicate on the "sender_id" field.
SenderIDEQ applies the EQ predicate on the "sender_id" field.
SenderIDIn applies the In predicate on the "sender_id" field.
SenderIDNEQ applies the NEQ predicate on the "sender_id" field.
SenderIDNotIn applies the NotIn predicate on the "sender_id" field.
Text applies equality check predicate on the "text" field.
TextContains applies the Contains predicate on the "text" field.
TextContainsFold applies the ContainsFold predicate on the "text" field.
TextEQ applies the EQ predicate on the "text" field.
TextEqualFold applies the EqualFold predicate on the "text" field.
TextGT applies the GT predicate on the "text" field.
TextGTE applies the GTE predicate on the "text" field.
TextHasPrefix applies the HasPrefix predicate on the "text" field.
TextHasSuffix applies the HasSuffix predicate on the "text" field.
TextIn applies the In predicate on the "text" field.
TextIsNil applies the IsNil predicate on the "text" field.
TextLT applies the LT predicate on the "text" field.
TextLTE applies the LTE predicate on the "text" field.
TextNEQ applies the NEQ predicate on the "text" field.
TextNotIn applies the NotIn predicate on the "text" field.
TextNotNil applies the NotNil predicate on the "text" field.
UpdatedAt applies equality check predicate on the "updated_at" field.
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
UpdatedAtGT applies the GT predicate on the "updated_at" field.
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
UpdatedAtIn applies the In predicate on the "updated_at" field.
UpdatedAtLT applies the LT predicate on the "updated_at" field.
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
ValidColumn reports if the column name is valid (part of the table columns).

# Constants

ChatColumn is the table column denoting the chat relation/edge.
ChatInverseTable is the table name for the Chat entity.
ChatTable is the table that holds the chat relation/edge.
EdgeChat holds the string denoting the chat edge name in mutations.
EdgeFile holds the string denoting the file edge name in mutations.
EdgeSender holds the string denoting the sender edge name in mutations.
FieldChatID holds the string denoting the chat_id field in the database.
FieldCreatedAt holds the string denoting the created_at field in the database.
FieldFileID holds the string denoting the file_id field in the database.
FieldID holds the string denoting the id field in the database.
FieldSenderID holds the string denoting the sender_id field in the database.
FieldText holds the string denoting the text field in the database.
FieldUpdatedAt holds the string denoting the updated_at field in the database.
FileColumn is the table column denoting the file relation/edge.
FileInverseTable is the table name for the File entity.
FileTable is the table that holds the file relation/edge.
Label holds the string label denoting the message type in the database.
SenderColumn is the table column denoting the sender relation/edge.
SenderInverseTable is the table name for the User entity.
SenderTable is the table that holds the sender relation/edge.
Table holds the table name of the message in the database.

# Variables

Columns holds all SQL columns for message fields.
DefaultCreatedAt holds the default value on creation for the "created_at" field.
DefaultID holds the default value on creation for the "id" field.
DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.

# Type aliases

OrderOption defines the ordering options for the Message queries.