Documentation ¶
Index ¶
- Constants
- Variables
- func AckedMessageIDsIsNil() predicate.Snapshot
- func AckedMessageIDsNotNil() predicate.Snapshot
- func AckedMessagesBefore(v time.Time) predicate.Snapshot
- func AckedMessagesBeforeEQ(v time.Time) predicate.Snapshot
- func AckedMessagesBeforeGT(v time.Time) predicate.Snapshot
- func AckedMessagesBeforeGTE(v time.Time) predicate.Snapshot
- func AckedMessagesBeforeIn(vs ...time.Time) predicate.Snapshot
- func AckedMessagesBeforeLT(v time.Time) predicate.Snapshot
- func AckedMessagesBeforeLTE(v time.Time) predicate.Snapshot
- func AckedMessagesBeforeNEQ(v time.Time) predicate.Snapshot
- func AckedMessagesBeforeNotIn(vs ...time.Time) predicate.Snapshot
- func And(predicates ...predicate.Snapshot) predicate.Snapshot
- func CreatedAt(v time.Time) predicate.Snapshot
- func CreatedAtEQ(v time.Time) predicate.Snapshot
- func CreatedAtGT(v time.Time) predicate.Snapshot
- func CreatedAtGTE(v time.Time) predicate.Snapshot
- func CreatedAtIn(vs ...time.Time) predicate.Snapshot
- func CreatedAtLT(v time.Time) predicate.Snapshot
- func CreatedAtLTE(v time.Time) predicate.Snapshot
- func CreatedAtNEQ(v time.Time) predicate.Snapshot
- func CreatedAtNotIn(vs ...time.Time) predicate.Snapshot
- func ExpiresAt(v time.Time) predicate.Snapshot
- func ExpiresAtEQ(v time.Time) predicate.Snapshot
- func ExpiresAtGT(v time.Time) predicate.Snapshot
- func ExpiresAtGTE(v time.Time) predicate.Snapshot
- func ExpiresAtIn(vs ...time.Time) predicate.Snapshot
- func ExpiresAtLT(v time.Time) predicate.Snapshot
- func ExpiresAtLTE(v time.Time) predicate.Snapshot
- func ExpiresAtNEQ(v time.Time) predicate.Snapshot
- func ExpiresAtNotIn(vs ...time.Time) predicate.Snapshot
- func HasTopic() predicate.Snapshot
- func HasTopicWith(preds ...predicate.Topic) predicate.Snapshot
- func ID(id uuid.UUID) predicate.Snapshot
- func IDEQ(id uuid.UUID) predicate.Snapshot
- func IDGT(id uuid.UUID) predicate.Snapshot
- func IDGTE(id uuid.UUID) predicate.Snapshot
- func IDIn(ids ...uuid.UUID) predicate.Snapshot
- func IDLT(id uuid.UUID) predicate.Snapshot
- func IDLTE(id uuid.UUID) predicate.Snapshot
- func IDNEQ(id uuid.UUID) predicate.Snapshot
- func IDNotIn(ids ...uuid.UUID) predicate.Snapshot
- func LabelsIsNil() predicate.Snapshot
- func LabelsNotNil() predicate.Snapshot
- func Name(v string) predicate.Snapshot
- func NameContains(v string) predicate.Snapshot
- func NameContainsFold(v string) predicate.Snapshot
- func NameEQ(v string) predicate.Snapshot
- func NameEqualFold(v string) predicate.Snapshot
- func NameGT(v string) predicate.Snapshot
- func NameGTE(v string) predicate.Snapshot
- func NameHasPrefix(v string) predicate.Snapshot
- func NameHasSuffix(v string) predicate.Snapshot
- func NameIn(vs ...string) predicate.Snapshot
- func NameLT(v string) predicate.Snapshot
- func NameLTE(v string) predicate.Snapshot
- func NameNEQ(v string) predicate.Snapshot
- func NameNotIn(vs ...string) predicate.Snapshot
- func Not(p predicate.Snapshot) predicate.Snapshot
- func Or(predicates ...predicate.Snapshot) predicate.Snapshot
- func TopicID(v uuid.UUID) predicate.Snapshot
- func TopicIDEQ(v uuid.UUID) predicate.Snapshot
- func TopicIDIn(vs ...uuid.UUID) predicate.Snapshot
- func TopicIDNEQ(v uuid.UUID) predicate.Snapshot
- func TopicIDNotIn(vs ...uuid.UUID) predicate.Snapshot
- func ValidColumn(column string) bool
- type OrderOption
- func ByAckedMessagesBefore(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(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 snapshot type in the database. Label = "snapshot" // 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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldCreatedAt holds the string denoting the createdat field in the database. FieldCreatedAt = "created_at" // FieldExpiresAt holds the string denoting the expiresat field in the database. FieldExpiresAt = "expires_at" // FieldLabels holds the string denoting the labels field in the database. FieldLabels = "labels" // FieldAckedMessagesBefore holds the string denoting the ackedmessagesbefore field in the database. FieldAckedMessagesBefore = "acked_messages_before" // FieldAckedMessageIDs holds the string denoting the ackedmessageids field in the database. FieldAckedMessageIDs = "acked_message_ids" // EdgeTopic holds the string denoting the topic edge name in mutations. EdgeTopic = "topic" // Table holds the table name of the snapshot in the database. Table = "snapshots" // TopicTable is the table that holds the topic relation/edge. TopicTable = "snapshots" // 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 ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultCreatedAt holds the default value on creation for the "createdAt" field. DefaultCreatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldTopicID, FieldName, FieldCreatedAt, FieldExpiresAt, FieldLabels, FieldAckedMessagesBefore, FieldAckedMessageIDs, }
Columns holds all SQL columns for snapshot fields.
Functions ¶
func AckedMessageIDsIsNil ¶
AckedMessageIDsIsNil applies the IsNil predicate on the "ackedMessageIDs" field.
func AckedMessageIDsNotNil ¶
AckedMessageIDsNotNil applies the NotNil predicate on the "ackedMessageIDs" field.
func AckedMessagesBefore ¶
AckedMessagesBefore applies equality check predicate on the "ackedMessagesBefore" field. It's identical to AckedMessagesBeforeEQ.
func AckedMessagesBeforeEQ ¶
AckedMessagesBeforeEQ applies the EQ predicate on the "ackedMessagesBefore" field.
func AckedMessagesBeforeGT ¶
AckedMessagesBeforeGT applies the GT predicate on the "ackedMessagesBefore" field.
func AckedMessagesBeforeGTE ¶
AckedMessagesBeforeGTE applies the GTE predicate on the "ackedMessagesBefore" field.
func AckedMessagesBeforeIn ¶
AckedMessagesBeforeIn applies the In predicate on the "ackedMessagesBefore" field.
func AckedMessagesBeforeLT ¶
AckedMessagesBeforeLT applies the LT predicate on the "ackedMessagesBefore" field.
func AckedMessagesBeforeLTE ¶
AckedMessagesBeforeLTE applies the LTE predicate on the "ackedMessagesBefore" field.
func AckedMessagesBeforeNEQ ¶
AckedMessagesBeforeNEQ applies the NEQ predicate on the "ackedMessagesBefore" field.
func AckedMessagesBeforeNotIn ¶
AckedMessagesBeforeNotIn applies the NotIn predicate on the "ackedMessagesBefore" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "createdAt" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "createdAt" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "createdAt" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "createdAt" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "createdAt" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "createdAt" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.
func ExpiresAt ¶
ExpiresAt applies equality check predicate on the "expiresAt" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
ExpiresAtEQ applies the EQ predicate on the "expiresAt" field.
func ExpiresAtGT ¶
ExpiresAtGT applies the GT predicate on the "expiresAt" field.
func ExpiresAtGTE ¶
ExpiresAtGTE applies the GTE predicate on the "expiresAt" field.
func ExpiresAtIn ¶
ExpiresAtIn applies the In predicate on the "expiresAt" field.
func ExpiresAtLT ¶
ExpiresAtLT applies the LT predicate on the "expiresAt" field.
func ExpiresAtLTE ¶
ExpiresAtLTE applies the LTE predicate on the "expiresAt" field.
func ExpiresAtNEQ ¶
ExpiresAtNEQ applies the NEQ predicate on the "expiresAt" field.
func ExpiresAtNotIn ¶
ExpiresAtNotIn applies the NotIn predicate on the "expiresAt" field.
func HasTopicWith ¶
HasTopicWith applies the HasEdge predicate on the "topic" edge with a given conditions (other predicates).
func LabelsIsNil ¶
LabelsIsNil applies the IsNil predicate on the "labels" field.
func LabelsNotNil ¶
LabelsNotNil applies the NotNil predicate on the "labels" 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 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 Snapshot queries.
func ByAckedMessagesBefore ¶
func ByAckedMessagesBefore(opts ...sql.OrderTermOption) OrderOption
ByAckedMessagesBefore orders the results by the ackedMessagesBefore field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the createdAt field.
func ByExpiresAt ¶
func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
ByExpiresAt orders the results by the expiresAt field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name 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.