Documentation ¶
Index ¶
- Constants
- Variables
- func Asc(fields ...string) func(*sql.Selector)
- func Desc(fields ...string) func(*sql.Selector)
- func DriverDB(driver dialect.Driver) *sql.DB
- func IsConstraintError(err error) bool
- func IsNotFound(err error) bool
- func IsNotLoaded(err error) bool
- func IsNotSingular(err error) bool
- func IsValidationError(err error) bool
- func MaskNotFound(err error) error
- func NewContext(parent context.Context, c *Client) context.Context
- func NewTxContext(parent context.Context, tx *Tx) context.Context
- type AggregateFunc
- type Client
- func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)
- func (c *Client) Close() error
- func (c *Client) DB() *sql.DB
- func (c *Client) Debug() *Client
- func (c *Client) Dialect() string
- func (c *Client) DoCtxTx(ctx context.Context, opts *sql.TxOptions, ...) error
- func (c *Client) DoCtxTxRetry(ctx context.Context, opts *sql.TxOptions, ...) error
- func (c *Client) DoTx(ctx context.Context, opts *sql.TxOptions, inner func(tx *Tx) error) (finalErr error)
- func (c *Client) Intercept(interceptors ...Interceptor)
- func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error)
- func (c *Client) Tx(ctx context.Context) (*Tx, error)
- func (c *Client) Use(hooks ...Hook)
- type CommitFunc
- type CommitHook
- type Committer
- type ConstraintError
- type Deliveries
- type Delivery
- func (d *Delivery) QueryMessage() *MessageQuery
- func (d *Delivery) QueryNextReady() *DeliveryQuery
- func (d *Delivery) QueryNotBefore() *DeliveryQuery
- func (d *Delivery) QuerySubscription() *SubscriptionQuery
- func (d *Delivery) String() string
- func (d *Delivery) Unwrap() *Delivery
- func (d *Delivery) Update() *DeliveryUpdateOne
- func (d *Delivery) Value(name string) (ent.Value, error)
- type DeliveryClient
- func (c *DeliveryClient) Create() *DeliveryCreate
- func (c *DeliveryClient) CreateBulk(builders ...*DeliveryCreate) *DeliveryCreateBulk
- func (c *DeliveryClient) Delete() *DeliveryDelete
- func (c *DeliveryClient) DeleteOne(d *Delivery) *DeliveryDeleteOne
- func (c *DeliveryClient) DeleteOneID(id uuid.UUID) *DeliveryDeleteOne
- func (c *DeliveryClient) Get(ctx context.Context, id uuid.UUID) (*Delivery, error)
- func (c *DeliveryClient) GetX(ctx context.Context, id uuid.UUID) *Delivery
- func (c *DeliveryClient) Hooks() []Hook
- func (c *DeliveryClient) Intercept(interceptors ...Interceptor)
- func (c *DeliveryClient) Interceptors() []Interceptor
- func (c *DeliveryClient) MapCreateBulk(slice any, setFunc func(*DeliveryCreate, int)) *DeliveryCreateBulk
- func (c *DeliveryClient) Query() *DeliveryQuery
- func (c *DeliveryClient) QueryMessage(d *Delivery) *MessageQuery
- func (c *DeliveryClient) QueryNextReady(d *Delivery) *DeliveryQuery
- func (c *DeliveryClient) QueryNotBefore(d *Delivery) *DeliveryQuery
- func (c *DeliveryClient) QuerySubscription(d *Delivery) *SubscriptionQuery
- func (c *DeliveryClient) Update() *DeliveryUpdate
- func (c *DeliveryClient) UpdateOne(d *Delivery) *DeliveryUpdateOne
- func (c *DeliveryClient) UpdateOneID(id uuid.UUID) *DeliveryUpdateOne
- func (c *DeliveryClient) Use(hooks ...Hook)
- type DeliveryCreate
- func (dc *DeliveryCreate) AddNextReady(d ...*Delivery) *DeliveryCreate
- func (dc *DeliveryCreate) AddNextReadyIDs(ids ...uuid.UUID) *DeliveryCreate
- func (dc *DeliveryCreate) Exec(ctx context.Context) error
- func (dc *DeliveryCreate) ExecX(ctx context.Context)
- func (dc *DeliveryCreate) Mutation() *DeliveryMutation
- func (dc *DeliveryCreate) OnConflict(opts ...sql.ConflictOption) *DeliveryUpsertOne
- func (dc *DeliveryCreate) OnConflictColumns(columns ...string) *DeliveryUpsertOne
- func (dc *DeliveryCreate) Save(ctx context.Context) (*Delivery, error)
- func (dc *DeliveryCreate) SaveX(ctx context.Context) *Delivery
- func (dc *DeliveryCreate) SetAttemptAt(t time.Time) *DeliveryCreate
- func (dc *DeliveryCreate) SetAttempts(i int) *DeliveryCreate
- func (dc *DeliveryCreate) SetCompletedAt(t time.Time) *DeliveryCreate
- func (dc *DeliveryCreate) SetExpiresAt(t time.Time) *DeliveryCreate
- func (dc *DeliveryCreate) SetID(u uuid.UUID) *DeliveryCreate
- func (dc *DeliveryCreate) SetLastAttemptedAt(t time.Time) *DeliveryCreate
- func (dc *DeliveryCreate) SetMessage(m *Message) *DeliveryCreate
- func (dc *DeliveryCreate) SetMessageID(u uuid.UUID) *DeliveryCreate
- func (dc *DeliveryCreate) SetNillableAttemptAt(t *time.Time) *DeliveryCreate
- func (dc *DeliveryCreate) SetNillableAttempts(i *int) *DeliveryCreate
- func (dc *DeliveryCreate) SetNillableCompletedAt(t *time.Time) *DeliveryCreate
- func (dc *DeliveryCreate) SetNillableID(u *uuid.UUID) *DeliveryCreate
- func (dc *DeliveryCreate) SetNillableLastAttemptedAt(t *time.Time) *DeliveryCreate
- func (dc *DeliveryCreate) SetNillableNotBeforeID(u *uuid.UUID) *DeliveryCreate
- func (dc *DeliveryCreate) SetNillablePublishedAt(t *time.Time) *DeliveryCreate
- func (dc *DeliveryCreate) SetNotBefore(d *Delivery) *DeliveryCreate
- func (dc *DeliveryCreate) SetNotBeforeID(u uuid.UUID) *DeliveryCreate
- func (dc *DeliveryCreate) SetPublishedAt(t time.Time) *DeliveryCreate
- func (dc *DeliveryCreate) SetSubscription(s *Subscription) *DeliveryCreate
- func (dc *DeliveryCreate) SetSubscriptionID(u uuid.UUID) *DeliveryCreate
- type DeliveryCreateBulk
- func (dcb *DeliveryCreateBulk) Exec(ctx context.Context) error
- func (dcb *DeliveryCreateBulk) ExecX(ctx context.Context)
- func (dcb *DeliveryCreateBulk) OnConflict(opts ...sql.ConflictOption) *DeliveryUpsertBulk
- func (dcb *DeliveryCreateBulk) OnConflictColumns(columns ...string) *DeliveryUpsertBulk
- func (dcb *DeliveryCreateBulk) Save(ctx context.Context) ([]*Delivery, error)
- func (dcb *DeliveryCreateBulk) SaveX(ctx context.Context) []*Delivery
- type DeliveryDelete
- type DeliveryDeleteOne
- type DeliveryEdges
- type DeliveryFilter
- func (f *DeliveryFilter) Where(p entql.P)
- func (f *DeliveryFilter) WhereAttemptAt(p entql.TimeP)
- func (f *DeliveryFilter) WhereAttempts(p entql.IntP)
- func (f *DeliveryFilter) WhereCompletedAt(p entql.TimeP)
- func (f *DeliveryFilter) WhereExpiresAt(p entql.TimeP)
- func (f *DeliveryFilter) WhereHasMessage()
- func (f *DeliveryFilter) WhereHasMessageWith(preds ...predicate.Message)
- func (f *DeliveryFilter) WhereHasNextReady()
- func (f *DeliveryFilter) WhereHasNextReadyWith(preds ...predicate.Delivery)
- func (f *DeliveryFilter) WhereHasNotBefore()
- func (f *DeliveryFilter) WhereHasNotBeforeWith(preds ...predicate.Delivery)
- func (f *DeliveryFilter) WhereHasSubscription()
- func (f *DeliveryFilter) WhereHasSubscriptionWith(preds ...predicate.Subscription)
- func (f *DeliveryFilter) WhereID(p entql.ValueP)
- func (f *DeliveryFilter) WhereLastAttemptedAt(p entql.TimeP)
- func (f *DeliveryFilter) WhereMessageID(p entql.ValueP)
- func (f *DeliveryFilter) WhereNotBeforeID(p entql.ValueP)
- func (f *DeliveryFilter) WherePublishedAt(p entql.TimeP)
- func (f *DeliveryFilter) WhereSubscriptionID(p entql.ValueP)
- type DeliveryGroupBy
- func (dgb *DeliveryGroupBy) Aggregate(fns ...AggregateFunc) *DeliveryGroupBy
- func (s *DeliveryGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *DeliveryGroupBy) BoolX(ctx context.Context) bool
- func (s *DeliveryGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *DeliveryGroupBy) BoolsX(ctx context.Context) []bool
- func (s *DeliveryGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *DeliveryGroupBy) Float64X(ctx context.Context) float64
- func (s *DeliveryGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *DeliveryGroupBy) Float64sX(ctx context.Context) []float64
- func (s *DeliveryGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *DeliveryGroupBy) IntX(ctx context.Context) int
- func (s *DeliveryGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *DeliveryGroupBy) IntsX(ctx context.Context) []int
- func (dgb *DeliveryGroupBy) Scan(ctx context.Context, v any) error
- func (s *DeliveryGroupBy) ScanX(ctx context.Context, v any)
- func (s *DeliveryGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *DeliveryGroupBy) StringX(ctx context.Context) string
- func (s *DeliveryGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *DeliveryGroupBy) StringsX(ctx context.Context) []string
- type DeliveryMutation
- func (m *DeliveryMutation) AddAttempts(i int)
- func (m *DeliveryMutation) AddField(name string, value ent.Value) error
- func (m *DeliveryMutation) AddNextReadyIDs(ids ...uuid.UUID)
- func (m *DeliveryMutation) AddedAttempts() (r int, exists bool)
- func (m *DeliveryMutation) AddedEdges() []string
- func (m *DeliveryMutation) AddedField(name string) (ent.Value, bool)
- func (m *DeliveryMutation) AddedFields() []string
- func (m *DeliveryMutation) AddedIDs(name string) []ent.Value
- func (m *DeliveryMutation) AttemptAt() (r time.Time, exists bool)
- func (m *DeliveryMutation) Attempts() (r int, exists bool)
- func (m *DeliveryMutation) ClearCompletedAt()
- func (m *DeliveryMutation) ClearEdge(name string) error
- func (m *DeliveryMutation) ClearField(name string) error
- func (m *DeliveryMutation) ClearLastAttemptedAt()
- func (m *DeliveryMutation) ClearMessage()
- func (m *DeliveryMutation) ClearNextReady()
- func (m *DeliveryMutation) ClearNotBefore()
- func (m *DeliveryMutation) ClearNotBeforeID()
- func (m *DeliveryMutation) ClearSubscription()
- func (m *DeliveryMutation) ClearedEdges() []string
- func (m *DeliveryMutation) ClearedFields() []string
- func (m DeliveryMutation) Client() *Client
- func (m *DeliveryMutation) CompletedAt() (r time.Time, exists bool)
- func (m *DeliveryMutation) CompletedAtCleared() bool
- func (m *DeliveryMutation) EdgeCleared(name string) bool
- func (m *DeliveryMutation) ExpiresAt() (r time.Time, exists bool)
- func (m *DeliveryMutation) Field(name string) (ent.Value, bool)
- func (m *DeliveryMutation) FieldCleared(name string) bool
- func (m *DeliveryMutation) Fields() []string
- func (m *DeliveryMutation) Filter() *DeliveryFilter
- func (m *DeliveryMutation) ID() (id uuid.UUID, exists bool)
- func (m *DeliveryMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *DeliveryMutation) LastAttemptedAt() (r time.Time, exists bool)
- func (m *DeliveryMutation) LastAttemptedAtCleared() bool
- func (m *DeliveryMutation) MessageCleared() bool
- func (m *DeliveryMutation) MessageID() (r uuid.UUID, exists bool)
- func (m *DeliveryMutation) MessageIDs() (ids []uuid.UUID)
- func (m *DeliveryMutation) NextReadyCleared() bool
- func (m *DeliveryMutation) NextReadyIDs() (ids []uuid.UUID)
- func (m *DeliveryMutation) NotBeforeCleared() bool
- func (m *DeliveryMutation) NotBeforeID() (r uuid.UUID, exists bool)
- func (m *DeliveryMutation) NotBeforeIDCleared() bool
- func (m *DeliveryMutation) NotBeforeIDs() (ids []uuid.UUID)
- func (m *DeliveryMutation) OldAttemptAt(ctx context.Context) (v time.Time, err error)
- func (m *DeliveryMutation) OldAttempts(ctx context.Context) (v int, err error)
- func (m *DeliveryMutation) OldCompletedAt(ctx context.Context) (v *time.Time, err error)
- func (m *DeliveryMutation) OldExpiresAt(ctx context.Context) (v time.Time, err error)
- func (m *DeliveryMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *DeliveryMutation) OldLastAttemptedAt(ctx context.Context) (v *time.Time, err error)
- func (m *DeliveryMutation) OldMessageID(ctx context.Context) (v uuid.UUID, err error)
- func (m *DeliveryMutation) OldNotBeforeID(ctx context.Context) (v uuid.UUID, err error)
- func (m *DeliveryMutation) OldPublishedAt(ctx context.Context) (v time.Time, err error)
- func (m *DeliveryMutation) OldSubscriptionID(ctx context.Context) (v uuid.UUID, err error)
- func (m *DeliveryMutation) Op() Op
- func (m *DeliveryMutation) PublishedAt() (r time.Time, exists bool)
- func (m *DeliveryMutation) RemoveNextReadyIDs(ids ...uuid.UUID)
- func (m *DeliveryMutation) RemovedEdges() []string
- func (m *DeliveryMutation) RemovedIDs(name string) []ent.Value
- func (m *DeliveryMutation) RemovedNextReadyIDs() (ids []uuid.UUID)
- func (m *DeliveryMutation) ResetAttemptAt()
- func (m *DeliveryMutation) ResetAttempts()
- func (m *DeliveryMutation) ResetCompletedAt()
- func (m *DeliveryMutation) ResetEdge(name string) error
- func (m *DeliveryMutation) ResetExpiresAt()
- func (m *DeliveryMutation) ResetField(name string) error
- func (m *DeliveryMutation) ResetLastAttemptedAt()
- func (m *DeliveryMutation) ResetMessage()
- func (m *DeliveryMutation) ResetMessageID()
- func (m *DeliveryMutation) ResetNextReady()
- func (m *DeliveryMutation) ResetNotBefore()
- func (m *DeliveryMutation) ResetNotBeforeID()
- func (m *DeliveryMutation) ResetPublishedAt()
- func (m *DeliveryMutation) ResetSubscription()
- func (m *DeliveryMutation) ResetSubscriptionID()
- func (m *DeliveryMutation) SetAttemptAt(t time.Time)
- func (m *DeliveryMutation) SetAttempts(i int)
- func (m *DeliveryMutation) SetCompletedAt(t time.Time)
- func (m *DeliveryMutation) SetExpiresAt(t time.Time)
- func (m *DeliveryMutation) SetField(name string, value ent.Value) error
- func (m *DeliveryMutation) SetID(id uuid.UUID)
- func (m *DeliveryMutation) SetLastAttemptedAt(t time.Time)
- func (m *DeliveryMutation) SetMessageID(u uuid.UUID)
- func (m *DeliveryMutation) SetNotBeforeID(u uuid.UUID)
- func (m *DeliveryMutation) SetOp(op Op)
- func (m *DeliveryMutation) SetPublishedAt(t time.Time)
- func (m *DeliveryMutation) SetSubscriptionID(u uuid.UUID)
- func (m *DeliveryMutation) SubscriptionCleared() bool
- func (m *DeliveryMutation) SubscriptionID() (r uuid.UUID, exists bool)
- func (m *DeliveryMutation) SubscriptionIDs() (ids []uuid.UUID)
- func (m DeliveryMutation) Tx() (*Tx, error)
- func (m *DeliveryMutation) Type() string
- func (m *DeliveryMutation) Where(ps ...predicate.Delivery)
- func (m *DeliveryMutation) WhereP(ps ...func(*sql.Selector))
- type DeliveryQuery
- func (dq *DeliveryQuery) Aggregate(fns ...AggregateFunc) *DeliverySelect
- func (dq *DeliveryQuery) All(ctx context.Context) ([]*Delivery, error)
- func (dq *DeliveryQuery) AllX(ctx context.Context) []*Delivery
- func (dq *DeliveryQuery) Clone() *DeliveryQuery
- func (dq *DeliveryQuery) Count(ctx context.Context) (int, error)
- func (dq *DeliveryQuery) CountX(ctx context.Context) int
- func (dq *DeliveryQuery) Exist(ctx context.Context) (bool, error)
- func (dq *DeliveryQuery) ExistX(ctx context.Context) bool
- func (dq *DeliveryQuery) Filter() *DeliveryFilter
- func (dq *DeliveryQuery) First(ctx context.Context) (*Delivery, error)
- func (dq *DeliveryQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (dq *DeliveryQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (dq *DeliveryQuery) FirstX(ctx context.Context) *Delivery
- func (dq *DeliveryQuery) ForShare(opts ...sql.LockOption) *DeliveryQuery
- func (dq *DeliveryQuery) ForUpdate(opts ...sql.LockOption) *DeliveryQuery
- func (dq *DeliveryQuery) GroupBy(field string, fields ...string) *DeliveryGroupBy
- func (dq *DeliveryQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (dq *DeliveryQuery) IDsX(ctx context.Context) []uuid.UUID
- func (dq *DeliveryQuery) Limit(limit int) *DeliveryQuery
- func (dq *DeliveryQuery) Offset(offset int) *DeliveryQuery
- func (dq *DeliveryQuery) Only(ctx context.Context) (*Delivery, error)
- func (dq *DeliveryQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (dq *DeliveryQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (dq *DeliveryQuery) OnlyX(ctx context.Context) *Delivery
- func (dq *DeliveryQuery) Order(o ...delivery.OrderOption) *DeliveryQuery
- func (dq *DeliveryQuery) QueryMessage() *MessageQuery
- func (dq *DeliveryQuery) QueryNextReady() *DeliveryQuery
- func (dq *DeliveryQuery) QueryNotBefore() *DeliveryQuery
- func (dq *DeliveryQuery) QuerySubscription() *SubscriptionQuery
- func (dq *DeliveryQuery) Select(fields ...string) *DeliverySelect
- func (dq *DeliveryQuery) Unique(unique bool) *DeliveryQuery
- func (dq *DeliveryQuery) Where(ps ...predicate.Delivery) *DeliveryQuery
- func (dq *DeliveryQuery) WithMessage(opts ...func(*MessageQuery)) *DeliveryQuery
- func (dq *DeliveryQuery) WithNextReady(opts ...func(*DeliveryQuery)) *DeliveryQuery
- func (dq *DeliveryQuery) WithNotBefore(opts ...func(*DeliveryQuery)) *DeliveryQuery
- func (dq *DeliveryQuery) WithSubscription(opts ...func(*SubscriptionQuery)) *DeliveryQuery
- type DeliverySelect
- func (ds *DeliverySelect) Aggregate(fns ...AggregateFunc) *DeliverySelect
- func (s *DeliverySelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *DeliverySelect) BoolX(ctx context.Context) bool
- func (s *DeliverySelect) Bools(ctx context.Context) ([]bool, error)
- func (s *DeliverySelect) BoolsX(ctx context.Context) []bool
- func (s *DeliverySelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *DeliverySelect) Float64X(ctx context.Context) float64
- func (s *DeliverySelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *DeliverySelect) Float64sX(ctx context.Context) []float64
- func (s *DeliverySelect) Int(ctx context.Context) (_ int, err error)
- func (s *DeliverySelect) IntX(ctx context.Context) int
- func (s *DeliverySelect) Ints(ctx context.Context) ([]int, error)
- func (s *DeliverySelect) IntsX(ctx context.Context) []int
- func (ds *DeliverySelect) Scan(ctx context.Context, v any) error
- func (s *DeliverySelect) ScanX(ctx context.Context, v any)
- func (s *DeliverySelect) String(ctx context.Context) (_ string, err error)
- func (s *DeliverySelect) StringX(ctx context.Context) string
- func (s *DeliverySelect) Strings(ctx context.Context) ([]string, error)
- func (s *DeliverySelect) StringsX(ctx context.Context) []string
- type DeliveryUpdate
- func (du *DeliveryUpdate) AddAttempts(i int) *DeliveryUpdate
- func (du *DeliveryUpdate) AddNextReady(d ...*Delivery) *DeliveryUpdate
- func (du *DeliveryUpdate) AddNextReadyIDs(ids ...uuid.UUID) *DeliveryUpdate
- func (du *DeliveryUpdate) ClearCompletedAt() *DeliveryUpdate
- func (du *DeliveryUpdate) ClearLastAttemptedAt() *DeliveryUpdate
- func (du *DeliveryUpdate) ClearMessage() *DeliveryUpdate
- func (du *DeliveryUpdate) ClearNextReady() *DeliveryUpdate
- func (du *DeliveryUpdate) ClearNotBefore() *DeliveryUpdate
- func (du *DeliveryUpdate) ClearNotBeforeID() *DeliveryUpdate
- func (du *DeliveryUpdate) ClearSubscription() *DeliveryUpdate
- func (du *DeliveryUpdate) Exec(ctx context.Context) error
- func (du *DeliveryUpdate) ExecX(ctx context.Context)
- func (du *DeliveryUpdate) Mutation() *DeliveryMutation
- func (du *DeliveryUpdate) RemoveNextReady(d ...*Delivery) *DeliveryUpdate
- func (du *DeliveryUpdate) RemoveNextReadyIDs(ids ...uuid.UUID) *DeliveryUpdate
- func (du *DeliveryUpdate) Save(ctx context.Context) (int, error)
- func (du *DeliveryUpdate) SaveX(ctx context.Context) int
- func (du *DeliveryUpdate) SetAttemptAt(t time.Time) *DeliveryUpdate
- func (du *DeliveryUpdate) SetAttempts(i int) *DeliveryUpdate
- func (du *DeliveryUpdate) SetCompletedAt(t time.Time) *DeliveryUpdate
- func (du *DeliveryUpdate) SetExpiresAt(t time.Time) *DeliveryUpdate
- func (du *DeliveryUpdate) SetLastAttemptedAt(t time.Time) *DeliveryUpdate
- func (du *DeliveryUpdate) SetMessage(m *Message) *DeliveryUpdate
- func (du *DeliveryUpdate) SetMessageID(u uuid.UUID) *DeliveryUpdate
- func (du *DeliveryUpdate) SetNillableAttemptAt(t *time.Time) *DeliveryUpdate
- func (du *DeliveryUpdate) SetNillableAttempts(i *int) *DeliveryUpdate
- func (du *DeliveryUpdate) SetNillableCompletedAt(t *time.Time) *DeliveryUpdate
- func (du *DeliveryUpdate) SetNillableExpiresAt(t *time.Time) *DeliveryUpdate
- func (du *DeliveryUpdate) SetNillableLastAttemptedAt(t *time.Time) *DeliveryUpdate
- func (du *DeliveryUpdate) SetNillableMessageID(u *uuid.UUID) *DeliveryUpdate
- func (du *DeliveryUpdate) SetNillableNotBeforeID(u *uuid.UUID) *DeliveryUpdate
- func (du *DeliveryUpdate) SetNillablePublishedAt(t *time.Time) *DeliveryUpdate
- func (du *DeliveryUpdate) SetNillableSubscriptionID(u *uuid.UUID) *DeliveryUpdate
- func (du *DeliveryUpdate) SetNotBefore(d *Delivery) *DeliveryUpdate
- func (du *DeliveryUpdate) SetNotBeforeID(u uuid.UUID) *DeliveryUpdate
- func (du *DeliveryUpdate) SetPublishedAt(t time.Time) *DeliveryUpdate
- func (du *DeliveryUpdate) SetSubscription(s *Subscription) *DeliveryUpdate
- func (du *DeliveryUpdate) SetSubscriptionID(u uuid.UUID) *DeliveryUpdate
- func (du *DeliveryUpdate) Where(ps ...predicate.Delivery) *DeliveryUpdate
- type DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) AddAttempts(i int) *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) AddNextReady(d ...*Delivery) *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) AddNextReadyIDs(ids ...uuid.UUID) *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) ClearCompletedAt() *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) ClearLastAttemptedAt() *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) ClearMessage() *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) ClearNextReady() *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) ClearNotBefore() *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) ClearNotBeforeID() *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) ClearSubscription() *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) Exec(ctx context.Context) error
- func (duo *DeliveryUpdateOne) ExecX(ctx context.Context)
- func (duo *DeliveryUpdateOne) Mutation() *DeliveryMutation
- func (duo *DeliveryUpdateOne) RemoveNextReady(d ...*Delivery) *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) RemoveNextReadyIDs(ids ...uuid.UUID) *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) Save(ctx context.Context) (*Delivery, error)
- func (duo *DeliveryUpdateOne) SaveX(ctx context.Context) *Delivery
- func (duo *DeliveryUpdateOne) Select(field string, fields ...string) *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) SetAttemptAt(t time.Time) *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) SetAttempts(i int) *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) SetCompletedAt(t time.Time) *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) SetExpiresAt(t time.Time) *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) SetLastAttemptedAt(t time.Time) *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) SetMessage(m *Message) *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) SetMessageID(u uuid.UUID) *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) SetNillableAttemptAt(t *time.Time) *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) SetNillableAttempts(i *int) *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) SetNillableCompletedAt(t *time.Time) *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) SetNillableExpiresAt(t *time.Time) *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) SetNillableLastAttemptedAt(t *time.Time) *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) SetNillableMessageID(u *uuid.UUID) *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) SetNillableNotBeforeID(u *uuid.UUID) *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) SetNillablePublishedAt(t *time.Time) *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) SetNillableSubscriptionID(u *uuid.UUID) *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) SetNotBefore(d *Delivery) *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) SetNotBeforeID(u uuid.UUID) *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) SetPublishedAt(t time.Time) *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) SetSubscription(s *Subscription) *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) SetSubscriptionID(u uuid.UUID) *DeliveryUpdateOne
- func (duo *DeliveryUpdateOne) Where(ps ...predicate.Delivery) *DeliveryUpdateOne
- type DeliveryUpsert
- func (u *DeliveryUpsert) AddAttempts(v int) *DeliveryUpsert
- func (u *DeliveryUpsert) ClearCompletedAt() *DeliveryUpsert
- func (u *DeliveryUpsert) ClearLastAttemptedAt() *DeliveryUpsert
- func (u *DeliveryUpsert) ClearNotBeforeID() *DeliveryUpsert
- func (u *DeliveryUpsert) SetAttemptAt(v time.Time) *DeliveryUpsert
- func (u *DeliveryUpsert) SetAttempts(v int) *DeliveryUpsert
- func (u *DeliveryUpsert) SetCompletedAt(v time.Time) *DeliveryUpsert
- func (u *DeliveryUpsert) SetExpiresAt(v time.Time) *DeliveryUpsert
- func (u *DeliveryUpsert) SetLastAttemptedAt(v time.Time) *DeliveryUpsert
- func (u *DeliveryUpsert) SetMessageID(v uuid.UUID) *DeliveryUpsert
- func (u *DeliveryUpsert) SetNotBeforeID(v uuid.UUID) *DeliveryUpsert
- func (u *DeliveryUpsert) SetPublishedAt(v time.Time) *DeliveryUpsert
- func (u *DeliveryUpsert) SetSubscriptionID(v uuid.UUID) *DeliveryUpsert
- func (u *DeliveryUpsert) UpdateAttemptAt() *DeliveryUpsert
- func (u *DeliveryUpsert) UpdateAttempts() *DeliveryUpsert
- func (u *DeliveryUpsert) UpdateCompletedAt() *DeliveryUpsert
- func (u *DeliveryUpsert) UpdateExpiresAt() *DeliveryUpsert
- func (u *DeliveryUpsert) UpdateLastAttemptedAt() *DeliveryUpsert
- func (u *DeliveryUpsert) UpdateMessageID() *DeliveryUpsert
- func (u *DeliveryUpsert) UpdateNotBeforeID() *DeliveryUpsert
- func (u *DeliveryUpsert) UpdatePublishedAt() *DeliveryUpsert
- func (u *DeliveryUpsert) UpdateSubscriptionID() *DeliveryUpsert
- type DeliveryUpsertBulk
- func (u *DeliveryUpsertBulk) AddAttempts(v int) *DeliveryUpsertBulk
- func (u *DeliveryUpsertBulk) ClearCompletedAt() *DeliveryUpsertBulk
- func (u *DeliveryUpsertBulk) ClearLastAttemptedAt() *DeliveryUpsertBulk
- func (u *DeliveryUpsertBulk) ClearNotBeforeID() *DeliveryUpsertBulk
- func (u *DeliveryUpsertBulk) DoNothing() *DeliveryUpsertBulk
- func (u *DeliveryUpsertBulk) Exec(ctx context.Context) error
- func (u *DeliveryUpsertBulk) ExecX(ctx context.Context)
- func (u *DeliveryUpsertBulk) Ignore() *DeliveryUpsertBulk
- func (u *DeliveryUpsertBulk) SetAttemptAt(v time.Time) *DeliveryUpsertBulk
- func (u *DeliveryUpsertBulk) SetAttempts(v int) *DeliveryUpsertBulk
- func (u *DeliveryUpsertBulk) SetCompletedAt(v time.Time) *DeliveryUpsertBulk
- func (u *DeliveryUpsertBulk) SetExpiresAt(v time.Time) *DeliveryUpsertBulk
- func (u *DeliveryUpsertBulk) SetLastAttemptedAt(v time.Time) *DeliveryUpsertBulk
- func (u *DeliveryUpsertBulk) SetMessageID(v uuid.UUID) *DeliveryUpsertBulk
- func (u *DeliveryUpsertBulk) SetNotBeforeID(v uuid.UUID) *DeliveryUpsertBulk
- func (u *DeliveryUpsertBulk) SetPublishedAt(v time.Time) *DeliveryUpsertBulk
- func (u *DeliveryUpsertBulk) SetSubscriptionID(v uuid.UUID) *DeliveryUpsertBulk
- func (u *DeliveryUpsertBulk) Update(set func(*DeliveryUpsert)) *DeliveryUpsertBulk
- func (u *DeliveryUpsertBulk) UpdateAttemptAt() *DeliveryUpsertBulk
- func (u *DeliveryUpsertBulk) UpdateAttempts() *DeliveryUpsertBulk
- func (u *DeliveryUpsertBulk) UpdateCompletedAt() *DeliveryUpsertBulk
- func (u *DeliveryUpsertBulk) UpdateExpiresAt() *DeliveryUpsertBulk
- func (u *DeliveryUpsertBulk) UpdateLastAttemptedAt() *DeliveryUpsertBulk
- func (u *DeliveryUpsertBulk) UpdateMessageID() *DeliveryUpsertBulk
- func (u *DeliveryUpsertBulk) UpdateNewValues() *DeliveryUpsertBulk
- func (u *DeliveryUpsertBulk) UpdateNotBeforeID() *DeliveryUpsertBulk
- func (u *DeliveryUpsertBulk) UpdatePublishedAt() *DeliveryUpsertBulk
- func (u *DeliveryUpsertBulk) UpdateSubscriptionID() *DeliveryUpsertBulk
- type DeliveryUpsertOne
- func (u *DeliveryUpsertOne) AddAttempts(v int) *DeliveryUpsertOne
- func (u *DeliveryUpsertOne) ClearCompletedAt() *DeliveryUpsertOne
- func (u *DeliveryUpsertOne) ClearLastAttemptedAt() *DeliveryUpsertOne
- func (u *DeliveryUpsertOne) ClearNotBeforeID() *DeliveryUpsertOne
- func (u *DeliveryUpsertOne) DoNothing() *DeliveryUpsertOne
- func (u *DeliveryUpsertOne) Exec(ctx context.Context) error
- func (u *DeliveryUpsertOne) ExecX(ctx context.Context)
- func (u *DeliveryUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)
- func (u *DeliveryUpsertOne) IDX(ctx context.Context) uuid.UUID
- func (u *DeliveryUpsertOne) Ignore() *DeliveryUpsertOne
- func (u *DeliveryUpsertOne) SetAttemptAt(v time.Time) *DeliveryUpsertOne
- func (u *DeliveryUpsertOne) SetAttempts(v int) *DeliveryUpsertOne
- func (u *DeliveryUpsertOne) SetCompletedAt(v time.Time) *DeliveryUpsertOne
- func (u *DeliveryUpsertOne) SetExpiresAt(v time.Time) *DeliveryUpsertOne
- func (u *DeliveryUpsertOne) SetLastAttemptedAt(v time.Time) *DeliveryUpsertOne
- func (u *DeliveryUpsertOne) SetMessageID(v uuid.UUID) *DeliveryUpsertOne
- func (u *DeliveryUpsertOne) SetNotBeforeID(v uuid.UUID) *DeliveryUpsertOne
- func (u *DeliveryUpsertOne) SetPublishedAt(v time.Time) *DeliveryUpsertOne
- func (u *DeliveryUpsertOne) SetSubscriptionID(v uuid.UUID) *DeliveryUpsertOne
- func (u *DeliveryUpsertOne) Update(set func(*DeliveryUpsert)) *DeliveryUpsertOne
- func (u *DeliveryUpsertOne) UpdateAttemptAt() *DeliveryUpsertOne
- func (u *DeliveryUpsertOne) UpdateAttempts() *DeliveryUpsertOne
- func (u *DeliveryUpsertOne) UpdateCompletedAt() *DeliveryUpsertOne
- func (u *DeliveryUpsertOne) UpdateExpiresAt() *DeliveryUpsertOne
- func (u *DeliveryUpsertOne) UpdateLastAttemptedAt() *DeliveryUpsertOne
- func (u *DeliveryUpsertOne) UpdateMessageID() *DeliveryUpsertOne
- func (u *DeliveryUpsertOne) UpdateNewValues() *DeliveryUpsertOne
- func (u *DeliveryUpsertOne) UpdateNotBeforeID() *DeliveryUpsertOne
- func (u *DeliveryUpsertOne) UpdatePublishedAt() *DeliveryUpsertOne
- func (u *DeliveryUpsertOne) UpdateSubscriptionID() *DeliveryUpsertOne
- type Hook
- type InterceptFunc
- type Interceptor
- type Message
- type MessageClient
- func (c *MessageClient) Create() *MessageCreate
- func (c *MessageClient) CreateBulk(builders ...*MessageCreate) *MessageCreateBulk
- func (c *MessageClient) Delete() *MessageDelete
- func (c *MessageClient) DeleteOne(m *Message) *MessageDeleteOne
- func (c *MessageClient) DeleteOneID(id uuid.UUID) *MessageDeleteOne
- func (c *MessageClient) Get(ctx context.Context, id uuid.UUID) (*Message, error)
- func (c *MessageClient) GetX(ctx context.Context, id uuid.UUID) *Message
- func (c *MessageClient) Hooks() []Hook
- func (c *MessageClient) Intercept(interceptors ...Interceptor)
- func (c *MessageClient) Interceptors() []Interceptor
- func (c *MessageClient) MapCreateBulk(slice any, setFunc func(*MessageCreate, int)) *MessageCreateBulk
- func (c *MessageClient) Query() *MessageQuery
- func (c *MessageClient) QueryDeliveries(m *Message) *DeliveryQuery
- func (c *MessageClient) QueryTopic(m *Message) *TopicQuery
- func (c *MessageClient) Update() *MessageUpdate
- func (c *MessageClient) UpdateOne(m *Message) *MessageUpdateOne
- func (c *MessageClient) UpdateOneID(id uuid.UUID) *MessageUpdateOne
- func (c *MessageClient) Use(hooks ...Hook)
- type MessageCreate
- func (mc *MessageCreate) AddDeliveries(d ...*Delivery) *MessageCreate
- func (mc *MessageCreate) AddDeliveryIDs(ids ...uuid.UUID) *MessageCreate
- func (mc *MessageCreate) Exec(ctx context.Context) error
- func (mc *MessageCreate) ExecX(ctx context.Context)
- func (mc *MessageCreate) Mutation() *MessageMutation
- func (mc *MessageCreate) OnConflict(opts ...sql.ConflictOption) *MessageUpsertOne
- func (mc *MessageCreate) OnConflictColumns(columns ...string) *MessageUpsertOne
- func (mc *MessageCreate) Save(ctx context.Context) (*Message, error)
- func (mc *MessageCreate) SaveX(ctx context.Context) *Message
- func (mc *MessageCreate) SetAttributes(m map[string]string) *MessageCreate
- func (mc *MessageCreate) SetID(u uuid.UUID) *MessageCreate
- func (mc *MessageCreate) SetNillableID(u *uuid.UUID) *MessageCreate
- func (mc *MessageCreate) SetNillableOrderKey(s *string) *MessageCreate
- func (mc *MessageCreate) SetNillablePublishedAt(t *time.Time) *MessageCreate
- func (mc *MessageCreate) SetOrderKey(s string) *MessageCreate
- func (mc *MessageCreate) SetPayload(jm json.RawMessage) *MessageCreate
- func (mc *MessageCreate) SetPublishedAt(t time.Time) *MessageCreate
- func (mc *MessageCreate) SetTopic(t *Topic) *MessageCreate
- func (mc *MessageCreate) SetTopicID(u uuid.UUID) *MessageCreate
- type MessageCreateBulk
- func (mcb *MessageCreateBulk) Exec(ctx context.Context) error
- func (mcb *MessageCreateBulk) ExecX(ctx context.Context)
- func (mcb *MessageCreateBulk) OnConflict(opts ...sql.ConflictOption) *MessageUpsertBulk
- func (mcb *MessageCreateBulk) OnConflictColumns(columns ...string) *MessageUpsertBulk
- func (mcb *MessageCreateBulk) Save(ctx context.Context) ([]*Message, error)
- func (mcb *MessageCreateBulk) SaveX(ctx context.Context) []*Message
- type MessageDelete
- type MessageDeleteOne
- type MessageEdges
- type MessageFilter
- func (f *MessageFilter) Where(p entql.P)
- func (f *MessageFilter) WhereAttributes(p entql.BytesP)
- func (f *MessageFilter) WhereHasDeliveries()
- func (f *MessageFilter) WhereHasDeliveriesWith(preds ...predicate.Delivery)
- func (f *MessageFilter) WhereHasTopic()
- func (f *MessageFilter) WhereHasTopicWith(preds ...predicate.Topic)
- func (f *MessageFilter) WhereID(p entql.ValueP)
- func (f *MessageFilter) WhereOrderKey(p entql.StringP)
- func (f *MessageFilter) WherePayload(p entql.BytesP)
- func (f *MessageFilter) WherePublishedAt(p entql.TimeP)
- func (f *MessageFilter) WhereTopicID(p entql.ValueP)
- type MessageGroupBy
- func (mgb *MessageGroupBy) Aggregate(fns ...AggregateFunc) *MessageGroupBy
- func (s *MessageGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *MessageGroupBy) BoolX(ctx context.Context) bool
- func (s *MessageGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *MessageGroupBy) BoolsX(ctx context.Context) []bool
- func (s *MessageGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *MessageGroupBy) Float64X(ctx context.Context) float64
- func (s *MessageGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *MessageGroupBy) Float64sX(ctx context.Context) []float64
- func (s *MessageGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *MessageGroupBy) IntX(ctx context.Context) int
- func (s *MessageGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *MessageGroupBy) IntsX(ctx context.Context) []int
- func (mgb *MessageGroupBy) Scan(ctx context.Context, v any) error
- func (s *MessageGroupBy) ScanX(ctx context.Context, v any)
- func (s *MessageGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *MessageGroupBy) StringX(ctx context.Context) string
- func (s *MessageGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *MessageGroupBy) StringsX(ctx context.Context) []string
- type MessageMutation
- func (m *MessageMutation) AddDeliveryIDs(ids ...uuid.UUID)
- func (m *MessageMutation) AddField(name string, value ent.Value) error
- func (m *MessageMutation) AddedEdges() []string
- func (m *MessageMutation) AddedField(name string) (ent.Value, bool)
- func (m *MessageMutation) AddedFields() []string
- func (m *MessageMutation) AddedIDs(name string) []ent.Value
- func (m *MessageMutation) AppendPayload(jm json.RawMessage)
- func (m *MessageMutation) AppendedPayload() (json.RawMessage, bool)
- func (m *MessageMutation) Attributes() (r map[string]string, exists bool)
- func (m *MessageMutation) AttributesCleared() bool
- func (m *MessageMutation) ClearAttributes()
- func (m *MessageMutation) ClearDeliveries()
- func (m *MessageMutation) ClearEdge(name string) error
- func (m *MessageMutation) ClearField(name string) error
- func (m *MessageMutation) ClearOrderKey()
- func (m *MessageMutation) ClearTopic()
- func (m *MessageMutation) ClearedEdges() []string
- func (m *MessageMutation) ClearedFields() []string
- func (m MessageMutation) Client() *Client
- func (m *MessageMutation) DeliveriesCleared() bool
- func (m *MessageMutation) DeliveriesIDs() (ids []uuid.UUID)
- func (m *MessageMutation) EdgeCleared(name string) bool
- func (m *MessageMutation) Field(name string) (ent.Value, bool)
- func (m *MessageMutation) FieldCleared(name string) bool
- func (m *MessageMutation) Fields() []string
- func (m *MessageMutation) Filter() *MessageFilter
- func (m *MessageMutation) ID() (id uuid.UUID, exists bool)
- func (m *MessageMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *MessageMutation) OldAttributes(ctx context.Context) (v map[string]string, err error)
- func (m *MessageMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *MessageMutation) OldOrderKey(ctx context.Context) (v *string, err error)
- func (m *MessageMutation) OldPayload(ctx context.Context) (v json.RawMessage, err error)
- func (m *MessageMutation) OldPublishedAt(ctx context.Context) (v time.Time, err error)
- func (m *MessageMutation) OldTopicID(ctx context.Context) (v uuid.UUID, err error)
- func (m *MessageMutation) Op() Op
- func (m *MessageMutation) OrderKey() (r string, exists bool)
- func (m *MessageMutation) OrderKeyCleared() bool
- func (m *MessageMutation) Payload() (r json.RawMessage, exists bool)
- func (m *MessageMutation) PublishedAt() (r time.Time, exists bool)
- func (m *MessageMutation) RemoveDeliveryIDs(ids ...uuid.UUID)
- func (m *MessageMutation) RemovedDeliveriesIDs() (ids []uuid.UUID)
- func (m *MessageMutation) RemovedEdges() []string
- func (m *MessageMutation) RemovedIDs(name string) []ent.Value
- func (m *MessageMutation) ResetAttributes()
- func (m *MessageMutation) ResetDeliveries()
- func (m *MessageMutation) ResetEdge(name string) error
- func (m *MessageMutation) ResetField(name string) error
- func (m *MessageMutation) ResetOrderKey()
- func (m *MessageMutation) ResetPayload()
- func (m *MessageMutation) ResetPublishedAt()
- func (m *MessageMutation) ResetTopic()
- func (m *MessageMutation) ResetTopicID()
- func (m *MessageMutation) SetAttributes(value map[string]string)
- func (m *MessageMutation) SetField(name string, value ent.Value) error
- func (m *MessageMutation) SetID(id uuid.UUID)
- func (m *MessageMutation) SetOp(op Op)
- func (m *MessageMutation) SetOrderKey(s string)
- func (m *MessageMutation) SetPayload(jm json.RawMessage)
- func (m *MessageMutation) SetPublishedAt(t time.Time)
- func (m *MessageMutation) SetTopicID(u uuid.UUID)
- func (m *MessageMutation) TopicCleared() bool
- func (m *MessageMutation) TopicID() (r uuid.UUID, exists bool)
- func (m *MessageMutation) TopicIDs() (ids []uuid.UUID)
- func (m MessageMutation) Tx() (*Tx, error)
- func (m *MessageMutation) Type() string
- func (m *MessageMutation) Where(ps ...predicate.Message)
- func (m *MessageMutation) WhereP(ps ...func(*sql.Selector))
- type MessageQuery
- func (mq *MessageQuery) Aggregate(fns ...AggregateFunc) *MessageSelect
- func (mq *MessageQuery) All(ctx context.Context) ([]*Message, error)
- func (mq *MessageQuery) AllX(ctx context.Context) []*Message
- func (mq *MessageQuery) Clone() *MessageQuery
- func (mq *MessageQuery) Count(ctx context.Context) (int, error)
- func (mq *MessageQuery) CountX(ctx context.Context) int
- func (mq *MessageQuery) Exist(ctx context.Context) (bool, error)
- func (mq *MessageQuery) ExistX(ctx context.Context) bool
- func (mq *MessageQuery) Filter() *MessageFilter
- func (mq *MessageQuery) First(ctx context.Context) (*Message, error)
- func (mq *MessageQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (mq *MessageQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (mq *MessageQuery) FirstX(ctx context.Context) *Message
- func (mq *MessageQuery) ForShare(opts ...sql.LockOption) *MessageQuery
- func (mq *MessageQuery) ForUpdate(opts ...sql.LockOption) *MessageQuery
- func (mq *MessageQuery) GroupBy(field string, fields ...string) *MessageGroupBy
- func (mq *MessageQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (mq *MessageQuery) IDsX(ctx context.Context) []uuid.UUID
- func (mq *MessageQuery) Limit(limit int) *MessageQuery
- func (mq *MessageQuery) Offset(offset int) *MessageQuery
- func (mq *MessageQuery) Only(ctx context.Context) (*Message, error)
- func (mq *MessageQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (mq *MessageQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (mq *MessageQuery) OnlyX(ctx context.Context) *Message
- func (mq *MessageQuery) Order(o ...message.OrderOption) *MessageQuery
- func (mq *MessageQuery) QueryDeliveries() *DeliveryQuery
- func (mq *MessageQuery) QueryTopic() *TopicQuery
- func (mq *MessageQuery) Select(fields ...string) *MessageSelect
- func (mq *MessageQuery) Unique(unique bool) *MessageQuery
- func (mq *MessageQuery) Where(ps ...predicate.Message) *MessageQuery
- func (mq *MessageQuery) WithDeliveries(opts ...func(*DeliveryQuery)) *MessageQuery
- func (mq *MessageQuery) WithTopic(opts ...func(*TopicQuery)) *MessageQuery
- type MessageSelect
- func (ms *MessageSelect) Aggregate(fns ...AggregateFunc) *MessageSelect
- func (s *MessageSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *MessageSelect) BoolX(ctx context.Context) bool
- func (s *MessageSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *MessageSelect) BoolsX(ctx context.Context) []bool
- func (s *MessageSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *MessageSelect) Float64X(ctx context.Context) float64
- func (s *MessageSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *MessageSelect) Float64sX(ctx context.Context) []float64
- func (s *MessageSelect) Int(ctx context.Context) (_ int, err error)
- func (s *MessageSelect) IntX(ctx context.Context) int
- func (s *MessageSelect) Ints(ctx context.Context) ([]int, error)
- func (s *MessageSelect) IntsX(ctx context.Context) []int
- func (ms *MessageSelect) Scan(ctx context.Context, v any) error
- func (s *MessageSelect) ScanX(ctx context.Context, v any)
- func (s *MessageSelect) String(ctx context.Context) (_ string, err error)
- func (s *MessageSelect) StringX(ctx context.Context) string
- func (s *MessageSelect) Strings(ctx context.Context) ([]string, error)
- func (s *MessageSelect) StringsX(ctx context.Context) []string
- type MessageUpdate
- func (mu *MessageUpdate) AddDeliveries(d ...*Delivery) *MessageUpdate
- func (mu *MessageUpdate) AddDeliveryIDs(ids ...uuid.UUID) *MessageUpdate
- func (mu *MessageUpdate) ClearDeliveries() *MessageUpdate
- func (mu *MessageUpdate) ClearTopic() *MessageUpdate
- func (mu *MessageUpdate) Exec(ctx context.Context) error
- func (mu *MessageUpdate) ExecX(ctx context.Context)
- func (mu *MessageUpdate) Mutation() *MessageMutation
- func (mu *MessageUpdate) RemoveDeliveries(d ...*Delivery) *MessageUpdate
- func (mu *MessageUpdate) RemoveDeliveryIDs(ids ...uuid.UUID) *MessageUpdate
- func (mu *MessageUpdate) Save(ctx context.Context) (int, error)
- func (mu *MessageUpdate) SaveX(ctx context.Context) int
- func (mu *MessageUpdate) SetNillableTopicID(u *uuid.UUID) *MessageUpdate
- func (mu *MessageUpdate) SetTopic(t *Topic) *MessageUpdate
- func (mu *MessageUpdate) SetTopicID(u uuid.UUID) *MessageUpdate
- func (mu *MessageUpdate) Where(ps ...predicate.Message) *MessageUpdate
- type MessageUpdateOne
- func (muo *MessageUpdateOne) AddDeliveries(d ...*Delivery) *MessageUpdateOne
- func (muo *MessageUpdateOne) AddDeliveryIDs(ids ...uuid.UUID) *MessageUpdateOne
- func (muo *MessageUpdateOne) ClearDeliveries() *MessageUpdateOne
- func (muo *MessageUpdateOne) ClearTopic() *MessageUpdateOne
- func (muo *MessageUpdateOne) Exec(ctx context.Context) error
- func (muo *MessageUpdateOne) ExecX(ctx context.Context)
- func (muo *MessageUpdateOne) Mutation() *MessageMutation
- func (muo *MessageUpdateOne) RemoveDeliveries(d ...*Delivery) *MessageUpdateOne
- func (muo *MessageUpdateOne) RemoveDeliveryIDs(ids ...uuid.UUID) *MessageUpdateOne
- func (muo *MessageUpdateOne) Save(ctx context.Context) (*Message, error)
- func (muo *MessageUpdateOne) SaveX(ctx context.Context) *Message
- func (muo *MessageUpdateOne) Select(field string, fields ...string) *MessageUpdateOne
- func (muo *MessageUpdateOne) SetNillableTopicID(u *uuid.UUID) *MessageUpdateOne
- func (muo *MessageUpdateOne) SetTopic(t *Topic) *MessageUpdateOne
- func (muo *MessageUpdateOne) SetTopicID(u uuid.UUID) *MessageUpdateOne
- func (muo *MessageUpdateOne) Where(ps ...predicate.Message) *MessageUpdateOne
- type MessageUpsert
- type MessageUpsertBulk
- func (u *MessageUpsertBulk) DoNothing() *MessageUpsertBulk
- func (u *MessageUpsertBulk) Exec(ctx context.Context) error
- func (u *MessageUpsertBulk) ExecX(ctx context.Context)
- func (u *MessageUpsertBulk) Ignore() *MessageUpsertBulk
- func (u *MessageUpsertBulk) SetTopicID(v uuid.UUID) *MessageUpsertBulk
- func (u *MessageUpsertBulk) Update(set func(*MessageUpsert)) *MessageUpsertBulk
- func (u *MessageUpsertBulk) UpdateNewValues() *MessageUpsertBulk
- func (u *MessageUpsertBulk) UpdateTopicID() *MessageUpsertBulk
- type MessageUpsertOne
- func (u *MessageUpsertOne) DoNothing() *MessageUpsertOne
- func (u *MessageUpsertOne) Exec(ctx context.Context) error
- func (u *MessageUpsertOne) ExecX(ctx context.Context)
- func (u *MessageUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)
- func (u *MessageUpsertOne) IDX(ctx context.Context) uuid.UUID
- func (u *MessageUpsertOne) Ignore() *MessageUpsertOne
- func (u *MessageUpsertOne) SetTopicID(v uuid.UUID) *MessageUpsertOne
- func (u *MessageUpsertOne) Update(set func(*MessageUpsert)) *MessageUpsertOne
- func (u *MessageUpsertOne) UpdateNewValues() *MessageUpsertOne
- func (u *MessageUpsertOne) UpdateTopicID() *MessageUpsertOne
- type Messages
- type MutateFunc
- type Mutation
- type Mutator
- type NotFoundError
- type NotLoadedError
- type NotSingularError
- type Op
- type Option
- type OrderFunc
- type Policy
- type Querier
- type QuerierFunc
- type Query
- type QueryContext
- type RollbackFunc
- type RollbackHook
- type Rollbacker
- type Snapshot
- type SnapshotClient
- func (c *SnapshotClient) Create() *SnapshotCreate
- func (c *SnapshotClient) CreateBulk(builders ...*SnapshotCreate) *SnapshotCreateBulk
- func (c *SnapshotClient) Delete() *SnapshotDelete
- func (c *SnapshotClient) DeleteOne(s *Snapshot) *SnapshotDeleteOne
- func (c *SnapshotClient) DeleteOneID(id uuid.UUID) *SnapshotDeleteOne
- func (c *SnapshotClient) Get(ctx context.Context, id uuid.UUID) (*Snapshot, error)
- func (c *SnapshotClient) GetX(ctx context.Context, id uuid.UUID) *Snapshot
- func (c *SnapshotClient) Hooks() []Hook
- func (c *SnapshotClient) Intercept(interceptors ...Interceptor)
- func (c *SnapshotClient) Interceptors() []Interceptor
- func (c *SnapshotClient) MapCreateBulk(slice any, setFunc func(*SnapshotCreate, int)) *SnapshotCreateBulk
- func (c *SnapshotClient) Query() *SnapshotQuery
- func (c *SnapshotClient) QueryTopic(s *Snapshot) *TopicQuery
- func (c *SnapshotClient) Update() *SnapshotUpdate
- func (c *SnapshotClient) UpdateOne(s *Snapshot) *SnapshotUpdateOne
- func (c *SnapshotClient) UpdateOneID(id uuid.UUID) *SnapshotUpdateOne
- func (c *SnapshotClient) Use(hooks ...Hook)
- type SnapshotCreate
- func (sc *SnapshotCreate) Exec(ctx context.Context) error
- func (sc *SnapshotCreate) ExecX(ctx context.Context)
- func (sc *SnapshotCreate) Mutation() *SnapshotMutation
- func (sc *SnapshotCreate) OnConflict(opts ...sql.ConflictOption) *SnapshotUpsertOne
- func (sc *SnapshotCreate) OnConflictColumns(columns ...string) *SnapshotUpsertOne
- func (sc *SnapshotCreate) Save(ctx context.Context) (*Snapshot, error)
- func (sc *SnapshotCreate) SaveX(ctx context.Context) *Snapshot
- func (sc *SnapshotCreate) SetAckedMessageIDs(u []uuid.UUID) *SnapshotCreate
- func (sc *SnapshotCreate) SetAckedMessagesBefore(t time.Time) *SnapshotCreate
- func (sc *SnapshotCreate) SetCreatedAt(t time.Time) *SnapshotCreate
- func (sc *SnapshotCreate) SetExpiresAt(t time.Time) *SnapshotCreate
- func (sc *SnapshotCreate) SetID(u uuid.UUID) *SnapshotCreate
- func (sc *SnapshotCreate) SetLabels(m map[string]string) *SnapshotCreate
- func (sc *SnapshotCreate) SetName(s string) *SnapshotCreate
- func (sc *SnapshotCreate) SetNillableCreatedAt(t *time.Time) *SnapshotCreate
- func (sc *SnapshotCreate) SetNillableID(u *uuid.UUID) *SnapshotCreate
- func (sc *SnapshotCreate) SetTopic(t *Topic) *SnapshotCreate
- func (sc *SnapshotCreate) SetTopicID(u uuid.UUID) *SnapshotCreate
- type SnapshotCreateBulk
- func (scb *SnapshotCreateBulk) Exec(ctx context.Context) error
- func (scb *SnapshotCreateBulk) ExecX(ctx context.Context)
- func (scb *SnapshotCreateBulk) OnConflict(opts ...sql.ConflictOption) *SnapshotUpsertBulk
- func (scb *SnapshotCreateBulk) OnConflictColumns(columns ...string) *SnapshotUpsertBulk
- func (scb *SnapshotCreateBulk) Save(ctx context.Context) ([]*Snapshot, error)
- func (scb *SnapshotCreateBulk) SaveX(ctx context.Context) []*Snapshot
- type SnapshotDelete
- type SnapshotDeleteOne
- type SnapshotEdges
- type SnapshotFilter
- func (f *SnapshotFilter) Where(p entql.P)
- func (f *SnapshotFilter) WhereAckedMessageIDs(p entql.BytesP)
- func (f *SnapshotFilter) WhereAckedMessagesBefore(p entql.TimeP)
- func (f *SnapshotFilter) WhereCreatedAt(p entql.TimeP)
- func (f *SnapshotFilter) WhereExpiresAt(p entql.TimeP)
- func (f *SnapshotFilter) WhereHasTopic()
- func (f *SnapshotFilter) WhereHasTopicWith(preds ...predicate.Topic)
- func (f *SnapshotFilter) WhereID(p entql.ValueP)
- func (f *SnapshotFilter) WhereLabels(p entql.BytesP)
- func (f *SnapshotFilter) WhereName(p entql.StringP)
- func (f *SnapshotFilter) WhereTopicID(p entql.ValueP)
- type SnapshotGroupBy
- func (sgb *SnapshotGroupBy) Aggregate(fns ...AggregateFunc) *SnapshotGroupBy
- func (s *SnapshotGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *SnapshotGroupBy) BoolX(ctx context.Context) bool
- func (s *SnapshotGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *SnapshotGroupBy) BoolsX(ctx context.Context) []bool
- func (s *SnapshotGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *SnapshotGroupBy) Float64X(ctx context.Context) float64
- func (s *SnapshotGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *SnapshotGroupBy) Float64sX(ctx context.Context) []float64
- func (s *SnapshotGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *SnapshotGroupBy) IntX(ctx context.Context) int
- func (s *SnapshotGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *SnapshotGroupBy) IntsX(ctx context.Context) []int
- func (sgb *SnapshotGroupBy) Scan(ctx context.Context, v any) error
- func (s *SnapshotGroupBy) ScanX(ctx context.Context, v any)
- func (s *SnapshotGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *SnapshotGroupBy) StringX(ctx context.Context) string
- func (s *SnapshotGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *SnapshotGroupBy) StringsX(ctx context.Context) []string
- type SnapshotMutation
- func (m *SnapshotMutation) AckedMessageIDs() (r []uuid.UUID, exists bool)
- func (m *SnapshotMutation) AckedMessageIDsCleared() bool
- func (m *SnapshotMutation) AckedMessagesBefore() (r time.Time, exists bool)
- func (m *SnapshotMutation) AddField(name string, value ent.Value) error
- func (m *SnapshotMutation) AddedEdges() []string
- func (m *SnapshotMutation) AddedField(name string) (ent.Value, bool)
- func (m *SnapshotMutation) AddedFields() []string
- func (m *SnapshotMutation) AddedIDs(name string) []ent.Value
- func (m *SnapshotMutation) AppendAckedMessageIDs(u []uuid.UUID)
- func (m *SnapshotMutation) AppendedAckedMessageIDs() ([]uuid.UUID, bool)
- func (m *SnapshotMutation) ClearAckedMessageIDs()
- func (m *SnapshotMutation) ClearEdge(name string) error
- func (m *SnapshotMutation) ClearField(name string) error
- func (m *SnapshotMutation) ClearLabels()
- func (m *SnapshotMutation) ClearTopic()
- func (m *SnapshotMutation) ClearedEdges() []string
- func (m *SnapshotMutation) ClearedFields() []string
- func (m SnapshotMutation) Client() *Client
- func (m *SnapshotMutation) CreatedAt() (r time.Time, exists bool)
- func (m *SnapshotMutation) EdgeCleared(name string) bool
- func (m *SnapshotMutation) ExpiresAt() (r time.Time, exists bool)
- func (m *SnapshotMutation) Field(name string) (ent.Value, bool)
- func (m *SnapshotMutation) FieldCleared(name string) bool
- func (m *SnapshotMutation) Fields() []string
- func (m *SnapshotMutation) Filter() *SnapshotFilter
- func (m *SnapshotMutation) ID() (id uuid.UUID, exists bool)
- func (m *SnapshotMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *SnapshotMutation) Labels() (r map[string]string, exists bool)
- func (m *SnapshotMutation) LabelsCleared() bool
- func (m *SnapshotMutation) Name() (r string, exists bool)
- func (m *SnapshotMutation) OldAckedMessageIDs(ctx context.Context) (v []uuid.UUID, err error)
- func (m *SnapshotMutation) OldAckedMessagesBefore(ctx context.Context) (v time.Time, err error)
- func (m *SnapshotMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SnapshotMutation) OldExpiresAt(ctx context.Context) (v time.Time, err error)
- func (m *SnapshotMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *SnapshotMutation) OldLabels(ctx context.Context) (v map[string]string, err error)
- func (m *SnapshotMutation) OldName(ctx context.Context) (v string, err error)
- func (m *SnapshotMutation) OldTopicID(ctx context.Context) (v uuid.UUID, err error)
- func (m *SnapshotMutation) Op() Op
- func (m *SnapshotMutation) RemovedEdges() []string
- func (m *SnapshotMutation) RemovedIDs(name string) []ent.Value
- func (m *SnapshotMutation) ResetAckedMessageIDs()
- func (m *SnapshotMutation) ResetAckedMessagesBefore()
- func (m *SnapshotMutation) ResetCreatedAt()
- func (m *SnapshotMutation) ResetEdge(name string) error
- func (m *SnapshotMutation) ResetExpiresAt()
- func (m *SnapshotMutation) ResetField(name string) error
- func (m *SnapshotMutation) ResetLabels()
- func (m *SnapshotMutation) ResetName()
- func (m *SnapshotMutation) ResetTopic()
- func (m *SnapshotMutation) ResetTopicID()
- func (m *SnapshotMutation) SetAckedMessageIDs(u []uuid.UUID)
- func (m *SnapshotMutation) SetAckedMessagesBefore(t time.Time)
- func (m *SnapshotMutation) SetCreatedAt(t time.Time)
- func (m *SnapshotMutation) SetExpiresAt(t time.Time)
- func (m *SnapshotMutation) SetField(name string, value ent.Value) error
- func (m *SnapshotMutation) SetID(id uuid.UUID)
- func (m *SnapshotMutation) SetLabels(value map[string]string)
- func (m *SnapshotMutation) SetName(s string)
- func (m *SnapshotMutation) SetOp(op Op)
- func (m *SnapshotMutation) SetTopicID(u uuid.UUID)
- func (m *SnapshotMutation) TopicCleared() bool
- func (m *SnapshotMutation) TopicID() (r uuid.UUID, exists bool)
- func (m *SnapshotMutation) TopicIDs() (ids []uuid.UUID)
- func (m SnapshotMutation) Tx() (*Tx, error)
- func (m *SnapshotMutation) Type() string
- func (m *SnapshotMutation) Where(ps ...predicate.Snapshot)
- func (m *SnapshotMutation) WhereP(ps ...func(*sql.Selector))
- type SnapshotQuery
- func (sq *SnapshotQuery) Aggregate(fns ...AggregateFunc) *SnapshotSelect
- func (sq *SnapshotQuery) All(ctx context.Context) ([]*Snapshot, error)
- func (sq *SnapshotQuery) AllX(ctx context.Context) []*Snapshot
- func (sq *SnapshotQuery) Clone() *SnapshotQuery
- func (sq *SnapshotQuery) Count(ctx context.Context) (int, error)
- func (sq *SnapshotQuery) CountX(ctx context.Context) int
- func (sq *SnapshotQuery) Exist(ctx context.Context) (bool, error)
- func (sq *SnapshotQuery) ExistX(ctx context.Context) bool
- func (sq *SnapshotQuery) Filter() *SnapshotFilter
- func (sq *SnapshotQuery) First(ctx context.Context) (*Snapshot, error)
- func (sq *SnapshotQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (sq *SnapshotQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (sq *SnapshotQuery) FirstX(ctx context.Context) *Snapshot
- func (sq *SnapshotQuery) ForShare(opts ...sql.LockOption) *SnapshotQuery
- func (sq *SnapshotQuery) ForUpdate(opts ...sql.LockOption) *SnapshotQuery
- func (sq *SnapshotQuery) GroupBy(field string, fields ...string) *SnapshotGroupBy
- func (sq *SnapshotQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (sq *SnapshotQuery) IDsX(ctx context.Context) []uuid.UUID
- func (sq *SnapshotQuery) Limit(limit int) *SnapshotQuery
- func (sq *SnapshotQuery) Offset(offset int) *SnapshotQuery
- func (sq *SnapshotQuery) Only(ctx context.Context) (*Snapshot, error)
- func (sq *SnapshotQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (sq *SnapshotQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (sq *SnapshotQuery) OnlyX(ctx context.Context) *Snapshot
- func (sq *SnapshotQuery) Order(o ...snapshot.OrderOption) *SnapshotQuery
- func (sq *SnapshotQuery) QueryTopic() *TopicQuery
- func (sq *SnapshotQuery) Select(fields ...string) *SnapshotSelect
- func (sq *SnapshotQuery) Unique(unique bool) *SnapshotQuery
- func (sq *SnapshotQuery) Where(ps ...predicate.Snapshot) *SnapshotQuery
- func (sq *SnapshotQuery) WithTopic(opts ...func(*TopicQuery)) *SnapshotQuery
- type SnapshotSelect
- func (ss *SnapshotSelect) Aggregate(fns ...AggregateFunc) *SnapshotSelect
- func (s *SnapshotSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *SnapshotSelect) BoolX(ctx context.Context) bool
- func (s *SnapshotSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *SnapshotSelect) BoolsX(ctx context.Context) []bool
- func (s *SnapshotSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *SnapshotSelect) Float64X(ctx context.Context) float64
- func (s *SnapshotSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *SnapshotSelect) Float64sX(ctx context.Context) []float64
- func (s *SnapshotSelect) Int(ctx context.Context) (_ int, err error)
- func (s *SnapshotSelect) IntX(ctx context.Context) int
- func (s *SnapshotSelect) Ints(ctx context.Context) ([]int, error)
- func (s *SnapshotSelect) IntsX(ctx context.Context) []int
- func (ss *SnapshotSelect) Scan(ctx context.Context, v any) error
- func (s *SnapshotSelect) ScanX(ctx context.Context, v any)
- func (s *SnapshotSelect) String(ctx context.Context) (_ string, err error)
- func (s *SnapshotSelect) StringX(ctx context.Context) string
- func (s *SnapshotSelect) Strings(ctx context.Context) ([]string, error)
- func (s *SnapshotSelect) StringsX(ctx context.Context) []string
- type SnapshotUpdate
- func (su *SnapshotUpdate) AppendAckedMessageIDs(u []uuid.UUID) *SnapshotUpdate
- func (su *SnapshotUpdate) ClearAckedMessageIDs() *SnapshotUpdate
- func (su *SnapshotUpdate) ClearLabels() *SnapshotUpdate
- func (su *SnapshotUpdate) ClearTopic() *SnapshotUpdate
- func (su *SnapshotUpdate) Exec(ctx context.Context) error
- func (su *SnapshotUpdate) ExecX(ctx context.Context)
- func (su *SnapshotUpdate) Mutation() *SnapshotMutation
- func (su *SnapshotUpdate) Save(ctx context.Context) (int, error)
- func (su *SnapshotUpdate) SaveX(ctx context.Context) int
- func (su *SnapshotUpdate) SetAckedMessageIDs(u []uuid.UUID) *SnapshotUpdate
- func (su *SnapshotUpdate) SetAckedMessagesBefore(t time.Time) *SnapshotUpdate
- func (su *SnapshotUpdate) SetExpiresAt(t time.Time) *SnapshotUpdate
- func (su *SnapshotUpdate) SetLabels(m map[string]string) *SnapshotUpdate
- func (su *SnapshotUpdate) SetNillableAckedMessagesBefore(t *time.Time) *SnapshotUpdate
- func (su *SnapshotUpdate) SetNillableExpiresAt(t *time.Time) *SnapshotUpdate
- func (su *SnapshotUpdate) SetNillableTopicID(u *uuid.UUID) *SnapshotUpdate
- func (su *SnapshotUpdate) SetTopic(t *Topic) *SnapshotUpdate
- func (su *SnapshotUpdate) SetTopicID(u uuid.UUID) *SnapshotUpdate
- func (su *SnapshotUpdate) Where(ps ...predicate.Snapshot) *SnapshotUpdate
- type SnapshotUpdateOne
- func (suo *SnapshotUpdateOne) AppendAckedMessageIDs(u []uuid.UUID) *SnapshotUpdateOne
- func (suo *SnapshotUpdateOne) ClearAckedMessageIDs() *SnapshotUpdateOne
- func (suo *SnapshotUpdateOne) ClearLabels() *SnapshotUpdateOne
- func (suo *SnapshotUpdateOne) ClearTopic() *SnapshotUpdateOne
- func (suo *SnapshotUpdateOne) Exec(ctx context.Context) error
- func (suo *SnapshotUpdateOne) ExecX(ctx context.Context)
- func (suo *SnapshotUpdateOne) Mutation() *SnapshotMutation
- func (suo *SnapshotUpdateOne) Save(ctx context.Context) (*Snapshot, error)
- func (suo *SnapshotUpdateOne) SaveX(ctx context.Context) *Snapshot
- func (suo *SnapshotUpdateOne) Select(field string, fields ...string) *SnapshotUpdateOne
- func (suo *SnapshotUpdateOne) SetAckedMessageIDs(u []uuid.UUID) *SnapshotUpdateOne
- func (suo *SnapshotUpdateOne) SetAckedMessagesBefore(t time.Time) *SnapshotUpdateOne
- func (suo *SnapshotUpdateOne) SetExpiresAt(t time.Time) *SnapshotUpdateOne
- func (suo *SnapshotUpdateOne) SetLabels(m map[string]string) *SnapshotUpdateOne
- func (suo *SnapshotUpdateOne) SetNillableAckedMessagesBefore(t *time.Time) *SnapshotUpdateOne
- func (suo *SnapshotUpdateOne) SetNillableExpiresAt(t *time.Time) *SnapshotUpdateOne
- func (suo *SnapshotUpdateOne) SetNillableTopicID(u *uuid.UUID) *SnapshotUpdateOne
- func (suo *SnapshotUpdateOne) SetTopic(t *Topic) *SnapshotUpdateOne
- func (suo *SnapshotUpdateOne) SetTopicID(u uuid.UUID) *SnapshotUpdateOne
- func (suo *SnapshotUpdateOne) Where(ps ...predicate.Snapshot) *SnapshotUpdateOne
- type SnapshotUpsert
- func (u *SnapshotUpsert) ClearAckedMessageIDs() *SnapshotUpsert
- func (u *SnapshotUpsert) ClearLabels() *SnapshotUpsert
- func (u *SnapshotUpsert) SetAckedMessageIDs(v []uuid.UUID) *SnapshotUpsert
- func (u *SnapshotUpsert) SetAckedMessagesBefore(v time.Time) *SnapshotUpsert
- func (u *SnapshotUpsert) SetExpiresAt(v time.Time) *SnapshotUpsert
- func (u *SnapshotUpsert) SetLabels(v map[string]string) *SnapshotUpsert
- func (u *SnapshotUpsert) SetTopicID(v uuid.UUID) *SnapshotUpsert
- func (u *SnapshotUpsert) UpdateAckedMessageIDs() *SnapshotUpsert
- func (u *SnapshotUpsert) UpdateAckedMessagesBefore() *SnapshotUpsert
- func (u *SnapshotUpsert) UpdateExpiresAt() *SnapshotUpsert
- func (u *SnapshotUpsert) UpdateLabels() *SnapshotUpsert
- func (u *SnapshotUpsert) UpdateTopicID() *SnapshotUpsert
- type SnapshotUpsertBulk
- func (u *SnapshotUpsertBulk) ClearAckedMessageIDs() *SnapshotUpsertBulk
- func (u *SnapshotUpsertBulk) ClearLabels() *SnapshotUpsertBulk
- func (u *SnapshotUpsertBulk) DoNothing() *SnapshotUpsertBulk
- func (u *SnapshotUpsertBulk) Exec(ctx context.Context) error
- func (u *SnapshotUpsertBulk) ExecX(ctx context.Context)
- func (u *SnapshotUpsertBulk) Ignore() *SnapshotUpsertBulk
- func (u *SnapshotUpsertBulk) SetAckedMessageIDs(v []uuid.UUID) *SnapshotUpsertBulk
- func (u *SnapshotUpsertBulk) SetAckedMessagesBefore(v time.Time) *SnapshotUpsertBulk
- func (u *SnapshotUpsertBulk) SetExpiresAt(v time.Time) *SnapshotUpsertBulk
- func (u *SnapshotUpsertBulk) SetLabels(v map[string]string) *SnapshotUpsertBulk
- func (u *SnapshotUpsertBulk) SetTopicID(v uuid.UUID) *SnapshotUpsertBulk
- func (u *SnapshotUpsertBulk) Update(set func(*SnapshotUpsert)) *SnapshotUpsertBulk
- func (u *SnapshotUpsertBulk) UpdateAckedMessageIDs() *SnapshotUpsertBulk
- func (u *SnapshotUpsertBulk) UpdateAckedMessagesBefore() *SnapshotUpsertBulk
- func (u *SnapshotUpsertBulk) UpdateExpiresAt() *SnapshotUpsertBulk
- func (u *SnapshotUpsertBulk) UpdateLabels() *SnapshotUpsertBulk
- func (u *SnapshotUpsertBulk) UpdateNewValues() *SnapshotUpsertBulk
- func (u *SnapshotUpsertBulk) UpdateTopicID() *SnapshotUpsertBulk
- type SnapshotUpsertOne
- func (u *SnapshotUpsertOne) ClearAckedMessageIDs() *SnapshotUpsertOne
- func (u *SnapshotUpsertOne) ClearLabels() *SnapshotUpsertOne
- func (u *SnapshotUpsertOne) DoNothing() *SnapshotUpsertOne
- func (u *SnapshotUpsertOne) Exec(ctx context.Context) error
- func (u *SnapshotUpsertOne) ExecX(ctx context.Context)
- func (u *SnapshotUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)
- func (u *SnapshotUpsertOne) IDX(ctx context.Context) uuid.UUID
- func (u *SnapshotUpsertOne) Ignore() *SnapshotUpsertOne
- func (u *SnapshotUpsertOne) SetAckedMessageIDs(v []uuid.UUID) *SnapshotUpsertOne
- func (u *SnapshotUpsertOne) SetAckedMessagesBefore(v time.Time) *SnapshotUpsertOne
- func (u *SnapshotUpsertOne) SetExpiresAt(v time.Time) *SnapshotUpsertOne
- func (u *SnapshotUpsertOne) SetLabels(v map[string]string) *SnapshotUpsertOne
- func (u *SnapshotUpsertOne) SetTopicID(v uuid.UUID) *SnapshotUpsertOne
- func (u *SnapshotUpsertOne) Update(set func(*SnapshotUpsert)) *SnapshotUpsertOne
- func (u *SnapshotUpsertOne) UpdateAckedMessageIDs() *SnapshotUpsertOne
- func (u *SnapshotUpsertOne) UpdateAckedMessagesBefore() *SnapshotUpsertOne
- func (u *SnapshotUpsertOne) UpdateExpiresAt() *SnapshotUpsertOne
- func (u *SnapshotUpsertOne) UpdateLabels() *SnapshotUpsertOne
- func (u *SnapshotUpsertOne) UpdateNewValues() *SnapshotUpsertOne
- func (u *SnapshotUpsertOne) UpdateTopicID() *SnapshotUpsertOne
- type Snapshots
- type Subscription
- func (s *Subscription) HasFullDeadLetterConfig() bool
- func (s *Subscription) QueryDeadLetterTopic() *TopicQuery
- func (s *Subscription) QueryDeliveries() *DeliveryQuery
- func (s *Subscription) QueryTopic() *TopicQuery
- func (s *Subscription) String() string
- func (s *Subscription) Unwrap() *Subscription
- func (s *Subscription) Update() *SubscriptionUpdateOne
- func (s *Subscription) Value(name string) (ent.Value, error)
- type SubscriptionClient
- func (c *SubscriptionClient) Create() *SubscriptionCreate
- func (c *SubscriptionClient) CreateBulk(builders ...*SubscriptionCreate) *SubscriptionCreateBulk
- func (c *SubscriptionClient) Delete() *SubscriptionDelete
- func (c *SubscriptionClient) DeleteOne(s *Subscription) *SubscriptionDeleteOne
- func (c *SubscriptionClient) DeleteOneID(id uuid.UUID) *SubscriptionDeleteOne
- func (c *SubscriptionClient) Get(ctx context.Context, id uuid.UUID) (*Subscription, error)
- func (c *SubscriptionClient) GetX(ctx context.Context, id uuid.UUID) *Subscription
- func (c *SubscriptionClient) Hooks() []Hook
- func (c *SubscriptionClient) Intercept(interceptors ...Interceptor)
- func (c *SubscriptionClient) Interceptors() []Interceptor
- func (c *SubscriptionClient) MapCreateBulk(slice any, setFunc func(*SubscriptionCreate, int)) *SubscriptionCreateBulk
- func (c *SubscriptionClient) Query() *SubscriptionQuery
- func (c *SubscriptionClient) QueryDeadLetterTopic(s *Subscription) *TopicQuery
- func (c *SubscriptionClient) QueryDeliveries(s *Subscription) *DeliveryQuery
- func (c *SubscriptionClient) QueryTopic(s *Subscription) *TopicQuery
- func (c *SubscriptionClient) Update() *SubscriptionUpdate
- func (c *SubscriptionClient) UpdateOne(s *Subscription) *SubscriptionUpdateOne
- func (c *SubscriptionClient) UpdateOneID(id uuid.UUID) *SubscriptionUpdateOne
- func (c *SubscriptionClient) Use(hooks ...Hook)
- type SubscriptionCreate
- func (sc *SubscriptionCreate) AddDeliveries(d ...*Delivery) *SubscriptionCreate
- func (sc *SubscriptionCreate) AddDeliveryIDs(ids ...uuid.UUID) *SubscriptionCreate
- func (sc *SubscriptionCreate) Exec(ctx context.Context) error
- func (sc *SubscriptionCreate) ExecX(ctx context.Context)
- func (sc *SubscriptionCreate) Mutation() *SubscriptionMutation
- func (sc *SubscriptionCreate) OnConflict(opts ...sql.ConflictOption) *SubscriptionUpsertOne
- func (sc *SubscriptionCreate) OnConflictColumns(columns ...string) *SubscriptionUpsertOne
- func (sc *SubscriptionCreate) Save(ctx context.Context) (*Subscription, error)
- func (sc *SubscriptionCreate) SaveX(ctx context.Context) *Subscription
- func (sc *SubscriptionCreate) SetCreatedAt(t time.Time) *SubscriptionCreate
- func (sc *SubscriptionCreate) SetDeadLetterTopic(t *Topic) *SubscriptionCreate
- func (sc *SubscriptionCreate) SetDeadLetterTopicID(u uuid.UUID) *SubscriptionCreate
- func (sc *SubscriptionCreate) SetDeletedAt(t time.Time) *SubscriptionCreate
- func (sc *SubscriptionCreate) SetDeliveryDelay(s sqltypes.Interval) *SubscriptionCreate
- func (sc *SubscriptionCreate) SetExpiresAt(t time.Time) *SubscriptionCreate
- func (sc *SubscriptionCreate) SetID(u uuid.UUID) *SubscriptionCreate
- func (sc *SubscriptionCreate) SetLabels(m map[string]string) *SubscriptionCreate
- func (sc *SubscriptionCreate) SetLive(b bool) *SubscriptionCreate
- func (sc *SubscriptionCreate) SetMaxBackoff(s *sqltypes.Interval) *SubscriptionCreate
- func (sc *SubscriptionCreate) SetMaxDeliveryAttempts(i int32) *SubscriptionCreate
- func (sc *SubscriptionCreate) SetMessageFilter(s string) *SubscriptionCreate
- func (sc *SubscriptionCreate) SetMessageTTL(s sqltypes.Interval) *SubscriptionCreate
- func (sc *SubscriptionCreate) SetMinBackoff(s *sqltypes.Interval) *SubscriptionCreate
- func (sc *SubscriptionCreate) SetName(s string) *SubscriptionCreate
- func (sc *SubscriptionCreate) SetNillableCreatedAt(t *time.Time) *SubscriptionCreate
- func (sc *SubscriptionCreate) SetNillableDeadLetterTopicID(u *uuid.UUID) *SubscriptionCreate
- func (sc *SubscriptionCreate) SetNillableDeletedAt(t *time.Time) *SubscriptionCreate
- func (sc *SubscriptionCreate) SetNillableDeliveryDelay(s *sqltypes.Interval) *SubscriptionCreate
- func (sc *SubscriptionCreate) SetNillableID(u *uuid.UUID) *SubscriptionCreate
- func (sc *SubscriptionCreate) SetNillableLive(b *bool) *SubscriptionCreate
- func (sc *SubscriptionCreate) SetNillableMaxDeliveryAttempts(i *int32) *SubscriptionCreate
- func (sc *SubscriptionCreate) SetNillableMessageFilter(s *string) *SubscriptionCreate
- func (sc *SubscriptionCreate) SetNillableOrderedDelivery(b *bool) *SubscriptionCreate
- func (sc *SubscriptionCreate) SetNillablePushEndpoint(s *string) *SubscriptionCreate
- func (sc *SubscriptionCreate) SetOrderedDelivery(b bool) *SubscriptionCreate
- func (sc *SubscriptionCreate) SetPushEndpoint(s string) *SubscriptionCreate
- func (sc *SubscriptionCreate) SetTTL(s sqltypes.Interval) *SubscriptionCreate
- func (sc *SubscriptionCreate) SetTopic(t *Topic) *SubscriptionCreate
- func (sc *SubscriptionCreate) SetTopicID(u uuid.UUID) *SubscriptionCreate
- type SubscriptionCreateBulk
- func (scb *SubscriptionCreateBulk) Exec(ctx context.Context) error
- func (scb *SubscriptionCreateBulk) ExecX(ctx context.Context)
- func (scb *SubscriptionCreateBulk) OnConflict(opts ...sql.ConflictOption) *SubscriptionUpsertBulk
- func (scb *SubscriptionCreateBulk) OnConflictColumns(columns ...string) *SubscriptionUpsertBulk
- func (scb *SubscriptionCreateBulk) Save(ctx context.Context) ([]*Subscription, error)
- func (scb *SubscriptionCreateBulk) SaveX(ctx context.Context) []*Subscription
- type SubscriptionDelete
- type SubscriptionDeleteOne
- type SubscriptionEdges
- type SubscriptionFilter
- func (f *SubscriptionFilter) Where(p entql.P)
- func (f *SubscriptionFilter) WhereCreatedAt(p entql.TimeP)
- func (f *SubscriptionFilter) WhereDeadLetterTopicID(p entql.ValueP)
- func (f *SubscriptionFilter) WhereDeletedAt(p entql.TimeP)
- func (f *SubscriptionFilter) WhereDeliveryDelay(p entql.OtherP)
- func (f *SubscriptionFilter) WhereExpiresAt(p entql.TimeP)
- func (f *SubscriptionFilter) WhereHasDeadLetterTopic()
- func (f *SubscriptionFilter) WhereHasDeadLetterTopicWith(preds ...predicate.Topic)
- func (f *SubscriptionFilter) WhereHasDeliveries()
- func (f *SubscriptionFilter) WhereHasDeliveriesWith(preds ...predicate.Delivery)
- func (f *SubscriptionFilter) WhereHasTopic()
- func (f *SubscriptionFilter) WhereHasTopicWith(preds ...predicate.Topic)
- func (f *SubscriptionFilter) WhereID(p entql.ValueP)
- func (f *SubscriptionFilter) WhereLabels(p entql.BytesP)
- func (f *SubscriptionFilter) WhereLive(p entql.BoolP)
- func (f *SubscriptionFilter) WhereMaxBackoff(p entql.StringP)
- func (f *SubscriptionFilter) WhereMaxDeliveryAttempts(p entql.Int32P)
- func (f *SubscriptionFilter) WhereMessageFilter(p entql.StringP)
- func (f *SubscriptionFilter) WhereMessageTTL(p entql.StringP)
- func (f *SubscriptionFilter) WhereMinBackoff(p entql.StringP)
- func (f *SubscriptionFilter) WhereName(p entql.StringP)
- func (f *SubscriptionFilter) WhereOrderedDelivery(p entql.BoolP)
- func (f *SubscriptionFilter) WherePushEndpoint(p entql.StringP)
- func (f *SubscriptionFilter) WhereTTL(p entql.StringP)
- func (f *SubscriptionFilter) WhereTopicID(p entql.ValueP)
- type SubscriptionGroupBy
- func (sgb *SubscriptionGroupBy) Aggregate(fns ...AggregateFunc) *SubscriptionGroupBy
- func (s *SubscriptionGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *SubscriptionGroupBy) BoolX(ctx context.Context) bool
- func (s *SubscriptionGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *SubscriptionGroupBy) BoolsX(ctx context.Context) []bool
- func (s *SubscriptionGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *SubscriptionGroupBy) Float64X(ctx context.Context) float64
- func (s *SubscriptionGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *SubscriptionGroupBy) Float64sX(ctx context.Context) []float64
- func (s *SubscriptionGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *SubscriptionGroupBy) IntX(ctx context.Context) int
- func (s *SubscriptionGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *SubscriptionGroupBy) IntsX(ctx context.Context) []int
- func (sgb *SubscriptionGroupBy) Scan(ctx context.Context, v any) error
- func (s *SubscriptionGroupBy) ScanX(ctx context.Context, v any)
- func (s *SubscriptionGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *SubscriptionGroupBy) StringX(ctx context.Context) string
- func (s *SubscriptionGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *SubscriptionGroupBy) StringsX(ctx context.Context) []string
- type SubscriptionMutation
- func (m *SubscriptionMutation) AddDeliveryIDs(ids ...uuid.UUID)
- func (m *SubscriptionMutation) AddField(name string, value ent.Value) error
- func (m *SubscriptionMutation) AddMaxDeliveryAttempts(i int32)
- func (m *SubscriptionMutation) AddedEdges() []string
- func (m *SubscriptionMutation) AddedField(name string) (ent.Value, bool)
- func (m *SubscriptionMutation) AddedFields() []string
- func (m *SubscriptionMutation) AddedIDs(name string) []ent.Value
- func (m *SubscriptionMutation) AddedMaxDeliveryAttempts() (r int32, exists bool)
- func (m *SubscriptionMutation) ClearDeadLetterTopic()
- func (m *SubscriptionMutation) ClearDeadLetterTopicID()
- func (m *SubscriptionMutation) ClearDeletedAt()
- func (m *SubscriptionMutation) ClearDeliveries()
- func (m *SubscriptionMutation) ClearEdge(name string) error
- func (m *SubscriptionMutation) ClearField(name string) error
- func (m *SubscriptionMutation) ClearLabels()
- func (m *SubscriptionMutation) ClearLive()
- func (m *SubscriptionMutation) ClearMaxBackoff()
- func (m *SubscriptionMutation) ClearMaxDeliveryAttempts()
- func (m *SubscriptionMutation) ClearMessageFilter()
- func (m *SubscriptionMutation) ClearMinBackoff()
- func (m *SubscriptionMutation) ClearOrderedDelivery()
- func (m *SubscriptionMutation) ClearPushEndpoint()
- func (m *SubscriptionMutation) ClearTopic()
- func (m *SubscriptionMutation) ClearedEdges() []string
- func (m *SubscriptionMutation) ClearedFields() []string
- func (m SubscriptionMutation) Client() *Client
- func (m *SubscriptionMutation) CreatedAt() (r time.Time, exists bool)
- func (m *SubscriptionMutation) DeadLetterTopicCleared() bool
- func (m *SubscriptionMutation) DeadLetterTopicID() (r uuid.UUID, exists bool)
- func (m *SubscriptionMutation) DeadLetterTopicIDCleared() bool
- func (m *SubscriptionMutation) DeadLetterTopicIDs() (ids []uuid.UUID)
- func (m *SubscriptionMutation) DeletedAt() (r time.Time, exists bool)
- func (m *SubscriptionMutation) DeletedAtCleared() bool
- func (m *SubscriptionMutation) DeliveriesCleared() bool
- func (m *SubscriptionMutation) DeliveriesIDs() (ids []uuid.UUID)
- func (m *SubscriptionMutation) DeliveryDelay() (r sqltypes.Interval, exists bool)
- func (m *SubscriptionMutation) EdgeCleared(name string) bool
- func (m *SubscriptionMutation) ExpiresAt() (r time.Time, exists bool)
- func (m *SubscriptionMutation) Field(name string) (ent.Value, bool)
- func (m *SubscriptionMutation) FieldCleared(name string) bool
- func (m *SubscriptionMutation) Fields() []string
- func (m *SubscriptionMutation) Filter() *SubscriptionFilter
- func (m *SubscriptionMutation) ID() (id uuid.UUID, exists bool)
- func (m *SubscriptionMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *SubscriptionMutation) Labels() (r map[string]string, exists bool)
- func (m *SubscriptionMutation) LabelsCleared() bool
- func (m *SubscriptionMutation) Live() (r bool, exists bool)
- func (m *SubscriptionMutation) LiveCleared() bool
- func (m *SubscriptionMutation) MaxBackoff() (r *sqltypes.Interval, exists bool)
- func (m *SubscriptionMutation) MaxBackoffCleared() bool
- func (m *SubscriptionMutation) MaxDeliveryAttempts() (r int32, exists bool)
- func (m *SubscriptionMutation) MaxDeliveryAttemptsCleared() bool
- func (m *SubscriptionMutation) MessageFilter() (r string, exists bool)
- func (m *SubscriptionMutation) MessageFilterCleared() bool
- func (m *SubscriptionMutation) MessageTTL() (r sqltypes.Interval, exists bool)
- func (m *SubscriptionMutation) MinBackoff() (r *sqltypes.Interval, exists bool)
- func (m *SubscriptionMutation) MinBackoffCleared() bool
- func (m *SubscriptionMutation) Name() (r string, exists bool)
- func (m *SubscriptionMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SubscriptionMutation) OldDeadLetterTopicID(ctx context.Context) (v *uuid.UUID, err error)
- func (m *SubscriptionMutation) OldDeletedAt(ctx context.Context) (v *time.Time, err error)
- func (m *SubscriptionMutation) OldDeliveryDelay(ctx context.Context) (v sqltypes.Interval, err error)
- func (m *SubscriptionMutation) OldExpiresAt(ctx context.Context) (v time.Time, err error)
- func (m *SubscriptionMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *SubscriptionMutation) OldLabels(ctx context.Context) (v map[string]string, err error)
- func (m *SubscriptionMutation) OldLive(ctx context.Context) (v *bool, err error)
- func (m *SubscriptionMutation) OldMaxBackoff(ctx context.Context) (v *sqltypes.Interval, err error)
- func (m *SubscriptionMutation) OldMaxDeliveryAttempts(ctx context.Context) (v *int32, err error)
- func (m *SubscriptionMutation) OldMessageFilter(ctx context.Context) (v *string, err error)
- func (m *SubscriptionMutation) OldMessageTTL(ctx context.Context) (v sqltypes.Interval, err error)
- func (m *SubscriptionMutation) OldMinBackoff(ctx context.Context) (v *sqltypes.Interval, err error)
- func (m *SubscriptionMutation) OldName(ctx context.Context) (v string, err error)
- func (m *SubscriptionMutation) OldOrderedDelivery(ctx context.Context) (v bool, err error)
- func (m *SubscriptionMutation) OldPushEndpoint(ctx context.Context) (v *string, err error)
- func (m *SubscriptionMutation) OldTTL(ctx context.Context) (v sqltypes.Interval, err error)
- func (m *SubscriptionMutation) OldTopicID(ctx context.Context) (v uuid.UUID, err error)
- func (m *SubscriptionMutation) Op() Op
- func (m *SubscriptionMutation) OrderedDelivery() (r bool, exists bool)
- func (m *SubscriptionMutation) OrderedDeliveryCleared() bool
- func (m *SubscriptionMutation) PushEndpoint() (r string, exists bool)
- func (m *SubscriptionMutation) PushEndpointCleared() bool
- func (m *SubscriptionMutation) RemoveDeliveryIDs(ids ...uuid.UUID)
- func (m *SubscriptionMutation) RemovedDeliveriesIDs() (ids []uuid.UUID)
- func (m *SubscriptionMutation) RemovedEdges() []string
- func (m *SubscriptionMutation) RemovedIDs(name string) []ent.Value
- func (m *SubscriptionMutation) ResetCreatedAt()
- func (m *SubscriptionMutation) ResetDeadLetterTopic()
- func (m *SubscriptionMutation) ResetDeadLetterTopicID()
- func (m *SubscriptionMutation) ResetDeletedAt()
- func (m *SubscriptionMutation) ResetDeliveries()
- func (m *SubscriptionMutation) ResetDeliveryDelay()
- func (m *SubscriptionMutation) ResetEdge(name string) error
- func (m *SubscriptionMutation) ResetExpiresAt()
- func (m *SubscriptionMutation) ResetField(name string) error
- func (m *SubscriptionMutation) ResetLabels()
- func (m *SubscriptionMutation) ResetLive()
- func (m *SubscriptionMutation) ResetMaxBackoff()
- func (m *SubscriptionMutation) ResetMaxDeliveryAttempts()
- func (m *SubscriptionMutation) ResetMessageFilter()
- func (m *SubscriptionMutation) ResetMessageTTL()
- func (m *SubscriptionMutation) ResetMinBackoff()
- func (m *SubscriptionMutation) ResetName()
- func (m *SubscriptionMutation) ResetOrderedDelivery()
- func (m *SubscriptionMutation) ResetPushEndpoint()
- func (m *SubscriptionMutation) ResetTTL()
- func (m *SubscriptionMutation) ResetTopic()
- func (m *SubscriptionMutation) ResetTopicID()
- func (m *SubscriptionMutation) SetCreatedAt(t time.Time)
- func (m *SubscriptionMutation) SetDeadLetterTopicID(u uuid.UUID)
- func (m *SubscriptionMutation) SetDeletedAt(t time.Time)
- func (m *SubscriptionMutation) SetDeliveryDelay(s sqltypes.Interval)
- func (m *SubscriptionMutation) SetExpiresAt(t time.Time)
- func (m *SubscriptionMutation) SetField(name string, value ent.Value) error
- func (m *SubscriptionMutation) SetID(id uuid.UUID)
- func (m *SubscriptionMutation) SetLabels(value map[string]string)
- func (m *SubscriptionMutation) SetLive(b bool)
- func (m *SubscriptionMutation) SetMaxBackoff(s *sqltypes.Interval)
- func (m *SubscriptionMutation) SetMaxDeliveryAttempts(i int32)
- func (m *SubscriptionMutation) SetMessageFilter(s string)
- func (m *SubscriptionMutation) SetMessageTTL(s sqltypes.Interval)
- func (m *SubscriptionMutation) SetMinBackoff(s *sqltypes.Interval)
- func (m *SubscriptionMutation) SetName(s string)
- func (m *SubscriptionMutation) SetOp(op Op)
- func (m *SubscriptionMutation) SetOrderedDelivery(b bool)
- func (m *SubscriptionMutation) SetPushEndpoint(s string)
- func (m *SubscriptionMutation) SetTTL(s sqltypes.Interval)
- func (m *SubscriptionMutation) SetTopicID(u uuid.UUID)
- func (m *SubscriptionMutation) TTL() (r sqltypes.Interval, exists bool)
- func (m *SubscriptionMutation) TopicCleared() bool
- func (m *SubscriptionMutation) TopicID() (r uuid.UUID, exists bool)
- func (m *SubscriptionMutation) TopicIDs() (ids []uuid.UUID)
- func (m SubscriptionMutation) Tx() (*Tx, error)
- func (m *SubscriptionMutation) Type() string
- func (m *SubscriptionMutation) Where(ps ...predicate.Subscription)
- func (m *SubscriptionMutation) WhereP(ps ...func(*sql.Selector))
- type SubscriptionQuery
- func (sq *SubscriptionQuery) Aggregate(fns ...AggregateFunc) *SubscriptionSelect
- func (sq *SubscriptionQuery) All(ctx context.Context) ([]*Subscription, error)
- func (sq *SubscriptionQuery) AllX(ctx context.Context) []*Subscription
- func (sq *SubscriptionQuery) Clone() *SubscriptionQuery
- func (sq *SubscriptionQuery) Count(ctx context.Context) (int, error)
- func (sq *SubscriptionQuery) CountX(ctx context.Context) int
- func (sq *SubscriptionQuery) Exist(ctx context.Context) (bool, error)
- func (sq *SubscriptionQuery) ExistX(ctx context.Context) bool
- func (sq *SubscriptionQuery) Filter() *SubscriptionFilter
- func (sq *SubscriptionQuery) First(ctx context.Context) (*Subscription, error)
- func (sq *SubscriptionQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (sq *SubscriptionQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (sq *SubscriptionQuery) FirstX(ctx context.Context) *Subscription
- func (sq *SubscriptionQuery) ForShare(opts ...sql.LockOption) *SubscriptionQuery
- func (sq *SubscriptionQuery) ForUpdate(opts ...sql.LockOption) *SubscriptionQuery
- func (sq *SubscriptionQuery) GroupBy(field string, fields ...string) *SubscriptionGroupBy
- func (sq *SubscriptionQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (sq *SubscriptionQuery) IDsX(ctx context.Context) []uuid.UUID
- func (sq *SubscriptionQuery) Limit(limit int) *SubscriptionQuery
- func (sq *SubscriptionQuery) Offset(offset int) *SubscriptionQuery
- func (sq *SubscriptionQuery) Only(ctx context.Context) (*Subscription, error)
- func (sq *SubscriptionQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (sq *SubscriptionQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (sq *SubscriptionQuery) OnlyX(ctx context.Context) *Subscription
- func (sq *SubscriptionQuery) Order(o ...subscription.OrderOption) *SubscriptionQuery
- func (sq *SubscriptionQuery) QueryDeadLetterTopic() *TopicQuery
- func (sq *SubscriptionQuery) QueryDeliveries() *DeliveryQuery
- func (sq *SubscriptionQuery) QueryTopic() *TopicQuery
- func (sq *SubscriptionQuery) Select(fields ...string) *SubscriptionSelect
- func (sq *SubscriptionQuery) Unique(unique bool) *SubscriptionQuery
- func (sq *SubscriptionQuery) Where(ps ...predicate.Subscription) *SubscriptionQuery
- func (sq *SubscriptionQuery) WithDeadLetterTopic(opts ...func(*TopicQuery)) *SubscriptionQuery
- func (sq *SubscriptionQuery) WithDeliveries(opts ...func(*DeliveryQuery)) *SubscriptionQuery
- func (sq *SubscriptionQuery) WithTopic(opts ...func(*TopicQuery)) *SubscriptionQuery
- type SubscriptionSelect
- func (ss *SubscriptionSelect) Aggregate(fns ...AggregateFunc) *SubscriptionSelect
- func (s *SubscriptionSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *SubscriptionSelect) BoolX(ctx context.Context) bool
- func (s *SubscriptionSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *SubscriptionSelect) BoolsX(ctx context.Context) []bool
- func (s *SubscriptionSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *SubscriptionSelect) Float64X(ctx context.Context) float64
- func (s *SubscriptionSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *SubscriptionSelect) Float64sX(ctx context.Context) []float64
- func (s *SubscriptionSelect) Int(ctx context.Context) (_ int, err error)
- func (s *SubscriptionSelect) IntX(ctx context.Context) int
- func (s *SubscriptionSelect) Ints(ctx context.Context) ([]int, error)
- func (s *SubscriptionSelect) IntsX(ctx context.Context) []int
- func (ss *SubscriptionSelect) Scan(ctx context.Context, v any) error
- func (s *SubscriptionSelect) ScanX(ctx context.Context, v any)
- func (s *SubscriptionSelect) String(ctx context.Context) (_ string, err error)
- func (s *SubscriptionSelect) StringX(ctx context.Context) string
- func (s *SubscriptionSelect) Strings(ctx context.Context) ([]string, error)
- func (s *SubscriptionSelect) StringsX(ctx context.Context) []string
- type SubscriptionUpdate
- func (su *SubscriptionUpdate) AddDeliveries(d ...*Delivery) *SubscriptionUpdate
- func (su *SubscriptionUpdate) AddDeliveryIDs(ids ...uuid.UUID) *SubscriptionUpdate
- func (su *SubscriptionUpdate) AddMaxDeliveryAttempts(i int32) *SubscriptionUpdate
- func (su *SubscriptionUpdate) ClearDeadLetterTopic() *SubscriptionUpdate
- func (su *SubscriptionUpdate) ClearDeadLetterTopicID() *SubscriptionUpdate
- func (su *SubscriptionUpdate) ClearDeletedAt() *SubscriptionUpdate
- func (su *SubscriptionUpdate) ClearDeliveries() *SubscriptionUpdate
- func (su *SubscriptionUpdate) ClearLabels() *SubscriptionUpdate
- func (su *SubscriptionUpdate) ClearLive() *SubscriptionUpdate
- func (su *SubscriptionUpdate) ClearMaxBackoff() *SubscriptionUpdate
- func (su *SubscriptionUpdate) ClearMaxDeliveryAttempts() *SubscriptionUpdate
- func (su *SubscriptionUpdate) ClearMessageFilter() *SubscriptionUpdate
- func (su *SubscriptionUpdate) ClearMinBackoff() *SubscriptionUpdate
- func (su *SubscriptionUpdate) ClearOrderedDelivery() *SubscriptionUpdate
- func (su *SubscriptionUpdate) ClearPushEndpoint() *SubscriptionUpdate
- func (su *SubscriptionUpdate) ClearTopic() *SubscriptionUpdate
- func (su *SubscriptionUpdate) Exec(ctx context.Context) error
- func (su *SubscriptionUpdate) ExecX(ctx context.Context)
- func (su *SubscriptionUpdate) Mutation() *SubscriptionMutation
- func (su *SubscriptionUpdate) RemoveDeliveries(d ...*Delivery) *SubscriptionUpdate
- func (su *SubscriptionUpdate) RemoveDeliveryIDs(ids ...uuid.UUID) *SubscriptionUpdate
- func (su *SubscriptionUpdate) Save(ctx context.Context) (int, error)
- func (su *SubscriptionUpdate) SaveX(ctx context.Context) int
- func (su *SubscriptionUpdate) SetDeadLetterTopic(t *Topic) *SubscriptionUpdate
- func (su *SubscriptionUpdate) SetDeadLetterTopicID(u uuid.UUID) *SubscriptionUpdate
- func (su *SubscriptionUpdate) SetDeletedAt(t time.Time) *SubscriptionUpdate
- func (su *SubscriptionUpdate) SetDeliveryDelay(s sqltypes.Interval) *SubscriptionUpdate
- func (su *SubscriptionUpdate) SetExpiresAt(t time.Time) *SubscriptionUpdate
- func (su *SubscriptionUpdate) SetLabels(m map[string]string) *SubscriptionUpdate
- func (su *SubscriptionUpdate) SetLive(b bool) *SubscriptionUpdate
- func (su *SubscriptionUpdate) SetMaxBackoff(s *sqltypes.Interval) *SubscriptionUpdate
- func (su *SubscriptionUpdate) SetMaxDeliveryAttempts(i int32) *SubscriptionUpdate
- func (su *SubscriptionUpdate) SetMessageFilter(s string) *SubscriptionUpdate
- func (su *SubscriptionUpdate) SetMessageTTL(s sqltypes.Interval) *SubscriptionUpdate
- func (su *SubscriptionUpdate) SetMinBackoff(s *sqltypes.Interval) *SubscriptionUpdate
- func (su *SubscriptionUpdate) SetNillableDeadLetterTopicID(u *uuid.UUID) *SubscriptionUpdate
- func (su *SubscriptionUpdate) SetNillableDeletedAt(t *time.Time) *SubscriptionUpdate
- func (su *SubscriptionUpdate) SetNillableDeliveryDelay(s *sqltypes.Interval) *SubscriptionUpdate
- func (su *SubscriptionUpdate) SetNillableExpiresAt(t *time.Time) *SubscriptionUpdate
- func (su *SubscriptionUpdate) SetNillableLive(b *bool) *SubscriptionUpdate
- func (su *SubscriptionUpdate) SetNillableMaxDeliveryAttempts(i *int32) *SubscriptionUpdate
- func (su *SubscriptionUpdate) SetNillableMessageFilter(s *string) *SubscriptionUpdate
- func (su *SubscriptionUpdate) SetNillableMessageTTL(s *sqltypes.Interval) *SubscriptionUpdate
- func (su *SubscriptionUpdate) SetNillableOrderedDelivery(b *bool) *SubscriptionUpdate
- func (su *SubscriptionUpdate) SetNillablePushEndpoint(s *string) *SubscriptionUpdate
- func (su *SubscriptionUpdate) SetNillableTTL(s *sqltypes.Interval) *SubscriptionUpdate
- func (su *SubscriptionUpdate) SetNillableTopicID(u *uuid.UUID) *SubscriptionUpdate
- func (su *SubscriptionUpdate) SetOrderedDelivery(b bool) *SubscriptionUpdate
- func (su *SubscriptionUpdate) SetPushEndpoint(s string) *SubscriptionUpdate
- func (su *SubscriptionUpdate) SetTTL(s sqltypes.Interval) *SubscriptionUpdate
- func (su *SubscriptionUpdate) SetTopic(t *Topic) *SubscriptionUpdate
- func (su *SubscriptionUpdate) SetTopicID(u uuid.UUID) *SubscriptionUpdate
- func (su *SubscriptionUpdate) Where(ps ...predicate.Subscription) *SubscriptionUpdate
- type SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) AddDeliveries(d ...*Delivery) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) AddDeliveryIDs(ids ...uuid.UUID) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) AddMaxDeliveryAttempts(i int32) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) ClearDeadLetterTopic() *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) ClearDeadLetterTopicID() *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) ClearDeletedAt() *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) ClearDeliveries() *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) ClearLabels() *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) ClearLive() *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) ClearMaxBackoff() *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) ClearMaxDeliveryAttempts() *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) ClearMessageFilter() *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) ClearMinBackoff() *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) ClearOrderedDelivery() *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) ClearPushEndpoint() *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) ClearTopic() *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) Exec(ctx context.Context) error
- func (suo *SubscriptionUpdateOne) ExecX(ctx context.Context)
- func (suo *SubscriptionUpdateOne) Mutation() *SubscriptionMutation
- func (suo *SubscriptionUpdateOne) RemoveDeliveries(d ...*Delivery) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) RemoveDeliveryIDs(ids ...uuid.UUID) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) Save(ctx context.Context) (*Subscription, error)
- func (suo *SubscriptionUpdateOne) SaveX(ctx context.Context) *Subscription
- func (suo *SubscriptionUpdateOne) Select(field string, fields ...string) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) SetDeadLetterTopic(t *Topic) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) SetDeadLetterTopicID(u uuid.UUID) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) SetDeletedAt(t time.Time) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) SetDeliveryDelay(s sqltypes.Interval) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) SetExpiresAt(t time.Time) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) SetLabels(m map[string]string) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) SetLive(b bool) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) SetMaxBackoff(s *sqltypes.Interval) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) SetMaxDeliveryAttempts(i int32) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) SetMessageFilter(s string) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) SetMessageTTL(s sqltypes.Interval) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) SetMinBackoff(s *sqltypes.Interval) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) SetNillableDeadLetterTopicID(u *uuid.UUID) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) SetNillableDeletedAt(t *time.Time) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) SetNillableDeliveryDelay(s *sqltypes.Interval) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) SetNillableExpiresAt(t *time.Time) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) SetNillableLive(b *bool) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) SetNillableMaxDeliveryAttempts(i *int32) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) SetNillableMessageFilter(s *string) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) SetNillableMessageTTL(s *sqltypes.Interval) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) SetNillableOrderedDelivery(b *bool) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) SetNillablePushEndpoint(s *string) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) SetNillableTTL(s *sqltypes.Interval) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) SetNillableTopicID(u *uuid.UUID) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) SetOrderedDelivery(b bool) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) SetPushEndpoint(s string) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) SetTTL(s sqltypes.Interval) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) SetTopic(t *Topic) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) SetTopicID(u uuid.UUID) *SubscriptionUpdateOne
- func (suo *SubscriptionUpdateOne) Where(ps ...predicate.Subscription) *SubscriptionUpdateOne
- type SubscriptionUpsert
- func (u *SubscriptionUpsert) AddMaxDeliveryAttempts(v int32) *SubscriptionUpsert
- func (u *SubscriptionUpsert) ClearDeadLetterTopicID() *SubscriptionUpsert
- func (u *SubscriptionUpsert) ClearDeletedAt() *SubscriptionUpsert
- func (u *SubscriptionUpsert) ClearLabels() *SubscriptionUpsert
- func (u *SubscriptionUpsert) ClearLive() *SubscriptionUpsert
- func (u *SubscriptionUpsert) ClearMaxBackoff() *SubscriptionUpsert
- func (u *SubscriptionUpsert) ClearMaxDeliveryAttempts() *SubscriptionUpsert
- func (u *SubscriptionUpsert) ClearMessageFilter() *SubscriptionUpsert
- func (u *SubscriptionUpsert) ClearMinBackoff() *SubscriptionUpsert
- func (u *SubscriptionUpsert) ClearOrderedDelivery() *SubscriptionUpsert
- func (u *SubscriptionUpsert) ClearPushEndpoint() *SubscriptionUpsert
- func (u *SubscriptionUpsert) SetDeadLetterTopicID(v uuid.UUID) *SubscriptionUpsert
- func (u *SubscriptionUpsert) SetDeletedAt(v time.Time) *SubscriptionUpsert
- func (u *SubscriptionUpsert) SetDeliveryDelay(v sqltypes.Interval) *SubscriptionUpsert
- func (u *SubscriptionUpsert) SetExpiresAt(v time.Time) *SubscriptionUpsert
- func (u *SubscriptionUpsert) SetLabels(v map[string]string) *SubscriptionUpsert
- func (u *SubscriptionUpsert) SetLive(v bool) *SubscriptionUpsert
- func (u *SubscriptionUpsert) SetMaxBackoff(v *sqltypes.Interval) *SubscriptionUpsert
- func (u *SubscriptionUpsert) SetMaxDeliveryAttempts(v int32) *SubscriptionUpsert
- func (u *SubscriptionUpsert) SetMessageFilter(v string) *SubscriptionUpsert
- func (u *SubscriptionUpsert) SetMessageTTL(v sqltypes.Interval) *SubscriptionUpsert
- func (u *SubscriptionUpsert) SetMinBackoff(v *sqltypes.Interval) *SubscriptionUpsert
- func (u *SubscriptionUpsert) SetOrderedDelivery(v bool) *SubscriptionUpsert
- func (u *SubscriptionUpsert) SetPushEndpoint(v string) *SubscriptionUpsert
- func (u *SubscriptionUpsert) SetTTL(v sqltypes.Interval) *SubscriptionUpsert
- func (u *SubscriptionUpsert) SetTopicID(v uuid.UUID) *SubscriptionUpsert
- func (u *SubscriptionUpsert) UpdateDeadLetterTopicID() *SubscriptionUpsert
- func (u *SubscriptionUpsert) UpdateDeletedAt() *SubscriptionUpsert
- func (u *SubscriptionUpsert) UpdateDeliveryDelay() *SubscriptionUpsert
- func (u *SubscriptionUpsert) UpdateExpiresAt() *SubscriptionUpsert
- func (u *SubscriptionUpsert) UpdateLabels() *SubscriptionUpsert
- func (u *SubscriptionUpsert) UpdateLive() *SubscriptionUpsert
- func (u *SubscriptionUpsert) UpdateMaxBackoff() *SubscriptionUpsert
- func (u *SubscriptionUpsert) UpdateMaxDeliveryAttempts() *SubscriptionUpsert
- func (u *SubscriptionUpsert) UpdateMessageFilter() *SubscriptionUpsert
- func (u *SubscriptionUpsert) UpdateMessageTTL() *SubscriptionUpsert
- func (u *SubscriptionUpsert) UpdateMinBackoff() *SubscriptionUpsert
- func (u *SubscriptionUpsert) UpdateOrderedDelivery() *SubscriptionUpsert
- func (u *SubscriptionUpsert) UpdatePushEndpoint() *SubscriptionUpsert
- func (u *SubscriptionUpsert) UpdateTTL() *SubscriptionUpsert
- func (u *SubscriptionUpsert) UpdateTopicID() *SubscriptionUpsert
- type SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) AddMaxDeliveryAttempts(v int32) *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) ClearDeadLetterTopicID() *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) ClearDeletedAt() *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) ClearLabels() *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) ClearLive() *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) ClearMaxBackoff() *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) ClearMaxDeliveryAttempts() *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) ClearMessageFilter() *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) ClearMinBackoff() *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) ClearOrderedDelivery() *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) ClearPushEndpoint() *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) DoNothing() *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) Exec(ctx context.Context) error
- func (u *SubscriptionUpsertBulk) ExecX(ctx context.Context)
- func (u *SubscriptionUpsertBulk) Ignore() *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) SetDeadLetterTopicID(v uuid.UUID) *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) SetDeletedAt(v time.Time) *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) SetDeliveryDelay(v sqltypes.Interval) *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) SetExpiresAt(v time.Time) *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) SetLabels(v map[string]string) *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) SetLive(v bool) *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) SetMaxBackoff(v *sqltypes.Interval) *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) SetMaxDeliveryAttempts(v int32) *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) SetMessageFilter(v string) *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) SetMessageTTL(v sqltypes.Interval) *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) SetMinBackoff(v *sqltypes.Interval) *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) SetOrderedDelivery(v bool) *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) SetPushEndpoint(v string) *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) SetTTL(v sqltypes.Interval) *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) SetTopicID(v uuid.UUID) *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) Update(set func(*SubscriptionUpsert)) *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) UpdateDeadLetterTopicID() *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) UpdateDeletedAt() *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) UpdateDeliveryDelay() *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) UpdateExpiresAt() *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) UpdateLabels() *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) UpdateLive() *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) UpdateMaxBackoff() *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) UpdateMaxDeliveryAttempts() *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) UpdateMessageFilter() *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) UpdateMessageTTL() *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) UpdateMinBackoff() *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) UpdateNewValues() *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) UpdateOrderedDelivery() *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) UpdatePushEndpoint() *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) UpdateTTL() *SubscriptionUpsertBulk
- func (u *SubscriptionUpsertBulk) UpdateTopicID() *SubscriptionUpsertBulk
- type SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) AddMaxDeliveryAttempts(v int32) *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) ClearDeadLetterTopicID() *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) ClearDeletedAt() *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) ClearLabels() *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) ClearLive() *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) ClearMaxBackoff() *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) ClearMaxDeliveryAttempts() *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) ClearMessageFilter() *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) ClearMinBackoff() *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) ClearOrderedDelivery() *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) ClearPushEndpoint() *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) DoNothing() *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) Exec(ctx context.Context) error
- func (u *SubscriptionUpsertOne) ExecX(ctx context.Context)
- func (u *SubscriptionUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)
- func (u *SubscriptionUpsertOne) IDX(ctx context.Context) uuid.UUID
- func (u *SubscriptionUpsertOne) Ignore() *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) SetDeadLetterTopicID(v uuid.UUID) *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) SetDeletedAt(v time.Time) *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) SetDeliveryDelay(v sqltypes.Interval) *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) SetExpiresAt(v time.Time) *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) SetLabels(v map[string]string) *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) SetLive(v bool) *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) SetMaxBackoff(v *sqltypes.Interval) *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) SetMaxDeliveryAttempts(v int32) *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) SetMessageFilter(v string) *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) SetMessageTTL(v sqltypes.Interval) *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) SetMinBackoff(v *sqltypes.Interval) *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) SetOrderedDelivery(v bool) *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) SetPushEndpoint(v string) *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) SetTTL(v sqltypes.Interval) *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) SetTopicID(v uuid.UUID) *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) Update(set func(*SubscriptionUpsert)) *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) UpdateDeadLetterTopicID() *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) UpdateDeletedAt() *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) UpdateDeliveryDelay() *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) UpdateExpiresAt() *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) UpdateLabels() *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) UpdateLive() *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) UpdateMaxBackoff() *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) UpdateMaxDeliveryAttempts() *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) UpdateMessageFilter() *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) UpdateMessageTTL() *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) UpdateMinBackoff() *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) UpdateNewValues() *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) UpdateOrderedDelivery() *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) UpdatePushEndpoint() *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) UpdateTTL() *SubscriptionUpsertOne
- func (u *SubscriptionUpsertOne) UpdateTopicID() *SubscriptionUpsertOne
- type Subscriptions
- type Topic
- type TopicClient
- func (c *TopicClient) Create() *TopicCreate
- func (c *TopicClient) CreateBulk(builders ...*TopicCreate) *TopicCreateBulk
- func (c *TopicClient) Delete() *TopicDelete
- func (c *TopicClient) DeleteOne(t *Topic) *TopicDeleteOne
- func (c *TopicClient) DeleteOneID(id uuid.UUID) *TopicDeleteOne
- func (c *TopicClient) Get(ctx context.Context, id uuid.UUID) (*Topic, error)
- func (c *TopicClient) GetX(ctx context.Context, id uuid.UUID) *Topic
- func (c *TopicClient) Hooks() []Hook
- func (c *TopicClient) Intercept(interceptors ...Interceptor)
- func (c *TopicClient) Interceptors() []Interceptor
- func (c *TopicClient) MapCreateBulk(slice any, setFunc func(*TopicCreate, int)) *TopicCreateBulk
- func (c *TopicClient) Query() *TopicQuery
- func (c *TopicClient) QueryMessages(t *Topic) *MessageQuery
- func (c *TopicClient) QuerySubscriptions(t *Topic) *SubscriptionQuery
- func (c *TopicClient) Update() *TopicUpdate
- func (c *TopicClient) UpdateOne(t *Topic) *TopicUpdateOne
- func (c *TopicClient) UpdateOneID(id uuid.UUID) *TopicUpdateOne
- func (c *TopicClient) Use(hooks ...Hook)
- type TopicCreate
- func (tc *TopicCreate) AddMessageIDs(ids ...uuid.UUID) *TopicCreate
- func (tc *TopicCreate) AddMessages(m ...*Message) *TopicCreate
- func (tc *TopicCreate) AddSubscriptionIDs(ids ...uuid.UUID) *TopicCreate
- func (tc *TopicCreate) AddSubscriptions(s ...*Subscription) *TopicCreate
- func (tc *TopicCreate) Exec(ctx context.Context) error
- func (tc *TopicCreate) ExecX(ctx context.Context)
- func (tc *TopicCreate) Mutation() *TopicMutation
- func (tc *TopicCreate) OnConflict(opts ...sql.ConflictOption) *TopicUpsertOne
- func (tc *TopicCreate) OnConflictColumns(columns ...string) *TopicUpsertOne
- func (tc *TopicCreate) Save(ctx context.Context) (*Topic, error)
- func (tc *TopicCreate) SaveX(ctx context.Context) *Topic
- func (tc *TopicCreate) SetCreatedAt(t time.Time) *TopicCreate
- func (tc *TopicCreate) SetDeletedAt(t time.Time) *TopicCreate
- func (tc *TopicCreate) SetID(u uuid.UUID) *TopicCreate
- func (tc *TopicCreate) SetLabels(m map[string]string) *TopicCreate
- func (tc *TopicCreate) SetLive(b bool) *TopicCreate
- func (tc *TopicCreate) SetName(s string) *TopicCreate
- func (tc *TopicCreate) SetNillableCreatedAt(t *time.Time) *TopicCreate
- func (tc *TopicCreate) SetNillableDeletedAt(t *time.Time) *TopicCreate
- func (tc *TopicCreate) SetNillableID(u *uuid.UUID) *TopicCreate
- func (tc *TopicCreate) SetNillableLive(b *bool) *TopicCreate
- type TopicCreateBulk
- func (tcb *TopicCreateBulk) Exec(ctx context.Context) error
- func (tcb *TopicCreateBulk) ExecX(ctx context.Context)
- func (tcb *TopicCreateBulk) OnConflict(opts ...sql.ConflictOption) *TopicUpsertBulk
- func (tcb *TopicCreateBulk) OnConflictColumns(columns ...string) *TopicUpsertBulk
- func (tcb *TopicCreateBulk) Save(ctx context.Context) ([]*Topic, error)
- func (tcb *TopicCreateBulk) SaveX(ctx context.Context) []*Topic
- type TopicDelete
- type TopicDeleteOne
- type TopicEdges
- type TopicFilter
- func (f *TopicFilter) Where(p entql.P)
- func (f *TopicFilter) WhereCreatedAt(p entql.TimeP)
- func (f *TopicFilter) WhereDeletedAt(p entql.TimeP)
- func (f *TopicFilter) WhereHasMessages()
- func (f *TopicFilter) WhereHasMessagesWith(preds ...predicate.Message)
- func (f *TopicFilter) WhereHasSubscriptions()
- func (f *TopicFilter) WhereHasSubscriptionsWith(preds ...predicate.Subscription)
- func (f *TopicFilter) WhereID(p entql.ValueP)
- func (f *TopicFilter) WhereLabels(p entql.BytesP)
- func (f *TopicFilter) WhereLive(p entql.BoolP)
- func (f *TopicFilter) WhereName(p entql.StringP)
- type TopicGroupBy
- func (tgb *TopicGroupBy) Aggregate(fns ...AggregateFunc) *TopicGroupBy
- func (s *TopicGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *TopicGroupBy) BoolX(ctx context.Context) bool
- func (s *TopicGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *TopicGroupBy) BoolsX(ctx context.Context) []bool
- func (s *TopicGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *TopicGroupBy) Float64X(ctx context.Context) float64
- func (s *TopicGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *TopicGroupBy) Float64sX(ctx context.Context) []float64
- func (s *TopicGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *TopicGroupBy) IntX(ctx context.Context) int
- func (s *TopicGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *TopicGroupBy) IntsX(ctx context.Context) []int
- func (tgb *TopicGroupBy) Scan(ctx context.Context, v any) error
- func (s *TopicGroupBy) ScanX(ctx context.Context, v any)
- func (s *TopicGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *TopicGroupBy) StringX(ctx context.Context) string
- func (s *TopicGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *TopicGroupBy) StringsX(ctx context.Context) []string
- type TopicMutation
- func (m *TopicMutation) AddField(name string, value ent.Value) error
- func (m *TopicMutation) AddMessageIDs(ids ...uuid.UUID)
- func (m *TopicMutation) AddSubscriptionIDs(ids ...uuid.UUID)
- func (m *TopicMutation) AddedEdges() []string
- func (m *TopicMutation) AddedField(name string) (ent.Value, bool)
- func (m *TopicMutation) AddedFields() []string
- func (m *TopicMutation) AddedIDs(name string) []ent.Value
- func (m *TopicMutation) ClearDeletedAt()
- func (m *TopicMutation) ClearEdge(name string) error
- func (m *TopicMutation) ClearField(name string) error
- func (m *TopicMutation) ClearLabels()
- func (m *TopicMutation) ClearLive()
- func (m *TopicMutation) ClearMessages()
- func (m *TopicMutation) ClearSubscriptions()
- func (m *TopicMutation) ClearedEdges() []string
- func (m *TopicMutation) ClearedFields() []string
- func (m TopicMutation) Client() *Client
- func (m *TopicMutation) CreatedAt() (r time.Time, exists bool)
- func (m *TopicMutation) DeletedAt() (r time.Time, exists bool)
- func (m *TopicMutation) DeletedAtCleared() bool
- func (m *TopicMutation) EdgeCleared(name string) bool
- func (m *TopicMutation) Field(name string) (ent.Value, bool)
- func (m *TopicMutation) FieldCleared(name string) bool
- func (m *TopicMutation) Fields() []string
- func (m *TopicMutation) Filter() *TopicFilter
- func (m *TopicMutation) ID() (id uuid.UUID, exists bool)
- func (m *TopicMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *TopicMutation) Labels() (r map[string]string, exists bool)
- func (m *TopicMutation) LabelsCleared() bool
- func (m *TopicMutation) Live() (r bool, exists bool)
- func (m *TopicMutation) LiveCleared() bool
- func (m *TopicMutation) MessagesCleared() bool
- func (m *TopicMutation) MessagesIDs() (ids []uuid.UUID)
- func (m *TopicMutation) Name() (r string, exists bool)
- func (m *TopicMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *TopicMutation) OldDeletedAt(ctx context.Context) (v *time.Time, err error)
- func (m *TopicMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *TopicMutation) OldLabels(ctx context.Context) (v map[string]string, err error)
- func (m *TopicMutation) OldLive(ctx context.Context) (v *bool, err error)
- func (m *TopicMutation) OldName(ctx context.Context) (v string, err error)
- func (m *TopicMutation) Op() Op
- func (m *TopicMutation) RemoveMessageIDs(ids ...uuid.UUID)
- func (m *TopicMutation) RemoveSubscriptionIDs(ids ...uuid.UUID)
- func (m *TopicMutation) RemovedEdges() []string
- func (m *TopicMutation) RemovedIDs(name string) []ent.Value
- func (m *TopicMutation) RemovedMessagesIDs() (ids []uuid.UUID)
- func (m *TopicMutation) RemovedSubscriptionsIDs() (ids []uuid.UUID)
- func (m *TopicMutation) ResetCreatedAt()
- func (m *TopicMutation) ResetDeletedAt()
- func (m *TopicMutation) ResetEdge(name string) error
- func (m *TopicMutation) ResetField(name string) error
- func (m *TopicMutation) ResetLabels()
- func (m *TopicMutation) ResetLive()
- func (m *TopicMutation) ResetMessages()
- func (m *TopicMutation) ResetName()
- func (m *TopicMutation) ResetSubscriptions()
- func (m *TopicMutation) SetCreatedAt(t time.Time)
- func (m *TopicMutation) SetDeletedAt(t time.Time)
- func (m *TopicMutation) SetField(name string, value ent.Value) error
- func (m *TopicMutation) SetID(id uuid.UUID)
- func (m *TopicMutation) SetLabels(value map[string]string)
- func (m *TopicMutation) SetLive(b bool)
- func (m *TopicMutation) SetName(s string)
- func (m *TopicMutation) SetOp(op Op)
- func (m *TopicMutation) SubscriptionsCleared() bool
- func (m *TopicMutation) SubscriptionsIDs() (ids []uuid.UUID)
- func (m TopicMutation) Tx() (*Tx, error)
- func (m *TopicMutation) Type() string
- func (m *TopicMutation) Where(ps ...predicate.Topic)
- func (m *TopicMutation) WhereP(ps ...func(*sql.Selector))
- type TopicQuery
- func (tq *TopicQuery) Aggregate(fns ...AggregateFunc) *TopicSelect
- func (tq *TopicQuery) All(ctx context.Context) ([]*Topic, error)
- func (tq *TopicQuery) AllX(ctx context.Context) []*Topic
- func (tq *TopicQuery) Clone() *TopicQuery
- func (tq *TopicQuery) Count(ctx context.Context) (int, error)
- func (tq *TopicQuery) CountX(ctx context.Context) int
- func (tq *TopicQuery) Exist(ctx context.Context) (bool, error)
- func (tq *TopicQuery) ExistX(ctx context.Context) bool
- func (tq *TopicQuery) Filter() *TopicFilter
- func (tq *TopicQuery) First(ctx context.Context) (*Topic, error)
- func (tq *TopicQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (tq *TopicQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (tq *TopicQuery) FirstX(ctx context.Context) *Topic
- func (tq *TopicQuery) ForShare(opts ...sql.LockOption) *TopicQuery
- func (tq *TopicQuery) ForUpdate(opts ...sql.LockOption) *TopicQuery
- func (tq *TopicQuery) GroupBy(field string, fields ...string) *TopicGroupBy
- func (tq *TopicQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (tq *TopicQuery) IDsX(ctx context.Context) []uuid.UUID
- func (tq *TopicQuery) Limit(limit int) *TopicQuery
- func (tq *TopicQuery) Offset(offset int) *TopicQuery
- func (tq *TopicQuery) Only(ctx context.Context) (*Topic, error)
- func (tq *TopicQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (tq *TopicQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (tq *TopicQuery) OnlyX(ctx context.Context) *Topic
- func (tq *TopicQuery) Order(o ...topic.OrderOption) *TopicQuery
- func (tq *TopicQuery) QueryMessages() *MessageQuery
- func (tq *TopicQuery) QuerySubscriptions() *SubscriptionQuery
- func (tq *TopicQuery) Select(fields ...string) *TopicSelect
- func (tq *TopicQuery) Unique(unique bool) *TopicQuery
- func (tq *TopicQuery) Where(ps ...predicate.Topic) *TopicQuery
- func (tq *TopicQuery) WithMessages(opts ...func(*MessageQuery)) *TopicQuery
- func (tq *TopicQuery) WithSubscriptions(opts ...func(*SubscriptionQuery)) *TopicQuery
- type TopicSelect
- func (ts *TopicSelect) Aggregate(fns ...AggregateFunc) *TopicSelect
- func (s *TopicSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *TopicSelect) BoolX(ctx context.Context) bool
- func (s *TopicSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *TopicSelect) BoolsX(ctx context.Context) []bool
- func (s *TopicSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *TopicSelect) Float64X(ctx context.Context) float64
- func (s *TopicSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *TopicSelect) Float64sX(ctx context.Context) []float64
- func (s *TopicSelect) Int(ctx context.Context) (_ int, err error)
- func (s *TopicSelect) IntX(ctx context.Context) int
- func (s *TopicSelect) Ints(ctx context.Context) ([]int, error)
- func (s *TopicSelect) IntsX(ctx context.Context) []int
- func (ts *TopicSelect) Scan(ctx context.Context, v any) error
- func (s *TopicSelect) ScanX(ctx context.Context, v any)
- func (s *TopicSelect) String(ctx context.Context) (_ string, err error)
- func (s *TopicSelect) StringX(ctx context.Context) string
- func (s *TopicSelect) Strings(ctx context.Context) ([]string, error)
- func (s *TopicSelect) StringsX(ctx context.Context) []string
- type TopicUpdate
- func (tu *TopicUpdate) AddMessageIDs(ids ...uuid.UUID) *TopicUpdate
- func (tu *TopicUpdate) AddMessages(m ...*Message) *TopicUpdate
- func (tu *TopicUpdate) AddSubscriptionIDs(ids ...uuid.UUID) *TopicUpdate
- func (tu *TopicUpdate) AddSubscriptions(s ...*Subscription) *TopicUpdate
- func (tu *TopicUpdate) ClearDeletedAt() *TopicUpdate
- func (tu *TopicUpdate) ClearLabels() *TopicUpdate
- func (tu *TopicUpdate) ClearLive() *TopicUpdate
- func (tu *TopicUpdate) ClearMessages() *TopicUpdate
- func (tu *TopicUpdate) ClearSubscriptions() *TopicUpdate
- func (tu *TopicUpdate) Exec(ctx context.Context) error
- func (tu *TopicUpdate) ExecX(ctx context.Context)
- func (tu *TopicUpdate) Mutation() *TopicMutation
- func (tu *TopicUpdate) RemoveMessageIDs(ids ...uuid.UUID) *TopicUpdate
- func (tu *TopicUpdate) RemoveMessages(m ...*Message) *TopicUpdate
- func (tu *TopicUpdate) RemoveSubscriptionIDs(ids ...uuid.UUID) *TopicUpdate
- func (tu *TopicUpdate) RemoveSubscriptions(s ...*Subscription) *TopicUpdate
- func (tu *TopicUpdate) Save(ctx context.Context) (int, error)
- func (tu *TopicUpdate) SaveX(ctx context.Context) int
- func (tu *TopicUpdate) SetDeletedAt(t time.Time) *TopicUpdate
- func (tu *TopicUpdate) SetLabels(m map[string]string) *TopicUpdate
- func (tu *TopicUpdate) SetLive(b bool) *TopicUpdate
- func (tu *TopicUpdate) SetNillableDeletedAt(t *time.Time) *TopicUpdate
- func (tu *TopicUpdate) SetNillableLive(b *bool) *TopicUpdate
- func (tu *TopicUpdate) Where(ps ...predicate.Topic) *TopicUpdate
- type TopicUpdateOne
- func (tuo *TopicUpdateOne) AddMessageIDs(ids ...uuid.UUID) *TopicUpdateOne
- func (tuo *TopicUpdateOne) AddMessages(m ...*Message) *TopicUpdateOne
- func (tuo *TopicUpdateOne) AddSubscriptionIDs(ids ...uuid.UUID) *TopicUpdateOne
- func (tuo *TopicUpdateOne) AddSubscriptions(s ...*Subscription) *TopicUpdateOne
- func (tuo *TopicUpdateOne) ClearDeletedAt() *TopicUpdateOne
- func (tuo *TopicUpdateOne) ClearLabels() *TopicUpdateOne
- func (tuo *TopicUpdateOne) ClearLive() *TopicUpdateOne
- func (tuo *TopicUpdateOne) ClearMessages() *TopicUpdateOne
- func (tuo *TopicUpdateOne) ClearSubscriptions() *TopicUpdateOne
- func (tuo *TopicUpdateOne) Exec(ctx context.Context) error
- func (tuo *TopicUpdateOne) ExecX(ctx context.Context)
- func (tuo *TopicUpdateOne) Mutation() *TopicMutation
- func (tuo *TopicUpdateOne) RemoveMessageIDs(ids ...uuid.UUID) *TopicUpdateOne
- func (tuo *TopicUpdateOne) RemoveMessages(m ...*Message) *TopicUpdateOne
- func (tuo *TopicUpdateOne) RemoveSubscriptionIDs(ids ...uuid.UUID) *TopicUpdateOne
- func (tuo *TopicUpdateOne) RemoveSubscriptions(s ...*Subscription) *TopicUpdateOne
- func (tuo *TopicUpdateOne) Save(ctx context.Context) (*Topic, error)
- func (tuo *TopicUpdateOne) SaveX(ctx context.Context) *Topic
- func (tuo *TopicUpdateOne) Select(field string, fields ...string) *TopicUpdateOne
- func (tuo *TopicUpdateOne) SetDeletedAt(t time.Time) *TopicUpdateOne
- func (tuo *TopicUpdateOne) SetLabels(m map[string]string) *TopicUpdateOne
- func (tuo *TopicUpdateOne) SetLive(b bool) *TopicUpdateOne
- func (tuo *TopicUpdateOne) SetNillableDeletedAt(t *time.Time) *TopicUpdateOne
- func (tuo *TopicUpdateOne) SetNillableLive(b *bool) *TopicUpdateOne
- func (tuo *TopicUpdateOne) Where(ps ...predicate.Topic) *TopicUpdateOne
- type TopicUpsert
- func (u *TopicUpsert) ClearDeletedAt() *TopicUpsert
- func (u *TopicUpsert) ClearLabels() *TopicUpsert
- func (u *TopicUpsert) ClearLive() *TopicUpsert
- func (u *TopicUpsert) SetDeletedAt(v time.Time) *TopicUpsert
- func (u *TopicUpsert) SetLabels(v map[string]string) *TopicUpsert
- func (u *TopicUpsert) SetLive(v bool) *TopicUpsert
- func (u *TopicUpsert) UpdateDeletedAt() *TopicUpsert
- func (u *TopicUpsert) UpdateLabels() *TopicUpsert
- func (u *TopicUpsert) UpdateLive() *TopicUpsert
- type TopicUpsertBulk
- func (u *TopicUpsertBulk) ClearDeletedAt() *TopicUpsertBulk
- func (u *TopicUpsertBulk) ClearLabels() *TopicUpsertBulk
- func (u *TopicUpsertBulk) ClearLive() *TopicUpsertBulk
- func (u *TopicUpsertBulk) DoNothing() *TopicUpsertBulk
- func (u *TopicUpsertBulk) Exec(ctx context.Context) error
- func (u *TopicUpsertBulk) ExecX(ctx context.Context)
- func (u *TopicUpsertBulk) Ignore() *TopicUpsertBulk
- func (u *TopicUpsertBulk) SetDeletedAt(v time.Time) *TopicUpsertBulk
- func (u *TopicUpsertBulk) SetLabels(v map[string]string) *TopicUpsertBulk
- func (u *TopicUpsertBulk) SetLive(v bool) *TopicUpsertBulk
- func (u *TopicUpsertBulk) Update(set func(*TopicUpsert)) *TopicUpsertBulk
- func (u *TopicUpsertBulk) UpdateDeletedAt() *TopicUpsertBulk
- func (u *TopicUpsertBulk) UpdateLabels() *TopicUpsertBulk
- func (u *TopicUpsertBulk) UpdateLive() *TopicUpsertBulk
- func (u *TopicUpsertBulk) UpdateNewValues() *TopicUpsertBulk
- type TopicUpsertOne
- func (u *TopicUpsertOne) ClearDeletedAt() *TopicUpsertOne
- func (u *TopicUpsertOne) ClearLabels() *TopicUpsertOne
- func (u *TopicUpsertOne) ClearLive() *TopicUpsertOne
- func (u *TopicUpsertOne) DoNothing() *TopicUpsertOne
- func (u *TopicUpsertOne) Exec(ctx context.Context) error
- func (u *TopicUpsertOne) ExecX(ctx context.Context)
- func (u *TopicUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)
- func (u *TopicUpsertOne) IDX(ctx context.Context) uuid.UUID
- func (u *TopicUpsertOne) Ignore() *TopicUpsertOne
- func (u *TopicUpsertOne) SetDeletedAt(v time.Time) *TopicUpsertOne
- func (u *TopicUpsertOne) SetLabels(v map[string]string) *TopicUpsertOne
- func (u *TopicUpsertOne) SetLive(v bool) *TopicUpsertOne
- func (u *TopicUpsertOne) Update(set func(*TopicUpsert)) *TopicUpsertOne
- func (u *TopicUpsertOne) UpdateDeletedAt() *TopicUpsertOne
- func (u *TopicUpsertOne) UpdateLabels() *TopicUpsertOne
- func (u *TopicUpsertOne) UpdateLive() *TopicUpsertOne
- func (u *TopicUpsertOne) UpdateNewValues() *TopicUpsertOne
- type Topics
- type TraverseFunc
- type Traverser
- type Tx
- type ValidationError
- type Value
Constants ¶
const ( // Operation types. OpCreate = ent.OpCreate OpDelete = ent.OpDelete OpDeleteOne = ent.OpDeleteOne OpUpdate = ent.OpUpdate OpUpdateOne = ent.OpUpdateOne // Node types. TypeDelivery = "Delivery" TypeMessage = "Message" TypeSnapshot = "Snapshot" TypeSubscription = "Subscription" TypeTopic = "Topic" )
Variables ¶
var ErrTxStarted = errors.New("ent: cannot start a transaction within a transaction")
ErrTxStarted is returned when trying to start a new transaction from a transactional client.
Functions ¶
func IsConstraintError ¶ added in v0.13.52
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
func IsNotFound ¶ added in v0.13.52
IsNotFound returns a boolean indicating whether the error is a not found error.
func IsNotLoaded ¶ added in v0.13.52
IsNotLoaded returns a boolean indicating whether the error is a not loaded error.
func IsNotSingular ¶ added in v0.13.52
IsNotSingular returns a boolean indicating whether the error is a not singular error.
func IsValidationError ¶ added in v0.13.52
IsValidationError returns a boolean indicating whether the error is a validation error.
func MaskNotFound ¶ added in v0.13.52
MaskNotFound masks not found error.
func NewContext ¶ added in v0.13.52
NewContext returns a new context with the given Client attached.
Types ¶
type AggregateFunc ¶ added in v0.13.52
AggregateFunc applies an aggregation step on the group-by traversal/selector.
func As ¶ added in v0.13.52
func As(fn AggregateFunc, end string) AggregateFunc
As is a pseudo aggregation function for renaming another other functions with custom names. For example:
GroupBy(field1, field2). Aggregate(ent.As(ent.Sum(field1), "sum_field1"), (ent.As(ent.Sum(field2), "sum_field2")). Scan(ctx, &v)
func Count ¶ added in v0.13.52
func Count() AggregateFunc
Count applies the "count" aggregation function on each group.
func Max ¶ added in v0.13.52
func Max(field string) AggregateFunc
Max applies the "max" aggregation function on the given field of each group.
func Mean ¶ added in v0.13.52
func Mean(field string) AggregateFunc
Mean applies the "mean" aggregation function on the given field of each group.
func Min ¶ added in v0.13.52
func Min(field string) AggregateFunc
Min applies the "min" aggregation function on the given field of each group.
func Sum ¶ added in v0.13.52
func Sum(field string) AggregateFunc
Sum applies the "sum" aggregation function on the given field of each group.
type Client ¶ added in v0.13.52
type Client struct { // Schema is the client for creating, migrating and dropping schema. Schema *migrate.Schema // Delivery is the client for interacting with the Delivery builders. Delivery *DeliveryClient // Message is the client for interacting with the Message builders. Message *MessageClient // Snapshot is the client for interacting with the Snapshot builders. Snapshot *SnapshotClient // Subscription is the client for interacting with the Subscription builders. Subscription *SubscriptionClient // Topic is the client for interacting with the Topic builders. Topic *TopicClient // contains filtered or unexported fields }
Client is the client that holds all ent builders.
func FromContext ¶ added in v0.13.52
FromContext returns a Client stored inside a context, or nil if there isn't one.
func NewClient ¶ added in v0.13.52
NewClient creates a new client configured with the given options.
func Open ¶ added in v0.13.52
Open opens a database/sql.DB specified by the driver name and the data source name, and returns a new client attached to it. Optional parameters can be added for configuring the client.
func (*Client) BeginTx ¶ added in v0.13.52
BeginTx returns a transactional client with specified options.
func (*Client) Close ¶ added in v0.13.52
Close closes the database connection and prevents new queries from starting.
func (*Client) Debug ¶ added in v0.13.52
Debug returns a new debug-client. It's used to get verbose logging on specific operations.
client.Debug(). Delivery. Query(). Count(ctx)
func (*Client) DoCtxTx ¶ added in v0.13.52
func (c *Client) DoCtxTx(ctx context.Context, opts *sql.TxOptions, inner func(ctx context.Context, tx *Tx) error) error
DoCtxTx is a wrapper for DoTx, for handlers that take the context argument. This is particularly useful for actions.Action.Execute implementations
func (*Client) DoCtxTxRetry ¶ added in v0.13.52
func (*Client) DoTx ¶ added in v0.13.52
func (c *Client) DoTx(ctx context.Context, opts *sql.TxOptions, inner func(tx *Tx) error) (finalErr error)
DoTx wraps inner in a transaction, which will be committed if it returns nil or rolled back if it returns an error
func (*Client) Intercept ¶ added in v0.13.52
func (c *Client) Intercept(interceptors ...Interceptor)
Intercept adds the query interceptors to all the entity clients. In order to add interceptors to a specific client, call: `client.Node.Intercept(...)`.
type CommitFunc ¶ added in v0.13.52
The CommitFunc type is an adapter to allow the use of ordinary function as a Committer. If f is a function with the appropriate signature, CommitFunc(f) is a Committer that calls f.
type CommitHook ¶ added in v0.13.52
CommitHook defines the "commit middleware". A function that gets a Committer and returns a Committer. For example:
hook := func(next ent.Committer) ent.Committer { return ent.CommitFunc(func(ctx context.Context, tx *ent.Tx) error { // Do some stuff before. if err := next.Commit(ctx, tx); err != nil { return err } // Do some stuff after. return nil }) }
type ConstraintError ¶ added in v0.13.52
type ConstraintError struct {
// contains filtered or unexported fields
}
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed. For example, violation of edge or field uniqueness.
func (ConstraintError) Error ¶ added in v0.13.52
func (e ConstraintError) Error() string
Error implements the error interface.
func (*ConstraintError) Unwrap ¶ added in v0.13.52
func (e *ConstraintError) Unwrap() error
Unwrap implements the errors.Wrapper interface.
type Deliveries ¶ added in v0.13.52
type Deliveries []*Delivery
Deliveries is a parsable slice of Delivery.
type Delivery ¶ added in v0.13.52
type Delivery struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // MessageID holds the value of the "messageID" field. MessageID uuid.UUID `json:"messageID,omitempty"` // SubscriptionID holds the value of the "subscriptionID" field. SubscriptionID uuid.UUID `json:"subscriptionID,omitempty"` // Copy of message.publishedAt for ordered delivery support PublishedAt time.Time `json:"publishedAt,omitempty"` // Earliest time at which delivery should next be attempted AttemptAt time.Time `json:"attemptAt,omitempty"` // Time last attempt was started LastAttemptedAt *time.Time `json:"lastAttemptedAt,omitempty"` // Number of attempts started Attempts int `json:"attempts,omitempty"` // Time when last successfully delivered, or NULL if not yet CompletedAt *time.Time `json:"completedAt,omitempty"` // Time beyond which delivery should no longer be attempted even if not successful ExpiresAt time.Time `json:"expiresAt,omitempty"` // NotBeforeID holds the value of the "notBeforeID" field. NotBeforeID uuid.UUID `json:"notBeforeID,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the DeliveryQuery when eager-loading is set. Edges DeliveryEdges `json:"-"` // contains filtered or unexported fields }
Delivery is the model entity for the Delivery schema.
func (*Delivery) QueryMessage ¶ added in v0.13.52
func (d *Delivery) QueryMessage() *MessageQuery
QueryMessage queries the "message" edge of the Delivery entity.
func (*Delivery) QueryNextReady ¶ added in v0.13.52
func (d *Delivery) QueryNextReady() *DeliveryQuery
QueryNextReady queries the "nextReady" edge of the Delivery entity.
func (*Delivery) QueryNotBefore ¶ added in v0.13.52
func (d *Delivery) QueryNotBefore() *DeliveryQuery
QueryNotBefore queries the "notBefore" edge of the Delivery entity.
func (*Delivery) QuerySubscription ¶ added in v0.13.52
func (d *Delivery) QuerySubscription() *SubscriptionQuery
QuerySubscription queries the "subscription" edge of the Delivery entity.
func (*Delivery) Unwrap ¶ added in v0.13.52
Unwrap unwraps the Delivery entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Delivery) Update ¶ added in v0.13.52
func (d *Delivery) Update() *DeliveryUpdateOne
Update returns a builder for updating this Delivery. Note that you need to call Delivery.Unwrap() before calling this method if this Delivery was returned from a transaction, and the transaction was committed or rolled back.
type DeliveryClient ¶ added in v0.13.52
type DeliveryClient struct {
// contains filtered or unexported fields
}
DeliveryClient is a client for the Delivery schema.
func NewDeliveryClient ¶ added in v0.13.52
func NewDeliveryClient(c config) *DeliveryClient
NewDeliveryClient returns a client for the Delivery from the given config.
func (*DeliveryClient) Create ¶ added in v0.13.52
func (c *DeliveryClient) Create() *DeliveryCreate
Create returns a builder for creating a Delivery entity.
func (*DeliveryClient) CreateBulk ¶ added in v0.13.52
func (c *DeliveryClient) CreateBulk(builders ...*DeliveryCreate) *DeliveryCreateBulk
CreateBulk returns a builder for creating a bulk of Delivery entities.
func (*DeliveryClient) Delete ¶ added in v0.13.52
func (c *DeliveryClient) Delete() *DeliveryDelete
Delete returns a delete builder for Delivery.
func (*DeliveryClient) DeleteOne ¶ added in v0.13.52
func (c *DeliveryClient) DeleteOne(d *Delivery) *DeliveryDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*DeliveryClient) DeleteOneID ¶ added in v0.13.52
func (c *DeliveryClient) DeleteOneID(id uuid.UUID) *DeliveryDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*DeliveryClient) Hooks ¶ added in v0.13.52
func (c *DeliveryClient) Hooks() []Hook
Hooks returns the client hooks.
func (*DeliveryClient) Intercept ¶ added in v0.13.52
func (c *DeliveryClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `delivery.Intercept(f(g(h())))`.
func (*DeliveryClient) Interceptors ¶ added in v0.13.52
func (c *DeliveryClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*DeliveryClient) MapCreateBulk ¶ added in v0.13.52
func (c *DeliveryClient) MapCreateBulk(slice any, setFunc func(*DeliveryCreate, int)) *DeliveryCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*DeliveryClient) Query ¶ added in v0.13.52
func (c *DeliveryClient) Query() *DeliveryQuery
Query returns a query builder for Delivery.
func (*DeliveryClient) QueryMessage ¶ added in v0.13.52
func (c *DeliveryClient) QueryMessage(d *Delivery) *MessageQuery
QueryMessage queries the message edge of a Delivery.
func (*DeliveryClient) QueryNextReady ¶ added in v0.13.52
func (c *DeliveryClient) QueryNextReady(d *Delivery) *DeliveryQuery
QueryNextReady queries the nextReady edge of a Delivery.
func (*DeliveryClient) QueryNotBefore ¶ added in v0.13.52
func (c *DeliveryClient) QueryNotBefore(d *Delivery) *DeliveryQuery
QueryNotBefore queries the notBefore edge of a Delivery.
func (*DeliveryClient) QuerySubscription ¶ added in v0.13.52
func (c *DeliveryClient) QuerySubscription(d *Delivery) *SubscriptionQuery
QuerySubscription queries the subscription edge of a Delivery.
func (*DeliveryClient) Update ¶ added in v0.13.52
func (c *DeliveryClient) Update() *DeliveryUpdate
Update returns an update builder for Delivery.
func (*DeliveryClient) UpdateOne ¶ added in v0.13.52
func (c *DeliveryClient) UpdateOne(d *Delivery) *DeliveryUpdateOne
UpdateOne returns an update builder for the given entity.
func (*DeliveryClient) UpdateOneID ¶ added in v0.13.52
func (c *DeliveryClient) UpdateOneID(id uuid.UUID) *DeliveryUpdateOne
UpdateOneID returns an update builder for the given id.
func (*DeliveryClient) Use ¶ added in v0.13.52
func (c *DeliveryClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `delivery.Hooks(f(g(h())))`.
type DeliveryCreate ¶ added in v0.13.52
type DeliveryCreate struct {
// contains filtered or unexported fields
}
DeliveryCreate is the builder for creating a Delivery entity.
func (*DeliveryCreate) AddNextReady ¶ added in v0.13.52
func (dc *DeliveryCreate) AddNextReady(d ...*Delivery) *DeliveryCreate
AddNextReady adds the "nextReady" edges to the Delivery entity.
func (*DeliveryCreate) AddNextReadyIDs ¶ added in v0.13.52
func (dc *DeliveryCreate) AddNextReadyIDs(ids ...uuid.UUID) *DeliveryCreate
AddNextReadyIDs adds the "nextReady" edge to the Delivery entity by IDs.
func (*DeliveryCreate) Exec ¶ added in v0.13.52
func (dc *DeliveryCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*DeliveryCreate) ExecX ¶ added in v0.13.52
func (dc *DeliveryCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeliveryCreate) Mutation ¶ added in v0.13.52
func (dc *DeliveryCreate) Mutation() *DeliveryMutation
Mutation returns the DeliveryMutation object of the builder.
func (*DeliveryCreate) OnConflict ¶ added in v0.13.52
func (dc *DeliveryCreate) OnConflict(opts ...sql.ConflictOption) *DeliveryUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Delivery.Create(). SetMessageID(v). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.DeliveryUpsert) { SetMessageID(v+v). }). Exec(ctx)
func (*DeliveryCreate) OnConflictColumns ¶ added in v0.13.52
func (dc *DeliveryCreate) OnConflictColumns(columns ...string) *DeliveryUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Delivery.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*DeliveryCreate) Save ¶ added in v0.13.52
func (dc *DeliveryCreate) Save(ctx context.Context) (*Delivery, error)
Save creates the Delivery in the database.
func (*DeliveryCreate) SaveX ¶ added in v0.13.52
func (dc *DeliveryCreate) SaveX(ctx context.Context) *Delivery
SaveX calls Save and panics if Save returns an error.
func (*DeliveryCreate) SetAttemptAt ¶ added in v0.13.52
func (dc *DeliveryCreate) SetAttemptAt(t time.Time) *DeliveryCreate
SetAttemptAt sets the "attemptAt" field.
func (*DeliveryCreate) SetAttempts ¶ added in v0.13.52
func (dc *DeliveryCreate) SetAttempts(i int) *DeliveryCreate
SetAttempts sets the "attempts" field.
func (*DeliveryCreate) SetCompletedAt ¶ added in v0.13.52
func (dc *DeliveryCreate) SetCompletedAt(t time.Time) *DeliveryCreate
SetCompletedAt sets the "completedAt" field.
func (*DeliveryCreate) SetExpiresAt ¶ added in v0.13.52
func (dc *DeliveryCreate) SetExpiresAt(t time.Time) *DeliveryCreate
SetExpiresAt sets the "expiresAt" field.
func (*DeliveryCreate) SetID ¶ added in v0.13.52
func (dc *DeliveryCreate) SetID(u uuid.UUID) *DeliveryCreate
SetID sets the "id" field.
func (*DeliveryCreate) SetLastAttemptedAt ¶ added in v0.13.52
func (dc *DeliveryCreate) SetLastAttemptedAt(t time.Time) *DeliveryCreate
SetLastAttemptedAt sets the "lastAttemptedAt" field.
func (*DeliveryCreate) SetMessage ¶ added in v0.13.52
func (dc *DeliveryCreate) SetMessage(m *Message) *DeliveryCreate
SetMessage sets the "message" edge to the Message entity.
func (*DeliveryCreate) SetMessageID ¶ added in v0.13.52
func (dc *DeliveryCreate) SetMessageID(u uuid.UUID) *DeliveryCreate
SetMessageID sets the "messageID" field.
func (*DeliveryCreate) SetNillableAttemptAt ¶ added in v0.13.52
func (dc *DeliveryCreate) SetNillableAttemptAt(t *time.Time) *DeliveryCreate
SetNillableAttemptAt sets the "attemptAt" field if the given value is not nil.
func (*DeliveryCreate) SetNillableAttempts ¶ added in v0.13.52
func (dc *DeliveryCreate) SetNillableAttempts(i *int) *DeliveryCreate
SetNillableAttempts sets the "attempts" field if the given value is not nil.
func (*DeliveryCreate) SetNillableCompletedAt ¶ added in v0.13.52
func (dc *DeliveryCreate) SetNillableCompletedAt(t *time.Time) *DeliveryCreate
SetNillableCompletedAt sets the "completedAt" field if the given value is not nil.
func (*DeliveryCreate) SetNillableID ¶ added in v0.13.52
func (dc *DeliveryCreate) SetNillableID(u *uuid.UUID) *DeliveryCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*DeliveryCreate) SetNillableLastAttemptedAt ¶ added in v0.13.52
func (dc *DeliveryCreate) SetNillableLastAttemptedAt(t *time.Time) *DeliveryCreate
SetNillableLastAttemptedAt sets the "lastAttemptedAt" field if the given value is not nil.
func (*DeliveryCreate) SetNillableNotBeforeID ¶ added in v0.13.52
func (dc *DeliveryCreate) SetNillableNotBeforeID(u *uuid.UUID) *DeliveryCreate
SetNillableNotBeforeID sets the "notBeforeID" field if the given value is not nil.
func (*DeliveryCreate) SetNillablePublishedAt ¶ added in v0.13.52
func (dc *DeliveryCreate) SetNillablePublishedAt(t *time.Time) *DeliveryCreate
SetNillablePublishedAt sets the "publishedAt" field if the given value is not nil.
func (*DeliveryCreate) SetNotBefore ¶ added in v0.13.52
func (dc *DeliveryCreate) SetNotBefore(d *Delivery) *DeliveryCreate
SetNotBefore sets the "notBefore" edge to the Delivery entity.
func (*DeliveryCreate) SetNotBeforeID ¶ added in v0.13.52
func (dc *DeliveryCreate) SetNotBeforeID(u uuid.UUID) *DeliveryCreate
SetNotBeforeID sets the "notBeforeID" field.
func (*DeliveryCreate) SetPublishedAt ¶ added in v0.13.52
func (dc *DeliveryCreate) SetPublishedAt(t time.Time) *DeliveryCreate
SetPublishedAt sets the "publishedAt" field.
func (*DeliveryCreate) SetSubscription ¶ added in v0.13.52
func (dc *DeliveryCreate) SetSubscription(s *Subscription) *DeliveryCreate
SetSubscription sets the "subscription" edge to the Subscription entity.
func (*DeliveryCreate) SetSubscriptionID ¶ added in v0.13.52
func (dc *DeliveryCreate) SetSubscriptionID(u uuid.UUID) *DeliveryCreate
SetSubscriptionID sets the "subscriptionID" field.
type DeliveryCreateBulk ¶ added in v0.13.52
type DeliveryCreateBulk struct {
// contains filtered or unexported fields
}
DeliveryCreateBulk is the builder for creating many Delivery entities in bulk.
func (*DeliveryCreateBulk) Exec ¶ added in v0.13.52
func (dcb *DeliveryCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*DeliveryCreateBulk) ExecX ¶ added in v0.13.52
func (dcb *DeliveryCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeliveryCreateBulk) OnConflict ¶ added in v0.13.52
func (dcb *DeliveryCreateBulk) OnConflict(opts ...sql.ConflictOption) *DeliveryUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Delivery.CreateBulk(builders...). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.DeliveryUpsert) { SetMessageID(v+v). }). Exec(ctx)
func (*DeliveryCreateBulk) OnConflictColumns ¶ added in v0.13.52
func (dcb *DeliveryCreateBulk) OnConflictColumns(columns ...string) *DeliveryUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Delivery.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
type DeliveryDelete ¶ added in v0.13.52
type DeliveryDelete struct {
// contains filtered or unexported fields
}
DeliveryDelete is the builder for deleting a Delivery entity.
func (*DeliveryDelete) Exec ¶ added in v0.13.52
func (dd *DeliveryDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*DeliveryDelete) ExecX ¶ added in v0.13.52
func (dd *DeliveryDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*DeliveryDelete) Where ¶ added in v0.13.52
func (dd *DeliveryDelete) Where(ps ...predicate.Delivery) *DeliveryDelete
Where appends a list predicates to the DeliveryDelete builder.
type DeliveryDeleteOne ¶ added in v0.13.52
type DeliveryDeleteOne struct {
// contains filtered or unexported fields
}
DeliveryDeleteOne is the builder for deleting a single Delivery entity.
func (*DeliveryDeleteOne) Exec ¶ added in v0.13.52
func (ddo *DeliveryDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*DeliveryDeleteOne) ExecX ¶ added in v0.13.52
func (ddo *DeliveryDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeliveryDeleteOne) Where ¶ added in v0.13.52
func (ddo *DeliveryDeleteOne) Where(ps ...predicate.Delivery) *DeliveryDeleteOne
Where appends a list predicates to the DeliveryDelete builder.
type DeliveryEdges ¶ added in v0.13.52
type DeliveryEdges struct { // Message holds the value of the message edge. Message *Message `json:"message,omitempty"` // Subscription holds the value of the subscription edge. Subscription *Subscription `json:"subscription,omitempty"` // NotBefore holds the value of the notBefore edge. NotBefore *Delivery `json:"notBefore,omitempty"` // NextReady holds the value of the nextReady edge. NextReady []*Delivery `json:"nextReady,omitempty"` // contains filtered or unexported fields }
DeliveryEdges holds the relations/edges for other nodes in the graph.
func (DeliveryEdges) MessageOrErr ¶ added in v0.13.52
func (e DeliveryEdges) MessageOrErr() (*Message, error)
MessageOrErr returns the Message value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (DeliveryEdges) NextReadyOrErr ¶ added in v0.13.52
func (e DeliveryEdges) NextReadyOrErr() ([]*Delivery, error)
NextReadyOrErr returns the NextReady value or an error if the edge was not loaded in eager-loading.
func (DeliveryEdges) NotBeforeOrErr ¶ added in v0.13.52
func (e DeliveryEdges) NotBeforeOrErr() (*Delivery, error)
NotBeforeOrErr returns the NotBefore value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (DeliveryEdges) SubscriptionOrErr ¶ added in v0.13.52
func (e DeliveryEdges) SubscriptionOrErr() (*Subscription, error)
SubscriptionOrErr returns the Subscription value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type DeliveryFilter ¶ added in v0.13.52
type DeliveryFilter struct {
// contains filtered or unexported fields
}
DeliveryFilter provides a generic filtering capability at runtime for DeliveryQuery.
func (*DeliveryFilter) Where ¶ added in v0.13.52
func (f *DeliveryFilter) Where(p entql.P)
Where applies the entql predicate on the query filter.
func (*DeliveryFilter) WhereAttemptAt ¶ added in v0.13.52
func (f *DeliveryFilter) WhereAttemptAt(p entql.TimeP)
WhereAttemptAt applies the entql time.Time predicate on the attemptAt field.
func (*DeliveryFilter) WhereAttempts ¶ added in v0.13.52
func (f *DeliveryFilter) WhereAttempts(p entql.IntP)
WhereAttempts applies the entql int predicate on the attempts field.
func (*DeliveryFilter) WhereCompletedAt ¶ added in v0.13.52
func (f *DeliveryFilter) WhereCompletedAt(p entql.TimeP)
WhereCompletedAt applies the entql time.Time predicate on the completedAt field.
func (*DeliveryFilter) WhereExpiresAt ¶ added in v0.13.52
func (f *DeliveryFilter) WhereExpiresAt(p entql.TimeP)
WhereExpiresAt applies the entql time.Time predicate on the expiresAt field.
func (*DeliveryFilter) WhereHasMessage ¶ added in v0.13.52
func (f *DeliveryFilter) WhereHasMessage()
WhereHasMessage applies a predicate to check if query has an edge message.
func (*DeliveryFilter) WhereHasMessageWith ¶ added in v0.13.52
func (f *DeliveryFilter) WhereHasMessageWith(preds ...predicate.Message)
WhereHasMessageWith applies a predicate to check if query has an edge message with a given conditions (other predicates).
func (*DeliveryFilter) WhereHasNextReady ¶ added in v0.13.52
func (f *DeliveryFilter) WhereHasNextReady()
WhereHasNextReady applies a predicate to check if query has an edge nextReady.
func (*DeliveryFilter) WhereHasNextReadyWith ¶ added in v0.13.52
func (f *DeliveryFilter) WhereHasNextReadyWith(preds ...predicate.Delivery)
WhereHasNextReadyWith applies a predicate to check if query has an edge nextReady with a given conditions (other predicates).
func (*DeliveryFilter) WhereHasNotBefore ¶ added in v0.13.52
func (f *DeliveryFilter) WhereHasNotBefore()
WhereHasNotBefore applies a predicate to check if query has an edge notBefore.
func (*DeliveryFilter) WhereHasNotBeforeWith ¶ added in v0.13.52
func (f *DeliveryFilter) WhereHasNotBeforeWith(preds ...predicate.Delivery)
WhereHasNotBeforeWith applies a predicate to check if query has an edge notBefore with a given conditions (other predicates).
func (*DeliveryFilter) WhereHasSubscription ¶ added in v0.13.52
func (f *DeliveryFilter) WhereHasSubscription()
WhereHasSubscription applies a predicate to check if query has an edge subscription.
func (*DeliveryFilter) WhereHasSubscriptionWith ¶ added in v0.13.52
func (f *DeliveryFilter) WhereHasSubscriptionWith(preds ...predicate.Subscription)
WhereHasSubscriptionWith applies a predicate to check if query has an edge subscription with a given conditions (other predicates).
func (*DeliveryFilter) WhereID ¶ added in v0.13.52
func (f *DeliveryFilter) WhereID(p entql.ValueP)
WhereID applies the entql [16]byte predicate on the id field.
func (*DeliveryFilter) WhereLastAttemptedAt ¶ added in v0.13.52
func (f *DeliveryFilter) WhereLastAttemptedAt(p entql.TimeP)
WhereLastAttemptedAt applies the entql time.Time predicate on the lastAttemptedAt field.
func (*DeliveryFilter) WhereMessageID ¶ added in v0.13.52
func (f *DeliveryFilter) WhereMessageID(p entql.ValueP)
WhereMessageID applies the entql [16]byte predicate on the messageID field.
func (*DeliveryFilter) WhereNotBeforeID ¶ added in v0.13.52
func (f *DeliveryFilter) WhereNotBeforeID(p entql.ValueP)
WhereNotBeforeID applies the entql [16]byte predicate on the notBeforeID field.
func (*DeliveryFilter) WherePublishedAt ¶ added in v0.13.52
func (f *DeliveryFilter) WherePublishedAt(p entql.TimeP)
WherePublishedAt applies the entql time.Time predicate on the publishedAt field.
func (*DeliveryFilter) WhereSubscriptionID ¶ added in v0.13.52
func (f *DeliveryFilter) WhereSubscriptionID(p entql.ValueP)
WhereSubscriptionID applies the entql [16]byte predicate on the subscriptionID field.
type DeliveryGroupBy ¶ added in v0.13.52
type DeliveryGroupBy struct {
// contains filtered or unexported fields
}
DeliveryGroupBy is the group-by builder for Delivery entities.
func (*DeliveryGroupBy) Aggregate ¶ added in v0.13.52
func (dgb *DeliveryGroupBy) Aggregate(fns ...AggregateFunc) *DeliveryGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*DeliveryGroupBy) Bool ¶ added in v0.13.52
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DeliveryGroupBy) BoolX ¶ added in v0.13.52
BoolX is like Bool, but panics if an error occurs.
func (*DeliveryGroupBy) Bools ¶ added in v0.13.52
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*DeliveryGroupBy) BoolsX ¶ added in v0.13.52
BoolsX is like Bools, but panics if an error occurs.
func (*DeliveryGroupBy) Float64 ¶ added in v0.13.52
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DeliveryGroupBy) Float64X ¶ added in v0.13.52
Float64X is like Float64, but panics if an error occurs.
func (*DeliveryGroupBy) Float64s ¶ added in v0.13.52
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DeliveryGroupBy) Float64sX ¶ added in v0.13.52
Float64sX is like Float64s, but panics if an error occurs.
func (*DeliveryGroupBy) Int ¶ added in v0.13.52
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DeliveryGroupBy) Ints ¶ added in v0.13.52
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*DeliveryGroupBy) IntsX ¶ added in v0.13.52
IntsX is like Ints, but panics if an error occurs.
func (*DeliveryGroupBy) Scan ¶ added in v0.13.52
func (dgb *DeliveryGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*DeliveryGroupBy) ScanX ¶ added in v0.13.52
ScanX is like Scan, but panics if an error occurs.
func (*DeliveryGroupBy) String ¶ added in v0.13.52
String returns a single string from a selector. It is only allowed when selecting one field.
func (*DeliveryGroupBy) StringX ¶ added in v0.13.52
StringX is like String, but panics if an error occurs.
type DeliveryMutation ¶ added in v0.13.52
type DeliveryMutation struct {
// contains filtered or unexported fields
}
DeliveryMutation represents an operation that mutates the Delivery nodes in the graph.
func (*DeliveryMutation) AddAttempts ¶ added in v0.13.52
func (m *DeliveryMutation) AddAttempts(i int)
AddAttempts adds i to the "attempts" field.
func (*DeliveryMutation) AddField ¶ added in v0.13.52
func (m *DeliveryMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*DeliveryMutation) AddNextReadyIDs ¶ added in v0.13.52
func (m *DeliveryMutation) AddNextReadyIDs(ids ...uuid.UUID)
AddNextReadyIDs adds the "nextReady" edge to the Delivery entity by ids.
func (*DeliveryMutation) AddedAttempts ¶ added in v0.13.52
func (m *DeliveryMutation) AddedAttempts() (r int, exists bool)
AddedAttempts returns the value that was added to the "attempts" field in this mutation.
func (*DeliveryMutation) AddedEdges ¶ added in v0.13.52
func (m *DeliveryMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*DeliveryMutation) AddedField ¶ added in v0.13.52
func (m *DeliveryMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*DeliveryMutation) AddedFields ¶ added in v0.13.52
func (m *DeliveryMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*DeliveryMutation) AddedIDs ¶ added in v0.13.52
func (m *DeliveryMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*DeliveryMutation) AttemptAt ¶ added in v0.13.52
func (m *DeliveryMutation) AttemptAt() (r time.Time, exists bool)
AttemptAt returns the value of the "attemptAt" field in the mutation.
func (*DeliveryMutation) Attempts ¶ added in v0.13.52
func (m *DeliveryMutation) Attempts() (r int, exists bool)
Attempts returns the value of the "attempts" field in the mutation.
func (*DeliveryMutation) ClearCompletedAt ¶ added in v0.13.52
func (m *DeliveryMutation) ClearCompletedAt()
ClearCompletedAt clears the value of the "completedAt" field.
func (*DeliveryMutation) ClearEdge ¶ added in v0.13.52
func (m *DeliveryMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*DeliveryMutation) ClearField ¶ added in v0.13.52
func (m *DeliveryMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*DeliveryMutation) ClearLastAttemptedAt ¶ added in v0.13.52
func (m *DeliveryMutation) ClearLastAttemptedAt()
ClearLastAttemptedAt clears the value of the "lastAttemptedAt" field.
func (*DeliveryMutation) ClearMessage ¶ added in v0.13.52
func (m *DeliveryMutation) ClearMessage()
ClearMessage clears the "message" edge to the Message entity.
func (*DeliveryMutation) ClearNextReady ¶ added in v0.13.52
func (m *DeliveryMutation) ClearNextReady()
ClearNextReady clears the "nextReady" edge to the Delivery entity.
func (*DeliveryMutation) ClearNotBefore ¶ added in v0.13.52
func (m *DeliveryMutation) ClearNotBefore()
ClearNotBefore clears the "notBefore" edge to the Delivery entity.
func (*DeliveryMutation) ClearNotBeforeID ¶ added in v0.13.52
func (m *DeliveryMutation) ClearNotBeforeID()
ClearNotBeforeID clears the value of the "notBeforeID" field.
func (*DeliveryMutation) ClearSubscription ¶ added in v0.13.52
func (m *DeliveryMutation) ClearSubscription()
ClearSubscription clears the "subscription" edge to the Subscription entity.
func (*DeliveryMutation) ClearedEdges ¶ added in v0.13.52
func (m *DeliveryMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*DeliveryMutation) ClearedFields ¶ added in v0.13.52
func (m *DeliveryMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (DeliveryMutation) Client ¶ added in v0.13.52
func (m DeliveryMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*DeliveryMutation) CompletedAt ¶ added in v0.13.52
func (m *DeliveryMutation) CompletedAt() (r time.Time, exists bool)
CompletedAt returns the value of the "completedAt" field in the mutation.
func (*DeliveryMutation) CompletedAtCleared ¶ added in v0.13.52
func (m *DeliveryMutation) CompletedAtCleared() bool
CompletedAtCleared returns if the "completedAt" field was cleared in this mutation.
func (*DeliveryMutation) EdgeCleared ¶ added in v0.13.52
func (m *DeliveryMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*DeliveryMutation) ExpiresAt ¶ added in v0.13.52
func (m *DeliveryMutation) ExpiresAt() (r time.Time, exists bool)
ExpiresAt returns the value of the "expiresAt" field in the mutation.
func (*DeliveryMutation) Field ¶ added in v0.13.52
func (m *DeliveryMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*DeliveryMutation) FieldCleared ¶ added in v0.13.52
func (m *DeliveryMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*DeliveryMutation) Fields ¶ added in v0.13.52
func (m *DeliveryMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*DeliveryMutation) Filter ¶ added in v0.13.52
func (m *DeliveryMutation) Filter() *DeliveryFilter
Filter returns an entql.Where implementation to apply filters on the DeliveryMutation builder.
func (*DeliveryMutation) ID ¶ added in v0.13.52
func (m *DeliveryMutation) ID() (id uuid.UUID, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*DeliveryMutation) IDs ¶ added in v0.13.52
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*DeliveryMutation) LastAttemptedAt ¶ added in v0.13.52
func (m *DeliveryMutation) LastAttemptedAt() (r time.Time, exists bool)
LastAttemptedAt returns the value of the "lastAttemptedAt" field in the mutation.
func (*DeliveryMutation) LastAttemptedAtCleared ¶ added in v0.13.52
func (m *DeliveryMutation) LastAttemptedAtCleared() bool
LastAttemptedAtCleared returns if the "lastAttemptedAt" field was cleared in this mutation.
func (*DeliveryMutation) MessageCleared ¶ added in v0.13.52
func (m *DeliveryMutation) MessageCleared() bool
MessageCleared reports if the "message" edge to the Message entity was cleared.
func (*DeliveryMutation) MessageID ¶ added in v0.13.52
func (m *DeliveryMutation) MessageID() (r uuid.UUID, exists bool)
MessageID returns the value of the "messageID" field in the mutation.
func (*DeliveryMutation) MessageIDs ¶ added in v0.13.52
func (m *DeliveryMutation) MessageIDs() (ids []uuid.UUID)
MessageIDs returns the "message" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use MessageID instead. It exists only for internal usage by the builders.
func (*DeliveryMutation) NextReadyCleared ¶ added in v0.13.52
func (m *DeliveryMutation) NextReadyCleared() bool
NextReadyCleared reports if the "nextReady" edge to the Delivery entity was cleared.
func (*DeliveryMutation) NextReadyIDs ¶ added in v0.13.52
func (m *DeliveryMutation) NextReadyIDs() (ids []uuid.UUID)
NextReadyIDs returns the "nextReady" edge IDs in the mutation.
func (*DeliveryMutation) NotBeforeCleared ¶ added in v0.13.52
func (m *DeliveryMutation) NotBeforeCleared() bool
NotBeforeCleared reports if the "notBefore" edge to the Delivery entity was cleared.
func (*DeliveryMutation) NotBeforeID ¶ added in v0.13.52
func (m *DeliveryMutation) NotBeforeID() (r uuid.UUID, exists bool)
NotBeforeID returns the value of the "notBeforeID" field in the mutation.
func (*DeliveryMutation) NotBeforeIDCleared ¶ added in v0.13.52
func (m *DeliveryMutation) NotBeforeIDCleared() bool
NotBeforeIDCleared returns if the "notBeforeID" field was cleared in this mutation.
func (*DeliveryMutation) NotBeforeIDs ¶ added in v0.13.52
func (m *DeliveryMutation) NotBeforeIDs() (ids []uuid.UUID)
NotBeforeIDs returns the "notBefore" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use NotBeforeID instead. It exists only for internal usage by the builders.
func (*DeliveryMutation) OldAttemptAt ¶ added in v0.13.52
OldAttemptAt returns the old "attemptAt" field's value of the Delivery entity. If the Delivery object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeliveryMutation) OldAttempts ¶ added in v0.13.52
func (m *DeliveryMutation) OldAttempts(ctx context.Context) (v int, err error)
OldAttempts returns the old "attempts" field's value of the Delivery entity. If the Delivery object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeliveryMutation) OldCompletedAt ¶ added in v0.13.52
OldCompletedAt returns the old "completedAt" field's value of the Delivery entity. If the Delivery object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeliveryMutation) OldExpiresAt ¶ added in v0.13.52
OldExpiresAt returns the old "expiresAt" field's value of the Delivery entity. If the Delivery object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeliveryMutation) OldField ¶ added in v0.13.52
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*DeliveryMutation) OldLastAttemptedAt ¶ added in v0.13.52
OldLastAttemptedAt returns the old "lastAttemptedAt" field's value of the Delivery entity. If the Delivery object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeliveryMutation) OldMessageID ¶ added in v0.13.52
OldMessageID returns the old "messageID" field's value of the Delivery entity. If the Delivery object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeliveryMutation) OldNotBeforeID ¶ added in v0.13.52
OldNotBeforeID returns the old "notBeforeID" field's value of the Delivery entity. If the Delivery object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeliveryMutation) OldPublishedAt ¶ added in v0.13.52
OldPublishedAt returns the old "publishedAt" field's value of the Delivery entity. If the Delivery object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeliveryMutation) OldSubscriptionID ¶ added in v0.13.52
OldSubscriptionID returns the old "subscriptionID" field's value of the Delivery entity. If the Delivery object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeliveryMutation) Op ¶ added in v0.13.52
func (m *DeliveryMutation) Op() Op
Op returns the operation name.
func (*DeliveryMutation) PublishedAt ¶ added in v0.13.52
func (m *DeliveryMutation) PublishedAt() (r time.Time, exists bool)
PublishedAt returns the value of the "publishedAt" field in the mutation.
func (*DeliveryMutation) RemoveNextReadyIDs ¶ added in v0.13.52
func (m *DeliveryMutation) RemoveNextReadyIDs(ids ...uuid.UUID)
RemoveNextReadyIDs removes the "nextReady" edge to the Delivery entity by IDs.
func (*DeliveryMutation) RemovedEdges ¶ added in v0.13.52
func (m *DeliveryMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*DeliveryMutation) RemovedIDs ¶ added in v0.13.52
func (m *DeliveryMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*DeliveryMutation) RemovedNextReadyIDs ¶ added in v0.13.52
func (m *DeliveryMutation) RemovedNextReadyIDs() (ids []uuid.UUID)
RemovedNextReady returns the removed IDs of the "nextReady" edge to the Delivery entity.
func (*DeliveryMutation) ResetAttemptAt ¶ added in v0.13.52
func (m *DeliveryMutation) ResetAttemptAt()
ResetAttemptAt resets all changes to the "attemptAt" field.
func (*DeliveryMutation) ResetAttempts ¶ added in v0.13.52
func (m *DeliveryMutation) ResetAttempts()
ResetAttempts resets all changes to the "attempts" field.
func (*DeliveryMutation) ResetCompletedAt ¶ added in v0.13.52
func (m *DeliveryMutation) ResetCompletedAt()
ResetCompletedAt resets all changes to the "completedAt" field.
func (*DeliveryMutation) ResetEdge ¶ added in v0.13.52
func (m *DeliveryMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*DeliveryMutation) ResetExpiresAt ¶ added in v0.13.52
func (m *DeliveryMutation) ResetExpiresAt()
ResetExpiresAt resets all changes to the "expiresAt" field.
func (*DeliveryMutation) ResetField ¶ added in v0.13.52
func (m *DeliveryMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*DeliveryMutation) ResetLastAttemptedAt ¶ added in v0.13.52
func (m *DeliveryMutation) ResetLastAttemptedAt()
ResetLastAttemptedAt resets all changes to the "lastAttemptedAt" field.
func (*DeliveryMutation) ResetMessage ¶ added in v0.13.52
func (m *DeliveryMutation) ResetMessage()
ResetMessage resets all changes to the "message" edge.
func (*DeliveryMutation) ResetMessageID ¶ added in v0.13.52
func (m *DeliveryMutation) ResetMessageID()
ResetMessageID resets all changes to the "messageID" field.
func (*DeliveryMutation) ResetNextReady ¶ added in v0.13.52
func (m *DeliveryMutation) ResetNextReady()
ResetNextReady resets all changes to the "nextReady" edge.
func (*DeliveryMutation) ResetNotBefore ¶ added in v0.13.52
func (m *DeliveryMutation) ResetNotBefore()
ResetNotBefore resets all changes to the "notBefore" edge.
func (*DeliveryMutation) ResetNotBeforeID ¶ added in v0.13.52
func (m *DeliveryMutation) ResetNotBeforeID()
ResetNotBeforeID resets all changes to the "notBeforeID" field.
func (*DeliveryMutation) ResetPublishedAt ¶ added in v0.13.52
func (m *DeliveryMutation) ResetPublishedAt()
ResetPublishedAt resets all changes to the "publishedAt" field.
func (*DeliveryMutation) ResetSubscription ¶ added in v0.13.52
func (m *DeliveryMutation) ResetSubscription()
ResetSubscription resets all changes to the "subscription" edge.
func (*DeliveryMutation) ResetSubscriptionID ¶ added in v0.13.52
func (m *DeliveryMutation) ResetSubscriptionID()
ResetSubscriptionID resets all changes to the "subscriptionID" field.
func (*DeliveryMutation) SetAttemptAt ¶ added in v0.13.52
func (m *DeliveryMutation) SetAttemptAt(t time.Time)
SetAttemptAt sets the "attemptAt" field.
func (*DeliveryMutation) SetAttempts ¶ added in v0.13.52
func (m *DeliveryMutation) SetAttempts(i int)
SetAttempts sets the "attempts" field.
func (*DeliveryMutation) SetCompletedAt ¶ added in v0.13.52
func (m *DeliveryMutation) SetCompletedAt(t time.Time)
SetCompletedAt sets the "completedAt" field.
func (*DeliveryMutation) SetExpiresAt ¶ added in v0.13.52
func (m *DeliveryMutation) SetExpiresAt(t time.Time)
SetExpiresAt sets the "expiresAt" field.
func (*DeliveryMutation) SetField ¶ added in v0.13.52
func (m *DeliveryMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*DeliveryMutation) SetID ¶ added in v0.13.52
func (m *DeliveryMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Delivery entities.
func (*DeliveryMutation) SetLastAttemptedAt ¶ added in v0.13.52
func (m *DeliveryMutation) SetLastAttemptedAt(t time.Time)
SetLastAttemptedAt sets the "lastAttemptedAt" field.
func (*DeliveryMutation) SetMessageID ¶ added in v0.13.52
func (m *DeliveryMutation) SetMessageID(u uuid.UUID)
SetMessageID sets the "messageID" field.
func (*DeliveryMutation) SetNotBeforeID ¶ added in v0.13.52
func (m *DeliveryMutation) SetNotBeforeID(u uuid.UUID)
SetNotBeforeID sets the "notBeforeID" field.
func (*DeliveryMutation) SetOp ¶ added in v0.13.52
func (m *DeliveryMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*DeliveryMutation) SetPublishedAt ¶ added in v0.13.52
func (m *DeliveryMutation) SetPublishedAt(t time.Time)
SetPublishedAt sets the "publishedAt" field.
func (*DeliveryMutation) SetSubscriptionID ¶ added in v0.13.52
func (m *DeliveryMutation) SetSubscriptionID(u uuid.UUID)
SetSubscriptionID sets the "subscriptionID" field.
func (*DeliveryMutation) SubscriptionCleared ¶ added in v0.13.52
func (m *DeliveryMutation) SubscriptionCleared() bool
SubscriptionCleared reports if the "subscription" edge to the Subscription entity was cleared.
func (*DeliveryMutation) SubscriptionID ¶ added in v0.13.52
func (m *DeliveryMutation) SubscriptionID() (r uuid.UUID, exists bool)
SubscriptionID returns the value of the "subscriptionID" field in the mutation.
func (*DeliveryMutation) SubscriptionIDs ¶ added in v0.13.52
func (m *DeliveryMutation) SubscriptionIDs() (ids []uuid.UUID)
SubscriptionIDs returns the "subscription" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use SubscriptionID instead. It exists only for internal usage by the builders.
func (DeliveryMutation) Tx ¶ added in v0.13.52
func (m DeliveryMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*DeliveryMutation) Type ¶ added in v0.13.52
func (m *DeliveryMutation) Type() string
Type returns the node type of this mutation (Delivery).
func (*DeliveryMutation) Where ¶ added in v0.13.52
func (m *DeliveryMutation) Where(ps ...predicate.Delivery)
Where appends a list predicates to the DeliveryMutation builder.
func (*DeliveryMutation) WhereP ¶ added in v0.13.52
func (m *DeliveryMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the DeliveryMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type DeliveryQuery ¶ added in v0.13.52
type DeliveryQuery struct {
// contains filtered or unexported fields
}
DeliveryQuery is the builder for querying Delivery entities.
func (*DeliveryQuery) Aggregate ¶ added in v0.13.52
func (dq *DeliveryQuery) Aggregate(fns ...AggregateFunc) *DeliverySelect
Aggregate returns a DeliverySelect configured with the given aggregations.
func (*DeliveryQuery) All ¶ added in v0.13.52
func (dq *DeliveryQuery) All(ctx context.Context) ([]*Delivery, error)
All executes the query and returns a list of Deliveries.
func (*DeliveryQuery) AllX ¶ added in v0.13.52
func (dq *DeliveryQuery) AllX(ctx context.Context) []*Delivery
AllX is like All, but panics if an error occurs.
func (*DeliveryQuery) Clone ¶ added in v0.13.52
func (dq *DeliveryQuery) Clone() *DeliveryQuery
Clone returns a duplicate of the DeliveryQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*DeliveryQuery) Count ¶ added in v0.13.52
func (dq *DeliveryQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*DeliveryQuery) CountX ¶ added in v0.13.52
func (dq *DeliveryQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*DeliveryQuery) Exist ¶ added in v0.13.52
func (dq *DeliveryQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*DeliveryQuery) ExistX ¶ added in v0.13.52
func (dq *DeliveryQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*DeliveryQuery) Filter ¶ added in v0.13.52
func (dq *DeliveryQuery) Filter() *DeliveryFilter
Filter returns a Filter implementation to apply filters on the DeliveryQuery builder.
func (*DeliveryQuery) First ¶ added in v0.13.52
func (dq *DeliveryQuery) First(ctx context.Context) (*Delivery, error)
First returns the first Delivery entity from the query. Returns a *NotFoundError when no Delivery was found.
func (*DeliveryQuery) FirstID ¶ added in v0.13.52
FirstID returns the first Delivery ID from the query. Returns a *NotFoundError when no Delivery ID was found.
func (*DeliveryQuery) FirstIDX ¶ added in v0.13.52
func (dq *DeliveryQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*DeliveryQuery) FirstX ¶ added in v0.13.52
func (dq *DeliveryQuery) FirstX(ctx context.Context) *Delivery
FirstX is like First, but panics if an error occurs.
func (*DeliveryQuery) ForShare ¶ added in v0.13.52
func (dq *DeliveryQuery) ForShare(opts ...sql.LockOption) *DeliveryQuery
ForShare behaves similarly to ForUpdate, except that it acquires a shared mode lock on any rows that are read. Other sessions can read the rows, but cannot modify them until your transaction commits.
func (*DeliveryQuery) ForUpdate ¶ added in v0.13.52
func (dq *DeliveryQuery) ForUpdate(opts ...sql.LockOption) *DeliveryQuery
ForUpdate locks the selected rows against concurrent updates, and prevent them from being updated, deleted or "selected ... for update" by other sessions, until the transaction is either committed or rolled-back.
func (*DeliveryQuery) GroupBy ¶ added in v0.13.52
func (dq *DeliveryQuery) GroupBy(field string, fields ...string) *DeliveryGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { MessageID uuid.UUID `json:"messageID,omitempty"` Count int `json:"count,omitempty"` } client.Delivery.Query(). GroupBy(delivery.FieldMessageID). Aggregate(ent.Count()). Scan(ctx, &v)
func (*DeliveryQuery) IDs ¶ added in v0.13.52
IDs executes the query and returns a list of Delivery IDs.
func (*DeliveryQuery) IDsX ¶ added in v0.13.52
func (dq *DeliveryQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*DeliveryQuery) Limit ¶ added in v0.13.52
func (dq *DeliveryQuery) Limit(limit int) *DeliveryQuery
Limit the number of records to be returned by this query.
func (*DeliveryQuery) Offset ¶ added in v0.13.52
func (dq *DeliveryQuery) Offset(offset int) *DeliveryQuery
Offset to start from.
func (*DeliveryQuery) Only ¶ added in v0.13.52
func (dq *DeliveryQuery) Only(ctx context.Context) (*Delivery, error)
Only returns a single Delivery entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Delivery entity is found. Returns a *NotFoundError when no Delivery entities are found.
func (*DeliveryQuery) OnlyID ¶ added in v0.13.52
OnlyID is like Only, but returns the only Delivery ID in the query. Returns a *NotSingularError when more than one Delivery ID is found. Returns a *NotFoundError when no entities are found.
func (*DeliveryQuery) OnlyIDX ¶ added in v0.13.52
func (dq *DeliveryQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*DeliveryQuery) OnlyX ¶ added in v0.13.52
func (dq *DeliveryQuery) OnlyX(ctx context.Context) *Delivery
OnlyX is like Only, but panics if an error occurs.
func (*DeliveryQuery) Order ¶ added in v0.13.52
func (dq *DeliveryQuery) Order(o ...delivery.OrderOption) *DeliveryQuery
Order specifies how the records should be ordered.
func (*DeliveryQuery) QueryMessage ¶ added in v0.13.52
func (dq *DeliveryQuery) QueryMessage() *MessageQuery
QueryMessage chains the current query on the "message" edge.
func (*DeliveryQuery) QueryNextReady ¶ added in v0.13.52
func (dq *DeliveryQuery) QueryNextReady() *DeliveryQuery
QueryNextReady chains the current query on the "nextReady" edge.
func (*DeliveryQuery) QueryNotBefore ¶ added in v0.13.52
func (dq *DeliveryQuery) QueryNotBefore() *DeliveryQuery
QueryNotBefore chains the current query on the "notBefore" edge.
func (*DeliveryQuery) QuerySubscription ¶ added in v0.13.52
func (dq *DeliveryQuery) QuerySubscription() *SubscriptionQuery
QuerySubscription chains the current query on the "subscription" edge.
func (*DeliveryQuery) Select ¶ added in v0.13.52
func (dq *DeliveryQuery) Select(fields ...string) *DeliverySelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { MessageID uuid.UUID `json:"messageID,omitempty"` } client.Delivery.Query(). Select(delivery.FieldMessageID). Scan(ctx, &v)
func (*DeliveryQuery) Unique ¶ added in v0.13.52
func (dq *DeliveryQuery) Unique(unique bool) *DeliveryQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*DeliveryQuery) Where ¶ added in v0.13.52
func (dq *DeliveryQuery) Where(ps ...predicate.Delivery) *DeliveryQuery
Where adds a new predicate for the DeliveryQuery builder.
func (*DeliveryQuery) WithMessage ¶ added in v0.13.52
func (dq *DeliveryQuery) WithMessage(opts ...func(*MessageQuery)) *DeliveryQuery
WithMessage tells the query-builder to eager-load the nodes that are connected to the "message" edge. The optional arguments are used to configure the query builder of the edge.
func (*DeliveryQuery) WithNextReady ¶ added in v0.13.52
func (dq *DeliveryQuery) WithNextReady(opts ...func(*DeliveryQuery)) *DeliveryQuery
WithNextReady tells the query-builder to eager-load the nodes that are connected to the "nextReady" edge. The optional arguments are used to configure the query builder of the edge.
func (*DeliveryQuery) WithNotBefore ¶ added in v0.13.52
func (dq *DeliveryQuery) WithNotBefore(opts ...func(*DeliveryQuery)) *DeliveryQuery
WithNotBefore tells the query-builder to eager-load the nodes that are connected to the "notBefore" edge. The optional arguments are used to configure the query builder of the edge.
func (*DeliveryQuery) WithSubscription ¶ added in v0.13.52
func (dq *DeliveryQuery) WithSubscription(opts ...func(*SubscriptionQuery)) *DeliveryQuery
WithSubscription tells the query-builder to eager-load the nodes that are connected to the "subscription" edge. The optional arguments are used to configure the query builder of the edge.
type DeliverySelect ¶ added in v0.13.52
type DeliverySelect struct { *DeliveryQuery // contains filtered or unexported fields }
DeliverySelect is the builder for selecting fields of Delivery entities.
func (*DeliverySelect) Aggregate ¶ added in v0.13.52
func (ds *DeliverySelect) Aggregate(fns ...AggregateFunc) *DeliverySelect
Aggregate adds the given aggregation functions to the selector query.
func (*DeliverySelect) Bool ¶ added in v0.13.52
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DeliverySelect) Bools ¶ added in v0.13.52
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*DeliverySelect) BoolsX ¶ added in v0.13.52
BoolsX is like Bools, but panics if an error occurs.
func (*DeliverySelect) Float64 ¶ added in v0.13.52
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DeliverySelect) Float64X ¶ added in v0.13.52
Float64X is like Float64, but panics if an error occurs.
func (*DeliverySelect) Float64s ¶ added in v0.13.52
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DeliverySelect) Float64sX ¶ added in v0.13.52
Float64sX is like Float64s, but panics if an error occurs.
func (*DeliverySelect) Int ¶ added in v0.13.52
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DeliverySelect) Ints ¶ added in v0.13.52
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*DeliverySelect) Scan ¶ added in v0.13.52
func (ds *DeliverySelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*DeliverySelect) String ¶ added in v0.13.52
String returns a single string from a selector. It is only allowed when selecting one field.
func (*DeliverySelect) StringX ¶ added in v0.13.52
StringX is like String, but panics if an error occurs.
type DeliveryUpdate ¶ added in v0.13.52
type DeliveryUpdate struct {
// contains filtered or unexported fields
}
DeliveryUpdate is the builder for updating Delivery entities.
func (*DeliveryUpdate) AddAttempts ¶ added in v0.13.52
func (du *DeliveryUpdate) AddAttempts(i int) *DeliveryUpdate
AddAttempts adds i to the "attempts" field.
func (*DeliveryUpdate) AddNextReady ¶ added in v0.13.52
func (du *DeliveryUpdate) AddNextReady(d ...*Delivery) *DeliveryUpdate
AddNextReady adds the "nextReady" edges to the Delivery entity.
func (*DeliveryUpdate) AddNextReadyIDs ¶ added in v0.13.52
func (du *DeliveryUpdate) AddNextReadyIDs(ids ...uuid.UUID) *DeliveryUpdate
AddNextReadyIDs adds the "nextReady" edge to the Delivery entity by IDs.
func (*DeliveryUpdate) ClearCompletedAt ¶ added in v0.13.52
func (du *DeliveryUpdate) ClearCompletedAt() *DeliveryUpdate
ClearCompletedAt clears the value of the "completedAt" field.
func (*DeliveryUpdate) ClearLastAttemptedAt ¶ added in v0.13.52
func (du *DeliveryUpdate) ClearLastAttemptedAt() *DeliveryUpdate
ClearLastAttemptedAt clears the value of the "lastAttemptedAt" field.
func (*DeliveryUpdate) ClearMessage ¶ added in v0.13.52
func (du *DeliveryUpdate) ClearMessage() *DeliveryUpdate
ClearMessage clears the "message" edge to the Message entity.
func (*DeliveryUpdate) ClearNextReady ¶ added in v0.13.52
func (du *DeliveryUpdate) ClearNextReady() *DeliveryUpdate
ClearNextReady clears all "nextReady" edges to the Delivery entity.
func (*DeliveryUpdate) ClearNotBefore ¶ added in v0.13.52
func (du *DeliveryUpdate) ClearNotBefore() *DeliveryUpdate
ClearNotBefore clears the "notBefore" edge to the Delivery entity.
func (*DeliveryUpdate) ClearNotBeforeID ¶ added in v0.13.52
func (du *DeliveryUpdate) ClearNotBeforeID() *DeliveryUpdate
ClearNotBeforeID clears the value of the "notBeforeID" field.
func (*DeliveryUpdate) ClearSubscription ¶ added in v0.13.52
func (du *DeliveryUpdate) ClearSubscription() *DeliveryUpdate
ClearSubscription clears the "subscription" edge to the Subscription entity.
func (*DeliveryUpdate) Exec ¶ added in v0.13.52
func (du *DeliveryUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*DeliveryUpdate) ExecX ¶ added in v0.13.52
func (du *DeliveryUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeliveryUpdate) Mutation ¶ added in v0.13.52
func (du *DeliveryUpdate) Mutation() *DeliveryMutation
Mutation returns the DeliveryMutation object of the builder.
func (*DeliveryUpdate) RemoveNextReady ¶ added in v0.13.52
func (du *DeliveryUpdate) RemoveNextReady(d ...*Delivery) *DeliveryUpdate
RemoveNextReady removes "nextReady" edges to Delivery entities.
func (*DeliveryUpdate) RemoveNextReadyIDs ¶ added in v0.13.52
func (du *DeliveryUpdate) RemoveNextReadyIDs(ids ...uuid.UUID) *DeliveryUpdate
RemoveNextReadyIDs removes the "nextReady" edge to Delivery entities by IDs.
func (*DeliveryUpdate) Save ¶ added in v0.13.52
func (du *DeliveryUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*DeliveryUpdate) SaveX ¶ added in v0.13.52
func (du *DeliveryUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*DeliveryUpdate) SetAttemptAt ¶ added in v0.13.52
func (du *DeliveryUpdate) SetAttemptAt(t time.Time) *DeliveryUpdate
SetAttemptAt sets the "attemptAt" field.
func (*DeliveryUpdate) SetAttempts ¶ added in v0.13.52
func (du *DeliveryUpdate) SetAttempts(i int) *DeliveryUpdate
SetAttempts sets the "attempts" field.
func (*DeliveryUpdate) SetCompletedAt ¶ added in v0.13.52
func (du *DeliveryUpdate) SetCompletedAt(t time.Time) *DeliveryUpdate
SetCompletedAt sets the "completedAt" field.
func (*DeliveryUpdate) SetExpiresAt ¶ added in v0.13.52
func (du *DeliveryUpdate) SetExpiresAt(t time.Time) *DeliveryUpdate
SetExpiresAt sets the "expiresAt" field.
func (*DeliveryUpdate) SetLastAttemptedAt ¶ added in v0.13.52
func (du *DeliveryUpdate) SetLastAttemptedAt(t time.Time) *DeliveryUpdate
SetLastAttemptedAt sets the "lastAttemptedAt" field.
func (*DeliveryUpdate) SetMessage ¶ added in v0.13.52
func (du *DeliveryUpdate) SetMessage(m *Message) *DeliveryUpdate
SetMessage sets the "message" edge to the Message entity.
func (*DeliveryUpdate) SetMessageID ¶ added in v0.13.52
func (du *DeliveryUpdate) SetMessageID(u uuid.UUID) *DeliveryUpdate
SetMessageID sets the "messageID" field.
func (*DeliveryUpdate) SetNillableAttemptAt ¶ added in v0.13.52
func (du *DeliveryUpdate) SetNillableAttemptAt(t *time.Time) *DeliveryUpdate
SetNillableAttemptAt sets the "attemptAt" field if the given value is not nil.
func (*DeliveryUpdate) SetNillableAttempts ¶ added in v0.13.52
func (du *DeliveryUpdate) SetNillableAttempts(i *int) *DeliveryUpdate
SetNillableAttempts sets the "attempts" field if the given value is not nil.
func (*DeliveryUpdate) SetNillableCompletedAt ¶ added in v0.13.52
func (du *DeliveryUpdate) SetNillableCompletedAt(t *time.Time) *DeliveryUpdate
SetNillableCompletedAt sets the "completedAt" field if the given value is not nil.
func (*DeliveryUpdate) SetNillableExpiresAt ¶ added in v0.13.52
func (du *DeliveryUpdate) SetNillableExpiresAt(t *time.Time) *DeliveryUpdate
SetNillableExpiresAt sets the "expiresAt" field if the given value is not nil.
func (*DeliveryUpdate) SetNillableLastAttemptedAt ¶ added in v0.13.52
func (du *DeliveryUpdate) SetNillableLastAttemptedAt(t *time.Time) *DeliveryUpdate
SetNillableLastAttemptedAt sets the "lastAttemptedAt" field if the given value is not nil.
func (*DeliveryUpdate) SetNillableMessageID ¶ added in v0.13.52
func (du *DeliveryUpdate) SetNillableMessageID(u *uuid.UUID) *DeliveryUpdate
SetNillableMessageID sets the "messageID" field if the given value is not nil.
func (*DeliveryUpdate) SetNillableNotBeforeID ¶ added in v0.13.52
func (du *DeliveryUpdate) SetNillableNotBeforeID(u *uuid.UUID) *DeliveryUpdate
SetNillableNotBeforeID sets the "notBeforeID" field if the given value is not nil.
func (*DeliveryUpdate) SetNillablePublishedAt ¶ added in v0.13.52
func (du *DeliveryUpdate) SetNillablePublishedAt(t *time.Time) *DeliveryUpdate
SetNillablePublishedAt sets the "publishedAt" field if the given value is not nil.
func (*DeliveryUpdate) SetNillableSubscriptionID ¶ added in v0.13.52
func (du *DeliveryUpdate) SetNillableSubscriptionID(u *uuid.UUID) *DeliveryUpdate
SetNillableSubscriptionID sets the "subscriptionID" field if the given value is not nil.
func (*DeliveryUpdate) SetNotBefore ¶ added in v0.13.52
func (du *DeliveryUpdate) SetNotBefore(d *Delivery) *DeliveryUpdate
SetNotBefore sets the "notBefore" edge to the Delivery entity.
func (*DeliveryUpdate) SetNotBeforeID ¶ added in v0.13.52
func (du *DeliveryUpdate) SetNotBeforeID(u uuid.UUID) *DeliveryUpdate
SetNotBeforeID sets the "notBeforeID" field.
func (*DeliveryUpdate) SetPublishedAt ¶ added in v0.13.52
func (du *DeliveryUpdate) SetPublishedAt(t time.Time) *DeliveryUpdate
SetPublishedAt sets the "publishedAt" field.
func (*DeliveryUpdate) SetSubscription ¶ added in v0.13.52
func (du *DeliveryUpdate) SetSubscription(s *Subscription) *DeliveryUpdate
SetSubscription sets the "subscription" edge to the Subscription entity.
func (*DeliveryUpdate) SetSubscriptionID ¶ added in v0.13.52
func (du *DeliveryUpdate) SetSubscriptionID(u uuid.UUID) *DeliveryUpdate
SetSubscriptionID sets the "subscriptionID" field.
func (*DeliveryUpdate) Where ¶ added in v0.13.52
func (du *DeliveryUpdate) Where(ps ...predicate.Delivery) *DeliveryUpdate
Where appends a list predicates to the DeliveryUpdate builder.
type DeliveryUpdateOne ¶ added in v0.13.52
type DeliveryUpdateOne struct {
// contains filtered or unexported fields
}
DeliveryUpdateOne is the builder for updating a single Delivery entity.
func (*DeliveryUpdateOne) AddAttempts ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) AddAttempts(i int) *DeliveryUpdateOne
AddAttempts adds i to the "attempts" field.
func (*DeliveryUpdateOne) AddNextReady ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) AddNextReady(d ...*Delivery) *DeliveryUpdateOne
AddNextReady adds the "nextReady" edges to the Delivery entity.
func (*DeliveryUpdateOne) AddNextReadyIDs ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) AddNextReadyIDs(ids ...uuid.UUID) *DeliveryUpdateOne
AddNextReadyIDs adds the "nextReady" edge to the Delivery entity by IDs.
func (*DeliveryUpdateOne) ClearCompletedAt ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) ClearCompletedAt() *DeliveryUpdateOne
ClearCompletedAt clears the value of the "completedAt" field.
func (*DeliveryUpdateOne) ClearLastAttemptedAt ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) ClearLastAttemptedAt() *DeliveryUpdateOne
ClearLastAttemptedAt clears the value of the "lastAttemptedAt" field.
func (*DeliveryUpdateOne) ClearMessage ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) ClearMessage() *DeliveryUpdateOne
ClearMessage clears the "message" edge to the Message entity.
func (*DeliveryUpdateOne) ClearNextReady ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) ClearNextReady() *DeliveryUpdateOne
ClearNextReady clears all "nextReady" edges to the Delivery entity.
func (*DeliveryUpdateOne) ClearNotBefore ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) ClearNotBefore() *DeliveryUpdateOne
ClearNotBefore clears the "notBefore" edge to the Delivery entity.
func (*DeliveryUpdateOne) ClearNotBeforeID ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) ClearNotBeforeID() *DeliveryUpdateOne
ClearNotBeforeID clears the value of the "notBeforeID" field.
func (*DeliveryUpdateOne) ClearSubscription ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) ClearSubscription() *DeliveryUpdateOne
ClearSubscription clears the "subscription" edge to the Subscription entity.
func (*DeliveryUpdateOne) Exec ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*DeliveryUpdateOne) ExecX ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeliveryUpdateOne) Mutation ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) Mutation() *DeliveryMutation
Mutation returns the DeliveryMutation object of the builder.
func (*DeliveryUpdateOne) RemoveNextReady ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) RemoveNextReady(d ...*Delivery) *DeliveryUpdateOne
RemoveNextReady removes "nextReady" edges to Delivery entities.
func (*DeliveryUpdateOne) RemoveNextReadyIDs ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) RemoveNextReadyIDs(ids ...uuid.UUID) *DeliveryUpdateOne
RemoveNextReadyIDs removes the "nextReady" edge to Delivery entities by IDs.
func (*DeliveryUpdateOne) Save ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) Save(ctx context.Context) (*Delivery, error)
Save executes the query and returns the updated Delivery entity.
func (*DeliveryUpdateOne) SaveX ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) SaveX(ctx context.Context) *Delivery
SaveX is like Save, but panics if an error occurs.
func (*DeliveryUpdateOne) Select ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) Select(field string, fields ...string) *DeliveryUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*DeliveryUpdateOne) SetAttemptAt ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) SetAttemptAt(t time.Time) *DeliveryUpdateOne
SetAttemptAt sets the "attemptAt" field.
func (*DeliveryUpdateOne) SetAttempts ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) SetAttempts(i int) *DeliveryUpdateOne
SetAttempts sets the "attempts" field.
func (*DeliveryUpdateOne) SetCompletedAt ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) SetCompletedAt(t time.Time) *DeliveryUpdateOne
SetCompletedAt sets the "completedAt" field.
func (*DeliveryUpdateOne) SetExpiresAt ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) SetExpiresAt(t time.Time) *DeliveryUpdateOne
SetExpiresAt sets the "expiresAt" field.
func (*DeliveryUpdateOne) SetLastAttemptedAt ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) SetLastAttemptedAt(t time.Time) *DeliveryUpdateOne
SetLastAttemptedAt sets the "lastAttemptedAt" field.
func (*DeliveryUpdateOne) SetMessage ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) SetMessage(m *Message) *DeliveryUpdateOne
SetMessage sets the "message" edge to the Message entity.
func (*DeliveryUpdateOne) SetMessageID ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) SetMessageID(u uuid.UUID) *DeliveryUpdateOne
SetMessageID sets the "messageID" field.
func (*DeliveryUpdateOne) SetNillableAttemptAt ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) SetNillableAttemptAt(t *time.Time) *DeliveryUpdateOne
SetNillableAttemptAt sets the "attemptAt" field if the given value is not nil.
func (*DeliveryUpdateOne) SetNillableAttempts ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) SetNillableAttempts(i *int) *DeliveryUpdateOne
SetNillableAttempts sets the "attempts" field if the given value is not nil.
func (*DeliveryUpdateOne) SetNillableCompletedAt ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) SetNillableCompletedAt(t *time.Time) *DeliveryUpdateOne
SetNillableCompletedAt sets the "completedAt" field if the given value is not nil.
func (*DeliveryUpdateOne) SetNillableExpiresAt ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) SetNillableExpiresAt(t *time.Time) *DeliveryUpdateOne
SetNillableExpiresAt sets the "expiresAt" field if the given value is not nil.
func (*DeliveryUpdateOne) SetNillableLastAttemptedAt ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) SetNillableLastAttemptedAt(t *time.Time) *DeliveryUpdateOne
SetNillableLastAttemptedAt sets the "lastAttemptedAt" field if the given value is not nil.
func (*DeliveryUpdateOne) SetNillableMessageID ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) SetNillableMessageID(u *uuid.UUID) *DeliveryUpdateOne
SetNillableMessageID sets the "messageID" field if the given value is not nil.
func (*DeliveryUpdateOne) SetNillableNotBeforeID ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) SetNillableNotBeforeID(u *uuid.UUID) *DeliveryUpdateOne
SetNillableNotBeforeID sets the "notBeforeID" field if the given value is not nil.
func (*DeliveryUpdateOne) SetNillablePublishedAt ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) SetNillablePublishedAt(t *time.Time) *DeliveryUpdateOne
SetNillablePublishedAt sets the "publishedAt" field if the given value is not nil.
func (*DeliveryUpdateOne) SetNillableSubscriptionID ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) SetNillableSubscriptionID(u *uuid.UUID) *DeliveryUpdateOne
SetNillableSubscriptionID sets the "subscriptionID" field if the given value is not nil.
func (*DeliveryUpdateOne) SetNotBefore ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) SetNotBefore(d *Delivery) *DeliveryUpdateOne
SetNotBefore sets the "notBefore" edge to the Delivery entity.
func (*DeliveryUpdateOne) SetNotBeforeID ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) SetNotBeforeID(u uuid.UUID) *DeliveryUpdateOne
SetNotBeforeID sets the "notBeforeID" field.
func (*DeliveryUpdateOne) SetPublishedAt ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) SetPublishedAt(t time.Time) *DeliveryUpdateOne
SetPublishedAt sets the "publishedAt" field.
func (*DeliveryUpdateOne) SetSubscription ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) SetSubscription(s *Subscription) *DeliveryUpdateOne
SetSubscription sets the "subscription" edge to the Subscription entity.
func (*DeliveryUpdateOne) SetSubscriptionID ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) SetSubscriptionID(u uuid.UUID) *DeliveryUpdateOne
SetSubscriptionID sets the "subscriptionID" field.
func (*DeliveryUpdateOne) Where ¶ added in v0.13.52
func (duo *DeliveryUpdateOne) Where(ps ...predicate.Delivery) *DeliveryUpdateOne
Where appends a list predicates to the DeliveryUpdate builder.
type DeliveryUpsert ¶ added in v0.13.52
DeliveryUpsert is the "OnConflict" setter.
func (*DeliveryUpsert) AddAttempts ¶ added in v0.13.52
func (u *DeliveryUpsert) AddAttempts(v int) *DeliveryUpsert
AddAttempts adds v to the "attempts" field.
func (*DeliveryUpsert) ClearCompletedAt ¶ added in v0.13.52
func (u *DeliveryUpsert) ClearCompletedAt() *DeliveryUpsert
ClearCompletedAt clears the value of the "completedAt" field.
func (*DeliveryUpsert) ClearLastAttemptedAt ¶ added in v0.13.52
func (u *DeliveryUpsert) ClearLastAttemptedAt() *DeliveryUpsert
ClearLastAttemptedAt clears the value of the "lastAttemptedAt" field.
func (*DeliveryUpsert) ClearNotBeforeID ¶ added in v0.13.52
func (u *DeliveryUpsert) ClearNotBeforeID() *DeliveryUpsert
ClearNotBeforeID clears the value of the "notBeforeID" field.
func (*DeliveryUpsert) SetAttemptAt ¶ added in v0.13.52
func (u *DeliveryUpsert) SetAttemptAt(v time.Time) *DeliveryUpsert
SetAttemptAt sets the "attemptAt" field.
func (*DeliveryUpsert) SetAttempts ¶ added in v0.13.52
func (u *DeliveryUpsert) SetAttempts(v int) *DeliveryUpsert
SetAttempts sets the "attempts" field.
func (*DeliveryUpsert) SetCompletedAt ¶ added in v0.13.52
func (u *DeliveryUpsert) SetCompletedAt(v time.Time) *DeliveryUpsert
SetCompletedAt sets the "completedAt" field.
func (*DeliveryUpsert) SetExpiresAt ¶ added in v0.13.52
func (u *DeliveryUpsert) SetExpiresAt(v time.Time) *DeliveryUpsert
SetExpiresAt sets the "expiresAt" field.
func (*DeliveryUpsert) SetLastAttemptedAt ¶ added in v0.13.52
func (u *DeliveryUpsert) SetLastAttemptedAt(v time.Time) *DeliveryUpsert
SetLastAttemptedAt sets the "lastAttemptedAt" field.
func (*DeliveryUpsert) SetMessageID ¶ added in v0.13.52
func (u *DeliveryUpsert) SetMessageID(v uuid.UUID) *DeliveryUpsert
SetMessageID sets the "messageID" field.
func (*DeliveryUpsert) SetNotBeforeID ¶ added in v0.13.52
func (u *DeliveryUpsert) SetNotBeforeID(v uuid.UUID) *DeliveryUpsert
SetNotBeforeID sets the "notBeforeID" field.
func (*DeliveryUpsert) SetPublishedAt ¶ added in v0.13.52
func (u *DeliveryUpsert) SetPublishedAt(v time.Time) *DeliveryUpsert
SetPublishedAt sets the "publishedAt" field.
func (*DeliveryUpsert) SetSubscriptionID ¶ added in v0.13.52
func (u *DeliveryUpsert) SetSubscriptionID(v uuid.UUID) *DeliveryUpsert
SetSubscriptionID sets the "subscriptionID" field.
func (*DeliveryUpsert) UpdateAttemptAt ¶ added in v0.13.52
func (u *DeliveryUpsert) UpdateAttemptAt() *DeliveryUpsert
UpdateAttemptAt sets the "attemptAt" field to the value that was provided on create.
func (*DeliveryUpsert) UpdateAttempts ¶ added in v0.13.52
func (u *DeliveryUpsert) UpdateAttempts() *DeliveryUpsert
UpdateAttempts sets the "attempts" field to the value that was provided on create.
func (*DeliveryUpsert) UpdateCompletedAt ¶ added in v0.13.52
func (u *DeliveryUpsert) UpdateCompletedAt() *DeliveryUpsert
UpdateCompletedAt sets the "completedAt" field to the value that was provided on create.
func (*DeliveryUpsert) UpdateExpiresAt ¶ added in v0.13.52
func (u *DeliveryUpsert) UpdateExpiresAt() *DeliveryUpsert
UpdateExpiresAt sets the "expiresAt" field to the value that was provided on create.
func (*DeliveryUpsert) UpdateLastAttemptedAt ¶ added in v0.13.52
func (u *DeliveryUpsert) UpdateLastAttemptedAt() *DeliveryUpsert
UpdateLastAttemptedAt sets the "lastAttemptedAt" field to the value that was provided on create.
func (*DeliveryUpsert) UpdateMessageID ¶ added in v0.13.52
func (u *DeliveryUpsert) UpdateMessageID() *DeliveryUpsert
UpdateMessageID sets the "messageID" field to the value that was provided on create.
func (*DeliveryUpsert) UpdateNotBeforeID ¶ added in v0.13.52
func (u *DeliveryUpsert) UpdateNotBeforeID() *DeliveryUpsert
UpdateNotBeforeID sets the "notBeforeID" field to the value that was provided on create.
func (*DeliveryUpsert) UpdatePublishedAt ¶ added in v0.13.52
func (u *DeliveryUpsert) UpdatePublishedAt() *DeliveryUpsert
UpdatePublishedAt sets the "publishedAt" field to the value that was provided on create.
func (*DeliveryUpsert) UpdateSubscriptionID ¶ added in v0.13.52
func (u *DeliveryUpsert) UpdateSubscriptionID() *DeliveryUpsert
UpdateSubscriptionID sets the "subscriptionID" field to the value that was provided on create.
type DeliveryUpsertBulk ¶ added in v0.13.52
type DeliveryUpsertBulk struct {
// contains filtered or unexported fields
}
DeliveryUpsertBulk is the builder for "upsert"-ing a bulk of Delivery nodes.
func (*DeliveryUpsertBulk) AddAttempts ¶ added in v0.13.52
func (u *DeliveryUpsertBulk) AddAttempts(v int) *DeliveryUpsertBulk
AddAttempts adds v to the "attempts" field.
func (*DeliveryUpsertBulk) ClearCompletedAt ¶ added in v0.13.52
func (u *DeliveryUpsertBulk) ClearCompletedAt() *DeliveryUpsertBulk
ClearCompletedAt clears the value of the "completedAt" field.
func (*DeliveryUpsertBulk) ClearLastAttemptedAt ¶ added in v0.13.52
func (u *DeliveryUpsertBulk) ClearLastAttemptedAt() *DeliveryUpsertBulk
ClearLastAttemptedAt clears the value of the "lastAttemptedAt" field.
func (*DeliveryUpsertBulk) ClearNotBeforeID ¶ added in v0.13.52
func (u *DeliveryUpsertBulk) ClearNotBeforeID() *DeliveryUpsertBulk
ClearNotBeforeID clears the value of the "notBeforeID" field.
func (*DeliveryUpsertBulk) DoNothing ¶ added in v0.13.52
func (u *DeliveryUpsertBulk) DoNothing() *DeliveryUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*DeliveryUpsertBulk) Exec ¶ added in v0.13.52
func (u *DeliveryUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*DeliveryUpsertBulk) ExecX ¶ added in v0.13.52
func (u *DeliveryUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeliveryUpsertBulk) Ignore ¶ added in v0.13.52
func (u *DeliveryUpsertBulk) Ignore() *DeliveryUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Delivery.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*DeliveryUpsertBulk) SetAttemptAt ¶ added in v0.13.52
func (u *DeliveryUpsertBulk) SetAttemptAt(v time.Time) *DeliveryUpsertBulk
SetAttemptAt sets the "attemptAt" field.
func (*DeliveryUpsertBulk) SetAttempts ¶ added in v0.13.52
func (u *DeliveryUpsertBulk) SetAttempts(v int) *DeliveryUpsertBulk
SetAttempts sets the "attempts" field.
func (*DeliveryUpsertBulk) SetCompletedAt ¶ added in v0.13.52
func (u *DeliveryUpsertBulk) SetCompletedAt(v time.Time) *DeliveryUpsertBulk
SetCompletedAt sets the "completedAt" field.
func (*DeliveryUpsertBulk) SetExpiresAt ¶ added in v0.13.52
func (u *DeliveryUpsertBulk) SetExpiresAt(v time.Time) *DeliveryUpsertBulk
SetExpiresAt sets the "expiresAt" field.
func (*DeliveryUpsertBulk) SetLastAttemptedAt ¶ added in v0.13.52
func (u *DeliveryUpsertBulk) SetLastAttemptedAt(v time.Time) *DeliveryUpsertBulk
SetLastAttemptedAt sets the "lastAttemptedAt" field.
func (*DeliveryUpsertBulk) SetMessageID ¶ added in v0.13.52
func (u *DeliveryUpsertBulk) SetMessageID(v uuid.UUID) *DeliveryUpsertBulk
SetMessageID sets the "messageID" field.
func (*DeliveryUpsertBulk) SetNotBeforeID ¶ added in v0.13.52
func (u *DeliveryUpsertBulk) SetNotBeforeID(v uuid.UUID) *DeliveryUpsertBulk
SetNotBeforeID sets the "notBeforeID" field.
func (*DeliveryUpsertBulk) SetPublishedAt ¶ added in v0.13.52
func (u *DeliveryUpsertBulk) SetPublishedAt(v time.Time) *DeliveryUpsertBulk
SetPublishedAt sets the "publishedAt" field.
func (*DeliveryUpsertBulk) SetSubscriptionID ¶ added in v0.13.52
func (u *DeliveryUpsertBulk) SetSubscriptionID(v uuid.UUID) *DeliveryUpsertBulk
SetSubscriptionID sets the "subscriptionID" field.
func (*DeliveryUpsertBulk) Update ¶ added in v0.13.52
func (u *DeliveryUpsertBulk) Update(set func(*DeliveryUpsert)) *DeliveryUpsertBulk
Update allows overriding fields `UPDATE` values. See the DeliveryCreateBulk.OnConflict documentation for more info.
func (*DeliveryUpsertBulk) UpdateAttemptAt ¶ added in v0.13.52
func (u *DeliveryUpsertBulk) UpdateAttemptAt() *DeliveryUpsertBulk
UpdateAttemptAt sets the "attemptAt" field to the value that was provided on create.
func (*DeliveryUpsertBulk) UpdateAttempts ¶ added in v0.13.52
func (u *DeliveryUpsertBulk) UpdateAttempts() *DeliveryUpsertBulk
UpdateAttempts sets the "attempts" field to the value that was provided on create.
func (*DeliveryUpsertBulk) UpdateCompletedAt ¶ added in v0.13.52
func (u *DeliveryUpsertBulk) UpdateCompletedAt() *DeliveryUpsertBulk
UpdateCompletedAt sets the "completedAt" field to the value that was provided on create.
func (*DeliveryUpsertBulk) UpdateExpiresAt ¶ added in v0.13.52
func (u *DeliveryUpsertBulk) UpdateExpiresAt() *DeliveryUpsertBulk
UpdateExpiresAt sets the "expiresAt" field to the value that was provided on create.
func (*DeliveryUpsertBulk) UpdateLastAttemptedAt ¶ added in v0.13.52
func (u *DeliveryUpsertBulk) UpdateLastAttemptedAt() *DeliveryUpsertBulk
UpdateLastAttemptedAt sets the "lastAttemptedAt" field to the value that was provided on create.
func (*DeliveryUpsertBulk) UpdateMessageID ¶ added in v0.13.52
func (u *DeliveryUpsertBulk) UpdateMessageID() *DeliveryUpsertBulk
UpdateMessageID sets the "messageID" field to the value that was provided on create.
func (*DeliveryUpsertBulk) UpdateNewValues ¶ added in v0.13.52
func (u *DeliveryUpsertBulk) UpdateNewValues() *DeliveryUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.Delivery.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(delivery.FieldID) }), ). Exec(ctx)
func (*DeliveryUpsertBulk) UpdateNotBeforeID ¶ added in v0.13.52
func (u *DeliveryUpsertBulk) UpdateNotBeforeID() *DeliveryUpsertBulk
UpdateNotBeforeID sets the "notBeforeID" field to the value that was provided on create.
func (*DeliveryUpsertBulk) UpdatePublishedAt ¶ added in v0.13.52
func (u *DeliveryUpsertBulk) UpdatePublishedAt() *DeliveryUpsertBulk
UpdatePublishedAt sets the "publishedAt" field to the value that was provided on create.
func (*DeliveryUpsertBulk) UpdateSubscriptionID ¶ added in v0.13.52
func (u *DeliveryUpsertBulk) UpdateSubscriptionID() *DeliveryUpsertBulk
UpdateSubscriptionID sets the "subscriptionID" field to the value that was provided on create.
type DeliveryUpsertOne ¶ added in v0.13.52
type DeliveryUpsertOne struct {
// contains filtered or unexported fields
}
DeliveryUpsertOne is the builder for "upsert"-ing
one Delivery node.
func (*DeliveryUpsertOne) AddAttempts ¶ added in v0.13.52
func (u *DeliveryUpsertOne) AddAttempts(v int) *DeliveryUpsertOne
AddAttempts adds v to the "attempts" field.
func (*DeliveryUpsertOne) ClearCompletedAt ¶ added in v0.13.52
func (u *DeliveryUpsertOne) ClearCompletedAt() *DeliveryUpsertOne
ClearCompletedAt clears the value of the "completedAt" field.
func (*DeliveryUpsertOne) ClearLastAttemptedAt ¶ added in v0.13.52
func (u *DeliveryUpsertOne) ClearLastAttemptedAt() *DeliveryUpsertOne
ClearLastAttemptedAt clears the value of the "lastAttemptedAt" field.
func (*DeliveryUpsertOne) ClearNotBeforeID ¶ added in v0.13.52
func (u *DeliveryUpsertOne) ClearNotBeforeID() *DeliveryUpsertOne
ClearNotBeforeID clears the value of the "notBeforeID" field.
func (*DeliveryUpsertOne) DoNothing ¶ added in v0.13.52
func (u *DeliveryUpsertOne) DoNothing() *DeliveryUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*DeliveryUpsertOne) Exec ¶ added in v0.13.52
func (u *DeliveryUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*DeliveryUpsertOne) ExecX ¶ added in v0.13.52
func (u *DeliveryUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeliveryUpsertOne) ID ¶ added in v0.13.52
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*DeliveryUpsertOne) IDX ¶ added in v0.13.52
func (u *DeliveryUpsertOne) IDX(ctx context.Context) uuid.UUID
IDX is like ID, but panics if an error occurs.
func (*DeliveryUpsertOne) Ignore ¶ added in v0.13.52
func (u *DeliveryUpsertOne) Ignore() *DeliveryUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Delivery.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*DeliveryUpsertOne) SetAttemptAt ¶ added in v0.13.52
func (u *DeliveryUpsertOne) SetAttemptAt(v time.Time) *DeliveryUpsertOne
SetAttemptAt sets the "attemptAt" field.
func (*DeliveryUpsertOne) SetAttempts ¶ added in v0.13.52
func (u *DeliveryUpsertOne) SetAttempts(v int) *DeliveryUpsertOne
SetAttempts sets the "attempts" field.
func (*DeliveryUpsertOne) SetCompletedAt ¶ added in v0.13.52
func (u *DeliveryUpsertOne) SetCompletedAt(v time.Time) *DeliveryUpsertOne
SetCompletedAt sets the "completedAt" field.
func (*DeliveryUpsertOne) SetExpiresAt ¶ added in v0.13.52
func (u *DeliveryUpsertOne) SetExpiresAt(v time.Time) *DeliveryUpsertOne
SetExpiresAt sets the "expiresAt" field.
func (*DeliveryUpsertOne) SetLastAttemptedAt ¶ added in v0.13.52
func (u *DeliveryUpsertOne) SetLastAttemptedAt(v time.Time) *DeliveryUpsertOne
SetLastAttemptedAt sets the "lastAttemptedAt" field.
func (*DeliveryUpsertOne) SetMessageID ¶ added in v0.13.52
func (u *DeliveryUpsertOne) SetMessageID(v uuid.UUID) *DeliveryUpsertOne
SetMessageID sets the "messageID" field.
func (*DeliveryUpsertOne) SetNotBeforeID ¶ added in v0.13.52
func (u *DeliveryUpsertOne) SetNotBeforeID(v uuid.UUID) *DeliveryUpsertOne
SetNotBeforeID sets the "notBeforeID" field.
func (*DeliveryUpsertOne) SetPublishedAt ¶ added in v0.13.52
func (u *DeliveryUpsertOne) SetPublishedAt(v time.Time) *DeliveryUpsertOne
SetPublishedAt sets the "publishedAt" field.
func (*DeliveryUpsertOne) SetSubscriptionID ¶ added in v0.13.52
func (u *DeliveryUpsertOne) SetSubscriptionID(v uuid.UUID) *DeliveryUpsertOne
SetSubscriptionID sets the "subscriptionID" field.
func (*DeliveryUpsertOne) Update ¶ added in v0.13.52
func (u *DeliveryUpsertOne) Update(set func(*DeliveryUpsert)) *DeliveryUpsertOne
Update allows overriding fields `UPDATE` values. See the DeliveryCreate.OnConflict documentation for more info.
func (*DeliveryUpsertOne) UpdateAttemptAt ¶ added in v0.13.52
func (u *DeliveryUpsertOne) UpdateAttemptAt() *DeliveryUpsertOne
UpdateAttemptAt sets the "attemptAt" field to the value that was provided on create.
func (*DeliveryUpsertOne) UpdateAttempts ¶ added in v0.13.52
func (u *DeliveryUpsertOne) UpdateAttempts() *DeliveryUpsertOne
UpdateAttempts sets the "attempts" field to the value that was provided on create.
func (*DeliveryUpsertOne) UpdateCompletedAt ¶ added in v0.13.52
func (u *DeliveryUpsertOne) UpdateCompletedAt() *DeliveryUpsertOne
UpdateCompletedAt sets the "completedAt" field to the value that was provided on create.
func (*DeliveryUpsertOne) UpdateExpiresAt ¶ added in v0.13.52
func (u *DeliveryUpsertOne) UpdateExpiresAt() *DeliveryUpsertOne
UpdateExpiresAt sets the "expiresAt" field to the value that was provided on create.
func (*DeliveryUpsertOne) UpdateLastAttemptedAt ¶ added in v0.13.52
func (u *DeliveryUpsertOne) UpdateLastAttemptedAt() *DeliveryUpsertOne
UpdateLastAttemptedAt sets the "lastAttemptedAt" field to the value that was provided on create.
func (*DeliveryUpsertOne) UpdateMessageID ¶ added in v0.13.52
func (u *DeliveryUpsertOne) UpdateMessageID() *DeliveryUpsertOne
UpdateMessageID sets the "messageID" field to the value that was provided on create.
func (*DeliveryUpsertOne) UpdateNewValues ¶ added in v0.13.52
func (u *DeliveryUpsertOne) UpdateNewValues() *DeliveryUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:
client.Delivery.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(delivery.FieldID) }), ). Exec(ctx)
func (*DeliveryUpsertOne) UpdateNotBeforeID ¶ added in v0.13.52
func (u *DeliveryUpsertOne) UpdateNotBeforeID() *DeliveryUpsertOne
UpdateNotBeforeID sets the "notBeforeID" field to the value that was provided on create.
func (*DeliveryUpsertOne) UpdatePublishedAt ¶ added in v0.13.52
func (u *DeliveryUpsertOne) UpdatePublishedAt() *DeliveryUpsertOne
UpdatePublishedAt sets the "publishedAt" field to the value that was provided on create.
func (*DeliveryUpsertOne) UpdateSubscriptionID ¶ added in v0.13.52
func (u *DeliveryUpsertOne) UpdateSubscriptionID() *DeliveryUpsertOne
UpdateSubscriptionID sets the "subscriptionID" field to the value that was provided on create.
type InterceptFunc ¶ added in v0.13.52
type InterceptFunc = ent.InterceptFunc
ent aliases to avoid import conflicts in user's code.
type Interceptor ¶ added in v0.13.52
type Interceptor = ent.Interceptor
ent aliases to avoid import conflicts in user's code.
type Message ¶ added in v0.13.52
type Message struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // TopicID holds the value of the "topicID" field. TopicID uuid.UUID `json:"topicID,omitempty"` // Payload holds the value of the "payload" field. Payload json.RawMessage `json:"payload,omitempty"` // Attributes holds the value of the "attributes" field. Attributes map[string]string `json:"attributes,omitempty"` // PublishedAt holds the value of the "publishedAt" field. PublishedAt time.Time `json:"publishedAt,omitempty"` // OrderKey holds the value of the "orderKey" field. OrderKey *string `json:"orderKey,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the MessageQuery when eager-loading is set. Edges MessageEdges `json:"-"` // contains filtered or unexported fields }
Message is the model entity for the Message schema.
func (*Message) QueryDeliveries ¶ added in v0.13.52
func (m *Message) QueryDeliveries() *DeliveryQuery
QueryDeliveries queries the "deliveries" edge of the Message entity.
func (*Message) QueryTopic ¶ added in v0.13.52
func (m *Message) QueryTopic() *TopicQuery
QueryTopic queries the "topic" edge of the Message entity.
func (*Message) Unwrap ¶ added in v0.13.52
Unwrap unwraps the Message entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Message) Update ¶ added in v0.13.52
func (m *Message) Update() *MessageUpdateOne
Update returns a builder for updating this Message. Note that you need to call Message.Unwrap() before calling this method if this Message was returned from a transaction, and the transaction was committed or rolled back.
type MessageClient ¶ added in v0.13.52
type MessageClient struct {
// contains filtered or unexported fields
}
MessageClient is a client for the Message schema.
func NewMessageClient ¶ added in v0.13.52
func NewMessageClient(c config) *MessageClient
NewMessageClient returns a client for the Message from the given config.
func (*MessageClient) Create ¶ added in v0.13.52
func (c *MessageClient) Create() *MessageCreate
Create returns a builder for creating a Message entity.
func (*MessageClient) CreateBulk ¶ added in v0.13.52
func (c *MessageClient) CreateBulk(builders ...*MessageCreate) *MessageCreateBulk
CreateBulk returns a builder for creating a bulk of Message entities.
func (*MessageClient) Delete ¶ added in v0.13.52
func (c *MessageClient) Delete() *MessageDelete
Delete returns a delete builder for Message.
func (*MessageClient) DeleteOne ¶ added in v0.13.52
func (c *MessageClient) DeleteOne(m *Message) *MessageDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*MessageClient) DeleteOneID ¶ added in v0.13.52
func (c *MessageClient) DeleteOneID(id uuid.UUID) *MessageDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*MessageClient) Hooks ¶ added in v0.13.52
func (c *MessageClient) Hooks() []Hook
Hooks returns the client hooks.
func (*MessageClient) Intercept ¶ added in v0.13.52
func (c *MessageClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `message.Intercept(f(g(h())))`.
func (*MessageClient) Interceptors ¶ added in v0.13.52
func (c *MessageClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*MessageClient) MapCreateBulk ¶ added in v0.13.52
func (c *MessageClient) MapCreateBulk(slice any, setFunc func(*MessageCreate, int)) *MessageCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*MessageClient) Query ¶ added in v0.13.52
func (c *MessageClient) Query() *MessageQuery
Query returns a query builder for Message.
func (*MessageClient) QueryDeliveries ¶ added in v0.13.52
func (c *MessageClient) QueryDeliveries(m *Message) *DeliveryQuery
QueryDeliveries queries the deliveries edge of a Message.
func (*MessageClient) QueryTopic ¶ added in v0.13.52
func (c *MessageClient) QueryTopic(m *Message) *TopicQuery
QueryTopic queries the topic edge of a Message.
func (*MessageClient) Update ¶ added in v0.13.52
func (c *MessageClient) Update() *MessageUpdate
Update returns an update builder for Message.
func (*MessageClient) UpdateOne ¶ added in v0.13.52
func (c *MessageClient) UpdateOne(m *Message) *MessageUpdateOne
UpdateOne returns an update builder for the given entity.
func (*MessageClient) UpdateOneID ¶ added in v0.13.52
func (c *MessageClient) UpdateOneID(id uuid.UUID) *MessageUpdateOne
UpdateOneID returns an update builder for the given id.
func (*MessageClient) Use ¶ added in v0.13.52
func (c *MessageClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `message.Hooks(f(g(h())))`.
type MessageCreate ¶ added in v0.13.52
type MessageCreate struct {
// contains filtered or unexported fields
}
MessageCreate is the builder for creating a Message entity.
func (*MessageCreate) AddDeliveries ¶ added in v0.13.52
func (mc *MessageCreate) AddDeliveries(d ...*Delivery) *MessageCreate
AddDeliveries adds the "deliveries" edges to the Delivery entity.
func (*MessageCreate) AddDeliveryIDs ¶ added in v0.13.52
func (mc *MessageCreate) AddDeliveryIDs(ids ...uuid.UUID) *MessageCreate
AddDeliveryIDs adds the "deliveries" edge to the Delivery entity by IDs.
func (*MessageCreate) Exec ¶ added in v0.13.52
func (mc *MessageCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*MessageCreate) ExecX ¶ added in v0.13.52
func (mc *MessageCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*MessageCreate) Mutation ¶ added in v0.13.52
func (mc *MessageCreate) Mutation() *MessageMutation
Mutation returns the MessageMutation object of the builder.
func (*MessageCreate) OnConflict ¶ added in v0.13.52
func (mc *MessageCreate) OnConflict(opts ...sql.ConflictOption) *MessageUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Message.Create(). SetTopicID(v). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.MessageUpsert) { SetTopicID(v+v). }). Exec(ctx)
func (*MessageCreate) OnConflictColumns ¶ added in v0.13.52
func (mc *MessageCreate) OnConflictColumns(columns ...string) *MessageUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Message.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*MessageCreate) Save ¶ added in v0.13.52
func (mc *MessageCreate) Save(ctx context.Context) (*Message, error)
Save creates the Message in the database.
func (*MessageCreate) SaveX ¶ added in v0.13.52
func (mc *MessageCreate) SaveX(ctx context.Context) *Message
SaveX calls Save and panics if Save returns an error.
func (*MessageCreate) SetAttributes ¶ added in v0.13.52
func (mc *MessageCreate) SetAttributes(m map[string]string) *MessageCreate
SetAttributes sets the "attributes" field.
func (*MessageCreate) SetID ¶ added in v0.13.52
func (mc *MessageCreate) SetID(u uuid.UUID) *MessageCreate
SetID sets the "id" field.
func (*MessageCreate) SetNillableID ¶ added in v0.13.52
func (mc *MessageCreate) SetNillableID(u *uuid.UUID) *MessageCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*MessageCreate) SetNillableOrderKey ¶ added in v0.13.52
func (mc *MessageCreate) SetNillableOrderKey(s *string) *MessageCreate
SetNillableOrderKey sets the "orderKey" field if the given value is not nil.
func (*MessageCreate) SetNillablePublishedAt ¶ added in v0.13.52
func (mc *MessageCreate) SetNillablePublishedAt(t *time.Time) *MessageCreate
SetNillablePublishedAt sets the "publishedAt" field if the given value is not nil.
func (*MessageCreate) SetOrderKey ¶ added in v0.13.52
func (mc *MessageCreate) SetOrderKey(s string) *MessageCreate
SetOrderKey sets the "orderKey" field.
func (*MessageCreate) SetPayload ¶ added in v0.13.52
func (mc *MessageCreate) SetPayload(jm json.RawMessage) *MessageCreate
SetPayload sets the "payload" field.
func (*MessageCreate) SetPublishedAt ¶ added in v0.13.52
func (mc *MessageCreate) SetPublishedAt(t time.Time) *MessageCreate
SetPublishedAt sets the "publishedAt" field.
func (*MessageCreate) SetTopic ¶ added in v0.13.52
func (mc *MessageCreate) SetTopic(t *Topic) *MessageCreate
SetTopic sets the "topic" edge to the Topic entity.
func (*MessageCreate) SetTopicID ¶ added in v0.13.52
func (mc *MessageCreate) SetTopicID(u uuid.UUID) *MessageCreate
SetTopicID sets the "topicID" field.
type MessageCreateBulk ¶ added in v0.13.52
type MessageCreateBulk struct {
// contains filtered or unexported fields
}
MessageCreateBulk is the builder for creating many Message entities in bulk.
func (*MessageCreateBulk) Exec ¶ added in v0.13.52
func (mcb *MessageCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*MessageCreateBulk) ExecX ¶ added in v0.13.52
func (mcb *MessageCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*MessageCreateBulk) OnConflict ¶ added in v0.13.52
func (mcb *MessageCreateBulk) OnConflict(opts ...sql.ConflictOption) *MessageUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Message.CreateBulk(builders...). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.MessageUpsert) { SetTopicID(v+v). }). Exec(ctx)
func (*MessageCreateBulk) OnConflictColumns ¶ added in v0.13.52
func (mcb *MessageCreateBulk) OnConflictColumns(columns ...string) *MessageUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Message.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
type MessageDelete ¶ added in v0.13.52
type MessageDelete struct {
// contains filtered or unexported fields
}
MessageDelete is the builder for deleting a Message entity.
func (*MessageDelete) Exec ¶ added in v0.13.52
func (md *MessageDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*MessageDelete) ExecX ¶ added in v0.13.52
func (md *MessageDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*MessageDelete) Where ¶ added in v0.13.52
func (md *MessageDelete) Where(ps ...predicate.Message) *MessageDelete
Where appends a list predicates to the MessageDelete builder.
type MessageDeleteOne ¶ added in v0.13.52
type MessageDeleteOne struct {
// contains filtered or unexported fields
}
MessageDeleteOne is the builder for deleting a single Message entity.
func (*MessageDeleteOne) Exec ¶ added in v0.13.52
func (mdo *MessageDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*MessageDeleteOne) ExecX ¶ added in v0.13.52
func (mdo *MessageDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*MessageDeleteOne) Where ¶ added in v0.13.52
func (mdo *MessageDeleteOne) Where(ps ...predicate.Message) *MessageDeleteOne
Where appends a list predicates to the MessageDelete builder.
type MessageEdges ¶ added in v0.13.52
type MessageEdges struct { // Deliveries holds the value of the deliveries edge. Deliveries []*Delivery `json:"deliveries,omitempty"` // Topic holds the value of the topic edge. Topic *Topic `json:"topic,omitempty"` // contains filtered or unexported fields }
MessageEdges holds the relations/edges for other nodes in the graph.
func (MessageEdges) DeliveriesOrErr ¶ added in v0.13.52
func (e MessageEdges) DeliveriesOrErr() ([]*Delivery, error)
DeliveriesOrErr returns the Deliveries value or an error if the edge was not loaded in eager-loading.
func (MessageEdges) TopicOrErr ¶ added in v0.13.52
func (e MessageEdges) TopicOrErr() (*Topic, error)
TopicOrErr returns the Topic value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type MessageFilter ¶ added in v0.13.52
type MessageFilter struct {
// contains filtered or unexported fields
}
MessageFilter provides a generic filtering capability at runtime for MessageQuery.
func (*MessageFilter) Where ¶ added in v0.13.52
func (f *MessageFilter) Where(p entql.P)
Where applies the entql predicate on the query filter.
func (*MessageFilter) WhereAttributes ¶ added in v0.13.52
func (f *MessageFilter) WhereAttributes(p entql.BytesP)
WhereAttributes applies the entql json.RawMessage predicate on the attributes field.
func (*MessageFilter) WhereHasDeliveries ¶ added in v0.13.52
func (f *MessageFilter) WhereHasDeliveries()
WhereHasDeliveries applies a predicate to check if query has an edge deliveries.
func (*MessageFilter) WhereHasDeliveriesWith ¶ added in v0.13.52
func (f *MessageFilter) WhereHasDeliveriesWith(preds ...predicate.Delivery)
WhereHasDeliveriesWith applies a predicate to check if query has an edge deliveries with a given conditions (other predicates).
func (*MessageFilter) WhereHasTopic ¶ added in v0.13.52
func (f *MessageFilter) WhereHasTopic()
WhereHasTopic applies a predicate to check if query has an edge topic.
func (*MessageFilter) WhereHasTopicWith ¶ added in v0.13.52
func (f *MessageFilter) WhereHasTopicWith(preds ...predicate.Topic)
WhereHasTopicWith applies a predicate to check if query has an edge topic with a given conditions (other predicates).
func (*MessageFilter) WhereID ¶ added in v0.13.52
func (f *MessageFilter) WhereID(p entql.ValueP)
WhereID applies the entql [16]byte predicate on the id field.
func (*MessageFilter) WhereOrderKey ¶ added in v0.13.52
func (f *MessageFilter) WhereOrderKey(p entql.StringP)
WhereOrderKey applies the entql string predicate on the orderKey field.
func (*MessageFilter) WherePayload ¶ added in v0.13.52
func (f *MessageFilter) WherePayload(p entql.BytesP)
WherePayload applies the entql json.RawMessage predicate on the payload field.
func (*MessageFilter) WherePublishedAt ¶ added in v0.13.52
func (f *MessageFilter) WherePublishedAt(p entql.TimeP)
WherePublishedAt applies the entql time.Time predicate on the publishedAt field.
func (*MessageFilter) WhereTopicID ¶ added in v0.13.52
func (f *MessageFilter) WhereTopicID(p entql.ValueP)
WhereTopicID applies the entql [16]byte predicate on the topicID field.
type MessageGroupBy ¶ added in v0.13.52
type MessageGroupBy struct {
// contains filtered or unexported fields
}
MessageGroupBy is the group-by builder for Message entities.
func (*MessageGroupBy) Aggregate ¶ added in v0.13.52
func (mgb *MessageGroupBy) Aggregate(fns ...AggregateFunc) *MessageGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*MessageGroupBy) Bool ¶ added in v0.13.52
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*MessageGroupBy) Bools ¶ added in v0.13.52
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*MessageGroupBy) BoolsX ¶ added in v0.13.52
BoolsX is like Bools, but panics if an error occurs.
func (*MessageGroupBy) Float64 ¶ added in v0.13.52
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*MessageGroupBy) Float64X ¶ added in v0.13.52
Float64X is like Float64, but panics if an error occurs.
func (*MessageGroupBy) Float64s ¶ added in v0.13.52
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*MessageGroupBy) Float64sX ¶ added in v0.13.52
Float64sX is like Float64s, but panics if an error occurs.
func (*MessageGroupBy) Int ¶ added in v0.13.52
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*MessageGroupBy) Ints ¶ added in v0.13.52
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*MessageGroupBy) Scan ¶ added in v0.13.52
func (mgb *MessageGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*MessageGroupBy) String ¶ added in v0.13.52
String returns a single string from a selector. It is only allowed when selecting one field.
func (*MessageGroupBy) StringX ¶ added in v0.13.52
StringX is like String, but panics if an error occurs.
type MessageMutation ¶ added in v0.13.52
type MessageMutation struct {
// contains filtered or unexported fields
}
MessageMutation represents an operation that mutates the Message nodes in the graph.
func (*MessageMutation) AddDeliveryIDs ¶ added in v0.13.52
func (m *MessageMutation) AddDeliveryIDs(ids ...uuid.UUID)
AddDeliveryIDs adds the "deliveries" edge to the Delivery entity by ids.
func (*MessageMutation) AddField ¶ added in v0.13.52
func (m *MessageMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*MessageMutation) AddedEdges ¶ added in v0.13.52
func (m *MessageMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*MessageMutation) AddedField ¶ added in v0.13.52
func (m *MessageMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*MessageMutation) AddedFields ¶ added in v0.13.52
func (m *MessageMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*MessageMutation) AddedIDs ¶ added in v0.13.52
func (m *MessageMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*MessageMutation) AppendPayload ¶ added in v0.13.52
func (m *MessageMutation) AppendPayload(jm json.RawMessage)
AppendPayload adds jm to the "payload" field.
func (*MessageMutation) AppendedPayload ¶ added in v0.13.52
func (m *MessageMutation) AppendedPayload() (json.RawMessage, bool)
AppendedPayload returns the list of values that were appended to the "payload" field in this mutation.
func (*MessageMutation) Attributes ¶ added in v0.13.52
func (m *MessageMutation) Attributes() (r map[string]string, exists bool)
Attributes returns the value of the "attributes" field in the mutation.
func (*MessageMutation) AttributesCleared ¶ added in v0.13.52
func (m *MessageMutation) AttributesCleared() bool
AttributesCleared returns if the "attributes" field was cleared in this mutation.
func (*MessageMutation) ClearAttributes ¶ added in v0.13.52
func (m *MessageMutation) ClearAttributes()
ClearAttributes clears the value of the "attributes" field.
func (*MessageMutation) ClearDeliveries ¶ added in v0.13.52
func (m *MessageMutation) ClearDeliveries()
ClearDeliveries clears the "deliveries" edge to the Delivery entity.
func (*MessageMutation) ClearEdge ¶ added in v0.13.52
func (m *MessageMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*MessageMutation) ClearField ¶ added in v0.13.52
func (m *MessageMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*MessageMutation) ClearOrderKey ¶ added in v0.13.52
func (m *MessageMutation) ClearOrderKey()
ClearOrderKey clears the value of the "orderKey" field.
func (*MessageMutation) ClearTopic ¶ added in v0.13.52
func (m *MessageMutation) ClearTopic()
ClearTopic clears the "topic" edge to the Topic entity.
func (*MessageMutation) ClearedEdges ¶ added in v0.13.52
func (m *MessageMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*MessageMutation) ClearedFields ¶ added in v0.13.52
func (m *MessageMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (MessageMutation) Client ¶ added in v0.13.52
func (m MessageMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*MessageMutation) DeliveriesCleared ¶ added in v0.13.52
func (m *MessageMutation) DeliveriesCleared() bool
DeliveriesCleared reports if the "deliveries" edge to the Delivery entity was cleared.
func (*MessageMutation) DeliveriesIDs ¶ added in v0.13.52
func (m *MessageMutation) DeliveriesIDs() (ids []uuid.UUID)
DeliveriesIDs returns the "deliveries" edge IDs in the mutation.
func (*MessageMutation) EdgeCleared ¶ added in v0.13.52
func (m *MessageMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*MessageMutation) Field ¶ added in v0.13.52
func (m *MessageMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*MessageMutation) FieldCleared ¶ added in v0.13.52
func (m *MessageMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*MessageMutation) Fields ¶ added in v0.13.52
func (m *MessageMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*MessageMutation) Filter ¶ added in v0.13.52
func (m *MessageMutation) Filter() *MessageFilter
Filter returns an entql.Where implementation to apply filters on the MessageMutation builder.
func (*MessageMutation) ID ¶ added in v0.13.52
func (m *MessageMutation) ID() (id uuid.UUID, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*MessageMutation) IDs ¶ added in v0.13.52
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*MessageMutation) OldAttributes ¶ added in v0.13.52
OldAttributes returns the old "attributes" field's value of the Message entity. If the Message object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*MessageMutation) OldField ¶ added in v0.13.52
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*MessageMutation) OldOrderKey ¶ added in v0.13.52
func (m *MessageMutation) OldOrderKey(ctx context.Context) (v *string, err error)
OldOrderKey returns the old "orderKey" field's value of the Message entity. If the Message object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*MessageMutation) OldPayload ¶ added in v0.13.52
func (m *MessageMutation) OldPayload(ctx context.Context) (v json.RawMessage, err error)
OldPayload returns the old "payload" field's value of the Message entity. If the Message object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*MessageMutation) OldPublishedAt ¶ added in v0.13.52
OldPublishedAt returns the old "publishedAt" field's value of the Message entity. If the Message object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*MessageMutation) OldTopicID ¶ added in v0.13.52
OldTopicID returns the old "topicID" field's value of the Message entity. If the Message object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*MessageMutation) Op ¶ added in v0.13.52
func (m *MessageMutation) Op() Op
Op returns the operation name.
func (*MessageMutation) OrderKey ¶ added in v0.13.52
func (m *MessageMutation) OrderKey() (r string, exists bool)
OrderKey returns the value of the "orderKey" field in the mutation.
func (*MessageMutation) OrderKeyCleared ¶ added in v0.13.52
func (m *MessageMutation) OrderKeyCleared() bool
OrderKeyCleared returns if the "orderKey" field was cleared in this mutation.
func (*MessageMutation) Payload ¶ added in v0.13.52
func (m *MessageMutation) Payload() (r json.RawMessage, exists bool)
Payload returns the value of the "payload" field in the mutation.
func (*MessageMutation) PublishedAt ¶ added in v0.13.52
func (m *MessageMutation) PublishedAt() (r time.Time, exists bool)
PublishedAt returns the value of the "publishedAt" field in the mutation.
func (*MessageMutation) RemoveDeliveryIDs ¶ added in v0.13.52
func (m *MessageMutation) RemoveDeliveryIDs(ids ...uuid.UUID)
RemoveDeliveryIDs removes the "deliveries" edge to the Delivery entity by IDs.
func (*MessageMutation) RemovedDeliveriesIDs ¶ added in v0.13.52
func (m *MessageMutation) RemovedDeliveriesIDs() (ids []uuid.UUID)
RemovedDeliveries returns the removed IDs of the "deliveries" edge to the Delivery entity.
func (*MessageMutation) RemovedEdges ¶ added in v0.13.52
func (m *MessageMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*MessageMutation) RemovedIDs ¶ added in v0.13.52
func (m *MessageMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*MessageMutation) ResetAttributes ¶ added in v0.13.52
func (m *MessageMutation) ResetAttributes()
ResetAttributes resets all changes to the "attributes" field.
func (*MessageMutation) ResetDeliveries ¶ added in v0.13.52
func (m *MessageMutation) ResetDeliveries()
ResetDeliveries resets all changes to the "deliveries" edge.
func (*MessageMutation) ResetEdge ¶ added in v0.13.52
func (m *MessageMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*MessageMutation) ResetField ¶ added in v0.13.52
func (m *MessageMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*MessageMutation) ResetOrderKey ¶ added in v0.13.52
func (m *MessageMutation) ResetOrderKey()
ResetOrderKey resets all changes to the "orderKey" field.
func (*MessageMutation) ResetPayload ¶ added in v0.13.52
func (m *MessageMutation) ResetPayload()
ResetPayload resets all changes to the "payload" field.
func (*MessageMutation) ResetPublishedAt ¶ added in v0.13.52
func (m *MessageMutation) ResetPublishedAt()
ResetPublishedAt resets all changes to the "publishedAt" field.
func (*MessageMutation) ResetTopic ¶ added in v0.13.52
func (m *MessageMutation) ResetTopic()
ResetTopic resets all changes to the "topic" edge.
func (*MessageMutation) ResetTopicID ¶ added in v0.13.52
func (m *MessageMutation) ResetTopicID()
ResetTopicID resets all changes to the "topicID" field.
func (*MessageMutation) SetAttributes ¶ added in v0.13.52
func (m *MessageMutation) SetAttributes(value map[string]string)
SetAttributes sets the "attributes" field.
func (*MessageMutation) SetField ¶ added in v0.13.52
func (m *MessageMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*MessageMutation) SetID ¶ added in v0.13.52
func (m *MessageMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Message entities.
func (*MessageMutation) SetOp ¶ added in v0.13.52
func (m *MessageMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*MessageMutation) SetOrderKey ¶ added in v0.13.52
func (m *MessageMutation) SetOrderKey(s string)
SetOrderKey sets the "orderKey" field.
func (*MessageMutation) SetPayload ¶ added in v0.13.52
func (m *MessageMutation) SetPayload(jm json.RawMessage)
SetPayload sets the "payload" field.
func (*MessageMutation) SetPublishedAt ¶ added in v0.13.52
func (m *MessageMutation) SetPublishedAt(t time.Time)
SetPublishedAt sets the "publishedAt" field.
func (*MessageMutation) SetTopicID ¶ added in v0.13.52
func (m *MessageMutation) SetTopicID(u uuid.UUID)
SetTopicID sets the "topicID" field.
func (*MessageMutation) TopicCleared ¶ added in v0.13.52
func (m *MessageMutation) TopicCleared() bool
TopicCleared reports if the "topic" edge to the Topic entity was cleared.
func (*MessageMutation) TopicID ¶ added in v0.13.52
func (m *MessageMutation) TopicID() (r uuid.UUID, exists bool)
TopicID returns the value of the "topicID" field in the mutation.
func (*MessageMutation) TopicIDs ¶ added in v0.13.52
func (m *MessageMutation) TopicIDs() (ids []uuid.UUID)
TopicIDs returns the "topic" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use TopicID instead. It exists only for internal usage by the builders.
func (MessageMutation) Tx ¶ added in v0.13.52
func (m MessageMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*MessageMutation) Type ¶ added in v0.13.52
func (m *MessageMutation) Type() string
Type returns the node type of this mutation (Message).
func (*MessageMutation) Where ¶ added in v0.13.52
func (m *MessageMutation) Where(ps ...predicate.Message)
Where appends a list predicates to the MessageMutation builder.
func (*MessageMutation) WhereP ¶ added in v0.13.52
func (m *MessageMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the MessageMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type MessageQuery ¶ added in v0.13.52
type MessageQuery struct {
// contains filtered or unexported fields
}
MessageQuery is the builder for querying Message entities.
func (*MessageQuery) Aggregate ¶ added in v0.13.52
func (mq *MessageQuery) Aggregate(fns ...AggregateFunc) *MessageSelect
Aggregate returns a MessageSelect configured with the given aggregations.
func (*MessageQuery) All ¶ added in v0.13.52
func (mq *MessageQuery) All(ctx context.Context) ([]*Message, error)
All executes the query and returns a list of Messages.
func (*MessageQuery) AllX ¶ added in v0.13.52
func (mq *MessageQuery) AllX(ctx context.Context) []*Message
AllX is like All, but panics if an error occurs.
func (*MessageQuery) Clone ¶ added in v0.13.52
func (mq *MessageQuery) Clone() *MessageQuery
Clone returns a duplicate of the MessageQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*MessageQuery) Count ¶ added in v0.13.52
func (mq *MessageQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*MessageQuery) CountX ¶ added in v0.13.52
func (mq *MessageQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*MessageQuery) Exist ¶ added in v0.13.52
func (mq *MessageQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*MessageQuery) ExistX ¶ added in v0.13.52
func (mq *MessageQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*MessageQuery) Filter ¶ added in v0.13.52
func (mq *MessageQuery) Filter() *MessageFilter
Filter returns a Filter implementation to apply filters on the MessageQuery builder.
func (*MessageQuery) First ¶ added in v0.13.52
func (mq *MessageQuery) First(ctx context.Context) (*Message, error)
First returns the first Message entity from the query. Returns a *NotFoundError when no Message was found.
func (*MessageQuery) FirstID ¶ added in v0.13.52
FirstID returns the first Message ID from the query. Returns a *NotFoundError when no Message ID was found.
func (*MessageQuery) FirstIDX ¶ added in v0.13.52
func (mq *MessageQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*MessageQuery) FirstX ¶ added in v0.13.52
func (mq *MessageQuery) FirstX(ctx context.Context) *Message
FirstX is like First, but panics if an error occurs.
func (*MessageQuery) ForShare ¶ added in v0.13.52
func (mq *MessageQuery) ForShare(opts ...sql.LockOption) *MessageQuery
ForShare behaves similarly to ForUpdate, except that it acquires a shared mode lock on any rows that are read. Other sessions can read the rows, but cannot modify them until your transaction commits.
func (*MessageQuery) ForUpdate ¶ added in v0.13.52
func (mq *MessageQuery) ForUpdate(opts ...sql.LockOption) *MessageQuery
ForUpdate locks the selected rows against concurrent updates, and prevent them from being updated, deleted or "selected ... for update" by other sessions, until the transaction is either committed or rolled-back.
func (*MessageQuery) GroupBy ¶ added in v0.13.52
func (mq *MessageQuery) GroupBy(field string, fields ...string) *MessageGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { TopicID uuid.UUID `json:"topicID,omitempty"` Count int `json:"count,omitempty"` } client.Message.Query(). GroupBy(message.FieldTopicID). Aggregate(ent.Count()). Scan(ctx, &v)
func (*MessageQuery) IDs ¶ added in v0.13.52
IDs executes the query and returns a list of Message IDs.
func (*MessageQuery) IDsX ¶ added in v0.13.52
func (mq *MessageQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*MessageQuery) Limit ¶ added in v0.13.52
func (mq *MessageQuery) Limit(limit int) *MessageQuery
Limit the number of records to be returned by this query.
func (*MessageQuery) Offset ¶ added in v0.13.52
func (mq *MessageQuery) Offset(offset int) *MessageQuery
Offset to start from.
func (*MessageQuery) Only ¶ added in v0.13.52
func (mq *MessageQuery) Only(ctx context.Context) (*Message, error)
Only returns a single Message entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Message entity is found. Returns a *NotFoundError when no Message entities are found.
func (*MessageQuery) OnlyID ¶ added in v0.13.52
OnlyID is like Only, but returns the only Message ID in the query. Returns a *NotSingularError when more than one Message ID is found. Returns a *NotFoundError when no entities are found.
func (*MessageQuery) OnlyIDX ¶ added in v0.13.52
func (mq *MessageQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*MessageQuery) OnlyX ¶ added in v0.13.52
func (mq *MessageQuery) OnlyX(ctx context.Context) *Message
OnlyX is like Only, but panics if an error occurs.
func (*MessageQuery) Order ¶ added in v0.13.52
func (mq *MessageQuery) Order(o ...message.OrderOption) *MessageQuery
Order specifies how the records should be ordered.
func (*MessageQuery) QueryDeliveries ¶ added in v0.13.52
func (mq *MessageQuery) QueryDeliveries() *DeliveryQuery
QueryDeliveries chains the current query on the "deliveries" edge.
func (*MessageQuery) QueryTopic ¶ added in v0.13.52
func (mq *MessageQuery) QueryTopic() *TopicQuery
QueryTopic chains the current query on the "topic" edge.
func (*MessageQuery) Select ¶ added in v0.13.52
func (mq *MessageQuery) Select(fields ...string) *MessageSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { TopicID uuid.UUID `json:"topicID,omitempty"` } client.Message.Query(). Select(message.FieldTopicID). Scan(ctx, &v)
func (*MessageQuery) Unique ¶ added in v0.13.52
func (mq *MessageQuery) Unique(unique bool) *MessageQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*MessageQuery) Where ¶ added in v0.13.52
func (mq *MessageQuery) Where(ps ...predicate.Message) *MessageQuery
Where adds a new predicate for the MessageQuery builder.
func (*MessageQuery) WithDeliveries ¶ added in v0.13.52
func (mq *MessageQuery) WithDeliveries(opts ...func(*DeliveryQuery)) *MessageQuery
WithDeliveries tells the query-builder to eager-load the nodes that are connected to the "deliveries" edge. The optional arguments are used to configure the query builder of the edge.
func (*MessageQuery) WithTopic ¶ added in v0.13.52
func (mq *MessageQuery) WithTopic(opts ...func(*TopicQuery)) *MessageQuery
WithTopic tells the query-builder to eager-load the nodes that are connected to the "topic" edge. The optional arguments are used to configure the query builder of the edge.
type MessageSelect ¶ added in v0.13.52
type MessageSelect struct { *MessageQuery // contains filtered or unexported fields }
MessageSelect is the builder for selecting fields of Message entities.
func (*MessageSelect) Aggregate ¶ added in v0.13.52
func (ms *MessageSelect) Aggregate(fns ...AggregateFunc) *MessageSelect
Aggregate adds the given aggregation functions to the selector query.
func (*MessageSelect) Bool ¶ added in v0.13.52
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*MessageSelect) Bools ¶ added in v0.13.52
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*MessageSelect) BoolsX ¶ added in v0.13.52
BoolsX is like Bools, but panics if an error occurs.
func (*MessageSelect) Float64 ¶ added in v0.13.52
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*MessageSelect) Float64X ¶ added in v0.13.52
Float64X is like Float64, but panics if an error occurs.
func (*MessageSelect) Float64s ¶ added in v0.13.52
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*MessageSelect) Float64sX ¶ added in v0.13.52
Float64sX is like Float64s, but panics if an error occurs.
func (*MessageSelect) Int ¶ added in v0.13.52
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*MessageSelect) Ints ¶ added in v0.13.52
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*MessageSelect) Scan ¶ added in v0.13.52
func (ms *MessageSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*MessageSelect) String ¶ added in v0.13.52
String returns a single string from a selector. It is only allowed when selecting one field.
func (*MessageSelect) StringX ¶ added in v0.13.52
StringX is like String, but panics if an error occurs.
type MessageUpdate ¶ added in v0.13.52
type MessageUpdate struct {
// contains filtered or unexported fields
}
MessageUpdate is the builder for updating Message entities.
func (*MessageUpdate) AddDeliveries ¶ added in v0.13.52
func (mu *MessageUpdate) AddDeliveries(d ...*Delivery) *MessageUpdate
AddDeliveries adds the "deliveries" edges to the Delivery entity.
func (*MessageUpdate) AddDeliveryIDs ¶ added in v0.13.52
func (mu *MessageUpdate) AddDeliveryIDs(ids ...uuid.UUID) *MessageUpdate
AddDeliveryIDs adds the "deliveries" edge to the Delivery entity by IDs.
func (*MessageUpdate) ClearDeliveries ¶ added in v0.13.52
func (mu *MessageUpdate) ClearDeliveries() *MessageUpdate
ClearDeliveries clears all "deliveries" edges to the Delivery entity.
func (*MessageUpdate) ClearTopic ¶ added in v0.13.52
func (mu *MessageUpdate) ClearTopic() *MessageUpdate
ClearTopic clears the "topic" edge to the Topic entity.
func (*MessageUpdate) Exec ¶ added in v0.13.52
func (mu *MessageUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*MessageUpdate) ExecX ¶ added in v0.13.52
func (mu *MessageUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*MessageUpdate) Mutation ¶ added in v0.13.52
func (mu *MessageUpdate) Mutation() *MessageMutation
Mutation returns the MessageMutation object of the builder.
func (*MessageUpdate) RemoveDeliveries ¶ added in v0.13.52
func (mu *MessageUpdate) RemoveDeliveries(d ...*Delivery) *MessageUpdate
RemoveDeliveries removes "deliveries" edges to Delivery entities.
func (*MessageUpdate) RemoveDeliveryIDs ¶ added in v0.13.52
func (mu *MessageUpdate) RemoveDeliveryIDs(ids ...uuid.UUID) *MessageUpdate
RemoveDeliveryIDs removes the "deliveries" edge to Delivery entities by IDs.
func (*MessageUpdate) Save ¶ added in v0.13.52
func (mu *MessageUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*MessageUpdate) SaveX ¶ added in v0.13.52
func (mu *MessageUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*MessageUpdate) SetNillableTopicID ¶ added in v0.13.52
func (mu *MessageUpdate) SetNillableTopicID(u *uuid.UUID) *MessageUpdate
SetNillableTopicID sets the "topicID" field if the given value is not nil.
func (*MessageUpdate) SetTopic ¶ added in v0.13.52
func (mu *MessageUpdate) SetTopic(t *Topic) *MessageUpdate
SetTopic sets the "topic" edge to the Topic entity.
func (*MessageUpdate) SetTopicID ¶ added in v0.13.52
func (mu *MessageUpdate) SetTopicID(u uuid.UUID) *MessageUpdate
SetTopicID sets the "topicID" field.
func (*MessageUpdate) Where ¶ added in v0.13.52
func (mu *MessageUpdate) Where(ps ...predicate.Message) *MessageUpdate
Where appends a list predicates to the MessageUpdate builder.
type MessageUpdateOne ¶ added in v0.13.52
type MessageUpdateOne struct {
// contains filtered or unexported fields
}
MessageUpdateOne is the builder for updating a single Message entity.
func (*MessageUpdateOne) AddDeliveries ¶ added in v0.13.52
func (muo *MessageUpdateOne) AddDeliveries(d ...*Delivery) *MessageUpdateOne
AddDeliveries adds the "deliveries" edges to the Delivery entity.
func (*MessageUpdateOne) AddDeliveryIDs ¶ added in v0.13.52
func (muo *MessageUpdateOne) AddDeliveryIDs(ids ...uuid.UUID) *MessageUpdateOne
AddDeliveryIDs adds the "deliveries" edge to the Delivery entity by IDs.
func (*MessageUpdateOne) ClearDeliveries ¶ added in v0.13.52
func (muo *MessageUpdateOne) ClearDeliveries() *MessageUpdateOne
ClearDeliveries clears all "deliveries" edges to the Delivery entity.
func (*MessageUpdateOne) ClearTopic ¶ added in v0.13.52
func (muo *MessageUpdateOne) ClearTopic() *MessageUpdateOne
ClearTopic clears the "topic" edge to the Topic entity.
func (*MessageUpdateOne) Exec ¶ added in v0.13.52
func (muo *MessageUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*MessageUpdateOne) ExecX ¶ added in v0.13.52
func (muo *MessageUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*MessageUpdateOne) Mutation ¶ added in v0.13.52
func (muo *MessageUpdateOne) Mutation() *MessageMutation
Mutation returns the MessageMutation object of the builder.
func (*MessageUpdateOne) RemoveDeliveries ¶ added in v0.13.52
func (muo *MessageUpdateOne) RemoveDeliveries(d ...*Delivery) *MessageUpdateOne
RemoveDeliveries removes "deliveries" edges to Delivery entities.
func (*MessageUpdateOne) RemoveDeliveryIDs ¶ added in v0.13.52
func (muo *MessageUpdateOne) RemoveDeliveryIDs(ids ...uuid.UUID) *MessageUpdateOne
RemoveDeliveryIDs removes the "deliveries" edge to Delivery entities by IDs.
func (*MessageUpdateOne) Save ¶ added in v0.13.52
func (muo *MessageUpdateOne) Save(ctx context.Context) (*Message, error)
Save executes the query and returns the updated Message entity.
func (*MessageUpdateOne) SaveX ¶ added in v0.13.52
func (muo *MessageUpdateOne) SaveX(ctx context.Context) *Message
SaveX is like Save, but panics if an error occurs.
func (*MessageUpdateOne) Select ¶ added in v0.13.52
func (muo *MessageUpdateOne) Select(field string, fields ...string) *MessageUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*MessageUpdateOne) SetNillableTopicID ¶ added in v0.13.52
func (muo *MessageUpdateOne) SetNillableTopicID(u *uuid.UUID) *MessageUpdateOne
SetNillableTopicID sets the "topicID" field if the given value is not nil.
func (*MessageUpdateOne) SetTopic ¶ added in v0.13.52
func (muo *MessageUpdateOne) SetTopic(t *Topic) *MessageUpdateOne
SetTopic sets the "topic" edge to the Topic entity.
func (*MessageUpdateOne) SetTopicID ¶ added in v0.13.52
func (muo *MessageUpdateOne) SetTopicID(u uuid.UUID) *MessageUpdateOne
SetTopicID sets the "topicID" field.
func (*MessageUpdateOne) Where ¶ added in v0.13.52
func (muo *MessageUpdateOne) Where(ps ...predicate.Message) *MessageUpdateOne
Where appends a list predicates to the MessageUpdate builder.
type MessageUpsert ¶ added in v0.13.52
MessageUpsert is the "OnConflict" setter.
func (*MessageUpsert) SetTopicID ¶ added in v0.13.52
func (u *MessageUpsert) SetTopicID(v uuid.UUID) *MessageUpsert
SetTopicID sets the "topicID" field.
func (*MessageUpsert) UpdateTopicID ¶ added in v0.13.52
func (u *MessageUpsert) UpdateTopicID() *MessageUpsert
UpdateTopicID sets the "topicID" field to the value that was provided on create.
type MessageUpsertBulk ¶ added in v0.13.52
type MessageUpsertBulk struct {
// contains filtered or unexported fields
}
MessageUpsertBulk is the builder for "upsert"-ing a bulk of Message nodes.
func (*MessageUpsertBulk) DoNothing ¶ added in v0.13.52
func (u *MessageUpsertBulk) DoNothing() *MessageUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*MessageUpsertBulk) Exec ¶ added in v0.13.52
func (u *MessageUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*MessageUpsertBulk) ExecX ¶ added in v0.13.52
func (u *MessageUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*MessageUpsertBulk) Ignore ¶ added in v0.13.52
func (u *MessageUpsertBulk) Ignore() *MessageUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Message.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*MessageUpsertBulk) SetTopicID ¶ added in v0.13.52
func (u *MessageUpsertBulk) SetTopicID(v uuid.UUID) *MessageUpsertBulk
SetTopicID sets the "topicID" field.
func (*MessageUpsertBulk) Update ¶ added in v0.13.52
func (u *MessageUpsertBulk) Update(set func(*MessageUpsert)) *MessageUpsertBulk
Update allows overriding fields `UPDATE` values. See the MessageCreateBulk.OnConflict documentation for more info.
func (*MessageUpsertBulk) UpdateNewValues ¶ added in v0.13.52
func (u *MessageUpsertBulk) UpdateNewValues() *MessageUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.Message.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(message.FieldID) }), ). Exec(ctx)
func (*MessageUpsertBulk) UpdateTopicID ¶ added in v0.13.52
func (u *MessageUpsertBulk) UpdateTopicID() *MessageUpsertBulk
UpdateTopicID sets the "topicID" field to the value that was provided on create.
type MessageUpsertOne ¶ added in v0.13.52
type MessageUpsertOne struct {
// contains filtered or unexported fields
}
MessageUpsertOne is the builder for "upsert"-ing
one Message node.
func (*MessageUpsertOne) DoNothing ¶ added in v0.13.52
func (u *MessageUpsertOne) DoNothing() *MessageUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*MessageUpsertOne) Exec ¶ added in v0.13.52
func (u *MessageUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*MessageUpsertOne) ExecX ¶ added in v0.13.52
func (u *MessageUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*MessageUpsertOne) ID ¶ added in v0.13.52
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*MessageUpsertOne) IDX ¶ added in v0.13.52
func (u *MessageUpsertOne) IDX(ctx context.Context) uuid.UUID
IDX is like ID, but panics if an error occurs.
func (*MessageUpsertOne) Ignore ¶ added in v0.13.52
func (u *MessageUpsertOne) Ignore() *MessageUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Message.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*MessageUpsertOne) SetTopicID ¶ added in v0.13.52
func (u *MessageUpsertOne) SetTopicID(v uuid.UUID) *MessageUpsertOne
SetTopicID sets the "topicID" field.
func (*MessageUpsertOne) Update ¶ added in v0.13.52
func (u *MessageUpsertOne) Update(set func(*MessageUpsert)) *MessageUpsertOne
Update allows overriding fields `UPDATE` values. See the MessageCreate.OnConflict documentation for more info.
func (*MessageUpsertOne) UpdateNewValues ¶ added in v0.13.52
func (u *MessageUpsertOne) UpdateNewValues() *MessageUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:
client.Message.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(message.FieldID) }), ). Exec(ctx)
func (*MessageUpsertOne) UpdateTopicID ¶ added in v0.13.52
func (u *MessageUpsertOne) UpdateTopicID() *MessageUpsertOne
UpdateTopicID sets the "topicID" field to the value that was provided on create.
type MutateFunc ¶ added in v0.13.52
type MutateFunc = ent.MutateFunc
ent aliases to avoid import conflicts in user's code.
type NotFoundError ¶ added in v0.13.52
type NotFoundError struct {
// contains filtered or unexported fields
}
NotFoundError returns when trying to fetch a specific entity and it was not found in the database.
func NewNotFoundError ¶ added in v0.13.52
func NewNotFoundError(label string) *NotFoundError
NewNotFoundError creates a new NotFoundError with the given label. This is exposed for fault injections.
func (*NotFoundError) Error ¶ added in v0.13.52
func (e *NotFoundError) Error() string
Error implements the error interface.
type NotLoadedError ¶ added in v0.13.52
type NotLoadedError struct {
// contains filtered or unexported fields
}
NotLoadedError returns when trying to get a node that was not loaded by the query.
func (*NotLoadedError) Error ¶ added in v0.13.52
func (e *NotLoadedError) Error() string
Error implements the error interface.
type NotSingularError ¶ added in v0.13.52
type NotSingularError struct {
// contains filtered or unexported fields
}
NotSingularError returns when trying to fetch a singular entity and more then one was found in the database.
func (*NotSingularError) Error ¶ added in v0.13.52
func (e *NotSingularError) Error() string
Error implements the error interface.
type Option ¶ added in v0.13.52
type Option func(*config)
Option function to configure the client.
type OrderFunc ¶ added in v0.13.52
OrderFunc applies an ordering on the sql selector. Deprecated: Use Asc/Desc functions or the package builders instead.
type QuerierFunc ¶ added in v0.13.52
type QuerierFunc = ent.QuerierFunc
ent aliases to avoid import conflicts in user's code.
type QueryContext ¶ added in v0.13.52
type QueryContext = ent.QueryContext
ent aliases to avoid import conflicts in user's code.
type RollbackFunc ¶ added in v0.13.52
The RollbackFunc type is an adapter to allow the use of ordinary function as a Rollbacker. If f is a function with the appropriate signature, RollbackFunc(f) is a Rollbacker that calls f.
type RollbackHook ¶ added in v0.13.52
type RollbackHook func(Rollbacker) Rollbacker
RollbackHook defines the "rollback middleware". A function that gets a Rollbacker and returns a Rollbacker. For example:
hook := func(next ent.Rollbacker) ent.Rollbacker { return ent.RollbackFunc(func(ctx context.Context, tx *ent.Tx) error { // Do some stuff before. if err := next.Rollback(ctx, tx); err != nil { return err } // Do some stuff after. return nil }) }
type Rollbacker ¶ added in v0.13.52
Rollbacker is the interface that wraps the Rollback method.
type Snapshot ¶ added in v0.13.52
type Snapshot struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // TopicID holds the value of the "topicID" field. TopicID uuid.UUID `json:"topicID,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // CreatedAt holds the value of the "createdAt" field. CreatedAt time.Time `json:"createdAt,omitempty"` // ExpiresAt holds the value of the "expiresAt" field. ExpiresAt time.Time `json:"expiresAt,omitempty"` // Labels holds the value of the "labels" field. Labels map[string]string `json:"labels,omitempty"` // AckedMessagesBefore holds the value of the "ackedMessagesBefore" field. AckedMessagesBefore time.Time `json:"ackedMessagesBefore,omitempty"` // AckedMessageIDs holds the value of the "ackedMessageIDs" field. AckedMessageIDs []uuid.UUID `json:"ackedMessageIDs,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the SnapshotQuery when eager-loading is set. Edges SnapshotEdges `json:"-"` // contains filtered or unexported fields }
Snapshot is the model entity for the Snapshot schema.
func (*Snapshot) QueryTopic ¶ added in v0.13.52
func (s *Snapshot) QueryTopic() *TopicQuery
QueryTopic queries the "topic" edge of the Snapshot entity.
func (*Snapshot) Unwrap ¶ added in v0.13.52
Unwrap unwraps the Snapshot entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Snapshot) Update ¶ added in v0.13.52
func (s *Snapshot) Update() *SnapshotUpdateOne
Update returns a builder for updating this Snapshot. Note that you need to call Snapshot.Unwrap() before calling this method if this Snapshot was returned from a transaction, and the transaction was committed or rolled back.
type SnapshotClient ¶ added in v0.13.52
type SnapshotClient struct {
// contains filtered or unexported fields
}
SnapshotClient is a client for the Snapshot schema.
func NewSnapshotClient ¶ added in v0.13.52
func NewSnapshotClient(c config) *SnapshotClient
NewSnapshotClient returns a client for the Snapshot from the given config.
func (*SnapshotClient) Create ¶ added in v0.13.52
func (c *SnapshotClient) Create() *SnapshotCreate
Create returns a builder for creating a Snapshot entity.
func (*SnapshotClient) CreateBulk ¶ added in v0.13.52
func (c *SnapshotClient) CreateBulk(builders ...*SnapshotCreate) *SnapshotCreateBulk
CreateBulk returns a builder for creating a bulk of Snapshot entities.
func (*SnapshotClient) Delete ¶ added in v0.13.52
func (c *SnapshotClient) Delete() *SnapshotDelete
Delete returns a delete builder for Snapshot.
func (*SnapshotClient) DeleteOne ¶ added in v0.13.52
func (c *SnapshotClient) DeleteOne(s *Snapshot) *SnapshotDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*SnapshotClient) DeleteOneID ¶ added in v0.13.52
func (c *SnapshotClient) DeleteOneID(id uuid.UUID) *SnapshotDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*SnapshotClient) Hooks ¶ added in v0.13.52
func (c *SnapshotClient) Hooks() []Hook
Hooks returns the client hooks.
func (*SnapshotClient) Intercept ¶ added in v0.13.52
func (c *SnapshotClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `snapshot.Intercept(f(g(h())))`.
func (*SnapshotClient) Interceptors ¶ added in v0.13.52
func (c *SnapshotClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*SnapshotClient) MapCreateBulk ¶ added in v0.13.52
func (c *SnapshotClient) MapCreateBulk(slice any, setFunc func(*SnapshotCreate, int)) *SnapshotCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*SnapshotClient) Query ¶ added in v0.13.52
func (c *SnapshotClient) Query() *SnapshotQuery
Query returns a query builder for Snapshot.
func (*SnapshotClient) QueryTopic ¶ added in v0.13.52
func (c *SnapshotClient) QueryTopic(s *Snapshot) *TopicQuery
QueryTopic queries the topic edge of a Snapshot.
func (*SnapshotClient) Update ¶ added in v0.13.52
func (c *SnapshotClient) Update() *SnapshotUpdate
Update returns an update builder for Snapshot.
func (*SnapshotClient) UpdateOne ¶ added in v0.13.52
func (c *SnapshotClient) UpdateOne(s *Snapshot) *SnapshotUpdateOne
UpdateOne returns an update builder for the given entity.
func (*SnapshotClient) UpdateOneID ¶ added in v0.13.52
func (c *SnapshotClient) UpdateOneID(id uuid.UUID) *SnapshotUpdateOne
UpdateOneID returns an update builder for the given id.
func (*SnapshotClient) Use ¶ added in v0.13.52
func (c *SnapshotClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `snapshot.Hooks(f(g(h())))`.
type SnapshotCreate ¶ added in v0.13.52
type SnapshotCreate struct {
// contains filtered or unexported fields
}
SnapshotCreate is the builder for creating a Snapshot entity.
func (*SnapshotCreate) Exec ¶ added in v0.13.52
func (sc *SnapshotCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*SnapshotCreate) ExecX ¶ added in v0.13.52
func (sc *SnapshotCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SnapshotCreate) Mutation ¶ added in v0.13.52
func (sc *SnapshotCreate) Mutation() *SnapshotMutation
Mutation returns the SnapshotMutation object of the builder.
func (*SnapshotCreate) OnConflict ¶ added in v0.13.52
func (sc *SnapshotCreate) OnConflict(opts ...sql.ConflictOption) *SnapshotUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Snapshot.Create(). SetTopicID(v). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.SnapshotUpsert) { SetTopicID(v+v). }). Exec(ctx)
func (*SnapshotCreate) OnConflictColumns ¶ added in v0.13.52
func (sc *SnapshotCreate) OnConflictColumns(columns ...string) *SnapshotUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Snapshot.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*SnapshotCreate) Save ¶ added in v0.13.52
func (sc *SnapshotCreate) Save(ctx context.Context) (*Snapshot, error)
Save creates the Snapshot in the database.
func (*SnapshotCreate) SaveX ¶ added in v0.13.52
func (sc *SnapshotCreate) SaveX(ctx context.Context) *Snapshot
SaveX calls Save and panics if Save returns an error.
func (*SnapshotCreate) SetAckedMessageIDs ¶ added in v0.13.52
func (sc *SnapshotCreate) SetAckedMessageIDs(u []uuid.UUID) *SnapshotCreate
SetAckedMessageIDs sets the "ackedMessageIDs" field.
func (*SnapshotCreate) SetAckedMessagesBefore ¶ added in v0.13.52
func (sc *SnapshotCreate) SetAckedMessagesBefore(t time.Time) *SnapshotCreate
SetAckedMessagesBefore sets the "ackedMessagesBefore" field.
func (*SnapshotCreate) SetCreatedAt ¶ added in v0.13.52
func (sc *SnapshotCreate) SetCreatedAt(t time.Time) *SnapshotCreate
SetCreatedAt sets the "createdAt" field.
func (*SnapshotCreate) SetExpiresAt ¶ added in v0.13.52
func (sc *SnapshotCreate) SetExpiresAt(t time.Time) *SnapshotCreate
SetExpiresAt sets the "expiresAt" field.
func (*SnapshotCreate) SetID ¶ added in v0.13.52
func (sc *SnapshotCreate) SetID(u uuid.UUID) *SnapshotCreate
SetID sets the "id" field.
func (*SnapshotCreate) SetLabels ¶ added in v0.13.52
func (sc *SnapshotCreate) SetLabels(m map[string]string) *SnapshotCreate
SetLabels sets the "labels" field.
func (*SnapshotCreate) SetName ¶ added in v0.13.52
func (sc *SnapshotCreate) SetName(s string) *SnapshotCreate
SetName sets the "name" field.
func (*SnapshotCreate) SetNillableCreatedAt ¶ added in v0.13.52
func (sc *SnapshotCreate) SetNillableCreatedAt(t *time.Time) *SnapshotCreate
SetNillableCreatedAt sets the "createdAt" field if the given value is not nil.
func (*SnapshotCreate) SetNillableID ¶ added in v0.13.52
func (sc *SnapshotCreate) SetNillableID(u *uuid.UUID) *SnapshotCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*SnapshotCreate) SetTopic ¶ added in v0.13.52
func (sc *SnapshotCreate) SetTopic(t *Topic) *SnapshotCreate
SetTopic sets the "topic" edge to the Topic entity.
func (*SnapshotCreate) SetTopicID ¶ added in v0.13.52
func (sc *SnapshotCreate) SetTopicID(u uuid.UUID) *SnapshotCreate
SetTopicID sets the "topicID" field.
type SnapshotCreateBulk ¶ added in v0.13.52
type SnapshotCreateBulk struct {
// contains filtered or unexported fields
}
SnapshotCreateBulk is the builder for creating many Snapshot entities in bulk.
func (*SnapshotCreateBulk) Exec ¶ added in v0.13.52
func (scb *SnapshotCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*SnapshotCreateBulk) ExecX ¶ added in v0.13.52
func (scb *SnapshotCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SnapshotCreateBulk) OnConflict ¶ added in v0.13.52
func (scb *SnapshotCreateBulk) OnConflict(opts ...sql.ConflictOption) *SnapshotUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Snapshot.CreateBulk(builders...). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.SnapshotUpsert) { SetTopicID(v+v). }). Exec(ctx)
func (*SnapshotCreateBulk) OnConflictColumns ¶ added in v0.13.52
func (scb *SnapshotCreateBulk) OnConflictColumns(columns ...string) *SnapshotUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Snapshot.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
type SnapshotDelete ¶ added in v0.13.52
type SnapshotDelete struct {
// contains filtered or unexported fields
}
SnapshotDelete is the builder for deleting a Snapshot entity.
func (*SnapshotDelete) Exec ¶ added in v0.13.52
func (sd *SnapshotDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*SnapshotDelete) ExecX ¶ added in v0.13.52
func (sd *SnapshotDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*SnapshotDelete) Where ¶ added in v0.13.52
func (sd *SnapshotDelete) Where(ps ...predicate.Snapshot) *SnapshotDelete
Where appends a list predicates to the SnapshotDelete builder.
type SnapshotDeleteOne ¶ added in v0.13.52
type SnapshotDeleteOne struct {
// contains filtered or unexported fields
}
SnapshotDeleteOne is the builder for deleting a single Snapshot entity.
func (*SnapshotDeleteOne) Exec ¶ added in v0.13.52
func (sdo *SnapshotDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*SnapshotDeleteOne) ExecX ¶ added in v0.13.52
func (sdo *SnapshotDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SnapshotDeleteOne) Where ¶ added in v0.13.52
func (sdo *SnapshotDeleteOne) Where(ps ...predicate.Snapshot) *SnapshotDeleteOne
Where appends a list predicates to the SnapshotDelete builder.
type SnapshotEdges ¶ added in v0.13.52
type SnapshotEdges struct { // Topic holds the value of the topic edge. Topic *Topic `json:"topic,omitempty"` // contains filtered or unexported fields }
SnapshotEdges holds the relations/edges for other nodes in the graph.
func (SnapshotEdges) TopicOrErr ¶ added in v0.13.52
func (e SnapshotEdges) TopicOrErr() (*Topic, error)
TopicOrErr returns the Topic value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type SnapshotFilter ¶ added in v0.13.52
type SnapshotFilter struct {
// contains filtered or unexported fields
}
SnapshotFilter provides a generic filtering capability at runtime for SnapshotQuery.
func (*SnapshotFilter) Where ¶ added in v0.13.52
func (f *SnapshotFilter) Where(p entql.P)
Where applies the entql predicate on the query filter.
func (*SnapshotFilter) WhereAckedMessageIDs ¶ added in v0.13.52
func (f *SnapshotFilter) WhereAckedMessageIDs(p entql.BytesP)
WhereAckedMessageIDs applies the entql json.RawMessage predicate on the ackedMessageIDs field.
func (*SnapshotFilter) WhereAckedMessagesBefore ¶ added in v0.13.52
func (f *SnapshotFilter) WhereAckedMessagesBefore(p entql.TimeP)
WhereAckedMessagesBefore applies the entql time.Time predicate on the ackedMessagesBefore field.
func (*SnapshotFilter) WhereCreatedAt ¶ added in v0.13.52
func (f *SnapshotFilter) WhereCreatedAt(p entql.TimeP)
WhereCreatedAt applies the entql time.Time predicate on the createdAt field.
func (*SnapshotFilter) WhereExpiresAt ¶ added in v0.13.52
func (f *SnapshotFilter) WhereExpiresAt(p entql.TimeP)
WhereExpiresAt applies the entql time.Time predicate on the expiresAt field.
func (*SnapshotFilter) WhereHasTopic ¶ added in v0.13.52
func (f *SnapshotFilter) WhereHasTopic()
WhereHasTopic applies a predicate to check if query has an edge topic.
func (*SnapshotFilter) WhereHasTopicWith ¶ added in v0.13.52
func (f *SnapshotFilter) WhereHasTopicWith(preds ...predicate.Topic)
WhereHasTopicWith applies a predicate to check if query has an edge topic with a given conditions (other predicates).
func (*SnapshotFilter) WhereID ¶ added in v0.13.52
func (f *SnapshotFilter) WhereID(p entql.ValueP)
WhereID applies the entql [16]byte predicate on the id field.
func (*SnapshotFilter) WhereLabels ¶ added in v0.13.52
func (f *SnapshotFilter) WhereLabels(p entql.BytesP)
WhereLabels applies the entql json.RawMessage predicate on the labels field.
func (*SnapshotFilter) WhereName ¶ added in v0.13.52
func (f *SnapshotFilter) WhereName(p entql.StringP)
WhereName applies the entql string predicate on the name field.
func (*SnapshotFilter) WhereTopicID ¶ added in v0.13.52
func (f *SnapshotFilter) WhereTopicID(p entql.ValueP)
WhereTopicID applies the entql [16]byte predicate on the topicID field.
type SnapshotGroupBy ¶ added in v0.13.52
type SnapshotGroupBy struct {
// contains filtered or unexported fields
}
SnapshotGroupBy is the group-by builder for Snapshot entities.
func (*SnapshotGroupBy) Aggregate ¶ added in v0.13.52
func (sgb *SnapshotGroupBy) Aggregate(fns ...AggregateFunc) *SnapshotGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*SnapshotGroupBy) Bool ¶ added in v0.13.52
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SnapshotGroupBy) BoolX ¶ added in v0.13.52
BoolX is like Bool, but panics if an error occurs.
func (*SnapshotGroupBy) Bools ¶ added in v0.13.52
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SnapshotGroupBy) BoolsX ¶ added in v0.13.52
BoolsX is like Bools, but panics if an error occurs.
func (*SnapshotGroupBy) Float64 ¶ added in v0.13.52
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SnapshotGroupBy) Float64X ¶ added in v0.13.52
Float64X is like Float64, but panics if an error occurs.
func (*SnapshotGroupBy) Float64s ¶ added in v0.13.52
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SnapshotGroupBy) Float64sX ¶ added in v0.13.52
Float64sX is like Float64s, but panics if an error occurs.
func (*SnapshotGroupBy) Int ¶ added in v0.13.52
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SnapshotGroupBy) Ints ¶ added in v0.13.52
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*SnapshotGroupBy) IntsX ¶ added in v0.13.52
IntsX is like Ints, but panics if an error occurs.
func (*SnapshotGroupBy) Scan ¶ added in v0.13.52
func (sgb *SnapshotGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*SnapshotGroupBy) ScanX ¶ added in v0.13.52
ScanX is like Scan, but panics if an error occurs.
func (*SnapshotGroupBy) String ¶ added in v0.13.52
String returns a single string from a selector. It is only allowed when selecting one field.
func (*SnapshotGroupBy) StringX ¶ added in v0.13.52
StringX is like String, but panics if an error occurs.
type SnapshotMutation ¶ added in v0.13.52
type SnapshotMutation struct {
// contains filtered or unexported fields
}
SnapshotMutation represents an operation that mutates the Snapshot nodes in the graph.
func (*SnapshotMutation) AckedMessageIDs ¶ added in v0.13.52
func (m *SnapshotMutation) AckedMessageIDs() (r []uuid.UUID, exists bool)
AckedMessageIDs returns the value of the "ackedMessageIDs" field in the mutation.
func (*SnapshotMutation) AckedMessageIDsCleared ¶ added in v0.13.52
func (m *SnapshotMutation) AckedMessageIDsCleared() bool
AckedMessageIDsCleared returns if the "ackedMessageIDs" field was cleared in this mutation.
func (*SnapshotMutation) AckedMessagesBefore ¶ added in v0.13.52
func (m *SnapshotMutation) AckedMessagesBefore() (r time.Time, exists bool)
AckedMessagesBefore returns the value of the "ackedMessagesBefore" field in the mutation.
func (*SnapshotMutation) AddField ¶ added in v0.13.52
func (m *SnapshotMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*SnapshotMutation) AddedEdges ¶ added in v0.13.52
func (m *SnapshotMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*SnapshotMutation) AddedField ¶ added in v0.13.52
func (m *SnapshotMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*SnapshotMutation) AddedFields ¶ added in v0.13.52
func (m *SnapshotMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*SnapshotMutation) AddedIDs ¶ added in v0.13.52
func (m *SnapshotMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*SnapshotMutation) AppendAckedMessageIDs ¶ added in v0.13.52
func (m *SnapshotMutation) AppendAckedMessageIDs(u []uuid.UUID)
AppendAckedMessageIDs adds u to the "ackedMessageIDs" field.
func (*SnapshotMutation) AppendedAckedMessageIDs ¶ added in v0.13.52
func (m *SnapshotMutation) AppendedAckedMessageIDs() ([]uuid.UUID, bool)
AppendedAckedMessageIDs returns the list of values that were appended to the "ackedMessageIDs" field in this mutation.
func (*SnapshotMutation) ClearAckedMessageIDs ¶ added in v0.13.52
func (m *SnapshotMutation) ClearAckedMessageIDs()
ClearAckedMessageIDs clears the value of the "ackedMessageIDs" field.
func (*SnapshotMutation) ClearEdge ¶ added in v0.13.52
func (m *SnapshotMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*SnapshotMutation) ClearField ¶ added in v0.13.52
func (m *SnapshotMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*SnapshotMutation) ClearLabels ¶ added in v0.13.52
func (m *SnapshotMutation) ClearLabels()
ClearLabels clears the value of the "labels" field.
func (*SnapshotMutation) ClearTopic ¶ added in v0.13.52
func (m *SnapshotMutation) ClearTopic()
ClearTopic clears the "topic" edge to the Topic entity.
func (*SnapshotMutation) ClearedEdges ¶ added in v0.13.52
func (m *SnapshotMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*SnapshotMutation) ClearedFields ¶ added in v0.13.52
func (m *SnapshotMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (SnapshotMutation) Client ¶ added in v0.13.52
func (m SnapshotMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*SnapshotMutation) CreatedAt ¶ added in v0.13.52
func (m *SnapshotMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "createdAt" field in the mutation.
func (*SnapshotMutation) EdgeCleared ¶ added in v0.13.52
func (m *SnapshotMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*SnapshotMutation) ExpiresAt ¶ added in v0.13.52
func (m *SnapshotMutation) ExpiresAt() (r time.Time, exists bool)
ExpiresAt returns the value of the "expiresAt" field in the mutation.
func (*SnapshotMutation) Field ¶ added in v0.13.52
func (m *SnapshotMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*SnapshotMutation) FieldCleared ¶ added in v0.13.52
func (m *SnapshotMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*SnapshotMutation) Fields ¶ added in v0.13.52
func (m *SnapshotMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*SnapshotMutation) Filter ¶ added in v0.13.52
func (m *SnapshotMutation) Filter() *SnapshotFilter
Filter returns an entql.Where implementation to apply filters on the SnapshotMutation builder.
func (*SnapshotMutation) ID ¶ added in v0.13.52
func (m *SnapshotMutation) ID() (id uuid.UUID, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*SnapshotMutation) IDs ¶ added in v0.13.52
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*SnapshotMutation) Labels ¶ added in v0.13.52
func (m *SnapshotMutation) Labels() (r map[string]string, exists bool)
Labels returns the value of the "labels" field in the mutation.
func (*SnapshotMutation) LabelsCleared ¶ added in v0.13.52
func (m *SnapshotMutation) LabelsCleared() bool
LabelsCleared returns if the "labels" field was cleared in this mutation.
func (*SnapshotMutation) Name ¶ added in v0.13.52
func (m *SnapshotMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*SnapshotMutation) OldAckedMessageIDs ¶ added in v0.13.52
OldAckedMessageIDs returns the old "ackedMessageIDs" field's value of the Snapshot entity. If the Snapshot object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SnapshotMutation) OldAckedMessagesBefore ¶ added in v0.13.52
OldAckedMessagesBefore returns the old "ackedMessagesBefore" field's value of the Snapshot entity. If the Snapshot object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SnapshotMutation) OldCreatedAt ¶ added in v0.13.52
OldCreatedAt returns the old "createdAt" field's value of the Snapshot entity. If the Snapshot object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SnapshotMutation) OldExpiresAt ¶ added in v0.13.52
OldExpiresAt returns the old "expiresAt" field's value of the Snapshot entity. If the Snapshot object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SnapshotMutation) OldField ¶ added in v0.13.52
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*SnapshotMutation) OldLabels ¶ added in v0.13.52
OldLabels returns the old "labels" field's value of the Snapshot entity. If the Snapshot object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SnapshotMutation) OldName ¶ added in v0.13.52
func (m *SnapshotMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the Snapshot entity. If the Snapshot object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SnapshotMutation) OldTopicID ¶ added in v0.13.52
OldTopicID returns the old "topicID" field's value of the Snapshot entity. If the Snapshot object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SnapshotMutation) Op ¶ added in v0.13.52
func (m *SnapshotMutation) Op() Op
Op returns the operation name.
func (*SnapshotMutation) RemovedEdges ¶ added in v0.13.52
func (m *SnapshotMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*SnapshotMutation) RemovedIDs ¶ added in v0.13.52
func (m *SnapshotMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*SnapshotMutation) ResetAckedMessageIDs ¶ added in v0.13.52
func (m *SnapshotMutation) ResetAckedMessageIDs()
ResetAckedMessageIDs resets all changes to the "ackedMessageIDs" field.
func (*SnapshotMutation) ResetAckedMessagesBefore ¶ added in v0.13.52
func (m *SnapshotMutation) ResetAckedMessagesBefore()
ResetAckedMessagesBefore resets all changes to the "ackedMessagesBefore" field.
func (*SnapshotMutation) ResetCreatedAt ¶ added in v0.13.52
func (m *SnapshotMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "createdAt" field.
func (*SnapshotMutation) ResetEdge ¶ added in v0.13.52
func (m *SnapshotMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*SnapshotMutation) ResetExpiresAt ¶ added in v0.13.52
func (m *SnapshotMutation) ResetExpiresAt()
ResetExpiresAt resets all changes to the "expiresAt" field.
func (*SnapshotMutation) ResetField ¶ added in v0.13.52
func (m *SnapshotMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*SnapshotMutation) ResetLabels ¶ added in v0.13.52
func (m *SnapshotMutation) ResetLabels()
ResetLabels resets all changes to the "labels" field.
func (*SnapshotMutation) ResetName ¶ added in v0.13.52
func (m *SnapshotMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*SnapshotMutation) ResetTopic ¶ added in v0.13.52
func (m *SnapshotMutation) ResetTopic()
ResetTopic resets all changes to the "topic" edge.
func (*SnapshotMutation) ResetTopicID ¶ added in v0.13.52
func (m *SnapshotMutation) ResetTopicID()
ResetTopicID resets all changes to the "topicID" field.
func (*SnapshotMutation) SetAckedMessageIDs ¶ added in v0.13.52
func (m *SnapshotMutation) SetAckedMessageIDs(u []uuid.UUID)
SetAckedMessageIDs sets the "ackedMessageIDs" field.
func (*SnapshotMutation) SetAckedMessagesBefore ¶ added in v0.13.52
func (m *SnapshotMutation) SetAckedMessagesBefore(t time.Time)
SetAckedMessagesBefore sets the "ackedMessagesBefore" field.
func (*SnapshotMutation) SetCreatedAt ¶ added in v0.13.52
func (m *SnapshotMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "createdAt" field.
func (*SnapshotMutation) SetExpiresAt ¶ added in v0.13.52
func (m *SnapshotMutation) SetExpiresAt(t time.Time)
SetExpiresAt sets the "expiresAt" field.
func (*SnapshotMutation) SetField ¶ added in v0.13.52
func (m *SnapshotMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*SnapshotMutation) SetID ¶ added in v0.13.52
func (m *SnapshotMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Snapshot entities.
func (*SnapshotMutation) SetLabels ¶ added in v0.13.52
func (m *SnapshotMutation) SetLabels(value map[string]string)
SetLabels sets the "labels" field.
func (*SnapshotMutation) SetName ¶ added in v0.13.52
func (m *SnapshotMutation) SetName(s string)
SetName sets the "name" field.
func (*SnapshotMutation) SetOp ¶ added in v0.13.52
func (m *SnapshotMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*SnapshotMutation) SetTopicID ¶ added in v0.13.52
func (m *SnapshotMutation) SetTopicID(u uuid.UUID)
SetTopicID sets the "topicID" field.
func (*SnapshotMutation) TopicCleared ¶ added in v0.13.52
func (m *SnapshotMutation) TopicCleared() bool
TopicCleared reports if the "topic" edge to the Topic entity was cleared.
func (*SnapshotMutation) TopicID ¶ added in v0.13.52
func (m *SnapshotMutation) TopicID() (r uuid.UUID, exists bool)
TopicID returns the value of the "topicID" field in the mutation.
func (*SnapshotMutation) TopicIDs ¶ added in v0.13.52
func (m *SnapshotMutation) TopicIDs() (ids []uuid.UUID)
TopicIDs returns the "topic" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use TopicID instead. It exists only for internal usage by the builders.
func (SnapshotMutation) Tx ¶ added in v0.13.52
func (m SnapshotMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*SnapshotMutation) Type ¶ added in v0.13.52
func (m *SnapshotMutation) Type() string
Type returns the node type of this mutation (Snapshot).
func (*SnapshotMutation) Where ¶ added in v0.13.52
func (m *SnapshotMutation) Where(ps ...predicate.Snapshot)
Where appends a list predicates to the SnapshotMutation builder.
func (*SnapshotMutation) WhereP ¶ added in v0.13.52
func (m *SnapshotMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the SnapshotMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type SnapshotQuery ¶ added in v0.13.52
type SnapshotQuery struct {
// contains filtered or unexported fields
}
SnapshotQuery is the builder for querying Snapshot entities.
func (*SnapshotQuery) Aggregate ¶ added in v0.13.52
func (sq *SnapshotQuery) Aggregate(fns ...AggregateFunc) *SnapshotSelect
Aggregate returns a SnapshotSelect configured with the given aggregations.
func (*SnapshotQuery) All ¶ added in v0.13.52
func (sq *SnapshotQuery) All(ctx context.Context) ([]*Snapshot, error)
All executes the query and returns a list of Snapshots.
func (*SnapshotQuery) AllX ¶ added in v0.13.52
func (sq *SnapshotQuery) AllX(ctx context.Context) []*Snapshot
AllX is like All, but panics if an error occurs.
func (*SnapshotQuery) Clone ¶ added in v0.13.52
func (sq *SnapshotQuery) Clone() *SnapshotQuery
Clone returns a duplicate of the SnapshotQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*SnapshotQuery) Count ¶ added in v0.13.52
func (sq *SnapshotQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*SnapshotQuery) CountX ¶ added in v0.13.52
func (sq *SnapshotQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*SnapshotQuery) Exist ¶ added in v0.13.52
func (sq *SnapshotQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*SnapshotQuery) ExistX ¶ added in v0.13.52
func (sq *SnapshotQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*SnapshotQuery) Filter ¶ added in v0.13.52
func (sq *SnapshotQuery) Filter() *SnapshotFilter
Filter returns a Filter implementation to apply filters on the SnapshotQuery builder.
func (*SnapshotQuery) First ¶ added in v0.13.52
func (sq *SnapshotQuery) First(ctx context.Context) (*Snapshot, error)
First returns the first Snapshot entity from the query. Returns a *NotFoundError when no Snapshot was found.
func (*SnapshotQuery) FirstID ¶ added in v0.13.52
FirstID returns the first Snapshot ID from the query. Returns a *NotFoundError when no Snapshot ID was found.
func (*SnapshotQuery) FirstIDX ¶ added in v0.13.52
func (sq *SnapshotQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*SnapshotQuery) FirstX ¶ added in v0.13.52
func (sq *SnapshotQuery) FirstX(ctx context.Context) *Snapshot
FirstX is like First, but panics if an error occurs.
func (*SnapshotQuery) ForShare ¶ added in v0.13.52
func (sq *SnapshotQuery) ForShare(opts ...sql.LockOption) *SnapshotQuery
ForShare behaves similarly to ForUpdate, except that it acquires a shared mode lock on any rows that are read. Other sessions can read the rows, but cannot modify them until your transaction commits.
func (*SnapshotQuery) ForUpdate ¶ added in v0.13.52
func (sq *SnapshotQuery) ForUpdate(opts ...sql.LockOption) *SnapshotQuery
ForUpdate locks the selected rows against concurrent updates, and prevent them from being updated, deleted or "selected ... for update" by other sessions, until the transaction is either committed or rolled-back.
func (*SnapshotQuery) GroupBy ¶ added in v0.13.52
func (sq *SnapshotQuery) GroupBy(field string, fields ...string) *SnapshotGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { TopicID uuid.UUID `json:"topicID,omitempty"` Count int `json:"count,omitempty"` } client.Snapshot.Query(). GroupBy(snapshot.FieldTopicID). Aggregate(ent.Count()). Scan(ctx, &v)
func (*SnapshotQuery) IDs ¶ added in v0.13.52
IDs executes the query and returns a list of Snapshot IDs.
func (*SnapshotQuery) IDsX ¶ added in v0.13.52
func (sq *SnapshotQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*SnapshotQuery) Limit ¶ added in v0.13.52
func (sq *SnapshotQuery) Limit(limit int) *SnapshotQuery
Limit the number of records to be returned by this query.
func (*SnapshotQuery) Offset ¶ added in v0.13.52
func (sq *SnapshotQuery) Offset(offset int) *SnapshotQuery
Offset to start from.
func (*SnapshotQuery) Only ¶ added in v0.13.52
func (sq *SnapshotQuery) Only(ctx context.Context) (*Snapshot, error)
Only returns a single Snapshot entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Snapshot entity is found. Returns a *NotFoundError when no Snapshot entities are found.
func (*SnapshotQuery) OnlyID ¶ added in v0.13.52
OnlyID is like Only, but returns the only Snapshot ID in the query. Returns a *NotSingularError when more than one Snapshot ID is found. Returns a *NotFoundError when no entities are found.
func (*SnapshotQuery) OnlyIDX ¶ added in v0.13.52
func (sq *SnapshotQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*SnapshotQuery) OnlyX ¶ added in v0.13.52
func (sq *SnapshotQuery) OnlyX(ctx context.Context) *Snapshot
OnlyX is like Only, but panics if an error occurs.
func (*SnapshotQuery) Order ¶ added in v0.13.52
func (sq *SnapshotQuery) Order(o ...snapshot.OrderOption) *SnapshotQuery
Order specifies how the records should be ordered.
func (*SnapshotQuery) QueryTopic ¶ added in v0.13.52
func (sq *SnapshotQuery) QueryTopic() *TopicQuery
QueryTopic chains the current query on the "topic" edge.
func (*SnapshotQuery) Select ¶ added in v0.13.52
func (sq *SnapshotQuery) Select(fields ...string) *SnapshotSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { TopicID uuid.UUID `json:"topicID,omitempty"` } client.Snapshot.Query(). Select(snapshot.FieldTopicID). Scan(ctx, &v)
func (*SnapshotQuery) Unique ¶ added in v0.13.52
func (sq *SnapshotQuery) Unique(unique bool) *SnapshotQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*SnapshotQuery) Where ¶ added in v0.13.52
func (sq *SnapshotQuery) Where(ps ...predicate.Snapshot) *SnapshotQuery
Where adds a new predicate for the SnapshotQuery builder.
func (*SnapshotQuery) WithTopic ¶ added in v0.13.52
func (sq *SnapshotQuery) WithTopic(opts ...func(*TopicQuery)) *SnapshotQuery
WithTopic tells the query-builder to eager-load the nodes that are connected to the "topic" edge. The optional arguments are used to configure the query builder of the edge.
type SnapshotSelect ¶ added in v0.13.52
type SnapshotSelect struct { *SnapshotQuery // contains filtered or unexported fields }
SnapshotSelect is the builder for selecting fields of Snapshot entities.
func (*SnapshotSelect) Aggregate ¶ added in v0.13.52
func (ss *SnapshotSelect) Aggregate(fns ...AggregateFunc) *SnapshotSelect
Aggregate adds the given aggregation functions to the selector query.
func (*SnapshotSelect) Bool ¶ added in v0.13.52
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SnapshotSelect) Bools ¶ added in v0.13.52
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SnapshotSelect) BoolsX ¶ added in v0.13.52
BoolsX is like Bools, but panics if an error occurs.
func (*SnapshotSelect) Float64 ¶ added in v0.13.52
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SnapshotSelect) Float64X ¶ added in v0.13.52
Float64X is like Float64, but panics if an error occurs.
func (*SnapshotSelect) Float64s ¶ added in v0.13.52
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SnapshotSelect) Float64sX ¶ added in v0.13.52
Float64sX is like Float64s, but panics if an error occurs.
func (*SnapshotSelect) Int ¶ added in v0.13.52
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SnapshotSelect) Ints ¶ added in v0.13.52
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*SnapshotSelect) Scan ¶ added in v0.13.52
func (ss *SnapshotSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*SnapshotSelect) String ¶ added in v0.13.52
String returns a single string from a selector. It is only allowed when selecting one field.
func (*SnapshotSelect) StringX ¶ added in v0.13.52
StringX is like String, but panics if an error occurs.
type SnapshotUpdate ¶ added in v0.13.52
type SnapshotUpdate struct {
// contains filtered or unexported fields
}
SnapshotUpdate is the builder for updating Snapshot entities.
func (*SnapshotUpdate) AppendAckedMessageIDs ¶ added in v0.13.52
func (su *SnapshotUpdate) AppendAckedMessageIDs(u []uuid.UUID) *SnapshotUpdate
AppendAckedMessageIDs appends u to the "ackedMessageIDs" field.
func (*SnapshotUpdate) ClearAckedMessageIDs ¶ added in v0.13.52
func (su *SnapshotUpdate) ClearAckedMessageIDs() *SnapshotUpdate
ClearAckedMessageIDs clears the value of the "ackedMessageIDs" field.
func (*SnapshotUpdate) ClearLabels ¶ added in v0.13.52
func (su *SnapshotUpdate) ClearLabels() *SnapshotUpdate
ClearLabels clears the value of the "labels" field.
func (*SnapshotUpdate) ClearTopic ¶ added in v0.13.52
func (su *SnapshotUpdate) ClearTopic() *SnapshotUpdate
ClearTopic clears the "topic" edge to the Topic entity.
func (*SnapshotUpdate) Exec ¶ added in v0.13.52
func (su *SnapshotUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*SnapshotUpdate) ExecX ¶ added in v0.13.52
func (su *SnapshotUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SnapshotUpdate) Mutation ¶ added in v0.13.52
func (su *SnapshotUpdate) Mutation() *SnapshotMutation
Mutation returns the SnapshotMutation object of the builder.
func (*SnapshotUpdate) Save ¶ added in v0.13.52
func (su *SnapshotUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*SnapshotUpdate) SaveX ¶ added in v0.13.52
func (su *SnapshotUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*SnapshotUpdate) SetAckedMessageIDs ¶ added in v0.13.52
func (su *SnapshotUpdate) SetAckedMessageIDs(u []uuid.UUID) *SnapshotUpdate
SetAckedMessageIDs sets the "ackedMessageIDs" field.
func (*SnapshotUpdate) SetAckedMessagesBefore ¶ added in v0.13.52
func (su *SnapshotUpdate) SetAckedMessagesBefore(t time.Time) *SnapshotUpdate
SetAckedMessagesBefore sets the "ackedMessagesBefore" field.
func (*SnapshotUpdate) SetExpiresAt ¶ added in v0.13.52
func (su *SnapshotUpdate) SetExpiresAt(t time.Time) *SnapshotUpdate
SetExpiresAt sets the "expiresAt" field.
func (*SnapshotUpdate) SetLabels ¶ added in v0.13.52
func (su *SnapshotUpdate) SetLabels(m map[string]string) *SnapshotUpdate
SetLabels sets the "labels" field.
func (*SnapshotUpdate) SetNillableAckedMessagesBefore ¶ added in v0.13.52
func (su *SnapshotUpdate) SetNillableAckedMessagesBefore(t *time.Time) *SnapshotUpdate
SetNillableAckedMessagesBefore sets the "ackedMessagesBefore" field if the given value is not nil.
func (*SnapshotUpdate) SetNillableExpiresAt ¶ added in v0.13.52
func (su *SnapshotUpdate) SetNillableExpiresAt(t *time.Time) *SnapshotUpdate
SetNillableExpiresAt sets the "expiresAt" field if the given value is not nil.
func (*SnapshotUpdate) SetNillableTopicID ¶ added in v0.13.52
func (su *SnapshotUpdate) SetNillableTopicID(u *uuid.UUID) *SnapshotUpdate
SetNillableTopicID sets the "topicID" field if the given value is not nil.
func (*SnapshotUpdate) SetTopic ¶ added in v0.13.52
func (su *SnapshotUpdate) SetTopic(t *Topic) *SnapshotUpdate
SetTopic sets the "topic" edge to the Topic entity.
func (*SnapshotUpdate) SetTopicID ¶ added in v0.13.52
func (su *SnapshotUpdate) SetTopicID(u uuid.UUID) *SnapshotUpdate
SetTopicID sets the "topicID" field.
func (*SnapshotUpdate) Where ¶ added in v0.13.52
func (su *SnapshotUpdate) Where(ps ...predicate.Snapshot) *SnapshotUpdate
Where appends a list predicates to the SnapshotUpdate builder.
type SnapshotUpdateOne ¶ added in v0.13.52
type SnapshotUpdateOne struct {
// contains filtered or unexported fields
}
SnapshotUpdateOne is the builder for updating a single Snapshot entity.
func (*SnapshotUpdateOne) AppendAckedMessageIDs ¶ added in v0.13.52
func (suo *SnapshotUpdateOne) AppendAckedMessageIDs(u []uuid.UUID) *SnapshotUpdateOne
AppendAckedMessageIDs appends u to the "ackedMessageIDs" field.
func (*SnapshotUpdateOne) ClearAckedMessageIDs ¶ added in v0.13.52
func (suo *SnapshotUpdateOne) ClearAckedMessageIDs() *SnapshotUpdateOne
ClearAckedMessageIDs clears the value of the "ackedMessageIDs" field.
func (*SnapshotUpdateOne) ClearLabels ¶ added in v0.13.52
func (suo *SnapshotUpdateOne) ClearLabels() *SnapshotUpdateOne
ClearLabels clears the value of the "labels" field.
func (*SnapshotUpdateOne) ClearTopic ¶ added in v0.13.52
func (suo *SnapshotUpdateOne) ClearTopic() *SnapshotUpdateOne
ClearTopic clears the "topic" edge to the Topic entity.
func (*SnapshotUpdateOne) Exec ¶ added in v0.13.52
func (suo *SnapshotUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*SnapshotUpdateOne) ExecX ¶ added in v0.13.52
func (suo *SnapshotUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SnapshotUpdateOne) Mutation ¶ added in v0.13.52
func (suo *SnapshotUpdateOne) Mutation() *SnapshotMutation
Mutation returns the SnapshotMutation object of the builder.
func (*SnapshotUpdateOne) Save ¶ added in v0.13.52
func (suo *SnapshotUpdateOne) Save(ctx context.Context) (*Snapshot, error)
Save executes the query and returns the updated Snapshot entity.
func (*SnapshotUpdateOne) SaveX ¶ added in v0.13.52
func (suo *SnapshotUpdateOne) SaveX(ctx context.Context) *Snapshot
SaveX is like Save, but panics if an error occurs.
func (*SnapshotUpdateOne) Select ¶ added in v0.13.52
func (suo *SnapshotUpdateOne) Select(field string, fields ...string) *SnapshotUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*SnapshotUpdateOne) SetAckedMessageIDs ¶ added in v0.13.52
func (suo *SnapshotUpdateOne) SetAckedMessageIDs(u []uuid.UUID) *SnapshotUpdateOne
SetAckedMessageIDs sets the "ackedMessageIDs" field.
func (*SnapshotUpdateOne) SetAckedMessagesBefore ¶ added in v0.13.52
func (suo *SnapshotUpdateOne) SetAckedMessagesBefore(t time.Time) *SnapshotUpdateOne
SetAckedMessagesBefore sets the "ackedMessagesBefore" field.
func (*SnapshotUpdateOne) SetExpiresAt ¶ added in v0.13.52
func (suo *SnapshotUpdateOne) SetExpiresAt(t time.Time) *SnapshotUpdateOne
SetExpiresAt sets the "expiresAt" field.
func (*SnapshotUpdateOne) SetLabels ¶ added in v0.13.52
func (suo *SnapshotUpdateOne) SetLabels(m map[string]string) *SnapshotUpdateOne
SetLabels sets the "labels" field.
func (*SnapshotUpdateOne) SetNillableAckedMessagesBefore ¶ added in v0.13.52
func (suo *SnapshotUpdateOne) SetNillableAckedMessagesBefore(t *time.Time) *SnapshotUpdateOne
SetNillableAckedMessagesBefore sets the "ackedMessagesBefore" field if the given value is not nil.
func (*SnapshotUpdateOne) SetNillableExpiresAt ¶ added in v0.13.52
func (suo *SnapshotUpdateOne) SetNillableExpiresAt(t *time.Time) *SnapshotUpdateOne
SetNillableExpiresAt sets the "expiresAt" field if the given value is not nil.
func (*SnapshotUpdateOne) SetNillableTopicID ¶ added in v0.13.52
func (suo *SnapshotUpdateOne) SetNillableTopicID(u *uuid.UUID) *SnapshotUpdateOne
SetNillableTopicID sets the "topicID" field if the given value is not nil.
func (*SnapshotUpdateOne) SetTopic ¶ added in v0.13.52
func (suo *SnapshotUpdateOne) SetTopic(t *Topic) *SnapshotUpdateOne
SetTopic sets the "topic" edge to the Topic entity.
func (*SnapshotUpdateOne) SetTopicID ¶ added in v0.13.52
func (suo *SnapshotUpdateOne) SetTopicID(u uuid.UUID) *SnapshotUpdateOne
SetTopicID sets the "topicID" field.
func (*SnapshotUpdateOne) Where ¶ added in v0.13.52
func (suo *SnapshotUpdateOne) Where(ps ...predicate.Snapshot) *SnapshotUpdateOne
Where appends a list predicates to the SnapshotUpdate builder.
type SnapshotUpsert ¶ added in v0.13.52
SnapshotUpsert is the "OnConflict" setter.
func (*SnapshotUpsert) ClearAckedMessageIDs ¶ added in v0.13.52
func (u *SnapshotUpsert) ClearAckedMessageIDs() *SnapshotUpsert
ClearAckedMessageIDs clears the value of the "ackedMessageIDs" field.
func (*SnapshotUpsert) ClearLabels ¶ added in v0.13.52
func (u *SnapshotUpsert) ClearLabels() *SnapshotUpsert
ClearLabels clears the value of the "labels" field.
func (*SnapshotUpsert) SetAckedMessageIDs ¶ added in v0.13.52
func (u *SnapshotUpsert) SetAckedMessageIDs(v []uuid.UUID) *SnapshotUpsert
SetAckedMessageIDs sets the "ackedMessageIDs" field.
func (*SnapshotUpsert) SetAckedMessagesBefore ¶ added in v0.13.52
func (u *SnapshotUpsert) SetAckedMessagesBefore(v time.Time) *SnapshotUpsert
SetAckedMessagesBefore sets the "ackedMessagesBefore" field.
func (*SnapshotUpsert) SetExpiresAt ¶ added in v0.13.52
func (u *SnapshotUpsert) SetExpiresAt(v time.Time) *SnapshotUpsert
SetExpiresAt sets the "expiresAt" field.
func (*SnapshotUpsert) SetLabels ¶ added in v0.13.52
func (u *SnapshotUpsert) SetLabels(v map[string]string) *SnapshotUpsert
SetLabels sets the "labels" field.
func (*SnapshotUpsert) SetTopicID ¶ added in v0.13.52
func (u *SnapshotUpsert) SetTopicID(v uuid.UUID) *SnapshotUpsert
SetTopicID sets the "topicID" field.
func (*SnapshotUpsert) UpdateAckedMessageIDs ¶ added in v0.13.52
func (u *SnapshotUpsert) UpdateAckedMessageIDs() *SnapshotUpsert
UpdateAckedMessageIDs sets the "ackedMessageIDs" field to the value that was provided on create.
func (*SnapshotUpsert) UpdateAckedMessagesBefore ¶ added in v0.13.52
func (u *SnapshotUpsert) UpdateAckedMessagesBefore() *SnapshotUpsert
UpdateAckedMessagesBefore sets the "ackedMessagesBefore" field to the value that was provided on create.
func (*SnapshotUpsert) UpdateExpiresAt ¶ added in v0.13.52
func (u *SnapshotUpsert) UpdateExpiresAt() *SnapshotUpsert
UpdateExpiresAt sets the "expiresAt" field to the value that was provided on create.
func (*SnapshotUpsert) UpdateLabels ¶ added in v0.13.52
func (u *SnapshotUpsert) UpdateLabels() *SnapshotUpsert
UpdateLabels sets the "labels" field to the value that was provided on create.
func (*SnapshotUpsert) UpdateTopicID ¶ added in v0.13.52
func (u *SnapshotUpsert) UpdateTopicID() *SnapshotUpsert
UpdateTopicID sets the "topicID" field to the value that was provided on create.
type SnapshotUpsertBulk ¶ added in v0.13.52
type SnapshotUpsertBulk struct {
// contains filtered or unexported fields
}
SnapshotUpsertBulk is the builder for "upsert"-ing a bulk of Snapshot nodes.
func (*SnapshotUpsertBulk) ClearAckedMessageIDs ¶ added in v0.13.52
func (u *SnapshotUpsertBulk) ClearAckedMessageIDs() *SnapshotUpsertBulk
ClearAckedMessageIDs clears the value of the "ackedMessageIDs" field.
func (*SnapshotUpsertBulk) ClearLabels ¶ added in v0.13.52
func (u *SnapshotUpsertBulk) ClearLabels() *SnapshotUpsertBulk
ClearLabels clears the value of the "labels" field.
func (*SnapshotUpsertBulk) DoNothing ¶ added in v0.13.52
func (u *SnapshotUpsertBulk) DoNothing() *SnapshotUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*SnapshotUpsertBulk) Exec ¶ added in v0.13.52
func (u *SnapshotUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*SnapshotUpsertBulk) ExecX ¶ added in v0.13.52
func (u *SnapshotUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SnapshotUpsertBulk) Ignore ¶ added in v0.13.52
func (u *SnapshotUpsertBulk) Ignore() *SnapshotUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Snapshot.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*SnapshotUpsertBulk) SetAckedMessageIDs ¶ added in v0.13.52
func (u *SnapshotUpsertBulk) SetAckedMessageIDs(v []uuid.UUID) *SnapshotUpsertBulk
SetAckedMessageIDs sets the "ackedMessageIDs" field.
func (*SnapshotUpsertBulk) SetAckedMessagesBefore ¶ added in v0.13.52
func (u *SnapshotUpsertBulk) SetAckedMessagesBefore(v time.Time) *SnapshotUpsertBulk
SetAckedMessagesBefore sets the "ackedMessagesBefore" field.
func (*SnapshotUpsertBulk) SetExpiresAt ¶ added in v0.13.52
func (u *SnapshotUpsertBulk) SetExpiresAt(v time.Time) *SnapshotUpsertBulk
SetExpiresAt sets the "expiresAt" field.
func (*SnapshotUpsertBulk) SetLabels ¶ added in v0.13.52
func (u *SnapshotUpsertBulk) SetLabels(v map[string]string) *SnapshotUpsertBulk
SetLabels sets the "labels" field.
func (*SnapshotUpsertBulk) SetTopicID ¶ added in v0.13.52
func (u *SnapshotUpsertBulk) SetTopicID(v uuid.UUID) *SnapshotUpsertBulk
SetTopicID sets the "topicID" field.
func (*SnapshotUpsertBulk) Update ¶ added in v0.13.52
func (u *SnapshotUpsertBulk) Update(set func(*SnapshotUpsert)) *SnapshotUpsertBulk
Update allows overriding fields `UPDATE` values. See the SnapshotCreateBulk.OnConflict documentation for more info.
func (*SnapshotUpsertBulk) UpdateAckedMessageIDs ¶ added in v0.13.52
func (u *SnapshotUpsertBulk) UpdateAckedMessageIDs() *SnapshotUpsertBulk
UpdateAckedMessageIDs sets the "ackedMessageIDs" field to the value that was provided on create.
func (*SnapshotUpsertBulk) UpdateAckedMessagesBefore ¶ added in v0.13.52
func (u *SnapshotUpsertBulk) UpdateAckedMessagesBefore() *SnapshotUpsertBulk
UpdateAckedMessagesBefore sets the "ackedMessagesBefore" field to the value that was provided on create.
func (*SnapshotUpsertBulk) UpdateExpiresAt ¶ added in v0.13.52
func (u *SnapshotUpsertBulk) UpdateExpiresAt() *SnapshotUpsertBulk
UpdateExpiresAt sets the "expiresAt" field to the value that was provided on create.
func (*SnapshotUpsertBulk) UpdateLabels ¶ added in v0.13.52
func (u *SnapshotUpsertBulk) UpdateLabels() *SnapshotUpsertBulk
UpdateLabels sets the "labels" field to the value that was provided on create.
func (*SnapshotUpsertBulk) UpdateNewValues ¶ added in v0.13.52
func (u *SnapshotUpsertBulk) UpdateNewValues() *SnapshotUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.Snapshot.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(snapshot.FieldID) }), ). Exec(ctx)
func (*SnapshotUpsertBulk) UpdateTopicID ¶ added in v0.13.52
func (u *SnapshotUpsertBulk) UpdateTopicID() *SnapshotUpsertBulk
UpdateTopicID sets the "topicID" field to the value that was provided on create.
type SnapshotUpsertOne ¶ added in v0.13.52
type SnapshotUpsertOne struct {
// contains filtered or unexported fields
}
SnapshotUpsertOne is the builder for "upsert"-ing
one Snapshot node.
func (*SnapshotUpsertOne) ClearAckedMessageIDs ¶ added in v0.13.52
func (u *SnapshotUpsertOne) ClearAckedMessageIDs() *SnapshotUpsertOne
ClearAckedMessageIDs clears the value of the "ackedMessageIDs" field.
func (*SnapshotUpsertOne) ClearLabels ¶ added in v0.13.52
func (u *SnapshotUpsertOne) ClearLabels() *SnapshotUpsertOne
ClearLabels clears the value of the "labels" field.
func (*SnapshotUpsertOne) DoNothing ¶ added in v0.13.52
func (u *SnapshotUpsertOne) DoNothing() *SnapshotUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*SnapshotUpsertOne) Exec ¶ added in v0.13.52
func (u *SnapshotUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*SnapshotUpsertOne) ExecX ¶ added in v0.13.52
func (u *SnapshotUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SnapshotUpsertOne) ID ¶ added in v0.13.52
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*SnapshotUpsertOne) IDX ¶ added in v0.13.52
func (u *SnapshotUpsertOne) IDX(ctx context.Context) uuid.UUID
IDX is like ID, but panics if an error occurs.
func (*SnapshotUpsertOne) Ignore ¶ added in v0.13.52
func (u *SnapshotUpsertOne) Ignore() *SnapshotUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Snapshot.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*SnapshotUpsertOne) SetAckedMessageIDs ¶ added in v0.13.52
func (u *SnapshotUpsertOne) SetAckedMessageIDs(v []uuid.UUID) *SnapshotUpsertOne
SetAckedMessageIDs sets the "ackedMessageIDs" field.
func (*SnapshotUpsertOne) SetAckedMessagesBefore ¶ added in v0.13.52
func (u *SnapshotUpsertOne) SetAckedMessagesBefore(v time.Time) *SnapshotUpsertOne
SetAckedMessagesBefore sets the "ackedMessagesBefore" field.
func (*SnapshotUpsertOne) SetExpiresAt ¶ added in v0.13.52
func (u *SnapshotUpsertOne) SetExpiresAt(v time.Time) *SnapshotUpsertOne
SetExpiresAt sets the "expiresAt" field.
func (*SnapshotUpsertOne) SetLabels ¶ added in v0.13.52
func (u *SnapshotUpsertOne) SetLabels(v map[string]string) *SnapshotUpsertOne
SetLabels sets the "labels" field.
func (*SnapshotUpsertOne) SetTopicID ¶ added in v0.13.52
func (u *SnapshotUpsertOne) SetTopicID(v uuid.UUID) *SnapshotUpsertOne
SetTopicID sets the "topicID" field.
func (*SnapshotUpsertOne) Update ¶ added in v0.13.52
func (u *SnapshotUpsertOne) Update(set func(*SnapshotUpsert)) *SnapshotUpsertOne
Update allows overriding fields `UPDATE` values. See the SnapshotCreate.OnConflict documentation for more info.
func (*SnapshotUpsertOne) UpdateAckedMessageIDs ¶ added in v0.13.52
func (u *SnapshotUpsertOne) UpdateAckedMessageIDs() *SnapshotUpsertOne
UpdateAckedMessageIDs sets the "ackedMessageIDs" field to the value that was provided on create.
func (*SnapshotUpsertOne) UpdateAckedMessagesBefore ¶ added in v0.13.52
func (u *SnapshotUpsertOne) UpdateAckedMessagesBefore() *SnapshotUpsertOne
UpdateAckedMessagesBefore sets the "ackedMessagesBefore" field to the value that was provided on create.
func (*SnapshotUpsertOne) UpdateExpiresAt ¶ added in v0.13.52
func (u *SnapshotUpsertOne) UpdateExpiresAt() *SnapshotUpsertOne
UpdateExpiresAt sets the "expiresAt" field to the value that was provided on create.
func (*SnapshotUpsertOne) UpdateLabels ¶ added in v0.13.52
func (u *SnapshotUpsertOne) UpdateLabels() *SnapshotUpsertOne
UpdateLabels sets the "labels" field to the value that was provided on create.
func (*SnapshotUpsertOne) UpdateNewValues ¶ added in v0.13.52
func (u *SnapshotUpsertOne) UpdateNewValues() *SnapshotUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:
client.Snapshot.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(snapshot.FieldID) }), ). Exec(ctx)
func (*SnapshotUpsertOne) UpdateTopicID ¶ added in v0.13.52
func (u *SnapshotUpsertOne) UpdateTopicID() *SnapshotUpsertOne
UpdateTopicID sets the "topicID" field to the value that was provided on create.
type Snapshots ¶ added in v0.13.52
type Snapshots []*Snapshot
Snapshots is a parsable slice of Snapshot.
type Subscription ¶ added in v0.13.52
type Subscription struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // TopicID holds the value of the "topicID" field. TopicID uuid.UUID `json:"topicID,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // CreatedAt holds the value of the "createdAt" field. CreatedAt time.Time `json:"createdAt,omitempty"` // ExpiresAt holds the value of the "expiresAt" field. ExpiresAt time.Time `json:"expiresAt,omitempty"` // Live holds the value of the "live" field. Live *bool `json:"live,omitempty"` // DeletedAt holds the value of the "deletedAt" field. DeletedAt *time.Time `json:"deletedAt,omitempty"` // TTL holds the value of the "ttl" field. TTL sqltypes.Interval `json:"ttl,omitempty"` // MessageTTL holds the value of the "messageTTL" field. MessageTTL sqltypes.Interval `json:"messageTTL,omitempty"` // OrderedDelivery holds the value of the "orderedDelivery" field. OrderedDelivery bool `json:"orderedDelivery,omitempty"` // Labels holds the value of the "labels" field. Labels map[string]string `json:"labels,omitempty"` // MinBackoff holds the value of the "minBackoff" field. MinBackoff *sqltypes.Interval `json:"minBackoff,omitempty"` // MaxBackoff holds the value of the "maxBackoff" field. MaxBackoff *sqltypes.Interval `json:"maxBackoff,omitempty"` // PushEndpoint holds the value of the "pushEndpoint" field. PushEndpoint *string `json:"pushEndpoint,omitempty"` // MessageFilter holds the value of the "messageFilter" field. MessageFilter *string `json:"messageFilter,omitempty"` // MaxDeliveryAttempts holds the value of the "maxDeliveryAttempts" field. MaxDeliveryAttempts *int32 `json:"maxDeliveryAttempts,omitempty"` // DeadLetterTopicID holds the value of the "deadLetterTopicID" field. DeadLetterTopicID *uuid.UUID `json:"deadLetterTopicID,omitempty"` // DeliveryDelay holds the value of the "deliveryDelay" field. DeliveryDelay sqltypes.Interval `json:"deliveryDelay,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the SubscriptionQuery when eager-loading is set. Edges SubscriptionEdges `json:"-"` // contains filtered or unexported fields }
Subscription is the model entity for the Subscription schema.
func (*Subscription) HasFullDeadLetterConfig ¶ added in v0.13.52
func (s *Subscription) HasFullDeadLetterConfig() bool
func (*Subscription) QueryDeadLetterTopic ¶ added in v0.13.52
func (s *Subscription) QueryDeadLetterTopic() *TopicQuery
QueryDeadLetterTopic queries the "deadLetterTopic" edge of the Subscription entity.
func (*Subscription) QueryDeliveries ¶ added in v0.13.52
func (s *Subscription) QueryDeliveries() *DeliveryQuery
QueryDeliveries queries the "deliveries" edge of the Subscription entity.
func (*Subscription) QueryTopic ¶ added in v0.13.52
func (s *Subscription) QueryTopic() *TopicQuery
QueryTopic queries the "topic" edge of the Subscription entity.
func (*Subscription) String ¶ added in v0.13.52
func (s *Subscription) String() string
String implements the fmt.Stringer.
func (*Subscription) Unwrap ¶ added in v0.13.52
func (s *Subscription) Unwrap() *Subscription
Unwrap unwraps the Subscription entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Subscription) Update ¶ added in v0.13.52
func (s *Subscription) Update() *SubscriptionUpdateOne
Update returns a builder for updating this Subscription. Note that you need to call Subscription.Unwrap() before calling this method if this Subscription was returned from a transaction, and the transaction was committed or rolled back.
type SubscriptionClient ¶ added in v0.13.52
type SubscriptionClient struct {
// contains filtered or unexported fields
}
SubscriptionClient is a client for the Subscription schema.
func NewSubscriptionClient ¶ added in v0.13.52
func NewSubscriptionClient(c config) *SubscriptionClient
NewSubscriptionClient returns a client for the Subscription from the given config.
func (*SubscriptionClient) Create ¶ added in v0.13.52
func (c *SubscriptionClient) Create() *SubscriptionCreate
Create returns a builder for creating a Subscription entity.
func (*SubscriptionClient) CreateBulk ¶ added in v0.13.52
func (c *SubscriptionClient) CreateBulk(builders ...*SubscriptionCreate) *SubscriptionCreateBulk
CreateBulk returns a builder for creating a bulk of Subscription entities.
func (*SubscriptionClient) Delete ¶ added in v0.13.52
func (c *SubscriptionClient) Delete() *SubscriptionDelete
Delete returns a delete builder for Subscription.
func (*SubscriptionClient) DeleteOne ¶ added in v0.13.52
func (c *SubscriptionClient) DeleteOne(s *Subscription) *SubscriptionDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*SubscriptionClient) DeleteOneID ¶ added in v0.13.52
func (c *SubscriptionClient) DeleteOneID(id uuid.UUID) *SubscriptionDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*SubscriptionClient) Get ¶ added in v0.13.52
func (c *SubscriptionClient) Get(ctx context.Context, id uuid.UUID) (*Subscription, error)
Get returns a Subscription entity by its id.
func (*SubscriptionClient) GetX ¶ added in v0.13.52
func (c *SubscriptionClient) GetX(ctx context.Context, id uuid.UUID) *Subscription
GetX is like Get, but panics if an error occurs.
func (*SubscriptionClient) Hooks ¶ added in v0.13.52
func (c *SubscriptionClient) Hooks() []Hook
Hooks returns the client hooks.
func (*SubscriptionClient) Intercept ¶ added in v0.13.52
func (c *SubscriptionClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `subscription.Intercept(f(g(h())))`.
func (*SubscriptionClient) Interceptors ¶ added in v0.13.52
func (c *SubscriptionClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*SubscriptionClient) MapCreateBulk ¶ added in v0.13.52
func (c *SubscriptionClient) MapCreateBulk(slice any, setFunc func(*SubscriptionCreate, int)) *SubscriptionCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*SubscriptionClient) Query ¶ added in v0.13.52
func (c *SubscriptionClient) Query() *SubscriptionQuery
Query returns a query builder for Subscription.
func (*SubscriptionClient) QueryDeadLetterTopic ¶ added in v0.13.52
func (c *SubscriptionClient) QueryDeadLetterTopic(s *Subscription) *TopicQuery
QueryDeadLetterTopic queries the deadLetterTopic edge of a Subscription.
func (*SubscriptionClient) QueryDeliveries ¶ added in v0.13.52
func (c *SubscriptionClient) QueryDeliveries(s *Subscription) *DeliveryQuery
QueryDeliveries queries the deliveries edge of a Subscription.
func (*SubscriptionClient) QueryTopic ¶ added in v0.13.52
func (c *SubscriptionClient) QueryTopic(s *Subscription) *TopicQuery
QueryTopic queries the topic edge of a Subscription.
func (*SubscriptionClient) Update ¶ added in v0.13.52
func (c *SubscriptionClient) Update() *SubscriptionUpdate
Update returns an update builder for Subscription.
func (*SubscriptionClient) UpdateOne ¶ added in v0.13.52
func (c *SubscriptionClient) UpdateOne(s *Subscription) *SubscriptionUpdateOne
UpdateOne returns an update builder for the given entity.
func (*SubscriptionClient) UpdateOneID ¶ added in v0.13.52
func (c *SubscriptionClient) UpdateOneID(id uuid.UUID) *SubscriptionUpdateOne
UpdateOneID returns an update builder for the given id.
func (*SubscriptionClient) Use ¶ added in v0.13.52
func (c *SubscriptionClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `subscription.Hooks(f(g(h())))`.
type SubscriptionCreate ¶ added in v0.13.52
type SubscriptionCreate struct {
// contains filtered or unexported fields
}
SubscriptionCreate is the builder for creating a Subscription entity.
func (*SubscriptionCreate) AddDeliveries ¶ added in v0.13.52
func (sc *SubscriptionCreate) AddDeliveries(d ...*Delivery) *SubscriptionCreate
AddDeliveries adds the "deliveries" edges to the Delivery entity.
func (*SubscriptionCreate) AddDeliveryIDs ¶ added in v0.13.52
func (sc *SubscriptionCreate) AddDeliveryIDs(ids ...uuid.UUID) *SubscriptionCreate
AddDeliveryIDs adds the "deliveries" edge to the Delivery entity by IDs.
func (*SubscriptionCreate) Exec ¶ added in v0.13.52
func (sc *SubscriptionCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*SubscriptionCreate) ExecX ¶ added in v0.13.52
func (sc *SubscriptionCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SubscriptionCreate) Mutation ¶ added in v0.13.52
func (sc *SubscriptionCreate) Mutation() *SubscriptionMutation
Mutation returns the SubscriptionMutation object of the builder.
func (*SubscriptionCreate) OnConflict ¶ added in v0.13.52
func (sc *SubscriptionCreate) OnConflict(opts ...sql.ConflictOption) *SubscriptionUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Subscription.Create(). SetTopicID(v). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.SubscriptionUpsert) { SetTopicID(v+v). }). Exec(ctx)
func (*SubscriptionCreate) OnConflictColumns ¶ added in v0.13.52
func (sc *SubscriptionCreate) OnConflictColumns(columns ...string) *SubscriptionUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Subscription.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*SubscriptionCreate) Save ¶ added in v0.13.52
func (sc *SubscriptionCreate) Save(ctx context.Context) (*Subscription, error)
Save creates the Subscription in the database.
func (*SubscriptionCreate) SaveX ¶ added in v0.13.52
func (sc *SubscriptionCreate) SaveX(ctx context.Context) *Subscription
SaveX calls Save and panics if Save returns an error.
func (*SubscriptionCreate) SetCreatedAt ¶ added in v0.13.52
func (sc *SubscriptionCreate) SetCreatedAt(t time.Time) *SubscriptionCreate
SetCreatedAt sets the "createdAt" field.
func (*SubscriptionCreate) SetDeadLetterTopic ¶ added in v0.13.52
func (sc *SubscriptionCreate) SetDeadLetterTopic(t *Topic) *SubscriptionCreate
SetDeadLetterTopic sets the "deadLetterTopic" edge to the Topic entity.
func (*SubscriptionCreate) SetDeadLetterTopicID ¶ added in v0.13.52
func (sc *SubscriptionCreate) SetDeadLetterTopicID(u uuid.UUID) *SubscriptionCreate
SetDeadLetterTopicID sets the "deadLetterTopicID" field.
func (*SubscriptionCreate) SetDeletedAt ¶ added in v0.13.52
func (sc *SubscriptionCreate) SetDeletedAt(t time.Time) *SubscriptionCreate
SetDeletedAt sets the "deletedAt" field.
func (*SubscriptionCreate) SetDeliveryDelay ¶ added in v0.13.52
func (sc *SubscriptionCreate) SetDeliveryDelay(s sqltypes.Interval) *SubscriptionCreate
SetDeliveryDelay sets the "deliveryDelay" field.
func (*SubscriptionCreate) SetExpiresAt ¶ added in v0.13.52
func (sc *SubscriptionCreate) SetExpiresAt(t time.Time) *SubscriptionCreate
SetExpiresAt sets the "expiresAt" field.
func (*SubscriptionCreate) SetID ¶ added in v0.13.52
func (sc *SubscriptionCreate) SetID(u uuid.UUID) *SubscriptionCreate
SetID sets the "id" field.
func (*SubscriptionCreate) SetLabels ¶ added in v0.13.52
func (sc *SubscriptionCreate) SetLabels(m map[string]string) *SubscriptionCreate
SetLabels sets the "labels" field.
func (*SubscriptionCreate) SetLive ¶ added in v0.13.52
func (sc *SubscriptionCreate) SetLive(b bool) *SubscriptionCreate
SetLive sets the "live" field.
func (*SubscriptionCreate) SetMaxBackoff ¶ added in v0.13.52
func (sc *SubscriptionCreate) SetMaxBackoff(s *sqltypes.Interval) *SubscriptionCreate
SetMaxBackoff sets the "maxBackoff" field.
func (*SubscriptionCreate) SetMaxDeliveryAttempts ¶ added in v0.13.52
func (sc *SubscriptionCreate) SetMaxDeliveryAttempts(i int32) *SubscriptionCreate
SetMaxDeliveryAttempts sets the "maxDeliveryAttempts" field.
func (*SubscriptionCreate) SetMessageFilter ¶ added in v0.13.52
func (sc *SubscriptionCreate) SetMessageFilter(s string) *SubscriptionCreate
SetMessageFilter sets the "messageFilter" field.
func (*SubscriptionCreate) SetMessageTTL ¶ added in v0.13.52
func (sc *SubscriptionCreate) SetMessageTTL(s sqltypes.Interval) *SubscriptionCreate
SetMessageTTL sets the "messageTTL" field.
func (*SubscriptionCreate) SetMinBackoff ¶ added in v0.13.52
func (sc *SubscriptionCreate) SetMinBackoff(s *sqltypes.Interval) *SubscriptionCreate
SetMinBackoff sets the "minBackoff" field.
func (*SubscriptionCreate) SetName ¶ added in v0.13.52
func (sc *SubscriptionCreate) SetName(s string) *SubscriptionCreate
SetName sets the "name" field.
func (*SubscriptionCreate) SetNillableCreatedAt ¶ added in v0.13.52
func (sc *SubscriptionCreate) SetNillableCreatedAt(t *time.Time) *SubscriptionCreate
SetNillableCreatedAt sets the "createdAt" field if the given value is not nil.
func (*SubscriptionCreate) SetNillableDeadLetterTopicID ¶ added in v0.13.52
func (sc *SubscriptionCreate) SetNillableDeadLetterTopicID(u *uuid.UUID) *SubscriptionCreate
SetNillableDeadLetterTopicID sets the "deadLetterTopicID" field if the given value is not nil.
func (*SubscriptionCreate) SetNillableDeletedAt ¶ added in v0.13.52
func (sc *SubscriptionCreate) SetNillableDeletedAt(t *time.Time) *SubscriptionCreate
SetNillableDeletedAt sets the "deletedAt" field if the given value is not nil.
func (*SubscriptionCreate) SetNillableDeliveryDelay ¶ added in v0.13.52
func (sc *SubscriptionCreate) SetNillableDeliveryDelay(s *sqltypes.Interval) *SubscriptionCreate
SetNillableDeliveryDelay sets the "deliveryDelay" field if the given value is not nil.
func (*SubscriptionCreate) SetNillableID ¶ added in v0.13.52
func (sc *SubscriptionCreate) SetNillableID(u *uuid.UUID) *SubscriptionCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*SubscriptionCreate) SetNillableLive ¶ added in v0.13.52
func (sc *SubscriptionCreate) SetNillableLive(b *bool) *SubscriptionCreate
SetNillableLive sets the "live" field if the given value is not nil.
func (*SubscriptionCreate) SetNillableMaxDeliveryAttempts ¶ added in v0.13.52
func (sc *SubscriptionCreate) SetNillableMaxDeliveryAttempts(i *int32) *SubscriptionCreate
SetNillableMaxDeliveryAttempts sets the "maxDeliveryAttempts" field if the given value is not nil.
func (*SubscriptionCreate) SetNillableMessageFilter ¶ added in v0.13.52
func (sc *SubscriptionCreate) SetNillableMessageFilter(s *string) *SubscriptionCreate
SetNillableMessageFilter sets the "messageFilter" field if the given value is not nil.
func (*SubscriptionCreate) SetNillableOrderedDelivery ¶ added in v0.13.52
func (sc *SubscriptionCreate) SetNillableOrderedDelivery(b *bool) *SubscriptionCreate
SetNillableOrderedDelivery sets the "orderedDelivery" field if the given value is not nil.
func (*SubscriptionCreate) SetNillablePushEndpoint ¶ added in v0.13.52
func (sc *SubscriptionCreate) SetNillablePushEndpoint(s *string) *SubscriptionCreate
SetNillablePushEndpoint sets the "pushEndpoint" field if the given value is not nil.
func (*SubscriptionCreate) SetOrderedDelivery ¶ added in v0.13.52
func (sc *SubscriptionCreate) SetOrderedDelivery(b bool) *SubscriptionCreate
SetOrderedDelivery sets the "orderedDelivery" field.
func (*SubscriptionCreate) SetPushEndpoint ¶ added in v0.13.52
func (sc *SubscriptionCreate) SetPushEndpoint(s string) *SubscriptionCreate
SetPushEndpoint sets the "pushEndpoint" field.
func (*SubscriptionCreate) SetTTL ¶ added in v0.13.52
func (sc *SubscriptionCreate) SetTTL(s sqltypes.Interval) *SubscriptionCreate
SetTTL sets the "ttl" field.
func (*SubscriptionCreate) SetTopic ¶ added in v0.13.52
func (sc *SubscriptionCreate) SetTopic(t *Topic) *SubscriptionCreate
SetTopic sets the "topic" edge to the Topic entity.
func (*SubscriptionCreate) SetTopicID ¶ added in v0.13.52
func (sc *SubscriptionCreate) SetTopicID(u uuid.UUID) *SubscriptionCreate
SetTopicID sets the "topicID" field.
type SubscriptionCreateBulk ¶ added in v0.13.52
type SubscriptionCreateBulk struct {
// contains filtered or unexported fields
}
SubscriptionCreateBulk is the builder for creating many Subscription entities in bulk.
func (*SubscriptionCreateBulk) Exec ¶ added in v0.13.52
func (scb *SubscriptionCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*SubscriptionCreateBulk) ExecX ¶ added in v0.13.52
func (scb *SubscriptionCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SubscriptionCreateBulk) OnConflict ¶ added in v0.13.52
func (scb *SubscriptionCreateBulk) OnConflict(opts ...sql.ConflictOption) *SubscriptionUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Subscription.CreateBulk(builders...). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.SubscriptionUpsert) { SetTopicID(v+v). }). Exec(ctx)
func (*SubscriptionCreateBulk) OnConflictColumns ¶ added in v0.13.52
func (scb *SubscriptionCreateBulk) OnConflictColumns(columns ...string) *SubscriptionUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Subscription.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*SubscriptionCreateBulk) Save ¶ added in v0.13.52
func (scb *SubscriptionCreateBulk) Save(ctx context.Context) ([]*Subscription, error)
Save creates the Subscription entities in the database.
func (*SubscriptionCreateBulk) SaveX ¶ added in v0.13.52
func (scb *SubscriptionCreateBulk) SaveX(ctx context.Context) []*Subscription
SaveX is like Save, but panics if an error occurs.
type SubscriptionDelete ¶ added in v0.13.52
type SubscriptionDelete struct {
// contains filtered or unexported fields
}
SubscriptionDelete is the builder for deleting a Subscription entity.
func (*SubscriptionDelete) Exec ¶ added in v0.13.52
func (sd *SubscriptionDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*SubscriptionDelete) ExecX ¶ added in v0.13.52
func (sd *SubscriptionDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*SubscriptionDelete) Where ¶ added in v0.13.52
func (sd *SubscriptionDelete) Where(ps ...predicate.Subscription) *SubscriptionDelete
Where appends a list predicates to the SubscriptionDelete builder.
type SubscriptionDeleteOne ¶ added in v0.13.52
type SubscriptionDeleteOne struct {
// contains filtered or unexported fields
}
SubscriptionDeleteOne is the builder for deleting a single Subscription entity.
func (*SubscriptionDeleteOne) Exec ¶ added in v0.13.52
func (sdo *SubscriptionDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*SubscriptionDeleteOne) ExecX ¶ added in v0.13.52
func (sdo *SubscriptionDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SubscriptionDeleteOne) Where ¶ added in v0.13.52
func (sdo *SubscriptionDeleteOne) Where(ps ...predicate.Subscription) *SubscriptionDeleteOne
Where appends a list predicates to the SubscriptionDelete builder.
type SubscriptionEdges ¶ added in v0.13.52
type SubscriptionEdges struct { // Topic holds the value of the topic edge. Topic *Topic `json:"topic,omitempty"` // Deliveries holds the value of the deliveries edge. Deliveries []*Delivery `json:"deliveries,omitempty"` // DeadLetterTopic holds the value of the deadLetterTopic edge. DeadLetterTopic *Topic `json:"deadLetterTopic,omitempty"` // contains filtered or unexported fields }
SubscriptionEdges holds the relations/edges for other nodes in the graph.
func (SubscriptionEdges) DeadLetterTopicOrErr ¶ added in v0.13.52
func (e SubscriptionEdges) DeadLetterTopicOrErr() (*Topic, error)
DeadLetterTopicOrErr returns the DeadLetterTopic value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (SubscriptionEdges) DeliveriesOrErr ¶ added in v0.13.52
func (e SubscriptionEdges) DeliveriesOrErr() ([]*Delivery, error)
DeliveriesOrErr returns the Deliveries value or an error if the edge was not loaded in eager-loading.
func (SubscriptionEdges) TopicOrErr ¶ added in v0.13.52
func (e SubscriptionEdges) TopicOrErr() (*Topic, error)
TopicOrErr returns the Topic value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type SubscriptionFilter ¶ added in v0.13.52
type SubscriptionFilter struct {
// contains filtered or unexported fields
}
SubscriptionFilter provides a generic filtering capability at runtime for SubscriptionQuery.
func (*SubscriptionFilter) Where ¶ added in v0.13.52
func (f *SubscriptionFilter) Where(p entql.P)
Where applies the entql predicate on the query filter.
func (*SubscriptionFilter) WhereCreatedAt ¶ added in v0.13.52
func (f *SubscriptionFilter) WhereCreatedAt(p entql.TimeP)
WhereCreatedAt applies the entql time.Time predicate on the createdAt field.
func (*SubscriptionFilter) WhereDeadLetterTopicID ¶ added in v0.13.52
func (f *SubscriptionFilter) WhereDeadLetterTopicID(p entql.ValueP)
WhereDeadLetterTopicID applies the entql [16]byte predicate on the deadLetterTopicID field.
func (*SubscriptionFilter) WhereDeletedAt ¶ added in v0.13.52
func (f *SubscriptionFilter) WhereDeletedAt(p entql.TimeP)
WhereDeletedAt applies the entql time.Time predicate on the deletedAt field.
func (*SubscriptionFilter) WhereDeliveryDelay ¶ added in v0.13.52
func (f *SubscriptionFilter) WhereDeliveryDelay(p entql.OtherP)
WhereDeliveryDelay applies the entql other predicate on the deliveryDelay field.
func (*SubscriptionFilter) WhereExpiresAt ¶ added in v0.13.52
func (f *SubscriptionFilter) WhereExpiresAt(p entql.TimeP)
WhereExpiresAt applies the entql time.Time predicate on the expiresAt field.
func (*SubscriptionFilter) WhereHasDeadLetterTopic ¶ added in v0.13.52
func (f *SubscriptionFilter) WhereHasDeadLetterTopic()
WhereHasDeadLetterTopic applies a predicate to check if query has an edge deadLetterTopic.
func (*SubscriptionFilter) WhereHasDeadLetterTopicWith ¶ added in v0.13.52
func (f *SubscriptionFilter) WhereHasDeadLetterTopicWith(preds ...predicate.Topic)
WhereHasDeadLetterTopicWith applies a predicate to check if query has an edge deadLetterTopic with a given conditions (other predicates).
func (*SubscriptionFilter) WhereHasDeliveries ¶ added in v0.13.52
func (f *SubscriptionFilter) WhereHasDeliveries()
WhereHasDeliveries applies a predicate to check if query has an edge deliveries.
func (*SubscriptionFilter) WhereHasDeliveriesWith ¶ added in v0.13.52
func (f *SubscriptionFilter) WhereHasDeliveriesWith(preds ...predicate.Delivery)
WhereHasDeliveriesWith applies a predicate to check if query has an edge deliveries with a given conditions (other predicates).
func (*SubscriptionFilter) WhereHasTopic ¶ added in v0.13.52
func (f *SubscriptionFilter) WhereHasTopic()
WhereHasTopic applies a predicate to check if query has an edge topic.
func (*SubscriptionFilter) WhereHasTopicWith ¶ added in v0.13.52
func (f *SubscriptionFilter) WhereHasTopicWith(preds ...predicate.Topic)
WhereHasTopicWith applies a predicate to check if query has an edge topic with a given conditions (other predicates).
func (*SubscriptionFilter) WhereID ¶ added in v0.13.52
func (f *SubscriptionFilter) WhereID(p entql.ValueP)
WhereID applies the entql [16]byte predicate on the id field.
func (*SubscriptionFilter) WhereLabels ¶ added in v0.13.52
func (f *SubscriptionFilter) WhereLabels(p entql.BytesP)
WhereLabels applies the entql json.RawMessage predicate on the labels field.
func (*SubscriptionFilter) WhereLive ¶ added in v0.13.52
func (f *SubscriptionFilter) WhereLive(p entql.BoolP)
WhereLive applies the entql bool predicate on the live field.
func (*SubscriptionFilter) WhereMaxBackoff ¶ added in v0.13.52
func (f *SubscriptionFilter) WhereMaxBackoff(p entql.StringP)
WhereMaxBackoff applies the entql string predicate on the maxBackoff field.
func (*SubscriptionFilter) WhereMaxDeliveryAttempts ¶ added in v0.13.52
func (f *SubscriptionFilter) WhereMaxDeliveryAttempts(p entql.Int32P)
WhereMaxDeliveryAttempts applies the entql int32 predicate on the maxDeliveryAttempts field.
func (*SubscriptionFilter) WhereMessageFilter ¶ added in v0.13.52
func (f *SubscriptionFilter) WhereMessageFilter(p entql.StringP)
WhereMessageFilter applies the entql string predicate on the messageFilter field.
func (*SubscriptionFilter) WhereMessageTTL ¶ added in v0.13.52
func (f *SubscriptionFilter) WhereMessageTTL(p entql.StringP)
WhereMessageTTL applies the entql string predicate on the messageTTL field.
func (*SubscriptionFilter) WhereMinBackoff ¶ added in v0.13.52
func (f *SubscriptionFilter) WhereMinBackoff(p entql.StringP)
WhereMinBackoff applies the entql string predicate on the minBackoff field.
func (*SubscriptionFilter) WhereName ¶ added in v0.13.52
func (f *SubscriptionFilter) WhereName(p entql.StringP)
WhereName applies the entql string predicate on the name field.
func (*SubscriptionFilter) WhereOrderedDelivery ¶ added in v0.13.52
func (f *SubscriptionFilter) WhereOrderedDelivery(p entql.BoolP)
WhereOrderedDelivery applies the entql bool predicate on the orderedDelivery field.
func (*SubscriptionFilter) WherePushEndpoint ¶ added in v0.13.52
func (f *SubscriptionFilter) WherePushEndpoint(p entql.StringP)
WherePushEndpoint applies the entql string predicate on the pushEndpoint field.
func (*SubscriptionFilter) WhereTTL ¶ added in v0.13.52
func (f *SubscriptionFilter) WhereTTL(p entql.StringP)
WhereTTL applies the entql string predicate on the ttl field.
func (*SubscriptionFilter) WhereTopicID ¶ added in v0.13.52
func (f *SubscriptionFilter) WhereTopicID(p entql.ValueP)
WhereTopicID applies the entql [16]byte predicate on the topicID field.
type SubscriptionGroupBy ¶ added in v0.13.52
type SubscriptionGroupBy struct {
// contains filtered or unexported fields
}
SubscriptionGroupBy is the group-by builder for Subscription entities.
func (*SubscriptionGroupBy) Aggregate ¶ added in v0.13.52
func (sgb *SubscriptionGroupBy) Aggregate(fns ...AggregateFunc) *SubscriptionGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*SubscriptionGroupBy) Bool ¶ added in v0.13.52
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SubscriptionGroupBy) BoolX ¶ added in v0.13.52
BoolX is like Bool, but panics if an error occurs.
func (*SubscriptionGroupBy) Bools ¶ added in v0.13.52
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SubscriptionGroupBy) BoolsX ¶ added in v0.13.52
BoolsX is like Bools, but panics if an error occurs.
func (*SubscriptionGroupBy) Float64 ¶ added in v0.13.52
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SubscriptionGroupBy) Float64X ¶ added in v0.13.52
Float64X is like Float64, but panics if an error occurs.
func (*SubscriptionGroupBy) Float64s ¶ added in v0.13.52
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SubscriptionGroupBy) Float64sX ¶ added in v0.13.52
Float64sX is like Float64s, but panics if an error occurs.
func (*SubscriptionGroupBy) Int ¶ added in v0.13.52
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SubscriptionGroupBy) IntX ¶ added in v0.13.52
IntX is like Int, but panics if an error occurs.
func (*SubscriptionGroupBy) Ints ¶ added in v0.13.52
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*SubscriptionGroupBy) IntsX ¶ added in v0.13.52
IntsX is like Ints, but panics if an error occurs.
func (*SubscriptionGroupBy) Scan ¶ added in v0.13.52
func (sgb *SubscriptionGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*SubscriptionGroupBy) ScanX ¶ added in v0.13.52
ScanX is like Scan, but panics if an error occurs.
func (*SubscriptionGroupBy) String ¶ added in v0.13.52
String returns a single string from a selector. It is only allowed when selecting one field.
func (*SubscriptionGroupBy) StringX ¶ added in v0.13.52
StringX is like String, but panics if an error occurs.
type SubscriptionMutation ¶ added in v0.13.52
type SubscriptionMutation struct {
// contains filtered or unexported fields
}
SubscriptionMutation represents an operation that mutates the Subscription nodes in the graph.
func (*SubscriptionMutation) AddDeliveryIDs ¶ added in v0.13.52
func (m *SubscriptionMutation) AddDeliveryIDs(ids ...uuid.UUID)
AddDeliveryIDs adds the "deliveries" edge to the Delivery entity by ids.
func (*SubscriptionMutation) AddField ¶ added in v0.13.52
func (m *SubscriptionMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*SubscriptionMutation) AddMaxDeliveryAttempts ¶ added in v0.13.52
func (m *SubscriptionMutation) AddMaxDeliveryAttempts(i int32)
AddMaxDeliveryAttempts adds i to the "maxDeliveryAttempts" field.
func (*SubscriptionMutation) AddedEdges ¶ added in v0.13.52
func (m *SubscriptionMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*SubscriptionMutation) AddedField ¶ added in v0.13.52
func (m *SubscriptionMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*SubscriptionMutation) AddedFields ¶ added in v0.13.52
func (m *SubscriptionMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*SubscriptionMutation) AddedIDs ¶ added in v0.13.52
func (m *SubscriptionMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*SubscriptionMutation) AddedMaxDeliveryAttempts ¶ added in v0.13.52
func (m *SubscriptionMutation) AddedMaxDeliveryAttempts() (r int32, exists bool)
AddedMaxDeliveryAttempts returns the value that was added to the "maxDeliveryAttempts" field in this mutation.
func (*SubscriptionMutation) ClearDeadLetterTopic ¶ added in v0.13.52
func (m *SubscriptionMutation) ClearDeadLetterTopic()
ClearDeadLetterTopic clears the "deadLetterTopic" edge to the Topic entity.
func (*SubscriptionMutation) ClearDeadLetterTopicID ¶ added in v0.13.52
func (m *SubscriptionMutation) ClearDeadLetterTopicID()
ClearDeadLetterTopicID clears the value of the "deadLetterTopicID" field.
func (*SubscriptionMutation) ClearDeletedAt ¶ added in v0.13.52
func (m *SubscriptionMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deletedAt" field.
func (*SubscriptionMutation) ClearDeliveries ¶ added in v0.13.52
func (m *SubscriptionMutation) ClearDeliveries()
ClearDeliveries clears the "deliveries" edge to the Delivery entity.
func (*SubscriptionMutation) ClearEdge ¶ added in v0.13.52
func (m *SubscriptionMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*SubscriptionMutation) ClearField ¶ added in v0.13.52
func (m *SubscriptionMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*SubscriptionMutation) ClearLabels ¶ added in v0.13.52
func (m *SubscriptionMutation) ClearLabels()
ClearLabels clears the value of the "labels" field.
func (*SubscriptionMutation) ClearLive ¶ added in v0.13.52
func (m *SubscriptionMutation) ClearLive()
ClearLive clears the value of the "live" field.
func (*SubscriptionMutation) ClearMaxBackoff ¶ added in v0.13.52
func (m *SubscriptionMutation) ClearMaxBackoff()
ClearMaxBackoff clears the value of the "maxBackoff" field.
func (*SubscriptionMutation) ClearMaxDeliveryAttempts ¶ added in v0.13.52
func (m *SubscriptionMutation) ClearMaxDeliveryAttempts()
ClearMaxDeliveryAttempts clears the value of the "maxDeliveryAttempts" field.
func (*SubscriptionMutation) ClearMessageFilter ¶ added in v0.13.52
func (m *SubscriptionMutation) ClearMessageFilter()
ClearMessageFilter clears the value of the "messageFilter" field.
func (*SubscriptionMutation) ClearMinBackoff ¶ added in v0.13.52
func (m *SubscriptionMutation) ClearMinBackoff()
ClearMinBackoff clears the value of the "minBackoff" field.
func (*SubscriptionMutation) ClearOrderedDelivery ¶ added in v0.13.52
func (m *SubscriptionMutation) ClearOrderedDelivery()
ClearOrderedDelivery clears the value of the "orderedDelivery" field.
func (*SubscriptionMutation) ClearPushEndpoint ¶ added in v0.13.52
func (m *SubscriptionMutation) ClearPushEndpoint()
ClearPushEndpoint clears the value of the "pushEndpoint" field.
func (*SubscriptionMutation) ClearTopic ¶ added in v0.13.52
func (m *SubscriptionMutation) ClearTopic()
ClearTopic clears the "topic" edge to the Topic entity.
func (*SubscriptionMutation) ClearedEdges ¶ added in v0.13.52
func (m *SubscriptionMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*SubscriptionMutation) ClearedFields ¶ added in v0.13.52
func (m *SubscriptionMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (SubscriptionMutation) Client ¶ added in v0.13.52
func (m SubscriptionMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*SubscriptionMutation) CreatedAt ¶ added in v0.13.52
func (m *SubscriptionMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "createdAt" field in the mutation.
func (*SubscriptionMutation) DeadLetterTopicCleared ¶ added in v0.13.52
func (m *SubscriptionMutation) DeadLetterTopicCleared() bool
DeadLetterTopicCleared reports if the "deadLetterTopic" edge to the Topic entity was cleared.
func (*SubscriptionMutation) DeadLetterTopicID ¶ added in v0.13.52
func (m *SubscriptionMutation) DeadLetterTopicID() (r uuid.UUID, exists bool)
DeadLetterTopicID returns the value of the "deadLetterTopicID" field in the mutation.
func (*SubscriptionMutation) DeadLetterTopicIDCleared ¶ added in v0.13.52
func (m *SubscriptionMutation) DeadLetterTopicIDCleared() bool
DeadLetterTopicIDCleared returns if the "deadLetterTopicID" field was cleared in this mutation.
func (*SubscriptionMutation) DeadLetterTopicIDs ¶ added in v0.13.52
func (m *SubscriptionMutation) DeadLetterTopicIDs() (ids []uuid.UUID)
DeadLetterTopicIDs returns the "deadLetterTopic" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use DeadLetterTopicID instead. It exists only for internal usage by the builders.
func (*SubscriptionMutation) DeletedAt ¶ added in v0.13.52
func (m *SubscriptionMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deletedAt" field in the mutation.
func (*SubscriptionMutation) DeletedAtCleared ¶ added in v0.13.52
func (m *SubscriptionMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deletedAt" field was cleared in this mutation.
func (*SubscriptionMutation) DeliveriesCleared ¶ added in v0.13.52
func (m *SubscriptionMutation) DeliveriesCleared() bool
DeliveriesCleared reports if the "deliveries" edge to the Delivery entity was cleared.
func (*SubscriptionMutation) DeliveriesIDs ¶ added in v0.13.52
func (m *SubscriptionMutation) DeliveriesIDs() (ids []uuid.UUID)
DeliveriesIDs returns the "deliveries" edge IDs in the mutation.
func (*SubscriptionMutation) DeliveryDelay ¶ added in v0.13.52
func (m *SubscriptionMutation) DeliveryDelay() (r sqltypes.Interval, exists bool)
DeliveryDelay returns the value of the "deliveryDelay" field in the mutation.
func (*SubscriptionMutation) EdgeCleared ¶ added in v0.13.52
func (m *SubscriptionMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*SubscriptionMutation) ExpiresAt ¶ added in v0.13.52
func (m *SubscriptionMutation) ExpiresAt() (r time.Time, exists bool)
ExpiresAt returns the value of the "expiresAt" field in the mutation.
func (*SubscriptionMutation) Field ¶ added in v0.13.52
func (m *SubscriptionMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*SubscriptionMutation) FieldCleared ¶ added in v0.13.52
func (m *SubscriptionMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*SubscriptionMutation) Fields ¶ added in v0.13.52
func (m *SubscriptionMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*SubscriptionMutation) Filter ¶ added in v0.13.52
func (m *SubscriptionMutation) Filter() *SubscriptionFilter
Filter returns an entql.Where implementation to apply filters on the SubscriptionMutation builder.
func (*SubscriptionMutation) ID ¶ added in v0.13.52
func (m *SubscriptionMutation) ID() (id uuid.UUID, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*SubscriptionMutation) IDs ¶ added in v0.13.52
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*SubscriptionMutation) Labels ¶ added in v0.13.52
func (m *SubscriptionMutation) Labels() (r map[string]string, exists bool)
Labels returns the value of the "labels" field in the mutation.
func (*SubscriptionMutation) LabelsCleared ¶ added in v0.13.52
func (m *SubscriptionMutation) LabelsCleared() bool
LabelsCleared returns if the "labels" field was cleared in this mutation.
func (*SubscriptionMutation) Live ¶ added in v0.13.52
func (m *SubscriptionMutation) Live() (r bool, exists bool)
Live returns the value of the "live" field in the mutation.
func (*SubscriptionMutation) LiveCleared ¶ added in v0.13.52
func (m *SubscriptionMutation) LiveCleared() bool
LiveCleared returns if the "live" field was cleared in this mutation.
func (*SubscriptionMutation) MaxBackoff ¶ added in v0.13.52
func (m *SubscriptionMutation) MaxBackoff() (r *sqltypes.Interval, exists bool)
MaxBackoff returns the value of the "maxBackoff" field in the mutation.
func (*SubscriptionMutation) MaxBackoffCleared ¶ added in v0.13.52
func (m *SubscriptionMutation) MaxBackoffCleared() bool
MaxBackoffCleared returns if the "maxBackoff" field was cleared in this mutation.
func (*SubscriptionMutation) MaxDeliveryAttempts ¶ added in v0.13.52
func (m *SubscriptionMutation) MaxDeliveryAttempts() (r int32, exists bool)
MaxDeliveryAttempts returns the value of the "maxDeliveryAttempts" field in the mutation.
func (*SubscriptionMutation) MaxDeliveryAttemptsCleared ¶ added in v0.13.52
func (m *SubscriptionMutation) MaxDeliveryAttemptsCleared() bool
MaxDeliveryAttemptsCleared returns if the "maxDeliveryAttempts" field was cleared in this mutation.
func (*SubscriptionMutation) MessageFilter ¶ added in v0.13.52
func (m *SubscriptionMutation) MessageFilter() (r string, exists bool)
MessageFilter returns the value of the "messageFilter" field in the mutation.
func (*SubscriptionMutation) MessageFilterCleared ¶ added in v0.13.52
func (m *SubscriptionMutation) MessageFilterCleared() bool
MessageFilterCleared returns if the "messageFilter" field was cleared in this mutation.
func (*SubscriptionMutation) MessageTTL ¶ added in v0.13.52
func (m *SubscriptionMutation) MessageTTL() (r sqltypes.Interval, exists bool)
MessageTTL returns the value of the "messageTTL" field in the mutation.
func (*SubscriptionMutation) MinBackoff ¶ added in v0.13.52
func (m *SubscriptionMutation) MinBackoff() (r *sqltypes.Interval, exists bool)
MinBackoff returns the value of the "minBackoff" field in the mutation.
func (*SubscriptionMutation) MinBackoffCleared ¶ added in v0.13.52
func (m *SubscriptionMutation) MinBackoffCleared() bool
MinBackoffCleared returns if the "minBackoff" field was cleared in this mutation.
func (*SubscriptionMutation) Name ¶ added in v0.13.52
func (m *SubscriptionMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*SubscriptionMutation) OldCreatedAt ¶ added in v0.13.52
OldCreatedAt returns the old "createdAt" field's value of the Subscription entity. If the Subscription object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SubscriptionMutation) OldDeadLetterTopicID ¶ added in v0.13.52
OldDeadLetterTopicID returns the old "deadLetterTopicID" field's value of the Subscription entity. If the Subscription object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SubscriptionMutation) OldDeletedAt ¶ added in v0.13.52
OldDeletedAt returns the old "deletedAt" field's value of the Subscription entity. If the Subscription object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SubscriptionMutation) OldDeliveryDelay ¶ added in v0.13.52
func (m *SubscriptionMutation) OldDeliveryDelay(ctx context.Context) (v sqltypes.Interval, err error)
OldDeliveryDelay returns the old "deliveryDelay" field's value of the Subscription entity. If the Subscription object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SubscriptionMutation) OldExpiresAt ¶ added in v0.13.52
OldExpiresAt returns the old "expiresAt" field's value of the Subscription entity. If the Subscription object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SubscriptionMutation) OldField ¶ added in v0.13.52
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*SubscriptionMutation) OldLabels ¶ added in v0.13.52
OldLabels returns the old "labels" field's value of the Subscription entity. If the Subscription object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SubscriptionMutation) OldLive ¶ added in v0.13.52
func (m *SubscriptionMutation) OldLive(ctx context.Context) (v *bool, err error)
OldLive returns the old "live" field's value of the Subscription entity. If the Subscription object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SubscriptionMutation) OldMaxBackoff ¶ added in v0.13.52
OldMaxBackoff returns the old "maxBackoff" field's value of the Subscription entity. If the Subscription object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SubscriptionMutation) OldMaxDeliveryAttempts ¶ added in v0.13.52
func (m *SubscriptionMutation) OldMaxDeliveryAttempts(ctx context.Context) (v *int32, err error)
OldMaxDeliveryAttempts returns the old "maxDeliveryAttempts" field's value of the Subscription entity. If the Subscription object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SubscriptionMutation) OldMessageFilter ¶ added in v0.13.52
func (m *SubscriptionMutation) OldMessageFilter(ctx context.Context) (v *string, err error)
OldMessageFilter returns the old "messageFilter" field's value of the Subscription entity. If the Subscription object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SubscriptionMutation) OldMessageTTL ¶ added in v0.13.52
OldMessageTTL returns the old "messageTTL" field's value of the Subscription entity. If the Subscription object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SubscriptionMutation) OldMinBackoff ¶ added in v0.13.52
OldMinBackoff returns the old "minBackoff" field's value of the Subscription entity. If the Subscription object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SubscriptionMutation) OldName ¶ added in v0.13.52
func (m *SubscriptionMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the Subscription entity. If the Subscription object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SubscriptionMutation) OldOrderedDelivery ¶ added in v0.13.52
func (m *SubscriptionMutation) OldOrderedDelivery(ctx context.Context) (v bool, err error)
OldOrderedDelivery returns the old "orderedDelivery" field's value of the Subscription entity. If the Subscription object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SubscriptionMutation) OldPushEndpoint ¶ added in v0.13.52
func (m *SubscriptionMutation) OldPushEndpoint(ctx context.Context) (v *string, err error)
OldPushEndpoint returns the old "pushEndpoint" field's value of the Subscription entity. If the Subscription object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SubscriptionMutation) OldTTL ¶ added in v0.13.52
OldTTL returns the old "ttl" field's value of the Subscription entity. If the Subscription object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SubscriptionMutation) OldTopicID ¶ added in v0.13.52
OldTopicID returns the old "topicID" field's value of the Subscription entity. If the Subscription object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SubscriptionMutation) Op ¶ added in v0.13.52
func (m *SubscriptionMutation) Op() Op
Op returns the operation name.
func (*SubscriptionMutation) OrderedDelivery ¶ added in v0.13.52
func (m *SubscriptionMutation) OrderedDelivery() (r bool, exists bool)
OrderedDelivery returns the value of the "orderedDelivery" field in the mutation.
func (*SubscriptionMutation) OrderedDeliveryCleared ¶ added in v0.13.52
func (m *SubscriptionMutation) OrderedDeliveryCleared() bool
OrderedDeliveryCleared returns if the "orderedDelivery" field was cleared in this mutation.
func (*SubscriptionMutation) PushEndpoint ¶ added in v0.13.52
func (m *SubscriptionMutation) PushEndpoint() (r string, exists bool)
PushEndpoint returns the value of the "pushEndpoint" field in the mutation.
func (*SubscriptionMutation) PushEndpointCleared ¶ added in v0.13.52
func (m *SubscriptionMutation) PushEndpointCleared() bool
PushEndpointCleared returns if the "pushEndpoint" field was cleared in this mutation.
func (*SubscriptionMutation) RemoveDeliveryIDs ¶ added in v0.13.52
func (m *SubscriptionMutation) RemoveDeliveryIDs(ids ...uuid.UUID)
RemoveDeliveryIDs removes the "deliveries" edge to the Delivery entity by IDs.
func (*SubscriptionMutation) RemovedDeliveriesIDs ¶ added in v0.13.52
func (m *SubscriptionMutation) RemovedDeliveriesIDs() (ids []uuid.UUID)
RemovedDeliveries returns the removed IDs of the "deliveries" edge to the Delivery entity.
func (*SubscriptionMutation) RemovedEdges ¶ added in v0.13.52
func (m *SubscriptionMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*SubscriptionMutation) RemovedIDs ¶ added in v0.13.52
func (m *SubscriptionMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*SubscriptionMutation) ResetCreatedAt ¶ added in v0.13.52
func (m *SubscriptionMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "createdAt" field.
func (*SubscriptionMutation) ResetDeadLetterTopic ¶ added in v0.13.52
func (m *SubscriptionMutation) ResetDeadLetterTopic()
ResetDeadLetterTopic resets all changes to the "deadLetterTopic" edge.
func (*SubscriptionMutation) ResetDeadLetterTopicID ¶ added in v0.13.52
func (m *SubscriptionMutation) ResetDeadLetterTopicID()
ResetDeadLetterTopicID resets all changes to the "deadLetterTopicID" field.
func (*SubscriptionMutation) ResetDeletedAt ¶ added in v0.13.52
func (m *SubscriptionMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deletedAt" field.
func (*SubscriptionMutation) ResetDeliveries ¶ added in v0.13.52
func (m *SubscriptionMutation) ResetDeliveries()
ResetDeliveries resets all changes to the "deliveries" edge.
func (*SubscriptionMutation) ResetDeliveryDelay ¶ added in v0.13.52
func (m *SubscriptionMutation) ResetDeliveryDelay()
ResetDeliveryDelay resets all changes to the "deliveryDelay" field.
func (*SubscriptionMutation) ResetEdge ¶ added in v0.13.52
func (m *SubscriptionMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*SubscriptionMutation) ResetExpiresAt ¶ added in v0.13.52
func (m *SubscriptionMutation) ResetExpiresAt()
ResetExpiresAt resets all changes to the "expiresAt" field.
func (*SubscriptionMutation) ResetField ¶ added in v0.13.52
func (m *SubscriptionMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*SubscriptionMutation) ResetLabels ¶ added in v0.13.52
func (m *SubscriptionMutation) ResetLabels()
ResetLabels resets all changes to the "labels" field.
func (*SubscriptionMutation) ResetLive ¶ added in v0.13.52
func (m *SubscriptionMutation) ResetLive()
ResetLive resets all changes to the "live" field.
func (*SubscriptionMutation) ResetMaxBackoff ¶ added in v0.13.52
func (m *SubscriptionMutation) ResetMaxBackoff()
ResetMaxBackoff resets all changes to the "maxBackoff" field.
func (*SubscriptionMutation) ResetMaxDeliveryAttempts ¶ added in v0.13.52
func (m *SubscriptionMutation) ResetMaxDeliveryAttempts()
ResetMaxDeliveryAttempts resets all changes to the "maxDeliveryAttempts" field.
func (*SubscriptionMutation) ResetMessageFilter ¶ added in v0.13.52
func (m *SubscriptionMutation) ResetMessageFilter()
ResetMessageFilter resets all changes to the "messageFilter" field.
func (*SubscriptionMutation) ResetMessageTTL ¶ added in v0.13.52
func (m *SubscriptionMutation) ResetMessageTTL()
ResetMessageTTL resets all changes to the "messageTTL" field.
func (*SubscriptionMutation) ResetMinBackoff ¶ added in v0.13.52
func (m *SubscriptionMutation) ResetMinBackoff()
ResetMinBackoff resets all changes to the "minBackoff" field.
func (*SubscriptionMutation) ResetName ¶ added in v0.13.52
func (m *SubscriptionMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*SubscriptionMutation) ResetOrderedDelivery ¶ added in v0.13.52
func (m *SubscriptionMutation) ResetOrderedDelivery()
ResetOrderedDelivery resets all changes to the "orderedDelivery" field.
func (*SubscriptionMutation) ResetPushEndpoint ¶ added in v0.13.52
func (m *SubscriptionMutation) ResetPushEndpoint()
ResetPushEndpoint resets all changes to the "pushEndpoint" field.
func (*SubscriptionMutation) ResetTTL ¶ added in v0.13.52
func (m *SubscriptionMutation) ResetTTL()
ResetTTL resets all changes to the "ttl" field.
func (*SubscriptionMutation) ResetTopic ¶ added in v0.13.52
func (m *SubscriptionMutation) ResetTopic()
ResetTopic resets all changes to the "topic" edge.
func (*SubscriptionMutation) ResetTopicID ¶ added in v0.13.52
func (m *SubscriptionMutation) ResetTopicID()
ResetTopicID resets all changes to the "topicID" field.
func (*SubscriptionMutation) SetCreatedAt ¶ added in v0.13.52
func (m *SubscriptionMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "createdAt" field.
func (*SubscriptionMutation) SetDeadLetterTopicID ¶ added in v0.13.52
func (m *SubscriptionMutation) SetDeadLetterTopicID(u uuid.UUID)
SetDeadLetterTopicID sets the "deadLetterTopicID" field.
func (*SubscriptionMutation) SetDeletedAt ¶ added in v0.13.52
func (m *SubscriptionMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deletedAt" field.
func (*SubscriptionMutation) SetDeliveryDelay ¶ added in v0.13.52
func (m *SubscriptionMutation) SetDeliveryDelay(s sqltypes.Interval)
SetDeliveryDelay sets the "deliveryDelay" field.
func (*SubscriptionMutation) SetExpiresAt ¶ added in v0.13.52
func (m *SubscriptionMutation) SetExpiresAt(t time.Time)
SetExpiresAt sets the "expiresAt" field.
func (*SubscriptionMutation) SetField ¶ added in v0.13.52
func (m *SubscriptionMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*SubscriptionMutation) SetID ¶ added in v0.13.52
func (m *SubscriptionMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Subscription entities.
func (*SubscriptionMutation) SetLabels ¶ added in v0.13.52
func (m *SubscriptionMutation) SetLabels(value map[string]string)
SetLabels sets the "labels" field.
func (*SubscriptionMutation) SetLive ¶ added in v0.13.52
func (m *SubscriptionMutation) SetLive(b bool)
SetLive sets the "live" field.
func (*SubscriptionMutation) SetMaxBackoff ¶ added in v0.13.52
func (m *SubscriptionMutation) SetMaxBackoff(s *sqltypes.Interval)
SetMaxBackoff sets the "maxBackoff" field.
func (*SubscriptionMutation) SetMaxDeliveryAttempts ¶ added in v0.13.52
func (m *SubscriptionMutation) SetMaxDeliveryAttempts(i int32)
SetMaxDeliveryAttempts sets the "maxDeliveryAttempts" field.
func (*SubscriptionMutation) SetMessageFilter ¶ added in v0.13.52
func (m *SubscriptionMutation) SetMessageFilter(s string)
SetMessageFilter sets the "messageFilter" field.
func (*SubscriptionMutation) SetMessageTTL ¶ added in v0.13.52
func (m *SubscriptionMutation) SetMessageTTL(s sqltypes.Interval)
SetMessageTTL sets the "messageTTL" field.
func (*SubscriptionMutation) SetMinBackoff ¶ added in v0.13.52
func (m *SubscriptionMutation) SetMinBackoff(s *sqltypes.Interval)
SetMinBackoff sets the "minBackoff" field.
func (*SubscriptionMutation) SetName ¶ added in v0.13.52
func (m *SubscriptionMutation) SetName(s string)
SetName sets the "name" field.
func (*SubscriptionMutation) SetOp ¶ added in v0.13.52
func (m *SubscriptionMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*SubscriptionMutation) SetOrderedDelivery ¶ added in v0.13.52
func (m *SubscriptionMutation) SetOrderedDelivery(b bool)
SetOrderedDelivery sets the "orderedDelivery" field.
func (*SubscriptionMutation) SetPushEndpoint ¶ added in v0.13.52
func (m *SubscriptionMutation) SetPushEndpoint(s string)
SetPushEndpoint sets the "pushEndpoint" field.
func (*SubscriptionMutation) SetTTL ¶ added in v0.13.52
func (m *SubscriptionMutation) SetTTL(s sqltypes.Interval)
SetTTL sets the "ttl" field.
func (*SubscriptionMutation) SetTopicID ¶ added in v0.13.52
func (m *SubscriptionMutation) SetTopicID(u uuid.UUID)
SetTopicID sets the "topicID" field.
func (*SubscriptionMutation) TTL ¶ added in v0.13.52
func (m *SubscriptionMutation) TTL() (r sqltypes.Interval, exists bool)
TTL returns the value of the "ttl" field in the mutation.
func (*SubscriptionMutation) TopicCleared ¶ added in v0.13.52
func (m *SubscriptionMutation) TopicCleared() bool
TopicCleared reports if the "topic" edge to the Topic entity was cleared.
func (*SubscriptionMutation) TopicID ¶ added in v0.13.52
func (m *SubscriptionMutation) TopicID() (r uuid.UUID, exists bool)
TopicID returns the value of the "topicID" field in the mutation.
func (*SubscriptionMutation) TopicIDs ¶ added in v0.13.52
func (m *SubscriptionMutation) TopicIDs() (ids []uuid.UUID)
TopicIDs returns the "topic" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use TopicID instead. It exists only for internal usage by the builders.
func (SubscriptionMutation) Tx ¶ added in v0.13.52
func (m SubscriptionMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*SubscriptionMutation) Type ¶ added in v0.13.52
func (m *SubscriptionMutation) Type() string
Type returns the node type of this mutation (Subscription).
func (*SubscriptionMutation) Where ¶ added in v0.13.52
func (m *SubscriptionMutation) Where(ps ...predicate.Subscription)
Where appends a list predicates to the SubscriptionMutation builder.
func (*SubscriptionMutation) WhereP ¶ added in v0.13.52
func (m *SubscriptionMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the SubscriptionMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type SubscriptionQuery ¶ added in v0.13.52
type SubscriptionQuery struct {
// contains filtered or unexported fields
}
SubscriptionQuery is the builder for querying Subscription entities.
func (*SubscriptionQuery) Aggregate ¶ added in v0.13.52
func (sq *SubscriptionQuery) Aggregate(fns ...AggregateFunc) *SubscriptionSelect
Aggregate returns a SubscriptionSelect configured with the given aggregations.
func (*SubscriptionQuery) All ¶ added in v0.13.52
func (sq *SubscriptionQuery) All(ctx context.Context) ([]*Subscription, error)
All executes the query and returns a list of Subscriptions.
func (*SubscriptionQuery) AllX ¶ added in v0.13.52
func (sq *SubscriptionQuery) AllX(ctx context.Context) []*Subscription
AllX is like All, but panics if an error occurs.
func (*SubscriptionQuery) Clone ¶ added in v0.13.52
func (sq *SubscriptionQuery) Clone() *SubscriptionQuery
Clone returns a duplicate of the SubscriptionQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*SubscriptionQuery) Count ¶ added in v0.13.52
func (sq *SubscriptionQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*SubscriptionQuery) CountX ¶ added in v0.13.52
func (sq *SubscriptionQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*SubscriptionQuery) Exist ¶ added in v0.13.52
func (sq *SubscriptionQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*SubscriptionQuery) ExistX ¶ added in v0.13.52
func (sq *SubscriptionQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*SubscriptionQuery) Filter ¶ added in v0.13.52
func (sq *SubscriptionQuery) Filter() *SubscriptionFilter
Filter returns a Filter implementation to apply filters on the SubscriptionQuery builder.
func (*SubscriptionQuery) First ¶ added in v0.13.52
func (sq *SubscriptionQuery) First(ctx context.Context) (*Subscription, error)
First returns the first Subscription entity from the query. Returns a *NotFoundError when no Subscription was found.
func (*SubscriptionQuery) FirstID ¶ added in v0.13.52
FirstID returns the first Subscription ID from the query. Returns a *NotFoundError when no Subscription ID was found.
func (*SubscriptionQuery) FirstIDX ¶ added in v0.13.52
func (sq *SubscriptionQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*SubscriptionQuery) FirstX ¶ added in v0.13.52
func (sq *SubscriptionQuery) FirstX(ctx context.Context) *Subscription
FirstX is like First, but panics if an error occurs.
func (*SubscriptionQuery) ForShare ¶ added in v0.13.52
func (sq *SubscriptionQuery) ForShare(opts ...sql.LockOption) *SubscriptionQuery
ForShare behaves similarly to ForUpdate, except that it acquires a shared mode lock on any rows that are read. Other sessions can read the rows, but cannot modify them until your transaction commits.
func (*SubscriptionQuery) ForUpdate ¶ added in v0.13.52
func (sq *SubscriptionQuery) ForUpdate(opts ...sql.LockOption) *SubscriptionQuery
ForUpdate locks the selected rows against concurrent updates, and prevent them from being updated, deleted or "selected ... for update" by other sessions, until the transaction is either committed or rolled-back.
func (*SubscriptionQuery) GroupBy ¶ added in v0.13.52
func (sq *SubscriptionQuery) GroupBy(field string, fields ...string) *SubscriptionGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { TopicID uuid.UUID `json:"topicID,omitempty"` Count int `json:"count,omitempty"` } client.Subscription.Query(). GroupBy(subscription.FieldTopicID). Aggregate(ent.Count()). Scan(ctx, &v)
func (*SubscriptionQuery) IDs ¶ added in v0.13.52
IDs executes the query and returns a list of Subscription IDs.
func (*SubscriptionQuery) IDsX ¶ added in v0.13.52
func (sq *SubscriptionQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*SubscriptionQuery) Limit ¶ added in v0.13.52
func (sq *SubscriptionQuery) Limit(limit int) *SubscriptionQuery
Limit the number of records to be returned by this query.
func (*SubscriptionQuery) Offset ¶ added in v0.13.52
func (sq *SubscriptionQuery) Offset(offset int) *SubscriptionQuery
Offset to start from.
func (*SubscriptionQuery) Only ¶ added in v0.13.52
func (sq *SubscriptionQuery) Only(ctx context.Context) (*Subscription, error)
Only returns a single Subscription entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Subscription entity is found. Returns a *NotFoundError when no Subscription entities are found.
func (*SubscriptionQuery) OnlyID ¶ added in v0.13.52
OnlyID is like Only, but returns the only Subscription ID in the query. Returns a *NotSingularError when more than one Subscription ID is found. Returns a *NotFoundError when no entities are found.
func (*SubscriptionQuery) OnlyIDX ¶ added in v0.13.52
func (sq *SubscriptionQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*SubscriptionQuery) OnlyX ¶ added in v0.13.52
func (sq *SubscriptionQuery) OnlyX(ctx context.Context) *Subscription
OnlyX is like Only, but panics if an error occurs.
func (*SubscriptionQuery) Order ¶ added in v0.13.52
func (sq *SubscriptionQuery) Order(o ...subscription.OrderOption) *SubscriptionQuery
Order specifies how the records should be ordered.
func (*SubscriptionQuery) QueryDeadLetterTopic ¶ added in v0.13.52
func (sq *SubscriptionQuery) QueryDeadLetterTopic() *TopicQuery
QueryDeadLetterTopic chains the current query on the "deadLetterTopic" edge.
func (*SubscriptionQuery) QueryDeliveries ¶ added in v0.13.52
func (sq *SubscriptionQuery) QueryDeliveries() *DeliveryQuery
QueryDeliveries chains the current query on the "deliveries" edge.
func (*SubscriptionQuery) QueryTopic ¶ added in v0.13.52
func (sq *SubscriptionQuery) QueryTopic() *TopicQuery
QueryTopic chains the current query on the "topic" edge.
func (*SubscriptionQuery) Select ¶ added in v0.13.52
func (sq *SubscriptionQuery) Select(fields ...string) *SubscriptionSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { TopicID uuid.UUID `json:"topicID,omitempty"` } client.Subscription.Query(). Select(subscription.FieldTopicID). Scan(ctx, &v)
func (*SubscriptionQuery) Unique ¶ added in v0.13.52
func (sq *SubscriptionQuery) Unique(unique bool) *SubscriptionQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*SubscriptionQuery) Where ¶ added in v0.13.52
func (sq *SubscriptionQuery) Where(ps ...predicate.Subscription) *SubscriptionQuery
Where adds a new predicate for the SubscriptionQuery builder.
func (*SubscriptionQuery) WithDeadLetterTopic ¶ added in v0.13.52
func (sq *SubscriptionQuery) WithDeadLetterTopic(opts ...func(*TopicQuery)) *SubscriptionQuery
WithDeadLetterTopic tells the query-builder to eager-load the nodes that are connected to the "deadLetterTopic" edge. The optional arguments are used to configure the query builder of the edge.
func (*SubscriptionQuery) WithDeliveries ¶ added in v0.13.52
func (sq *SubscriptionQuery) WithDeliveries(opts ...func(*DeliveryQuery)) *SubscriptionQuery
WithDeliveries tells the query-builder to eager-load the nodes that are connected to the "deliveries" edge. The optional arguments are used to configure the query builder of the edge.
func (*SubscriptionQuery) WithTopic ¶ added in v0.13.52
func (sq *SubscriptionQuery) WithTopic(opts ...func(*TopicQuery)) *SubscriptionQuery
WithTopic tells the query-builder to eager-load the nodes that are connected to the "topic" edge. The optional arguments are used to configure the query builder of the edge.
type SubscriptionSelect ¶ added in v0.13.52
type SubscriptionSelect struct { *SubscriptionQuery // contains filtered or unexported fields }
SubscriptionSelect is the builder for selecting fields of Subscription entities.
func (*SubscriptionSelect) Aggregate ¶ added in v0.13.52
func (ss *SubscriptionSelect) Aggregate(fns ...AggregateFunc) *SubscriptionSelect
Aggregate adds the given aggregation functions to the selector query.
func (*SubscriptionSelect) Bool ¶ added in v0.13.52
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SubscriptionSelect) BoolX ¶ added in v0.13.52
BoolX is like Bool, but panics if an error occurs.
func (*SubscriptionSelect) Bools ¶ added in v0.13.52
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SubscriptionSelect) BoolsX ¶ added in v0.13.52
BoolsX is like Bools, but panics if an error occurs.
func (*SubscriptionSelect) Float64 ¶ added in v0.13.52
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SubscriptionSelect) Float64X ¶ added in v0.13.52
Float64X is like Float64, but panics if an error occurs.
func (*SubscriptionSelect) Float64s ¶ added in v0.13.52
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SubscriptionSelect) Float64sX ¶ added in v0.13.52
Float64sX is like Float64s, but panics if an error occurs.
func (*SubscriptionSelect) Int ¶ added in v0.13.52
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SubscriptionSelect) IntX ¶ added in v0.13.52
IntX is like Int, but panics if an error occurs.
func (*SubscriptionSelect) Ints ¶ added in v0.13.52
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*SubscriptionSelect) IntsX ¶ added in v0.13.52
IntsX is like Ints, but panics if an error occurs.
func (*SubscriptionSelect) Scan ¶ added in v0.13.52
func (ss *SubscriptionSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*SubscriptionSelect) ScanX ¶ added in v0.13.52
ScanX is like Scan, but panics if an error occurs.
func (*SubscriptionSelect) String ¶ added in v0.13.52
String returns a single string from a selector. It is only allowed when selecting one field.
func (*SubscriptionSelect) StringX ¶ added in v0.13.52
StringX is like String, but panics if an error occurs.
type SubscriptionUpdate ¶ added in v0.13.52
type SubscriptionUpdate struct {
// contains filtered or unexported fields
}
SubscriptionUpdate is the builder for updating Subscription entities.
func (*SubscriptionUpdate) AddDeliveries ¶ added in v0.13.52
func (su *SubscriptionUpdate) AddDeliveries(d ...*Delivery) *SubscriptionUpdate
AddDeliveries adds the "deliveries" edges to the Delivery entity.
func (*SubscriptionUpdate) AddDeliveryIDs ¶ added in v0.13.52
func (su *SubscriptionUpdate) AddDeliveryIDs(ids ...uuid.UUID) *SubscriptionUpdate
AddDeliveryIDs adds the "deliveries" edge to the Delivery entity by IDs.
func (*SubscriptionUpdate) AddMaxDeliveryAttempts ¶ added in v0.13.52
func (su *SubscriptionUpdate) AddMaxDeliveryAttempts(i int32) *SubscriptionUpdate
AddMaxDeliveryAttempts adds i to the "maxDeliveryAttempts" field.
func (*SubscriptionUpdate) ClearDeadLetterTopic ¶ added in v0.13.52
func (su *SubscriptionUpdate) ClearDeadLetterTopic() *SubscriptionUpdate
ClearDeadLetterTopic clears the "deadLetterTopic" edge to the Topic entity.
func (*SubscriptionUpdate) ClearDeadLetterTopicID ¶ added in v0.13.52
func (su *SubscriptionUpdate) ClearDeadLetterTopicID() *SubscriptionUpdate
ClearDeadLetterTopicID clears the value of the "deadLetterTopicID" field.
func (*SubscriptionUpdate) ClearDeletedAt ¶ added in v0.13.52
func (su *SubscriptionUpdate) ClearDeletedAt() *SubscriptionUpdate
ClearDeletedAt clears the value of the "deletedAt" field.
func (*SubscriptionUpdate) ClearDeliveries ¶ added in v0.13.52
func (su *SubscriptionUpdate) ClearDeliveries() *SubscriptionUpdate
ClearDeliveries clears all "deliveries" edges to the Delivery entity.
func (*SubscriptionUpdate) ClearLabels ¶ added in v0.13.52
func (su *SubscriptionUpdate) ClearLabels() *SubscriptionUpdate
ClearLabels clears the value of the "labels" field.
func (*SubscriptionUpdate) ClearLive ¶ added in v0.13.52
func (su *SubscriptionUpdate) ClearLive() *SubscriptionUpdate
ClearLive clears the value of the "live" field.
func (*SubscriptionUpdate) ClearMaxBackoff ¶ added in v0.13.52
func (su *SubscriptionUpdate) ClearMaxBackoff() *SubscriptionUpdate
ClearMaxBackoff clears the value of the "maxBackoff" field.
func (*SubscriptionUpdate) ClearMaxDeliveryAttempts ¶ added in v0.13.52
func (su *SubscriptionUpdate) ClearMaxDeliveryAttempts() *SubscriptionUpdate
ClearMaxDeliveryAttempts clears the value of the "maxDeliveryAttempts" field.
func (*SubscriptionUpdate) ClearMessageFilter ¶ added in v0.13.52
func (su *SubscriptionUpdate) ClearMessageFilter() *SubscriptionUpdate
ClearMessageFilter clears the value of the "messageFilter" field.
func (*SubscriptionUpdate) ClearMinBackoff ¶ added in v0.13.52
func (su *SubscriptionUpdate) ClearMinBackoff() *SubscriptionUpdate
ClearMinBackoff clears the value of the "minBackoff" field.
func (*SubscriptionUpdate) ClearOrderedDelivery ¶ added in v0.13.52
func (su *SubscriptionUpdate) ClearOrderedDelivery() *SubscriptionUpdate
ClearOrderedDelivery clears the value of the "orderedDelivery" field.
func (*SubscriptionUpdate) ClearPushEndpoint ¶ added in v0.13.52
func (su *SubscriptionUpdate) ClearPushEndpoint() *SubscriptionUpdate
ClearPushEndpoint clears the value of the "pushEndpoint" field.
func (*SubscriptionUpdate) ClearTopic ¶ added in v0.13.52
func (su *SubscriptionUpdate) ClearTopic() *SubscriptionUpdate
ClearTopic clears the "topic" edge to the Topic entity.
func (*SubscriptionUpdate) Exec ¶ added in v0.13.52
func (su *SubscriptionUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*SubscriptionUpdate) ExecX ¶ added in v0.13.52
func (su *SubscriptionUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SubscriptionUpdate) Mutation ¶ added in v0.13.52
func (su *SubscriptionUpdate) Mutation() *SubscriptionMutation
Mutation returns the SubscriptionMutation object of the builder.
func (*SubscriptionUpdate) RemoveDeliveries ¶ added in v0.13.52
func (su *SubscriptionUpdate) RemoveDeliveries(d ...*Delivery) *SubscriptionUpdate
RemoveDeliveries removes "deliveries" edges to Delivery entities.
func (*SubscriptionUpdate) RemoveDeliveryIDs ¶ added in v0.13.52
func (su *SubscriptionUpdate) RemoveDeliveryIDs(ids ...uuid.UUID) *SubscriptionUpdate
RemoveDeliveryIDs removes the "deliveries" edge to Delivery entities by IDs.
func (*SubscriptionUpdate) Save ¶ added in v0.13.52
func (su *SubscriptionUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*SubscriptionUpdate) SaveX ¶ added in v0.13.52
func (su *SubscriptionUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*SubscriptionUpdate) SetDeadLetterTopic ¶ added in v0.13.52
func (su *SubscriptionUpdate) SetDeadLetterTopic(t *Topic) *SubscriptionUpdate
SetDeadLetterTopic sets the "deadLetterTopic" edge to the Topic entity.
func (*SubscriptionUpdate) SetDeadLetterTopicID ¶ added in v0.13.52
func (su *SubscriptionUpdate) SetDeadLetterTopicID(u uuid.UUID) *SubscriptionUpdate
SetDeadLetterTopicID sets the "deadLetterTopicID" field.
func (*SubscriptionUpdate) SetDeletedAt ¶ added in v0.13.52
func (su *SubscriptionUpdate) SetDeletedAt(t time.Time) *SubscriptionUpdate
SetDeletedAt sets the "deletedAt" field.
func (*SubscriptionUpdate) SetDeliveryDelay ¶ added in v0.13.52
func (su *SubscriptionUpdate) SetDeliveryDelay(s sqltypes.Interval) *SubscriptionUpdate
SetDeliveryDelay sets the "deliveryDelay" field.
func (*SubscriptionUpdate) SetExpiresAt ¶ added in v0.13.52
func (su *SubscriptionUpdate) SetExpiresAt(t time.Time) *SubscriptionUpdate
SetExpiresAt sets the "expiresAt" field.
func (*SubscriptionUpdate) SetLabels ¶ added in v0.13.52
func (su *SubscriptionUpdate) SetLabels(m map[string]string) *SubscriptionUpdate
SetLabels sets the "labels" field.
func (*SubscriptionUpdate) SetLive ¶ added in v0.13.52
func (su *SubscriptionUpdate) SetLive(b bool) *SubscriptionUpdate
SetLive sets the "live" field.
func (*SubscriptionUpdate) SetMaxBackoff ¶ added in v0.13.52
func (su *SubscriptionUpdate) SetMaxBackoff(s *sqltypes.Interval) *SubscriptionUpdate
SetMaxBackoff sets the "maxBackoff" field.
func (*SubscriptionUpdate) SetMaxDeliveryAttempts ¶ added in v0.13.52
func (su *SubscriptionUpdate) SetMaxDeliveryAttempts(i int32) *SubscriptionUpdate
SetMaxDeliveryAttempts sets the "maxDeliveryAttempts" field.
func (*SubscriptionUpdate) SetMessageFilter ¶ added in v0.13.52
func (su *SubscriptionUpdate) SetMessageFilter(s string) *SubscriptionUpdate
SetMessageFilter sets the "messageFilter" field.
func (*SubscriptionUpdate) SetMessageTTL ¶ added in v0.13.52
func (su *SubscriptionUpdate) SetMessageTTL(s sqltypes.Interval) *SubscriptionUpdate
SetMessageTTL sets the "messageTTL" field.
func (*SubscriptionUpdate) SetMinBackoff ¶ added in v0.13.52
func (su *SubscriptionUpdate) SetMinBackoff(s *sqltypes.Interval) *SubscriptionUpdate
SetMinBackoff sets the "minBackoff" field.
func (*SubscriptionUpdate) SetNillableDeadLetterTopicID ¶ added in v0.13.52
func (su *SubscriptionUpdate) SetNillableDeadLetterTopicID(u *uuid.UUID) *SubscriptionUpdate
SetNillableDeadLetterTopicID sets the "deadLetterTopicID" field if the given value is not nil.
func (*SubscriptionUpdate) SetNillableDeletedAt ¶ added in v0.13.52
func (su *SubscriptionUpdate) SetNillableDeletedAt(t *time.Time) *SubscriptionUpdate
SetNillableDeletedAt sets the "deletedAt" field if the given value is not nil.
func (*SubscriptionUpdate) SetNillableDeliveryDelay ¶ added in v0.13.52
func (su *SubscriptionUpdate) SetNillableDeliveryDelay(s *sqltypes.Interval) *SubscriptionUpdate
SetNillableDeliveryDelay sets the "deliveryDelay" field if the given value is not nil.
func (*SubscriptionUpdate) SetNillableExpiresAt ¶ added in v0.13.52
func (su *SubscriptionUpdate) SetNillableExpiresAt(t *time.Time) *SubscriptionUpdate
SetNillableExpiresAt sets the "expiresAt" field if the given value is not nil.
func (*SubscriptionUpdate) SetNillableLive ¶ added in v0.13.52
func (su *SubscriptionUpdate) SetNillableLive(b *bool) *SubscriptionUpdate
SetNillableLive sets the "live" field if the given value is not nil.
func (*SubscriptionUpdate) SetNillableMaxDeliveryAttempts ¶ added in v0.13.52
func (su *SubscriptionUpdate) SetNillableMaxDeliveryAttempts(i *int32) *SubscriptionUpdate
SetNillableMaxDeliveryAttempts sets the "maxDeliveryAttempts" field if the given value is not nil.
func (*SubscriptionUpdate) SetNillableMessageFilter ¶ added in v0.13.52
func (su *SubscriptionUpdate) SetNillableMessageFilter(s *string) *SubscriptionUpdate
SetNillableMessageFilter sets the "messageFilter" field if the given value is not nil.
func (*SubscriptionUpdate) SetNillableMessageTTL ¶ added in v0.13.52
func (su *SubscriptionUpdate) SetNillableMessageTTL(s *sqltypes.Interval) *SubscriptionUpdate
SetNillableMessageTTL sets the "messageTTL" field if the given value is not nil.
func (*SubscriptionUpdate) SetNillableOrderedDelivery ¶ added in v0.13.52
func (su *SubscriptionUpdate) SetNillableOrderedDelivery(b *bool) *SubscriptionUpdate
SetNillableOrderedDelivery sets the "orderedDelivery" field if the given value is not nil.
func (*SubscriptionUpdate) SetNillablePushEndpoint ¶ added in v0.13.52
func (su *SubscriptionUpdate) SetNillablePushEndpoint(s *string) *SubscriptionUpdate
SetNillablePushEndpoint sets the "pushEndpoint" field if the given value is not nil.
func (*SubscriptionUpdate) SetNillableTTL ¶ added in v0.13.52
func (su *SubscriptionUpdate) SetNillableTTL(s *sqltypes.Interval) *SubscriptionUpdate
SetNillableTTL sets the "ttl" field if the given value is not nil.
func (*SubscriptionUpdate) SetNillableTopicID ¶ added in v0.13.52
func (su *SubscriptionUpdate) SetNillableTopicID(u *uuid.UUID) *SubscriptionUpdate
SetNillableTopicID sets the "topicID" field if the given value is not nil.
func (*SubscriptionUpdate) SetOrderedDelivery ¶ added in v0.13.52
func (su *SubscriptionUpdate) SetOrderedDelivery(b bool) *SubscriptionUpdate
SetOrderedDelivery sets the "orderedDelivery" field.
func (*SubscriptionUpdate) SetPushEndpoint ¶ added in v0.13.52
func (su *SubscriptionUpdate) SetPushEndpoint(s string) *SubscriptionUpdate
SetPushEndpoint sets the "pushEndpoint" field.
func (*SubscriptionUpdate) SetTTL ¶ added in v0.13.52
func (su *SubscriptionUpdate) SetTTL(s sqltypes.Interval) *SubscriptionUpdate
SetTTL sets the "ttl" field.
func (*SubscriptionUpdate) SetTopic ¶ added in v0.13.52
func (su *SubscriptionUpdate) SetTopic(t *Topic) *SubscriptionUpdate
SetTopic sets the "topic" edge to the Topic entity.
func (*SubscriptionUpdate) SetTopicID ¶ added in v0.13.52
func (su *SubscriptionUpdate) SetTopicID(u uuid.UUID) *SubscriptionUpdate
SetTopicID sets the "topicID" field.
func (*SubscriptionUpdate) Where ¶ added in v0.13.52
func (su *SubscriptionUpdate) Where(ps ...predicate.Subscription) *SubscriptionUpdate
Where appends a list predicates to the SubscriptionUpdate builder.
type SubscriptionUpdateOne ¶ added in v0.13.52
type SubscriptionUpdateOne struct {
// contains filtered or unexported fields
}
SubscriptionUpdateOne is the builder for updating a single Subscription entity.
func (*SubscriptionUpdateOne) AddDeliveries ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) AddDeliveries(d ...*Delivery) *SubscriptionUpdateOne
AddDeliveries adds the "deliveries" edges to the Delivery entity.
func (*SubscriptionUpdateOne) AddDeliveryIDs ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) AddDeliveryIDs(ids ...uuid.UUID) *SubscriptionUpdateOne
AddDeliveryIDs adds the "deliveries" edge to the Delivery entity by IDs.
func (*SubscriptionUpdateOne) AddMaxDeliveryAttempts ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) AddMaxDeliveryAttempts(i int32) *SubscriptionUpdateOne
AddMaxDeliveryAttempts adds i to the "maxDeliveryAttempts" field.
func (*SubscriptionUpdateOne) ClearDeadLetterTopic ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) ClearDeadLetterTopic() *SubscriptionUpdateOne
ClearDeadLetterTopic clears the "deadLetterTopic" edge to the Topic entity.
func (*SubscriptionUpdateOne) ClearDeadLetterTopicID ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) ClearDeadLetterTopicID() *SubscriptionUpdateOne
ClearDeadLetterTopicID clears the value of the "deadLetterTopicID" field.
func (*SubscriptionUpdateOne) ClearDeletedAt ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) ClearDeletedAt() *SubscriptionUpdateOne
ClearDeletedAt clears the value of the "deletedAt" field.
func (*SubscriptionUpdateOne) ClearDeliveries ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) ClearDeliveries() *SubscriptionUpdateOne
ClearDeliveries clears all "deliveries" edges to the Delivery entity.
func (*SubscriptionUpdateOne) ClearLabels ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) ClearLabels() *SubscriptionUpdateOne
ClearLabels clears the value of the "labels" field.
func (*SubscriptionUpdateOne) ClearLive ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) ClearLive() *SubscriptionUpdateOne
ClearLive clears the value of the "live" field.
func (*SubscriptionUpdateOne) ClearMaxBackoff ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) ClearMaxBackoff() *SubscriptionUpdateOne
ClearMaxBackoff clears the value of the "maxBackoff" field.
func (*SubscriptionUpdateOne) ClearMaxDeliveryAttempts ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) ClearMaxDeliveryAttempts() *SubscriptionUpdateOne
ClearMaxDeliveryAttempts clears the value of the "maxDeliveryAttempts" field.
func (*SubscriptionUpdateOne) ClearMessageFilter ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) ClearMessageFilter() *SubscriptionUpdateOne
ClearMessageFilter clears the value of the "messageFilter" field.
func (*SubscriptionUpdateOne) ClearMinBackoff ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) ClearMinBackoff() *SubscriptionUpdateOne
ClearMinBackoff clears the value of the "minBackoff" field.
func (*SubscriptionUpdateOne) ClearOrderedDelivery ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) ClearOrderedDelivery() *SubscriptionUpdateOne
ClearOrderedDelivery clears the value of the "orderedDelivery" field.
func (*SubscriptionUpdateOne) ClearPushEndpoint ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) ClearPushEndpoint() *SubscriptionUpdateOne
ClearPushEndpoint clears the value of the "pushEndpoint" field.
func (*SubscriptionUpdateOne) ClearTopic ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) ClearTopic() *SubscriptionUpdateOne
ClearTopic clears the "topic" edge to the Topic entity.
func (*SubscriptionUpdateOne) Exec ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*SubscriptionUpdateOne) ExecX ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SubscriptionUpdateOne) Mutation ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) Mutation() *SubscriptionMutation
Mutation returns the SubscriptionMutation object of the builder.
func (*SubscriptionUpdateOne) RemoveDeliveries ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) RemoveDeliveries(d ...*Delivery) *SubscriptionUpdateOne
RemoveDeliveries removes "deliveries" edges to Delivery entities.
func (*SubscriptionUpdateOne) RemoveDeliveryIDs ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) RemoveDeliveryIDs(ids ...uuid.UUID) *SubscriptionUpdateOne
RemoveDeliveryIDs removes the "deliveries" edge to Delivery entities by IDs.
func (*SubscriptionUpdateOne) Save ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) Save(ctx context.Context) (*Subscription, error)
Save executes the query and returns the updated Subscription entity.
func (*SubscriptionUpdateOne) SaveX ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) SaveX(ctx context.Context) *Subscription
SaveX is like Save, but panics if an error occurs.
func (*SubscriptionUpdateOne) Select ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) Select(field string, fields ...string) *SubscriptionUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*SubscriptionUpdateOne) SetDeadLetterTopic ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) SetDeadLetterTopic(t *Topic) *SubscriptionUpdateOne
SetDeadLetterTopic sets the "deadLetterTopic" edge to the Topic entity.
func (*SubscriptionUpdateOne) SetDeadLetterTopicID ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) SetDeadLetterTopicID(u uuid.UUID) *SubscriptionUpdateOne
SetDeadLetterTopicID sets the "deadLetterTopicID" field.
func (*SubscriptionUpdateOne) SetDeletedAt ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) SetDeletedAt(t time.Time) *SubscriptionUpdateOne
SetDeletedAt sets the "deletedAt" field.
func (*SubscriptionUpdateOne) SetDeliveryDelay ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) SetDeliveryDelay(s sqltypes.Interval) *SubscriptionUpdateOne
SetDeliveryDelay sets the "deliveryDelay" field.
func (*SubscriptionUpdateOne) SetExpiresAt ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) SetExpiresAt(t time.Time) *SubscriptionUpdateOne
SetExpiresAt sets the "expiresAt" field.
func (*SubscriptionUpdateOne) SetLabels ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) SetLabels(m map[string]string) *SubscriptionUpdateOne
SetLabels sets the "labels" field.
func (*SubscriptionUpdateOne) SetLive ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) SetLive(b bool) *SubscriptionUpdateOne
SetLive sets the "live" field.
func (*SubscriptionUpdateOne) SetMaxBackoff ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) SetMaxBackoff(s *sqltypes.Interval) *SubscriptionUpdateOne
SetMaxBackoff sets the "maxBackoff" field.
func (*SubscriptionUpdateOne) SetMaxDeliveryAttempts ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) SetMaxDeliveryAttempts(i int32) *SubscriptionUpdateOne
SetMaxDeliveryAttempts sets the "maxDeliveryAttempts" field.
func (*SubscriptionUpdateOne) SetMessageFilter ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) SetMessageFilter(s string) *SubscriptionUpdateOne
SetMessageFilter sets the "messageFilter" field.
func (*SubscriptionUpdateOne) SetMessageTTL ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) SetMessageTTL(s sqltypes.Interval) *SubscriptionUpdateOne
SetMessageTTL sets the "messageTTL" field.
func (*SubscriptionUpdateOne) SetMinBackoff ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) SetMinBackoff(s *sqltypes.Interval) *SubscriptionUpdateOne
SetMinBackoff sets the "minBackoff" field.
func (*SubscriptionUpdateOne) SetNillableDeadLetterTopicID ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) SetNillableDeadLetterTopicID(u *uuid.UUID) *SubscriptionUpdateOne
SetNillableDeadLetterTopicID sets the "deadLetterTopicID" field if the given value is not nil.
func (*SubscriptionUpdateOne) SetNillableDeletedAt ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) SetNillableDeletedAt(t *time.Time) *SubscriptionUpdateOne
SetNillableDeletedAt sets the "deletedAt" field if the given value is not nil.
func (*SubscriptionUpdateOne) SetNillableDeliveryDelay ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) SetNillableDeliveryDelay(s *sqltypes.Interval) *SubscriptionUpdateOne
SetNillableDeliveryDelay sets the "deliveryDelay" field if the given value is not nil.
func (*SubscriptionUpdateOne) SetNillableExpiresAt ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) SetNillableExpiresAt(t *time.Time) *SubscriptionUpdateOne
SetNillableExpiresAt sets the "expiresAt" field if the given value is not nil.
func (*SubscriptionUpdateOne) SetNillableLive ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) SetNillableLive(b *bool) *SubscriptionUpdateOne
SetNillableLive sets the "live" field if the given value is not nil.
func (*SubscriptionUpdateOne) SetNillableMaxDeliveryAttempts ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) SetNillableMaxDeliveryAttempts(i *int32) *SubscriptionUpdateOne
SetNillableMaxDeliveryAttempts sets the "maxDeliveryAttempts" field if the given value is not nil.
func (*SubscriptionUpdateOne) SetNillableMessageFilter ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) SetNillableMessageFilter(s *string) *SubscriptionUpdateOne
SetNillableMessageFilter sets the "messageFilter" field if the given value is not nil.
func (*SubscriptionUpdateOne) SetNillableMessageTTL ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) SetNillableMessageTTL(s *sqltypes.Interval) *SubscriptionUpdateOne
SetNillableMessageTTL sets the "messageTTL" field if the given value is not nil.
func (*SubscriptionUpdateOne) SetNillableOrderedDelivery ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) SetNillableOrderedDelivery(b *bool) *SubscriptionUpdateOne
SetNillableOrderedDelivery sets the "orderedDelivery" field if the given value is not nil.
func (*SubscriptionUpdateOne) SetNillablePushEndpoint ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) SetNillablePushEndpoint(s *string) *SubscriptionUpdateOne
SetNillablePushEndpoint sets the "pushEndpoint" field if the given value is not nil.
func (*SubscriptionUpdateOne) SetNillableTTL ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) SetNillableTTL(s *sqltypes.Interval) *SubscriptionUpdateOne
SetNillableTTL sets the "ttl" field if the given value is not nil.
func (*SubscriptionUpdateOne) SetNillableTopicID ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) SetNillableTopicID(u *uuid.UUID) *SubscriptionUpdateOne
SetNillableTopicID sets the "topicID" field if the given value is not nil.
func (*SubscriptionUpdateOne) SetOrderedDelivery ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) SetOrderedDelivery(b bool) *SubscriptionUpdateOne
SetOrderedDelivery sets the "orderedDelivery" field.
func (*SubscriptionUpdateOne) SetPushEndpoint ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) SetPushEndpoint(s string) *SubscriptionUpdateOne
SetPushEndpoint sets the "pushEndpoint" field.
func (*SubscriptionUpdateOne) SetTTL ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) SetTTL(s sqltypes.Interval) *SubscriptionUpdateOne
SetTTL sets the "ttl" field.
func (*SubscriptionUpdateOne) SetTopic ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) SetTopic(t *Topic) *SubscriptionUpdateOne
SetTopic sets the "topic" edge to the Topic entity.
func (*SubscriptionUpdateOne) SetTopicID ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) SetTopicID(u uuid.UUID) *SubscriptionUpdateOne
SetTopicID sets the "topicID" field.
func (*SubscriptionUpdateOne) Where ¶ added in v0.13.52
func (suo *SubscriptionUpdateOne) Where(ps ...predicate.Subscription) *SubscriptionUpdateOne
Where appends a list predicates to the SubscriptionUpdate builder.
type SubscriptionUpsert ¶ added in v0.13.52
SubscriptionUpsert is the "OnConflict" setter.
func (*SubscriptionUpsert) AddMaxDeliveryAttempts ¶ added in v0.13.52
func (u *SubscriptionUpsert) AddMaxDeliveryAttempts(v int32) *SubscriptionUpsert
AddMaxDeliveryAttempts adds v to the "maxDeliveryAttempts" field.
func (*SubscriptionUpsert) ClearDeadLetterTopicID ¶ added in v0.13.52
func (u *SubscriptionUpsert) ClearDeadLetterTopicID() *SubscriptionUpsert
ClearDeadLetterTopicID clears the value of the "deadLetterTopicID" field.
func (*SubscriptionUpsert) ClearDeletedAt ¶ added in v0.13.52
func (u *SubscriptionUpsert) ClearDeletedAt() *SubscriptionUpsert
ClearDeletedAt clears the value of the "deletedAt" field.
func (*SubscriptionUpsert) ClearLabels ¶ added in v0.13.52
func (u *SubscriptionUpsert) ClearLabels() *SubscriptionUpsert
ClearLabels clears the value of the "labels" field.
func (*SubscriptionUpsert) ClearLive ¶ added in v0.13.52
func (u *SubscriptionUpsert) ClearLive() *SubscriptionUpsert
ClearLive clears the value of the "live" field.
func (*SubscriptionUpsert) ClearMaxBackoff ¶ added in v0.13.52
func (u *SubscriptionUpsert) ClearMaxBackoff() *SubscriptionUpsert
ClearMaxBackoff clears the value of the "maxBackoff" field.
func (*SubscriptionUpsert) ClearMaxDeliveryAttempts ¶ added in v0.13.52
func (u *SubscriptionUpsert) ClearMaxDeliveryAttempts() *SubscriptionUpsert
ClearMaxDeliveryAttempts clears the value of the "maxDeliveryAttempts" field.
func (*SubscriptionUpsert) ClearMessageFilter ¶ added in v0.13.52
func (u *SubscriptionUpsert) ClearMessageFilter() *SubscriptionUpsert
ClearMessageFilter clears the value of the "messageFilter" field.
func (*SubscriptionUpsert) ClearMinBackoff ¶ added in v0.13.52
func (u *SubscriptionUpsert) ClearMinBackoff() *SubscriptionUpsert
ClearMinBackoff clears the value of the "minBackoff" field.
func (*SubscriptionUpsert) ClearOrderedDelivery ¶ added in v0.13.52
func (u *SubscriptionUpsert) ClearOrderedDelivery() *SubscriptionUpsert
ClearOrderedDelivery clears the value of the "orderedDelivery" field.
func (*SubscriptionUpsert) ClearPushEndpoint ¶ added in v0.13.52
func (u *SubscriptionUpsert) ClearPushEndpoint() *SubscriptionUpsert
ClearPushEndpoint clears the value of the "pushEndpoint" field.
func (*SubscriptionUpsert) SetDeadLetterTopicID ¶ added in v0.13.52
func (u *SubscriptionUpsert) SetDeadLetterTopicID(v uuid.UUID) *SubscriptionUpsert
SetDeadLetterTopicID sets the "deadLetterTopicID" field.
func (*SubscriptionUpsert) SetDeletedAt ¶ added in v0.13.52
func (u *SubscriptionUpsert) SetDeletedAt(v time.Time) *SubscriptionUpsert
SetDeletedAt sets the "deletedAt" field.
func (*SubscriptionUpsert) SetDeliveryDelay ¶ added in v0.13.52
func (u *SubscriptionUpsert) SetDeliveryDelay(v sqltypes.Interval) *SubscriptionUpsert
SetDeliveryDelay sets the "deliveryDelay" field.
func (*SubscriptionUpsert) SetExpiresAt ¶ added in v0.13.52
func (u *SubscriptionUpsert) SetExpiresAt(v time.Time) *SubscriptionUpsert
SetExpiresAt sets the "expiresAt" field.
func (*SubscriptionUpsert) SetLabels ¶ added in v0.13.52
func (u *SubscriptionUpsert) SetLabels(v map[string]string) *SubscriptionUpsert
SetLabels sets the "labels" field.
func (*SubscriptionUpsert) SetLive ¶ added in v0.13.52
func (u *SubscriptionUpsert) SetLive(v bool) *SubscriptionUpsert
SetLive sets the "live" field.
func (*SubscriptionUpsert) SetMaxBackoff ¶ added in v0.13.52
func (u *SubscriptionUpsert) SetMaxBackoff(v *sqltypes.Interval) *SubscriptionUpsert
SetMaxBackoff sets the "maxBackoff" field.
func (*SubscriptionUpsert) SetMaxDeliveryAttempts ¶ added in v0.13.52
func (u *SubscriptionUpsert) SetMaxDeliveryAttempts(v int32) *SubscriptionUpsert
SetMaxDeliveryAttempts sets the "maxDeliveryAttempts" field.
func (*SubscriptionUpsert) SetMessageFilter ¶ added in v0.13.52
func (u *SubscriptionUpsert) SetMessageFilter(v string) *SubscriptionUpsert
SetMessageFilter sets the "messageFilter" field.
func (*SubscriptionUpsert) SetMessageTTL ¶ added in v0.13.52
func (u *SubscriptionUpsert) SetMessageTTL(v sqltypes.Interval) *SubscriptionUpsert
SetMessageTTL sets the "messageTTL" field.
func (*SubscriptionUpsert) SetMinBackoff ¶ added in v0.13.52
func (u *SubscriptionUpsert) SetMinBackoff(v *sqltypes.Interval) *SubscriptionUpsert
SetMinBackoff sets the "minBackoff" field.
func (*SubscriptionUpsert) SetOrderedDelivery ¶ added in v0.13.52
func (u *SubscriptionUpsert) SetOrderedDelivery(v bool) *SubscriptionUpsert
SetOrderedDelivery sets the "orderedDelivery" field.
func (*SubscriptionUpsert) SetPushEndpoint ¶ added in v0.13.52
func (u *SubscriptionUpsert) SetPushEndpoint(v string) *SubscriptionUpsert
SetPushEndpoint sets the "pushEndpoint" field.
func (*SubscriptionUpsert) SetTTL ¶ added in v0.13.52
func (u *SubscriptionUpsert) SetTTL(v sqltypes.Interval) *SubscriptionUpsert
SetTTL sets the "ttl" field.
func (*SubscriptionUpsert) SetTopicID ¶ added in v0.13.52
func (u *SubscriptionUpsert) SetTopicID(v uuid.UUID) *SubscriptionUpsert
SetTopicID sets the "topicID" field.
func (*SubscriptionUpsert) UpdateDeadLetterTopicID ¶ added in v0.13.52
func (u *SubscriptionUpsert) UpdateDeadLetterTopicID() *SubscriptionUpsert
UpdateDeadLetterTopicID sets the "deadLetterTopicID" field to the value that was provided on create.
func (*SubscriptionUpsert) UpdateDeletedAt ¶ added in v0.13.52
func (u *SubscriptionUpsert) UpdateDeletedAt() *SubscriptionUpsert
UpdateDeletedAt sets the "deletedAt" field to the value that was provided on create.
func (*SubscriptionUpsert) UpdateDeliveryDelay ¶ added in v0.13.52
func (u *SubscriptionUpsert) UpdateDeliveryDelay() *SubscriptionUpsert
UpdateDeliveryDelay sets the "deliveryDelay" field to the value that was provided on create.
func (*SubscriptionUpsert) UpdateExpiresAt ¶ added in v0.13.52
func (u *SubscriptionUpsert) UpdateExpiresAt() *SubscriptionUpsert
UpdateExpiresAt sets the "expiresAt" field to the value that was provided on create.
func (*SubscriptionUpsert) UpdateLabels ¶ added in v0.13.52
func (u *SubscriptionUpsert) UpdateLabels() *SubscriptionUpsert
UpdateLabels sets the "labels" field to the value that was provided on create.
func (*SubscriptionUpsert) UpdateLive ¶ added in v0.13.52
func (u *SubscriptionUpsert) UpdateLive() *SubscriptionUpsert
UpdateLive sets the "live" field to the value that was provided on create.
func (*SubscriptionUpsert) UpdateMaxBackoff ¶ added in v0.13.52
func (u *SubscriptionUpsert) UpdateMaxBackoff() *SubscriptionUpsert
UpdateMaxBackoff sets the "maxBackoff" field to the value that was provided on create.
func (*SubscriptionUpsert) UpdateMaxDeliveryAttempts ¶ added in v0.13.52
func (u *SubscriptionUpsert) UpdateMaxDeliveryAttempts() *SubscriptionUpsert
UpdateMaxDeliveryAttempts sets the "maxDeliveryAttempts" field to the value that was provided on create.
func (*SubscriptionUpsert) UpdateMessageFilter ¶ added in v0.13.52
func (u *SubscriptionUpsert) UpdateMessageFilter() *SubscriptionUpsert
UpdateMessageFilter sets the "messageFilter" field to the value that was provided on create.
func (*SubscriptionUpsert) UpdateMessageTTL ¶ added in v0.13.52
func (u *SubscriptionUpsert) UpdateMessageTTL() *SubscriptionUpsert
UpdateMessageTTL sets the "messageTTL" field to the value that was provided on create.
func (*SubscriptionUpsert) UpdateMinBackoff ¶ added in v0.13.52
func (u *SubscriptionUpsert) UpdateMinBackoff() *SubscriptionUpsert
UpdateMinBackoff sets the "minBackoff" field to the value that was provided on create.
func (*SubscriptionUpsert) UpdateOrderedDelivery ¶ added in v0.13.52
func (u *SubscriptionUpsert) UpdateOrderedDelivery() *SubscriptionUpsert
UpdateOrderedDelivery sets the "orderedDelivery" field to the value that was provided on create.
func (*SubscriptionUpsert) UpdatePushEndpoint ¶ added in v0.13.52
func (u *SubscriptionUpsert) UpdatePushEndpoint() *SubscriptionUpsert
UpdatePushEndpoint sets the "pushEndpoint" field to the value that was provided on create.
func (*SubscriptionUpsert) UpdateTTL ¶ added in v0.13.52
func (u *SubscriptionUpsert) UpdateTTL() *SubscriptionUpsert
UpdateTTL sets the "ttl" field to the value that was provided on create.
func (*SubscriptionUpsert) UpdateTopicID ¶ added in v0.13.52
func (u *SubscriptionUpsert) UpdateTopicID() *SubscriptionUpsert
UpdateTopicID sets the "topicID" field to the value that was provided on create.
type SubscriptionUpsertBulk ¶ added in v0.13.52
type SubscriptionUpsertBulk struct {
// contains filtered or unexported fields
}
SubscriptionUpsertBulk is the builder for "upsert"-ing a bulk of Subscription nodes.
func (*SubscriptionUpsertBulk) AddMaxDeliveryAttempts ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) AddMaxDeliveryAttempts(v int32) *SubscriptionUpsertBulk
AddMaxDeliveryAttempts adds v to the "maxDeliveryAttempts" field.
func (*SubscriptionUpsertBulk) ClearDeadLetterTopicID ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) ClearDeadLetterTopicID() *SubscriptionUpsertBulk
ClearDeadLetterTopicID clears the value of the "deadLetterTopicID" field.
func (*SubscriptionUpsertBulk) ClearDeletedAt ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) ClearDeletedAt() *SubscriptionUpsertBulk
ClearDeletedAt clears the value of the "deletedAt" field.
func (*SubscriptionUpsertBulk) ClearLabels ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) ClearLabels() *SubscriptionUpsertBulk
ClearLabels clears the value of the "labels" field.
func (*SubscriptionUpsertBulk) ClearLive ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) ClearLive() *SubscriptionUpsertBulk
ClearLive clears the value of the "live" field.
func (*SubscriptionUpsertBulk) ClearMaxBackoff ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) ClearMaxBackoff() *SubscriptionUpsertBulk
ClearMaxBackoff clears the value of the "maxBackoff" field.
func (*SubscriptionUpsertBulk) ClearMaxDeliveryAttempts ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) ClearMaxDeliveryAttempts() *SubscriptionUpsertBulk
ClearMaxDeliveryAttempts clears the value of the "maxDeliveryAttempts" field.
func (*SubscriptionUpsertBulk) ClearMessageFilter ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) ClearMessageFilter() *SubscriptionUpsertBulk
ClearMessageFilter clears the value of the "messageFilter" field.
func (*SubscriptionUpsertBulk) ClearMinBackoff ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) ClearMinBackoff() *SubscriptionUpsertBulk
ClearMinBackoff clears the value of the "minBackoff" field.
func (*SubscriptionUpsertBulk) ClearOrderedDelivery ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) ClearOrderedDelivery() *SubscriptionUpsertBulk
ClearOrderedDelivery clears the value of the "orderedDelivery" field.
func (*SubscriptionUpsertBulk) ClearPushEndpoint ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) ClearPushEndpoint() *SubscriptionUpsertBulk
ClearPushEndpoint clears the value of the "pushEndpoint" field.
func (*SubscriptionUpsertBulk) DoNothing ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) DoNothing() *SubscriptionUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*SubscriptionUpsertBulk) Exec ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*SubscriptionUpsertBulk) ExecX ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SubscriptionUpsertBulk) Ignore ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) Ignore() *SubscriptionUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Subscription.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*SubscriptionUpsertBulk) SetDeadLetterTopicID ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) SetDeadLetterTopicID(v uuid.UUID) *SubscriptionUpsertBulk
SetDeadLetterTopicID sets the "deadLetterTopicID" field.
func (*SubscriptionUpsertBulk) SetDeletedAt ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) SetDeletedAt(v time.Time) *SubscriptionUpsertBulk
SetDeletedAt sets the "deletedAt" field.
func (*SubscriptionUpsertBulk) SetDeliveryDelay ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) SetDeliveryDelay(v sqltypes.Interval) *SubscriptionUpsertBulk
SetDeliveryDelay sets the "deliveryDelay" field.
func (*SubscriptionUpsertBulk) SetExpiresAt ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) SetExpiresAt(v time.Time) *SubscriptionUpsertBulk
SetExpiresAt sets the "expiresAt" field.
func (*SubscriptionUpsertBulk) SetLabels ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) SetLabels(v map[string]string) *SubscriptionUpsertBulk
SetLabels sets the "labels" field.
func (*SubscriptionUpsertBulk) SetLive ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) SetLive(v bool) *SubscriptionUpsertBulk
SetLive sets the "live" field.
func (*SubscriptionUpsertBulk) SetMaxBackoff ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) SetMaxBackoff(v *sqltypes.Interval) *SubscriptionUpsertBulk
SetMaxBackoff sets the "maxBackoff" field.
func (*SubscriptionUpsertBulk) SetMaxDeliveryAttempts ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) SetMaxDeliveryAttempts(v int32) *SubscriptionUpsertBulk
SetMaxDeliveryAttempts sets the "maxDeliveryAttempts" field.
func (*SubscriptionUpsertBulk) SetMessageFilter ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) SetMessageFilter(v string) *SubscriptionUpsertBulk
SetMessageFilter sets the "messageFilter" field.
func (*SubscriptionUpsertBulk) SetMessageTTL ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) SetMessageTTL(v sqltypes.Interval) *SubscriptionUpsertBulk
SetMessageTTL sets the "messageTTL" field.
func (*SubscriptionUpsertBulk) SetMinBackoff ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) SetMinBackoff(v *sqltypes.Interval) *SubscriptionUpsertBulk
SetMinBackoff sets the "minBackoff" field.
func (*SubscriptionUpsertBulk) SetOrderedDelivery ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) SetOrderedDelivery(v bool) *SubscriptionUpsertBulk
SetOrderedDelivery sets the "orderedDelivery" field.
func (*SubscriptionUpsertBulk) SetPushEndpoint ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) SetPushEndpoint(v string) *SubscriptionUpsertBulk
SetPushEndpoint sets the "pushEndpoint" field.
func (*SubscriptionUpsertBulk) SetTTL ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) SetTTL(v sqltypes.Interval) *SubscriptionUpsertBulk
SetTTL sets the "ttl" field.
func (*SubscriptionUpsertBulk) SetTopicID ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) SetTopicID(v uuid.UUID) *SubscriptionUpsertBulk
SetTopicID sets the "topicID" field.
func (*SubscriptionUpsertBulk) Update ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) Update(set func(*SubscriptionUpsert)) *SubscriptionUpsertBulk
Update allows overriding fields `UPDATE` values. See the SubscriptionCreateBulk.OnConflict documentation for more info.
func (*SubscriptionUpsertBulk) UpdateDeadLetterTopicID ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) UpdateDeadLetterTopicID() *SubscriptionUpsertBulk
UpdateDeadLetterTopicID sets the "deadLetterTopicID" field to the value that was provided on create.
func (*SubscriptionUpsertBulk) UpdateDeletedAt ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) UpdateDeletedAt() *SubscriptionUpsertBulk
UpdateDeletedAt sets the "deletedAt" field to the value that was provided on create.
func (*SubscriptionUpsertBulk) UpdateDeliveryDelay ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) UpdateDeliveryDelay() *SubscriptionUpsertBulk
UpdateDeliveryDelay sets the "deliveryDelay" field to the value that was provided on create.
func (*SubscriptionUpsertBulk) UpdateExpiresAt ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) UpdateExpiresAt() *SubscriptionUpsertBulk
UpdateExpiresAt sets the "expiresAt" field to the value that was provided on create.
func (*SubscriptionUpsertBulk) UpdateLabels ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) UpdateLabels() *SubscriptionUpsertBulk
UpdateLabels sets the "labels" field to the value that was provided on create.
func (*SubscriptionUpsertBulk) UpdateLive ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) UpdateLive() *SubscriptionUpsertBulk
UpdateLive sets the "live" field to the value that was provided on create.
func (*SubscriptionUpsertBulk) UpdateMaxBackoff ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) UpdateMaxBackoff() *SubscriptionUpsertBulk
UpdateMaxBackoff sets the "maxBackoff" field to the value that was provided on create.
func (*SubscriptionUpsertBulk) UpdateMaxDeliveryAttempts ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) UpdateMaxDeliveryAttempts() *SubscriptionUpsertBulk
UpdateMaxDeliveryAttempts sets the "maxDeliveryAttempts" field to the value that was provided on create.
func (*SubscriptionUpsertBulk) UpdateMessageFilter ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) UpdateMessageFilter() *SubscriptionUpsertBulk
UpdateMessageFilter sets the "messageFilter" field to the value that was provided on create.
func (*SubscriptionUpsertBulk) UpdateMessageTTL ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) UpdateMessageTTL() *SubscriptionUpsertBulk
UpdateMessageTTL sets the "messageTTL" field to the value that was provided on create.
func (*SubscriptionUpsertBulk) UpdateMinBackoff ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) UpdateMinBackoff() *SubscriptionUpsertBulk
UpdateMinBackoff sets the "minBackoff" field to the value that was provided on create.
func (*SubscriptionUpsertBulk) UpdateNewValues ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) UpdateNewValues() *SubscriptionUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.Subscription.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(subscription.FieldID) }), ). Exec(ctx)
func (*SubscriptionUpsertBulk) UpdateOrderedDelivery ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) UpdateOrderedDelivery() *SubscriptionUpsertBulk
UpdateOrderedDelivery sets the "orderedDelivery" field to the value that was provided on create.
func (*SubscriptionUpsertBulk) UpdatePushEndpoint ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) UpdatePushEndpoint() *SubscriptionUpsertBulk
UpdatePushEndpoint sets the "pushEndpoint" field to the value that was provided on create.
func (*SubscriptionUpsertBulk) UpdateTTL ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) UpdateTTL() *SubscriptionUpsertBulk
UpdateTTL sets the "ttl" field to the value that was provided on create.
func (*SubscriptionUpsertBulk) UpdateTopicID ¶ added in v0.13.52
func (u *SubscriptionUpsertBulk) UpdateTopicID() *SubscriptionUpsertBulk
UpdateTopicID sets the "topicID" field to the value that was provided on create.
type SubscriptionUpsertOne ¶ added in v0.13.52
type SubscriptionUpsertOne struct {
// contains filtered or unexported fields
}
SubscriptionUpsertOne is the builder for "upsert"-ing
one Subscription node.
func (*SubscriptionUpsertOne) AddMaxDeliveryAttempts ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) AddMaxDeliveryAttempts(v int32) *SubscriptionUpsertOne
AddMaxDeliveryAttempts adds v to the "maxDeliveryAttempts" field.
func (*SubscriptionUpsertOne) ClearDeadLetterTopicID ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) ClearDeadLetterTopicID() *SubscriptionUpsertOne
ClearDeadLetterTopicID clears the value of the "deadLetterTopicID" field.
func (*SubscriptionUpsertOne) ClearDeletedAt ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) ClearDeletedAt() *SubscriptionUpsertOne
ClearDeletedAt clears the value of the "deletedAt" field.
func (*SubscriptionUpsertOne) ClearLabels ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) ClearLabels() *SubscriptionUpsertOne
ClearLabels clears the value of the "labels" field.
func (*SubscriptionUpsertOne) ClearLive ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) ClearLive() *SubscriptionUpsertOne
ClearLive clears the value of the "live" field.
func (*SubscriptionUpsertOne) ClearMaxBackoff ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) ClearMaxBackoff() *SubscriptionUpsertOne
ClearMaxBackoff clears the value of the "maxBackoff" field.
func (*SubscriptionUpsertOne) ClearMaxDeliveryAttempts ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) ClearMaxDeliveryAttempts() *SubscriptionUpsertOne
ClearMaxDeliveryAttempts clears the value of the "maxDeliveryAttempts" field.
func (*SubscriptionUpsertOne) ClearMessageFilter ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) ClearMessageFilter() *SubscriptionUpsertOne
ClearMessageFilter clears the value of the "messageFilter" field.
func (*SubscriptionUpsertOne) ClearMinBackoff ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) ClearMinBackoff() *SubscriptionUpsertOne
ClearMinBackoff clears the value of the "minBackoff" field.
func (*SubscriptionUpsertOne) ClearOrderedDelivery ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) ClearOrderedDelivery() *SubscriptionUpsertOne
ClearOrderedDelivery clears the value of the "orderedDelivery" field.
func (*SubscriptionUpsertOne) ClearPushEndpoint ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) ClearPushEndpoint() *SubscriptionUpsertOne
ClearPushEndpoint clears the value of the "pushEndpoint" field.
func (*SubscriptionUpsertOne) DoNothing ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) DoNothing() *SubscriptionUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*SubscriptionUpsertOne) Exec ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*SubscriptionUpsertOne) ExecX ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SubscriptionUpsertOne) ID ¶ added in v0.13.52
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*SubscriptionUpsertOne) IDX ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) IDX(ctx context.Context) uuid.UUID
IDX is like ID, but panics if an error occurs.
func (*SubscriptionUpsertOne) Ignore ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) Ignore() *SubscriptionUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Subscription.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*SubscriptionUpsertOne) SetDeadLetterTopicID ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) SetDeadLetterTopicID(v uuid.UUID) *SubscriptionUpsertOne
SetDeadLetterTopicID sets the "deadLetterTopicID" field.
func (*SubscriptionUpsertOne) SetDeletedAt ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) SetDeletedAt(v time.Time) *SubscriptionUpsertOne
SetDeletedAt sets the "deletedAt" field.
func (*SubscriptionUpsertOne) SetDeliveryDelay ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) SetDeliveryDelay(v sqltypes.Interval) *SubscriptionUpsertOne
SetDeliveryDelay sets the "deliveryDelay" field.
func (*SubscriptionUpsertOne) SetExpiresAt ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) SetExpiresAt(v time.Time) *SubscriptionUpsertOne
SetExpiresAt sets the "expiresAt" field.
func (*SubscriptionUpsertOne) SetLabels ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) SetLabels(v map[string]string) *SubscriptionUpsertOne
SetLabels sets the "labels" field.
func (*SubscriptionUpsertOne) SetLive ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) SetLive(v bool) *SubscriptionUpsertOne
SetLive sets the "live" field.
func (*SubscriptionUpsertOne) SetMaxBackoff ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) SetMaxBackoff(v *sqltypes.Interval) *SubscriptionUpsertOne
SetMaxBackoff sets the "maxBackoff" field.
func (*SubscriptionUpsertOne) SetMaxDeliveryAttempts ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) SetMaxDeliveryAttempts(v int32) *SubscriptionUpsertOne
SetMaxDeliveryAttempts sets the "maxDeliveryAttempts" field.
func (*SubscriptionUpsertOne) SetMessageFilter ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) SetMessageFilter(v string) *SubscriptionUpsertOne
SetMessageFilter sets the "messageFilter" field.
func (*SubscriptionUpsertOne) SetMessageTTL ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) SetMessageTTL(v sqltypes.Interval) *SubscriptionUpsertOne
SetMessageTTL sets the "messageTTL" field.
func (*SubscriptionUpsertOne) SetMinBackoff ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) SetMinBackoff(v *sqltypes.Interval) *SubscriptionUpsertOne
SetMinBackoff sets the "minBackoff" field.
func (*SubscriptionUpsertOne) SetOrderedDelivery ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) SetOrderedDelivery(v bool) *SubscriptionUpsertOne
SetOrderedDelivery sets the "orderedDelivery" field.
func (*SubscriptionUpsertOne) SetPushEndpoint ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) SetPushEndpoint(v string) *SubscriptionUpsertOne
SetPushEndpoint sets the "pushEndpoint" field.
func (*SubscriptionUpsertOne) SetTTL ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) SetTTL(v sqltypes.Interval) *SubscriptionUpsertOne
SetTTL sets the "ttl" field.
func (*SubscriptionUpsertOne) SetTopicID ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) SetTopicID(v uuid.UUID) *SubscriptionUpsertOne
SetTopicID sets the "topicID" field.
func (*SubscriptionUpsertOne) Update ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) Update(set func(*SubscriptionUpsert)) *SubscriptionUpsertOne
Update allows overriding fields `UPDATE` values. See the SubscriptionCreate.OnConflict documentation for more info.
func (*SubscriptionUpsertOne) UpdateDeadLetterTopicID ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) UpdateDeadLetterTopicID() *SubscriptionUpsertOne
UpdateDeadLetterTopicID sets the "deadLetterTopicID" field to the value that was provided on create.
func (*SubscriptionUpsertOne) UpdateDeletedAt ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) UpdateDeletedAt() *SubscriptionUpsertOne
UpdateDeletedAt sets the "deletedAt" field to the value that was provided on create.
func (*SubscriptionUpsertOne) UpdateDeliveryDelay ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) UpdateDeliveryDelay() *SubscriptionUpsertOne
UpdateDeliveryDelay sets the "deliveryDelay" field to the value that was provided on create.
func (*SubscriptionUpsertOne) UpdateExpiresAt ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) UpdateExpiresAt() *SubscriptionUpsertOne
UpdateExpiresAt sets the "expiresAt" field to the value that was provided on create.
func (*SubscriptionUpsertOne) UpdateLabels ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) UpdateLabels() *SubscriptionUpsertOne
UpdateLabels sets the "labels" field to the value that was provided on create.
func (*SubscriptionUpsertOne) UpdateLive ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) UpdateLive() *SubscriptionUpsertOne
UpdateLive sets the "live" field to the value that was provided on create.
func (*SubscriptionUpsertOne) UpdateMaxBackoff ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) UpdateMaxBackoff() *SubscriptionUpsertOne
UpdateMaxBackoff sets the "maxBackoff" field to the value that was provided on create.
func (*SubscriptionUpsertOne) UpdateMaxDeliveryAttempts ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) UpdateMaxDeliveryAttempts() *SubscriptionUpsertOne
UpdateMaxDeliveryAttempts sets the "maxDeliveryAttempts" field to the value that was provided on create.
func (*SubscriptionUpsertOne) UpdateMessageFilter ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) UpdateMessageFilter() *SubscriptionUpsertOne
UpdateMessageFilter sets the "messageFilter" field to the value that was provided on create.
func (*SubscriptionUpsertOne) UpdateMessageTTL ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) UpdateMessageTTL() *SubscriptionUpsertOne
UpdateMessageTTL sets the "messageTTL" field to the value that was provided on create.
func (*SubscriptionUpsertOne) UpdateMinBackoff ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) UpdateMinBackoff() *SubscriptionUpsertOne
UpdateMinBackoff sets the "minBackoff" field to the value that was provided on create.
func (*SubscriptionUpsertOne) UpdateNewValues ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) UpdateNewValues() *SubscriptionUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:
client.Subscription.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(subscription.FieldID) }), ). Exec(ctx)
func (*SubscriptionUpsertOne) UpdateOrderedDelivery ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) UpdateOrderedDelivery() *SubscriptionUpsertOne
UpdateOrderedDelivery sets the "orderedDelivery" field to the value that was provided on create.
func (*SubscriptionUpsertOne) UpdatePushEndpoint ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) UpdatePushEndpoint() *SubscriptionUpsertOne
UpdatePushEndpoint sets the "pushEndpoint" field to the value that was provided on create.
func (*SubscriptionUpsertOne) UpdateTTL ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) UpdateTTL() *SubscriptionUpsertOne
UpdateTTL sets the "ttl" field to the value that was provided on create.
func (*SubscriptionUpsertOne) UpdateTopicID ¶ added in v0.13.52
func (u *SubscriptionUpsertOne) UpdateTopicID() *SubscriptionUpsertOne
UpdateTopicID sets the "topicID" field to the value that was provided on create.
type Subscriptions ¶ added in v0.13.52
type Subscriptions []*Subscription
Subscriptions is a parsable slice of Subscription.
type Topic ¶ added in v0.13.52
type Topic struct { // ID of the ent. ID uuid.UUID `json:"id,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // CreatedAt holds the value of the "createdAt" field. CreatedAt time.Time `json:"createdAt,omitempty"` // Live holds the value of the "live" field. Live *bool `json:"live,omitempty"` // DeletedAt holds the value of the "deletedAt" field. DeletedAt *time.Time `json:"deletedAt,omitempty"` // Labels holds the value of the "labels" field. Labels map[string]string `json:"labels,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the TopicQuery when eager-loading is set. Edges TopicEdges `json:"-"` // contains filtered or unexported fields }
Topic is the model entity for the Topic schema.
func (*Topic) QueryMessages ¶ added in v0.13.52
func (t *Topic) QueryMessages() *MessageQuery
QueryMessages queries the "messages" edge of the Topic entity.
func (*Topic) QuerySubscriptions ¶ added in v0.13.52
func (t *Topic) QuerySubscriptions() *SubscriptionQuery
QuerySubscriptions queries the "subscriptions" edge of the Topic entity.
func (*Topic) Unwrap ¶ added in v0.13.52
Unwrap unwraps the Topic entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Topic) Update ¶ added in v0.13.52
func (t *Topic) Update() *TopicUpdateOne
Update returns a builder for updating this Topic. Note that you need to call Topic.Unwrap() before calling this method if this Topic was returned from a transaction, and the transaction was committed or rolled back.
type TopicClient ¶ added in v0.13.52
type TopicClient struct {
// contains filtered or unexported fields
}
TopicClient is a client for the Topic schema.
func NewTopicClient ¶ added in v0.13.52
func NewTopicClient(c config) *TopicClient
NewTopicClient returns a client for the Topic from the given config.
func (*TopicClient) Create ¶ added in v0.13.52
func (c *TopicClient) Create() *TopicCreate
Create returns a builder for creating a Topic entity.
func (*TopicClient) CreateBulk ¶ added in v0.13.52
func (c *TopicClient) CreateBulk(builders ...*TopicCreate) *TopicCreateBulk
CreateBulk returns a builder for creating a bulk of Topic entities.
func (*TopicClient) Delete ¶ added in v0.13.52
func (c *TopicClient) Delete() *TopicDelete
Delete returns a delete builder for Topic.
func (*TopicClient) DeleteOne ¶ added in v0.13.52
func (c *TopicClient) DeleteOne(t *Topic) *TopicDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*TopicClient) DeleteOneID ¶ added in v0.13.52
func (c *TopicClient) DeleteOneID(id uuid.UUID) *TopicDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*TopicClient) Hooks ¶ added in v0.13.52
func (c *TopicClient) Hooks() []Hook
Hooks returns the client hooks.
func (*TopicClient) Intercept ¶ added in v0.13.52
func (c *TopicClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `topic.Intercept(f(g(h())))`.
func (*TopicClient) Interceptors ¶ added in v0.13.52
func (c *TopicClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*TopicClient) MapCreateBulk ¶ added in v0.13.52
func (c *TopicClient) MapCreateBulk(slice any, setFunc func(*TopicCreate, int)) *TopicCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*TopicClient) Query ¶ added in v0.13.52
func (c *TopicClient) Query() *TopicQuery
Query returns a query builder for Topic.
func (*TopicClient) QueryMessages ¶ added in v0.13.52
func (c *TopicClient) QueryMessages(t *Topic) *MessageQuery
QueryMessages queries the messages edge of a Topic.
func (*TopicClient) QuerySubscriptions ¶ added in v0.13.52
func (c *TopicClient) QuerySubscriptions(t *Topic) *SubscriptionQuery
QuerySubscriptions queries the subscriptions edge of a Topic.
func (*TopicClient) Update ¶ added in v0.13.52
func (c *TopicClient) Update() *TopicUpdate
Update returns an update builder for Topic.
func (*TopicClient) UpdateOne ¶ added in v0.13.52
func (c *TopicClient) UpdateOne(t *Topic) *TopicUpdateOne
UpdateOne returns an update builder for the given entity.
func (*TopicClient) UpdateOneID ¶ added in v0.13.52
func (c *TopicClient) UpdateOneID(id uuid.UUID) *TopicUpdateOne
UpdateOneID returns an update builder for the given id.
func (*TopicClient) Use ¶ added in v0.13.52
func (c *TopicClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `topic.Hooks(f(g(h())))`.
type TopicCreate ¶ added in v0.13.52
type TopicCreate struct {
// contains filtered or unexported fields
}
TopicCreate is the builder for creating a Topic entity.
func (*TopicCreate) AddMessageIDs ¶ added in v0.13.52
func (tc *TopicCreate) AddMessageIDs(ids ...uuid.UUID) *TopicCreate
AddMessageIDs adds the "messages" edge to the Message entity by IDs.
func (*TopicCreate) AddMessages ¶ added in v0.13.52
func (tc *TopicCreate) AddMessages(m ...*Message) *TopicCreate
AddMessages adds the "messages" edges to the Message entity.
func (*TopicCreate) AddSubscriptionIDs ¶ added in v0.13.52
func (tc *TopicCreate) AddSubscriptionIDs(ids ...uuid.UUID) *TopicCreate
AddSubscriptionIDs adds the "subscriptions" edge to the Subscription entity by IDs.
func (*TopicCreate) AddSubscriptions ¶ added in v0.13.52
func (tc *TopicCreate) AddSubscriptions(s ...*Subscription) *TopicCreate
AddSubscriptions adds the "subscriptions" edges to the Subscription entity.
func (*TopicCreate) Exec ¶ added in v0.13.52
func (tc *TopicCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*TopicCreate) ExecX ¶ added in v0.13.52
func (tc *TopicCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TopicCreate) Mutation ¶ added in v0.13.52
func (tc *TopicCreate) Mutation() *TopicMutation
Mutation returns the TopicMutation object of the builder.
func (*TopicCreate) OnConflict ¶ added in v0.13.52
func (tc *TopicCreate) OnConflict(opts ...sql.ConflictOption) *TopicUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Topic.Create(). SetName(v). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.TopicUpsert) { SetName(v+v). }). Exec(ctx)
func (*TopicCreate) OnConflictColumns ¶ added in v0.13.52
func (tc *TopicCreate) OnConflictColumns(columns ...string) *TopicUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Topic.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*TopicCreate) Save ¶ added in v0.13.52
func (tc *TopicCreate) Save(ctx context.Context) (*Topic, error)
Save creates the Topic in the database.
func (*TopicCreate) SaveX ¶ added in v0.13.52
func (tc *TopicCreate) SaveX(ctx context.Context) *Topic
SaveX calls Save and panics if Save returns an error.
func (*TopicCreate) SetCreatedAt ¶ added in v0.13.52
func (tc *TopicCreate) SetCreatedAt(t time.Time) *TopicCreate
SetCreatedAt sets the "createdAt" field.
func (*TopicCreate) SetDeletedAt ¶ added in v0.13.52
func (tc *TopicCreate) SetDeletedAt(t time.Time) *TopicCreate
SetDeletedAt sets the "deletedAt" field.
func (*TopicCreate) SetID ¶ added in v0.13.52
func (tc *TopicCreate) SetID(u uuid.UUID) *TopicCreate
SetID sets the "id" field.
func (*TopicCreate) SetLabels ¶ added in v0.13.52
func (tc *TopicCreate) SetLabels(m map[string]string) *TopicCreate
SetLabels sets the "labels" field.
func (*TopicCreate) SetLive ¶ added in v0.13.52
func (tc *TopicCreate) SetLive(b bool) *TopicCreate
SetLive sets the "live" field.
func (*TopicCreate) SetName ¶ added in v0.13.52
func (tc *TopicCreate) SetName(s string) *TopicCreate
SetName sets the "name" field.
func (*TopicCreate) SetNillableCreatedAt ¶ added in v0.13.52
func (tc *TopicCreate) SetNillableCreatedAt(t *time.Time) *TopicCreate
SetNillableCreatedAt sets the "createdAt" field if the given value is not nil.
func (*TopicCreate) SetNillableDeletedAt ¶ added in v0.13.52
func (tc *TopicCreate) SetNillableDeletedAt(t *time.Time) *TopicCreate
SetNillableDeletedAt sets the "deletedAt" field if the given value is not nil.
func (*TopicCreate) SetNillableID ¶ added in v0.13.52
func (tc *TopicCreate) SetNillableID(u *uuid.UUID) *TopicCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*TopicCreate) SetNillableLive ¶ added in v0.13.52
func (tc *TopicCreate) SetNillableLive(b *bool) *TopicCreate
SetNillableLive sets the "live" field if the given value is not nil.
type TopicCreateBulk ¶ added in v0.13.52
type TopicCreateBulk struct {
// contains filtered or unexported fields
}
TopicCreateBulk is the builder for creating many Topic entities in bulk.
func (*TopicCreateBulk) Exec ¶ added in v0.13.52
func (tcb *TopicCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*TopicCreateBulk) ExecX ¶ added in v0.13.52
func (tcb *TopicCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TopicCreateBulk) OnConflict ¶ added in v0.13.52
func (tcb *TopicCreateBulk) OnConflict(opts ...sql.ConflictOption) *TopicUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Topic.CreateBulk(builders...). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.TopicUpsert) { SetName(v+v). }). Exec(ctx)
func (*TopicCreateBulk) OnConflictColumns ¶ added in v0.13.52
func (tcb *TopicCreateBulk) OnConflictColumns(columns ...string) *TopicUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Topic.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
type TopicDelete ¶ added in v0.13.52
type TopicDelete struct {
// contains filtered or unexported fields
}
TopicDelete is the builder for deleting a Topic entity.
func (*TopicDelete) Exec ¶ added in v0.13.52
func (td *TopicDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*TopicDelete) ExecX ¶ added in v0.13.52
func (td *TopicDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*TopicDelete) Where ¶ added in v0.13.52
func (td *TopicDelete) Where(ps ...predicate.Topic) *TopicDelete
Where appends a list predicates to the TopicDelete builder.
type TopicDeleteOne ¶ added in v0.13.52
type TopicDeleteOne struct {
// contains filtered or unexported fields
}
TopicDeleteOne is the builder for deleting a single Topic entity.
func (*TopicDeleteOne) Exec ¶ added in v0.13.52
func (tdo *TopicDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*TopicDeleteOne) ExecX ¶ added in v0.13.52
func (tdo *TopicDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TopicDeleteOne) Where ¶ added in v0.13.52
func (tdo *TopicDeleteOne) Where(ps ...predicate.Topic) *TopicDeleteOne
Where appends a list predicates to the TopicDelete builder.
type TopicEdges ¶ added in v0.13.52
type TopicEdges struct { // Subscriptions holds the value of the subscriptions edge. Subscriptions []*Subscription `json:"subscriptions,omitempty"` // Messages holds the value of the messages edge. Messages []*Message `json:"messages,omitempty"` // contains filtered or unexported fields }
TopicEdges holds the relations/edges for other nodes in the graph.
func (TopicEdges) MessagesOrErr ¶ added in v0.13.52
func (e TopicEdges) MessagesOrErr() ([]*Message, error)
MessagesOrErr returns the Messages value or an error if the edge was not loaded in eager-loading.
func (TopicEdges) SubscriptionsOrErr ¶ added in v0.13.52
func (e TopicEdges) SubscriptionsOrErr() ([]*Subscription, error)
SubscriptionsOrErr returns the Subscriptions value or an error if the edge was not loaded in eager-loading.
type TopicFilter ¶ added in v0.13.52
type TopicFilter struct {
// contains filtered or unexported fields
}
TopicFilter provides a generic filtering capability at runtime for TopicQuery.
func (*TopicFilter) Where ¶ added in v0.13.52
func (f *TopicFilter) Where(p entql.P)
Where applies the entql predicate on the query filter.
func (*TopicFilter) WhereCreatedAt ¶ added in v0.13.52
func (f *TopicFilter) WhereCreatedAt(p entql.TimeP)
WhereCreatedAt applies the entql time.Time predicate on the createdAt field.
func (*TopicFilter) WhereDeletedAt ¶ added in v0.13.52
func (f *TopicFilter) WhereDeletedAt(p entql.TimeP)
WhereDeletedAt applies the entql time.Time predicate on the deletedAt field.
func (*TopicFilter) WhereHasMessages ¶ added in v0.13.52
func (f *TopicFilter) WhereHasMessages()
WhereHasMessages applies a predicate to check if query has an edge messages.
func (*TopicFilter) WhereHasMessagesWith ¶ added in v0.13.52
func (f *TopicFilter) WhereHasMessagesWith(preds ...predicate.Message)
WhereHasMessagesWith applies a predicate to check if query has an edge messages with a given conditions (other predicates).
func (*TopicFilter) WhereHasSubscriptions ¶ added in v0.13.52
func (f *TopicFilter) WhereHasSubscriptions()
WhereHasSubscriptions applies a predicate to check if query has an edge subscriptions.
func (*TopicFilter) WhereHasSubscriptionsWith ¶ added in v0.13.52
func (f *TopicFilter) WhereHasSubscriptionsWith(preds ...predicate.Subscription)
WhereHasSubscriptionsWith applies a predicate to check if query has an edge subscriptions with a given conditions (other predicates).
func (*TopicFilter) WhereID ¶ added in v0.13.52
func (f *TopicFilter) WhereID(p entql.ValueP)
WhereID applies the entql [16]byte predicate on the id field.
func (*TopicFilter) WhereLabels ¶ added in v0.13.52
func (f *TopicFilter) WhereLabels(p entql.BytesP)
WhereLabels applies the entql json.RawMessage predicate on the labels field.
func (*TopicFilter) WhereLive ¶ added in v0.13.52
func (f *TopicFilter) WhereLive(p entql.BoolP)
WhereLive applies the entql bool predicate on the live field.
func (*TopicFilter) WhereName ¶ added in v0.13.52
func (f *TopicFilter) WhereName(p entql.StringP)
WhereName applies the entql string predicate on the name field.
type TopicGroupBy ¶ added in v0.13.52
type TopicGroupBy struct {
// contains filtered or unexported fields
}
TopicGroupBy is the group-by builder for Topic entities.
func (*TopicGroupBy) Aggregate ¶ added in v0.13.52
func (tgb *TopicGroupBy) Aggregate(fns ...AggregateFunc) *TopicGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*TopicGroupBy) Bool ¶ added in v0.13.52
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*TopicGroupBy) Bools ¶ added in v0.13.52
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*TopicGroupBy) BoolsX ¶ added in v0.13.52
BoolsX is like Bools, but panics if an error occurs.
func (*TopicGroupBy) Float64 ¶ added in v0.13.52
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*TopicGroupBy) Float64X ¶ added in v0.13.52
Float64X is like Float64, but panics if an error occurs.
func (*TopicGroupBy) Float64s ¶ added in v0.13.52
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*TopicGroupBy) Float64sX ¶ added in v0.13.52
Float64sX is like Float64s, but panics if an error occurs.
func (*TopicGroupBy) Int ¶ added in v0.13.52
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*TopicGroupBy) Ints ¶ added in v0.13.52
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*TopicGroupBy) Scan ¶ added in v0.13.52
func (tgb *TopicGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*TopicGroupBy) String ¶ added in v0.13.52
String returns a single string from a selector. It is only allowed when selecting one field.
func (*TopicGroupBy) StringX ¶ added in v0.13.52
StringX is like String, but panics if an error occurs.
type TopicMutation ¶ added in v0.13.52
type TopicMutation struct {
// contains filtered or unexported fields
}
TopicMutation represents an operation that mutates the Topic nodes in the graph.
func (*TopicMutation) AddField ¶ added in v0.13.52
func (m *TopicMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*TopicMutation) AddMessageIDs ¶ added in v0.13.52
func (m *TopicMutation) AddMessageIDs(ids ...uuid.UUID)
AddMessageIDs adds the "messages" edge to the Message entity by ids.
func (*TopicMutation) AddSubscriptionIDs ¶ added in v0.13.52
func (m *TopicMutation) AddSubscriptionIDs(ids ...uuid.UUID)
AddSubscriptionIDs adds the "subscriptions" edge to the Subscription entity by ids.
func (*TopicMutation) AddedEdges ¶ added in v0.13.52
func (m *TopicMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*TopicMutation) AddedField ¶ added in v0.13.52
func (m *TopicMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*TopicMutation) AddedFields ¶ added in v0.13.52
func (m *TopicMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*TopicMutation) AddedIDs ¶ added in v0.13.52
func (m *TopicMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*TopicMutation) ClearDeletedAt ¶ added in v0.13.52
func (m *TopicMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deletedAt" field.
func (*TopicMutation) ClearEdge ¶ added in v0.13.52
func (m *TopicMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*TopicMutation) ClearField ¶ added in v0.13.52
func (m *TopicMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*TopicMutation) ClearLabels ¶ added in v0.13.52
func (m *TopicMutation) ClearLabels()
ClearLabels clears the value of the "labels" field.
func (*TopicMutation) ClearLive ¶ added in v0.13.52
func (m *TopicMutation) ClearLive()
ClearLive clears the value of the "live" field.
func (*TopicMutation) ClearMessages ¶ added in v0.13.52
func (m *TopicMutation) ClearMessages()
ClearMessages clears the "messages" edge to the Message entity.
func (*TopicMutation) ClearSubscriptions ¶ added in v0.13.52
func (m *TopicMutation) ClearSubscriptions()
ClearSubscriptions clears the "subscriptions" edge to the Subscription entity.
func (*TopicMutation) ClearedEdges ¶ added in v0.13.52
func (m *TopicMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*TopicMutation) ClearedFields ¶ added in v0.13.52
func (m *TopicMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (TopicMutation) Client ¶ added in v0.13.52
func (m TopicMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*TopicMutation) CreatedAt ¶ added in v0.13.52
func (m *TopicMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "createdAt" field in the mutation.
func (*TopicMutation) DeletedAt ¶ added in v0.13.52
func (m *TopicMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deletedAt" field in the mutation.
func (*TopicMutation) DeletedAtCleared ¶ added in v0.13.52
func (m *TopicMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deletedAt" field was cleared in this mutation.
func (*TopicMutation) EdgeCleared ¶ added in v0.13.52
func (m *TopicMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*TopicMutation) Field ¶ added in v0.13.52
func (m *TopicMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*TopicMutation) FieldCleared ¶ added in v0.13.52
func (m *TopicMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*TopicMutation) Fields ¶ added in v0.13.52
func (m *TopicMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*TopicMutation) Filter ¶ added in v0.13.52
func (m *TopicMutation) Filter() *TopicFilter
Filter returns an entql.Where implementation to apply filters on the TopicMutation builder.
func (*TopicMutation) ID ¶ added in v0.13.52
func (m *TopicMutation) ID() (id uuid.UUID, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*TopicMutation) IDs ¶ added in v0.13.52
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*TopicMutation) Labels ¶ added in v0.13.52
func (m *TopicMutation) Labels() (r map[string]string, exists bool)
Labels returns the value of the "labels" field in the mutation.
func (*TopicMutation) LabelsCleared ¶ added in v0.13.52
func (m *TopicMutation) LabelsCleared() bool
LabelsCleared returns if the "labels" field was cleared in this mutation.
func (*TopicMutation) Live ¶ added in v0.13.52
func (m *TopicMutation) Live() (r bool, exists bool)
Live returns the value of the "live" field in the mutation.
func (*TopicMutation) LiveCleared ¶ added in v0.13.52
func (m *TopicMutation) LiveCleared() bool
LiveCleared returns if the "live" field was cleared in this mutation.
func (*TopicMutation) MessagesCleared ¶ added in v0.13.52
func (m *TopicMutation) MessagesCleared() bool
MessagesCleared reports if the "messages" edge to the Message entity was cleared.
func (*TopicMutation) MessagesIDs ¶ added in v0.13.52
func (m *TopicMutation) MessagesIDs() (ids []uuid.UUID)
MessagesIDs returns the "messages" edge IDs in the mutation.
func (*TopicMutation) Name ¶ added in v0.13.52
func (m *TopicMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*TopicMutation) OldCreatedAt ¶ added in v0.13.52
OldCreatedAt returns the old "createdAt" field's value of the Topic entity. If the Topic object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TopicMutation) OldDeletedAt ¶ added in v0.13.52
OldDeletedAt returns the old "deletedAt" field's value of the Topic entity. If the Topic object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TopicMutation) OldField ¶ added in v0.13.52
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*TopicMutation) OldLabels ¶ added in v0.13.52
OldLabels returns the old "labels" field's value of the Topic entity. If the Topic object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TopicMutation) OldLive ¶ added in v0.13.52
func (m *TopicMutation) OldLive(ctx context.Context) (v *bool, err error)
OldLive returns the old "live" field's value of the Topic entity. If the Topic object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TopicMutation) OldName ¶ added in v0.13.52
func (m *TopicMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the Topic entity. If the Topic object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TopicMutation) Op ¶ added in v0.13.52
func (m *TopicMutation) Op() Op
Op returns the operation name.
func (*TopicMutation) RemoveMessageIDs ¶ added in v0.13.52
func (m *TopicMutation) RemoveMessageIDs(ids ...uuid.UUID)
RemoveMessageIDs removes the "messages" edge to the Message entity by IDs.
func (*TopicMutation) RemoveSubscriptionIDs ¶ added in v0.13.52
func (m *TopicMutation) RemoveSubscriptionIDs(ids ...uuid.UUID)
RemoveSubscriptionIDs removes the "subscriptions" edge to the Subscription entity by IDs.
func (*TopicMutation) RemovedEdges ¶ added in v0.13.52
func (m *TopicMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*TopicMutation) RemovedIDs ¶ added in v0.13.52
func (m *TopicMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*TopicMutation) RemovedMessagesIDs ¶ added in v0.13.52
func (m *TopicMutation) RemovedMessagesIDs() (ids []uuid.UUID)
RemovedMessages returns the removed IDs of the "messages" edge to the Message entity.
func (*TopicMutation) RemovedSubscriptionsIDs ¶ added in v0.13.52
func (m *TopicMutation) RemovedSubscriptionsIDs() (ids []uuid.UUID)
RemovedSubscriptions returns the removed IDs of the "subscriptions" edge to the Subscription entity.
func (*TopicMutation) ResetCreatedAt ¶ added in v0.13.52
func (m *TopicMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "createdAt" field.
func (*TopicMutation) ResetDeletedAt ¶ added in v0.13.52
func (m *TopicMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deletedAt" field.
func (*TopicMutation) ResetEdge ¶ added in v0.13.52
func (m *TopicMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*TopicMutation) ResetField ¶ added in v0.13.52
func (m *TopicMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*TopicMutation) ResetLabels ¶ added in v0.13.52
func (m *TopicMutation) ResetLabels()
ResetLabels resets all changes to the "labels" field.
func (*TopicMutation) ResetLive ¶ added in v0.13.52
func (m *TopicMutation) ResetLive()
ResetLive resets all changes to the "live" field.
func (*TopicMutation) ResetMessages ¶ added in v0.13.52
func (m *TopicMutation) ResetMessages()
ResetMessages resets all changes to the "messages" edge.
func (*TopicMutation) ResetName ¶ added in v0.13.52
func (m *TopicMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*TopicMutation) ResetSubscriptions ¶ added in v0.13.52
func (m *TopicMutation) ResetSubscriptions()
ResetSubscriptions resets all changes to the "subscriptions" edge.
func (*TopicMutation) SetCreatedAt ¶ added in v0.13.52
func (m *TopicMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "createdAt" field.
func (*TopicMutation) SetDeletedAt ¶ added in v0.13.52
func (m *TopicMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deletedAt" field.
func (*TopicMutation) SetField ¶ added in v0.13.52
func (m *TopicMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*TopicMutation) SetID ¶ added in v0.13.52
func (m *TopicMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Topic entities.
func (*TopicMutation) SetLabels ¶ added in v0.13.52
func (m *TopicMutation) SetLabels(value map[string]string)
SetLabels sets the "labels" field.
func (*TopicMutation) SetLive ¶ added in v0.13.52
func (m *TopicMutation) SetLive(b bool)
SetLive sets the "live" field.
func (*TopicMutation) SetName ¶ added in v0.13.52
func (m *TopicMutation) SetName(s string)
SetName sets the "name" field.
func (*TopicMutation) SetOp ¶ added in v0.13.52
func (m *TopicMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*TopicMutation) SubscriptionsCleared ¶ added in v0.13.52
func (m *TopicMutation) SubscriptionsCleared() bool
SubscriptionsCleared reports if the "subscriptions" edge to the Subscription entity was cleared.
func (*TopicMutation) SubscriptionsIDs ¶ added in v0.13.52
func (m *TopicMutation) SubscriptionsIDs() (ids []uuid.UUID)
SubscriptionsIDs returns the "subscriptions" edge IDs in the mutation.
func (TopicMutation) Tx ¶ added in v0.13.52
func (m TopicMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*TopicMutation) Type ¶ added in v0.13.52
func (m *TopicMutation) Type() string
Type returns the node type of this mutation (Topic).
func (*TopicMutation) Where ¶ added in v0.13.52
func (m *TopicMutation) Where(ps ...predicate.Topic)
Where appends a list predicates to the TopicMutation builder.
func (*TopicMutation) WhereP ¶ added in v0.13.52
func (m *TopicMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the TopicMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type TopicQuery ¶ added in v0.13.52
type TopicQuery struct {
// contains filtered or unexported fields
}
TopicQuery is the builder for querying Topic entities.
func (*TopicQuery) Aggregate ¶ added in v0.13.52
func (tq *TopicQuery) Aggregate(fns ...AggregateFunc) *TopicSelect
Aggregate returns a TopicSelect configured with the given aggregations.
func (*TopicQuery) All ¶ added in v0.13.52
func (tq *TopicQuery) All(ctx context.Context) ([]*Topic, error)
All executes the query and returns a list of Topics.
func (*TopicQuery) AllX ¶ added in v0.13.52
func (tq *TopicQuery) AllX(ctx context.Context) []*Topic
AllX is like All, but panics if an error occurs.
func (*TopicQuery) Clone ¶ added in v0.13.52
func (tq *TopicQuery) Clone() *TopicQuery
Clone returns a duplicate of the TopicQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*TopicQuery) Count ¶ added in v0.13.52
func (tq *TopicQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*TopicQuery) CountX ¶ added in v0.13.52
func (tq *TopicQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*TopicQuery) Exist ¶ added in v0.13.52
func (tq *TopicQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*TopicQuery) ExistX ¶ added in v0.13.52
func (tq *TopicQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*TopicQuery) Filter ¶ added in v0.13.52
func (tq *TopicQuery) Filter() *TopicFilter
Filter returns a Filter implementation to apply filters on the TopicQuery builder.
func (*TopicQuery) First ¶ added in v0.13.52
func (tq *TopicQuery) First(ctx context.Context) (*Topic, error)
First returns the first Topic entity from the query. Returns a *NotFoundError when no Topic was found.
func (*TopicQuery) FirstID ¶ added in v0.13.52
FirstID returns the first Topic ID from the query. Returns a *NotFoundError when no Topic ID was found.
func (*TopicQuery) FirstIDX ¶ added in v0.13.52
func (tq *TopicQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*TopicQuery) FirstX ¶ added in v0.13.52
func (tq *TopicQuery) FirstX(ctx context.Context) *Topic
FirstX is like First, but panics if an error occurs.
func (*TopicQuery) ForShare ¶ added in v0.13.52
func (tq *TopicQuery) ForShare(opts ...sql.LockOption) *TopicQuery
ForShare behaves similarly to ForUpdate, except that it acquires a shared mode lock on any rows that are read. Other sessions can read the rows, but cannot modify them until your transaction commits.
func (*TopicQuery) ForUpdate ¶ added in v0.13.52
func (tq *TopicQuery) ForUpdate(opts ...sql.LockOption) *TopicQuery
ForUpdate locks the selected rows against concurrent updates, and prevent them from being updated, deleted or "selected ... for update" by other sessions, until the transaction is either committed or rolled-back.
func (*TopicQuery) GroupBy ¶ added in v0.13.52
func (tq *TopicQuery) GroupBy(field string, fields ...string) *TopicGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { Name string `json:"name,omitempty"` Count int `json:"count,omitempty"` } client.Topic.Query(). GroupBy(topic.FieldName). Aggregate(ent.Count()). Scan(ctx, &v)
func (*TopicQuery) IDsX ¶ added in v0.13.52
func (tq *TopicQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*TopicQuery) Limit ¶ added in v0.13.52
func (tq *TopicQuery) Limit(limit int) *TopicQuery
Limit the number of records to be returned by this query.
func (*TopicQuery) Offset ¶ added in v0.13.52
func (tq *TopicQuery) Offset(offset int) *TopicQuery
Offset to start from.
func (*TopicQuery) Only ¶ added in v0.13.52
func (tq *TopicQuery) Only(ctx context.Context) (*Topic, error)
Only returns a single Topic entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Topic entity is found. Returns a *NotFoundError when no Topic entities are found.
func (*TopicQuery) OnlyID ¶ added in v0.13.52
OnlyID is like Only, but returns the only Topic ID in the query. Returns a *NotSingularError when more than one Topic ID is found. Returns a *NotFoundError when no entities are found.
func (*TopicQuery) OnlyIDX ¶ added in v0.13.52
func (tq *TopicQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*TopicQuery) OnlyX ¶ added in v0.13.52
func (tq *TopicQuery) OnlyX(ctx context.Context) *Topic
OnlyX is like Only, but panics if an error occurs.
func (*TopicQuery) Order ¶ added in v0.13.52
func (tq *TopicQuery) Order(o ...topic.OrderOption) *TopicQuery
Order specifies how the records should be ordered.
func (*TopicQuery) QueryMessages ¶ added in v0.13.52
func (tq *TopicQuery) QueryMessages() *MessageQuery
QueryMessages chains the current query on the "messages" edge.
func (*TopicQuery) QuerySubscriptions ¶ added in v0.13.52
func (tq *TopicQuery) QuerySubscriptions() *SubscriptionQuery
QuerySubscriptions chains the current query on the "subscriptions" edge.
func (*TopicQuery) Select ¶ added in v0.13.52
func (tq *TopicQuery) Select(fields ...string) *TopicSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { Name string `json:"name,omitempty"` } client.Topic.Query(). Select(topic.FieldName). Scan(ctx, &v)
func (*TopicQuery) Unique ¶ added in v0.13.52
func (tq *TopicQuery) Unique(unique bool) *TopicQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*TopicQuery) Where ¶ added in v0.13.52
func (tq *TopicQuery) Where(ps ...predicate.Topic) *TopicQuery
Where adds a new predicate for the TopicQuery builder.
func (*TopicQuery) WithMessages ¶ added in v0.13.52
func (tq *TopicQuery) WithMessages(opts ...func(*MessageQuery)) *TopicQuery
WithMessages tells the query-builder to eager-load the nodes that are connected to the "messages" edge. The optional arguments are used to configure the query builder of the edge.
func (*TopicQuery) WithSubscriptions ¶ added in v0.13.52
func (tq *TopicQuery) WithSubscriptions(opts ...func(*SubscriptionQuery)) *TopicQuery
WithSubscriptions tells the query-builder to eager-load the nodes that are connected to the "subscriptions" edge. The optional arguments are used to configure the query builder of the edge.
type TopicSelect ¶ added in v0.13.52
type TopicSelect struct { *TopicQuery // contains filtered or unexported fields }
TopicSelect is the builder for selecting fields of Topic entities.
func (*TopicSelect) Aggregate ¶ added in v0.13.52
func (ts *TopicSelect) Aggregate(fns ...AggregateFunc) *TopicSelect
Aggregate adds the given aggregation functions to the selector query.
func (*TopicSelect) Bool ¶ added in v0.13.52
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*TopicSelect) Bools ¶ added in v0.13.52
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*TopicSelect) Float64 ¶ added in v0.13.52
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*TopicSelect) Float64X ¶ added in v0.13.52
Float64X is like Float64, but panics if an error occurs.
func (*TopicSelect) Float64s ¶ added in v0.13.52
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*TopicSelect) Float64sX ¶ added in v0.13.52
Float64sX is like Float64s, but panics if an error occurs.
func (*TopicSelect) Int ¶ added in v0.13.52
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*TopicSelect) Ints ¶ added in v0.13.52
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*TopicSelect) Scan ¶ added in v0.13.52
func (ts *TopicSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*TopicSelect) String ¶ added in v0.13.52
String returns a single string from a selector. It is only allowed when selecting one field.
func (*TopicSelect) StringX ¶ added in v0.13.52
StringX is like String, but panics if an error occurs.
type TopicUpdate ¶ added in v0.13.52
type TopicUpdate struct {
// contains filtered or unexported fields
}
TopicUpdate is the builder for updating Topic entities.
func (*TopicUpdate) AddMessageIDs ¶ added in v0.13.52
func (tu *TopicUpdate) AddMessageIDs(ids ...uuid.UUID) *TopicUpdate
AddMessageIDs adds the "messages" edge to the Message entity by IDs.
func (*TopicUpdate) AddMessages ¶ added in v0.13.52
func (tu *TopicUpdate) AddMessages(m ...*Message) *TopicUpdate
AddMessages adds the "messages" edges to the Message entity.
func (*TopicUpdate) AddSubscriptionIDs ¶ added in v0.13.52
func (tu *TopicUpdate) AddSubscriptionIDs(ids ...uuid.UUID) *TopicUpdate
AddSubscriptionIDs adds the "subscriptions" edge to the Subscription entity by IDs.
func (*TopicUpdate) AddSubscriptions ¶ added in v0.13.52
func (tu *TopicUpdate) AddSubscriptions(s ...*Subscription) *TopicUpdate
AddSubscriptions adds the "subscriptions" edges to the Subscription entity.
func (*TopicUpdate) ClearDeletedAt ¶ added in v0.13.52
func (tu *TopicUpdate) ClearDeletedAt() *TopicUpdate
ClearDeletedAt clears the value of the "deletedAt" field.
func (*TopicUpdate) ClearLabels ¶ added in v0.13.52
func (tu *TopicUpdate) ClearLabels() *TopicUpdate
ClearLabels clears the value of the "labels" field.
func (*TopicUpdate) ClearLive ¶ added in v0.13.52
func (tu *TopicUpdate) ClearLive() *TopicUpdate
ClearLive clears the value of the "live" field.
func (*TopicUpdate) ClearMessages ¶ added in v0.13.52
func (tu *TopicUpdate) ClearMessages() *TopicUpdate
ClearMessages clears all "messages" edges to the Message entity.
func (*TopicUpdate) ClearSubscriptions ¶ added in v0.13.52
func (tu *TopicUpdate) ClearSubscriptions() *TopicUpdate
ClearSubscriptions clears all "subscriptions" edges to the Subscription entity.
func (*TopicUpdate) Exec ¶ added in v0.13.52
func (tu *TopicUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*TopicUpdate) ExecX ¶ added in v0.13.52
func (tu *TopicUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TopicUpdate) Mutation ¶ added in v0.13.52
func (tu *TopicUpdate) Mutation() *TopicMutation
Mutation returns the TopicMutation object of the builder.
func (*TopicUpdate) RemoveMessageIDs ¶ added in v0.13.52
func (tu *TopicUpdate) RemoveMessageIDs(ids ...uuid.UUID) *TopicUpdate
RemoveMessageIDs removes the "messages" edge to Message entities by IDs.
func (*TopicUpdate) RemoveMessages ¶ added in v0.13.52
func (tu *TopicUpdate) RemoveMessages(m ...*Message) *TopicUpdate
RemoveMessages removes "messages" edges to Message entities.
func (*TopicUpdate) RemoveSubscriptionIDs ¶ added in v0.13.52
func (tu *TopicUpdate) RemoveSubscriptionIDs(ids ...uuid.UUID) *TopicUpdate
RemoveSubscriptionIDs removes the "subscriptions" edge to Subscription entities by IDs.
func (*TopicUpdate) RemoveSubscriptions ¶ added in v0.13.52
func (tu *TopicUpdate) RemoveSubscriptions(s ...*Subscription) *TopicUpdate
RemoveSubscriptions removes "subscriptions" edges to Subscription entities.
func (*TopicUpdate) Save ¶ added in v0.13.52
func (tu *TopicUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*TopicUpdate) SaveX ¶ added in v0.13.52
func (tu *TopicUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*TopicUpdate) SetDeletedAt ¶ added in v0.13.52
func (tu *TopicUpdate) SetDeletedAt(t time.Time) *TopicUpdate
SetDeletedAt sets the "deletedAt" field.
func (*TopicUpdate) SetLabels ¶ added in v0.13.52
func (tu *TopicUpdate) SetLabels(m map[string]string) *TopicUpdate
SetLabels sets the "labels" field.
func (*TopicUpdate) SetLive ¶ added in v0.13.52
func (tu *TopicUpdate) SetLive(b bool) *TopicUpdate
SetLive sets the "live" field.
func (*TopicUpdate) SetNillableDeletedAt ¶ added in v0.13.52
func (tu *TopicUpdate) SetNillableDeletedAt(t *time.Time) *TopicUpdate
SetNillableDeletedAt sets the "deletedAt" field if the given value is not nil.
func (*TopicUpdate) SetNillableLive ¶ added in v0.13.52
func (tu *TopicUpdate) SetNillableLive(b *bool) *TopicUpdate
SetNillableLive sets the "live" field if the given value is not nil.
func (*TopicUpdate) Where ¶ added in v0.13.52
func (tu *TopicUpdate) Where(ps ...predicate.Topic) *TopicUpdate
Where appends a list predicates to the TopicUpdate builder.
type TopicUpdateOne ¶ added in v0.13.52
type TopicUpdateOne struct {
// contains filtered or unexported fields
}
TopicUpdateOne is the builder for updating a single Topic entity.
func (*TopicUpdateOne) AddMessageIDs ¶ added in v0.13.52
func (tuo *TopicUpdateOne) AddMessageIDs(ids ...uuid.UUID) *TopicUpdateOne
AddMessageIDs adds the "messages" edge to the Message entity by IDs.
func (*TopicUpdateOne) AddMessages ¶ added in v0.13.52
func (tuo *TopicUpdateOne) AddMessages(m ...*Message) *TopicUpdateOne
AddMessages adds the "messages" edges to the Message entity.
func (*TopicUpdateOne) AddSubscriptionIDs ¶ added in v0.13.52
func (tuo *TopicUpdateOne) AddSubscriptionIDs(ids ...uuid.UUID) *TopicUpdateOne
AddSubscriptionIDs adds the "subscriptions" edge to the Subscription entity by IDs.
func (*TopicUpdateOne) AddSubscriptions ¶ added in v0.13.52
func (tuo *TopicUpdateOne) AddSubscriptions(s ...*Subscription) *TopicUpdateOne
AddSubscriptions adds the "subscriptions" edges to the Subscription entity.
func (*TopicUpdateOne) ClearDeletedAt ¶ added in v0.13.52
func (tuo *TopicUpdateOne) ClearDeletedAt() *TopicUpdateOne
ClearDeletedAt clears the value of the "deletedAt" field.
func (*TopicUpdateOne) ClearLabels ¶ added in v0.13.52
func (tuo *TopicUpdateOne) ClearLabels() *TopicUpdateOne
ClearLabels clears the value of the "labels" field.
func (*TopicUpdateOne) ClearLive ¶ added in v0.13.52
func (tuo *TopicUpdateOne) ClearLive() *TopicUpdateOne
ClearLive clears the value of the "live" field.
func (*TopicUpdateOne) ClearMessages ¶ added in v0.13.52
func (tuo *TopicUpdateOne) ClearMessages() *TopicUpdateOne
ClearMessages clears all "messages" edges to the Message entity.
func (*TopicUpdateOne) ClearSubscriptions ¶ added in v0.13.52
func (tuo *TopicUpdateOne) ClearSubscriptions() *TopicUpdateOne
ClearSubscriptions clears all "subscriptions" edges to the Subscription entity.
func (*TopicUpdateOne) Exec ¶ added in v0.13.52
func (tuo *TopicUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*TopicUpdateOne) ExecX ¶ added in v0.13.52
func (tuo *TopicUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TopicUpdateOne) Mutation ¶ added in v0.13.52
func (tuo *TopicUpdateOne) Mutation() *TopicMutation
Mutation returns the TopicMutation object of the builder.
func (*TopicUpdateOne) RemoveMessageIDs ¶ added in v0.13.52
func (tuo *TopicUpdateOne) RemoveMessageIDs(ids ...uuid.UUID) *TopicUpdateOne
RemoveMessageIDs removes the "messages" edge to Message entities by IDs.
func (*TopicUpdateOne) RemoveMessages ¶ added in v0.13.52
func (tuo *TopicUpdateOne) RemoveMessages(m ...*Message) *TopicUpdateOne
RemoveMessages removes "messages" edges to Message entities.
func (*TopicUpdateOne) RemoveSubscriptionIDs ¶ added in v0.13.52
func (tuo *TopicUpdateOne) RemoveSubscriptionIDs(ids ...uuid.UUID) *TopicUpdateOne
RemoveSubscriptionIDs removes the "subscriptions" edge to Subscription entities by IDs.
func (*TopicUpdateOne) RemoveSubscriptions ¶ added in v0.13.52
func (tuo *TopicUpdateOne) RemoveSubscriptions(s ...*Subscription) *TopicUpdateOne
RemoveSubscriptions removes "subscriptions" edges to Subscription entities.
func (*TopicUpdateOne) Save ¶ added in v0.13.52
func (tuo *TopicUpdateOne) Save(ctx context.Context) (*Topic, error)
Save executes the query and returns the updated Topic entity.
func (*TopicUpdateOne) SaveX ¶ added in v0.13.52
func (tuo *TopicUpdateOne) SaveX(ctx context.Context) *Topic
SaveX is like Save, but panics if an error occurs.
func (*TopicUpdateOne) Select ¶ added in v0.13.52
func (tuo *TopicUpdateOne) Select(field string, fields ...string) *TopicUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*TopicUpdateOne) SetDeletedAt ¶ added in v0.13.52
func (tuo *TopicUpdateOne) SetDeletedAt(t time.Time) *TopicUpdateOne
SetDeletedAt sets the "deletedAt" field.
func (*TopicUpdateOne) SetLabels ¶ added in v0.13.52
func (tuo *TopicUpdateOne) SetLabels(m map[string]string) *TopicUpdateOne
SetLabels sets the "labels" field.
func (*TopicUpdateOne) SetLive ¶ added in v0.13.52
func (tuo *TopicUpdateOne) SetLive(b bool) *TopicUpdateOne
SetLive sets the "live" field.
func (*TopicUpdateOne) SetNillableDeletedAt ¶ added in v0.13.52
func (tuo *TopicUpdateOne) SetNillableDeletedAt(t *time.Time) *TopicUpdateOne
SetNillableDeletedAt sets the "deletedAt" field if the given value is not nil.
func (*TopicUpdateOne) SetNillableLive ¶ added in v0.13.52
func (tuo *TopicUpdateOne) SetNillableLive(b *bool) *TopicUpdateOne
SetNillableLive sets the "live" field if the given value is not nil.
func (*TopicUpdateOne) Where ¶ added in v0.13.52
func (tuo *TopicUpdateOne) Where(ps ...predicate.Topic) *TopicUpdateOne
Where appends a list predicates to the TopicUpdate builder.
type TopicUpsert ¶ added in v0.13.52
TopicUpsert is the "OnConflict" setter.
func (*TopicUpsert) ClearDeletedAt ¶ added in v0.13.52
func (u *TopicUpsert) ClearDeletedAt() *TopicUpsert
ClearDeletedAt clears the value of the "deletedAt" field.
func (*TopicUpsert) ClearLabels ¶ added in v0.13.52
func (u *TopicUpsert) ClearLabels() *TopicUpsert
ClearLabels clears the value of the "labels" field.
func (*TopicUpsert) ClearLive ¶ added in v0.13.52
func (u *TopicUpsert) ClearLive() *TopicUpsert
ClearLive clears the value of the "live" field.
func (*TopicUpsert) SetDeletedAt ¶ added in v0.13.52
func (u *TopicUpsert) SetDeletedAt(v time.Time) *TopicUpsert
SetDeletedAt sets the "deletedAt" field.
func (*TopicUpsert) SetLabels ¶ added in v0.13.52
func (u *TopicUpsert) SetLabels(v map[string]string) *TopicUpsert
SetLabels sets the "labels" field.
func (*TopicUpsert) SetLive ¶ added in v0.13.52
func (u *TopicUpsert) SetLive(v bool) *TopicUpsert
SetLive sets the "live" field.
func (*TopicUpsert) UpdateDeletedAt ¶ added in v0.13.52
func (u *TopicUpsert) UpdateDeletedAt() *TopicUpsert
UpdateDeletedAt sets the "deletedAt" field to the value that was provided on create.
func (*TopicUpsert) UpdateLabels ¶ added in v0.13.52
func (u *TopicUpsert) UpdateLabels() *TopicUpsert
UpdateLabels sets the "labels" field to the value that was provided on create.
func (*TopicUpsert) UpdateLive ¶ added in v0.13.52
func (u *TopicUpsert) UpdateLive() *TopicUpsert
UpdateLive sets the "live" field to the value that was provided on create.
type TopicUpsertBulk ¶ added in v0.13.52
type TopicUpsertBulk struct {
// contains filtered or unexported fields
}
TopicUpsertBulk is the builder for "upsert"-ing a bulk of Topic nodes.
func (*TopicUpsertBulk) ClearDeletedAt ¶ added in v0.13.52
func (u *TopicUpsertBulk) ClearDeletedAt() *TopicUpsertBulk
ClearDeletedAt clears the value of the "deletedAt" field.
func (*TopicUpsertBulk) ClearLabels ¶ added in v0.13.52
func (u *TopicUpsertBulk) ClearLabels() *TopicUpsertBulk
ClearLabels clears the value of the "labels" field.
func (*TopicUpsertBulk) ClearLive ¶ added in v0.13.52
func (u *TopicUpsertBulk) ClearLive() *TopicUpsertBulk
ClearLive clears the value of the "live" field.
func (*TopicUpsertBulk) DoNothing ¶ added in v0.13.52
func (u *TopicUpsertBulk) DoNothing() *TopicUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*TopicUpsertBulk) Exec ¶ added in v0.13.52
func (u *TopicUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*TopicUpsertBulk) ExecX ¶ added in v0.13.52
func (u *TopicUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TopicUpsertBulk) Ignore ¶ added in v0.13.52
func (u *TopicUpsertBulk) Ignore() *TopicUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Topic.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*TopicUpsertBulk) SetDeletedAt ¶ added in v0.13.52
func (u *TopicUpsertBulk) SetDeletedAt(v time.Time) *TopicUpsertBulk
SetDeletedAt sets the "deletedAt" field.
func (*TopicUpsertBulk) SetLabels ¶ added in v0.13.52
func (u *TopicUpsertBulk) SetLabels(v map[string]string) *TopicUpsertBulk
SetLabels sets the "labels" field.
func (*TopicUpsertBulk) SetLive ¶ added in v0.13.52
func (u *TopicUpsertBulk) SetLive(v bool) *TopicUpsertBulk
SetLive sets the "live" field.
func (*TopicUpsertBulk) Update ¶ added in v0.13.52
func (u *TopicUpsertBulk) Update(set func(*TopicUpsert)) *TopicUpsertBulk
Update allows overriding fields `UPDATE` values. See the TopicCreateBulk.OnConflict documentation for more info.
func (*TopicUpsertBulk) UpdateDeletedAt ¶ added in v0.13.52
func (u *TopicUpsertBulk) UpdateDeletedAt() *TopicUpsertBulk
UpdateDeletedAt sets the "deletedAt" field to the value that was provided on create.
func (*TopicUpsertBulk) UpdateLabels ¶ added in v0.13.52
func (u *TopicUpsertBulk) UpdateLabels() *TopicUpsertBulk
UpdateLabels sets the "labels" field to the value that was provided on create.
func (*TopicUpsertBulk) UpdateLive ¶ added in v0.13.52
func (u *TopicUpsertBulk) UpdateLive() *TopicUpsertBulk
UpdateLive sets the "live" field to the value that was provided on create.
func (*TopicUpsertBulk) UpdateNewValues ¶ added in v0.13.52
func (u *TopicUpsertBulk) UpdateNewValues() *TopicUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.Topic.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(topic.FieldID) }), ). Exec(ctx)
type TopicUpsertOne ¶ added in v0.13.52
type TopicUpsertOne struct {
// contains filtered or unexported fields
}
TopicUpsertOne is the builder for "upsert"-ing
one Topic node.
func (*TopicUpsertOne) ClearDeletedAt ¶ added in v0.13.52
func (u *TopicUpsertOne) ClearDeletedAt() *TopicUpsertOne
ClearDeletedAt clears the value of the "deletedAt" field.
func (*TopicUpsertOne) ClearLabels ¶ added in v0.13.52
func (u *TopicUpsertOne) ClearLabels() *TopicUpsertOne
ClearLabels clears the value of the "labels" field.
func (*TopicUpsertOne) ClearLive ¶ added in v0.13.52
func (u *TopicUpsertOne) ClearLive() *TopicUpsertOne
ClearLive clears the value of the "live" field.
func (*TopicUpsertOne) DoNothing ¶ added in v0.13.52
func (u *TopicUpsertOne) DoNothing() *TopicUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*TopicUpsertOne) Exec ¶ added in v0.13.52
func (u *TopicUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*TopicUpsertOne) ExecX ¶ added in v0.13.52
func (u *TopicUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TopicUpsertOne) ID ¶ added in v0.13.52
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*TopicUpsertOne) IDX ¶ added in v0.13.52
func (u *TopicUpsertOne) IDX(ctx context.Context) uuid.UUID
IDX is like ID, but panics if an error occurs.
func (*TopicUpsertOne) Ignore ¶ added in v0.13.52
func (u *TopicUpsertOne) Ignore() *TopicUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Topic.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*TopicUpsertOne) SetDeletedAt ¶ added in v0.13.52
func (u *TopicUpsertOne) SetDeletedAt(v time.Time) *TopicUpsertOne
SetDeletedAt sets the "deletedAt" field.
func (*TopicUpsertOne) SetLabels ¶ added in v0.13.52
func (u *TopicUpsertOne) SetLabels(v map[string]string) *TopicUpsertOne
SetLabels sets the "labels" field.
func (*TopicUpsertOne) SetLive ¶ added in v0.13.52
func (u *TopicUpsertOne) SetLive(v bool) *TopicUpsertOne
SetLive sets the "live" field.
func (*TopicUpsertOne) Update ¶ added in v0.13.52
func (u *TopicUpsertOne) Update(set func(*TopicUpsert)) *TopicUpsertOne
Update allows overriding fields `UPDATE` values. See the TopicCreate.OnConflict documentation for more info.
func (*TopicUpsertOne) UpdateDeletedAt ¶ added in v0.13.52
func (u *TopicUpsertOne) UpdateDeletedAt() *TopicUpsertOne
UpdateDeletedAt sets the "deletedAt" field to the value that was provided on create.
func (*TopicUpsertOne) UpdateLabels ¶ added in v0.13.52
func (u *TopicUpsertOne) UpdateLabels() *TopicUpsertOne
UpdateLabels sets the "labels" field to the value that was provided on create.
func (*TopicUpsertOne) UpdateLive ¶ added in v0.13.52
func (u *TopicUpsertOne) UpdateLive() *TopicUpsertOne
UpdateLive sets the "live" field to the value that was provided on create.
func (*TopicUpsertOne) UpdateNewValues ¶ added in v0.13.52
func (u *TopicUpsertOne) UpdateNewValues() *TopicUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:
client.Topic.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(topic.FieldID) }), ). Exec(ctx)
type TraverseFunc ¶ added in v0.13.52
type TraverseFunc = ent.TraverseFunc
ent aliases to avoid import conflicts in user's code.
type Tx ¶ added in v0.13.52
type Tx struct { // Delivery is the client for interacting with the Delivery builders. Delivery *DeliveryClient // Message is the client for interacting with the Message builders. Message *MessageClient // Snapshot is the client for interacting with the Snapshot builders. Snapshot *SnapshotClient // Subscription is the client for interacting with the Subscription builders. Subscription *SubscriptionClient // Topic is the client for interacting with the Topic builders. Topic *TopicClient // contains filtered or unexported fields }
Tx is a transactional client that is created by calling Client.Tx().
func TxFromContext ¶ added in v0.13.52
TxFromContext returns a Tx stored inside a context, or nil if there isn't one.
func (*Tx) OnCommit ¶ added in v0.13.52
func (tx *Tx) OnCommit(f CommitHook)
OnCommit adds a hook to call on commit.
func (*Tx) OnRollback ¶ added in v0.13.52
func (tx *Tx) OnRollback(f RollbackHook)
OnRollback adds a hook to call on rollback.
type ValidationError ¶ added in v0.13.52
type ValidationError struct { Name string // Field or edge name. // contains filtered or unexported fields }
ValidationError returns when validating a field or edge fails.
func (*ValidationError) Error ¶ added in v0.13.52
func (e *ValidationError) Error() string
Error implements the error interface.
func (*ValidationError) Unwrap ¶ added in v0.13.52
func (e *ValidationError) Unwrap() error
Unwrap implements the errors.Wrapper interface.
Source Files ¶
- client-addons.go
- client.go
- delivery.go
- delivery_create.go
- delivery_delete.go
- delivery_query.go
- delivery_update.go
- ent-addons.go
- ent.go
- entity-addons.go
- entql.go
- message.go
- message_create.go
- message_delete.go
- message_query.go
- message_update.go
- mutation.go
- runtime.go
- snapshot.go
- snapshot_create.go
- snapshot_delete.go
- snapshot_query.go
- snapshot_update.go
- subscription.go
- subscription_create.go
- subscription_delete.go
- subscription_query.go
- subscription_update.go
- topic.go
- topic_create.go
- topic_delete.go
- topic_query.go
- topic_update.go
- tx.go