Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Message) predicate.Message
- func AttributesIsNil() predicate.Message
- func AttributesNotNil() predicate.Message
- func HasDeliveries() predicate.Message
- func HasDeliveriesWith(preds ...predicate.Delivery) predicate.Message
- func HasTopic() predicate.Message
- func HasTopicWith(preds ...predicate.Topic) predicate.Message
- func ID(id uuid.UUID) predicate.Message
- func IDEQ(id uuid.UUID) predicate.Message
- func IDGT(id uuid.UUID) predicate.Message
- func IDGTE(id uuid.UUID) predicate.Message
- func IDIn(ids ...uuid.UUID) predicate.Message
- func IDLT(id uuid.UUID) predicate.Message
- func IDLTE(id uuid.UUID) predicate.Message
- func IDNEQ(id uuid.UUID) predicate.Message
- func IDNotIn(ids ...uuid.UUID) predicate.Message
- func Not(p predicate.Message) predicate.Message
- func Or(predicates ...predicate.Message) predicate.Message
- func OrderKey(v string) predicate.Message
- func OrderKeyContains(v string) predicate.Message
- func OrderKeyContainsFold(v string) predicate.Message
- func OrderKeyEQ(v string) predicate.Message
- func OrderKeyEqualFold(v string) predicate.Message
- func OrderKeyGT(v string) predicate.Message
- func OrderKeyGTE(v string) predicate.Message
- func OrderKeyHasPrefix(v string) predicate.Message
- func OrderKeyHasSuffix(v string) predicate.Message
- func OrderKeyIn(vs ...string) predicate.Message
- func OrderKeyIsNil() predicate.Message
- func OrderKeyLT(v string) predicate.Message
- func OrderKeyLTE(v string) predicate.Message
- func OrderKeyNEQ(v string) predicate.Message
- func OrderKeyNotIn(vs ...string) predicate.Message
- func OrderKeyNotNil() predicate.Message
- func PublishedAt(v time.Time) predicate.Message
- func PublishedAtEQ(v time.Time) predicate.Message
- func PublishedAtGT(v time.Time) predicate.Message
- func PublishedAtGTE(v time.Time) predicate.Message
- func PublishedAtIn(vs ...time.Time) predicate.Message
- func PublishedAtLT(v time.Time) predicate.Message
- func PublishedAtLTE(v time.Time) predicate.Message
- func PublishedAtNEQ(v time.Time) predicate.Message
- func PublishedAtNotIn(vs ...time.Time) predicate.Message
- func TopicID(v uuid.UUID) predicate.Message
- func TopicIDEQ(v uuid.UUID) predicate.Message
- func TopicIDIn(vs ...uuid.UUID) predicate.Message
- func TopicIDNEQ(v uuid.UUID) predicate.Message
- func TopicIDNotIn(vs ...uuid.UUID) predicate.Message
- func ValidColumn(column string) bool
- type OrderOption
- func ByDeliveries(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByDeliveriesCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOrderKey(opts ...sql.OrderTermOption) OrderOption
- func ByPublishedAt(opts ...sql.OrderTermOption) OrderOption
- func ByTopicField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTopicID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the message type in the database. Label = "message" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTopicID holds the string denoting the topicid field in the database. FieldTopicID = "topic_id" // FieldPayload holds the string denoting the payload field in the database. FieldPayload = "payload" // FieldAttributes holds the string denoting the attributes field in the database. FieldAttributes = "attributes" // FieldPublishedAt holds the string denoting the publishedat field in the database. FieldPublishedAt = "published_at" // FieldOrderKey holds the string denoting the orderkey field in the database. FieldOrderKey = "order_key" // EdgeDeliveries holds the string denoting the deliveries edge name in mutations. EdgeDeliveries = "deliveries" // EdgeTopic holds the string denoting the topic edge name in mutations. EdgeTopic = "topic" // Table holds the table name of the message in the database. Table = "messages" // DeliveriesTable is the table that holds the deliveries relation/edge. DeliveriesTable = "deliveries" // DeliveriesInverseTable is the table name for the Delivery entity. // It exists in this package in order to avoid circular dependency with the "delivery" package. DeliveriesInverseTable = "deliveries" // DeliveriesColumn is the table column denoting the deliveries relation/edge. DeliveriesColumn = "message_id" // TopicTable is the table that holds the topic relation/edge. TopicTable = "messages" // TopicInverseTable is the table name for the Topic entity. // It exists in this package in order to avoid circular dependency with the "topic" package. TopicInverseTable = "topics" // TopicColumn is the table column denoting the topic relation/edge. TopicColumn = "topic_id" )
Variables ¶
var ( // DefaultPublishedAt holds the default value on creation for the "publishedAt" field. DefaultPublishedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldTopicID, FieldPayload, FieldAttributes, FieldPublishedAt, FieldOrderKey, }
Columns holds all SQL columns for message fields.
Functions ¶
func AttributesIsNil ¶
AttributesIsNil applies the IsNil predicate on the "attributes" field.
func AttributesNotNil ¶
AttributesNotNil applies the NotNil predicate on the "attributes" field.
func HasDeliveries ¶
HasDeliveries applies the HasEdge predicate on the "deliveries" edge.
func HasDeliveriesWith ¶
HasDeliveriesWith applies the HasEdge predicate on the "deliveries" edge with a given conditions (other predicates).
func HasTopicWith ¶
HasTopicWith applies the HasEdge predicate on the "topic" edge with a given conditions (other predicates).
func OrderKey ¶
OrderKey applies equality check predicate on the "orderKey" field. It's identical to OrderKeyEQ.
func OrderKeyContains ¶
OrderKeyContains applies the Contains predicate on the "orderKey" field.
func OrderKeyContainsFold ¶
OrderKeyContainsFold applies the ContainsFold predicate on the "orderKey" field.
func OrderKeyEQ ¶
OrderKeyEQ applies the EQ predicate on the "orderKey" field.
func OrderKeyEqualFold ¶
OrderKeyEqualFold applies the EqualFold predicate on the "orderKey" field.
func OrderKeyGT ¶
OrderKeyGT applies the GT predicate on the "orderKey" field.
func OrderKeyGTE ¶
OrderKeyGTE applies the GTE predicate on the "orderKey" field.
func OrderKeyHasPrefix ¶
OrderKeyHasPrefix applies the HasPrefix predicate on the "orderKey" field.
func OrderKeyHasSuffix ¶
OrderKeyHasSuffix applies the HasSuffix predicate on the "orderKey" field.
func OrderKeyIn ¶
OrderKeyIn applies the In predicate on the "orderKey" field.
func OrderKeyIsNil ¶
OrderKeyIsNil applies the IsNil predicate on the "orderKey" field.
func OrderKeyLT ¶
OrderKeyLT applies the LT predicate on the "orderKey" field.
func OrderKeyLTE ¶
OrderKeyLTE applies the LTE predicate on the "orderKey" field.
func OrderKeyNEQ ¶
OrderKeyNEQ applies the NEQ predicate on the "orderKey" field.
func OrderKeyNotIn ¶
OrderKeyNotIn applies the NotIn predicate on the "orderKey" field.
func OrderKeyNotNil ¶
OrderKeyNotNil applies the NotNil predicate on the "orderKey" field.
func PublishedAt ¶
PublishedAt applies equality check predicate on the "publishedAt" field. It's identical to PublishedAtEQ.
func PublishedAtEQ ¶
PublishedAtEQ applies the EQ predicate on the "publishedAt" field.
func PublishedAtGT ¶
PublishedAtGT applies the GT predicate on the "publishedAt" field.
func PublishedAtGTE ¶
PublishedAtGTE applies the GTE predicate on the "publishedAt" field.
func PublishedAtIn ¶
PublishedAtIn applies the In predicate on the "publishedAt" field.
func PublishedAtLT ¶
PublishedAtLT applies the LT predicate on the "publishedAt" field.
func PublishedAtLTE ¶
PublishedAtLTE applies the LTE predicate on the "publishedAt" field.
func PublishedAtNEQ ¶
PublishedAtNEQ applies the NEQ predicate on the "publishedAt" field.
func PublishedAtNotIn ¶
PublishedAtNotIn applies the NotIn predicate on the "publishedAt" field.
func TopicID ¶
TopicID applies equality check predicate on the "topicID" field. It's identical to TopicIDEQ.
func TopicIDNEQ ¶
TopicIDNEQ applies the NEQ predicate on the "topicID" field.
func TopicIDNotIn ¶
TopicIDNotIn applies the NotIn predicate on the "topicID" 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 Message queries.
func ByDeliveries ¶
func ByDeliveries(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByDeliveries orders the results by deliveries terms.
func ByDeliveriesCount ¶
func ByDeliveriesCount(opts ...sql.OrderTermOption) OrderOption
ByDeliveriesCount orders the results by deliveries count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByOrderKey ¶
func ByOrderKey(opts ...sql.OrderTermOption) OrderOption
ByOrderKey orders the results by the orderKey field.
func ByPublishedAt ¶
func ByPublishedAt(opts ...sql.OrderTermOption) OrderOption
ByPublishedAt orders the results by the publishedAt field.
func ByTopicField ¶
func ByTopicField(field string, opts ...sql.OrderTermOption) OrderOption
ByTopicField orders the results by topic field.
func ByTopicID ¶
func ByTopicID(opts ...sql.OrderTermOption) OrderOption
ByTopicID orders the results by the topicID field.