Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.SentMessages) predicate.SentMessages
- func ChatID(v int64) predicate.SentMessages
- func ChatIDEQ(v int64) predicate.SentMessages
- func ChatIDGT(v int64) predicate.SentMessages
- func ChatIDGTE(v int64) predicate.SentMessages
- func ChatIDIn(vs ...int64) predicate.SentMessages
- func ChatIDLT(v int64) predicate.SentMessages
- func ChatIDLTE(v int64) predicate.SentMessages
- func ChatIDNEQ(v int64) predicate.SentMessages
- func ChatIDNotIn(vs ...int64) predicate.SentMessages
- func CreatedAt(v int64) predicate.SentMessages
- func CreatedAtEQ(v int64) predicate.SentMessages
- func CreatedAtGT(v int64) predicate.SentMessages
- func CreatedAtGTE(v int64) predicate.SentMessages
- func CreatedAtIn(vs ...int64) predicate.SentMessages
- func CreatedAtLT(v int64) predicate.SentMessages
- func CreatedAtLTE(v int64) predicate.SentMessages
- func CreatedAtNEQ(v int64) predicate.SentMessages
- func CreatedAtNotIn(vs ...int64) predicate.SentMessages
- func FromPlatform(v int) predicate.SentMessages
- func FromPlatformEQ(v int) predicate.SentMessages
- func FromPlatformGT(v int) predicate.SentMessages
- func FromPlatformGTE(v int) predicate.SentMessages
- func FromPlatformIn(vs ...int) predicate.SentMessages
- func FromPlatformLT(v int) predicate.SentMessages
- func FromPlatformLTE(v int) predicate.SentMessages
- func FromPlatformNEQ(v int) predicate.SentMessages
- func FromPlatformNotIn(vs ...int) predicate.SentMessages
- func ID(id uuid.UUID) predicate.SentMessages
- func IDEQ(id uuid.UUID) predicate.SentMessages
- func IDGT(id uuid.UUID) predicate.SentMessages
- func IDGTE(id uuid.UUID) predicate.SentMessages
- func IDIn(ids ...uuid.UUID) predicate.SentMessages
- func IDLT(id uuid.UUID) predicate.SentMessages
- func IDLTE(id uuid.UUID) predicate.SentMessages
- func IDNEQ(id uuid.UUID) predicate.SentMessages
- func IDNotIn(ids ...uuid.UUID) predicate.SentMessages
- func IsPinned(v bool) predicate.SentMessages
- func IsPinnedEQ(v bool) predicate.SentMessages
- func IsPinnedNEQ(v bool) predicate.SentMessages
- func MessageID(v int) predicate.SentMessages
- func MessageIDEQ(v int) predicate.SentMessages
- func MessageIDGT(v int) predicate.SentMessages
- func MessageIDGTE(v int) predicate.SentMessages
- func MessageIDIn(vs ...int) predicate.SentMessages
- func MessageIDLT(v int) predicate.SentMessages
- func MessageIDLTE(v int) predicate.SentMessages
- func MessageIDNEQ(v int) predicate.SentMessages
- func MessageIDNotIn(vs ...int) predicate.SentMessages
- func MessageType(v int) predicate.SentMessages
- func MessageTypeEQ(v int) predicate.SentMessages
- func MessageTypeGT(v int) predicate.SentMessages
- func MessageTypeGTE(v int) predicate.SentMessages
- func MessageTypeIn(vs ...int) predicate.SentMessages
- func MessageTypeLT(v int) predicate.SentMessages
- func MessageTypeLTE(v int) predicate.SentMessages
- func MessageTypeNEQ(v int) predicate.SentMessages
- func MessageTypeNotIn(vs ...int) predicate.SentMessages
- func Not(p predicate.SentMessages) predicate.SentMessages
- func Or(predicates ...predicate.SentMessages) predicate.SentMessages
- func Text(v string) predicate.SentMessages
- func TextContains(v string) predicate.SentMessages
- func TextContainsFold(v string) predicate.SentMessages
- func TextEQ(v string) predicate.SentMessages
- func TextEqualFold(v string) predicate.SentMessages
- func TextGT(v string) predicate.SentMessages
- func TextGTE(v string) predicate.SentMessages
- func TextHasPrefix(v string) predicate.SentMessages
- func TextHasSuffix(v string) predicate.SentMessages
- func TextIn(vs ...string) predicate.SentMessages
- func TextLT(v string) predicate.SentMessages
- func TextLTE(v string) predicate.SentMessages
- func TextNEQ(v string) predicate.SentMessages
- func TextNotIn(vs ...string) predicate.SentMessages
- func UpdatedAt(v int64) predicate.SentMessages
- func UpdatedAtEQ(v int64) predicate.SentMessages
- func UpdatedAtGT(v int64) predicate.SentMessages
- func UpdatedAtGTE(v int64) predicate.SentMessages
- func UpdatedAtIn(vs ...int64) predicate.SentMessages
- func UpdatedAtLT(v int64) predicate.SentMessages
- func UpdatedAtLTE(v int64) predicate.SentMessages
- func UpdatedAtNEQ(v int64) predicate.SentMessages
- func UpdatedAtNotIn(vs ...int64) predicate.SentMessages
- func ValidColumn(column string) bool
- type OrderOption
- func ByChatID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByFromPlatform(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsPinned(opts ...sql.OrderTermOption) OrderOption
- func ByMessageID(opts ...sql.OrderTermOption) OrderOption
- func ByMessageType(opts ...sql.OrderTermOption) OrderOption
- func ByText(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the sentmessages type in the database. Label = "sent_messages" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldChatID holds the string denoting the chat_id field in the database. FieldChatID = "chat_id" // FieldMessageID holds the string denoting the message_id field in the database. FieldMessageID = "message_id" // FieldText holds the string denoting the text field in the database. FieldText = "text" // FieldIsPinned holds the string denoting the is_pinned field in the database. FieldIsPinned = "is_pinned" // FieldFromPlatform holds the string denoting the from_platform field in the database. FieldFromPlatform = "from_platform" // FieldMessageType holds the string denoting the message_type field in the database. FieldMessageType = "message_type" // 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" // Table holds the table name of the sentmessages in the database. Table = "sent_messages" )
Variables ¶
var ( // DefaultChatID holds the default value on creation for the "chat_id" field. DefaultChatID int64 // DefaultMessageID holds the default value on creation for the "message_id" field. DefaultMessageID int // DefaultText holds the default value on creation for the "text" field. DefaultText string // DefaultIsPinned holds the default value on creation for the "is_pinned" field. DefaultIsPinned bool // DefaultFromPlatform holds the default value on creation for the "from_platform" field. DefaultFromPlatform int // DefaultMessageType holds the default value on creation for the "message_type" field. DefaultMessageType int // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() int64 // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() int64 // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldChatID, FieldMessageID, FieldText, FieldIsPinned, FieldFromPlatform, FieldMessageType, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for sentmessages fields.
Functions ¶
func And ¶
func And(predicates ...predicate.SentMessages) predicate.SentMessages
And groups predicates with the AND operator between them.
func ChatID ¶
func ChatID(v int64) predicate.SentMessages
ChatID applies equality check predicate on the "chat_id" field. It's identical to ChatIDEQ.
func ChatIDEQ ¶
func ChatIDEQ(v int64) predicate.SentMessages
ChatIDEQ applies the EQ predicate on the "chat_id" field.
func ChatIDGT ¶
func ChatIDGT(v int64) predicate.SentMessages
ChatIDGT applies the GT predicate on the "chat_id" field.
func ChatIDGTE ¶
func ChatIDGTE(v int64) predicate.SentMessages
ChatIDGTE applies the GTE predicate on the "chat_id" field.
func ChatIDIn ¶
func ChatIDIn(vs ...int64) predicate.SentMessages
ChatIDIn applies the In predicate on the "chat_id" field.
func ChatIDLT ¶
func ChatIDLT(v int64) predicate.SentMessages
ChatIDLT applies the LT predicate on the "chat_id" field.
func ChatIDLTE ¶
func ChatIDLTE(v int64) predicate.SentMessages
ChatIDLTE applies the LTE predicate on the "chat_id" field.
func ChatIDNEQ ¶
func ChatIDNEQ(v int64) predicate.SentMessages
ChatIDNEQ applies the NEQ predicate on the "chat_id" field.
func ChatIDNotIn ¶
func ChatIDNotIn(vs ...int64) predicate.SentMessages
ChatIDNotIn applies the NotIn predicate on the "chat_id" field.
func CreatedAt ¶
func CreatedAt(v int64) predicate.SentMessages
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v int64) predicate.SentMessages
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v int64) predicate.SentMessages
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v int64) predicate.SentMessages
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...int64) predicate.SentMessages
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v int64) predicate.SentMessages
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v int64) predicate.SentMessages
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v int64) predicate.SentMessages
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...int64) predicate.SentMessages
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func FromPlatform ¶
func FromPlatform(v int) predicate.SentMessages
FromPlatform applies equality check predicate on the "from_platform" field. It's identical to FromPlatformEQ.
func FromPlatformEQ ¶
func FromPlatformEQ(v int) predicate.SentMessages
FromPlatformEQ applies the EQ predicate on the "from_platform" field.
func FromPlatformGT ¶
func FromPlatformGT(v int) predicate.SentMessages
FromPlatformGT applies the GT predicate on the "from_platform" field.
func FromPlatformGTE ¶
func FromPlatformGTE(v int) predicate.SentMessages
FromPlatformGTE applies the GTE predicate on the "from_platform" field.
func FromPlatformIn ¶
func FromPlatformIn(vs ...int) predicate.SentMessages
FromPlatformIn applies the In predicate on the "from_platform" field.
func FromPlatformLT ¶
func FromPlatformLT(v int) predicate.SentMessages
FromPlatformLT applies the LT predicate on the "from_platform" field.
func FromPlatformLTE ¶
func FromPlatformLTE(v int) predicate.SentMessages
FromPlatformLTE applies the LTE predicate on the "from_platform" field.
func FromPlatformNEQ ¶
func FromPlatformNEQ(v int) predicate.SentMessages
FromPlatformNEQ applies the NEQ predicate on the "from_platform" field.
func FromPlatformNotIn ¶
func FromPlatformNotIn(vs ...int) predicate.SentMessages
FromPlatformNotIn applies the NotIn predicate on the "from_platform" field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.SentMessages
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.SentMessages
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.SentMessages
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.SentMessages
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.SentMessages
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.SentMessages
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.SentMessages
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.SentMessages
IDNotIn applies the NotIn predicate on the ID field.
func IsPinned ¶
func IsPinned(v bool) predicate.SentMessages
IsPinned applies equality check predicate on the "is_pinned" field. It's identical to IsPinnedEQ.
func IsPinnedEQ ¶
func IsPinnedEQ(v bool) predicate.SentMessages
IsPinnedEQ applies the EQ predicate on the "is_pinned" field.
func IsPinnedNEQ ¶
func IsPinnedNEQ(v bool) predicate.SentMessages
IsPinnedNEQ applies the NEQ predicate on the "is_pinned" field.
func MessageID ¶
func MessageID(v int) predicate.SentMessages
MessageID applies equality check predicate on the "message_id" field. It's identical to MessageIDEQ.
func MessageIDEQ ¶
func MessageIDEQ(v int) predicate.SentMessages
MessageIDEQ applies the EQ predicate on the "message_id" field.
func MessageIDGT ¶
func MessageIDGT(v int) predicate.SentMessages
MessageIDGT applies the GT predicate on the "message_id" field.
func MessageIDGTE ¶
func MessageIDGTE(v int) predicate.SentMessages
MessageIDGTE applies the GTE predicate on the "message_id" field.
func MessageIDIn ¶
func MessageIDIn(vs ...int) predicate.SentMessages
MessageIDIn applies the In predicate on the "message_id" field.
func MessageIDLT ¶
func MessageIDLT(v int) predicate.SentMessages
MessageIDLT applies the LT predicate on the "message_id" field.
func MessageIDLTE ¶
func MessageIDLTE(v int) predicate.SentMessages
MessageIDLTE applies the LTE predicate on the "message_id" field.
func MessageIDNEQ ¶
func MessageIDNEQ(v int) predicate.SentMessages
MessageIDNEQ applies the NEQ predicate on the "message_id" field.
func MessageIDNotIn ¶
func MessageIDNotIn(vs ...int) predicate.SentMessages
MessageIDNotIn applies the NotIn predicate on the "message_id" field.
func MessageType ¶
func MessageType(v int) predicate.SentMessages
MessageType applies equality check predicate on the "message_type" field. It's identical to MessageTypeEQ.
func MessageTypeEQ ¶
func MessageTypeEQ(v int) predicate.SentMessages
MessageTypeEQ applies the EQ predicate on the "message_type" field.
func MessageTypeGT ¶
func MessageTypeGT(v int) predicate.SentMessages
MessageTypeGT applies the GT predicate on the "message_type" field.
func MessageTypeGTE ¶
func MessageTypeGTE(v int) predicate.SentMessages
MessageTypeGTE applies the GTE predicate on the "message_type" field.
func MessageTypeIn ¶
func MessageTypeIn(vs ...int) predicate.SentMessages
MessageTypeIn applies the In predicate on the "message_type" field.
func MessageTypeLT ¶
func MessageTypeLT(v int) predicate.SentMessages
MessageTypeLT applies the LT predicate on the "message_type" field.
func MessageTypeLTE ¶
func MessageTypeLTE(v int) predicate.SentMessages
MessageTypeLTE applies the LTE predicate on the "message_type" field.
func MessageTypeNEQ ¶
func MessageTypeNEQ(v int) predicate.SentMessages
MessageTypeNEQ applies the NEQ predicate on the "message_type" field.
func MessageTypeNotIn ¶
func MessageTypeNotIn(vs ...int) predicate.SentMessages
MessageTypeNotIn applies the NotIn predicate on the "message_type" field.
func Not ¶
func Not(p predicate.SentMessages) predicate.SentMessages
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.SentMessages) predicate.SentMessages
Or groups predicates with the OR operator between them.
func Text ¶
func Text(v string) predicate.SentMessages
Text applies equality check predicate on the "text" field. It's identical to TextEQ.
func TextContains ¶
func TextContains(v string) predicate.SentMessages
TextContains applies the Contains predicate on the "text" field.
func TextContainsFold ¶
func TextContainsFold(v string) predicate.SentMessages
TextContainsFold applies the ContainsFold predicate on the "text" field.
func TextEQ ¶
func TextEQ(v string) predicate.SentMessages
TextEQ applies the EQ predicate on the "text" field.
func TextEqualFold ¶
func TextEqualFold(v string) predicate.SentMessages
TextEqualFold applies the EqualFold predicate on the "text" field.
func TextGT ¶
func TextGT(v string) predicate.SentMessages
TextGT applies the GT predicate on the "text" field.
func TextGTE ¶
func TextGTE(v string) predicate.SentMessages
TextGTE applies the GTE predicate on the "text" field.
func TextHasPrefix ¶
func TextHasPrefix(v string) predicate.SentMessages
TextHasPrefix applies the HasPrefix predicate on the "text" field.
func TextHasSuffix ¶
func TextHasSuffix(v string) predicate.SentMessages
TextHasSuffix applies the HasSuffix predicate on the "text" field.
func TextIn ¶
func TextIn(vs ...string) predicate.SentMessages
TextIn applies the In predicate on the "text" field.
func TextLT ¶
func TextLT(v string) predicate.SentMessages
TextLT applies the LT predicate on the "text" field.
func TextLTE ¶
func TextLTE(v string) predicate.SentMessages
TextLTE applies the LTE predicate on the "text" field.
func TextNEQ ¶
func TextNEQ(v string) predicate.SentMessages
TextNEQ applies the NEQ predicate on the "text" field.
func TextNotIn ¶
func TextNotIn(vs ...string) predicate.SentMessages
TextNotIn applies the NotIn predicate on the "text" field.
func UpdatedAt ¶
func UpdatedAt(v int64) predicate.SentMessages
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v int64) predicate.SentMessages
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v int64) predicate.SentMessages
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v int64) predicate.SentMessages
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...int64) predicate.SentMessages
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v int64) predicate.SentMessages
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v int64) predicate.SentMessages
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v int64) predicate.SentMessages
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...int64) predicate.SentMessages
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 SentMessages queries.
func ByChatID ¶
func ByChatID(opts ...sql.OrderTermOption) OrderOption
ByChatID orders the results by the chat_id field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByFromPlatform ¶
func ByFromPlatform(opts ...sql.OrderTermOption) OrderOption
ByFromPlatform orders the results by the from_platform field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIsPinned ¶
func ByIsPinned(opts ...sql.OrderTermOption) OrderOption
ByIsPinned orders the results by the is_pinned field.
func ByMessageID ¶
func ByMessageID(opts ...sql.OrderTermOption) OrderOption
ByMessageID orders the results by the message_id field.
func ByMessageType ¶
func ByMessageType(opts ...sql.OrderTermOption) OrderOption
ByMessageType orders the results by the message_type field.
func ByText ¶
func ByText(opts ...sql.OrderTermOption) OrderOption
ByText orders the results by the text field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.