Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Chat) predicate.Chat
- func CreatedAt(v time.Time) predicate.Chat
- func CreatedAtEQ(v time.Time) predicate.Chat
- func CreatedAtGT(v time.Time) predicate.Chat
- func CreatedAtGTE(v time.Time) predicate.Chat
- func CreatedAtIn(vs ...time.Time) predicate.Chat
- func CreatedAtLT(v time.Time) predicate.Chat
- func CreatedAtLTE(v time.Time) predicate.Chat
- func CreatedAtNEQ(v time.Time) predicate.Chat
- func CreatedAtNotIn(vs ...time.Time) predicate.Chat
- func CtypeEQ(v Ctype) predicate.Chat
- func CtypeIn(vs ...Ctype) predicate.Chat
- func CtypeNEQ(v Ctype) predicate.Chat
- func CtypeNotIn(vs ...Ctype) predicate.Chat
- func CtypeValidator(c Ctype) error
- func Description(v string) predicate.Chat
- func DescriptionContains(v string) predicate.Chat
- func DescriptionContainsFold(v string) predicate.Chat
- func DescriptionEQ(v string) predicate.Chat
- func DescriptionEqualFold(v string) predicate.Chat
- func DescriptionGT(v string) predicate.Chat
- func DescriptionGTE(v string) predicate.Chat
- func DescriptionHasPrefix(v string) predicate.Chat
- func DescriptionHasSuffix(v string) predicate.Chat
- func DescriptionIn(vs ...string) predicate.Chat
- func DescriptionIsNil() predicate.Chat
- func DescriptionLT(v string) predicate.Chat
- func DescriptionLTE(v string) predicate.Chat
- func DescriptionNEQ(v string) predicate.Chat
- func DescriptionNotIn(vs ...string) predicate.Chat
- func DescriptionNotNil() predicate.Chat
- func HasImage() predicate.Chat
- func HasImageWith(preds ...predicate.File) 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 HasUsers() predicate.Chat
- func HasUsersWith(preds ...predicate.User) predicate.Chat
- func ID(id uuid.UUID) predicate.Chat
- func IDEQ(id uuid.UUID) predicate.Chat
- func IDGT(id uuid.UUID) predicate.Chat
- func IDGTE(id uuid.UUID) predicate.Chat
- func IDIn(ids ...uuid.UUID) predicate.Chat
- func IDLT(id uuid.UUID) predicate.Chat
- func IDLTE(id uuid.UUID) predicate.Chat
- func IDNEQ(id uuid.UUID) predicate.Chat
- func IDNotIn(ids ...uuid.UUID) predicate.Chat
- func ImageID(v uuid.UUID) predicate.Chat
- func ImageIDEQ(v uuid.UUID) predicate.Chat
- func ImageIDIn(vs ...uuid.UUID) predicate.Chat
- func ImageIDIsNil() predicate.Chat
- func ImageIDNEQ(v uuid.UUID) predicate.Chat
- func ImageIDNotIn(vs ...uuid.UUID) predicate.Chat
- func ImageIDNotNil() predicate.Chat
- func Name(v string) predicate.Chat
- func NameContains(v string) predicate.Chat
- func NameContainsFold(v string) predicate.Chat
- func NameEQ(v string) predicate.Chat
- func NameEqualFold(v string) predicate.Chat
- func NameGT(v string) predicate.Chat
- func NameGTE(v string) predicate.Chat
- func NameHasPrefix(v string) predicate.Chat
- func NameHasSuffix(v string) predicate.Chat
- func NameIn(vs ...string) predicate.Chat
- func NameIsNil() predicate.Chat
- func NameLT(v string) predicate.Chat
- func NameLTE(v string) predicate.Chat
- func NameNEQ(v string) predicate.Chat
- func NameNotIn(vs ...string) predicate.Chat
- func NameNotNil() predicate.Chat
- func Not(p predicate.Chat) predicate.Chat
- func Or(predicates ...predicate.Chat) predicate.Chat
- func OwnerID(v uuid.UUID) predicate.Chat
- func OwnerIDEQ(v uuid.UUID) predicate.Chat
- func OwnerIDIn(vs ...uuid.UUID) predicate.Chat
- func OwnerIDNEQ(v uuid.UUID) predicate.Chat
- func OwnerIDNotIn(vs ...uuid.UUID) predicate.Chat
- func UpdatedAt(v time.Time) predicate.Chat
- func UpdatedAtEQ(v time.Time) predicate.Chat
- func UpdatedAtGT(v time.Time) predicate.Chat
- func UpdatedAtGTE(v time.Time) predicate.Chat
- func UpdatedAtIn(vs ...time.Time) predicate.Chat
- func UpdatedAtLT(v time.Time) predicate.Chat
- func UpdatedAtLTE(v time.Time) predicate.Chat
- func UpdatedAtNEQ(v time.Time) predicate.Chat
- func UpdatedAtNotIn(vs ...time.Time) predicate.Chat
- func ValidColumn(column string) bool
- type Ctype
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCtype(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByImageField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByImageID(opts ...sql.OrderTermOption) OrderOption
- func ByMessages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMessagesCount(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByUsersCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldCtype holds the string denoting the ctype field in the database. FieldCtype = "ctype" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldOwnerID holds the string denoting the owner_id field in the database. FieldOwnerID = "owner_id" // FieldImageID holds the string denoting the image_id field in the database. FieldImageID = "image_id" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // EdgeImage holds the string denoting the image edge name in mutations. EdgeImage = "image" // EdgeUsers holds the string denoting the users edge name in mutations. EdgeUsers = "users" // 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" // ImageTable is the table that holds the image relation/edge. ImageTable = "chats" // ImageInverseTable is the table name for the File entity. // It exists in this package in order to avoid circular dependency with the "file" package. ImageInverseTable = "files" // ImageColumn is the table column denoting the image relation/edge. ImageColumn = "image_id" // UsersTable is the table that holds the users relation/edge. The primary key declared below. UsersTable = "user_member_chats" // UsersInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UsersInverseTable = "users" // 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 ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldName, FieldCtype, FieldDescription, FieldOwnerID, FieldImageID, }
Columns holds all SQL columns for chat fields.
var ( // UsersPrimaryKey and UsersColumn2 are the table columns denoting the // primary key for the users relation (M2M). UsersPrimaryKey = []string{"user_id", "chat_id"} )
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CtypeNotIn ¶
CtypeNotIn applies the NotIn predicate on the "ctype" field.
func CtypeValidator ¶
CtypeValidator is a validator for the "ctype" field enum values. It is called by the builders before save.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasImageWith ¶
HasImageWith applies the HasEdge predicate on the "image" edge with a given conditions (other predicates).
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 HasUsersWith ¶
HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).
func ImageID ¶
ImageID applies equality check predicate on the "image_id" field. It's identical to ImageIDEQ.
func ImageIDIsNil ¶
ImageIDIsNil applies the IsNil predicate on the "image_id" field.
func ImageIDNEQ ¶
ImageIDNEQ applies the NEQ predicate on the "image_id" field.
func ImageIDNotIn ¶
ImageIDNotIn applies the NotIn predicate on the "image_id" field.
func ImageIDNotNil ¶
ImageIDNotNil applies the NotNil predicate on the "image_id" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameNotNil ¶
NameNotNil applies the NotNil predicate on the "name" field.
func OwnerID ¶
OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.
func OwnerIDNEQ ¶
OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.
func OwnerIDNotIn ¶
OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Chat queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCtype ¶
func ByCtype(opts ...sql.OrderTermOption) OrderOption
ByCtype orders the results by the ctype field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByImageField ¶
func ByImageField(field string, opts ...sql.OrderTermOption) OrderOption
ByImageField orders the results by image field.
func ByImageID ¶
func ByImageID(opts ...sql.OrderTermOption) OrderOption
ByImageID orders the results by the image_id field.
func ByMessages ¶
func ByMessages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByMessages orders the results by messages terms.
func ByMessagesCount ¶
func ByMessagesCount(opts ...sql.OrderTermOption) OrderOption
ByMessagesCount orders the results by messages count.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByOwnerField ¶
func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
ByOwnerField orders the results by owner field.
func ByOwnerID ¶
func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
ByOwnerID orders the results by the owner_id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUsers ¶
func ByUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByUsers orders the results by users terms.
func ByUsersCount ¶
func ByUsersCount(opts ...sql.OrderTermOption) OrderOption
ByUsersCount orders the results by users count.