snapshot

package
v0.13.53 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for snapshot fields.

Functions

func AckedMessageIDsIsNil

func AckedMessageIDsIsNil() predicate.Snapshot

AckedMessageIDsIsNil applies the IsNil predicate on the "ackedMessageIDs" field.

func AckedMessageIDsNotNil

func AckedMessageIDsNotNil() predicate.Snapshot

AckedMessageIDsNotNil applies the NotNil predicate on the "ackedMessageIDs" field.

func AckedMessagesBefore

func AckedMessagesBefore(v time.Time) predicate.Snapshot

AckedMessagesBefore applies equality check predicate on the "ackedMessagesBefore" field. It's identical to AckedMessagesBeforeEQ.

func AckedMessagesBeforeEQ

func AckedMessagesBeforeEQ(v time.Time) predicate.Snapshot

AckedMessagesBeforeEQ applies the EQ predicate on the "ackedMessagesBefore" field.

func AckedMessagesBeforeGT

func AckedMessagesBeforeGT(v time.Time) predicate.Snapshot

AckedMessagesBeforeGT applies the GT predicate on the "ackedMessagesBefore" field.

func AckedMessagesBeforeGTE

func AckedMessagesBeforeGTE(v time.Time) predicate.Snapshot

AckedMessagesBeforeGTE applies the GTE predicate on the "ackedMessagesBefore" field.

func AckedMessagesBeforeIn

func AckedMessagesBeforeIn(vs ...time.Time) predicate.Snapshot

AckedMessagesBeforeIn applies the In predicate on the "ackedMessagesBefore" field.

func AckedMessagesBeforeLT

func AckedMessagesBeforeLT(v time.Time) predicate.Snapshot

AckedMessagesBeforeLT applies the LT predicate on the "ackedMessagesBefore" field.

func AckedMessagesBeforeLTE

func AckedMessagesBeforeLTE(v time.Time) predicate.Snapshot

AckedMessagesBeforeLTE applies the LTE predicate on the "ackedMessagesBefore" field.

func AckedMessagesBeforeNEQ

func AckedMessagesBeforeNEQ(v time.Time) predicate.Snapshot

AckedMessagesBeforeNEQ applies the NEQ predicate on the "ackedMessagesBefore" field.

func AckedMessagesBeforeNotIn

func AckedMessagesBeforeNotIn(vs ...time.Time) predicate.Snapshot

AckedMessagesBeforeNotIn applies the NotIn predicate on the "ackedMessagesBefore" field.

func And

func And(predicates ...predicate.Snapshot) predicate.Snapshot

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Snapshot

CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Snapshot

CreatedAtEQ applies the EQ predicate on the "createdAt" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Snapshot

CreatedAtGT applies the GT predicate on the "createdAt" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Snapshot

CreatedAtGTE applies the GTE predicate on the "createdAt" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Snapshot

CreatedAtIn applies the In predicate on the "createdAt" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Snapshot

CreatedAtLT applies the LT predicate on the "createdAt" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Snapshot

CreatedAtLTE applies the LTE predicate on the "createdAt" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Snapshot

CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Snapshot

CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.

func ExpiresAt

func ExpiresAt(v time.Time) predicate.Snapshot

ExpiresAt applies equality check predicate on the "expiresAt" field. It's identical to ExpiresAtEQ.

func ExpiresAtEQ

func ExpiresAtEQ(v time.Time) predicate.Snapshot

ExpiresAtEQ applies the EQ predicate on the "expiresAt" field.

func ExpiresAtGT

func ExpiresAtGT(v time.Time) predicate.Snapshot

ExpiresAtGT applies the GT predicate on the "expiresAt" field.

func ExpiresAtGTE

func ExpiresAtGTE(v time.Time) predicate.Snapshot

ExpiresAtGTE applies the GTE predicate on the "expiresAt" field.

func ExpiresAtIn

func ExpiresAtIn(vs ...time.Time) predicate.Snapshot

ExpiresAtIn applies the In predicate on the "expiresAt" field.

func ExpiresAtLT

func ExpiresAtLT(v time.Time) predicate.Snapshot

ExpiresAtLT applies the LT predicate on the "expiresAt" field.

func ExpiresAtLTE

func ExpiresAtLTE(v time.Time) predicate.Snapshot

ExpiresAtLTE applies the LTE predicate on the "expiresAt" field.

func ExpiresAtNEQ

func ExpiresAtNEQ(v time.Time) predicate.Snapshot

ExpiresAtNEQ applies the NEQ predicate on the "expiresAt" field.

func ExpiresAtNotIn

func ExpiresAtNotIn(vs ...time.Time) predicate.Snapshot

ExpiresAtNotIn applies the NotIn predicate on the "expiresAt" field.

func HasTopic

func HasTopic() predicate.Snapshot

HasTopic applies the HasEdge predicate on the "topic" edge.

func HasTopicWith

func HasTopicWith(preds ...predicate.Topic) predicate.Snapshot

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

func ID

func ID(id uuid.UUID) predicate.Snapshot

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Snapshot

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Snapshot

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Snapshot

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Snapshot

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Snapshot

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Snapshot

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Snapshot

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Snapshot

IDNotIn applies the NotIn predicate on the ID field.

func LabelsIsNil

func LabelsIsNil() predicate.Snapshot

LabelsIsNil applies the IsNil predicate on the "labels" field.

func LabelsNotNil

func LabelsNotNil() predicate.Snapshot

LabelsNotNil applies the NotNil predicate on the "labels" field.

func Name

func Name(v string) predicate.Snapshot

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Snapshot

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Snapshot

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Snapshot

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Snapshot

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Snapshot

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Snapshot

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Snapshot

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Snapshot

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Snapshot

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Snapshot

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Snapshot

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Snapshot

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Snapshot

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Snapshot) predicate.Snapshot

Or groups predicates with the OR operator between them.

func TopicID

func TopicID(v uuid.UUID) predicate.Snapshot

TopicID applies equality check predicate on the "topicID" field. It's identical to TopicIDEQ.

func TopicIDEQ

func TopicIDEQ(v uuid.UUID) predicate.Snapshot

TopicIDEQ applies the EQ predicate on the "topicID" field.

func TopicIDIn

func TopicIDIn(vs ...uuid.UUID) predicate.Snapshot

TopicIDIn applies the In predicate on the "topicID" field.

func TopicIDNEQ

func TopicIDNEQ(v uuid.UUID) predicate.Snapshot

TopicIDNEQ applies the NEQ predicate on the "topicID" field.

func TopicIDNotIn

func TopicIDNotIn(vs ...uuid.UUID) predicate.Snapshot

TopicIDNotIn applies the NotIn predicate on the "topicID" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL