chat

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: 3 Imported by: 0

Documentation

Index

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 And

func And(predicates ...predicate.Chat) predicate.Chat

And groups predicates with the AND operator between them.

func HasMessages

func HasMessages() predicate.Chat

HasMessages applies the HasEdge predicate on the "messages" edge.

func HasMessagesWith

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

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

func HasOwner

func HasOwner() predicate.Chat

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.User) predicate.Chat

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

func ID

func ID(id int64) predicate.Chat

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Chat

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Chat

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Chat

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Chat

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Chat

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Chat

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func OwnerID

func OwnerID(v int64) predicate.Chat

OwnerID applies equality check predicate on the "ownerID" field. It's identical to OwnerIDEQ.

func OwnerIDEQ

func OwnerIDEQ(v int64) predicate.Chat

OwnerIDEQ applies the EQ predicate on the "ownerID" field.

func OwnerIDIn

func OwnerIDIn(vs ...int64) predicate.Chat

OwnerIDIn applies the In predicate on the "ownerID" field.

func OwnerIDNEQ

func OwnerIDNEQ(v int64) predicate.Chat

OwnerIDNEQ applies the NEQ predicate on the "ownerID" field.

func OwnerIDNotIn

func OwnerIDNotIn(vs ...int64) predicate.Chat

OwnerIDNotIn applies the NotIn predicate on the "ownerID" 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