Documentation
¶
Index ¶
- Constants
- Variables
- func Asc(fields ...string) func(*sql.Selector)
- func Desc(fields ...string) func(*sql.Selector)
- 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 BalanceSnapshot
- func (c *BalanceSnapshot) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *BalanceSnapshot) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bs *BalanceSnapshot) QueryEntitlement() *EntitlementQuery
- func (bs *BalanceSnapshot) String() string
- func (bs *BalanceSnapshot) Unwrap() *BalanceSnapshot
- func (bs *BalanceSnapshot) Update() *BalanceSnapshotUpdateOne
- func (bs *BalanceSnapshot) Value(name string) (ent.Value, error)
- type BalanceSnapshotClient
- func (c *BalanceSnapshotClient) Create() *BalanceSnapshotCreate
- func (c *BalanceSnapshotClient) CreateBulk(builders ...*BalanceSnapshotCreate) *BalanceSnapshotCreateBulk
- func (c *BalanceSnapshotClient) Delete() *BalanceSnapshotDelete
- func (c *BalanceSnapshotClient) DeleteOne(bs *BalanceSnapshot) *BalanceSnapshotDeleteOne
- func (c *BalanceSnapshotClient) DeleteOneID(id int) *BalanceSnapshotDeleteOne
- func (c *BalanceSnapshotClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *BalanceSnapshotClient) Get(ctx context.Context, id int) (*BalanceSnapshot, error)
- func (c *BalanceSnapshotClient) GetX(ctx context.Context, id int) *BalanceSnapshot
- func (c *BalanceSnapshotClient) Hooks() []Hook
- func (c *BalanceSnapshotClient) Intercept(interceptors ...Interceptor)
- func (c *BalanceSnapshotClient) Interceptors() []Interceptor
- func (c *BalanceSnapshotClient) MapCreateBulk(slice any, setFunc func(*BalanceSnapshotCreate, int)) *BalanceSnapshotCreateBulk
- func (c *BalanceSnapshotClient) Query() *BalanceSnapshotQuery
- func (c *BalanceSnapshotClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *BalanceSnapshotClient) QueryEntitlement(bs *BalanceSnapshot) *EntitlementQuery
- func (c *BalanceSnapshotClient) Update() *BalanceSnapshotUpdate
- func (c *BalanceSnapshotClient) UpdateOne(bs *BalanceSnapshot) *BalanceSnapshotUpdateOne
- func (c *BalanceSnapshotClient) UpdateOneID(id int) *BalanceSnapshotUpdateOne
- func (c *BalanceSnapshotClient) Use(hooks ...Hook)
- type BalanceSnapshotCreate
- func (bsc *BalanceSnapshotCreate) Exec(ctx context.Context) error
- func (c *BalanceSnapshotCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bsc *BalanceSnapshotCreate) ExecX(ctx context.Context)
- func (bsc *BalanceSnapshotCreate) Mutation() *BalanceSnapshotMutation
- func (bsc *BalanceSnapshotCreate) OnConflict(opts ...sql.ConflictOption) *BalanceSnapshotUpsertOne
- func (bsc *BalanceSnapshotCreate) OnConflictColumns(columns ...string) *BalanceSnapshotUpsertOne
- func (c *BalanceSnapshotCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bsc *BalanceSnapshotCreate) Save(ctx context.Context) (*BalanceSnapshot, error)
- func (bsc *BalanceSnapshotCreate) SaveX(ctx context.Context) *BalanceSnapshot
- func (bsc *BalanceSnapshotCreate) SetAt(t time.Time) *BalanceSnapshotCreate
- func (bsc *BalanceSnapshotCreate) SetBalance(f float64) *BalanceSnapshotCreate
- func (bsc *BalanceSnapshotCreate) SetCreatedAt(t time.Time) *BalanceSnapshotCreate
- func (bsc *BalanceSnapshotCreate) SetDeletedAt(t time.Time) *BalanceSnapshotCreate
- func (bsc *BalanceSnapshotCreate) SetEntitlement(e *Entitlement) *BalanceSnapshotCreate
- func (bsc *BalanceSnapshotCreate) SetEntitlementID(id string) *BalanceSnapshotCreate
- func (bsc *BalanceSnapshotCreate) SetGrantBalances(b balance.Map) *BalanceSnapshotCreate
- func (bsc *BalanceSnapshotCreate) SetNamespace(s string) *BalanceSnapshotCreate
- func (bsc *BalanceSnapshotCreate) SetNillableCreatedAt(t *time.Time) *BalanceSnapshotCreate
- func (bsc *BalanceSnapshotCreate) SetNillableDeletedAt(t *time.Time) *BalanceSnapshotCreate
- func (bsc *BalanceSnapshotCreate) SetNillableUpdatedAt(t *time.Time) *BalanceSnapshotCreate
- func (bsc *BalanceSnapshotCreate) SetOverage(f float64) *BalanceSnapshotCreate
- func (bsc *BalanceSnapshotCreate) SetOwnerID(s string) *BalanceSnapshotCreate
- func (bsc *BalanceSnapshotCreate) SetUpdatedAt(t time.Time) *BalanceSnapshotCreate
- type BalanceSnapshotCreateBulk
- func (bscb *BalanceSnapshotCreateBulk) Exec(ctx context.Context) error
- func (c *BalanceSnapshotCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bscb *BalanceSnapshotCreateBulk) ExecX(ctx context.Context)
- func (bscb *BalanceSnapshotCreateBulk) OnConflict(opts ...sql.ConflictOption) *BalanceSnapshotUpsertBulk
- func (bscb *BalanceSnapshotCreateBulk) OnConflictColumns(columns ...string) *BalanceSnapshotUpsertBulk
- func (c *BalanceSnapshotCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bscb *BalanceSnapshotCreateBulk) Save(ctx context.Context) ([]*BalanceSnapshot, error)
- func (bscb *BalanceSnapshotCreateBulk) SaveX(ctx context.Context) []*BalanceSnapshot
- type BalanceSnapshotDelete
- func (bsd *BalanceSnapshotDelete) Exec(ctx context.Context) (int, error)
- func (c *BalanceSnapshotDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bsd *BalanceSnapshotDelete) ExecX(ctx context.Context) int
- func (c *BalanceSnapshotDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bsd *BalanceSnapshotDelete) Where(ps ...predicate.BalanceSnapshot) *BalanceSnapshotDelete
- type BalanceSnapshotDeleteOne
- type BalanceSnapshotEdges
- type BalanceSnapshotGroupBy
- func (bsgb *BalanceSnapshotGroupBy) Aggregate(fns ...AggregateFunc) *BalanceSnapshotGroupBy
- func (s *BalanceSnapshotGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *BalanceSnapshotGroupBy) BoolX(ctx context.Context) bool
- func (s *BalanceSnapshotGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *BalanceSnapshotGroupBy) BoolsX(ctx context.Context) []bool
- func (s *BalanceSnapshotGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *BalanceSnapshotGroupBy) Float64X(ctx context.Context) float64
- func (s *BalanceSnapshotGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *BalanceSnapshotGroupBy) Float64sX(ctx context.Context) []float64
- func (s *BalanceSnapshotGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *BalanceSnapshotGroupBy) IntX(ctx context.Context) int
- func (s *BalanceSnapshotGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *BalanceSnapshotGroupBy) IntsX(ctx context.Context) []int
- func (bsgb *BalanceSnapshotGroupBy) Scan(ctx context.Context, v any) error
- func (s *BalanceSnapshotGroupBy) ScanX(ctx context.Context, v any)
- func (s *BalanceSnapshotGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *BalanceSnapshotGroupBy) StringX(ctx context.Context) string
- func (s *BalanceSnapshotGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *BalanceSnapshotGroupBy) StringsX(ctx context.Context) []string
- type BalanceSnapshotMutation
- func (m *BalanceSnapshotMutation) AddBalance(f float64)
- func (m *BalanceSnapshotMutation) AddField(name string, value ent.Value) error
- func (m *BalanceSnapshotMutation) AddOverage(f float64)
- func (m *BalanceSnapshotMutation) AddedBalance() (r float64, exists bool)
- func (m *BalanceSnapshotMutation) AddedEdges() []string
- func (m *BalanceSnapshotMutation) AddedField(name string) (ent.Value, bool)
- func (m *BalanceSnapshotMutation) AddedFields() []string
- func (m *BalanceSnapshotMutation) AddedIDs(name string) []ent.Value
- func (m *BalanceSnapshotMutation) AddedOverage() (r float64, exists bool)
- func (m *BalanceSnapshotMutation) At() (r time.Time, exists bool)
- func (m *BalanceSnapshotMutation) Balance() (r float64, exists bool)
- func (m *BalanceSnapshotMutation) ClearDeletedAt()
- func (m *BalanceSnapshotMutation) ClearEdge(name string) error
- func (m *BalanceSnapshotMutation) ClearEntitlement()
- func (m *BalanceSnapshotMutation) ClearField(name string) error
- func (m *BalanceSnapshotMutation) ClearedEdges() []string
- func (m *BalanceSnapshotMutation) ClearedFields() []string
- func (m BalanceSnapshotMutation) Client() *Client
- func (m *BalanceSnapshotMutation) CreatedAt() (r time.Time, exists bool)
- func (m *BalanceSnapshotMutation) DeletedAt() (r time.Time, exists bool)
- func (m *BalanceSnapshotMutation) DeletedAtCleared() bool
- func (m *BalanceSnapshotMutation) EdgeCleared(name string) bool
- func (m *BalanceSnapshotMutation) EntitlementCleared() bool
- func (m *BalanceSnapshotMutation) EntitlementID() (id string, exists bool)
- func (m *BalanceSnapshotMutation) EntitlementIDs() (ids []string)
- func (c *BalanceSnapshotMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *BalanceSnapshotMutation) Field(name string) (ent.Value, bool)
- func (m *BalanceSnapshotMutation) FieldCleared(name string) bool
- func (m *BalanceSnapshotMutation) Fields() []string
- func (m *BalanceSnapshotMutation) GrantBalances() (r balance.Map, exists bool)
- func (m *BalanceSnapshotMutation) ID() (id int, exists bool)
- func (m *BalanceSnapshotMutation) IDs(ctx context.Context) ([]int, error)
- func (m *BalanceSnapshotMutation) Namespace() (r string, exists bool)
- func (m *BalanceSnapshotMutation) OldAt(ctx context.Context) (v time.Time, err error)
- func (m *BalanceSnapshotMutation) OldBalance(ctx context.Context) (v float64, err error)
- func (m *BalanceSnapshotMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *BalanceSnapshotMutation) OldDeletedAt(ctx context.Context) (v *time.Time, err error)
- func (m *BalanceSnapshotMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *BalanceSnapshotMutation) OldGrantBalances(ctx context.Context) (v balance.Map, err error)
- func (m *BalanceSnapshotMutation) OldNamespace(ctx context.Context) (v string, err error)
- func (m *BalanceSnapshotMutation) OldOverage(ctx context.Context) (v float64, err error)
- func (m *BalanceSnapshotMutation) OldOwnerID(ctx context.Context) (v string, err error)
- func (m *BalanceSnapshotMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *BalanceSnapshotMutation) Op() Op
- func (m *BalanceSnapshotMutation) Overage() (r float64, exists bool)
- func (m *BalanceSnapshotMutation) OwnerID() (r string, exists bool)
- func (c *BalanceSnapshotMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *BalanceSnapshotMutation) RemovedEdges() []string
- func (m *BalanceSnapshotMutation) RemovedIDs(name string) []ent.Value
- func (m *BalanceSnapshotMutation) ResetAt()
- func (m *BalanceSnapshotMutation) ResetBalance()
- func (m *BalanceSnapshotMutation) ResetCreatedAt()
- func (m *BalanceSnapshotMutation) ResetDeletedAt()
- func (m *BalanceSnapshotMutation) ResetEdge(name string) error
- func (m *BalanceSnapshotMutation) ResetEntitlement()
- func (m *BalanceSnapshotMutation) ResetField(name string) error
- func (m *BalanceSnapshotMutation) ResetGrantBalances()
- func (m *BalanceSnapshotMutation) ResetNamespace()
- func (m *BalanceSnapshotMutation) ResetOverage()
- func (m *BalanceSnapshotMutation) ResetOwnerID()
- func (m *BalanceSnapshotMutation) ResetUpdatedAt()
- func (m *BalanceSnapshotMutation) SetAt(t time.Time)
- func (m *BalanceSnapshotMutation) SetBalance(f float64)
- func (m *BalanceSnapshotMutation) SetCreatedAt(t time.Time)
- func (m *BalanceSnapshotMutation) SetDeletedAt(t time.Time)
- func (m *BalanceSnapshotMutation) SetEntitlementID(id string)
- func (m *BalanceSnapshotMutation) SetField(name string, value ent.Value) error
- func (m *BalanceSnapshotMutation) SetGrantBalances(b balance.Map)
- func (m *BalanceSnapshotMutation) SetNamespace(s string)
- func (m *BalanceSnapshotMutation) SetOp(op Op)
- func (m *BalanceSnapshotMutation) SetOverage(f float64)
- func (m *BalanceSnapshotMutation) SetOwnerID(s string)
- func (m *BalanceSnapshotMutation) SetUpdatedAt(t time.Time)
- func (m BalanceSnapshotMutation) Tx() (*Tx, error)
- func (m *BalanceSnapshotMutation) Type() string
- func (m *BalanceSnapshotMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *BalanceSnapshotMutation) Where(ps ...predicate.BalanceSnapshot)
- func (m *BalanceSnapshotMutation) WhereP(ps ...func(*sql.Selector))
- type BalanceSnapshotQuery
- func (bsq *BalanceSnapshotQuery) Aggregate(fns ...AggregateFunc) *BalanceSnapshotSelect
- func (bsq *BalanceSnapshotQuery) All(ctx context.Context) ([]*BalanceSnapshot, error)
- func (bsq *BalanceSnapshotQuery) AllX(ctx context.Context) []*BalanceSnapshot
- func (bsq *BalanceSnapshotQuery) Clone() *BalanceSnapshotQuery
- func (bsq *BalanceSnapshotQuery) Count(ctx context.Context) (int, error)
- func (bsq *BalanceSnapshotQuery) CountX(ctx context.Context) int
- func (c *BalanceSnapshotQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bsq *BalanceSnapshotQuery) Exist(ctx context.Context) (bool, error)
- func (bsq *BalanceSnapshotQuery) ExistX(ctx context.Context) bool
- func (bsq *BalanceSnapshotQuery) First(ctx context.Context) (*BalanceSnapshot, error)
- func (bsq *BalanceSnapshotQuery) FirstID(ctx context.Context) (id int, err error)
- func (bsq *BalanceSnapshotQuery) FirstIDX(ctx context.Context) int
- func (bsq *BalanceSnapshotQuery) FirstX(ctx context.Context) *BalanceSnapshot
- func (bsq *BalanceSnapshotQuery) ForShare(opts ...sql.LockOption) *BalanceSnapshotQuery
- func (bsq *BalanceSnapshotQuery) ForUpdate(opts ...sql.LockOption) *BalanceSnapshotQuery
- func (bsq *BalanceSnapshotQuery) GroupBy(field string, fields ...string) *BalanceSnapshotGroupBy
- func (bsq *BalanceSnapshotQuery) IDs(ctx context.Context) (ids []int, err error)
- func (bsq *BalanceSnapshotQuery) IDsX(ctx context.Context) []int
- func (bsq *BalanceSnapshotQuery) Limit(limit int) *BalanceSnapshotQuery
- func (bsq *BalanceSnapshotQuery) Offset(offset int) *BalanceSnapshotQuery
- func (bsq *BalanceSnapshotQuery) Only(ctx context.Context) (*BalanceSnapshot, error)
- func (bsq *BalanceSnapshotQuery) OnlyID(ctx context.Context) (id int, err error)
- func (bsq *BalanceSnapshotQuery) OnlyIDX(ctx context.Context) int
- func (bsq *BalanceSnapshotQuery) OnlyX(ctx context.Context) *BalanceSnapshot
- func (bsq *BalanceSnapshotQuery) Order(o ...balancesnapshot.OrderOption) *BalanceSnapshotQuery
- func (bs *BalanceSnapshotQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*BalanceSnapshot], error)
- func (c *BalanceSnapshotQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bsq *BalanceSnapshotQuery) QueryEntitlement() *EntitlementQuery
- func (bsq *BalanceSnapshotQuery) Select(fields ...string) *BalanceSnapshotSelect
- func (bsq *BalanceSnapshotQuery) Unique(unique bool) *BalanceSnapshotQuery
- func (bsq *BalanceSnapshotQuery) Where(ps ...predicate.BalanceSnapshot) *BalanceSnapshotQuery
- func (bsq *BalanceSnapshotQuery) WithEntitlement(opts ...func(*EntitlementQuery)) *BalanceSnapshotQuery
- type BalanceSnapshotSelect
- func (bss *BalanceSnapshotSelect) Aggregate(fns ...AggregateFunc) *BalanceSnapshotSelect
- func (s *BalanceSnapshotSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *BalanceSnapshotSelect) BoolX(ctx context.Context) bool
- func (s *BalanceSnapshotSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *BalanceSnapshotSelect) BoolsX(ctx context.Context) []bool
- func (c BalanceSnapshotSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *BalanceSnapshotSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *BalanceSnapshotSelect) Float64X(ctx context.Context) float64
- func (s *BalanceSnapshotSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *BalanceSnapshotSelect) Float64sX(ctx context.Context) []float64
- func (s *BalanceSnapshotSelect) Int(ctx context.Context) (_ int, err error)
- func (s *BalanceSnapshotSelect) IntX(ctx context.Context) int
- func (s *BalanceSnapshotSelect) Ints(ctx context.Context) ([]int, error)
- func (s *BalanceSnapshotSelect) IntsX(ctx context.Context) []int
- func (c BalanceSnapshotSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bss *BalanceSnapshotSelect) Scan(ctx context.Context, v any) error
- func (s *BalanceSnapshotSelect) ScanX(ctx context.Context, v any)
- func (s *BalanceSnapshotSelect) String(ctx context.Context) (_ string, err error)
- func (s *BalanceSnapshotSelect) StringX(ctx context.Context) string
- func (s *BalanceSnapshotSelect) Strings(ctx context.Context) ([]string, error)
- func (s *BalanceSnapshotSelect) StringsX(ctx context.Context) []string
- type BalanceSnapshotUpdate
- func (bsu *BalanceSnapshotUpdate) ClearDeletedAt() *BalanceSnapshotUpdate
- func (bsu *BalanceSnapshotUpdate) Exec(ctx context.Context) error
- func (c *BalanceSnapshotUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bsu *BalanceSnapshotUpdate) ExecX(ctx context.Context)
- func (bsu *BalanceSnapshotUpdate) Mutation() *BalanceSnapshotMutation
- func (c *BalanceSnapshotUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bsu *BalanceSnapshotUpdate) Save(ctx context.Context) (int, error)
- func (bsu *BalanceSnapshotUpdate) SaveX(ctx context.Context) int
- func (bsu *BalanceSnapshotUpdate) SetDeletedAt(t time.Time) *BalanceSnapshotUpdate
- func (bsu *BalanceSnapshotUpdate) SetNillableDeletedAt(t *time.Time) *BalanceSnapshotUpdate
- func (u *BalanceSnapshotUpdate) SetOrClearDeletedAt(value *time.Time) *BalanceSnapshotUpdate
- func (bsu *BalanceSnapshotUpdate) SetUpdatedAt(t time.Time) *BalanceSnapshotUpdate
- func (bsu *BalanceSnapshotUpdate) Where(ps ...predicate.BalanceSnapshot) *BalanceSnapshotUpdate
- type BalanceSnapshotUpdateOne
- func (bsuo *BalanceSnapshotUpdateOne) ClearDeletedAt() *BalanceSnapshotUpdateOne
- func (bsuo *BalanceSnapshotUpdateOne) Exec(ctx context.Context) error
- func (c *BalanceSnapshotUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bsuo *BalanceSnapshotUpdateOne) ExecX(ctx context.Context)
- func (bsuo *BalanceSnapshotUpdateOne) Mutation() *BalanceSnapshotMutation
- func (c *BalanceSnapshotUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bsuo *BalanceSnapshotUpdateOne) Save(ctx context.Context) (*BalanceSnapshot, error)
- func (bsuo *BalanceSnapshotUpdateOne) SaveX(ctx context.Context) *BalanceSnapshot
- func (bsuo *BalanceSnapshotUpdateOne) Select(field string, fields ...string) *BalanceSnapshotUpdateOne
- func (bsuo *BalanceSnapshotUpdateOne) SetDeletedAt(t time.Time) *BalanceSnapshotUpdateOne
- func (bsuo *BalanceSnapshotUpdateOne) SetNillableDeletedAt(t *time.Time) *BalanceSnapshotUpdateOne
- func (u *BalanceSnapshotUpdateOne) SetOrClearDeletedAt(value *time.Time) *BalanceSnapshotUpdateOne
- func (bsuo *BalanceSnapshotUpdateOne) SetUpdatedAt(t time.Time) *BalanceSnapshotUpdateOne
- func (bsuo *BalanceSnapshotUpdateOne) Where(ps ...predicate.BalanceSnapshot) *BalanceSnapshotUpdateOne
- type BalanceSnapshotUpsert
- func (u *BalanceSnapshotUpsert) ClearDeletedAt() *BalanceSnapshotUpsert
- func (u *BalanceSnapshotUpsert) SetDeletedAt(v time.Time) *BalanceSnapshotUpsert
- func (u *BalanceSnapshotUpsert) SetUpdatedAt(v time.Time) *BalanceSnapshotUpsert
- func (u *BalanceSnapshotUpsert) UpdateDeletedAt() *BalanceSnapshotUpsert
- func (u *BalanceSnapshotUpsert) UpdateUpdatedAt() *BalanceSnapshotUpsert
- type BalanceSnapshotUpsertBulk
- func (u *BalanceSnapshotUpsertBulk) ClearDeletedAt() *BalanceSnapshotUpsertBulk
- func (u *BalanceSnapshotUpsertBulk) DoNothing() *BalanceSnapshotUpsertBulk
- func (u *BalanceSnapshotUpsertBulk) Exec(ctx context.Context) error
- func (u *BalanceSnapshotUpsertBulk) ExecX(ctx context.Context)
- func (u *BalanceSnapshotUpsertBulk) Ignore() *BalanceSnapshotUpsertBulk
- func (u *BalanceSnapshotUpsertBulk) SetDeletedAt(v time.Time) *BalanceSnapshotUpsertBulk
- func (u *BalanceSnapshotUpsertBulk) SetUpdatedAt(v time.Time) *BalanceSnapshotUpsertBulk
- func (u *BalanceSnapshotUpsertBulk) Update(set func(*BalanceSnapshotUpsert)) *BalanceSnapshotUpsertBulk
- func (u *BalanceSnapshotUpsertBulk) UpdateDeletedAt() *BalanceSnapshotUpsertBulk
- func (u *BalanceSnapshotUpsertBulk) UpdateNewValues() *BalanceSnapshotUpsertBulk
- func (u *BalanceSnapshotUpsertBulk) UpdateUpdatedAt() *BalanceSnapshotUpsertBulk
- type BalanceSnapshotUpsertOne
- func (u *BalanceSnapshotUpsertOne) ClearDeletedAt() *BalanceSnapshotUpsertOne
- func (u *BalanceSnapshotUpsertOne) DoNothing() *BalanceSnapshotUpsertOne
- func (u *BalanceSnapshotUpsertOne) Exec(ctx context.Context) error
- func (u *BalanceSnapshotUpsertOne) ExecX(ctx context.Context)
- func (u *BalanceSnapshotUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *BalanceSnapshotUpsertOne) IDX(ctx context.Context) int
- func (u *BalanceSnapshotUpsertOne) Ignore() *BalanceSnapshotUpsertOne
- func (u *BalanceSnapshotUpsertOne) SetDeletedAt(v time.Time) *BalanceSnapshotUpsertOne
- func (u *BalanceSnapshotUpsertOne) SetUpdatedAt(v time.Time) *BalanceSnapshotUpsertOne
- func (u *BalanceSnapshotUpsertOne) Update(set func(*BalanceSnapshotUpsert)) *BalanceSnapshotUpsertOne
- func (u *BalanceSnapshotUpsertOne) UpdateDeletedAt() *BalanceSnapshotUpsertOne
- func (u *BalanceSnapshotUpsertOne) UpdateNewValues() *BalanceSnapshotUpsertOne
- func (u *BalanceSnapshotUpsertOne) UpdateUpdatedAt() *BalanceSnapshotUpsertOne
- type BalanceSnapshots
- type BillingCustomerOverride
- func (c *BillingCustomerOverride) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bco *BillingCustomerOverride) QueryBillingProfile() *BillingProfileQuery
- func (c *BillingCustomerOverride) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bco *BillingCustomerOverride) QueryCustomer() *CustomerQuery
- func (bco *BillingCustomerOverride) String() string
- func (bco *BillingCustomerOverride) Unwrap() *BillingCustomerOverride
- func (bco *BillingCustomerOverride) Update() *BillingCustomerOverrideUpdateOne
- func (bco *BillingCustomerOverride) Value(name string) (ent.Value, error)
- type BillingCustomerOverrideClient
- func (c *BillingCustomerOverrideClient) Create() *BillingCustomerOverrideCreate
- func (c *BillingCustomerOverrideClient) CreateBulk(builders ...*BillingCustomerOverrideCreate) *BillingCustomerOverrideCreateBulk
- func (c *BillingCustomerOverrideClient) Delete() *BillingCustomerOverrideDelete
- func (c *BillingCustomerOverrideClient) DeleteOne(bco *BillingCustomerOverride) *BillingCustomerOverrideDeleteOne
- func (c *BillingCustomerOverrideClient) DeleteOneID(id string) *BillingCustomerOverrideDeleteOne
- func (c *BillingCustomerOverrideClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *BillingCustomerOverrideClient) Get(ctx context.Context, id string) (*BillingCustomerOverride, error)
- func (c *BillingCustomerOverrideClient) GetX(ctx context.Context, id string) *BillingCustomerOverride
- func (c *BillingCustomerOverrideClient) Hooks() []Hook
- func (c *BillingCustomerOverrideClient) Intercept(interceptors ...Interceptor)
- func (c *BillingCustomerOverrideClient) Interceptors() []Interceptor
- func (c *BillingCustomerOverrideClient) MapCreateBulk(slice any, setFunc func(*BillingCustomerOverrideCreate, int)) *BillingCustomerOverrideCreateBulk
- func (c *BillingCustomerOverrideClient) Query() *BillingCustomerOverrideQuery
- func (c *BillingCustomerOverrideClient) QueryBillingProfile(bco *BillingCustomerOverride) *BillingProfileQuery
- func (c *BillingCustomerOverrideClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *BillingCustomerOverrideClient) QueryCustomer(bco *BillingCustomerOverride) *CustomerQuery
- func (c *BillingCustomerOverrideClient) Update() *BillingCustomerOverrideUpdate
- func (c *BillingCustomerOverrideClient) UpdateOne(bco *BillingCustomerOverride) *BillingCustomerOverrideUpdateOne
- func (c *BillingCustomerOverrideClient) UpdateOneID(id string) *BillingCustomerOverrideUpdateOne
- func (c *BillingCustomerOverrideClient) Use(hooks ...Hook)
- type BillingCustomerOverrideCreate
- func (bcoc *BillingCustomerOverrideCreate) Exec(ctx context.Context) error
- func (c *BillingCustomerOverrideCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bcoc *BillingCustomerOverrideCreate) ExecX(ctx context.Context)
- func (bcoc *BillingCustomerOverrideCreate) Mutation() *BillingCustomerOverrideMutation
- func (bcoc *BillingCustomerOverrideCreate) OnConflict(opts ...sql.ConflictOption) *BillingCustomerOverrideUpsertOne
- func (bcoc *BillingCustomerOverrideCreate) OnConflictColumns(columns ...string) *BillingCustomerOverrideUpsertOne
- func (c *BillingCustomerOverrideCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bcoc *BillingCustomerOverrideCreate) Save(ctx context.Context) (*BillingCustomerOverride, error)
- func (bcoc *BillingCustomerOverrideCreate) SaveX(ctx context.Context) *BillingCustomerOverride
- func (bcoc *BillingCustomerOverrideCreate) SetBillingProfile(b *BillingProfile) *BillingCustomerOverrideCreate
- func (bcoc *BillingCustomerOverrideCreate) SetBillingProfileID(s string) *BillingCustomerOverrideCreate
- func (bcoc *BillingCustomerOverrideCreate) SetCollectionAlignment(bk billing.AlignmentKind) *BillingCustomerOverrideCreate
- func (bcoc *BillingCustomerOverrideCreate) SetCreatedAt(t time.Time) *BillingCustomerOverrideCreate
- func (bcoc *BillingCustomerOverrideCreate) SetCustomer(c *Customer) *BillingCustomerOverrideCreate
- func (bcoc *BillingCustomerOverrideCreate) SetCustomerID(s string) *BillingCustomerOverrideCreate
- func (bcoc *BillingCustomerOverrideCreate) SetDeletedAt(t time.Time) *BillingCustomerOverrideCreate
- func (bcoc *BillingCustomerOverrideCreate) SetID(s string) *BillingCustomerOverrideCreate
- func (bcoc *BillingCustomerOverrideCreate) SetInvoiceAutoAdvance(b bool) *BillingCustomerOverrideCreate
- func (bcoc *BillingCustomerOverrideCreate) SetInvoiceCollectionMethod(bm billing.CollectionMethod) *BillingCustomerOverrideCreate
- func (bcoc *BillingCustomerOverrideCreate) SetInvoiceDraftPeriodSeconds(i int64) *BillingCustomerOverrideCreate
- func (bcoc *BillingCustomerOverrideCreate) SetInvoiceDueAfterSeconds(i int64) *BillingCustomerOverrideCreate
- func (bcoc *BillingCustomerOverrideCreate) SetInvoiceItemPerSubject(b bool) *BillingCustomerOverrideCreate
- func (bcoc *BillingCustomerOverrideCreate) SetInvoiceItemResolution(br billing.GranularityResolution) *BillingCustomerOverrideCreate
- func (bcoc *BillingCustomerOverrideCreate) SetItemCollectionPeriodSeconds(i int64) *BillingCustomerOverrideCreate
- func (bcoc *BillingCustomerOverrideCreate) SetNamespace(s string) *BillingCustomerOverrideCreate
- func (bcoc *BillingCustomerOverrideCreate) SetNillableBillingProfileID(s *string) *BillingCustomerOverrideCreate
- func (bcoc *BillingCustomerOverrideCreate) SetNillableCollectionAlignment(bk *billing.AlignmentKind) *BillingCustomerOverrideCreate
- func (bcoc *BillingCustomerOverrideCreate) SetNillableCreatedAt(t *time.Time) *BillingCustomerOverrideCreate
- func (bcoc *BillingCustomerOverrideCreate) SetNillableDeletedAt(t *time.Time) *BillingCustomerOverrideCreate
- func (bcoc *BillingCustomerOverrideCreate) SetNillableID(s *string) *BillingCustomerOverrideCreate
- func (bcoc *BillingCustomerOverrideCreate) SetNillableInvoiceAutoAdvance(b *bool) *BillingCustomerOverrideCreate
- func (bcoc *BillingCustomerOverrideCreate) SetNillableInvoiceCollectionMethod(bm *billing.CollectionMethod) *BillingCustomerOverrideCreate
- func (bcoc *BillingCustomerOverrideCreate) SetNillableInvoiceDraftPeriodSeconds(i *int64) *BillingCustomerOverrideCreate
- func (bcoc *BillingCustomerOverrideCreate) SetNillableInvoiceDueAfterSeconds(i *int64) *BillingCustomerOverrideCreate
- func (bcoc *BillingCustomerOverrideCreate) SetNillableInvoiceItemPerSubject(b *bool) *BillingCustomerOverrideCreate
- func (bcoc *BillingCustomerOverrideCreate) SetNillableInvoiceItemResolution(br *billing.GranularityResolution) *BillingCustomerOverrideCreate
- func (bcoc *BillingCustomerOverrideCreate) SetNillableItemCollectionPeriodSeconds(i *int64) *BillingCustomerOverrideCreate
- func (bcoc *BillingCustomerOverrideCreate) SetNillableUpdatedAt(t *time.Time) *BillingCustomerOverrideCreate
- func (bcoc *BillingCustomerOverrideCreate) SetUpdatedAt(t time.Time) *BillingCustomerOverrideCreate
- type BillingCustomerOverrideCreateBulk
- func (bcocb *BillingCustomerOverrideCreateBulk) Exec(ctx context.Context) error
- func (c *BillingCustomerOverrideCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bcocb *BillingCustomerOverrideCreateBulk) ExecX(ctx context.Context)
- func (bcocb *BillingCustomerOverrideCreateBulk) OnConflict(opts ...sql.ConflictOption) *BillingCustomerOverrideUpsertBulk
- func (bcocb *BillingCustomerOverrideCreateBulk) OnConflictColumns(columns ...string) *BillingCustomerOverrideUpsertBulk
- func (c *BillingCustomerOverrideCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bcocb *BillingCustomerOverrideCreateBulk) Save(ctx context.Context) ([]*BillingCustomerOverride, error)
- func (bcocb *BillingCustomerOverrideCreateBulk) SaveX(ctx context.Context) []*BillingCustomerOverride
- type BillingCustomerOverrideDelete
- func (bcod *BillingCustomerOverrideDelete) Exec(ctx context.Context) (int, error)
- func (c *BillingCustomerOverrideDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bcod *BillingCustomerOverrideDelete) ExecX(ctx context.Context) int
- func (c *BillingCustomerOverrideDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bcod *BillingCustomerOverrideDelete) Where(ps ...predicate.BillingCustomerOverride) *BillingCustomerOverrideDelete
- type BillingCustomerOverrideDeleteOne
- type BillingCustomerOverrideEdges
- type BillingCustomerOverrideGroupBy
- func (bcogb *BillingCustomerOverrideGroupBy) Aggregate(fns ...AggregateFunc) *BillingCustomerOverrideGroupBy
- func (s *BillingCustomerOverrideGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *BillingCustomerOverrideGroupBy) BoolX(ctx context.Context) bool
- func (s *BillingCustomerOverrideGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *BillingCustomerOverrideGroupBy) BoolsX(ctx context.Context) []bool
- func (s *BillingCustomerOverrideGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *BillingCustomerOverrideGroupBy) Float64X(ctx context.Context) float64
- func (s *BillingCustomerOverrideGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *BillingCustomerOverrideGroupBy) Float64sX(ctx context.Context) []float64
- func (s *BillingCustomerOverrideGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *BillingCustomerOverrideGroupBy) IntX(ctx context.Context) int
- func (s *BillingCustomerOverrideGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *BillingCustomerOverrideGroupBy) IntsX(ctx context.Context) []int
- func (bcogb *BillingCustomerOverrideGroupBy) Scan(ctx context.Context, v any) error
- func (s *BillingCustomerOverrideGroupBy) ScanX(ctx context.Context, v any)
- func (s *BillingCustomerOverrideGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *BillingCustomerOverrideGroupBy) StringX(ctx context.Context) string
- func (s *BillingCustomerOverrideGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *BillingCustomerOverrideGroupBy) StringsX(ctx context.Context) []string
- type BillingCustomerOverrideMutation
- func (m *BillingCustomerOverrideMutation) AddField(name string, value ent.Value) error
- func (m *BillingCustomerOverrideMutation) AddInvoiceDraftPeriodSeconds(i int64)
- func (m *BillingCustomerOverrideMutation) AddInvoiceDueAfterSeconds(i int64)
- func (m *BillingCustomerOverrideMutation) AddItemCollectionPeriodSeconds(i int64)
- func (m *BillingCustomerOverrideMutation) AddedEdges() []string
- func (m *BillingCustomerOverrideMutation) AddedField(name string) (ent.Value, bool)
- func (m *BillingCustomerOverrideMutation) AddedFields() []string
- func (m *BillingCustomerOverrideMutation) AddedIDs(name string) []ent.Value
- func (m *BillingCustomerOverrideMutation) AddedInvoiceDraftPeriodSeconds() (r int64, exists bool)
- func (m *BillingCustomerOverrideMutation) AddedInvoiceDueAfterSeconds() (r int64, exists bool)
- func (m *BillingCustomerOverrideMutation) AddedItemCollectionPeriodSeconds() (r int64, exists bool)
- func (m *BillingCustomerOverrideMutation) BillingProfileCleared() bool
- func (m *BillingCustomerOverrideMutation) BillingProfileID() (r string, exists bool)
- func (m *BillingCustomerOverrideMutation) BillingProfileIDCleared() bool
- func (m *BillingCustomerOverrideMutation) BillingProfileIDs() (ids []string)
- func (m *BillingCustomerOverrideMutation) ClearBillingProfile()
- func (m *BillingCustomerOverrideMutation) ClearBillingProfileID()
- func (m *BillingCustomerOverrideMutation) ClearCollectionAlignment()
- func (m *BillingCustomerOverrideMutation) ClearCustomer()
- func (m *BillingCustomerOverrideMutation) ClearDeletedAt()
- func (m *BillingCustomerOverrideMutation) ClearEdge(name string) error
- func (m *BillingCustomerOverrideMutation) ClearField(name string) error
- func (m *BillingCustomerOverrideMutation) ClearInvoiceAutoAdvance()
- func (m *BillingCustomerOverrideMutation) ClearInvoiceCollectionMethod()
- func (m *BillingCustomerOverrideMutation) ClearInvoiceDraftPeriodSeconds()
- func (m *BillingCustomerOverrideMutation) ClearInvoiceDueAfterSeconds()
- func (m *BillingCustomerOverrideMutation) ClearInvoiceItemPerSubject()
- func (m *BillingCustomerOverrideMutation) ClearInvoiceItemResolution()
- func (m *BillingCustomerOverrideMutation) ClearItemCollectionPeriodSeconds()
- func (m *BillingCustomerOverrideMutation) ClearedEdges() []string
- func (m *BillingCustomerOverrideMutation) ClearedFields() []string
- func (m BillingCustomerOverrideMutation) Client() *Client
- func (m *BillingCustomerOverrideMutation) CollectionAlignment() (r billing.AlignmentKind, exists bool)
- func (m *BillingCustomerOverrideMutation) CollectionAlignmentCleared() bool
- func (m *BillingCustomerOverrideMutation) CreatedAt() (r time.Time, exists bool)
- func (m *BillingCustomerOverrideMutation) CustomerCleared() bool
- func (m *BillingCustomerOverrideMutation) CustomerID() (r string, exists bool)
- func (m *BillingCustomerOverrideMutation) CustomerIDs() (ids []string)
- func (m *BillingCustomerOverrideMutation) DeletedAt() (r time.Time, exists bool)
- func (m *BillingCustomerOverrideMutation) DeletedAtCleared() bool
- func (m *BillingCustomerOverrideMutation) EdgeCleared(name string) bool
- func (c *BillingCustomerOverrideMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *BillingCustomerOverrideMutation) Field(name string) (ent.Value, bool)
- func (m *BillingCustomerOverrideMutation) FieldCleared(name string) bool
- func (m *BillingCustomerOverrideMutation) Fields() []string
- func (m *BillingCustomerOverrideMutation) ID() (id string, exists bool)
- func (m *BillingCustomerOverrideMutation) IDs(ctx context.Context) ([]string, error)
- func (m *BillingCustomerOverrideMutation) InvoiceAutoAdvance() (r bool, exists bool)
- func (m *BillingCustomerOverrideMutation) InvoiceAutoAdvanceCleared() bool
- func (m *BillingCustomerOverrideMutation) InvoiceCollectionMethod() (r billing.CollectionMethod, exists bool)
- func (m *BillingCustomerOverrideMutation) InvoiceCollectionMethodCleared() bool
- func (m *BillingCustomerOverrideMutation) InvoiceDraftPeriodSeconds() (r int64, exists bool)
- func (m *BillingCustomerOverrideMutation) InvoiceDraftPeriodSecondsCleared() bool
- func (m *BillingCustomerOverrideMutation) InvoiceDueAfterSeconds() (r int64, exists bool)
- func (m *BillingCustomerOverrideMutation) InvoiceDueAfterSecondsCleared() bool
- func (m *BillingCustomerOverrideMutation) InvoiceItemPerSubject() (r bool, exists bool)
- func (m *BillingCustomerOverrideMutation) InvoiceItemPerSubjectCleared() bool
- func (m *BillingCustomerOverrideMutation) InvoiceItemResolution() (r billing.GranularityResolution, exists bool)
- func (m *BillingCustomerOverrideMutation) InvoiceItemResolutionCleared() bool
- func (m *BillingCustomerOverrideMutation) ItemCollectionPeriodSeconds() (r int64, exists bool)
- func (m *BillingCustomerOverrideMutation) ItemCollectionPeriodSecondsCleared() bool
- func (m *BillingCustomerOverrideMutation) Namespace() (r string, exists bool)
- func (m *BillingCustomerOverrideMutation) OldBillingProfileID(ctx context.Context) (v *string, err error)
- func (m *BillingCustomerOverrideMutation) OldCollectionAlignment(ctx context.Context) (v *billing.AlignmentKind, err error)
- func (m *BillingCustomerOverrideMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *BillingCustomerOverrideMutation) OldCustomerID(ctx context.Context) (v string, err error)
- func (m *BillingCustomerOverrideMutation) OldDeletedAt(ctx context.Context) (v *time.Time, err error)
- func (m *BillingCustomerOverrideMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *BillingCustomerOverrideMutation) OldInvoiceAutoAdvance(ctx context.Context) (v *bool, err error)
- func (m *BillingCustomerOverrideMutation) OldInvoiceCollectionMethod(ctx context.Context) (v *billing.CollectionMethod, err error)
- func (m *BillingCustomerOverrideMutation) OldInvoiceDraftPeriodSeconds(ctx context.Context) (v *int64, err error)
- func (m *BillingCustomerOverrideMutation) OldInvoiceDueAfterSeconds(ctx context.Context) (v *int64, err error)
- func (m *BillingCustomerOverrideMutation) OldInvoiceItemPerSubject(ctx context.Context) (v *bool, err error)
- func (m *BillingCustomerOverrideMutation) OldInvoiceItemResolution(ctx context.Context) (v *billing.GranularityResolution, err error)
- func (m *BillingCustomerOverrideMutation) OldItemCollectionPeriodSeconds(ctx context.Context) (v *int64, err error)
- func (m *BillingCustomerOverrideMutation) OldNamespace(ctx context.Context) (v string, err error)
- func (m *BillingCustomerOverrideMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *BillingCustomerOverrideMutation) Op() Op
- func (c *BillingCustomerOverrideMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *BillingCustomerOverrideMutation) RemovedEdges() []string
- func (m *BillingCustomerOverrideMutation) RemovedIDs(name string) []ent.Value
- func (m *BillingCustomerOverrideMutation) ResetBillingProfile()
- func (m *BillingCustomerOverrideMutation) ResetBillingProfileID()
- func (m *BillingCustomerOverrideMutation) ResetCollectionAlignment()
- func (m *BillingCustomerOverrideMutation) ResetCreatedAt()
- func (m *BillingCustomerOverrideMutation) ResetCustomer()
- func (m *BillingCustomerOverrideMutation) ResetCustomerID()
- func (m *BillingCustomerOverrideMutation) ResetDeletedAt()
- func (m *BillingCustomerOverrideMutation) ResetEdge(name string) error
- func (m *BillingCustomerOverrideMutation) ResetField(name string) error
- func (m *BillingCustomerOverrideMutation) ResetInvoiceAutoAdvance()
- func (m *BillingCustomerOverrideMutation) ResetInvoiceCollectionMethod()
- func (m *BillingCustomerOverrideMutation) ResetInvoiceDraftPeriodSeconds()
- func (m *BillingCustomerOverrideMutation) ResetInvoiceDueAfterSeconds()
- func (m *BillingCustomerOverrideMutation) ResetInvoiceItemPerSubject()
- func (m *BillingCustomerOverrideMutation) ResetInvoiceItemResolution()
- func (m *BillingCustomerOverrideMutation) ResetItemCollectionPeriodSeconds()
- func (m *BillingCustomerOverrideMutation) ResetNamespace()
- func (m *BillingCustomerOverrideMutation) ResetUpdatedAt()
- func (m *BillingCustomerOverrideMutation) SetBillingProfileID(s string)
- func (m *BillingCustomerOverrideMutation) SetCollectionAlignment(bk billing.AlignmentKind)
- func (m *BillingCustomerOverrideMutation) SetCreatedAt(t time.Time)
- func (m *BillingCustomerOverrideMutation) SetCustomerID(s string)
- func (m *BillingCustomerOverrideMutation) SetDeletedAt(t time.Time)
- func (m *BillingCustomerOverrideMutation) SetField(name string, value ent.Value) error
- func (m *BillingCustomerOverrideMutation) SetID(id string)
- func (m *BillingCustomerOverrideMutation) SetInvoiceAutoAdvance(b bool)
- func (m *BillingCustomerOverrideMutation) SetInvoiceCollectionMethod(bm billing.CollectionMethod)
- func (m *BillingCustomerOverrideMutation) SetInvoiceDraftPeriodSeconds(i int64)
- func (m *BillingCustomerOverrideMutation) SetInvoiceDueAfterSeconds(i int64)
- func (m *BillingCustomerOverrideMutation) SetInvoiceItemPerSubject(b bool)
- func (m *BillingCustomerOverrideMutation) SetInvoiceItemResolution(br billing.GranularityResolution)
- func (m *BillingCustomerOverrideMutation) SetItemCollectionPeriodSeconds(i int64)
- func (m *BillingCustomerOverrideMutation) SetNamespace(s string)
- func (m *BillingCustomerOverrideMutation) SetOp(op Op)
- func (m *BillingCustomerOverrideMutation) SetUpdatedAt(t time.Time)
- func (m BillingCustomerOverrideMutation) Tx() (*Tx, error)
- func (m *BillingCustomerOverrideMutation) Type() string
- func (m *BillingCustomerOverrideMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *BillingCustomerOverrideMutation) Where(ps ...predicate.BillingCustomerOverride)
- func (m *BillingCustomerOverrideMutation) WhereP(ps ...func(*sql.Selector))
- type BillingCustomerOverrideQuery
- func (bcoq *BillingCustomerOverrideQuery) Aggregate(fns ...AggregateFunc) *BillingCustomerOverrideSelect
- func (bcoq *BillingCustomerOverrideQuery) All(ctx context.Context) ([]*BillingCustomerOverride, error)
- func (bcoq *BillingCustomerOverrideQuery) AllX(ctx context.Context) []*BillingCustomerOverride
- func (bcoq *BillingCustomerOverrideQuery) Clone() *BillingCustomerOverrideQuery
- func (bcoq *BillingCustomerOverrideQuery) Count(ctx context.Context) (int, error)
- func (bcoq *BillingCustomerOverrideQuery) CountX(ctx context.Context) int
- func (c *BillingCustomerOverrideQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bcoq *BillingCustomerOverrideQuery) Exist(ctx context.Context) (bool, error)
- func (bcoq *BillingCustomerOverrideQuery) ExistX(ctx context.Context) bool
- func (bcoq *BillingCustomerOverrideQuery) First(ctx context.Context) (*BillingCustomerOverride, error)
- func (bcoq *BillingCustomerOverrideQuery) FirstID(ctx context.Context) (id string, err error)
- func (bcoq *BillingCustomerOverrideQuery) FirstIDX(ctx context.Context) string
- func (bcoq *BillingCustomerOverrideQuery) FirstX(ctx context.Context) *BillingCustomerOverride
- func (bcoq *BillingCustomerOverrideQuery) ForShare(opts ...sql.LockOption) *BillingCustomerOverrideQuery
- func (bcoq *BillingCustomerOverrideQuery) ForUpdate(opts ...sql.LockOption) *BillingCustomerOverrideQuery
- func (bcoq *BillingCustomerOverrideQuery) GroupBy(field string, fields ...string) *BillingCustomerOverrideGroupBy
- func (bcoq *BillingCustomerOverrideQuery) IDs(ctx context.Context) (ids []string, err error)
- func (bcoq *BillingCustomerOverrideQuery) IDsX(ctx context.Context) []string
- func (bcoq *BillingCustomerOverrideQuery) Limit(limit int) *BillingCustomerOverrideQuery
- func (bcoq *BillingCustomerOverrideQuery) Offset(offset int) *BillingCustomerOverrideQuery
- func (bcoq *BillingCustomerOverrideQuery) Only(ctx context.Context) (*BillingCustomerOverride, error)
- func (bcoq *BillingCustomerOverrideQuery) OnlyID(ctx context.Context) (id string, err error)
- func (bcoq *BillingCustomerOverrideQuery) OnlyIDX(ctx context.Context) string
- func (bcoq *BillingCustomerOverrideQuery) OnlyX(ctx context.Context) *BillingCustomerOverride
- func (bcoq *BillingCustomerOverrideQuery) Order(o ...billingcustomeroverride.OrderOption) *BillingCustomerOverrideQuery
- func (bco *BillingCustomerOverrideQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*BillingCustomerOverride], error)
- func (bcoq *BillingCustomerOverrideQuery) QueryBillingProfile() *BillingProfileQuery
- func (c *BillingCustomerOverrideQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bcoq *BillingCustomerOverrideQuery) QueryCustomer() *CustomerQuery
- func (bcoq *BillingCustomerOverrideQuery) Select(fields ...string) *BillingCustomerOverrideSelect
- func (bcoq *BillingCustomerOverrideQuery) Unique(unique bool) *BillingCustomerOverrideQuery
- func (bcoq *BillingCustomerOverrideQuery) Where(ps ...predicate.BillingCustomerOverride) *BillingCustomerOverrideQuery
- func (bcoq *BillingCustomerOverrideQuery) WithBillingProfile(opts ...func(*BillingProfileQuery)) *BillingCustomerOverrideQuery
- func (bcoq *BillingCustomerOverrideQuery) WithCustomer(opts ...func(*CustomerQuery)) *BillingCustomerOverrideQuery
- type BillingCustomerOverrideSelect
- func (bcos *BillingCustomerOverrideSelect) Aggregate(fns ...AggregateFunc) *BillingCustomerOverrideSelect
- func (s *BillingCustomerOverrideSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *BillingCustomerOverrideSelect) BoolX(ctx context.Context) bool
- func (s *BillingCustomerOverrideSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *BillingCustomerOverrideSelect) BoolsX(ctx context.Context) []bool
- func (c BillingCustomerOverrideSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *BillingCustomerOverrideSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *BillingCustomerOverrideSelect) Float64X(ctx context.Context) float64
- func (s *BillingCustomerOverrideSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *BillingCustomerOverrideSelect) Float64sX(ctx context.Context) []float64
- func (s *BillingCustomerOverrideSelect) Int(ctx context.Context) (_ int, err error)
- func (s *BillingCustomerOverrideSelect) IntX(ctx context.Context) int
- func (s *BillingCustomerOverrideSelect) Ints(ctx context.Context) ([]int, error)
- func (s *BillingCustomerOverrideSelect) IntsX(ctx context.Context) []int
- func (c BillingCustomerOverrideSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bcos *BillingCustomerOverrideSelect) Scan(ctx context.Context, v any) error
- func (s *BillingCustomerOverrideSelect) ScanX(ctx context.Context, v any)
- func (s *BillingCustomerOverrideSelect) String(ctx context.Context) (_ string, err error)
- func (s *BillingCustomerOverrideSelect) StringX(ctx context.Context) string
- func (s *BillingCustomerOverrideSelect) Strings(ctx context.Context) ([]string, error)
- func (s *BillingCustomerOverrideSelect) StringsX(ctx context.Context) []string
- type BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) AddInvoiceDraftPeriodSeconds(i int64) *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) AddInvoiceDueAfterSeconds(i int64) *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) AddItemCollectionPeriodSeconds(i int64) *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) ClearBillingProfile() *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) ClearBillingProfileID() *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) ClearCollectionAlignment() *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) ClearDeletedAt() *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) ClearInvoiceAutoAdvance() *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) ClearInvoiceCollectionMethod() *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) ClearInvoiceDraftPeriodSeconds() *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) ClearInvoiceDueAfterSeconds() *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) ClearInvoiceItemPerSubject() *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) ClearInvoiceItemResolution() *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) ClearItemCollectionPeriodSeconds() *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) Exec(ctx context.Context) error
- func (c *BillingCustomerOverrideUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bcou *BillingCustomerOverrideUpdate) ExecX(ctx context.Context)
- func (bcou *BillingCustomerOverrideUpdate) Mutation() *BillingCustomerOverrideMutation
- func (c *BillingCustomerOverrideUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bcou *BillingCustomerOverrideUpdate) Save(ctx context.Context) (int, error)
- func (bcou *BillingCustomerOverrideUpdate) SaveX(ctx context.Context) int
- func (bcou *BillingCustomerOverrideUpdate) SetBillingProfile(b *BillingProfile) *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) SetBillingProfileID(s string) *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) SetCollectionAlignment(bk billing.AlignmentKind) *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) SetDeletedAt(t time.Time) *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) SetInvoiceAutoAdvance(b bool) *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) SetInvoiceCollectionMethod(bm billing.CollectionMethod) *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) SetInvoiceDraftPeriodSeconds(i int64) *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) SetInvoiceDueAfterSeconds(i int64) *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) SetInvoiceItemPerSubject(b bool) *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) SetInvoiceItemResolution(br billing.GranularityResolution) *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) SetItemCollectionPeriodSeconds(i int64) *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) SetNillableBillingProfileID(s *string) *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) SetNillableCollectionAlignment(bk *billing.AlignmentKind) *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) SetNillableDeletedAt(t *time.Time) *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) SetNillableInvoiceAutoAdvance(b *bool) *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) SetNillableInvoiceCollectionMethod(bm *billing.CollectionMethod) *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) SetNillableInvoiceDraftPeriodSeconds(i *int64) *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) SetNillableInvoiceDueAfterSeconds(i *int64) *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) SetNillableInvoiceItemPerSubject(b *bool) *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) SetNillableInvoiceItemResolution(br *billing.GranularityResolution) *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) SetNillableItemCollectionPeriodSeconds(i *int64) *BillingCustomerOverrideUpdate
- func (u *BillingCustomerOverrideUpdate) SetOrClearBillingProfileID(value *string) *BillingCustomerOverrideUpdate
- func (u *BillingCustomerOverrideUpdate) SetOrClearCollectionAlignment(value *billing.AlignmentKind) *BillingCustomerOverrideUpdate
- func (u *BillingCustomerOverrideUpdate) SetOrClearDeletedAt(value *time.Time) *BillingCustomerOverrideUpdate
- func (u *BillingCustomerOverrideUpdate) SetOrClearInvoiceAutoAdvance(value *bool) *BillingCustomerOverrideUpdate
- func (u *BillingCustomerOverrideUpdate) SetOrClearInvoiceCollectionMethod(value *billing.CollectionMethod) *BillingCustomerOverrideUpdate
- func (u *BillingCustomerOverrideUpdate) SetOrClearInvoiceDraftPeriodSeconds(value *int64) *BillingCustomerOverrideUpdate
- func (u *BillingCustomerOverrideUpdate) SetOrClearInvoiceDueAfterSeconds(value *int64) *BillingCustomerOverrideUpdate
- func (u *BillingCustomerOverrideUpdate) SetOrClearInvoiceItemPerSubject(value *bool) *BillingCustomerOverrideUpdate
- func (u *BillingCustomerOverrideUpdate) SetOrClearInvoiceItemResolution(value *billing.GranularityResolution) *BillingCustomerOverrideUpdate
- func (u *BillingCustomerOverrideUpdate) SetOrClearItemCollectionPeriodSeconds(value *int64) *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) SetUpdatedAt(t time.Time) *BillingCustomerOverrideUpdate
- func (bcou *BillingCustomerOverrideUpdate) Where(ps ...predicate.BillingCustomerOverride) *BillingCustomerOverrideUpdate
- type BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) AddInvoiceDraftPeriodSeconds(i int64) *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) AddInvoiceDueAfterSeconds(i int64) *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) AddItemCollectionPeriodSeconds(i int64) *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) ClearBillingProfile() *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) ClearBillingProfileID() *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) ClearCollectionAlignment() *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) ClearDeletedAt() *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) ClearInvoiceAutoAdvance() *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) ClearInvoiceCollectionMethod() *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) ClearInvoiceDraftPeriodSeconds() *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) ClearInvoiceDueAfterSeconds() *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) ClearInvoiceItemPerSubject() *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) ClearInvoiceItemResolution() *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) ClearItemCollectionPeriodSeconds() *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) Exec(ctx context.Context) error
- func (c *BillingCustomerOverrideUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bcouo *BillingCustomerOverrideUpdateOne) ExecX(ctx context.Context)
- func (bcouo *BillingCustomerOverrideUpdateOne) Mutation() *BillingCustomerOverrideMutation
- func (c *BillingCustomerOverrideUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bcouo *BillingCustomerOverrideUpdateOne) Save(ctx context.Context) (*BillingCustomerOverride, error)
- func (bcouo *BillingCustomerOverrideUpdateOne) SaveX(ctx context.Context) *BillingCustomerOverride
- func (bcouo *BillingCustomerOverrideUpdateOne) Select(field string, fields ...string) *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) SetBillingProfile(b *BillingProfile) *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) SetBillingProfileID(s string) *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) SetCollectionAlignment(bk billing.AlignmentKind) *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) SetDeletedAt(t time.Time) *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) SetInvoiceAutoAdvance(b bool) *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) SetInvoiceCollectionMethod(bm billing.CollectionMethod) *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) SetInvoiceDraftPeriodSeconds(i int64) *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) SetInvoiceDueAfterSeconds(i int64) *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) SetInvoiceItemPerSubject(b bool) *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) SetInvoiceItemResolution(br billing.GranularityResolution) *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) SetItemCollectionPeriodSeconds(i int64) *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) SetNillableBillingProfileID(s *string) *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) SetNillableCollectionAlignment(bk *billing.AlignmentKind) *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) SetNillableDeletedAt(t *time.Time) *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) SetNillableInvoiceAutoAdvance(b *bool) *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) SetNillableInvoiceCollectionMethod(bm *billing.CollectionMethod) *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) SetNillableInvoiceDraftPeriodSeconds(i *int64) *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) SetNillableInvoiceDueAfterSeconds(i *int64) *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) SetNillableInvoiceItemPerSubject(b *bool) *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) SetNillableInvoiceItemResolution(br *billing.GranularityResolution) *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) SetNillableItemCollectionPeriodSeconds(i *int64) *BillingCustomerOverrideUpdateOne
- func (u *BillingCustomerOverrideUpdateOne) SetOrClearBillingProfileID(value *string) *BillingCustomerOverrideUpdateOne
- func (u *BillingCustomerOverrideUpdateOne) SetOrClearCollectionAlignment(value *billing.AlignmentKind) *BillingCustomerOverrideUpdateOne
- func (u *BillingCustomerOverrideUpdateOne) SetOrClearDeletedAt(value *time.Time) *BillingCustomerOverrideUpdateOne
- func (u *BillingCustomerOverrideUpdateOne) SetOrClearInvoiceAutoAdvance(value *bool) *BillingCustomerOverrideUpdateOne
- func (u *BillingCustomerOverrideUpdateOne) SetOrClearInvoiceCollectionMethod(value *billing.CollectionMethod) *BillingCustomerOverrideUpdateOne
- func (u *BillingCustomerOverrideUpdateOne) SetOrClearInvoiceDraftPeriodSeconds(value *int64) *BillingCustomerOverrideUpdateOne
- func (u *BillingCustomerOverrideUpdateOne) SetOrClearInvoiceDueAfterSeconds(value *int64) *BillingCustomerOverrideUpdateOne
- func (u *BillingCustomerOverrideUpdateOne) SetOrClearInvoiceItemPerSubject(value *bool) *BillingCustomerOverrideUpdateOne
- func (u *BillingCustomerOverrideUpdateOne) SetOrClearInvoiceItemResolution(value *billing.GranularityResolution) *BillingCustomerOverrideUpdateOne
- func (u *BillingCustomerOverrideUpdateOne) SetOrClearItemCollectionPeriodSeconds(value *int64) *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) SetUpdatedAt(t time.Time) *BillingCustomerOverrideUpdateOne
- func (bcouo *BillingCustomerOverrideUpdateOne) Where(ps ...predicate.BillingCustomerOverride) *BillingCustomerOverrideUpdateOne
- type BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) AddInvoiceDraftPeriodSeconds(v int64) *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) AddInvoiceDueAfterSeconds(v int64) *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) AddItemCollectionPeriodSeconds(v int64) *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) ClearBillingProfileID() *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) ClearCollectionAlignment() *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) ClearDeletedAt() *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) ClearInvoiceAutoAdvance() *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) ClearInvoiceCollectionMethod() *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) ClearInvoiceDraftPeriodSeconds() *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) ClearInvoiceDueAfterSeconds() *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) ClearInvoiceItemPerSubject() *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) ClearInvoiceItemResolution() *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) ClearItemCollectionPeriodSeconds() *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) SetBillingProfileID(v string) *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) SetCollectionAlignment(v billing.AlignmentKind) *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) SetDeletedAt(v time.Time) *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) SetInvoiceAutoAdvance(v bool) *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) SetInvoiceCollectionMethod(v billing.CollectionMethod) *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) SetInvoiceDraftPeriodSeconds(v int64) *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) SetInvoiceDueAfterSeconds(v int64) *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) SetInvoiceItemPerSubject(v bool) *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) SetInvoiceItemResolution(v billing.GranularityResolution) *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) SetItemCollectionPeriodSeconds(v int64) *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) SetUpdatedAt(v time.Time) *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) UpdateBillingProfileID() *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) UpdateCollectionAlignment() *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) UpdateDeletedAt() *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) UpdateInvoiceAutoAdvance() *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) UpdateInvoiceCollectionMethod() *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) UpdateInvoiceDraftPeriodSeconds() *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) UpdateInvoiceDueAfterSeconds() *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) UpdateInvoiceItemPerSubject() *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) UpdateInvoiceItemResolution() *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) UpdateItemCollectionPeriodSeconds() *BillingCustomerOverrideUpsert
- func (u *BillingCustomerOverrideUpsert) UpdateUpdatedAt() *BillingCustomerOverrideUpsert
- type BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) AddInvoiceDraftPeriodSeconds(v int64) *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) AddInvoiceDueAfterSeconds(v int64) *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) AddItemCollectionPeriodSeconds(v int64) *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) ClearBillingProfileID() *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) ClearCollectionAlignment() *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) ClearDeletedAt() *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) ClearInvoiceAutoAdvance() *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) ClearInvoiceCollectionMethod() *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) ClearInvoiceDraftPeriodSeconds() *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) ClearInvoiceDueAfterSeconds() *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) ClearInvoiceItemPerSubject() *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) ClearInvoiceItemResolution() *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) ClearItemCollectionPeriodSeconds() *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) DoNothing() *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) Exec(ctx context.Context) error
- func (u *BillingCustomerOverrideUpsertBulk) ExecX(ctx context.Context)
- func (u *BillingCustomerOverrideUpsertBulk) Ignore() *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) SetBillingProfileID(v string) *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) SetCollectionAlignment(v billing.AlignmentKind) *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) SetDeletedAt(v time.Time) *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) SetInvoiceAutoAdvance(v bool) *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) SetInvoiceCollectionMethod(v billing.CollectionMethod) *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) SetInvoiceDraftPeriodSeconds(v int64) *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) SetInvoiceDueAfterSeconds(v int64) *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) SetInvoiceItemPerSubject(v bool) *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) SetInvoiceItemResolution(v billing.GranularityResolution) *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) SetItemCollectionPeriodSeconds(v int64) *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) SetUpdatedAt(v time.Time) *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) Update(set func(*BillingCustomerOverrideUpsert)) *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) UpdateBillingProfileID() *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) UpdateCollectionAlignment() *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) UpdateDeletedAt() *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) UpdateInvoiceAutoAdvance() *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) UpdateInvoiceCollectionMethod() *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) UpdateInvoiceDraftPeriodSeconds() *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) UpdateInvoiceDueAfterSeconds() *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) UpdateInvoiceItemPerSubject() *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) UpdateInvoiceItemResolution() *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) UpdateItemCollectionPeriodSeconds() *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) UpdateNewValues() *BillingCustomerOverrideUpsertBulk
- func (u *BillingCustomerOverrideUpsertBulk) UpdateUpdatedAt() *BillingCustomerOverrideUpsertBulk
- type BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) AddInvoiceDraftPeriodSeconds(v int64) *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) AddInvoiceDueAfterSeconds(v int64) *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) AddItemCollectionPeriodSeconds(v int64) *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) ClearBillingProfileID() *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) ClearCollectionAlignment() *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) ClearDeletedAt() *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) ClearInvoiceAutoAdvance() *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) ClearInvoiceCollectionMethod() *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) ClearInvoiceDraftPeriodSeconds() *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) ClearInvoiceDueAfterSeconds() *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) ClearInvoiceItemPerSubject() *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) ClearInvoiceItemResolution() *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) ClearItemCollectionPeriodSeconds() *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) DoNothing() *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) Exec(ctx context.Context) error
- func (u *BillingCustomerOverrideUpsertOne) ExecX(ctx context.Context)
- func (u *BillingCustomerOverrideUpsertOne) ID(ctx context.Context) (id string, err error)
- func (u *BillingCustomerOverrideUpsertOne) IDX(ctx context.Context) string
- func (u *BillingCustomerOverrideUpsertOne) Ignore() *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) SetBillingProfileID(v string) *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) SetCollectionAlignment(v billing.AlignmentKind) *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) SetDeletedAt(v time.Time) *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) SetInvoiceAutoAdvance(v bool) *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) SetInvoiceCollectionMethod(v billing.CollectionMethod) *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) SetInvoiceDraftPeriodSeconds(v int64) *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) SetInvoiceDueAfterSeconds(v int64) *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) SetInvoiceItemPerSubject(v bool) *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) SetInvoiceItemResolution(v billing.GranularityResolution) *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) SetItemCollectionPeriodSeconds(v int64) *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) SetUpdatedAt(v time.Time) *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) Update(set func(*BillingCustomerOverrideUpsert)) *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) UpdateBillingProfileID() *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) UpdateCollectionAlignment() *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) UpdateDeletedAt() *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) UpdateInvoiceAutoAdvance() *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) UpdateInvoiceCollectionMethod() *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) UpdateInvoiceDraftPeriodSeconds() *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) UpdateInvoiceDueAfterSeconds() *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) UpdateInvoiceItemPerSubject() *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) UpdateInvoiceItemResolution() *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) UpdateItemCollectionPeriodSeconds() *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) UpdateNewValues() *BillingCustomerOverrideUpsertOne
- func (u *BillingCustomerOverrideUpsertOne) UpdateUpdatedAt() *BillingCustomerOverrideUpsertOne
- type BillingCustomerOverrides
- type BillingInvoice
- func (c *BillingInvoice) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bi *BillingInvoice) QueryBillingInvoiceItems() *BillingInvoiceItemQuery
- func (bi *BillingInvoice) QueryBillingProfile() *BillingProfileQuery
- func (bi *BillingInvoice) QueryBillingWorkflowConfig() *BillingWorkflowConfigQuery
- func (c *BillingInvoice) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bi *BillingInvoice) String() string
- func (bi *BillingInvoice) Unwrap() *BillingInvoice
- func (bi *BillingInvoice) Update() *BillingInvoiceUpdateOne
- func (bi *BillingInvoice) Value(name string) (ent.Value, error)
- type BillingInvoiceClient
- func (c *BillingInvoiceClient) Create() *BillingInvoiceCreate
- func (c *BillingInvoiceClient) CreateBulk(builders ...*BillingInvoiceCreate) *BillingInvoiceCreateBulk
- func (c *BillingInvoiceClient) Delete() *BillingInvoiceDelete
- func (c *BillingInvoiceClient) DeleteOne(bi *BillingInvoice) *BillingInvoiceDeleteOne
- func (c *BillingInvoiceClient) DeleteOneID(id string) *BillingInvoiceDeleteOne
- func (c *BillingInvoiceClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *BillingInvoiceClient) Get(ctx context.Context, id string) (*BillingInvoice, error)
- func (c *BillingInvoiceClient) GetX(ctx context.Context, id string) *BillingInvoice
- func (c *BillingInvoiceClient) Hooks() []Hook
- func (c *BillingInvoiceClient) Intercept(interceptors ...Interceptor)
- func (c *BillingInvoiceClient) Interceptors() []Interceptor
- func (c *BillingInvoiceClient) MapCreateBulk(slice any, setFunc func(*BillingInvoiceCreate, int)) *BillingInvoiceCreateBulk
- func (c *BillingInvoiceClient) Query() *BillingInvoiceQuery
- func (c *BillingInvoiceClient) QueryBillingInvoiceItems(bi *BillingInvoice) *BillingInvoiceItemQuery
- func (c *BillingInvoiceClient) QueryBillingProfile(bi *BillingInvoice) *BillingProfileQuery
- func (c *BillingInvoiceClient) QueryBillingWorkflowConfig(bi *BillingInvoice) *BillingWorkflowConfigQuery
- func (c *BillingInvoiceClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *BillingInvoiceClient) Update() *BillingInvoiceUpdate
- func (c *BillingInvoiceClient) UpdateOne(bi *BillingInvoice) *BillingInvoiceUpdateOne
- func (c *BillingInvoiceClient) UpdateOneID(id string) *BillingInvoiceUpdateOne
- func (c *BillingInvoiceClient) Use(hooks ...Hook)
- type BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) AddBillingInvoiceItemIDs(ids ...string) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) AddBillingInvoiceItems(b ...*BillingInvoiceItem) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) Exec(ctx context.Context) error
- func (c *BillingInvoiceCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bic *BillingInvoiceCreate) ExecX(ctx context.Context)
- func (bic *BillingInvoiceCreate) Mutation() *BillingInvoiceMutation
- func (bic *BillingInvoiceCreate) OnConflict(opts ...sql.ConflictOption) *BillingInvoiceUpsertOne
- func (bic *BillingInvoiceCreate) OnConflictColumns(columns ...string) *BillingInvoiceUpsertOne
- func (c *BillingInvoiceCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bic *BillingInvoiceCreate) Save(ctx context.Context) (*BillingInvoice, error)
- func (bic *BillingInvoiceCreate) SaveX(ctx context.Context) *BillingInvoice
- func (bic *BillingInvoiceCreate) SetBillingProfile(b *BillingProfile) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetBillingProfileID(s string) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetBillingWorkflowConfig(b *BillingWorkflowConfig) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetBillingWorkflowConfigID(id string) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetCode(s string) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetCreatedAt(t time.Time) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetCurrency(s string) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetCustomerID(s string) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetDeletedAt(t time.Time) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetDueDate(t time.Time) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetID(s string) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetInvoicingProvider(pp provider.InvoicingProvider) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetMetadata(m map[string]string) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetNamespace(s string) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetNillableCode(s *string) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetNillableCreatedAt(t *time.Time) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetNillableDeletedAt(t *time.Time) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetNillableID(s *string) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetNillableInvoicingProvider(pp *provider.InvoicingProvider) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetNillablePaymentProvider(pp *provider.PaymentProvider) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetNillableSeries(s *string) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetNillableTaxProvider(pp *provider.TaxProvider) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetNillableUpdatedAt(t *time.Time) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetNillableVoidedAt(t *time.Time) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetPaymentProvider(pp provider.PaymentProvider) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetPeriodEnd(t time.Time) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetPeriodStart(t time.Time) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetSeries(s string) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetStatus(bs billing.InvoiceStatus) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetTaxProvider(pp provider.TaxProvider) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetUpdatedAt(t time.Time) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetVoidedAt(t time.Time) *BillingInvoiceCreate
- func (bic *BillingInvoiceCreate) SetWorkflowConfigID(s string) *BillingInvoiceCreate
- type BillingInvoiceCreateBulk
- func (bicb *BillingInvoiceCreateBulk) Exec(ctx context.Context) error
- func (c *BillingInvoiceCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bicb *BillingInvoiceCreateBulk) ExecX(ctx context.Context)
- func (bicb *BillingInvoiceCreateBulk) OnConflict(opts ...sql.ConflictOption) *BillingInvoiceUpsertBulk
- func (bicb *BillingInvoiceCreateBulk) OnConflictColumns(columns ...string) *BillingInvoiceUpsertBulk
- func (c *BillingInvoiceCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bicb *BillingInvoiceCreateBulk) Save(ctx context.Context) ([]*BillingInvoice, error)
- func (bicb *BillingInvoiceCreateBulk) SaveX(ctx context.Context) []*BillingInvoice
- type BillingInvoiceDelete
- func (bid *BillingInvoiceDelete) Exec(ctx context.Context) (int, error)
- func (c *BillingInvoiceDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bid *BillingInvoiceDelete) ExecX(ctx context.Context) int
- func (c *BillingInvoiceDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bid *BillingInvoiceDelete) Where(ps ...predicate.BillingInvoice) *BillingInvoiceDelete
- type BillingInvoiceDeleteOne
- type BillingInvoiceEdges
- type BillingInvoiceGroupBy
- func (bigb *BillingInvoiceGroupBy) Aggregate(fns ...AggregateFunc) *BillingInvoiceGroupBy
- func (s *BillingInvoiceGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *BillingInvoiceGroupBy) BoolX(ctx context.Context) bool
- func (s *BillingInvoiceGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *BillingInvoiceGroupBy) BoolsX(ctx context.Context) []bool
- func (s *BillingInvoiceGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *BillingInvoiceGroupBy) Float64X(ctx context.Context) float64
- func (s *BillingInvoiceGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *BillingInvoiceGroupBy) Float64sX(ctx context.Context) []float64
- func (s *BillingInvoiceGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *BillingInvoiceGroupBy) IntX(ctx context.Context) int
- func (s *BillingInvoiceGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *BillingInvoiceGroupBy) IntsX(ctx context.Context) []int
- func (bigb *BillingInvoiceGroupBy) Scan(ctx context.Context, v any) error
- func (s *BillingInvoiceGroupBy) ScanX(ctx context.Context, v any)
- func (s *BillingInvoiceGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *BillingInvoiceGroupBy) StringX(ctx context.Context) string
- func (s *BillingInvoiceGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *BillingInvoiceGroupBy) StringsX(ctx context.Context) []string
- type BillingInvoiceItem
- func (c *BillingInvoiceItem) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bii *BillingInvoiceItem) QueryBillingInvoice() *BillingInvoiceQuery
- func (c *BillingInvoiceItem) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bii *BillingInvoiceItem) String() string
- func (bii *BillingInvoiceItem) Unwrap() *BillingInvoiceItem
- func (bii *BillingInvoiceItem) Update() *BillingInvoiceItemUpdateOne
- func (bii *BillingInvoiceItem) Value(name string) (ent.Value, error)
- type BillingInvoiceItemClient
- func (c *BillingInvoiceItemClient) Create() *BillingInvoiceItemCreate
- func (c *BillingInvoiceItemClient) CreateBulk(builders ...*BillingInvoiceItemCreate) *BillingInvoiceItemCreateBulk
- func (c *BillingInvoiceItemClient) Delete() *BillingInvoiceItemDelete
- func (c *BillingInvoiceItemClient) DeleteOne(bii *BillingInvoiceItem) *BillingInvoiceItemDeleteOne
- func (c *BillingInvoiceItemClient) DeleteOneID(id string) *BillingInvoiceItemDeleteOne
- func (c *BillingInvoiceItemClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *BillingInvoiceItemClient) Get(ctx context.Context, id string) (*BillingInvoiceItem, error)
- func (c *BillingInvoiceItemClient) GetX(ctx context.Context, id string) *BillingInvoiceItem
- func (c *BillingInvoiceItemClient) Hooks() []Hook
- func (c *BillingInvoiceItemClient) Intercept(interceptors ...Interceptor)
- func (c *BillingInvoiceItemClient) Interceptors() []Interceptor
- func (c *BillingInvoiceItemClient) MapCreateBulk(slice any, setFunc func(*BillingInvoiceItemCreate, int)) *BillingInvoiceItemCreateBulk
- func (c *BillingInvoiceItemClient) Query() *BillingInvoiceItemQuery
- func (c *BillingInvoiceItemClient) QueryBillingInvoice(bii *BillingInvoiceItem) *BillingInvoiceQuery
- func (c *BillingInvoiceItemClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *BillingInvoiceItemClient) Update() *BillingInvoiceItemUpdate
- func (c *BillingInvoiceItemClient) UpdateOne(bii *BillingInvoiceItem) *BillingInvoiceItemUpdateOne
- func (c *BillingInvoiceItemClient) UpdateOneID(id string) *BillingInvoiceItemUpdateOne
- func (c *BillingInvoiceItemClient) Use(hooks ...Hook)
- type BillingInvoiceItemCreate
- func (biic *BillingInvoiceItemCreate) Exec(ctx context.Context) error
- func (c *BillingInvoiceItemCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (biic *BillingInvoiceItemCreate) ExecX(ctx context.Context)
- func (biic *BillingInvoiceItemCreate) Mutation() *BillingInvoiceItemMutation
- func (biic *BillingInvoiceItemCreate) OnConflict(opts ...sql.ConflictOption) *BillingInvoiceItemUpsertOne
- func (biic *BillingInvoiceItemCreate) OnConflictColumns(columns ...string) *BillingInvoiceItemUpsertOne
- func (c *BillingInvoiceItemCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (biic *BillingInvoiceItemCreate) Save(ctx context.Context) (*BillingInvoiceItem, error)
- func (biic *BillingInvoiceItemCreate) SaveX(ctx context.Context) *BillingInvoiceItem
- func (biic *BillingInvoiceItemCreate) SetBillingInvoice(b *BillingInvoice) *BillingInvoiceItemCreate
- func (biic *BillingInvoiceItemCreate) SetBillingInvoiceID(id string) *BillingInvoiceItemCreate
- func (biic *BillingInvoiceItemCreate) SetCreatedAt(t time.Time) *BillingInvoiceItemCreate
- func (biic *BillingInvoiceItemCreate) SetCurrency(c currencyx.Code) *BillingInvoiceItemCreate
- func (biic *BillingInvoiceItemCreate) SetCustomerID(s string) *BillingInvoiceItemCreate
- func (biic *BillingInvoiceItemCreate) SetDeletedAt(t time.Time) *BillingInvoiceItemCreate
- func (biic *BillingInvoiceItemCreate) SetID(s string) *BillingInvoiceItemCreate
- func (biic *BillingInvoiceItemCreate) SetInvoiceAt(t time.Time) *BillingInvoiceItemCreate
- func (biic *BillingInvoiceItemCreate) SetInvoiceID(s string) *BillingInvoiceItemCreate
- func (biic *BillingInvoiceItemCreate) SetMetadata(m map[string]string) *BillingInvoiceItemCreate
- func (biic *BillingInvoiceItemCreate) SetName(s string) *BillingInvoiceItemCreate
- func (biic *BillingInvoiceItemCreate) SetNamespace(s string) *BillingInvoiceItemCreate
- func (biic *BillingInvoiceItemCreate) SetNillableBillingInvoiceID(id *string) *BillingInvoiceItemCreate
- func (biic *BillingInvoiceItemCreate) SetNillableCreatedAt(t *time.Time) *BillingInvoiceItemCreate
- func (biic *BillingInvoiceItemCreate) SetNillableDeletedAt(t *time.Time) *BillingInvoiceItemCreate
- func (biic *BillingInvoiceItemCreate) SetNillableID(s *string) *BillingInvoiceItemCreate
- func (biic *BillingInvoiceItemCreate) SetNillableInvoiceID(s *string) *BillingInvoiceItemCreate
- func (biic *BillingInvoiceItemCreate) SetNillableQuantity(a *alpacadecimal.Decimal) *BillingInvoiceItemCreate
- func (biic *BillingInvoiceItemCreate) SetNillableUpdatedAt(t *time.Time) *BillingInvoiceItemCreate
- func (biic *BillingInvoiceItemCreate) SetPeriodEnd(t time.Time) *BillingInvoiceItemCreate
- func (biic *BillingInvoiceItemCreate) SetPeriodStart(t time.Time) *BillingInvoiceItemCreate
- func (biic *BillingInvoiceItemCreate) SetQuantity(a alpacadecimal.Decimal) *BillingInvoiceItemCreate
- func (biic *BillingInvoiceItemCreate) SetTaxCodeOverride(bo billing.TaxOverrides) *BillingInvoiceItemCreate
- func (biic *BillingInvoiceItemCreate) SetType(bit billing.InvoiceItemType) *BillingInvoiceItemCreate
- func (biic *BillingInvoiceItemCreate) SetUnitPrice(a alpacadecimal.Decimal) *BillingInvoiceItemCreate
- func (biic *BillingInvoiceItemCreate) SetUpdatedAt(t time.Time) *BillingInvoiceItemCreate
- type BillingInvoiceItemCreateBulk
- func (biicb *BillingInvoiceItemCreateBulk) Exec(ctx context.Context) error
- func (c *BillingInvoiceItemCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (biicb *BillingInvoiceItemCreateBulk) ExecX(ctx context.Context)
- func (biicb *BillingInvoiceItemCreateBulk) OnConflict(opts ...sql.ConflictOption) *BillingInvoiceItemUpsertBulk
- func (biicb *BillingInvoiceItemCreateBulk) OnConflictColumns(columns ...string) *BillingInvoiceItemUpsertBulk
- func (c *BillingInvoiceItemCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (biicb *BillingInvoiceItemCreateBulk) Save(ctx context.Context) ([]*BillingInvoiceItem, error)
- func (biicb *BillingInvoiceItemCreateBulk) SaveX(ctx context.Context) []*BillingInvoiceItem
- type BillingInvoiceItemDelete
- func (biid *BillingInvoiceItemDelete) Exec(ctx context.Context) (int, error)
- func (c *BillingInvoiceItemDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (biid *BillingInvoiceItemDelete) ExecX(ctx context.Context) int
- func (c *BillingInvoiceItemDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (biid *BillingInvoiceItemDelete) Where(ps ...predicate.BillingInvoiceItem) *BillingInvoiceItemDelete
- type BillingInvoiceItemDeleteOne
- type BillingInvoiceItemEdges
- type BillingInvoiceItemGroupBy
- func (biigb *BillingInvoiceItemGroupBy) Aggregate(fns ...AggregateFunc) *BillingInvoiceItemGroupBy
- func (s *BillingInvoiceItemGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *BillingInvoiceItemGroupBy) BoolX(ctx context.Context) bool
- func (s *BillingInvoiceItemGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *BillingInvoiceItemGroupBy) BoolsX(ctx context.Context) []bool
- func (s *BillingInvoiceItemGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *BillingInvoiceItemGroupBy) Float64X(ctx context.Context) float64
- func (s *BillingInvoiceItemGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *BillingInvoiceItemGroupBy) Float64sX(ctx context.Context) []float64
- func (s *BillingInvoiceItemGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *BillingInvoiceItemGroupBy) IntX(ctx context.Context) int
- func (s *BillingInvoiceItemGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *BillingInvoiceItemGroupBy) IntsX(ctx context.Context) []int
- func (biigb *BillingInvoiceItemGroupBy) Scan(ctx context.Context, v any) error
- func (s *BillingInvoiceItemGroupBy) ScanX(ctx context.Context, v any)
- func (s *BillingInvoiceItemGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *BillingInvoiceItemGroupBy) StringX(ctx context.Context) string
- func (s *BillingInvoiceItemGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *BillingInvoiceItemGroupBy) StringsX(ctx context.Context) []string
- type BillingInvoiceItemMutation
- func (m *BillingInvoiceItemMutation) AddField(name string, value ent.Value) error
- func (m *BillingInvoiceItemMutation) AddedEdges() []string
- func (m *BillingInvoiceItemMutation) AddedField(name string) (ent.Value, bool)
- func (m *BillingInvoiceItemMutation) AddedFields() []string
- func (m *BillingInvoiceItemMutation) AddedIDs(name string) []ent.Value
- func (m *BillingInvoiceItemMutation) BillingInvoiceCleared() bool
- func (m *BillingInvoiceItemMutation) BillingInvoiceID() (id string, exists bool)
- func (m *BillingInvoiceItemMutation) BillingInvoiceIDs() (ids []string)
- func (m *BillingInvoiceItemMutation) ClearBillingInvoice()
- func (m *BillingInvoiceItemMutation) ClearDeletedAt()
- func (m *BillingInvoiceItemMutation) ClearEdge(name string) error
- func (m *BillingInvoiceItemMutation) ClearField(name string) error
- func (m *BillingInvoiceItemMutation) ClearInvoiceID()
- func (m *BillingInvoiceItemMutation) ClearMetadata()
- func (m *BillingInvoiceItemMutation) ClearQuantity()
- func (m *BillingInvoiceItemMutation) ClearedEdges() []string
- func (m *BillingInvoiceItemMutation) ClearedFields() []string
- func (m BillingInvoiceItemMutation) Client() *Client
- func (m *BillingInvoiceItemMutation) CreatedAt() (r time.Time, exists bool)
- func (m *BillingInvoiceItemMutation) Currency() (r currencyx.Code, exists bool)
- func (m *BillingInvoiceItemMutation) CustomerID() (r string, exists bool)
- func (m *BillingInvoiceItemMutation) DeletedAt() (r time.Time, exists bool)
- func (m *BillingInvoiceItemMutation) DeletedAtCleared() bool
- func (m *BillingInvoiceItemMutation) EdgeCleared(name string) bool
- func (c *BillingInvoiceItemMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *BillingInvoiceItemMutation) Field(name string) (ent.Value, bool)
- func (m *BillingInvoiceItemMutation) FieldCleared(name string) bool
- func (m *BillingInvoiceItemMutation) Fields() []string
- func (m *BillingInvoiceItemMutation) GetType() (r billing.InvoiceItemType, exists bool)
- func (m *BillingInvoiceItemMutation) ID() (id string, exists bool)
- func (m *BillingInvoiceItemMutation) IDs(ctx context.Context) ([]string, error)
- func (m *BillingInvoiceItemMutation) InvoiceAt() (r time.Time, exists bool)
- func (m *BillingInvoiceItemMutation) InvoiceID() (r string, exists bool)
- func (m *BillingInvoiceItemMutation) InvoiceIDCleared() bool
- func (m *BillingInvoiceItemMutation) Metadata() (r map[string]string, exists bool)
- func (m *BillingInvoiceItemMutation) MetadataCleared() bool
- func (m *BillingInvoiceItemMutation) Name() (r string, exists bool)
- func (m *BillingInvoiceItemMutation) Namespace() (r string, exists bool)
- func (m *BillingInvoiceItemMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *BillingInvoiceItemMutation) OldCurrency(ctx context.Context) (v currencyx.Code, err error)
- func (m *BillingInvoiceItemMutation) OldCustomerID(ctx context.Context) (v string, err error)
- func (m *BillingInvoiceItemMutation) OldDeletedAt(ctx context.Context) (v *time.Time, err error)
- func (m *BillingInvoiceItemMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *BillingInvoiceItemMutation) OldInvoiceAt(ctx context.Context) (v time.Time, err error)
- func (m *BillingInvoiceItemMutation) OldInvoiceID(ctx context.Context) (v *string, err error)
- func (m *BillingInvoiceItemMutation) OldMetadata(ctx context.Context) (v map[string]string, err error)
- func (m *BillingInvoiceItemMutation) OldName(ctx context.Context) (v string, err error)
- func (m *BillingInvoiceItemMutation) OldNamespace(ctx context.Context) (v string, err error)
- func (m *BillingInvoiceItemMutation) OldPeriodEnd(ctx context.Context) (v time.Time, err error)
- func (m *BillingInvoiceItemMutation) OldPeriodStart(ctx context.Context) (v time.Time, err error)
- func (m *BillingInvoiceItemMutation) OldQuantity(ctx context.Context) (v *alpacadecimal.Decimal, err error)
- func (m *BillingInvoiceItemMutation) OldTaxCodeOverride(ctx context.Context) (v billing.TaxOverrides, err error)
- func (m *BillingInvoiceItemMutation) OldType(ctx context.Context) (v billing.InvoiceItemType, err error)
- func (m *BillingInvoiceItemMutation) OldUnitPrice(ctx context.Context) (v alpacadecimal.Decimal, err error)
- func (m *BillingInvoiceItemMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *BillingInvoiceItemMutation) Op() Op
- func (m *BillingInvoiceItemMutation) PeriodEnd() (r time.Time, exists bool)
- func (m *BillingInvoiceItemMutation) PeriodStart() (r time.Time, exists bool)
- func (m *BillingInvoiceItemMutation) Quantity() (r alpacadecimal.Decimal, exists bool)
- func (m *BillingInvoiceItemMutation) QuantityCleared() bool
- func (c *BillingInvoiceItemMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *BillingInvoiceItemMutation) RemovedEdges() []string
- func (m *BillingInvoiceItemMutation) RemovedIDs(name string) []ent.Value
- func (m *BillingInvoiceItemMutation) ResetBillingInvoice()
- func (m *BillingInvoiceItemMutation) ResetCreatedAt()
- func (m *BillingInvoiceItemMutation) ResetCurrency()
- func (m *BillingInvoiceItemMutation) ResetCustomerID()
- func (m *BillingInvoiceItemMutation) ResetDeletedAt()
- func (m *BillingInvoiceItemMutation) ResetEdge(name string) error
- func (m *BillingInvoiceItemMutation) ResetField(name string) error
- func (m *BillingInvoiceItemMutation) ResetInvoiceAt()
- func (m *BillingInvoiceItemMutation) ResetInvoiceID()
- func (m *BillingInvoiceItemMutation) ResetMetadata()
- func (m *BillingInvoiceItemMutation) ResetName()
- func (m *BillingInvoiceItemMutation) ResetNamespace()
- func (m *BillingInvoiceItemMutation) ResetPeriodEnd()
- func (m *BillingInvoiceItemMutation) ResetPeriodStart()
- func (m *BillingInvoiceItemMutation) ResetQuantity()
- func (m *BillingInvoiceItemMutation) ResetTaxCodeOverride()
- func (m *BillingInvoiceItemMutation) ResetType()
- func (m *BillingInvoiceItemMutation) ResetUnitPrice()
- func (m *BillingInvoiceItemMutation) ResetUpdatedAt()
- func (m *BillingInvoiceItemMutation) SetBillingInvoiceID(id string)
- func (m *BillingInvoiceItemMutation) SetCreatedAt(t time.Time)
- func (m *BillingInvoiceItemMutation) SetCurrency(c currencyx.Code)
- func (m *BillingInvoiceItemMutation) SetCustomerID(s string)
- func (m *BillingInvoiceItemMutation) SetDeletedAt(t time.Time)
- func (m *BillingInvoiceItemMutation) SetField(name string, value ent.Value) error
- func (m *BillingInvoiceItemMutation) SetID(id string)
- func (m *BillingInvoiceItemMutation) SetInvoiceAt(t time.Time)
- func (m *BillingInvoiceItemMutation) SetInvoiceID(s string)
- func (m *BillingInvoiceItemMutation) SetMetadata(value map[string]string)
- func (m *BillingInvoiceItemMutation) SetName(s string)
- func (m *BillingInvoiceItemMutation) SetNamespace(s string)
- func (m *BillingInvoiceItemMutation) SetOp(op Op)
- func (m *BillingInvoiceItemMutation) SetPeriodEnd(t time.Time)
- func (m *BillingInvoiceItemMutation) SetPeriodStart(t time.Time)
- func (m *BillingInvoiceItemMutation) SetQuantity(a alpacadecimal.Decimal)
- func (m *BillingInvoiceItemMutation) SetTaxCodeOverride(bo billing.TaxOverrides)
- func (m *BillingInvoiceItemMutation) SetType(bit billing.InvoiceItemType)
- func (m *BillingInvoiceItemMutation) SetUnitPrice(a alpacadecimal.Decimal)
- func (m *BillingInvoiceItemMutation) SetUpdatedAt(t time.Time)
- func (m *BillingInvoiceItemMutation) TaxCodeOverride() (r billing.TaxOverrides, exists bool)
- func (m BillingInvoiceItemMutation) Tx() (*Tx, error)
- func (m *BillingInvoiceItemMutation) Type() string
- func (m *BillingInvoiceItemMutation) UnitPrice() (r alpacadecimal.Decimal, exists bool)
- func (m *BillingInvoiceItemMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *BillingInvoiceItemMutation) Where(ps ...predicate.BillingInvoiceItem)
- func (m *BillingInvoiceItemMutation) WhereP(ps ...func(*sql.Selector))
- type BillingInvoiceItemQuery
- func (biiq *BillingInvoiceItemQuery) Aggregate(fns ...AggregateFunc) *BillingInvoiceItemSelect
- func (biiq *BillingInvoiceItemQuery) All(ctx context.Context) ([]*BillingInvoiceItem, error)
- func (biiq *BillingInvoiceItemQuery) AllX(ctx context.Context) []*BillingInvoiceItem
- func (biiq *BillingInvoiceItemQuery) Clone() *BillingInvoiceItemQuery
- func (biiq *BillingInvoiceItemQuery) Count(ctx context.Context) (int, error)
- func (biiq *BillingInvoiceItemQuery) CountX(ctx context.Context) int
- func (c *BillingInvoiceItemQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (biiq *BillingInvoiceItemQuery) Exist(ctx context.Context) (bool, error)
- func (biiq *BillingInvoiceItemQuery) ExistX(ctx context.Context) bool
- func (biiq *BillingInvoiceItemQuery) First(ctx context.Context) (*BillingInvoiceItem, error)
- func (biiq *BillingInvoiceItemQuery) FirstID(ctx context.Context) (id string, err error)
- func (biiq *BillingInvoiceItemQuery) FirstIDX(ctx context.Context) string
- func (biiq *BillingInvoiceItemQuery) FirstX(ctx context.Context) *BillingInvoiceItem
- func (biiq *BillingInvoiceItemQuery) ForShare(opts ...sql.LockOption) *BillingInvoiceItemQuery
- func (biiq *BillingInvoiceItemQuery) ForUpdate(opts ...sql.LockOption) *BillingInvoiceItemQuery
- func (biiq *BillingInvoiceItemQuery) GroupBy(field string, fields ...string) *BillingInvoiceItemGroupBy
- func (biiq *BillingInvoiceItemQuery) IDs(ctx context.Context) (ids []string, err error)
- func (biiq *BillingInvoiceItemQuery) IDsX(ctx context.Context) []string
- func (biiq *BillingInvoiceItemQuery) Limit(limit int) *BillingInvoiceItemQuery
- func (biiq *BillingInvoiceItemQuery) Offset(offset int) *BillingInvoiceItemQuery
- func (biiq *BillingInvoiceItemQuery) Only(ctx context.Context) (*BillingInvoiceItem, error)
- func (biiq *BillingInvoiceItemQuery) OnlyID(ctx context.Context) (id string, err error)
- func (biiq *BillingInvoiceItemQuery) OnlyIDX(ctx context.Context) string
- func (biiq *BillingInvoiceItemQuery) OnlyX(ctx context.Context) *BillingInvoiceItem
- func (biiq *BillingInvoiceItemQuery) Order(o ...billinginvoiceitem.OrderOption) *BillingInvoiceItemQuery
- func (bii *BillingInvoiceItemQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*BillingInvoiceItem], error)
- func (biiq *BillingInvoiceItemQuery) QueryBillingInvoice() *BillingInvoiceQuery
- func (c *BillingInvoiceItemQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (biiq *BillingInvoiceItemQuery) Select(fields ...string) *BillingInvoiceItemSelect
- func (biiq *BillingInvoiceItemQuery) Unique(unique bool) *BillingInvoiceItemQuery
- func (biiq *BillingInvoiceItemQuery) Where(ps ...predicate.BillingInvoiceItem) *BillingInvoiceItemQuery
- func (biiq *BillingInvoiceItemQuery) WithBillingInvoice(opts ...func(*BillingInvoiceQuery)) *BillingInvoiceItemQuery
- type BillingInvoiceItemSelect
- func (biis *BillingInvoiceItemSelect) Aggregate(fns ...AggregateFunc) *BillingInvoiceItemSelect
- func (s *BillingInvoiceItemSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *BillingInvoiceItemSelect) BoolX(ctx context.Context) bool
- func (s *BillingInvoiceItemSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *BillingInvoiceItemSelect) BoolsX(ctx context.Context) []bool
- func (c BillingInvoiceItemSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *BillingInvoiceItemSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *BillingInvoiceItemSelect) Float64X(ctx context.Context) float64
- func (s *BillingInvoiceItemSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *BillingInvoiceItemSelect) Float64sX(ctx context.Context) []float64
- func (s *BillingInvoiceItemSelect) Int(ctx context.Context) (_ int, err error)
- func (s *BillingInvoiceItemSelect) IntX(ctx context.Context) int
- func (s *BillingInvoiceItemSelect) Ints(ctx context.Context) ([]int, error)
- func (s *BillingInvoiceItemSelect) IntsX(ctx context.Context) []int
- func (c BillingInvoiceItemSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (biis *BillingInvoiceItemSelect) Scan(ctx context.Context, v any) error
- func (s *BillingInvoiceItemSelect) ScanX(ctx context.Context, v any)
- func (s *BillingInvoiceItemSelect) String(ctx context.Context) (_ string, err error)
- func (s *BillingInvoiceItemSelect) StringX(ctx context.Context) string
- func (s *BillingInvoiceItemSelect) Strings(ctx context.Context) ([]string, error)
- func (s *BillingInvoiceItemSelect) StringsX(ctx context.Context) []string
- type BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) ClearBillingInvoice() *BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) ClearDeletedAt() *BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) ClearInvoiceID() *BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) ClearMetadata() *BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) ClearQuantity() *BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) Exec(ctx context.Context) error
- func (c *BillingInvoiceItemUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (biiu *BillingInvoiceItemUpdate) ExecX(ctx context.Context)
- func (biiu *BillingInvoiceItemUpdate) Mutation() *BillingInvoiceItemMutation
- func (c *BillingInvoiceItemUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (biiu *BillingInvoiceItemUpdate) Save(ctx context.Context) (int, error)
- func (biiu *BillingInvoiceItemUpdate) SaveX(ctx context.Context) int
- func (biiu *BillingInvoiceItemUpdate) SetBillingInvoice(b *BillingInvoice) *BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) SetBillingInvoiceID(id string) *BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) SetDeletedAt(t time.Time) *BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) SetInvoiceAt(t time.Time) *BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) SetInvoiceID(s string) *BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) SetMetadata(m map[string]string) *BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) SetName(s string) *BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) SetNillableBillingInvoiceID(id *string) *BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) SetNillableDeletedAt(t *time.Time) *BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) SetNillableInvoiceAt(t *time.Time) *BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) SetNillableInvoiceID(s *string) *BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) SetNillableName(s *string) *BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) SetNillablePeriodEnd(t *time.Time) *BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) SetNillablePeriodStart(t *time.Time) *BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) SetNillableQuantity(a *alpacadecimal.Decimal) *BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) SetNillableTaxCodeOverride(bo *billing.TaxOverrides) *BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) SetNillableType(bit *billing.InvoiceItemType) *BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) SetNillableUnitPrice(a *alpacadecimal.Decimal) *BillingInvoiceItemUpdate
- func (u *BillingInvoiceItemUpdate) SetOrClearDeletedAt(value *time.Time) *BillingInvoiceItemUpdate
- func (u *BillingInvoiceItemUpdate) SetOrClearInvoiceID(value *string) *BillingInvoiceItemUpdate
- func (u *BillingInvoiceItemUpdate) SetOrClearMetadata(value *map[string]string) *BillingInvoiceItemUpdate
- func (u *BillingInvoiceItemUpdate) SetOrClearQuantity(value *alpacadecimal.Decimal) *BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) SetPeriodEnd(t time.Time) *BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) SetPeriodStart(t time.Time) *BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) SetQuantity(a alpacadecimal.Decimal) *BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) SetTaxCodeOverride(bo billing.TaxOverrides) *BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) SetType(bit billing.InvoiceItemType) *BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) SetUnitPrice(a alpacadecimal.Decimal) *BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) SetUpdatedAt(t time.Time) *BillingInvoiceItemUpdate
- func (biiu *BillingInvoiceItemUpdate) Where(ps ...predicate.BillingInvoiceItem) *BillingInvoiceItemUpdate
- type BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) ClearBillingInvoice() *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) ClearDeletedAt() *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) ClearInvoiceID() *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) ClearMetadata() *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) ClearQuantity() *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) Exec(ctx context.Context) error
- func (c *BillingInvoiceItemUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (biiuo *BillingInvoiceItemUpdateOne) ExecX(ctx context.Context)
- func (biiuo *BillingInvoiceItemUpdateOne) Mutation() *BillingInvoiceItemMutation
- func (c *BillingInvoiceItemUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (biiuo *BillingInvoiceItemUpdateOne) Save(ctx context.Context) (*BillingInvoiceItem, error)
- func (biiuo *BillingInvoiceItemUpdateOne) SaveX(ctx context.Context) *BillingInvoiceItem
- func (biiuo *BillingInvoiceItemUpdateOne) Select(field string, fields ...string) *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) SetBillingInvoice(b *BillingInvoice) *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) SetBillingInvoiceID(id string) *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) SetDeletedAt(t time.Time) *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) SetInvoiceAt(t time.Time) *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) SetInvoiceID(s string) *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) SetMetadata(m map[string]string) *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) SetName(s string) *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) SetNillableBillingInvoiceID(id *string) *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) SetNillableDeletedAt(t *time.Time) *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) SetNillableInvoiceAt(t *time.Time) *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) SetNillableInvoiceID(s *string) *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) SetNillableName(s *string) *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) SetNillablePeriodEnd(t *time.Time) *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) SetNillablePeriodStart(t *time.Time) *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) SetNillableQuantity(a *alpacadecimal.Decimal) *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) SetNillableTaxCodeOverride(bo *billing.TaxOverrides) *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) SetNillableType(bit *billing.InvoiceItemType) *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) SetNillableUnitPrice(a *alpacadecimal.Decimal) *BillingInvoiceItemUpdateOne
- func (u *BillingInvoiceItemUpdateOne) SetOrClearDeletedAt(value *time.Time) *BillingInvoiceItemUpdateOne
- func (u *BillingInvoiceItemUpdateOne) SetOrClearInvoiceID(value *string) *BillingInvoiceItemUpdateOne
- func (u *BillingInvoiceItemUpdateOne) SetOrClearMetadata(value *map[string]string) *BillingInvoiceItemUpdateOne
- func (u *BillingInvoiceItemUpdateOne) SetOrClearQuantity(value *alpacadecimal.Decimal) *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) SetPeriodEnd(t time.Time) *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) SetPeriodStart(t time.Time) *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) SetQuantity(a alpacadecimal.Decimal) *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) SetTaxCodeOverride(bo billing.TaxOverrides) *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) SetType(bit billing.InvoiceItemType) *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) SetUnitPrice(a alpacadecimal.Decimal) *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) SetUpdatedAt(t time.Time) *BillingInvoiceItemUpdateOne
- func (biiuo *BillingInvoiceItemUpdateOne) Where(ps ...predicate.BillingInvoiceItem) *BillingInvoiceItemUpdateOne
- type BillingInvoiceItemUpsert
- func (u *BillingInvoiceItemUpsert) ClearDeletedAt() *BillingInvoiceItemUpsert
- func (u *BillingInvoiceItemUpsert) ClearInvoiceID() *BillingInvoiceItemUpsert
- func (u *BillingInvoiceItemUpsert) ClearMetadata() *BillingInvoiceItemUpsert
- func (u *BillingInvoiceItemUpsert) ClearQuantity() *BillingInvoiceItemUpsert
- func (u *BillingInvoiceItemUpsert) SetDeletedAt(v time.Time) *BillingInvoiceItemUpsert
- func (u *BillingInvoiceItemUpsert) SetInvoiceAt(v time.Time) *BillingInvoiceItemUpsert
- func (u *BillingInvoiceItemUpsert) SetInvoiceID(v string) *BillingInvoiceItemUpsert
- func (u *BillingInvoiceItemUpsert) SetMetadata(v map[string]string) *BillingInvoiceItemUpsert
- func (u *BillingInvoiceItemUpsert) SetName(v string) *BillingInvoiceItemUpsert
- func (u *BillingInvoiceItemUpsert) SetPeriodEnd(v time.Time) *BillingInvoiceItemUpsert
- func (u *BillingInvoiceItemUpsert) SetPeriodStart(v time.Time) *BillingInvoiceItemUpsert
- func (u *BillingInvoiceItemUpsert) SetQuantity(v alpacadecimal.Decimal) *BillingInvoiceItemUpsert
- func (u *BillingInvoiceItemUpsert) SetTaxCodeOverride(v billing.TaxOverrides) *BillingInvoiceItemUpsert
- func (u *BillingInvoiceItemUpsert) SetType(v billing.InvoiceItemType) *BillingInvoiceItemUpsert
- func (u *BillingInvoiceItemUpsert) SetUnitPrice(v alpacadecimal.Decimal) *BillingInvoiceItemUpsert
- func (u *BillingInvoiceItemUpsert) SetUpdatedAt(v time.Time) *BillingInvoiceItemUpsert
- func (u *BillingInvoiceItemUpsert) UpdateDeletedAt() *BillingInvoiceItemUpsert
- func (u *BillingInvoiceItemUpsert) UpdateInvoiceAt() *BillingInvoiceItemUpsert
- func (u *BillingInvoiceItemUpsert) UpdateInvoiceID() *BillingInvoiceItemUpsert
- func (u *BillingInvoiceItemUpsert) UpdateMetadata() *BillingInvoiceItemUpsert
- func (u *BillingInvoiceItemUpsert) UpdateName() *BillingInvoiceItemUpsert
- func (u *BillingInvoiceItemUpsert) UpdatePeriodEnd() *BillingInvoiceItemUpsert
- func (u *BillingInvoiceItemUpsert) UpdatePeriodStart() *BillingInvoiceItemUpsert
- func (u *BillingInvoiceItemUpsert) UpdateQuantity() *BillingInvoiceItemUpsert
- func (u *BillingInvoiceItemUpsert) UpdateTaxCodeOverride() *BillingInvoiceItemUpsert
- func (u *BillingInvoiceItemUpsert) UpdateType() *BillingInvoiceItemUpsert
- func (u *BillingInvoiceItemUpsert) UpdateUnitPrice() *BillingInvoiceItemUpsert
- func (u *BillingInvoiceItemUpsert) UpdateUpdatedAt() *BillingInvoiceItemUpsert
- type BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) ClearDeletedAt() *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) ClearInvoiceID() *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) ClearMetadata() *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) ClearQuantity() *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) DoNothing() *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) Exec(ctx context.Context) error
- func (u *BillingInvoiceItemUpsertBulk) ExecX(ctx context.Context)
- func (u *BillingInvoiceItemUpsertBulk) Ignore() *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) SetDeletedAt(v time.Time) *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) SetInvoiceAt(v time.Time) *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) SetInvoiceID(v string) *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) SetMetadata(v map[string]string) *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) SetName(v string) *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) SetPeriodEnd(v time.Time) *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) SetPeriodStart(v time.Time) *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) SetQuantity(v alpacadecimal.Decimal) *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) SetTaxCodeOverride(v billing.TaxOverrides) *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) SetType(v billing.InvoiceItemType) *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) SetUnitPrice(v alpacadecimal.Decimal) *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) SetUpdatedAt(v time.Time) *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) Update(set func(*BillingInvoiceItemUpsert)) *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) UpdateDeletedAt() *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) UpdateInvoiceAt() *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) UpdateInvoiceID() *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) UpdateMetadata() *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) UpdateName() *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) UpdateNewValues() *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) UpdatePeriodEnd() *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) UpdatePeriodStart() *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) UpdateQuantity() *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) UpdateTaxCodeOverride() *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) UpdateType() *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) UpdateUnitPrice() *BillingInvoiceItemUpsertBulk
- func (u *BillingInvoiceItemUpsertBulk) UpdateUpdatedAt() *BillingInvoiceItemUpsertBulk
- type BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) ClearDeletedAt() *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) ClearInvoiceID() *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) ClearMetadata() *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) ClearQuantity() *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) DoNothing() *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) Exec(ctx context.Context) error
- func (u *BillingInvoiceItemUpsertOne) ExecX(ctx context.Context)
- func (u *BillingInvoiceItemUpsertOne) ID(ctx context.Context) (id string, err error)
- func (u *BillingInvoiceItemUpsertOne) IDX(ctx context.Context) string
- func (u *BillingInvoiceItemUpsertOne) Ignore() *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) SetDeletedAt(v time.Time) *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) SetInvoiceAt(v time.Time) *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) SetInvoiceID(v string) *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) SetMetadata(v map[string]string) *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) SetName(v string) *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) SetPeriodEnd(v time.Time) *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) SetPeriodStart(v time.Time) *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) SetQuantity(v alpacadecimal.Decimal) *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) SetTaxCodeOverride(v billing.TaxOverrides) *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) SetType(v billing.InvoiceItemType) *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) SetUnitPrice(v alpacadecimal.Decimal) *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) SetUpdatedAt(v time.Time) *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) Update(set func(*BillingInvoiceItemUpsert)) *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) UpdateDeletedAt() *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) UpdateInvoiceAt() *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) UpdateInvoiceID() *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) UpdateMetadata() *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) UpdateName() *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) UpdateNewValues() *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) UpdatePeriodEnd() *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) UpdatePeriodStart() *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) UpdateQuantity() *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) UpdateTaxCodeOverride() *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) UpdateType() *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) UpdateUnitPrice() *BillingInvoiceItemUpsertOne
- func (u *BillingInvoiceItemUpsertOne) UpdateUpdatedAt() *BillingInvoiceItemUpsertOne
- type BillingInvoiceItems
- type BillingInvoiceMutation
- func (m *BillingInvoiceMutation) AddBillingInvoiceItemIDs(ids ...string)
- func (m *BillingInvoiceMutation) AddField(name string, value ent.Value) error
- func (m *BillingInvoiceMutation) AddedEdges() []string
- func (m *BillingInvoiceMutation) AddedField(name string) (ent.Value, bool)
- func (m *BillingInvoiceMutation) AddedFields() []string
- func (m *BillingInvoiceMutation) AddedIDs(name string) []ent.Value
- func (m *BillingInvoiceMutation) BillingInvoiceItemsCleared() bool
- func (m *BillingInvoiceMutation) BillingInvoiceItemsIDs() (ids []string)
- func (m *BillingInvoiceMutation) BillingProfileCleared() bool
- func (m *BillingInvoiceMutation) BillingProfileID() (r string, exists bool)
- func (m *BillingInvoiceMutation) BillingProfileIDs() (ids []string)
- func (m *BillingInvoiceMutation) BillingWorkflowConfigCleared() bool
- func (m *BillingInvoiceMutation) BillingWorkflowConfigID() (id string, exists bool)
- func (m *BillingInvoiceMutation) BillingWorkflowConfigIDs() (ids []string)
- func (m *BillingInvoiceMutation) ClearBillingInvoiceItems()
- func (m *BillingInvoiceMutation) ClearBillingProfile()
- func (m *BillingInvoiceMutation) ClearBillingWorkflowConfig()
- func (m *BillingInvoiceMutation) ClearCode()
- func (m *BillingInvoiceMutation) ClearDeletedAt()
- func (m *BillingInvoiceMutation) ClearEdge(name string) error
- func (m *BillingInvoiceMutation) ClearField(name string) error
- func (m *BillingInvoiceMutation) ClearInvoicingProvider()
- func (m *BillingInvoiceMutation) ClearMetadata()
- func (m *BillingInvoiceMutation) ClearPaymentProvider()
- func (m *BillingInvoiceMutation) ClearSeries()
- func (m *BillingInvoiceMutation) ClearTaxProvider()
- func (m *BillingInvoiceMutation) ClearVoidedAt()
- func (m *BillingInvoiceMutation) ClearedEdges() []string
- func (m *BillingInvoiceMutation) ClearedFields() []string
- func (m BillingInvoiceMutation) Client() *Client
- func (m *BillingInvoiceMutation) Code() (r string, exists bool)
- func (m *BillingInvoiceMutation) CodeCleared() bool
- func (m *BillingInvoiceMutation) CreatedAt() (r time.Time, exists bool)
- func (m *BillingInvoiceMutation) Currency() (r string, exists bool)
- func (m *BillingInvoiceMutation) CustomerID() (r string, exists bool)
- func (m *BillingInvoiceMutation) DeletedAt() (r time.Time, exists bool)
- func (m *BillingInvoiceMutation) DeletedAtCleared() bool
- func (m *BillingInvoiceMutation) DueDate() (r time.Time, exists bool)
- func (m *BillingInvoiceMutation) EdgeCleared(name string) bool
- func (c *BillingInvoiceMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *BillingInvoiceMutation) Field(name string) (ent.Value, bool)
- func (m *BillingInvoiceMutation) FieldCleared(name string) bool
- func (m *BillingInvoiceMutation) Fields() []string
- func (m *BillingInvoiceMutation) ID() (id string, exists bool)
- func (m *BillingInvoiceMutation) IDs(ctx context.Context) ([]string, error)
- func (m *BillingInvoiceMutation) InvoicingProvider() (r provider.InvoicingProvider, exists bool)
- func (m *BillingInvoiceMutation) InvoicingProviderCleared() bool
- func (m *BillingInvoiceMutation) Metadata() (r map[string]string, exists bool)
- func (m *BillingInvoiceMutation) MetadataCleared() bool
- func (m *BillingInvoiceMutation) Namespace() (r string, exists bool)
- func (m *BillingInvoiceMutation) OldBillingProfileID(ctx context.Context) (v string, err error)
- func (m *BillingInvoiceMutation) OldCode(ctx context.Context) (v *string, err error)
- func (m *BillingInvoiceMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *BillingInvoiceMutation) OldCurrency(ctx context.Context) (v string, err error)
- func (m *BillingInvoiceMutation) OldCustomerID(ctx context.Context) (v string, err error)
- func (m *BillingInvoiceMutation) OldDeletedAt(ctx context.Context) (v *time.Time, err error)
- func (m *BillingInvoiceMutation) OldDueDate(ctx context.Context) (v time.Time, err error)
- func (m *BillingInvoiceMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *BillingInvoiceMutation) OldInvoicingProvider(ctx context.Context) (v *provider.InvoicingProvider, err error)
- func (m *BillingInvoiceMutation) OldMetadata(ctx context.Context) (v map[string]string, err error)
- func (m *BillingInvoiceMutation) OldNamespace(ctx context.Context) (v string, err error)
- func (m *BillingInvoiceMutation) OldPaymentProvider(ctx context.Context) (v *provider.PaymentProvider, err error)
- func (m *BillingInvoiceMutation) OldPeriodEnd(ctx context.Context) (v time.Time, err error)
- func (m *BillingInvoiceMutation) OldPeriodStart(ctx context.Context) (v time.Time, err error)
- func (m *BillingInvoiceMutation) OldSeries(ctx context.Context) (v *string, err error)
- func (m *BillingInvoiceMutation) OldStatus(ctx context.Context) (v billing.InvoiceStatus, err error)
- func (m *BillingInvoiceMutation) OldTaxProvider(ctx context.Context) (v *provider.TaxProvider, err error)
- func (m *BillingInvoiceMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *BillingInvoiceMutation) OldVoidedAt(ctx context.Context) (v time.Time, err error)
- func (m *BillingInvoiceMutation) OldWorkflowConfigID(ctx context.Context) (v string, err error)
- func (m *BillingInvoiceMutation) Op() Op
- func (m *BillingInvoiceMutation) PaymentProvider() (r provider.PaymentProvider, exists bool)
- func (m *BillingInvoiceMutation) PaymentProviderCleared() bool
- func (m *BillingInvoiceMutation) PeriodEnd() (r time.Time, exists bool)
- func (m *BillingInvoiceMutation) PeriodStart() (r time.Time, exists bool)
- func (c *BillingInvoiceMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *BillingInvoiceMutation) RemoveBillingInvoiceItemIDs(ids ...string)
- func (m *BillingInvoiceMutation) RemovedBillingInvoiceItemsIDs() (ids []string)
- func (m *BillingInvoiceMutation) RemovedEdges() []string
- func (m *BillingInvoiceMutation) RemovedIDs(name string) []ent.Value
- func (m *BillingInvoiceMutation) ResetBillingInvoiceItems()
- func (m *BillingInvoiceMutation) ResetBillingProfile()
- func (m *BillingInvoiceMutation) ResetBillingProfileID()
- func (m *BillingInvoiceMutation) ResetBillingWorkflowConfig()
- func (m *BillingInvoiceMutation) ResetCode()
- func (m *BillingInvoiceMutation) ResetCreatedAt()
- func (m *BillingInvoiceMutation) ResetCurrency()
- func (m *BillingInvoiceMutation) ResetCustomerID()
- func (m *BillingInvoiceMutation) ResetDeletedAt()
- func (m *BillingInvoiceMutation) ResetDueDate()
- func (m *BillingInvoiceMutation) ResetEdge(name string) error
- func (m *BillingInvoiceMutation) ResetField(name string) error
- func (m *BillingInvoiceMutation) ResetInvoicingProvider()
- func (m *BillingInvoiceMutation) ResetMetadata()
- func (m *BillingInvoiceMutation) ResetNamespace()
- func (m *BillingInvoiceMutation) ResetPaymentProvider()
- func (m *BillingInvoiceMutation) ResetPeriodEnd()
- func (m *BillingInvoiceMutation) ResetPeriodStart()
- func (m *BillingInvoiceMutation) ResetSeries()
- func (m *BillingInvoiceMutation) ResetStatus()
- func (m *BillingInvoiceMutation) ResetTaxProvider()
- func (m *BillingInvoiceMutation) ResetUpdatedAt()
- func (m *BillingInvoiceMutation) ResetVoidedAt()
- func (m *BillingInvoiceMutation) ResetWorkflowConfigID()
- func (m *BillingInvoiceMutation) Series() (r string, exists bool)
- func (m *BillingInvoiceMutation) SeriesCleared() bool
- func (m *BillingInvoiceMutation) SetBillingProfileID(s string)
- func (m *BillingInvoiceMutation) SetBillingWorkflowConfigID(id string)
- func (m *BillingInvoiceMutation) SetCode(s string)
- func (m *BillingInvoiceMutation) SetCreatedAt(t time.Time)
- func (m *BillingInvoiceMutation) SetCurrency(s string)
- func (m *BillingInvoiceMutation) SetCustomerID(s string)
- func (m *BillingInvoiceMutation) SetDeletedAt(t time.Time)
- func (m *BillingInvoiceMutation) SetDueDate(t time.Time)
- func (m *BillingInvoiceMutation) SetField(name string, value ent.Value) error
- func (m *BillingInvoiceMutation) SetID(id string)
- func (m *BillingInvoiceMutation) SetInvoicingProvider(pp provider.InvoicingProvider)
- func (m *BillingInvoiceMutation) SetMetadata(value map[string]string)
- func (m *BillingInvoiceMutation) SetNamespace(s string)
- func (m *BillingInvoiceMutation) SetOp(op Op)
- func (m *BillingInvoiceMutation) SetPaymentProvider(pp provider.PaymentProvider)
- func (m *BillingInvoiceMutation) SetPeriodEnd(t time.Time)
- func (m *BillingInvoiceMutation) SetPeriodStart(t time.Time)
- func (m *BillingInvoiceMutation) SetSeries(s string)
- func (m *BillingInvoiceMutation) SetStatus(bs billing.InvoiceStatus)
- func (m *BillingInvoiceMutation) SetTaxProvider(pp provider.TaxProvider)
- func (m *BillingInvoiceMutation) SetUpdatedAt(t time.Time)
- func (m *BillingInvoiceMutation) SetVoidedAt(t time.Time)
- func (m *BillingInvoiceMutation) SetWorkflowConfigID(s string)
- func (m *BillingInvoiceMutation) Status() (r billing.InvoiceStatus, exists bool)
- func (m *BillingInvoiceMutation) TaxProvider() (r provider.TaxProvider, exists bool)
- func (m *BillingInvoiceMutation) TaxProviderCleared() bool
- func (m BillingInvoiceMutation) Tx() (*Tx, error)
- func (m *BillingInvoiceMutation) Type() string
- func (m *BillingInvoiceMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *BillingInvoiceMutation) VoidedAt() (r time.Time, exists bool)
- func (m *BillingInvoiceMutation) VoidedAtCleared() bool
- func (m *BillingInvoiceMutation) Where(ps ...predicate.BillingInvoice)
- func (m *BillingInvoiceMutation) WhereP(ps ...func(*sql.Selector))
- func (m *BillingInvoiceMutation) WorkflowConfigID() (r string, exists bool)
- type BillingInvoiceQuery
- func (biq *BillingInvoiceQuery) Aggregate(fns ...AggregateFunc) *BillingInvoiceSelect
- func (biq *BillingInvoiceQuery) All(ctx context.Context) ([]*BillingInvoice, error)
- func (biq *BillingInvoiceQuery) AllX(ctx context.Context) []*BillingInvoice
- func (biq *BillingInvoiceQuery) Clone() *BillingInvoiceQuery
- func (biq *BillingInvoiceQuery) Count(ctx context.Context) (int, error)
- func (biq *BillingInvoiceQuery) CountX(ctx context.Context) int
- func (c *BillingInvoiceQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (biq *BillingInvoiceQuery) Exist(ctx context.Context) (bool, error)
- func (biq *BillingInvoiceQuery) ExistX(ctx context.Context) bool
- func (biq *BillingInvoiceQuery) First(ctx context.Context) (*BillingInvoice, error)
- func (biq *BillingInvoiceQuery) FirstID(ctx context.Context) (id string, err error)
- func (biq *BillingInvoiceQuery) FirstIDX(ctx context.Context) string
- func (biq *BillingInvoiceQuery) FirstX(ctx context.Context) *BillingInvoice
- func (biq *BillingInvoiceQuery) ForShare(opts ...sql.LockOption) *BillingInvoiceQuery
- func (biq *BillingInvoiceQuery) ForUpdate(opts ...sql.LockOption) *BillingInvoiceQuery
- func (biq *BillingInvoiceQuery) GroupBy(field string, fields ...string) *BillingInvoiceGroupBy
- func (biq *BillingInvoiceQuery) IDs(ctx context.Context) (ids []string, err error)
- func (biq *BillingInvoiceQuery) IDsX(ctx context.Context) []string
- func (biq *BillingInvoiceQuery) Limit(limit int) *BillingInvoiceQuery
- func (biq *BillingInvoiceQuery) Offset(offset int) *BillingInvoiceQuery
- func (biq *BillingInvoiceQuery) Only(ctx context.Context) (*BillingInvoice, error)
- func (biq *BillingInvoiceQuery) OnlyID(ctx context.Context) (id string, err error)
- func (biq *BillingInvoiceQuery) OnlyIDX(ctx context.Context) string
- func (biq *BillingInvoiceQuery) OnlyX(ctx context.Context) *BillingInvoice
- func (biq *BillingInvoiceQuery) Order(o ...billinginvoice.OrderOption) *BillingInvoiceQuery
- func (bi *BillingInvoiceQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*BillingInvoice], error)
- func (biq *BillingInvoiceQuery) QueryBillingInvoiceItems() *BillingInvoiceItemQuery
- func (biq *BillingInvoiceQuery) QueryBillingProfile() *BillingProfileQuery
- func (biq *BillingInvoiceQuery) QueryBillingWorkflowConfig() *BillingWorkflowConfigQuery
- func (c *BillingInvoiceQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (biq *BillingInvoiceQuery) Select(fields ...string) *BillingInvoiceSelect
- func (biq *BillingInvoiceQuery) Unique(unique bool) *BillingInvoiceQuery
- func (biq *BillingInvoiceQuery) Where(ps ...predicate.BillingInvoice) *BillingInvoiceQuery
- func (biq *BillingInvoiceQuery) WithBillingInvoiceItems(opts ...func(*BillingInvoiceItemQuery)) *BillingInvoiceQuery
- func (biq *BillingInvoiceQuery) WithBillingProfile(opts ...func(*BillingProfileQuery)) *BillingInvoiceQuery
- func (biq *BillingInvoiceQuery) WithBillingWorkflowConfig(opts ...func(*BillingWorkflowConfigQuery)) *BillingInvoiceQuery
- type BillingInvoiceSelect
- func (bis *BillingInvoiceSelect) Aggregate(fns ...AggregateFunc) *BillingInvoiceSelect
- func (s *BillingInvoiceSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *BillingInvoiceSelect) BoolX(ctx context.Context) bool
- func (s *BillingInvoiceSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *BillingInvoiceSelect) BoolsX(ctx context.Context) []bool
- func (c BillingInvoiceSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *BillingInvoiceSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *BillingInvoiceSelect) Float64X(ctx context.Context) float64
- func (s *BillingInvoiceSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *BillingInvoiceSelect) Float64sX(ctx context.Context) []float64
- func (s *BillingInvoiceSelect) Int(ctx context.Context) (_ int, err error)
- func (s *BillingInvoiceSelect) IntX(ctx context.Context) int
- func (s *BillingInvoiceSelect) Ints(ctx context.Context) ([]int, error)
- func (s *BillingInvoiceSelect) IntsX(ctx context.Context) []int
- func (c BillingInvoiceSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bis *BillingInvoiceSelect) Scan(ctx context.Context, v any) error
- func (s *BillingInvoiceSelect) ScanX(ctx context.Context, v any)
- func (s *BillingInvoiceSelect) String(ctx context.Context) (_ string, err error)
- func (s *BillingInvoiceSelect) StringX(ctx context.Context) string
- func (s *BillingInvoiceSelect) Strings(ctx context.Context) ([]string, error)
- func (s *BillingInvoiceSelect) StringsX(ctx context.Context) []string
- type BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) AddBillingInvoiceItemIDs(ids ...string) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) AddBillingInvoiceItems(b ...*BillingInvoiceItem) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) ClearBillingInvoiceItems() *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) ClearBillingWorkflowConfig() *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) ClearCode() *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) ClearDeletedAt() *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) ClearInvoicingProvider() *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) ClearMetadata() *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) ClearPaymentProvider() *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) ClearSeries() *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) ClearTaxProvider() *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) ClearVoidedAt() *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) Exec(ctx context.Context) error
- func (c *BillingInvoiceUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (biu *BillingInvoiceUpdate) ExecX(ctx context.Context)
- func (biu *BillingInvoiceUpdate) Mutation() *BillingInvoiceMutation
- func (c *BillingInvoiceUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (biu *BillingInvoiceUpdate) RemoveBillingInvoiceItemIDs(ids ...string) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) RemoveBillingInvoiceItems(b ...*BillingInvoiceItem) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) Save(ctx context.Context) (int, error)
- func (biu *BillingInvoiceUpdate) SaveX(ctx context.Context) int
- func (biu *BillingInvoiceUpdate) SetBillingWorkflowConfig(b *BillingWorkflowConfig) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) SetBillingWorkflowConfigID(id string) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) SetCode(s string) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) SetDeletedAt(t time.Time) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) SetDueDate(t time.Time) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) SetInvoicingProvider(pp provider.InvoicingProvider) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) SetMetadata(m map[string]string) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) SetNillableCode(s *string) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) SetNillableDeletedAt(t *time.Time) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) SetNillableDueDate(t *time.Time) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) SetNillableInvoicingProvider(pp *provider.InvoicingProvider) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) SetNillablePaymentProvider(pp *provider.PaymentProvider) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) SetNillablePeriodEnd(t *time.Time) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) SetNillablePeriodStart(t *time.Time) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) SetNillableSeries(s *string) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) SetNillableStatus(bs *billing.InvoiceStatus) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) SetNillableTaxProvider(pp *provider.TaxProvider) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) SetNillableVoidedAt(t *time.Time) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) SetNillableWorkflowConfigID(s *string) *BillingInvoiceUpdate
- func (u *BillingInvoiceUpdate) SetOrClearCode(value *string) *BillingInvoiceUpdate
- func (u *BillingInvoiceUpdate) SetOrClearDeletedAt(value *time.Time) *BillingInvoiceUpdate
- func (u *BillingInvoiceUpdate) SetOrClearInvoicingProvider(value *provider.InvoicingProvider) *BillingInvoiceUpdate
- func (u *BillingInvoiceUpdate) SetOrClearMetadata(value *map[string]string) *BillingInvoiceUpdate
- func (u *BillingInvoiceUpdate) SetOrClearPaymentProvider(value *provider.PaymentProvider) *BillingInvoiceUpdate
- func (u *BillingInvoiceUpdate) SetOrClearSeries(value *string) *BillingInvoiceUpdate
- func (u *BillingInvoiceUpdate) SetOrClearTaxProvider(value *provider.TaxProvider) *BillingInvoiceUpdate
- func (u *BillingInvoiceUpdate) SetOrClearVoidedAt(value *time.Time) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) SetPaymentProvider(pp provider.PaymentProvider) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) SetPeriodEnd(t time.Time) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) SetPeriodStart(t time.Time) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) SetSeries(s string) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) SetStatus(bs billing.InvoiceStatus) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) SetTaxProvider(pp provider.TaxProvider) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) SetUpdatedAt(t time.Time) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) SetVoidedAt(t time.Time) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) SetWorkflowConfigID(s string) *BillingInvoiceUpdate
- func (biu *BillingInvoiceUpdate) Where(ps ...predicate.BillingInvoice) *BillingInvoiceUpdate
- type BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) AddBillingInvoiceItemIDs(ids ...string) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) AddBillingInvoiceItems(b ...*BillingInvoiceItem) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) ClearBillingInvoiceItems() *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) ClearBillingWorkflowConfig() *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) ClearCode() *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) ClearDeletedAt() *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) ClearInvoicingProvider() *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) ClearMetadata() *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) ClearPaymentProvider() *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) ClearSeries() *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) ClearTaxProvider() *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) ClearVoidedAt() *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) Exec(ctx context.Context) error
- func (c *BillingInvoiceUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (biuo *BillingInvoiceUpdateOne) ExecX(ctx context.Context)
- func (biuo *BillingInvoiceUpdateOne) Mutation() *BillingInvoiceMutation
- func (c *BillingInvoiceUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (biuo *BillingInvoiceUpdateOne) RemoveBillingInvoiceItemIDs(ids ...string) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) RemoveBillingInvoiceItems(b ...*BillingInvoiceItem) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) Save(ctx context.Context) (*BillingInvoice, error)
- func (biuo *BillingInvoiceUpdateOne) SaveX(ctx context.Context) *BillingInvoice
- func (biuo *BillingInvoiceUpdateOne) Select(field string, fields ...string) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) SetBillingWorkflowConfig(b *BillingWorkflowConfig) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) SetBillingWorkflowConfigID(id string) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) SetCode(s string) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) SetDeletedAt(t time.Time) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) SetDueDate(t time.Time) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) SetInvoicingProvider(pp provider.InvoicingProvider) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) SetMetadata(m map[string]string) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) SetNillableCode(s *string) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) SetNillableDeletedAt(t *time.Time) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) SetNillableDueDate(t *time.Time) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) SetNillableInvoicingProvider(pp *provider.InvoicingProvider) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) SetNillablePaymentProvider(pp *provider.PaymentProvider) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) SetNillablePeriodEnd(t *time.Time) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) SetNillablePeriodStart(t *time.Time) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) SetNillableSeries(s *string) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) SetNillableStatus(bs *billing.InvoiceStatus) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) SetNillableTaxProvider(pp *provider.TaxProvider) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) SetNillableVoidedAt(t *time.Time) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) SetNillableWorkflowConfigID(s *string) *BillingInvoiceUpdateOne
- func (u *BillingInvoiceUpdateOne) SetOrClearCode(value *string) *BillingInvoiceUpdateOne
- func (u *BillingInvoiceUpdateOne) SetOrClearDeletedAt(value *time.Time) *BillingInvoiceUpdateOne
- func (u *BillingInvoiceUpdateOne) SetOrClearInvoicingProvider(value *provider.InvoicingProvider) *BillingInvoiceUpdateOne
- func (u *BillingInvoiceUpdateOne) SetOrClearMetadata(value *map[string]string) *BillingInvoiceUpdateOne
- func (u *BillingInvoiceUpdateOne) SetOrClearPaymentProvider(value *provider.PaymentProvider) *BillingInvoiceUpdateOne
- func (u *BillingInvoiceUpdateOne) SetOrClearSeries(value *string) *BillingInvoiceUpdateOne
- func (u *BillingInvoiceUpdateOne) SetOrClearTaxProvider(value *provider.TaxProvider) *BillingInvoiceUpdateOne
- func (u *BillingInvoiceUpdateOne) SetOrClearVoidedAt(value *time.Time) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) SetPaymentProvider(pp provider.PaymentProvider) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) SetPeriodEnd(t time.Time) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) SetPeriodStart(t time.Time) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) SetSeries(s string) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) SetStatus(bs billing.InvoiceStatus) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) SetTaxProvider(pp provider.TaxProvider) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) SetUpdatedAt(t time.Time) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) SetVoidedAt(t time.Time) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) SetWorkflowConfigID(s string) *BillingInvoiceUpdateOne
- func (biuo *BillingInvoiceUpdateOne) Where(ps ...predicate.BillingInvoice) *BillingInvoiceUpdateOne
- type BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) ClearCode() *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) ClearDeletedAt() *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) ClearInvoicingProvider() *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) ClearMetadata() *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) ClearPaymentProvider() *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) ClearSeries() *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) ClearTaxProvider() *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) ClearVoidedAt() *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) SetCode(v string) *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) SetDeletedAt(v time.Time) *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) SetDueDate(v time.Time) *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) SetInvoicingProvider(v provider.InvoicingProvider) *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) SetMetadata(v map[string]string) *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) SetPaymentProvider(v provider.PaymentProvider) *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) SetPeriodEnd(v time.Time) *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) SetPeriodStart(v time.Time) *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) SetSeries(v string) *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) SetStatus(v billing.InvoiceStatus) *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) SetTaxProvider(v provider.TaxProvider) *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) SetUpdatedAt(v time.Time) *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) SetVoidedAt(v time.Time) *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) SetWorkflowConfigID(v string) *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) UpdateCode() *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) UpdateDeletedAt() *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) UpdateDueDate() *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) UpdateInvoicingProvider() *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) UpdateMetadata() *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) UpdatePaymentProvider() *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) UpdatePeriodEnd() *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) UpdatePeriodStart() *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) UpdateSeries() *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) UpdateStatus() *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) UpdateTaxProvider() *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) UpdateUpdatedAt() *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) UpdateVoidedAt() *BillingInvoiceUpsert
- func (u *BillingInvoiceUpsert) UpdateWorkflowConfigID() *BillingInvoiceUpsert
- type BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) ClearCode() *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) ClearDeletedAt() *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) ClearInvoicingProvider() *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) ClearMetadata() *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) ClearPaymentProvider() *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) ClearSeries() *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) ClearTaxProvider() *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) ClearVoidedAt() *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) DoNothing() *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) Exec(ctx context.Context) error
- func (u *BillingInvoiceUpsertBulk) ExecX(ctx context.Context)
- func (u *BillingInvoiceUpsertBulk) Ignore() *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) SetCode(v string) *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) SetDeletedAt(v time.Time) *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) SetDueDate(v time.Time) *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) SetInvoicingProvider(v provider.InvoicingProvider) *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) SetMetadata(v map[string]string) *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) SetPaymentProvider(v provider.PaymentProvider) *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) SetPeriodEnd(v time.Time) *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) SetPeriodStart(v time.Time) *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) SetSeries(v string) *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) SetStatus(v billing.InvoiceStatus) *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) SetTaxProvider(v provider.TaxProvider) *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) SetUpdatedAt(v time.Time) *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) SetVoidedAt(v time.Time) *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) SetWorkflowConfigID(v string) *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) Update(set func(*BillingInvoiceUpsert)) *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) UpdateCode() *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) UpdateDeletedAt() *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) UpdateDueDate() *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) UpdateInvoicingProvider() *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) UpdateMetadata() *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) UpdateNewValues() *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) UpdatePaymentProvider() *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) UpdatePeriodEnd() *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) UpdatePeriodStart() *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) UpdateSeries() *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) UpdateStatus() *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) UpdateTaxProvider() *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) UpdateUpdatedAt() *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) UpdateVoidedAt() *BillingInvoiceUpsertBulk
- func (u *BillingInvoiceUpsertBulk) UpdateWorkflowConfigID() *BillingInvoiceUpsertBulk
- type BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) ClearCode() *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) ClearDeletedAt() *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) ClearInvoicingProvider() *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) ClearMetadata() *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) ClearPaymentProvider() *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) ClearSeries() *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) ClearTaxProvider() *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) ClearVoidedAt() *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) DoNothing() *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) Exec(ctx context.Context) error
- func (u *BillingInvoiceUpsertOne) ExecX(ctx context.Context)
- func (u *BillingInvoiceUpsertOne) ID(ctx context.Context) (id string, err error)
- func (u *BillingInvoiceUpsertOne) IDX(ctx context.Context) string
- func (u *BillingInvoiceUpsertOne) Ignore() *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) SetCode(v string) *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) SetDeletedAt(v time.Time) *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) SetDueDate(v time.Time) *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) SetInvoicingProvider(v provider.InvoicingProvider) *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) SetMetadata(v map[string]string) *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) SetPaymentProvider(v provider.PaymentProvider) *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) SetPeriodEnd(v time.Time) *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) SetPeriodStart(v time.Time) *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) SetSeries(v string) *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) SetStatus(v billing.InvoiceStatus) *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) SetTaxProvider(v provider.TaxProvider) *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) SetUpdatedAt(v time.Time) *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) SetVoidedAt(v time.Time) *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) SetWorkflowConfigID(v string) *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) Update(set func(*BillingInvoiceUpsert)) *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) UpdateCode() *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) UpdateDeletedAt() *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) UpdateDueDate() *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) UpdateInvoicingProvider() *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) UpdateMetadata() *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) UpdateNewValues() *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) UpdatePaymentProvider() *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) UpdatePeriodEnd() *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) UpdatePeriodStart() *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) UpdateSeries() *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) UpdateStatus() *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) UpdateTaxProvider() *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) UpdateUpdatedAt() *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) UpdateVoidedAt() *BillingInvoiceUpsertOne
- func (u *BillingInvoiceUpsertOne) UpdateWorkflowConfigID() *BillingInvoiceUpsertOne
- type BillingInvoices
- type BillingProfile
- func (c *BillingProfile) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bp *BillingProfile) QueryBillingCustomerOverride() *BillingCustomerOverrideQuery
- func (bp *BillingProfile) QueryBillingInvoices() *BillingInvoiceQuery
- func (c *BillingProfile) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bp *BillingProfile) QueryWorkflowConfig() *BillingWorkflowConfigQuery
- func (bp *BillingProfile) String() string
- func (bp *BillingProfile) Unwrap() *BillingProfile
- func (bp *BillingProfile) Update() *BillingProfileUpdateOne
- func (bp *BillingProfile) Value(name string) (ent.Value, error)
- type BillingProfileClient
- func (c *BillingProfileClient) Create() *BillingProfileCreate
- func (c *BillingProfileClient) CreateBulk(builders ...*BillingProfileCreate) *BillingProfileCreateBulk
- func (c *BillingProfileClient) Delete() *BillingProfileDelete
- func (c *BillingProfileClient) DeleteOne(bp *BillingProfile) *BillingProfileDeleteOne
- func (c *BillingProfileClient) DeleteOneID(id string) *BillingProfileDeleteOne
- func (c *BillingProfileClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *BillingProfileClient) Get(ctx context.Context, id string) (*BillingProfile, error)
- func (c *BillingProfileClient) GetX(ctx context.Context, id string) *BillingProfile
- func (c *BillingProfileClient) Hooks() []Hook
- func (c *BillingProfileClient) Intercept(interceptors ...Interceptor)
- func (c *BillingProfileClient) Interceptors() []Interceptor
- func (c *BillingProfileClient) MapCreateBulk(slice any, setFunc func(*BillingProfileCreate, int)) *BillingProfileCreateBulk
- func (c *BillingProfileClient) Query() *BillingProfileQuery
- func (c *BillingProfileClient) QueryBillingCustomerOverride(bp *BillingProfile) *BillingCustomerOverrideQuery
- func (c *BillingProfileClient) QueryBillingInvoices(bp *BillingProfile) *BillingInvoiceQuery
- func (c *BillingProfileClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *BillingProfileClient) QueryWorkflowConfig(bp *BillingProfile) *BillingWorkflowConfigQuery
- func (c *BillingProfileClient) Update() *BillingProfileUpdate
- func (c *BillingProfileClient) UpdateOne(bp *BillingProfile) *BillingProfileUpdateOne
- func (c *BillingProfileClient) UpdateOneID(id string) *BillingProfileUpdateOne
- func (c *BillingProfileClient) Use(hooks ...Hook)
- type BillingProfileCreate
- func (bpc *BillingProfileCreate) AddBillingCustomerOverride(b ...*BillingCustomerOverride) *BillingProfileCreate
- func (bpc *BillingProfileCreate) AddBillingCustomerOverrideIDs(ids ...string) *BillingProfileCreate
- func (bpc *BillingProfileCreate) AddBillingInvoiceIDs(ids ...string) *BillingProfileCreate
- func (bpc *BillingProfileCreate) AddBillingInvoices(b ...*BillingInvoice) *BillingProfileCreate
- func (bpc *BillingProfileCreate) Exec(ctx context.Context) error
- func (c *BillingProfileCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bpc *BillingProfileCreate) ExecX(ctx context.Context)
- func (bpc *BillingProfileCreate) Mutation() *BillingProfileMutation
- func (bpc *BillingProfileCreate) OnConflict(opts ...sql.ConflictOption) *BillingProfileUpsertOne
- func (bpc *BillingProfileCreate) OnConflictColumns(columns ...string) *BillingProfileUpsertOne
- func (c *BillingProfileCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bpc *BillingProfileCreate) Save(ctx context.Context) (*BillingProfile, error)
- func (bpc *BillingProfileCreate) SaveX(ctx context.Context) *BillingProfile
- func (bpc *BillingProfileCreate) SetCreatedAt(t time.Time) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetDefault(b bool) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetDeletedAt(t time.Time) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetID(s string) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetInvoicingProvider(pp provider.InvoicingProvider) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetMetadata(m map[string]string) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetNamespace(s string) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetNillableCreatedAt(t *time.Time) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetNillableDefault(b *bool) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetNillableDeletedAt(t *time.Time) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetNillableID(s *string) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetNillableSupplierAddressCity(s *string) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetNillableSupplierAddressCountry(mc *models.CountryCode) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetNillableSupplierAddressLine1(s *string) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetNillableSupplierAddressLine2(s *string) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetNillableSupplierAddressPhoneNumber(s *string) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetNillableSupplierAddressPostalCode(s *string) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetNillableSupplierAddressState(s *string) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetNillableUpdatedAt(t *time.Time) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetPaymentProvider(pp provider.PaymentProvider) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetSupplierAddressCity(s string) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetSupplierAddressCountry(mc models.CountryCode) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetSupplierAddressLine1(s string) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetSupplierAddressLine2(s string) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetSupplierAddressPhoneNumber(s string) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetSupplierAddressPostalCode(s string) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetSupplierAddressState(s string) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetSupplierName(s string) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetTaxProvider(pp provider.TaxProvider) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetUpdatedAt(t time.Time) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetWorkflowConfig(b *BillingWorkflowConfig) *BillingProfileCreate
- func (bpc *BillingProfileCreate) SetWorkflowConfigID(s string) *BillingProfileCreate
- type BillingProfileCreateBulk
- func (bpcb *BillingProfileCreateBulk) Exec(ctx context.Context) error
- func (c *BillingProfileCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bpcb *BillingProfileCreateBulk) ExecX(ctx context.Context)
- func (bpcb *BillingProfileCreateBulk) OnConflict(opts ...sql.ConflictOption) *BillingProfileUpsertBulk
- func (bpcb *BillingProfileCreateBulk) OnConflictColumns(columns ...string) *BillingProfileUpsertBulk
- func (c *BillingProfileCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bpcb *BillingProfileCreateBulk) Save(ctx context.Context) ([]*BillingProfile, error)
- func (bpcb *BillingProfileCreateBulk) SaveX(ctx context.Context) []*BillingProfile
- type BillingProfileDelete
- func (bpd *BillingProfileDelete) Exec(ctx context.Context) (int, error)
- func (c *BillingProfileDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bpd *BillingProfileDelete) ExecX(ctx context.Context) int
- func (c *BillingProfileDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bpd *BillingProfileDelete) Where(ps ...predicate.BillingProfile) *BillingProfileDelete
- type BillingProfileDeleteOne
- type BillingProfileEdges
- type BillingProfileGroupBy
- func (bpgb *BillingProfileGroupBy) Aggregate(fns ...AggregateFunc) *BillingProfileGroupBy
- func (s *BillingProfileGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *BillingProfileGroupBy) BoolX(ctx context.Context) bool
- func (s *BillingProfileGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *BillingProfileGroupBy) BoolsX(ctx context.Context) []bool
- func (s *BillingProfileGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *BillingProfileGroupBy) Float64X(ctx context.Context) float64
- func (s *BillingProfileGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *BillingProfileGroupBy) Float64sX(ctx context.Context) []float64
- func (s *BillingProfileGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *BillingProfileGroupBy) IntX(ctx context.Context) int
- func (s *BillingProfileGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *BillingProfileGroupBy) IntsX(ctx context.Context) []int
- func (bpgb *BillingProfileGroupBy) Scan(ctx context.Context, v any) error
- func (s *BillingProfileGroupBy) ScanX(ctx context.Context, v any)
- func (s *BillingProfileGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *BillingProfileGroupBy) StringX(ctx context.Context) string
- func (s *BillingProfileGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *BillingProfileGroupBy) StringsX(ctx context.Context) []string
- type BillingProfileMutation
- func (m *BillingProfileMutation) AddBillingCustomerOverrideIDs(ids ...string)
- func (m *BillingProfileMutation) AddBillingInvoiceIDs(ids ...string)
- func (m *BillingProfileMutation) AddField(name string, value ent.Value) error
- func (m *BillingProfileMutation) AddedEdges() []string
- func (m *BillingProfileMutation) AddedField(name string) (ent.Value, bool)
- func (m *BillingProfileMutation) AddedFields() []string
- func (m *BillingProfileMutation) AddedIDs(name string) []ent.Value
- func (m *BillingProfileMutation) BillingCustomerOverrideCleared() bool
- func (m *BillingProfileMutation) BillingCustomerOverrideIDs() (ids []string)
- func (m *BillingProfileMutation) BillingInvoicesCleared() bool
- func (m *BillingProfileMutation) BillingInvoicesIDs() (ids []string)
- func (m *BillingProfileMutation) ClearBillingCustomerOverride()
- func (m *BillingProfileMutation) ClearBillingInvoices()
- func (m *BillingProfileMutation) ClearDeletedAt()
- func (m *BillingProfileMutation) ClearEdge(name string) error
- func (m *BillingProfileMutation) ClearField(name string) error
- func (m *BillingProfileMutation) ClearMetadata()
- func (m *BillingProfileMutation) ClearSupplierAddressCity()
- func (m *BillingProfileMutation) ClearSupplierAddressCountry()
- func (m *BillingProfileMutation) ClearSupplierAddressLine1()
- func (m *BillingProfileMutation) ClearSupplierAddressLine2()
- func (m *BillingProfileMutation) ClearSupplierAddressPhoneNumber()
- func (m *BillingProfileMutation) ClearSupplierAddressPostalCode()
- func (m *BillingProfileMutation) ClearSupplierAddressState()
- func (m *BillingProfileMutation) ClearWorkflowConfig()
- func (m *BillingProfileMutation) ClearedEdges() []string
- func (m *BillingProfileMutation) ClearedFields() []string
- func (m BillingProfileMutation) Client() *Client
- func (m *BillingProfileMutation) CreatedAt() (r time.Time, exists bool)
- func (m *BillingProfileMutation) Default() (r bool, exists bool)
- func (m *BillingProfileMutation) DeletedAt() (r time.Time, exists bool)
- func (m *BillingProfileMutation) DeletedAtCleared() bool
- func (m *BillingProfileMutation) EdgeCleared(name string) bool
- func (c *BillingProfileMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *BillingProfileMutation) Field(name string) (ent.Value, bool)
- func (m *BillingProfileMutation) FieldCleared(name string) bool
- func (m *BillingProfileMutation) Fields() []string
- func (m *BillingProfileMutation) ID() (id string, exists bool)
- func (m *BillingProfileMutation) IDs(ctx context.Context) ([]string, error)
- func (m *BillingProfileMutation) InvoicingProvider() (r provider.InvoicingProvider, exists bool)
- func (m *BillingProfileMutation) Metadata() (r map[string]string, exists bool)
- func (m *BillingProfileMutation) MetadataCleared() bool
- func (m *BillingProfileMutation) Namespace() (r string, exists bool)
- func (m *BillingProfileMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *BillingProfileMutation) OldDefault(ctx context.Context) (v bool, err error)
- func (m *BillingProfileMutation) OldDeletedAt(ctx context.Context) (v *time.Time, err error)
- func (m *BillingProfileMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *BillingProfileMutation) OldInvoicingProvider(ctx context.Context) (v provider.InvoicingProvider, err error)
- func (m *BillingProfileMutation) OldMetadata(ctx context.Context) (v map[string]string, err error)
- func (m *BillingProfileMutation) OldNamespace(ctx context.Context) (v string, err error)
- func (m *BillingProfileMutation) OldPaymentProvider(ctx context.Context) (v provider.PaymentProvider, err error)
- func (m *BillingProfileMutation) OldSupplierAddressCity(ctx context.Context) (v *string, err error)
- func (m *BillingProfileMutation) OldSupplierAddressCountry(ctx context.Context) (v *models.CountryCode, err error)
- func (m *BillingProfileMutation) OldSupplierAddressLine1(ctx context.Context) (v *string, err error)
- func (m *BillingProfileMutation) OldSupplierAddressLine2(ctx context.Context) (v *string, err error)
- func (m *BillingProfileMutation) OldSupplierAddressPhoneNumber(ctx context.Context) (v *string, err error)
- func (m *BillingProfileMutation) OldSupplierAddressPostalCode(ctx context.Context) (v *string, err error)
- func (m *BillingProfileMutation) OldSupplierAddressState(ctx context.Context) (v *string, err error)
- func (m *BillingProfileMutation) OldSupplierName(ctx context.Context) (v string, err error)
- func (m *BillingProfileMutation) OldTaxProvider(ctx context.Context) (v provider.TaxProvider, err error)
- func (m *BillingProfileMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *BillingProfileMutation) OldWorkflowConfigID(ctx context.Context) (v string, err error)
- func (m *BillingProfileMutation) Op() Op
- func (m *BillingProfileMutation) PaymentProvider() (r provider.PaymentProvider, exists bool)
- func (c *BillingProfileMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *BillingProfileMutation) RemoveBillingCustomerOverrideIDs(ids ...string)
- func (m *BillingProfileMutation) RemoveBillingInvoiceIDs(ids ...string)
- func (m *BillingProfileMutation) RemovedBillingCustomerOverrideIDs() (ids []string)
- func (m *BillingProfileMutation) RemovedBillingInvoicesIDs() (ids []string)
- func (m *BillingProfileMutation) RemovedEdges() []string
- func (m *BillingProfileMutation) RemovedIDs(name string) []ent.Value
- func (m *BillingProfileMutation) ResetBillingCustomerOverride()
- func (m *BillingProfileMutation) ResetBillingInvoices()
- func (m *BillingProfileMutation) ResetCreatedAt()
- func (m *BillingProfileMutation) ResetDefault()
- func (m *BillingProfileMutation) ResetDeletedAt()
- func (m *BillingProfileMutation) ResetEdge(name string) error
- func (m *BillingProfileMutation) ResetField(name string) error
- func (m *BillingProfileMutation) ResetInvoicingProvider()
- func (m *BillingProfileMutation) ResetMetadata()
- func (m *BillingProfileMutation) ResetNamespace()
- func (m *BillingProfileMutation) ResetPaymentProvider()
- func (m *BillingProfileMutation) ResetSupplierAddressCity()
- func (m *BillingProfileMutation) ResetSupplierAddressCountry()
- func (m *BillingProfileMutation) ResetSupplierAddressLine1()
- func (m *BillingProfileMutation) ResetSupplierAddressLine2()
- func (m *BillingProfileMutation) ResetSupplierAddressPhoneNumber()
- func (m *BillingProfileMutation) ResetSupplierAddressPostalCode()
- func (m *BillingProfileMutation) ResetSupplierAddressState()
- func (m *BillingProfileMutation) ResetSupplierName()
- func (m *BillingProfileMutation) ResetTaxProvider()
- func (m *BillingProfileMutation) ResetUpdatedAt()
- func (m *BillingProfileMutation) ResetWorkflowConfig()
- func (m *BillingProfileMutation) ResetWorkflowConfigID()
- func (m *BillingProfileMutation) SetCreatedAt(t time.Time)
- func (m *BillingProfileMutation) SetDefault(b bool)
- func (m *BillingProfileMutation) SetDeletedAt(t time.Time)
- func (m *BillingProfileMutation) SetField(name string, value ent.Value) error
- func (m *BillingProfileMutation) SetID(id string)
- func (m *BillingProfileMutation) SetInvoicingProvider(pp provider.InvoicingProvider)
- func (m *BillingProfileMutation) SetMetadata(value map[string]string)
- func (m *BillingProfileMutation) SetNamespace(s string)
- func (m *BillingProfileMutation) SetOp(op Op)
- func (m *BillingProfileMutation) SetPaymentProvider(pp provider.PaymentProvider)
- func (m *BillingProfileMutation) SetSupplierAddressCity(s string)
- func (m *BillingProfileMutation) SetSupplierAddressCountry(mc models.CountryCode)
- func (m *BillingProfileMutation) SetSupplierAddressLine1(s string)
- func (m *BillingProfileMutation) SetSupplierAddressLine2(s string)
- func (m *BillingProfileMutation) SetSupplierAddressPhoneNumber(s string)
- func (m *BillingProfileMutation) SetSupplierAddressPostalCode(s string)
- func (m *BillingProfileMutation) SetSupplierAddressState(s string)
- func (m *BillingProfileMutation) SetSupplierName(s string)
- func (m *BillingProfileMutation) SetTaxProvider(pp provider.TaxProvider)
- func (m *BillingProfileMutation) SetUpdatedAt(t time.Time)
- func (m *BillingProfileMutation) SetWorkflowConfigID(s string)
- func (m *BillingProfileMutation) SupplierAddressCity() (r string, exists bool)
- func (m *BillingProfileMutation) SupplierAddressCityCleared() bool
- func (m *BillingProfileMutation) SupplierAddressCountry() (r models.CountryCode, exists bool)
- func (m *BillingProfileMutation) SupplierAddressCountryCleared() bool
- func (m *BillingProfileMutation) SupplierAddressLine1() (r string, exists bool)
- func (m *BillingProfileMutation) SupplierAddressLine1Cleared() bool
- func (m *BillingProfileMutation) SupplierAddressLine2() (r string, exists bool)
- func (m *BillingProfileMutation) SupplierAddressLine2Cleared() bool
- func (m *BillingProfileMutation) SupplierAddressPhoneNumber() (r string, exists bool)
- func (m *BillingProfileMutation) SupplierAddressPhoneNumberCleared() bool
- func (m *BillingProfileMutation) SupplierAddressPostalCode() (r string, exists bool)
- func (m *BillingProfileMutation) SupplierAddressPostalCodeCleared() bool
- func (m *BillingProfileMutation) SupplierAddressState() (r string, exists bool)
- func (m *BillingProfileMutation) SupplierAddressStateCleared() bool
- func (m *BillingProfileMutation) SupplierName() (r string, exists bool)
- func (m *BillingProfileMutation) TaxProvider() (r provider.TaxProvider, exists bool)
- func (m BillingProfileMutation) Tx() (*Tx, error)
- func (m *BillingProfileMutation) Type() string
- func (m *BillingProfileMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *BillingProfileMutation) Where(ps ...predicate.BillingProfile)
- func (m *BillingProfileMutation) WhereP(ps ...func(*sql.Selector))
- func (m *BillingProfileMutation) WorkflowConfigCleared() bool
- func (m *BillingProfileMutation) WorkflowConfigID() (r string, exists bool)
- func (m *BillingProfileMutation) WorkflowConfigIDs() (ids []string)
- type BillingProfileQuery
- func (bpq *BillingProfileQuery) Aggregate(fns ...AggregateFunc) *BillingProfileSelect
- func (bpq *BillingProfileQuery) All(ctx context.Context) ([]*BillingProfile, error)
- func (bpq *BillingProfileQuery) AllX(ctx context.Context) []*BillingProfile
- func (bpq *BillingProfileQuery) Clone() *BillingProfileQuery
- func (bpq *BillingProfileQuery) Count(ctx context.Context) (int, error)
- func (bpq *BillingProfileQuery) CountX(ctx context.Context) int
- func (c *BillingProfileQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bpq *BillingProfileQuery) Exist(ctx context.Context) (bool, error)
- func (bpq *BillingProfileQuery) ExistX(ctx context.Context) bool
- func (bpq *BillingProfileQuery) First(ctx context.Context) (*BillingProfile, error)
- func (bpq *BillingProfileQuery) FirstID(ctx context.Context) (id string, err error)
- func (bpq *BillingProfileQuery) FirstIDX(ctx context.Context) string
- func (bpq *BillingProfileQuery) FirstX(ctx context.Context) *BillingProfile
- func (bpq *BillingProfileQuery) ForShare(opts ...sql.LockOption) *BillingProfileQuery
- func (bpq *BillingProfileQuery) ForUpdate(opts ...sql.LockOption) *BillingProfileQuery
- func (bpq *BillingProfileQuery) GroupBy(field string, fields ...string) *BillingProfileGroupBy
- func (bpq *BillingProfileQuery) IDs(ctx context.Context) (ids []string, err error)
- func (bpq *BillingProfileQuery) IDsX(ctx context.Context) []string
- func (bpq *BillingProfileQuery) Limit(limit int) *BillingProfileQuery
- func (bpq *BillingProfileQuery) Offset(offset int) *BillingProfileQuery
- func (bpq *BillingProfileQuery) Only(ctx context.Context) (*BillingProfile, error)
- func (bpq *BillingProfileQuery) OnlyID(ctx context.Context) (id string, err error)
- func (bpq *BillingProfileQuery) OnlyIDX(ctx context.Context) string
- func (bpq *BillingProfileQuery) OnlyX(ctx context.Context) *BillingProfile
- func (bpq *BillingProfileQuery) Order(o ...billingprofile.OrderOption) *BillingProfileQuery
- func (bp *BillingProfileQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*BillingProfile], error)
- func (bpq *BillingProfileQuery) QueryBillingCustomerOverride() *BillingCustomerOverrideQuery
- func (bpq *BillingProfileQuery) QueryBillingInvoices() *BillingInvoiceQuery
- func (c *BillingProfileQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bpq *BillingProfileQuery) QueryWorkflowConfig() *BillingWorkflowConfigQuery
- func (bpq *BillingProfileQuery) Select(fields ...string) *BillingProfileSelect
- func (bpq *BillingProfileQuery) Unique(unique bool) *BillingProfileQuery
- func (bpq *BillingProfileQuery) Where(ps ...predicate.BillingProfile) *BillingProfileQuery
- func (bpq *BillingProfileQuery) WithBillingCustomerOverride(opts ...func(*BillingCustomerOverrideQuery)) *BillingProfileQuery
- func (bpq *BillingProfileQuery) WithBillingInvoices(opts ...func(*BillingInvoiceQuery)) *BillingProfileQuery
- func (bpq *BillingProfileQuery) WithWorkflowConfig(opts ...func(*BillingWorkflowConfigQuery)) *BillingProfileQuery
- type BillingProfileSelect
- func (bps *BillingProfileSelect) Aggregate(fns ...AggregateFunc) *BillingProfileSelect
- func (s *BillingProfileSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *BillingProfileSelect) BoolX(ctx context.Context) bool
- func (s *BillingProfileSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *BillingProfileSelect) BoolsX(ctx context.Context) []bool
- func (c BillingProfileSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *BillingProfileSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *BillingProfileSelect) Float64X(ctx context.Context) float64
- func (s *BillingProfileSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *BillingProfileSelect) Float64sX(ctx context.Context) []float64
- func (s *BillingProfileSelect) Int(ctx context.Context) (_ int, err error)
- func (s *BillingProfileSelect) IntX(ctx context.Context) int
- func (s *BillingProfileSelect) Ints(ctx context.Context) ([]int, error)
- func (s *BillingProfileSelect) IntsX(ctx context.Context) []int
- func (c BillingProfileSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bps *BillingProfileSelect) Scan(ctx context.Context, v any) error
- func (s *BillingProfileSelect) ScanX(ctx context.Context, v any)
- func (s *BillingProfileSelect) String(ctx context.Context) (_ string, err error)
- func (s *BillingProfileSelect) StringX(ctx context.Context) string
- func (s *BillingProfileSelect) Strings(ctx context.Context) ([]string, error)
- func (s *BillingProfileSelect) StringsX(ctx context.Context) []string
- type BillingProfileUpdate
- func (bpu *BillingProfileUpdate) AddBillingCustomerOverride(b ...*BillingCustomerOverride) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) AddBillingCustomerOverrideIDs(ids ...string) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) AddBillingInvoiceIDs(ids ...string) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) AddBillingInvoices(b ...*BillingInvoice) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) ClearBillingCustomerOverride() *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) ClearBillingInvoices() *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) ClearDeletedAt() *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) ClearMetadata() *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) ClearSupplierAddressCity() *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) ClearSupplierAddressCountry() *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) ClearSupplierAddressLine1() *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) ClearSupplierAddressLine2() *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) ClearSupplierAddressPhoneNumber() *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) ClearSupplierAddressPostalCode() *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) ClearSupplierAddressState() *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) ClearWorkflowConfig() *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) Exec(ctx context.Context) error
- func (c *BillingProfileUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bpu *BillingProfileUpdate) ExecX(ctx context.Context)
- func (bpu *BillingProfileUpdate) Mutation() *BillingProfileMutation
- func (c *BillingProfileUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bpu *BillingProfileUpdate) RemoveBillingCustomerOverride(b ...*BillingCustomerOverride) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) RemoveBillingCustomerOverrideIDs(ids ...string) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) RemoveBillingInvoiceIDs(ids ...string) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) RemoveBillingInvoices(b ...*BillingInvoice) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) Save(ctx context.Context) (int, error)
- func (bpu *BillingProfileUpdate) SaveX(ctx context.Context) int
- func (bpu *BillingProfileUpdate) SetDefault(b bool) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) SetDeletedAt(t time.Time) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) SetInvoicingProvider(pp provider.InvoicingProvider) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) SetMetadata(m map[string]string) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) SetNillableDefault(b *bool) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) SetNillableDeletedAt(t *time.Time) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) SetNillableInvoicingProvider(pp *provider.InvoicingProvider) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) SetNillablePaymentProvider(pp *provider.PaymentProvider) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) SetNillableSupplierAddressCity(s *string) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) SetNillableSupplierAddressCountry(mc *models.CountryCode) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) SetNillableSupplierAddressLine1(s *string) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) SetNillableSupplierAddressLine2(s *string) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) SetNillableSupplierAddressPhoneNumber(s *string) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) SetNillableSupplierAddressPostalCode(s *string) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) SetNillableSupplierAddressState(s *string) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) SetNillableSupplierName(s *string) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) SetNillableTaxProvider(pp *provider.TaxProvider) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) SetNillableWorkflowConfigID(s *string) *BillingProfileUpdate
- func (u *BillingProfileUpdate) SetOrClearDeletedAt(value *time.Time) *BillingProfileUpdate
- func (u *BillingProfileUpdate) SetOrClearMetadata(value *map[string]string) *BillingProfileUpdate
- func (u *BillingProfileUpdate) SetOrClearSupplierAddressCity(value *string) *BillingProfileUpdate
- func (u *BillingProfileUpdate) SetOrClearSupplierAddressCountry(value *models.CountryCode) *BillingProfileUpdate
- func (u *BillingProfileUpdate) SetOrClearSupplierAddressLine1(value *string) *BillingProfileUpdate
- func (u *BillingProfileUpdate) SetOrClearSupplierAddressLine2(value *string) *BillingProfileUpdate
- func (u *BillingProfileUpdate) SetOrClearSupplierAddressPhoneNumber(value *string) *BillingProfileUpdate
- func (u *BillingProfileUpdate) SetOrClearSupplierAddressPostalCode(value *string) *BillingProfileUpdate
- func (u *BillingProfileUpdate) SetOrClearSupplierAddressState(value *string) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) SetPaymentProvider(pp provider.PaymentProvider) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) SetSupplierAddressCity(s string) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) SetSupplierAddressCountry(mc models.CountryCode) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) SetSupplierAddressLine1(s string) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) SetSupplierAddressLine2(s string) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) SetSupplierAddressPhoneNumber(s string) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) SetSupplierAddressPostalCode(s string) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) SetSupplierAddressState(s string) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) SetSupplierName(s string) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) SetTaxProvider(pp provider.TaxProvider) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) SetUpdatedAt(t time.Time) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) SetWorkflowConfig(b *BillingWorkflowConfig) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) SetWorkflowConfigID(s string) *BillingProfileUpdate
- func (bpu *BillingProfileUpdate) Where(ps ...predicate.BillingProfile) *BillingProfileUpdate
- type BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) AddBillingCustomerOverride(b ...*BillingCustomerOverride) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) AddBillingCustomerOverrideIDs(ids ...string) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) AddBillingInvoiceIDs(ids ...string) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) AddBillingInvoices(b ...*BillingInvoice) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) ClearBillingCustomerOverride() *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) ClearBillingInvoices() *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) ClearDeletedAt() *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) ClearMetadata() *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) ClearSupplierAddressCity() *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) ClearSupplierAddressCountry() *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) ClearSupplierAddressLine1() *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) ClearSupplierAddressLine2() *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) ClearSupplierAddressPhoneNumber() *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) ClearSupplierAddressPostalCode() *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) ClearSupplierAddressState() *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) ClearWorkflowConfig() *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) Exec(ctx context.Context) error
- func (c *BillingProfileUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bpuo *BillingProfileUpdateOne) ExecX(ctx context.Context)
- func (bpuo *BillingProfileUpdateOne) Mutation() *BillingProfileMutation
- func (c *BillingProfileUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bpuo *BillingProfileUpdateOne) RemoveBillingCustomerOverride(b ...*BillingCustomerOverride) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) RemoveBillingCustomerOverrideIDs(ids ...string) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) RemoveBillingInvoiceIDs(ids ...string) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) RemoveBillingInvoices(b ...*BillingInvoice) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) Save(ctx context.Context) (*BillingProfile, error)
- func (bpuo *BillingProfileUpdateOne) SaveX(ctx context.Context) *BillingProfile
- func (bpuo *BillingProfileUpdateOne) Select(field string, fields ...string) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetDefault(b bool) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetDeletedAt(t time.Time) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetInvoicingProvider(pp provider.InvoicingProvider) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetMetadata(m map[string]string) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetNillableDefault(b *bool) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetNillableDeletedAt(t *time.Time) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetNillableInvoicingProvider(pp *provider.InvoicingProvider) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetNillablePaymentProvider(pp *provider.PaymentProvider) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetNillableSupplierAddressCity(s *string) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetNillableSupplierAddressCountry(mc *models.CountryCode) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetNillableSupplierAddressLine1(s *string) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetNillableSupplierAddressLine2(s *string) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetNillableSupplierAddressPhoneNumber(s *string) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetNillableSupplierAddressPostalCode(s *string) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetNillableSupplierAddressState(s *string) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetNillableSupplierName(s *string) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetNillableTaxProvider(pp *provider.TaxProvider) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetNillableWorkflowConfigID(s *string) *BillingProfileUpdateOne
- func (u *BillingProfileUpdateOne) SetOrClearDeletedAt(value *time.Time) *BillingProfileUpdateOne
- func (u *BillingProfileUpdateOne) SetOrClearMetadata(value *map[string]string) *BillingProfileUpdateOne
- func (u *BillingProfileUpdateOne) SetOrClearSupplierAddressCity(value *string) *BillingProfileUpdateOne
- func (u *BillingProfileUpdateOne) SetOrClearSupplierAddressCountry(value *models.CountryCode) *BillingProfileUpdateOne
- func (u *BillingProfileUpdateOne) SetOrClearSupplierAddressLine1(value *string) *BillingProfileUpdateOne
- func (u *BillingProfileUpdateOne) SetOrClearSupplierAddressLine2(value *string) *BillingProfileUpdateOne
- func (u *BillingProfileUpdateOne) SetOrClearSupplierAddressPhoneNumber(value *string) *BillingProfileUpdateOne
- func (u *BillingProfileUpdateOne) SetOrClearSupplierAddressPostalCode(value *string) *BillingProfileUpdateOne
- func (u *BillingProfileUpdateOne) SetOrClearSupplierAddressState(value *string) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetPaymentProvider(pp provider.PaymentProvider) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetSupplierAddressCity(s string) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetSupplierAddressCountry(mc models.CountryCode) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetSupplierAddressLine1(s string) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetSupplierAddressLine2(s string) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetSupplierAddressPhoneNumber(s string) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetSupplierAddressPostalCode(s string) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetSupplierAddressState(s string) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetSupplierName(s string) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetTaxProvider(pp provider.TaxProvider) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetUpdatedAt(t time.Time) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetWorkflowConfig(b *BillingWorkflowConfig) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) SetWorkflowConfigID(s string) *BillingProfileUpdateOne
- func (bpuo *BillingProfileUpdateOne) Where(ps ...predicate.BillingProfile) *BillingProfileUpdateOne
- type BillingProfileUpsert
- func (u *BillingProfileUpsert) ClearDeletedAt() *BillingProfileUpsert
- func (u *BillingProfileUpsert) ClearMetadata() *BillingProfileUpsert
- func (u *BillingProfileUpsert) ClearSupplierAddressCity() *BillingProfileUpsert
- func (u *BillingProfileUpsert) ClearSupplierAddressCountry() *BillingProfileUpsert
- func (u *BillingProfileUpsert) ClearSupplierAddressLine1() *BillingProfileUpsert
- func (u *BillingProfileUpsert) ClearSupplierAddressLine2() *BillingProfileUpsert
- func (u *BillingProfileUpsert) ClearSupplierAddressPhoneNumber() *BillingProfileUpsert
- func (u *BillingProfileUpsert) ClearSupplierAddressPostalCode() *BillingProfileUpsert
- func (u *BillingProfileUpsert) ClearSupplierAddressState() *BillingProfileUpsert
- func (u *BillingProfileUpsert) SetDefault(v bool) *BillingProfileUpsert
- func (u *BillingProfileUpsert) SetDeletedAt(v time.Time) *BillingProfileUpsert
- func (u *BillingProfileUpsert) SetInvoicingProvider(v provider.InvoicingProvider) *BillingProfileUpsert
- func (u *BillingProfileUpsert) SetMetadata(v map[string]string) *BillingProfileUpsert
- func (u *BillingProfileUpsert) SetPaymentProvider(v provider.PaymentProvider) *BillingProfileUpsert
- func (u *BillingProfileUpsert) SetSupplierAddressCity(v string) *BillingProfileUpsert
- func (u *BillingProfileUpsert) SetSupplierAddressCountry(v models.CountryCode) *BillingProfileUpsert
- func (u *BillingProfileUpsert) SetSupplierAddressLine1(v string) *BillingProfileUpsert
- func (u *BillingProfileUpsert) SetSupplierAddressLine2(v string) *BillingProfileUpsert
- func (u *BillingProfileUpsert) SetSupplierAddressPhoneNumber(v string) *BillingProfileUpsert
- func (u *BillingProfileUpsert) SetSupplierAddressPostalCode(v string) *BillingProfileUpsert
- func (u *BillingProfileUpsert) SetSupplierAddressState(v string) *BillingProfileUpsert
- func (u *BillingProfileUpsert) SetSupplierName(v string) *BillingProfileUpsert
- func (u *BillingProfileUpsert) SetTaxProvider(v provider.TaxProvider) *BillingProfileUpsert
- func (u *BillingProfileUpsert) SetUpdatedAt(v time.Time) *BillingProfileUpsert
- func (u *BillingProfileUpsert) SetWorkflowConfigID(v string) *BillingProfileUpsert
- func (u *BillingProfileUpsert) UpdateDefault() *BillingProfileUpsert
- func (u *BillingProfileUpsert) UpdateDeletedAt() *BillingProfileUpsert
- func (u *BillingProfileUpsert) UpdateInvoicingProvider() *BillingProfileUpsert
- func (u *BillingProfileUpsert) UpdateMetadata() *BillingProfileUpsert
- func (u *BillingProfileUpsert) UpdatePaymentProvider() *BillingProfileUpsert
- func (u *BillingProfileUpsert) UpdateSupplierAddressCity() *BillingProfileUpsert
- func (u *BillingProfileUpsert) UpdateSupplierAddressCountry() *BillingProfileUpsert
- func (u *BillingProfileUpsert) UpdateSupplierAddressLine1() *BillingProfileUpsert
- func (u *BillingProfileUpsert) UpdateSupplierAddressLine2() *BillingProfileUpsert
- func (u *BillingProfileUpsert) UpdateSupplierAddressPhoneNumber() *BillingProfileUpsert
- func (u *BillingProfileUpsert) UpdateSupplierAddressPostalCode() *BillingProfileUpsert
- func (u *BillingProfileUpsert) UpdateSupplierAddressState() *BillingProfileUpsert
- func (u *BillingProfileUpsert) UpdateSupplierName() *BillingProfileUpsert
- func (u *BillingProfileUpsert) UpdateTaxProvider() *BillingProfileUpsert
- func (u *BillingProfileUpsert) UpdateUpdatedAt() *BillingProfileUpsert
- func (u *BillingProfileUpsert) UpdateWorkflowConfigID() *BillingProfileUpsert
- type BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) ClearDeletedAt() *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) ClearMetadata() *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) ClearSupplierAddressCity() *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) ClearSupplierAddressCountry() *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) ClearSupplierAddressLine1() *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) ClearSupplierAddressLine2() *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) ClearSupplierAddressPhoneNumber() *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) ClearSupplierAddressPostalCode() *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) ClearSupplierAddressState() *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) DoNothing() *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) Exec(ctx context.Context) error
- func (u *BillingProfileUpsertBulk) ExecX(ctx context.Context)
- func (u *BillingProfileUpsertBulk) Ignore() *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) SetDefault(v bool) *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) SetDeletedAt(v time.Time) *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) SetInvoicingProvider(v provider.InvoicingProvider) *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) SetMetadata(v map[string]string) *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) SetPaymentProvider(v provider.PaymentProvider) *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) SetSupplierAddressCity(v string) *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) SetSupplierAddressCountry(v models.CountryCode) *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) SetSupplierAddressLine1(v string) *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) SetSupplierAddressLine2(v string) *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) SetSupplierAddressPhoneNumber(v string) *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) SetSupplierAddressPostalCode(v string) *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) SetSupplierAddressState(v string) *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) SetSupplierName(v string) *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) SetTaxProvider(v provider.TaxProvider) *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) SetUpdatedAt(v time.Time) *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) SetWorkflowConfigID(v string) *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) Update(set func(*BillingProfileUpsert)) *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) UpdateDefault() *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) UpdateDeletedAt() *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) UpdateInvoicingProvider() *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) UpdateMetadata() *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) UpdateNewValues() *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) UpdatePaymentProvider() *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) UpdateSupplierAddressCity() *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) UpdateSupplierAddressCountry() *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) UpdateSupplierAddressLine1() *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) UpdateSupplierAddressLine2() *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) UpdateSupplierAddressPhoneNumber() *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) UpdateSupplierAddressPostalCode() *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) UpdateSupplierAddressState() *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) UpdateSupplierName() *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) UpdateTaxProvider() *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) UpdateUpdatedAt() *BillingProfileUpsertBulk
- func (u *BillingProfileUpsertBulk) UpdateWorkflowConfigID() *BillingProfileUpsertBulk
- type BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) ClearDeletedAt() *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) ClearMetadata() *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) ClearSupplierAddressCity() *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) ClearSupplierAddressCountry() *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) ClearSupplierAddressLine1() *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) ClearSupplierAddressLine2() *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) ClearSupplierAddressPhoneNumber() *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) ClearSupplierAddressPostalCode() *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) ClearSupplierAddressState() *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) DoNothing() *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) Exec(ctx context.Context) error
- func (u *BillingProfileUpsertOne) ExecX(ctx context.Context)
- func (u *BillingProfileUpsertOne) ID(ctx context.Context) (id string, err error)
- func (u *BillingProfileUpsertOne) IDX(ctx context.Context) string
- func (u *BillingProfileUpsertOne) Ignore() *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) SetDefault(v bool) *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) SetDeletedAt(v time.Time) *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) SetInvoicingProvider(v provider.InvoicingProvider) *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) SetMetadata(v map[string]string) *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) SetPaymentProvider(v provider.PaymentProvider) *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) SetSupplierAddressCity(v string) *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) SetSupplierAddressCountry(v models.CountryCode) *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) SetSupplierAddressLine1(v string) *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) SetSupplierAddressLine2(v string) *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) SetSupplierAddressPhoneNumber(v string) *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) SetSupplierAddressPostalCode(v string) *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) SetSupplierAddressState(v string) *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) SetSupplierName(v string) *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) SetTaxProvider(v provider.TaxProvider) *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) SetUpdatedAt(v time.Time) *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) SetWorkflowConfigID(v string) *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) Update(set func(*BillingProfileUpsert)) *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) UpdateDefault() *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) UpdateDeletedAt() *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) UpdateInvoicingProvider() *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) UpdateMetadata() *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) UpdateNewValues() *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) UpdatePaymentProvider() *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) UpdateSupplierAddressCity() *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) UpdateSupplierAddressCountry() *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) UpdateSupplierAddressLine1() *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) UpdateSupplierAddressLine2() *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) UpdateSupplierAddressPhoneNumber() *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) UpdateSupplierAddressPostalCode() *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) UpdateSupplierAddressState() *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) UpdateSupplierName() *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) UpdateTaxProvider() *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) UpdateUpdatedAt() *BillingProfileUpsertOne
- func (u *BillingProfileUpsertOne) UpdateWorkflowConfigID() *BillingProfileUpsertOne
- type BillingProfiles
- type BillingWorkflowConfig
- func (c *BillingWorkflowConfig) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bwc *BillingWorkflowConfig) QueryBillingInvoices() *BillingInvoiceQuery
- func (bwc *BillingWorkflowConfig) QueryBillingProfile() *BillingProfileQuery
- func (c *BillingWorkflowConfig) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bwc *BillingWorkflowConfig) String() string
- func (bwc *BillingWorkflowConfig) Unwrap() *BillingWorkflowConfig
- func (bwc *BillingWorkflowConfig) Update() *BillingWorkflowConfigUpdateOne
- func (bwc *BillingWorkflowConfig) Value(name string) (ent.Value, error)
- type BillingWorkflowConfigClient
- func (c *BillingWorkflowConfigClient) Create() *BillingWorkflowConfigCreate
- func (c *BillingWorkflowConfigClient) CreateBulk(builders ...*BillingWorkflowConfigCreate) *BillingWorkflowConfigCreateBulk
- func (c *BillingWorkflowConfigClient) Delete() *BillingWorkflowConfigDelete
- func (c *BillingWorkflowConfigClient) DeleteOne(bwc *BillingWorkflowConfig) *BillingWorkflowConfigDeleteOne
- func (c *BillingWorkflowConfigClient) DeleteOneID(id string) *BillingWorkflowConfigDeleteOne
- func (c *BillingWorkflowConfigClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *BillingWorkflowConfigClient) Get(ctx context.Context, id string) (*BillingWorkflowConfig, error)
- func (c *BillingWorkflowConfigClient) GetX(ctx context.Context, id string) *BillingWorkflowConfig
- func (c *BillingWorkflowConfigClient) Hooks() []Hook
- func (c *BillingWorkflowConfigClient) Intercept(interceptors ...Interceptor)
- func (c *BillingWorkflowConfigClient) Interceptors() []Interceptor
- func (c *BillingWorkflowConfigClient) MapCreateBulk(slice any, setFunc func(*BillingWorkflowConfigCreate, int)) *BillingWorkflowConfigCreateBulk
- func (c *BillingWorkflowConfigClient) Query() *BillingWorkflowConfigQuery
- func (c *BillingWorkflowConfigClient) QueryBillingInvoices(bwc *BillingWorkflowConfig) *BillingInvoiceQuery
- func (c *BillingWorkflowConfigClient) QueryBillingProfile(bwc *BillingWorkflowConfig) *BillingProfileQuery
- func (c *BillingWorkflowConfigClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *BillingWorkflowConfigClient) Update() *BillingWorkflowConfigUpdate
- func (c *BillingWorkflowConfigClient) UpdateOne(bwc *BillingWorkflowConfig) *BillingWorkflowConfigUpdateOne
- func (c *BillingWorkflowConfigClient) UpdateOneID(id string) *BillingWorkflowConfigUpdateOne
- func (c *BillingWorkflowConfigClient) Use(hooks ...Hook)
- type BillingWorkflowConfigCreate
- func (bwcc *BillingWorkflowConfigCreate) Exec(ctx context.Context) error
- func (c *BillingWorkflowConfigCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bwcc *BillingWorkflowConfigCreate) ExecX(ctx context.Context)
- func (bwcc *BillingWorkflowConfigCreate) Mutation() *BillingWorkflowConfigMutation
- func (bwcc *BillingWorkflowConfigCreate) OnConflict(opts ...sql.ConflictOption) *BillingWorkflowConfigUpsertOne
- func (bwcc *BillingWorkflowConfigCreate) OnConflictColumns(columns ...string) *BillingWorkflowConfigUpsertOne
- func (c *BillingWorkflowConfigCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bwcc *BillingWorkflowConfigCreate) Save(ctx context.Context) (*BillingWorkflowConfig, error)
- func (bwcc *BillingWorkflowConfigCreate) SaveX(ctx context.Context) *BillingWorkflowConfig
- func (bwcc *BillingWorkflowConfigCreate) SetBillingInvoices(b *BillingInvoice) *BillingWorkflowConfigCreate
- func (bwcc *BillingWorkflowConfigCreate) SetBillingInvoicesID(id string) *BillingWorkflowConfigCreate
- func (bwcc *BillingWorkflowConfigCreate) SetBillingProfile(b *BillingProfile) *BillingWorkflowConfigCreate
- func (bwcc *BillingWorkflowConfigCreate) SetBillingProfileID(id string) *BillingWorkflowConfigCreate
- func (bwcc *BillingWorkflowConfigCreate) SetCollectionAlignment(bk billing.AlignmentKind) *BillingWorkflowConfigCreate
- func (bwcc *BillingWorkflowConfigCreate) SetCreatedAt(t time.Time) *BillingWorkflowConfigCreate
- func (bwcc *BillingWorkflowConfigCreate) SetDeletedAt(t time.Time) *BillingWorkflowConfigCreate
- func (bwcc *BillingWorkflowConfigCreate) SetID(s string) *BillingWorkflowConfigCreate
- func (bwcc *BillingWorkflowConfigCreate) SetInvoiceAutoAdvance(b bool) *BillingWorkflowConfigCreate
- func (bwcc *BillingWorkflowConfigCreate) SetInvoiceCollectionMethod(bm billing.CollectionMethod) *BillingWorkflowConfigCreate
- func (bwcc *BillingWorkflowConfigCreate) SetInvoiceDraftPeriodSeconds(i int64) *BillingWorkflowConfigCreate
- func (bwcc *BillingWorkflowConfigCreate) SetInvoiceDueAfterSeconds(i int64) *BillingWorkflowConfigCreate
- func (bwcc *BillingWorkflowConfigCreate) SetInvoiceItemPerSubject(b bool) *BillingWorkflowConfigCreate
- func (bwcc *BillingWorkflowConfigCreate) SetInvoiceItemResolution(br billing.GranularityResolution) *BillingWorkflowConfigCreate
- func (bwcc *BillingWorkflowConfigCreate) SetItemCollectionPeriodSeconds(i int64) *BillingWorkflowConfigCreate
- func (bwcc *BillingWorkflowConfigCreate) SetNamespace(s string) *BillingWorkflowConfigCreate
- func (bwcc *BillingWorkflowConfigCreate) SetNillableBillingInvoicesID(id *string) *BillingWorkflowConfigCreate
- func (bwcc *BillingWorkflowConfigCreate) SetNillableBillingProfileID(id *string) *BillingWorkflowConfigCreate
- func (bwcc *BillingWorkflowConfigCreate) SetNillableCreatedAt(t *time.Time) *BillingWorkflowConfigCreate
- func (bwcc *BillingWorkflowConfigCreate) SetNillableDeletedAt(t *time.Time) *BillingWorkflowConfigCreate
- func (bwcc *BillingWorkflowConfigCreate) SetNillableID(s *string) *BillingWorkflowConfigCreate
- func (bwcc *BillingWorkflowConfigCreate) SetNillableTimezone(t *timezone.Timezone) *BillingWorkflowConfigCreate
- func (bwcc *BillingWorkflowConfigCreate) SetNillableUpdatedAt(t *time.Time) *BillingWorkflowConfigCreate
- func (bwcc *BillingWorkflowConfigCreate) SetTimezone(t timezone.Timezone) *BillingWorkflowConfigCreate
- func (bwcc *BillingWorkflowConfigCreate) SetUpdatedAt(t time.Time) *BillingWorkflowConfigCreate
- type BillingWorkflowConfigCreateBulk
- func (bwccb *BillingWorkflowConfigCreateBulk) Exec(ctx context.Context) error
- func (c *BillingWorkflowConfigCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bwccb *BillingWorkflowConfigCreateBulk) ExecX(ctx context.Context)
- func (bwccb *BillingWorkflowConfigCreateBulk) OnConflict(opts ...sql.ConflictOption) *BillingWorkflowConfigUpsertBulk
- func (bwccb *BillingWorkflowConfigCreateBulk) OnConflictColumns(columns ...string) *BillingWorkflowConfigUpsertBulk
- func (c *BillingWorkflowConfigCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bwccb *BillingWorkflowConfigCreateBulk) Save(ctx context.Context) ([]*BillingWorkflowConfig, error)
- func (bwccb *BillingWorkflowConfigCreateBulk) SaveX(ctx context.Context) []*BillingWorkflowConfig
- type BillingWorkflowConfigDelete
- func (bwcd *BillingWorkflowConfigDelete) Exec(ctx context.Context) (int, error)
- func (c *BillingWorkflowConfigDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bwcd *BillingWorkflowConfigDelete) ExecX(ctx context.Context) int
- func (c *BillingWorkflowConfigDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bwcd *BillingWorkflowConfigDelete) Where(ps ...predicate.BillingWorkflowConfig) *BillingWorkflowConfigDelete
- type BillingWorkflowConfigDeleteOne
- type BillingWorkflowConfigEdges
- type BillingWorkflowConfigGroupBy
- func (bwcgb *BillingWorkflowConfigGroupBy) Aggregate(fns ...AggregateFunc) *BillingWorkflowConfigGroupBy
- func (s *BillingWorkflowConfigGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *BillingWorkflowConfigGroupBy) BoolX(ctx context.Context) bool
- func (s *BillingWorkflowConfigGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *BillingWorkflowConfigGroupBy) BoolsX(ctx context.Context) []bool
- func (s *BillingWorkflowConfigGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *BillingWorkflowConfigGroupBy) Float64X(ctx context.Context) float64
- func (s *BillingWorkflowConfigGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *BillingWorkflowConfigGroupBy) Float64sX(ctx context.Context) []float64
- func (s *BillingWorkflowConfigGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *BillingWorkflowConfigGroupBy) IntX(ctx context.Context) int
- func (s *BillingWorkflowConfigGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *BillingWorkflowConfigGroupBy) IntsX(ctx context.Context) []int
- func (bwcgb *BillingWorkflowConfigGroupBy) Scan(ctx context.Context, v any) error
- func (s *BillingWorkflowConfigGroupBy) ScanX(ctx context.Context, v any)
- func (s *BillingWorkflowConfigGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *BillingWorkflowConfigGroupBy) StringX(ctx context.Context) string
- func (s *BillingWorkflowConfigGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *BillingWorkflowConfigGroupBy) StringsX(ctx context.Context) []string
- type BillingWorkflowConfigMutation
- func (m *BillingWorkflowConfigMutation) AddField(name string, value ent.Value) error
- func (m *BillingWorkflowConfigMutation) AddInvoiceDraftPeriodSeconds(i int64)
- func (m *BillingWorkflowConfigMutation) AddInvoiceDueAfterSeconds(i int64)
- func (m *BillingWorkflowConfigMutation) AddItemCollectionPeriodSeconds(i int64)
- func (m *BillingWorkflowConfigMutation) AddedEdges() []string
- func (m *BillingWorkflowConfigMutation) AddedField(name string) (ent.Value, bool)
- func (m *BillingWorkflowConfigMutation) AddedFields() []string
- func (m *BillingWorkflowConfigMutation) AddedIDs(name string) []ent.Value
- func (m *BillingWorkflowConfigMutation) AddedInvoiceDraftPeriodSeconds() (r int64, exists bool)
- func (m *BillingWorkflowConfigMutation) AddedInvoiceDueAfterSeconds() (r int64, exists bool)
- func (m *BillingWorkflowConfigMutation) AddedItemCollectionPeriodSeconds() (r int64, exists bool)
- func (m *BillingWorkflowConfigMutation) BillingInvoicesCleared() bool
- func (m *BillingWorkflowConfigMutation) BillingInvoicesID() (id string, exists bool)
- func (m *BillingWorkflowConfigMutation) BillingInvoicesIDs() (ids []string)
- func (m *BillingWorkflowConfigMutation) BillingProfileCleared() bool
- func (m *BillingWorkflowConfigMutation) BillingProfileID() (id string, exists bool)
- func (m *BillingWorkflowConfigMutation) BillingProfileIDs() (ids []string)
- func (m *BillingWorkflowConfigMutation) ClearBillingInvoices()
- func (m *BillingWorkflowConfigMutation) ClearBillingProfile()
- func (m *BillingWorkflowConfigMutation) ClearDeletedAt()
- func (m *BillingWorkflowConfigMutation) ClearEdge(name string) error
- func (m *BillingWorkflowConfigMutation) ClearField(name string) error
- func (m *BillingWorkflowConfigMutation) ClearTimezone()
- func (m *BillingWorkflowConfigMutation) ClearedEdges() []string
- func (m *BillingWorkflowConfigMutation) ClearedFields() []string
- func (m BillingWorkflowConfigMutation) Client() *Client
- func (m *BillingWorkflowConfigMutation) CollectionAlignment() (r billing.AlignmentKind, exists bool)
- func (m *BillingWorkflowConfigMutation) CreatedAt() (r time.Time, exists bool)
- func (m *BillingWorkflowConfigMutation) DeletedAt() (r time.Time, exists bool)
- func (m *BillingWorkflowConfigMutation) DeletedAtCleared() bool
- func (m *BillingWorkflowConfigMutation) EdgeCleared(name string) bool
- func (c *BillingWorkflowConfigMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *BillingWorkflowConfigMutation) Field(name string) (ent.Value, bool)
- func (m *BillingWorkflowConfigMutation) FieldCleared(name string) bool
- func (m *BillingWorkflowConfigMutation) Fields() []string
- func (m *BillingWorkflowConfigMutation) ID() (id string, exists bool)
- func (m *BillingWorkflowConfigMutation) IDs(ctx context.Context) ([]string, error)
- func (m *BillingWorkflowConfigMutation) InvoiceAutoAdvance() (r bool, exists bool)
- func (m *BillingWorkflowConfigMutation) InvoiceCollectionMethod() (r billing.CollectionMethod, exists bool)
- func (m *BillingWorkflowConfigMutation) InvoiceDraftPeriodSeconds() (r int64, exists bool)
- func (m *BillingWorkflowConfigMutation) InvoiceDueAfterSeconds() (r int64, exists bool)
- func (m *BillingWorkflowConfigMutation) InvoiceItemPerSubject() (r bool, exists bool)
- func (m *BillingWorkflowConfigMutation) InvoiceItemResolution() (r billing.GranularityResolution, exists bool)
- func (m *BillingWorkflowConfigMutation) ItemCollectionPeriodSeconds() (r int64, exists bool)
- func (m *BillingWorkflowConfigMutation) Namespace() (r string, exists bool)
- func (m *BillingWorkflowConfigMutation) OldCollectionAlignment(ctx context.Context) (v billing.AlignmentKind, err error)
- func (m *BillingWorkflowConfigMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *BillingWorkflowConfigMutation) OldDeletedAt(ctx context.Context) (v *time.Time, err error)
- func (m *BillingWorkflowConfigMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *BillingWorkflowConfigMutation) OldInvoiceAutoAdvance(ctx context.Context) (v bool, err error)
- func (m *BillingWorkflowConfigMutation) OldInvoiceCollectionMethod(ctx context.Context) (v billing.CollectionMethod, err error)
- func (m *BillingWorkflowConfigMutation) OldInvoiceDraftPeriodSeconds(ctx context.Context) (v int64, err error)
- func (m *BillingWorkflowConfigMutation) OldInvoiceDueAfterSeconds(ctx context.Context) (v int64, err error)
- func (m *BillingWorkflowConfigMutation) OldInvoiceItemPerSubject(ctx context.Context) (v bool, err error)
- func (m *BillingWorkflowConfigMutation) OldInvoiceItemResolution(ctx context.Context) (v billing.GranularityResolution, err error)
- func (m *BillingWorkflowConfigMutation) OldItemCollectionPeriodSeconds(ctx context.Context) (v int64, err error)
- func (m *BillingWorkflowConfigMutation) OldNamespace(ctx context.Context) (v string, err error)
- func (m *BillingWorkflowConfigMutation) OldTimezone(ctx context.Context) (v *timezone.Timezone, err error)
- func (m *BillingWorkflowConfigMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *BillingWorkflowConfigMutation) Op() Op
- func (c *BillingWorkflowConfigMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *BillingWorkflowConfigMutation) RemovedEdges() []string
- func (m *BillingWorkflowConfigMutation) RemovedIDs(name string) []ent.Value
- func (m *BillingWorkflowConfigMutation) ResetBillingInvoices()
- func (m *BillingWorkflowConfigMutation) ResetBillingProfile()
- func (m *BillingWorkflowConfigMutation) ResetCollectionAlignment()
- func (m *BillingWorkflowConfigMutation) ResetCreatedAt()
- func (m *BillingWorkflowConfigMutation) ResetDeletedAt()
- func (m *BillingWorkflowConfigMutation) ResetEdge(name string) error
- func (m *BillingWorkflowConfigMutation) ResetField(name string) error
- func (m *BillingWorkflowConfigMutation) ResetInvoiceAutoAdvance()
- func (m *BillingWorkflowConfigMutation) ResetInvoiceCollectionMethod()
- func (m *BillingWorkflowConfigMutation) ResetInvoiceDraftPeriodSeconds()
- func (m *BillingWorkflowConfigMutation) ResetInvoiceDueAfterSeconds()
- func (m *BillingWorkflowConfigMutation) ResetInvoiceItemPerSubject()
- func (m *BillingWorkflowConfigMutation) ResetInvoiceItemResolution()
- func (m *BillingWorkflowConfigMutation) ResetItemCollectionPeriodSeconds()
- func (m *BillingWorkflowConfigMutation) ResetNamespace()
- func (m *BillingWorkflowConfigMutation) ResetTimezone()
- func (m *BillingWorkflowConfigMutation) ResetUpdatedAt()
- func (m *BillingWorkflowConfigMutation) SetBillingInvoicesID(id string)
- func (m *BillingWorkflowConfigMutation) SetBillingProfileID(id string)
- func (m *BillingWorkflowConfigMutation) SetCollectionAlignment(bk billing.AlignmentKind)
- func (m *BillingWorkflowConfigMutation) SetCreatedAt(t time.Time)
- func (m *BillingWorkflowConfigMutation) SetDeletedAt(t time.Time)
- func (m *BillingWorkflowConfigMutation) SetField(name string, value ent.Value) error
- func (m *BillingWorkflowConfigMutation) SetID(id string)
- func (m *BillingWorkflowConfigMutation) SetInvoiceAutoAdvance(b bool)
- func (m *BillingWorkflowConfigMutation) SetInvoiceCollectionMethod(bm billing.CollectionMethod)
- func (m *BillingWorkflowConfigMutation) SetInvoiceDraftPeriodSeconds(i int64)
- func (m *BillingWorkflowConfigMutation) SetInvoiceDueAfterSeconds(i int64)
- func (m *BillingWorkflowConfigMutation) SetInvoiceItemPerSubject(b bool)
- func (m *BillingWorkflowConfigMutation) SetInvoiceItemResolution(br billing.GranularityResolution)
- func (m *BillingWorkflowConfigMutation) SetItemCollectionPeriodSeconds(i int64)
- func (m *BillingWorkflowConfigMutation) SetNamespace(s string)
- func (m *BillingWorkflowConfigMutation) SetOp(op Op)
- func (m *BillingWorkflowConfigMutation) SetTimezone(t timezone.Timezone)
- func (m *BillingWorkflowConfigMutation) SetUpdatedAt(t time.Time)
- func (m *BillingWorkflowConfigMutation) Timezone() (r timezone.Timezone, exists bool)
- func (m *BillingWorkflowConfigMutation) TimezoneCleared() bool
- func (m BillingWorkflowConfigMutation) Tx() (*Tx, error)
- func (m *BillingWorkflowConfigMutation) Type() string
- func (m *BillingWorkflowConfigMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *BillingWorkflowConfigMutation) Where(ps ...predicate.BillingWorkflowConfig)
- func (m *BillingWorkflowConfigMutation) WhereP(ps ...func(*sql.Selector))
- type BillingWorkflowConfigQuery
- func (bwcq *BillingWorkflowConfigQuery) Aggregate(fns ...AggregateFunc) *BillingWorkflowConfigSelect
- func (bwcq *BillingWorkflowConfigQuery) All(ctx context.Context) ([]*BillingWorkflowConfig, error)
- func (bwcq *BillingWorkflowConfigQuery) AllX(ctx context.Context) []*BillingWorkflowConfig
- func (bwcq *BillingWorkflowConfigQuery) Clone() *BillingWorkflowConfigQuery
- func (bwcq *BillingWorkflowConfigQuery) Count(ctx context.Context) (int, error)
- func (bwcq *BillingWorkflowConfigQuery) CountX(ctx context.Context) int
- func (c *BillingWorkflowConfigQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bwcq *BillingWorkflowConfigQuery) Exist(ctx context.Context) (bool, error)
- func (bwcq *BillingWorkflowConfigQuery) ExistX(ctx context.Context) bool
- func (bwcq *BillingWorkflowConfigQuery) First(ctx context.Context) (*BillingWorkflowConfig, error)
- func (bwcq *BillingWorkflowConfigQuery) FirstID(ctx context.Context) (id string, err error)
- func (bwcq *BillingWorkflowConfigQuery) FirstIDX(ctx context.Context) string
- func (bwcq *BillingWorkflowConfigQuery) FirstX(ctx context.Context) *BillingWorkflowConfig
- func (bwcq *BillingWorkflowConfigQuery) ForShare(opts ...sql.LockOption) *BillingWorkflowConfigQuery
- func (bwcq *BillingWorkflowConfigQuery) ForUpdate(opts ...sql.LockOption) *BillingWorkflowConfigQuery
- func (bwcq *BillingWorkflowConfigQuery) GroupBy(field string, fields ...string) *BillingWorkflowConfigGroupBy
- func (bwcq *BillingWorkflowConfigQuery) IDs(ctx context.Context) (ids []string, err error)
- func (bwcq *BillingWorkflowConfigQuery) IDsX(ctx context.Context) []string
- func (bwcq *BillingWorkflowConfigQuery) Limit(limit int) *BillingWorkflowConfigQuery
- func (bwcq *BillingWorkflowConfigQuery) Offset(offset int) *BillingWorkflowConfigQuery
- func (bwcq *BillingWorkflowConfigQuery) Only(ctx context.Context) (*BillingWorkflowConfig, error)
- func (bwcq *BillingWorkflowConfigQuery) OnlyID(ctx context.Context) (id string, err error)
- func (bwcq *BillingWorkflowConfigQuery) OnlyIDX(ctx context.Context) string
- func (bwcq *BillingWorkflowConfigQuery) OnlyX(ctx context.Context) *BillingWorkflowConfig
- func (bwcq *BillingWorkflowConfigQuery) Order(o ...billingworkflowconfig.OrderOption) *BillingWorkflowConfigQuery
- func (bwc *BillingWorkflowConfigQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*BillingWorkflowConfig], error)
- func (bwcq *BillingWorkflowConfigQuery) QueryBillingInvoices() *BillingInvoiceQuery
- func (bwcq *BillingWorkflowConfigQuery) QueryBillingProfile() *BillingProfileQuery
- func (c *BillingWorkflowConfigQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bwcq *BillingWorkflowConfigQuery) Select(fields ...string) *BillingWorkflowConfigSelect
- func (bwcq *BillingWorkflowConfigQuery) Unique(unique bool) *BillingWorkflowConfigQuery
- func (bwcq *BillingWorkflowConfigQuery) Where(ps ...predicate.BillingWorkflowConfig) *BillingWorkflowConfigQuery
- func (bwcq *BillingWorkflowConfigQuery) WithBillingInvoices(opts ...func(*BillingInvoiceQuery)) *BillingWorkflowConfigQuery
- func (bwcq *BillingWorkflowConfigQuery) WithBillingProfile(opts ...func(*BillingProfileQuery)) *BillingWorkflowConfigQuery
- type BillingWorkflowConfigSelect
- func (bwcs *BillingWorkflowConfigSelect) Aggregate(fns ...AggregateFunc) *BillingWorkflowConfigSelect
- func (s *BillingWorkflowConfigSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *BillingWorkflowConfigSelect) BoolX(ctx context.Context) bool
- func (s *BillingWorkflowConfigSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *BillingWorkflowConfigSelect) BoolsX(ctx context.Context) []bool
- func (c BillingWorkflowConfigSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *BillingWorkflowConfigSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *BillingWorkflowConfigSelect) Float64X(ctx context.Context) float64
- func (s *BillingWorkflowConfigSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *BillingWorkflowConfigSelect) Float64sX(ctx context.Context) []float64
- func (s *BillingWorkflowConfigSelect) Int(ctx context.Context) (_ int, err error)
- func (s *BillingWorkflowConfigSelect) IntX(ctx context.Context) int
- func (s *BillingWorkflowConfigSelect) Ints(ctx context.Context) ([]int, error)
- func (s *BillingWorkflowConfigSelect) IntsX(ctx context.Context) []int
- func (c BillingWorkflowConfigSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bwcs *BillingWorkflowConfigSelect) Scan(ctx context.Context, v any) error
- func (s *BillingWorkflowConfigSelect) ScanX(ctx context.Context, v any)
- func (s *BillingWorkflowConfigSelect) String(ctx context.Context) (_ string, err error)
- func (s *BillingWorkflowConfigSelect) StringX(ctx context.Context) string
- func (s *BillingWorkflowConfigSelect) Strings(ctx context.Context) ([]string, error)
- func (s *BillingWorkflowConfigSelect) StringsX(ctx context.Context) []string
- type BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) AddInvoiceDraftPeriodSeconds(i int64) *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) AddInvoiceDueAfterSeconds(i int64) *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) AddItemCollectionPeriodSeconds(i int64) *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) ClearBillingInvoices() *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) ClearBillingProfile() *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) ClearDeletedAt() *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) ClearTimezone() *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) Exec(ctx context.Context) error
- func (c *BillingWorkflowConfigUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bwcu *BillingWorkflowConfigUpdate) ExecX(ctx context.Context)
- func (bwcu *BillingWorkflowConfigUpdate) Mutation() *BillingWorkflowConfigMutation
- func (c *BillingWorkflowConfigUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bwcu *BillingWorkflowConfigUpdate) Save(ctx context.Context) (int, error)
- func (bwcu *BillingWorkflowConfigUpdate) SaveX(ctx context.Context) int
- func (bwcu *BillingWorkflowConfigUpdate) SetBillingInvoices(b *BillingInvoice) *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) SetBillingInvoicesID(id string) *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) SetBillingProfile(b *BillingProfile) *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) SetBillingProfileID(id string) *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) SetCollectionAlignment(bk billing.AlignmentKind) *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) SetDeletedAt(t time.Time) *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) SetInvoiceAutoAdvance(b bool) *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) SetInvoiceCollectionMethod(bm billing.CollectionMethod) *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) SetInvoiceDraftPeriodSeconds(i int64) *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) SetInvoiceDueAfterSeconds(i int64) *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) SetInvoiceItemPerSubject(b bool) *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) SetInvoiceItemResolution(br billing.GranularityResolution) *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) SetItemCollectionPeriodSeconds(i int64) *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) SetNillableBillingInvoicesID(id *string) *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) SetNillableBillingProfileID(id *string) *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) SetNillableCollectionAlignment(bk *billing.AlignmentKind) *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) SetNillableDeletedAt(t *time.Time) *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) SetNillableInvoiceAutoAdvance(b *bool) *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) SetNillableInvoiceCollectionMethod(bm *billing.CollectionMethod) *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) SetNillableInvoiceDraftPeriodSeconds(i *int64) *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) SetNillableInvoiceDueAfterSeconds(i *int64) *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) SetNillableInvoiceItemPerSubject(b *bool) *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) SetNillableInvoiceItemResolution(br *billing.GranularityResolution) *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) SetNillableItemCollectionPeriodSeconds(i *int64) *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) SetNillableTimezone(t *timezone.Timezone) *BillingWorkflowConfigUpdate
- func (u *BillingWorkflowConfigUpdate) SetOrClearDeletedAt(value *time.Time) *BillingWorkflowConfigUpdate
- func (u *BillingWorkflowConfigUpdate) SetOrClearTimezone(value *timezone.Timezone) *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) SetTimezone(t timezone.Timezone) *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) SetUpdatedAt(t time.Time) *BillingWorkflowConfigUpdate
- func (bwcu *BillingWorkflowConfigUpdate) Where(ps ...predicate.BillingWorkflowConfig) *BillingWorkflowConfigUpdate
- type BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) AddInvoiceDraftPeriodSeconds(i int64) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) AddInvoiceDueAfterSeconds(i int64) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) AddItemCollectionPeriodSeconds(i int64) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) ClearBillingInvoices() *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) ClearBillingProfile() *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) ClearDeletedAt() *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) ClearTimezone() *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) Exec(ctx context.Context) error
- func (c *BillingWorkflowConfigUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (bwcuo *BillingWorkflowConfigUpdateOne) ExecX(ctx context.Context)
- func (bwcuo *BillingWorkflowConfigUpdateOne) Mutation() *BillingWorkflowConfigMutation
- func (c *BillingWorkflowConfigUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (bwcuo *BillingWorkflowConfigUpdateOne) Save(ctx context.Context) (*BillingWorkflowConfig, error)
- func (bwcuo *BillingWorkflowConfigUpdateOne) SaveX(ctx context.Context) *BillingWorkflowConfig
- func (bwcuo *BillingWorkflowConfigUpdateOne) Select(field string, fields ...string) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) SetBillingInvoices(b *BillingInvoice) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) SetBillingInvoicesID(id string) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) SetBillingProfile(b *BillingProfile) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) SetBillingProfileID(id string) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) SetCollectionAlignment(bk billing.AlignmentKind) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) SetDeletedAt(t time.Time) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) SetInvoiceAutoAdvance(b bool) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) SetInvoiceCollectionMethod(bm billing.CollectionMethod) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) SetInvoiceDraftPeriodSeconds(i int64) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) SetInvoiceDueAfterSeconds(i int64) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) SetInvoiceItemPerSubject(b bool) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) SetInvoiceItemResolution(br billing.GranularityResolution) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) SetItemCollectionPeriodSeconds(i int64) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) SetNillableBillingInvoicesID(id *string) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) SetNillableBillingProfileID(id *string) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) SetNillableCollectionAlignment(bk *billing.AlignmentKind) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) SetNillableDeletedAt(t *time.Time) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) SetNillableInvoiceAutoAdvance(b *bool) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) SetNillableInvoiceCollectionMethod(bm *billing.CollectionMethod) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) SetNillableInvoiceDraftPeriodSeconds(i *int64) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) SetNillableInvoiceDueAfterSeconds(i *int64) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) SetNillableInvoiceItemPerSubject(b *bool) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) SetNillableInvoiceItemResolution(br *billing.GranularityResolution) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) SetNillableItemCollectionPeriodSeconds(i *int64) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) SetNillableTimezone(t *timezone.Timezone) *BillingWorkflowConfigUpdateOne
- func (u *BillingWorkflowConfigUpdateOne) SetOrClearDeletedAt(value *time.Time) *BillingWorkflowConfigUpdateOne
- func (u *BillingWorkflowConfigUpdateOne) SetOrClearTimezone(value *timezone.Timezone) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) SetTimezone(t timezone.Timezone) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) SetUpdatedAt(t time.Time) *BillingWorkflowConfigUpdateOne
- func (bwcuo *BillingWorkflowConfigUpdateOne) Where(ps ...predicate.BillingWorkflowConfig) *BillingWorkflowConfigUpdateOne
- type BillingWorkflowConfigUpsert
- func (u *BillingWorkflowConfigUpsert) AddInvoiceDraftPeriodSeconds(v int64) *BillingWorkflowConfigUpsert
- func (u *BillingWorkflowConfigUpsert) AddInvoiceDueAfterSeconds(v int64) *BillingWorkflowConfigUpsert
- func (u *BillingWorkflowConfigUpsert) AddItemCollectionPeriodSeconds(v int64) *BillingWorkflowConfigUpsert
- func (u *BillingWorkflowConfigUpsert) ClearDeletedAt() *BillingWorkflowConfigUpsert
- func (u *BillingWorkflowConfigUpsert) ClearTimezone() *BillingWorkflowConfigUpsert
- func (u *BillingWorkflowConfigUpsert) SetCollectionAlignment(v billing.AlignmentKind) *BillingWorkflowConfigUpsert
- func (u *BillingWorkflowConfigUpsert) SetDeletedAt(v time.Time) *BillingWorkflowConfigUpsert
- func (u *BillingWorkflowConfigUpsert) SetInvoiceAutoAdvance(v bool) *BillingWorkflowConfigUpsert
- func (u *BillingWorkflowConfigUpsert) SetInvoiceCollectionMethod(v billing.CollectionMethod) *BillingWorkflowConfigUpsert
- func (u *BillingWorkflowConfigUpsert) SetInvoiceDraftPeriodSeconds(v int64) *BillingWorkflowConfigUpsert
- func (u *BillingWorkflowConfigUpsert) SetInvoiceDueAfterSeconds(v int64) *BillingWorkflowConfigUpsert
- func (u *BillingWorkflowConfigUpsert) SetInvoiceItemPerSubject(v bool) *BillingWorkflowConfigUpsert
- func (u *BillingWorkflowConfigUpsert) SetInvoiceItemResolution(v billing.GranularityResolution) *BillingWorkflowConfigUpsert
- func (u *BillingWorkflowConfigUpsert) SetItemCollectionPeriodSeconds(v int64) *BillingWorkflowConfigUpsert
- func (u *BillingWorkflowConfigUpsert) SetTimezone(v timezone.Timezone) *BillingWorkflowConfigUpsert
- func (u *BillingWorkflowConfigUpsert) SetUpdatedAt(v time.Time) *BillingWorkflowConfigUpsert
- func (u *BillingWorkflowConfigUpsert) UpdateCollectionAlignment() *BillingWorkflowConfigUpsert
- func (u *BillingWorkflowConfigUpsert) UpdateDeletedAt() *BillingWorkflowConfigUpsert
- func (u *BillingWorkflowConfigUpsert) UpdateInvoiceAutoAdvance() *BillingWorkflowConfigUpsert
- func (u *BillingWorkflowConfigUpsert) UpdateInvoiceCollectionMethod() *BillingWorkflowConfigUpsert
- func (u *BillingWorkflowConfigUpsert) UpdateInvoiceDraftPeriodSeconds() *BillingWorkflowConfigUpsert
- func (u *BillingWorkflowConfigUpsert) UpdateInvoiceDueAfterSeconds() *BillingWorkflowConfigUpsert
- func (u *BillingWorkflowConfigUpsert) UpdateInvoiceItemPerSubject() *BillingWorkflowConfigUpsert
- func (u *BillingWorkflowConfigUpsert) UpdateInvoiceItemResolution() *BillingWorkflowConfigUpsert
- func (u *BillingWorkflowConfigUpsert) UpdateItemCollectionPeriodSeconds() *BillingWorkflowConfigUpsert
- func (u *BillingWorkflowConfigUpsert) UpdateTimezone() *BillingWorkflowConfigUpsert
- func (u *BillingWorkflowConfigUpsert) UpdateUpdatedAt() *BillingWorkflowConfigUpsert
- type BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) AddInvoiceDraftPeriodSeconds(v int64) *BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) AddInvoiceDueAfterSeconds(v int64) *BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) AddItemCollectionPeriodSeconds(v int64) *BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) ClearDeletedAt() *BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) ClearTimezone() *BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) DoNothing() *BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) Exec(ctx context.Context) error
- func (u *BillingWorkflowConfigUpsertBulk) ExecX(ctx context.Context)
- func (u *BillingWorkflowConfigUpsertBulk) Ignore() *BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) SetCollectionAlignment(v billing.AlignmentKind) *BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) SetDeletedAt(v time.Time) *BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) SetInvoiceAutoAdvance(v bool) *BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) SetInvoiceCollectionMethod(v billing.CollectionMethod) *BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) SetInvoiceDraftPeriodSeconds(v int64) *BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) SetInvoiceDueAfterSeconds(v int64) *BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) SetInvoiceItemPerSubject(v bool) *BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) SetInvoiceItemResolution(v billing.GranularityResolution) *BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) SetItemCollectionPeriodSeconds(v int64) *BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) SetTimezone(v timezone.Timezone) *BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) SetUpdatedAt(v time.Time) *BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) Update(set func(*BillingWorkflowConfigUpsert)) *BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) UpdateCollectionAlignment() *BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) UpdateDeletedAt() *BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) UpdateInvoiceAutoAdvance() *BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) UpdateInvoiceCollectionMethod() *BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) UpdateInvoiceDraftPeriodSeconds() *BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) UpdateInvoiceDueAfterSeconds() *BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) UpdateInvoiceItemPerSubject() *BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) UpdateInvoiceItemResolution() *BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) UpdateItemCollectionPeriodSeconds() *BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) UpdateNewValues() *BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) UpdateTimezone() *BillingWorkflowConfigUpsertBulk
- func (u *BillingWorkflowConfigUpsertBulk) UpdateUpdatedAt() *BillingWorkflowConfigUpsertBulk
- type BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) AddInvoiceDraftPeriodSeconds(v int64) *BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) AddInvoiceDueAfterSeconds(v int64) *BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) AddItemCollectionPeriodSeconds(v int64) *BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) ClearDeletedAt() *BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) ClearTimezone() *BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) DoNothing() *BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) Exec(ctx context.Context) error
- func (u *BillingWorkflowConfigUpsertOne) ExecX(ctx context.Context)
- func (u *BillingWorkflowConfigUpsertOne) ID(ctx context.Context) (id string, err error)
- func (u *BillingWorkflowConfigUpsertOne) IDX(ctx context.Context) string
- func (u *BillingWorkflowConfigUpsertOne) Ignore() *BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) SetCollectionAlignment(v billing.AlignmentKind) *BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) SetDeletedAt(v time.Time) *BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) SetInvoiceAutoAdvance(v bool) *BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) SetInvoiceCollectionMethod(v billing.CollectionMethod) *BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) SetInvoiceDraftPeriodSeconds(v int64) *BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) SetInvoiceDueAfterSeconds(v int64) *BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) SetInvoiceItemPerSubject(v bool) *BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) SetInvoiceItemResolution(v billing.GranularityResolution) *BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) SetItemCollectionPeriodSeconds(v int64) *BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) SetTimezone(v timezone.Timezone) *BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) SetUpdatedAt(v time.Time) *BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) Update(set func(*BillingWorkflowConfigUpsert)) *BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) UpdateCollectionAlignment() *BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) UpdateDeletedAt() *BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) UpdateInvoiceAutoAdvance() *BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) UpdateInvoiceCollectionMethod() *BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) UpdateInvoiceDraftPeriodSeconds() *BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) UpdateInvoiceDueAfterSeconds() *BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) UpdateInvoiceItemPerSubject() *BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) UpdateInvoiceItemResolution() *BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) UpdateItemCollectionPeriodSeconds() *BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) UpdateNewValues() *BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) UpdateTimezone() *BillingWorkflowConfigUpsertOne
- func (u *BillingWorkflowConfigUpsertOne) UpdateUpdatedAt() *BillingWorkflowConfigUpsertOne
- type BillingWorkflowConfigs
- type Client
- func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)
- func (c *Client) Close() error
- func (c *Client) Debug() *Client
- func (c *Client) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *Client) GetConfig() *entutils.RawEntConfig
- func (c *Client) HijackTx(ctx context.Context, opts *sql.TxOptions) (context.Context, *entutils.RawEntConfig, *ExposedTxDriver, error)
- func (c *Client) Intercept(interceptors ...Interceptor)
- func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error)
- func (c *Client) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, 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 Customer
- func (c *Customer) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *Customer) QueryBillingCustomerOverride() *BillingCustomerOverrideQuery
- func (c *Customer) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *Customer) QuerySubjects() *CustomerSubjectsQuery
- func (c *Customer) String() string
- func (c *Customer) Unwrap() *Customer
- func (c *Customer) Update() *CustomerUpdateOne
- func (c *Customer) Value(name string) (ent.Value, error)
- type CustomerClient
- func (c *CustomerClient) Create() *CustomerCreate
- func (c *CustomerClient) CreateBulk(builders ...*CustomerCreate) *CustomerCreateBulk
- func (c *CustomerClient) Delete() *CustomerDelete
- func (c *CustomerClient) DeleteOne(cu *Customer) *CustomerDeleteOne
- func (c *CustomerClient) DeleteOneID(id string) *CustomerDeleteOne
- func (c *CustomerClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *CustomerClient) Get(ctx context.Context, id string) (*Customer, error)
- func (c *CustomerClient) GetX(ctx context.Context, id string) *Customer
- func (c *CustomerClient) Hooks() []Hook
- func (c *CustomerClient) Intercept(interceptors ...Interceptor)
- func (c *CustomerClient) Interceptors() []Interceptor
- func (c *CustomerClient) MapCreateBulk(slice any, setFunc func(*CustomerCreate, int)) *CustomerCreateBulk
- func (c *CustomerClient) Query() *CustomerQuery
- func (c *CustomerClient) QueryBillingCustomerOverride(cu *Customer) *BillingCustomerOverrideQuery
- func (c *CustomerClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *CustomerClient) QuerySubjects(cu *Customer) *CustomerSubjectsQuery
- func (c *CustomerClient) Update() *CustomerUpdate
- func (c *CustomerClient) UpdateOne(cu *Customer) *CustomerUpdateOne
- func (c *CustomerClient) UpdateOneID(id string) *CustomerUpdateOne
- func (c *CustomerClient) Use(hooks ...Hook)
- type CustomerCreate
- func (cc *CustomerCreate) AddSubjectIDs(ids ...int) *CustomerCreate
- func (cc *CustomerCreate) AddSubjects(c ...*CustomerSubjects) *CustomerCreate
- func (cc *CustomerCreate) Exec(ctx context.Context) error
- func (c *CustomerCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (cc *CustomerCreate) ExecX(ctx context.Context)
- func (cc *CustomerCreate) Mutation() *CustomerMutation
- func (cc *CustomerCreate) OnConflict(opts ...sql.ConflictOption) *CustomerUpsertOne
- func (cc *CustomerCreate) OnConflictColumns(columns ...string) *CustomerUpsertOne
- func (c *CustomerCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (cc *CustomerCreate) Save(ctx context.Context) (*Customer, error)
- func (cc *CustomerCreate) SaveX(ctx context.Context) *Customer
- func (cc *CustomerCreate) SetBillingAddressCity(s string) *CustomerCreate
- func (cc *CustomerCreate) SetBillingAddressCountry(mc models.CountryCode) *CustomerCreate
- func (cc *CustomerCreate) SetBillingAddressLine1(s string) *CustomerCreate
- func (cc *CustomerCreate) SetBillingAddressLine2(s string) *CustomerCreate
- func (cc *CustomerCreate) SetBillingAddressPhoneNumber(s string) *CustomerCreate
- func (cc *CustomerCreate) SetBillingAddressPostalCode(s string) *CustomerCreate
- func (cc *CustomerCreate) SetBillingAddressState(s string) *CustomerCreate
- func (cc *CustomerCreate) SetBillingCustomerOverride(b *BillingCustomerOverride) *CustomerCreate
- func (cc *CustomerCreate) SetBillingCustomerOverrideID(id string) *CustomerCreate
- func (cc *CustomerCreate) SetCreatedAt(t time.Time) *CustomerCreate
- func (cc *CustomerCreate) SetCurrency(c currencyx.Code) *CustomerCreate
- func (cc *CustomerCreate) SetDeletedAt(t time.Time) *CustomerCreate
- func (cc *CustomerCreate) SetExternalMappingStripeCustomerID(s string) *CustomerCreate
- func (cc *CustomerCreate) SetID(s string) *CustomerCreate
- func (cc *CustomerCreate) SetMetadata(m map[string]string) *CustomerCreate
- func (cc *CustomerCreate) SetName(s string) *CustomerCreate
- func (cc *CustomerCreate) SetNamespace(s string) *CustomerCreate
- func (cc *CustomerCreate) SetNillableBillingAddressCity(s *string) *CustomerCreate
- func (cc *CustomerCreate) SetNillableBillingAddressCountry(mc *models.CountryCode) *CustomerCreate
- func (cc *CustomerCreate) SetNillableBillingAddressLine1(s *string) *CustomerCreate
- func (cc *CustomerCreate) SetNillableBillingAddressLine2(s *string) *CustomerCreate
- func (cc *CustomerCreate) SetNillableBillingAddressPhoneNumber(s *string) *CustomerCreate
- func (cc *CustomerCreate) SetNillableBillingAddressPostalCode(s *string) *CustomerCreate
- func (cc *CustomerCreate) SetNillableBillingAddressState(s *string) *CustomerCreate
- func (cc *CustomerCreate) SetNillableBillingCustomerOverrideID(id *string) *CustomerCreate
- func (cc *CustomerCreate) SetNillableCreatedAt(t *time.Time) *CustomerCreate
- func (cc *CustomerCreate) SetNillableCurrency(c *currencyx.Code) *CustomerCreate
- func (cc *CustomerCreate) SetNillableDeletedAt(t *time.Time) *CustomerCreate
- func (cc *CustomerCreate) SetNillableExternalMappingStripeCustomerID(s *string) *CustomerCreate
- func (cc *CustomerCreate) SetNillableID(s *string) *CustomerCreate
- func (cc *CustomerCreate) SetNillablePrimaryEmail(s *string) *CustomerCreate
- func (cc *CustomerCreate) SetNillableTimezone(t *timezone.Timezone) *CustomerCreate
- func (cc *CustomerCreate) SetNillableUpdatedAt(t *time.Time) *CustomerCreate
- func (cc *CustomerCreate) SetPrimaryEmail(s string) *CustomerCreate
- func (cc *CustomerCreate) SetTimezone(t timezone.Timezone) *CustomerCreate
- func (cc *CustomerCreate) SetUpdatedAt(t time.Time) *CustomerCreate
- type CustomerCreateBulk
- func (ccb *CustomerCreateBulk) Exec(ctx context.Context) error
- func (c *CustomerCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ccb *CustomerCreateBulk) ExecX(ctx context.Context)
- func (ccb *CustomerCreateBulk) OnConflict(opts ...sql.ConflictOption) *CustomerUpsertBulk
- func (ccb *CustomerCreateBulk) OnConflictColumns(columns ...string) *CustomerUpsertBulk
- func (c *CustomerCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ccb *CustomerCreateBulk) Save(ctx context.Context) ([]*Customer, error)
- func (ccb *CustomerCreateBulk) SaveX(ctx context.Context) []*Customer
- type CustomerDelete
- func (cd *CustomerDelete) Exec(ctx context.Context) (int, error)
- func (c *CustomerDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (cd *CustomerDelete) ExecX(ctx context.Context) int
- func (c *CustomerDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (cd *CustomerDelete) Where(ps ...predicate.Customer) *CustomerDelete
- type CustomerDeleteOne
- type CustomerEdges
- type CustomerGroupBy
- func (cgb *CustomerGroupBy) Aggregate(fns ...AggregateFunc) *CustomerGroupBy
- func (s *CustomerGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *CustomerGroupBy) BoolX(ctx context.Context) bool
- func (s *CustomerGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *CustomerGroupBy) BoolsX(ctx context.Context) []bool
- func (s *CustomerGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *CustomerGroupBy) Float64X(ctx context.Context) float64
- func (s *CustomerGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *CustomerGroupBy) Float64sX(ctx context.Context) []float64
- func (s *CustomerGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *CustomerGroupBy) IntX(ctx context.Context) int
- func (s *CustomerGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *CustomerGroupBy) IntsX(ctx context.Context) []int
- func (cgb *CustomerGroupBy) Scan(ctx context.Context, v any) error
- func (s *CustomerGroupBy) ScanX(ctx context.Context, v any)
- func (s *CustomerGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *CustomerGroupBy) StringX(ctx context.Context) string
- func (s *CustomerGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *CustomerGroupBy) StringsX(ctx context.Context) []string
- type CustomerMutation
- func (m *CustomerMutation) AddField(name string, value ent.Value) error
- func (m *CustomerMutation) AddSubjectIDs(ids ...int)
- func (m *CustomerMutation) AddedEdges() []string
- func (m *CustomerMutation) AddedField(name string) (ent.Value, bool)
- func (m *CustomerMutation) AddedFields() []string
- func (m *CustomerMutation) AddedIDs(name string) []ent.Value
- func (m *CustomerMutation) BillingAddressCity() (r string, exists bool)
- func (m *CustomerMutation) BillingAddressCityCleared() bool
- func (m *CustomerMutation) BillingAddressCountry() (r models.CountryCode, exists bool)
- func (m *CustomerMutation) BillingAddressCountryCleared() bool
- func (m *CustomerMutation) BillingAddressLine1() (r string, exists bool)
- func (m *CustomerMutation) BillingAddressLine1Cleared() bool
- func (m *CustomerMutation) BillingAddressLine2() (r string, exists bool)
- func (m *CustomerMutation) BillingAddressLine2Cleared() bool
- func (m *CustomerMutation) BillingAddressPhoneNumber() (r string, exists bool)
- func (m *CustomerMutation) BillingAddressPhoneNumberCleared() bool
- func (m *CustomerMutation) BillingAddressPostalCode() (r string, exists bool)
- func (m *CustomerMutation) BillingAddressPostalCodeCleared() bool
- func (m *CustomerMutation) BillingAddressState() (r string, exists bool)
- func (m *CustomerMutation) BillingAddressStateCleared() bool
- func (m *CustomerMutation) BillingCustomerOverrideCleared() bool
- func (m *CustomerMutation) BillingCustomerOverrideID() (id string, exists bool)
- func (m *CustomerMutation) BillingCustomerOverrideIDs() (ids []string)
- func (m *CustomerMutation) ClearBillingAddressCity()
- func (m *CustomerMutation) ClearBillingAddressCountry()
- func (m *CustomerMutation) ClearBillingAddressLine1()
- func (m *CustomerMutation) ClearBillingAddressLine2()
- func (m *CustomerMutation) ClearBillingAddressPhoneNumber()
- func (m *CustomerMutation) ClearBillingAddressPostalCode()
- func (m *CustomerMutation) ClearBillingAddressState()
- func (m *CustomerMutation) ClearBillingCustomerOverride()
- func (m *CustomerMutation) ClearCurrency()
- func (m *CustomerMutation) ClearDeletedAt()
- func (m *CustomerMutation) ClearEdge(name string) error
- func (m *CustomerMutation) ClearExternalMappingStripeCustomerID()
- func (m *CustomerMutation) ClearField(name string) error
- func (m *CustomerMutation) ClearMetadata()
- func (m *CustomerMutation) ClearPrimaryEmail()
- func (m *CustomerMutation) ClearSubjects()
- func (m *CustomerMutation) ClearTimezone()
- func (m *CustomerMutation) ClearedEdges() []string
- func (m *CustomerMutation) ClearedFields() []string
- func (m CustomerMutation) Client() *Client
- func (m *CustomerMutation) CreatedAt() (r time.Time, exists bool)
- func (m *CustomerMutation) Currency() (r currencyx.Code, exists bool)
- func (m *CustomerMutation) CurrencyCleared() bool
- func (m *CustomerMutation) DeletedAt() (r time.Time, exists bool)
- func (m *CustomerMutation) DeletedAtCleared() bool
- func (m *CustomerMutation) EdgeCleared(name string) bool
- func (c *CustomerMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *CustomerMutation) ExternalMappingStripeCustomerID() (r string, exists bool)
- func (m *CustomerMutation) ExternalMappingStripeCustomerIDCleared() bool
- func (m *CustomerMutation) Field(name string) (ent.Value, bool)
- func (m *CustomerMutation) FieldCleared(name string) bool
- func (m *CustomerMutation) Fields() []string
- func (m *CustomerMutation) ID() (id string, exists bool)
- func (m *CustomerMutation) IDs(ctx context.Context) ([]string, error)
- func (m *CustomerMutation) Metadata() (r map[string]string, exists bool)
- func (m *CustomerMutation) MetadataCleared() bool
- func (m *CustomerMutation) Name() (r string, exists bool)
- func (m *CustomerMutation) Namespace() (r string, exists bool)
- func (m *CustomerMutation) OldBillingAddressCity(ctx context.Context) (v *string, err error)
- func (m *CustomerMutation) OldBillingAddressCountry(ctx context.Context) (v *models.CountryCode, err error)
- func (m *CustomerMutation) OldBillingAddressLine1(ctx context.Context) (v *string, err error)
- func (m *CustomerMutation) OldBillingAddressLine2(ctx context.Context) (v *string, err error)
- func (m *CustomerMutation) OldBillingAddressPhoneNumber(ctx context.Context) (v *string, err error)
- func (m *CustomerMutation) OldBillingAddressPostalCode(ctx context.Context) (v *string, err error)
- func (m *CustomerMutation) OldBillingAddressState(ctx context.Context) (v *string, err error)
- func (m *CustomerMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *CustomerMutation) OldCurrency(ctx context.Context) (v *currencyx.Code, err error)
- func (m *CustomerMutation) OldDeletedAt(ctx context.Context) (v *time.Time, err error)
- func (m *CustomerMutation) OldExternalMappingStripeCustomerID(ctx context.Context) (v *string, err error)
- func (m *CustomerMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *CustomerMutation) OldMetadata(ctx context.Context) (v map[string]string, err error)
- func (m *CustomerMutation) OldName(ctx context.Context) (v string, err error)
- func (m *CustomerMutation) OldNamespace(ctx context.Context) (v string, err error)
- func (m *CustomerMutation) OldPrimaryEmail(ctx context.Context) (v *string, err error)
- func (m *CustomerMutation) OldTimezone(ctx context.Context) (v *timezone.Timezone, err error)
- func (m *CustomerMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *CustomerMutation) Op() Op
- func (m *CustomerMutation) PrimaryEmail() (r string, exists bool)
- func (m *CustomerMutation) PrimaryEmailCleared() bool
- func (c *CustomerMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *CustomerMutation) RemoveSubjectIDs(ids ...int)
- func (m *CustomerMutation) RemovedEdges() []string
- func (m *CustomerMutation) RemovedIDs(name string) []ent.Value
- func (m *CustomerMutation) RemovedSubjectsIDs() (ids []int)
- func (m *CustomerMutation) ResetBillingAddressCity()
- func (m *CustomerMutation) ResetBillingAddressCountry()
- func (m *CustomerMutation) ResetBillingAddressLine1()
- func (m *CustomerMutation) ResetBillingAddressLine2()
- func (m *CustomerMutation) ResetBillingAddressPhoneNumber()
- func (m *CustomerMutation) ResetBillingAddressPostalCode()
- func (m *CustomerMutation) ResetBillingAddressState()
- func (m *CustomerMutation) ResetBillingCustomerOverride()
- func (m *CustomerMutation) ResetCreatedAt()
- func (m *CustomerMutation) ResetCurrency()
- func (m *CustomerMutation) ResetDeletedAt()
- func (m *CustomerMutation) ResetEdge(name string) error
- func (m *CustomerMutation) ResetExternalMappingStripeCustomerID()
- func (m *CustomerMutation) ResetField(name string) error
- func (m *CustomerMutation) ResetMetadata()
- func (m *CustomerMutation) ResetName()
- func (m *CustomerMutation) ResetNamespace()
- func (m *CustomerMutation) ResetPrimaryEmail()
- func (m *CustomerMutation) ResetSubjects()
- func (m *CustomerMutation) ResetTimezone()
- func (m *CustomerMutation) ResetUpdatedAt()
- func (m *CustomerMutation) SetBillingAddressCity(s string)
- func (m *CustomerMutation) SetBillingAddressCountry(mc models.CountryCode)
- func (m *CustomerMutation) SetBillingAddressLine1(s string)
- func (m *CustomerMutation) SetBillingAddressLine2(s string)
- func (m *CustomerMutation) SetBillingAddressPhoneNumber(s string)
- func (m *CustomerMutation) SetBillingAddressPostalCode(s string)
- func (m *CustomerMutation) SetBillingAddressState(s string)
- func (m *CustomerMutation) SetBillingCustomerOverrideID(id string)
- func (m *CustomerMutation) SetCreatedAt(t time.Time)
- func (m *CustomerMutation) SetCurrency(c currencyx.Code)
- func (m *CustomerMutation) SetDeletedAt(t time.Time)
- func (m *CustomerMutation) SetExternalMappingStripeCustomerID(s string)
- func (m *CustomerMutation) SetField(name string, value ent.Value) error
- func (m *CustomerMutation) SetID(id string)
- func (m *CustomerMutation) SetMetadata(value map[string]string)
- func (m *CustomerMutation) SetName(s string)
- func (m *CustomerMutation) SetNamespace(s string)
- func (m *CustomerMutation) SetOp(op Op)
- func (m *CustomerMutation) SetPrimaryEmail(s string)
- func (m *CustomerMutation) SetTimezone(t timezone.Timezone)
- func (m *CustomerMutation) SetUpdatedAt(t time.Time)
- func (m *CustomerMutation) SubjectsCleared() bool
- func (m *CustomerMutation) SubjectsIDs() (ids []int)
- func (m *CustomerMutation) Timezone() (r timezone.Timezone, exists bool)
- func (m *CustomerMutation) TimezoneCleared() bool
- func (m CustomerMutation) Tx() (*Tx, error)
- func (m *CustomerMutation) Type() string
- func (m *CustomerMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *CustomerMutation) Where(ps ...predicate.Customer)
- func (m *CustomerMutation) WhereP(ps ...func(*sql.Selector))
- type CustomerQuery
- func (cq *CustomerQuery) Aggregate(fns ...AggregateFunc) *CustomerSelect
- func (cq *CustomerQuery) All(ctx context.Context) ([]*Customer, error)
- func (cq *CustomerQuery) AllX(ctx context.Context) []*Customer
- func (cq *CustomerQuery) Clone() *CustomerQuery
- func (cq *CustomerQuery) Count(ctx context.Context) (int, error)
- func (cq *CustomerQuery) CountX(ctx context.Context) int
- func (c *CustomerQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (cq *CustomerQuery) Exist(ctx context.Context) (bool, error)
- func (cq *CustomerQuery) ExistX(ctx context.Context) bool
- func (cq *CustomerQuery) First(ctx context.Context) (*Customer, error)
- func (cq *CustomerQuery) FirstID(ctx context.Context) (id string, err error)
- func (cq *CustomerQuery) FirstIDX(ctx context.Context) string
- func (cq *CustomerQuery) FirstX(ctx context.Context) *Customer
- func (cq *CustomerQuery) ForShare(opts ...sql.LockOption) *CustomerQuery
- func (cq *CustomerQuery) ForUpdate(opts ...sql.LockOption) *CustomerQuery
- func (cq *CustomerQuery) GroupBy(field string, fields ...string) *CustomerGroupBy
- func (cq *CustomerQuery) IDs(ctx context.Context) (ids []string, err error)
- func (cq *CustomerQuery) IDsX(ctx context.Context) []string
- func (cq *CustomerQuery) Limit(limit int) *CustomerQuery
- func (cq *CustomerQuery) Offset(offset int) *CustomerQuery
- func (cq *CustomerQuery) Only(ctx context.Context) (*Customer, error)
- func (cq *CustomerQuery) OnlyID(ctx context.Context) (id string, err error)
- func (cq *CustomerQuery) OnlyIDX(ctx context.Context) string
- func (cq *CustomerQuery) OnlyX(ctx context.Context) *Customer
- func (cq *CustomerQuery) Order(o ...customer.OrderOption) *CustomerQuery
- func (c *CustomerQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*Customer], error)
- func (cq *CustomerQuery) QueryBillingCustomerOverride() *BillingCustomerOverrideQuery
- func (c *CustomerQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (cq *CustomerQuery) QuerySubjects() *CustomerSubjectsQuery
- func (cq *CustomerQuery) Select(fields ...string) *CustomerSelect
- func (cq *CustomerQuery) Unique(unique bool) *CustomerQuery
- func (cq *CustomerQuery) Where(ps ...predicate.Customer) *CustomerQuery
- func (cq *CustomerQuery) WithBillingCustomerOverride(opts ...func(*BillingCustomerOverrideQuery)) *CustomerQuery
- func (cq *CustomerQuery) WithSubjects(opts ...func(*CustomerSubjectsQuery)) *CustomerQuery
- type CustomerSelect
- func (cs *CustomerSelect) Aggregate(fns ...AggregateFunc) *CustomerSelect
- func (s *CustomerSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *CustomerSelect) BoolX(ctx context.Context) bool
- func (s *CustomerSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *CustomerSelect) BoolsX(ctx context.Context) []bool
- func (c CustomerSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *CustomerSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *CustomerSelect) Float64X(ctx context.Context) float64
- func (s *CustomerSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *CustomerSelect) Float64sX(ctx context.Context) []float64
- func (s *CustomerSelect) Int(ctx context.Context) (_ int, err error)
- func (s *CustomerSelect) IntX(ctx context.Context) int
- func (s *CustomerSelect) Ints(ctx context.Context) ([]int, error)
- func (s *CustomerSelect) IntsX(ctx context.Context) []int
- func (c CustomerSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (cs *CustomerSelect) Scan(ctx context.Context, v any) error
- func (s *CustomerSelect) ScanX(ctx context.Context, v any)
- func (s *CustomerSelect) String(ctx context.Context) (_ string, err error)
- func (s *CustomerSelect) StringX(ctx context.Context) string
- func (s *CustomerSelect) Strings(ctx context.Context) ([]string, error)
- func (s *CustomerSelect) StringsX(ctx context.Context) []string
- type CustomerSubjects
- func (c *CustomerSubjects) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *CustomerSubjects) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (cs *CustomerSubjects) QueryCustomer() *CustomerQuery
- func (cs *CustomerSubjects) String() string
- func (cs *CustomerSubjects) Unwrap() *CustomerSubjects
- func (cs *CustomerSubjects) Update() *CustomerSubjectsUpdateOne
- func (cs *CustomerSubjects) Value(name string) (ent.Value, error)
- type CustomerSubjectsClient
- func (c *CustomerSubjectsClient) Create() *CustomerSubjectsCreate
- func (c *CustomerSubjectsClient) CreateBulk(builders ...*CustomerSubjectsCreate) *CustomerSubjectsCreateBulk
- func (c *CustomerSubjectsClient) Delete() *CustomerSubjectsDelete
- func (c *CustomerSubjectsClient) DeleteOne(cs *CustomerSubjects) *CustomerSubjectsDeleteOne
- func (c *CustomerSubjectsClient) DeleteOneID(id int) *CustomerSubjectsDeleteOne
- func (c *CustomerSubjectsClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *CustomerSubjectsClient) Get(ctx context.Context, id int) (*CustomerSubjects, error)
- func (c *CustomerSubjectsClient) GetX(ctx context.Context, id int) *CustomerSubjects
- func (c *CustomerSubjectsClient) Hooks() []Hook
- func (c *CustomerSubjectsClient) Intercept(interceptors ...Interceptor)
- func (c *CustomerSubjectsClient) Interceptors() []Interceptor
- func (c *CustomerSubjectsClient) MapCreateBulk(slice any, setFunc func(*CustomerSubjectsCreate, int)) *CustomerSubjectsCreateBulk
- func (c *CustomerSubjectsClient) Query() *CustomerSubjectsQuery
- func (c *CustomerSubjectsClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *CustomerSubjectsClient) QueryCustomer(cs *CustomerSubjects) *CustomerQuery
- func (c *CustomerSubjectsClient) Update() *CustomerSubjectsUpdate
- func (c *CustomerSubjectsClient) UpdateOne(cs *CustomerSubjects) *CustomerSubjectsUpdateOne
- func (c *CustomerSubjectsClient) UpdateOneID(id int) *CustomerSubjectsUpdateOne
- func (c *CustomerSubjectsClient) Use(hooks ...Hook)
- type CustomerSubjectsCreate
- func (csc *CustomerSubjectsCreate) Exec(ctx context.Context) error
- func (c *CustomerSubjectsCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (csc *CustomerSubjectsCreate) ExecX(ctx context.Context)
- func (csc *CustomerSubjectsCreate) Mutation() *CustomerSubjectsMutation
- func (csc *CustomerSubjectsCreate) OnConflict(opts ...sql.ConflictOption) *CustomerSubjectsUpsertOne
- func (csc *CustomerSubjectsCreate) OnConflictColumns(columns ...string) *CustomerSubjectsUpsertOne
- func (c *CustomerSubjectsCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (csc *CustomerSubjectsCreate) Save(ctx context.Context) (*CustomerSubjects, error)
- func (csc *CustomerSubjectsCreate) SaveX(ctx context.Context) *CustomerSubjects
- func (csc *CustomerSubjectsCreate) SetCreatedAt(t time.Time) *CustomerSubjectsCreate
- func (csc *CustomerSubjectsCreate) SetCustomer(c *Customer) *CustomerSubjectsCreate
- func (csc *CustomerSubjectsCreate) SetCustomerID(s string) *CustomerSubjectsCreate
- func (csc *CustomerSubjectsCreate) SetNamespace(s string) *CustomerSubjectsCreate
- func (csc *CustomerSubjectsCreate) SetNillableCreatedAt(t *time.Time) *CustomerSubjectsCreate
- func (csc *CustomerSubjectsCreate) SetSubjectKey(s string) *CustomerSubjectsCreate
- type CustomerSubjectsCreateBulk
- func (cscb *CustomerSubjectsCreateBulk) Exec(ctx context.Context) error
- func (c *CustomerSubjectsCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (cscb *CustomerSubjectsCreateBulk) ExecX(ctx context.Context)
- func (cscb *CustomerSubjectsCreateBulk) OnConflict(opts ...sql.ConflictOption) *CustomerSubjectsUpsertBulk
- func (cscb *CustomerSubjectsCreateBulk) OnConflictColumns(columns ...string) *CustomerSubjectsUpsertBulk
- func (c *CustomerSubjectsCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (cscb *CustomerSubjectsCreateBulk) Save(ctx context.Context) ([]*CustomerSubjects, error)
- func (cscb *CustomerSubjectsCreateBulk) SaveX(ctx context.Context) []*CustomerSubjects
- type CustomerSubjectsDelete
- func (csd *CustomerSubjectsDelete) Exec(ctx context.Context) (int, error)
- func (c *CustomerSubjectsDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (csd *CustomerSubjectsDelete) ExecX(ctx context.Context) int
- func (c *CustomerSubjectsDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (csd *CustomerSubjectsDelete) Where(ps ...predicate.CustomerSubjects) *CustomerSubjectsDelete
- type CustomerSubjectsDeleteOne
- type CustomerSubjectsEdges
- type CustomerSubjectsGroupBy
- func (csgb *CustomerSubjectsGroupBy) Aggregate(fns ...AggregateFunc) *CustomerSubjectsGroupBy
- func (s *CustomerSubjectsGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *CustomerSubjectsGroupBy) BoolX(ctx context.Context) bool
- func (s *CustomerSubjectsGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *CustomerSubjectsGroupBy) BoolsX(ctx context.Context) []bool
- func (s *CustomerSubjectsGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *CustomerSubjectsGroupBy) Float64X(ctx context.Context) float64
- func (s *CustomerSubjectsGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *CustomerSubjectsGroupBy) Float64sX(ctx context.Context) []float64
- func (s *CustomerSubjectsGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *CustomerSubjectsGroupBy) IntX(ctx context.Context) int
- func (s *CustomerSubjectsGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *CustomerSubjectsGroupBy) IntsX(ctx context.Context) []int
- func (csgb *CustomerSubjectsGroupBy) Scan(ctx context.Context, v any) error
- func (s *CustomerSubjectsGroupBy) ScanX(ctx context.Context, v any)
- func (s *CustomerSubjectsGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *CustomerSubjectsGroupBy) StringX(ctx context.Context) string
- func (s *CustomerSubjectsGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *CustomerSubjectsGroupBy) StringsX(ctx context.Context) []string
- type CustomerSubjectsMutation
- func (m *CustomerSubjectsMutation) AddField(name string, value ent.Value) error
- func (m *CustomerSubjectsMutation) AddedEdges() []string
- func (m *CustomerSubjectsMutation) AddedField(name string) (ent.Value, bool)
- func (m *CustomerSubjectsMutation) AddedFields() []string
- func (m *CustomerSubjectsMutation) AddedIDs(name string) []ent.Value
- func (m *CustomerSubjectsMutation) ClearCustomer()
- func (m *CustomerSubjectsMutation) ClearEdge(name string) error
- func (m *CustomerSubjectsMutation) ClearField(name string) error
- func (m *CustomerSubjectsMutation) ClearedEdges() []string
- func (m *CustomerSubjectsMutation) ClearedFields() []string
- func (m CustomerSubjectsMutation) Client() *Client
- func (m *CustomerSubjectsMutation) CreatedAt() (r time.Time, exists bool)
- func (m *CustomerSubjectsMutation) CustomerCleared() bool
- func (m *CustomerSubjectsMutation) CustomerID() (r string, exists bool)
- func (m *CustomerSubjectsMutation) CustomerIDs() (ids []string)
- func (m *CustomerSubjectsMutation) EdgeCleared(name string) bool
- func (c *CustomerSubjectsMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *CustomerSubjectsMutation) Field(name string) (ent.Value, bool)
- func (m *CustomerSubjectsMutation) FieldCleared(name string) bool
- func (m *CustomerSubjectsMutation) Fields() []string
- func (m *CustomerSubjectsMutation) ID() (id int, exists bool)
- func (m *CustomerSubjectsMutation) IDs(ctx context.Context) ([]int, error)
- func (m *CustomerSubjectsMutation) Namespace() (r string, exists bool)
- func (m *CustomerSubjectsMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *CustomerSubjectsMutation) OldCustomerID(ctx context.Context) (v string, err error)
- func (m *CustomerSubjectsMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *CustomerSubjectsMutation) OldNamespace(ctx context.Context) (v string, err error)
- func (m *CustomerSubjectsMutation) OldSubjectKey(ctx context.Context) (v string, err error)
- func (m *CustomerSubjectsMutation) Op() Op
- func (c *CustomerSubjectsMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *CustomerSubjectsMutation) RemovedEdges() []string
- func (m *CustomerSubjectsMutation) RemovedIDs(name string) []ent.Value
- func (m *CustomerSubjectsMutation) ResetCreatedAt()
- func (m *CustomerSubjectsMutation) ResetCustomer()
- func (m *CustomerSubjectsMutation) ResetCustomerID()
- func (m *CustomerSubjectsMutation) ResetEdge(name string) error
- func (m *CustomerSubjectsMutation) ResetField(name string) error
- func (m *CustomerSubjectsMutation) ResetNamespace()
- func (m *CustomerSubjectsMutation) ResetSubjectKey()
- func (m *CustomerSubjectsMutation) SetCreatedAt(t time.Time)
- func (m *CustomerSubjectsMutation) SetCustomerID(s string)
- func (m *CustomerSubjectsMutation) SetField(name string, value ent.Value) error
- func (m *CustomerSubjectsMutation) SetNamespace(s string)
- func (m *CustomerSubjectsMutation) SetOp(op Op)
- func (m *CustomerSubjectsMutation) SetSubjectKey(s string)
- func (m *CustomerSubjectsMutation) SubjectKey() (r string, exists bool)
- func (m CustomerSubjectsMutation) Tx() (*Tx, error)
- func (m *CustomerSubjectsMutation) Type() string
- func (m *CustomerSubjectsMutation) Where(ps ...predicate.CustomerSubjects)
- func (m *CustomerSubjectsMutation) WhereP(ps ...func(*sql.Selector))
- type CustomerSubjectsQuery
- func (csq *CustomerSubjectsQuery) Aggregate(fns ...AggregateFunc) *CustomerSubjectsSelect
- func (csq *CustomerSubjectsQuery) All(ctx context.Context) ([]*CustomerSubjects, error)
- func (csq *CustomerSubjectsQuery) AllX(ctx context.Context) []*CustomerSubjects
- func (csq *CustomerSubjectsQuery) Clone() *CustomerSubjectsQuery
- func (csq *CustomerSubjectsQuery) Count(ctx context.Context) (int, error)
- func (csq *CustomerSubjectsQuery) CountX(ctx context.Context) int
- func (c *CustomerSubjectsQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (csq *CustomerSubjectsQuery) Exist(ctx context.Context) (bool, error)
- func (csq *CustomerSubjectsQuery) ExistX(ctx context.Context) bool
- func (csq *CustomerSubjectsQuery) First(ctx context.Context) (*CustomerSubjects, error)
- func (csq *CustomerSubjectsQuery) FirstID(ctx context.Context) (id int, err error)
- func (csq *CustomerSubjectsQuery) FirstIDX(ctx context.Context) int
- func (csq *CustomerSubjectsQuery) FirstX(ctx context.Context) *CustomerSubjects
- func (csq *CustomerSubjectsQuery) ForShare(opts ...sql.LockOption) *CustomerSubjectsQuery
- func (csq *CustomerSubjectsQuery) ForUpdate(opts ...sql.LockOption) *CustomerSubjectsQuery
- func (csq *CustomerSubjectsQuery) GroupBy(field string, fields ...string) *CustomerSubjectsGroupBy
- func (csq *CustomerSubjectsQuery) IDs(ctx context.Context) (ids []int, err error)
- func (csq *CustomerSubjectsQuery) IDsX(ctx context.Context) []int
- func (csq *CustomerSubjectsQuery) Limit(limit int) *CustomerSubjectsQuery
- func (csq *CustomerSubjectsQuery) Offset(offset int) *CustomerSubjectsQuery
- func (csq *CustomerSubjectsQuery) Only(ctx context.Context) (*CustomerSubjects, error)
- func (csq *CustomerSubjectsQuery) OnlyID(ctx context.Context) (id int, err error)
- func (csq *CustomerSubjectsQuery) OnlyIDX(ctx context.Context) int
- func (csq *CustomerSubjectsQuery) OnlyX(ctx context.Context) *CustomerSubjects
- func (csq *CustomerSubjectsQuery) Order(o ...customersubjects.OrderOption) *CustomerSubjectsQuery
- func (cs *CustomerSubjectsQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*CustomerSubjects], error)
- func (c *CustomerSubjectsQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (csq *CustomerSubjectsQuery) QueryCustomer() *CustomerQuery
- func (csq *CustomerSubjectsQuery) Select(fields ...string) *CustomerSubjectsSelect
- func (csq *CustomerSubjectsQuery) Unique(unique bool) *CustomerSubjectsQuery
- func (csq *CustomerSubjectsQuery) Where(ps ...predicate.CustomerSubjects) *CustomerSubjectsQuery
- func (csq *CustomerSubjectsQuery) WithCustomer(opts ...func(*CustomerQuery)) *CustomerSubjectsQuery
- type CustomerSubjectsSelect
- func (css *CustomerSubjectsSelect) Aggregate(fns ...AggregateFunc) *CustomerSubjectsSelect
- func (s *CustomerSubjectsSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *CustomerSubjectsSelect) BoolX(ctx context.Context) bool
- func (s *CustomerSubjectsSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *CustomerSubjectsSelect) BoolsX(ctx context.Context) []bool
- func (c CustomerSubjectsSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *CustomerSubjectsSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *CustomerSubjectsSelect) Float64X(ctx context.Context) float64
- func (s *CustomerSubjectsSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *CustomerSubjectsSelect) Float64sX(ctx context.Context) []float64
- func (s *CustomerSubjectsSelect) Int(ctx context.Context) (_ int, err error)
- func (s *CustomerSubjectsSelect) IntX(ctx context.Context) int
- func (s *CustomerSubjectsSelect) Ints(ctx context.Context) ([]int, error)
- func (s *CustomerSubjectsSelect) IntsX(ctx context.Context) []int
- func (c CustomerSubjectsSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (css *CustomerSubjectsSelect) Scan(ctx context.Context, v any) error
- func (s *CustomerSubjectsSelect) ScanX(ctx context.Context, v any)
- func (s *CustomerSubjectsSelect) String(ctx context.Context) (_ string, err error)
- func (s *CustomerSubjectsSelect) StringX(ctx context.Context) string
- func (s *CustomerSubjectsSelect) Strings(ctx context.Context) ([]string, error)
- func (s *CustomerSubjectsSelect) StringsX(ctx context.Context) []string
- type CustomerSubjectsSlice
- type CustomerSubjectsUpdate
- func (csu *CustomerSubjectsUpdate) Exec(ctx context.Context) error
- func (c *CustomerSubjectsUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (csu *CustomerSubjectsUpdate) ExecX(ctx context.Context)
- func (csu *CustomerSubjectsUpdate) Mutation() *CustomerSubjectsMutation
- func (c *CustomerSubjectsUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (csu *CustomerSubjectsUpdate) Save(ctx context.Context) (int, error)
- func (csu *CustomerSubjectsUpdate) SaveX(ctx context.Context) int
- func (csu *CustomerSubjectsUpdate) Where(ps ...predicate.CustomerSubjects) *CustomerSubjectsUpdate
- type CustomerSubjectsUpdateOne
- func (csuo *CustomerSubjectsUpdateOne) Exec(ctx context.Context) error
- func (c *CustomerSubjectsUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (csuo *CustomerSubjectsUpdateOne) ExecX(ctx context.Context)
- func (csuo *CustomerSubjectsUpdateOne) Mutation() *CustomerSubjectsMutation
- func (c *CustomerSubjectsUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (csuo *CustomerSubjectsUpdateOne) Save(ctx context.Context) (*CustomerSubjects, error)
- func (csuo *CustomerSubjectsUpdateOne) SaveX(ctx context.Context) *CustomerSubjects
- func (csuo *CustomerSubjectsUpdateOne) Select(field string, fields ...string) *CustomerSubjectsUpdateOne
- func (csuo *CustomerSubjectsUpdateOne) Where(ps ...predicate.CustomerSubjects) *CustomerSubjectsUpdateOne
- type CustomerSubjectsUpsert
- type CustomerSubjectsUpsertBulk
- func (u *CustomerSubjectsUpsertBulk) DoNothing() *CustomerSubjectsUpsertBulk
- func (u *CustomerSubjectsUpsertBulk) Exec(ctx context.Context) error
- func (u *CustomerSubjectsUpsertBulk) ExecX(ctx context.Context)
- func (u *CustomerSubjectsUpsertBulk) Ignore() *CustomerSubjectsUpsertBulk
- func (u *CustomerSubjectsUpsertBulk) Update(set func(*CustomerSubjectsUpsert)) *CustomerSubjectsUpsertBulk
- func (u *CustomerSubjectsUpsertBulk) UpdateNewValues() *CustomerSubjectsUpsertBulk
- type CustomerSubjectsUpsertOne
- func (u *CustomerSubjectsUpsertOne) DoNothing() *CustomerSubjectsUpsertOne
- func (u *CustomerSubjectsUpsertOne) Exec(ctx context.Context) error
- func (u *CustomerSubjectsUpsertOne) ExecX(ctx context.Context)
- func (u *CustomerSubjectsUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *CustomerSubjectsUpsertOne) IDX(ctx context.Context) int
- func (u *CustomerSubjectsUpsertOne) Ignore() *CustomerSubjectsUpsertOne
- func (u *CustomerSubjectsUpsertOne) Update(set func(*CustomerSubjectsUpsert)) *CustomerSubjectsUpsertOne
- func (u *CustomerSubjectsUpsertOne) UpdateNewValues() *CustomerSubjectsUpsertOne
- type CustomerUpdate
- func (cu *CustomerUpdate) AddSubjectIDs(ids ...int) *CustomerUpdate
- func (cu *CustomerUpdate) AddSubjects(c ...*CustomerSubjects) *CustomerUpdate
- func (cu *CustomerUpdate) ClearBillingAddressCity() *CustomerUpdate
- func (cu *CustomerUpdate) ClearBillingAddressCountry() *CustomerUpdate
- func (cu *CustomerUpdate) ClearBillingAddressLine1() *CustomerUpdate
- func (cu *CustomerUpdate) ClearBillingAddressLine2() *CustomerUpdate
- func (cu *CustomerUpdate) ClearBillingAddressPhoneNumber() *CustomerUpdate
- func (cu *CustomerUpdate) ClearBillingAddressPostalCode() *CustomerUpdate
- func (cu *CustomerUpdate) ClearBillingAddressState() *CustomerUpdate
- func (cu *CustomerUpdate) ClearBillingCustomerOverride() *CustomerUpdate
- func (cu *CustomerUpdate) ClearCurrency() *CustomerUpdate
- func (cu *CustomerUpdate) ClearDeletedAt() *CustomerUpdate
- func (cu *CustomerUpdate) ClearExternalMappingStripeCustomerID() *CustomerUpdate
- func (cu *CustomerUpdate) ClearMetadata() *CustomerUpdate
- func (cu *CustomerUpdate) ClearPrimaryEmail() *CustomerUpdate
- func (cu *CustomerUpdate) ClearSubjects() *CustomerUpdate
- func (cu *CustomerUpdate) ClearTimezone() *CustomerUpdate
- func (cu *CustomerUpdate) Exec(ctx context.Context) error
- func (c *CustomerUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (cu *CustomerUpdate) ExecX(ctx context.Context)
- func (cu *CustomerUpdate) Mutation() *CustomerMutation
- func (c *CustomerUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (cu *CustomerUpdate) RemoveSubjectIDs(ids ...int) *CustomerUpdate
- func (cu *CustomerUpdate) RemoveSubjects(c ...*CustomerSubjects) *CustomerUpdate
- func (cu *CustomerUpdate) Save(ctx context.Context) (int, error)
- func (cu *CustomerUpdate) SaveX(ctx context.Context) int
- func (cu *CustomerUpdate) SetBillingAddressCity(s string) *CustomerUpdate
- func (cu *CustomerUpdate) SetBillingAddressCountry(mc models.CountryCode) *CustomerUpdate
- func (cu *CustomerUpdate) SetBillingAddressLine1(s string) *CustomerUpdate
- func (cu *CustomerUpdate) SetBillingAddressLine2(s string) *CustomerUpdate
- func (cu *CustomerUpdate) SetBillingAddressPhoneNumber(s string) *CustomerUpdate
- func (cu *CustomerUpdate) SetBillingAddressPostalCode(s string) *CustomerUpdate
- func (cu *CustomerUpdate) SetBillingAddressState(s string) *CustomerUpdate
- func (cu *CustomerUpdate) SetBillingCustomerOverride(b *BillingCustomerOverride) *CustomerUpdate
- func (cu *CustomerUpdate) SetBillingCustomerOverrideID(id string) *CustomerUpdate
- func (cu *CustomerUpdate) SetCurrency(c currencyx.Code) *CustomerUpdate
- func (cu *CustomerUpdate) SetDeletedAt(t time.Time) *CustomerUpdate
- func (cu *CustomerUpdate) SetExternalMappingStripeCustomerID(s string) *CustomerUpdate
- func (cu *CustomerUpdate) SetMetadata(m map[string]string) *CustomerUpdate
- func (cu *CustomerUpdate) SetName(s string) *CustomerUpdate
- func (cu *CustomerUpdate) SetNillableBillingAddressCity(s *string) *CustomerUpdate
- func (cu *CustomerUpdate) SetNillableBillingAddressCountry(mc *models.CountryCode) *CustomerUpdate
- func (cu *CustomerUpdate) SetNillableBillingAddressLine1(s *string) *CustomerUpdate
- func (cu *CustomerUpdate) SetNillableBillingAddressLine2(s *string) *CustomerUpdate
- func (cu *CustomerUpdate) SetNillableBillingAddressPhoneNumber(s *string) *CustomerUpdate
- func (cu *CustomerUpdate) SetNillableBillingAddressPostalCode(s *string) *CustomerUpdate
- func (cu *CustomerUpdate) SetNillableBillingAddressState(s *string) *CustomerUpdate
- func (cu *CustomerUpdate) SetNillableBillingCustomerOverrideID(id *string) *CustomerUpdate
- func (cu *CustomerUpdate) SetNillableCurrency(c *currencyx.Code) *CustomerUpdate
- func (cu *CustomerUpdate) SetNillableDeletedAt(t *time.Time) *CustomerUpdate
- func (cu *CustomerUpdate) SetNillableExternalMappingStripeCustomerID(s *string) *CustomerUpdate
- func (cu *CustomerUpdate) SetNillableName(s *string) *CustomerUpdate
- func (cu *CustomerUpdate) SetNillablePrimaryEmail(s *string) *CustomerUpdate
- func (cu *CustomerUpdate) SetNillableTimezone(t *timezone.Timezone) *CustomerUpdate
- func (u *CustomerUpdate) SetOrClearBillingAddressCity(value *string) *CustomerUpdate
- func (u *CustomerUpdate) SetOrClearBillingAddressCountry(value *models.CountryCode) *CustomerUpdate
- func (u *CustomerUpdate) SetOrClearBillingAddressLine1(value *string) *CustomerUpdate
- func (u *CustomerUpdate) SetOrClearBillingAddressLine2(value *string) *CustomerUpdate
- func (u *CustomerUpdate) SetOrClearBillingAddressPhoneNumber(value *string) *CustomerUpdate
- func (u *CustomerUpdate) SetOrClearBillingAddressPostalCode(value *string) *CustomerUpdate
- func (u *CustomerUpdate) SetOrClearBillingAddressState(value *string) *CustomerUpdate
- func (u *CustomerUpdate) SetOrClearCurrency(value *currencyx.Code) *CustomerUpdate
- func (u *CustomerUpdate) SetOrClearDeletedAt(value *time.Time) *CustomerUpdate
- func (u *CustomerUpdate) SetOrClearExternalMappingStripeCustomerID(value *string) *CustomerUpdate
- func (u *CustomerUpdate) SetOrClearMetadata(value *map[string]string) *CustomerUpdate
- func (u *CustomerUpdate) SetOrClearPrimaryEmail(value *string) *CustomerUpdate
- func (u *CustomerUpdate) SetOrClearTimezone(value *timezone.Timezone) *CustomerUpdate
- func (cu *CustomerUpdate) SetPrimaryEmail(s string) *CustomerUpdate
- func (cu *CustomerUpdate) SetTimezone(t timezone.Timezone) *CustomerUpdate
- func (cu *CustomerUpdate) SetUpdatedAt(t time.Time) *CustomerUpdate
- func (cu *CustomerUpdate) Where(ps ...predicate.Customer) *CustomerUpdate
- type CustomerUpdateOne
- func (cuo *CustomerUpdateOne) AddSubjectIDs(ids ...int) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) AddSubjects(c ...*CustomerSubjects) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) ClearBillingAddressCity() *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) ClearBillingAddressCountry() *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) ClearBillingAddressLine1() *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) ClearBillingAddressLine2() *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) ClearBillingAddressPhoneNumber() *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) ClearBillingAddressPostalCode() *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) ClearBillingAddressState() *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) ClearBillingCustomerOverride() *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) ClearCurrency() *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) ClearDeletedAt() *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) ClearExternalMappingStripeCustomerID() *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) ClearMetadata() *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) ClearPrimaryEmail() *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) ClearSubjects() *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) ClearTimezone() *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) Exec(ctx context.Context) error
- func (c *CustomerUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (cuo *CustomerUpdateOne) ExecX(ctx context.Context)
- func (cuo *CustomerUpdateOne) Mutation() *CustomerMutation
- func (c *CustomerUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (cuo *CustomerUpdateOne) RemoveSubjectIDs(ids ...int) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) RemoveSubjects(c ...*CustomerSubjects) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) Save(ctx context.Context) (*Customer, error)
- func (cuo *CustomerUpdateOne) SaveX(ctx context.Context) *Customer
- func (cuo *CustomerUpdateOne) Select(field string, fields ...string) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetBillingAddressCity(s string) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetBillingAddressCountry(mc models.CountryCode) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetBillingAddressLine1(s string) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetBillingAddressLine2(s string) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetBillingAddressPhoneNumber(s string) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetBillingAddressPostalCode(s string) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetBillingAddressState(s string) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetBillingCustomerOverride(b *BillingCustomerOverride) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetBillingCustomerOverrideID(id string) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetCurrency(c currencyx.Code) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetDeletedAt(t time.Time) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetExternalMappingStripeCustomerID(s string) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetMetadata(m map[string]string) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetName(s string) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetNillableBillingAddressCity(s *string) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetNillableBillingAddressCountry(mc *models.CountryCode) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetNillableBillingAddressLine1(s *string) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetNillableBillingAddressLine2(s *string) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetNillableBillingAddressPhoneNumber(s *string) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetNillableBillingAddressPostalCode(s *string) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetNillableBillingAddressState(s *string) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetNillableBillingCustomerOverrideID(id *string) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetNillableCurrency(c *currencyx.Code) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetNillableDeletedAt(t *time.Time) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetNillableExternalMappingStripeCustomerID(s *string) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetNillableName(s *string) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetNillablePrimaryEmail(s *string) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetNillableTimezone(t *timezone.Timezone) *CustomerUpdateOne
- func (u *CustomerUpdateOne) SetOrClearBillingAddressCity(value *string) *CustomerUpdateOne
- func (u *CustomerUpdateOne) SetOrClearBillingAddressCountry(value *models.CountryCode) *CustomerUpdateOne
- func (u *CustomerUpdateOne) SetOrClearBillingAddressLine1(value *string) *CustomerUpdateOne
- func (u *CustomerUpdateOne) SetOrClearBillingAddressLine2(value *string) *CustomerUpdateOne
- func (u *CustomerUpdateOne) SetOrClearBillingAddressPhoneNumber(value *string) *CustomerUpdateOne
- func (u *CustomerUpdateOne) SetOrClearBillingAddressPostalCode(value *string) *CustomerUpdateOne
- func (u *CustomerUpdateOne) SetOrClearBillingAddressState(value *string) *CustomerUpdateOne
- func (u *CustomerUpdateOne) SetOrClearCurrency(value *currencyx.Code) *CustomerUpdateOne
- func (u *CustomerUpdateOne) SetOrClearDeletedAt(value *time.Time) *CustomerUpdateOne
- func (u *CustomerUpdateOne) SetOrClearExternalMappingStripeCustomerID(value *string) *CustomerUpdateOne
- func (u *CustomerUpdateOne) SetOrClearMetadata(value *map[string]string) *CustomerUpdateOne
- func (u *CustomerUpdateOne) SetOrClearPrimaryEmail(value *string) *CustomerUpdateOne
- func (u *CustomerUpdateOne) SetOrClearTimezone(value *timezone.Timezone) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetPrimaryEmail(s string) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetTimezone(t timezone.Timezone) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) SetUpdatedAt(t time.Time) *CustomerUpdateOne
- func (cuo *CustomerUpdateOne) Where(ps ...predicate.Customer) *CustomerUpdateOne
- type CustomerUpsert
- func (u *CustomerUpsert) ClearBillingAddressCity() *CustomerUpsert
- func (u *CustomerUpsert) ClearBillingAddressCountry() *CustomerUpsert
- func (u *CustomerUpsert) ClearBillingAddressLine1() *CustomerUpsert
- func (u *CustomerUpsert) ClearBillingAddressLine2() *CustomerUpsert
- func (u *CustomerUpsert) ClearBillingAddressPhoneNumber() *CustomerUpsert
- func (u *CustomerUpsert) ClearBillingAddressPostalCode() *CustomerUpsert
- func (u *CustomerUpsert) ClearBillingAddressState() *CustomerUpsert
- func (u *CustomerUpsert) ClearCurrency() *CustomerUpsert
- func (u *CustomerUpsert) ClearDeletedAt() *CustomerUpsert
- func (u *CustomerUpsert) ClearExternalMappingStripeCustomerID() *CustomerUpsert
- func (u *CustomerUpsert) ClearMetadata() *CustomerUpsert
- func (u *CustomerUpsert) ClearPrimaryEmail() *CustomerUpsert
- func (u *CustomerUpsert) ClearTimezone() *CustomerUpsert
- func (u *CustomerUpsert) SetBillingAddressCity(v string) *CustomerUpsert
- func (u *CustomerUpsert) SetBillingAddressCountry(v models.CountryCode) *CustomerUpsert
- func (u *CustomerUpsert) SetBillingAddressLine1(v string) *CustomerUpsert
- func (u *CustomerUpsert) SetBillingAddressLine2(v string) *CustomerUpsert
- func (u *CustomerUpsert) SetBillingAddressPhoneNumber(v string) *CustomerUpsert
- func (u *CustomerUpsert) SetBillingAddressPostalCode(v string) *CustomerUpsert
- func (u *CustomerUpsert) SetBillingAddressState(v string) *CustomerUpsert
- func (u *CustomerUpsert) SetCurrency(v currencyx.Code) *CustomerUpsert
- func (u *CustomerUpsert) SetDeletedAt(v time.Time) *CustomerUpsert
- func (u *CustomerUpsert) SetExternalMappingStripeCustomerID(v string) *CustomerUpsert
- func (u *CustomerUpsert) SetMetadata(v map[string]string) *CustomerUpsert
- func (u *CustomerUpsert) SetName(v string) *CustomerUpsert
- func (u *CustomerUpsert) SetPrimaryEmail(v string) *CustomerUpsert
- func (u *CustomerUpsert) SetTimezone(v timezone.Timezone) *CustomerUpsert
- func (u *CustomerUpsert) SetUpdatedAt(v time.Time) *CustomerUpsert
- func (u *CustomerUpsert) UpdateBillingAddressCity() *CustomerUpsert
- func (u *CustomerUpsert) UpdateBillingAddressCountry() *CustomerUpsert
- func (u *CustomerUpsert) UpdateBillingAddressLine1() *CustomerUpsert
- func (u *CustomerUpsert) UpdateBillingAddressLine2() *CustomerUpsert
- func (u *CustomerUpsert) UpdateBillingAddressPhoneNumber() *CustomerUpsert
- func (u *CustomerUpsert) UpdateBillingAddressPostalCode() *CustomerUpsert
- func (u *CustomerUpsert) UpdateBillingAddressState() *CustomerUpsert
- func (u *CustomerUpsert) UpdateCurrency() *CustomerUpsert
- func (u *CustomerUpsert) UpdateDeletedAt() *CustomerUpsert
- func (u *CustomerUpsert) UpdateExternalMappingStripeCustomerID() *CustomerUpsert
- func (u *CustomerUpsert) UpdateMetadata() *CustomerUpsert
- func (u *CustomerUpsert) UpdateName() *CustomerUpsert
- func (u *CustomerUpsert) UpdatePrimaryEmail() *CustomerUpsert
- func (u *CustomerUpsert) UpdateTimezone() *CustomerUpsert
- func (u *CustomerUpsert) UpdateUpdatedAt() *CustomerUpsert
- type CustomerUpsertBulk
- func (u *CustomerUpsertBulk) ClearBillingAddressCity() *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) ClearBillingAddressCountry() *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) ClearBillingAddressLine1() *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) ClearBillingAddressLine2() *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) ClearBillingAddressPhoneNumber() *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) ClearBillingAddressPostalCode() *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) ClearBillingAddressState() *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) ClearCurrency() *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) ClearDeletedAt() *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) ClearExternalMappingStripeCustomerID() *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) ClearMetadata() *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) ClearPrimaryEmail() *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) ClearTimezone() *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) DoNothing() *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) Exec(ctx context.Context) error
- func (u *CustomerUpsertBulk) ExecX(ctx context.Context)
- func (u *CustomerUpsertBulk) Ignore() *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) SetBillingAddressCity(v string) *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) SetBillingAddressCountry(v models.CountryCode) *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) SetBillingAddressLine1(v string) *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) SetBillingAddressLine2(v string) *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) SetBillingAddressPhoneNumber(v string) *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) SetBillingAddressPostalCode(v string) *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) SetBillingAddressState(v string) *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) SetCurrency(v currencyx.Code) *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) SetDeletedAt(v time.Time) *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) SetExternalMappingStripeCustomerID(v string) *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) SetMetadata(v map[string]string) *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) SetName(v string) *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) SetPrimaryEmail(v string) *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) SetTimezone(v timezone.Timezone) *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) SetUpdatedAt(v time.Time) *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) Update(set func(*CustomerUpsert)) *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) UpdateBillingAddressCity() *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) UpdateBillingAddressCountry() *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) UpdateBillingAddressLine1() *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) UpdateBillingAddressLine2() *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) UpdateBillingAddressPhoneNumber() *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) UpdateBillingAddressPostalCode() *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) UpdateBillingAddressState() *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) UpdateCurrency() *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) UpdateDeletedAt() *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) UpdateExternalMappingStripeCustomerID() *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) UpdateMetadata() *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) UpdateName() *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) UpdateNewValues() *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) UpdatePrimaryEmail() *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) UpdateTimezone() *CustomerUpsertBulk
- func (u *CustomerUpsertBulk) UpdateUpdatedAt() *CustomerUpsertBulk
- type CustomerUpsertOne
- func (u *CustomerUpsertOne) ClearBillingAddressCity() *CustomerUpsertOne
- func (u *CustomerUpsertOne) ClearBillingAddressCountry() *CustomerUpsertOne
- func (u *CustomerUpsertOne) ClearBillingAddressLine1() *CustomerUpsertOne
- func (u *CustomerUpsertOne) ClearBillingAddressLine2() *CustomerUpsertOne
- func (u *CustomerUpsertOne) ClearBillingAddressPhoneNumber() *CustomerUpsertOne
- func (u *CustomerUpsertOne) ClearBillingAddressPostalCode() *CustomerUpsertOne
- func (u *CustomerUpsertOne) ClearBillingAddressState() *CustomerUpsertOne
- func (u *CustomerUpsertOne) ClearCurrency() *CustomerUpsertOne
- func (u *CustomerUpsertOne) ClearDeletedAt() *CustomerUpsertOne
- func (u *CustomerUpsertOne) ClearExternalMappingStripeCustomerID() *CustomerUpsertOne
- func (u *CustomerUpsertOne) ClearMetadata() *CustomerUpsertOne
- func (u *CustomerUpsertOne) ClearPrimaryEmail() *CustomerUpsertOne
- func (u *CustomerUpsertOne) ClearTimezone() *CustomerUpsertOne
- func (u *CustomerUpsertOne) DoNothing() *CustomerUpsertOne
- func (u *CustomerUpsertOne) Exec(ctx context.Context) error
- func (u *CustomerUpsertOne) ExecX(ctx context.Context)
- func (u *CustomerUpsertOne) ID(ctx context.Context) (id string, err error)
- func (u *CustomerUpsertOne) IDX(ctx context.Context) string
- func (u *CustomerUpsertOne) Ignore() *CustomerUpsertOne
- func (u *CustomerUpsertOne) SetBillingAddressCity(v string) *CustomerUpsertOne
- func (u *CustomerUpsertOne) SetBillingAddressCountry(v models.CountryCode) *CustomerUpsertOne
- func (u *CustomerUpsertOne) SetBillingAddressLine1(v string) *CustomerUpsertOne
- func (u *CustomerUpsertOne) SetBillingAddressLine2(v string) *CustomerUpsertOne
- func (u *CustomerUpsertOne) SetBillingAddressPhoneNumber(v string) *CustomerUpsertOne
- func (u *CustomerUpsertOne) SetBillingAddressPostalCode(v string) *CustomerUpsertOne
- func (u *CustomerUpsertOne) SetBillingAddressState(v string) *CustomerUpsertOne
- func (u *CustomerUpsertOne) SetCurrency(v currencyx.Code) *CustomerUpsertOne
- func (u *CustomerUpsertOne) SetDeletedAt(v time.Time) *CustomerUpsertOne
- func (u *CustomerUpsertOne) SetExternalMappingStripeCustomerID(v string) *CustomerUpsertOne
- func (u *CustomerUpsertOne) SetMetadata(v map[string]string) *CustomerUpsertOne
- func (u *CustomerUpsertOne) SetName(v string) *CustomerUpsertOne
- func (u *CustomerUpsertOne) SetPrimaryEmail(v string) *CustomerUpsertOne
- func (u *CustomerUpsertOne) SetTimezone(v timezone.Timezone) *CustomerUpsertOne
- func (u *CustomerUpsertOne) SetUpdatedAt(v time.Time) *CustomerUpsertOne
- func (u *CustomerUpsertOne) Update(set func(*CustomerUpsert)) *CustomerUpsertOne
- func (u *CustomerUpsertOne) UpdateBillingAddressCity() *CustomerUpsertOne
- func (u *CustomerUpsertOne) UpdateBillingAddressCountry() *CustomerUpsertOne
- func (u *CustomerUpsertOne) UpdateBillingAddressLine1() *CustomerUpsertOne
- func (u *CustomerUpsertOne) UpdateBillingAddressLine2() *CustomerUpsertOne
- func (u *CustomerUpsertOne) UpdateBillingAddressPhoneNumber() *CustomerUpsertOne
- func (u *CustomerUpsertOne) UpdateBillingAddressPostalCode() *CustomerUpsertOne
- func (u *CustomerUpsertOne) UpdateBillingAddressState() *CustomerUpsertOne
- func (u *CustomerUpsertOne) UpdateCurrency() *CustomerUpsertOne
- func (u *CustomerUpsertOne) UpdateDeletedAt() *CustomerUpsertOne
- func (u *CustomerUpsertOne) UpdateExternalMappingStripeCustomerID() *CustomerUpsertOne
- func (u *CustomerUpsertOne) UpdateMetadata() *CustomerUpsertOne
- func (u *CustomerUpsertOne) UpdateName() *CustomerUpsertOne
- func (u *CustomerUpsertOne) UpdateNewValues() *CustomerUpsertOne
- func (u *CustomerUpsertOne) UpdatePrimaryEmail() *CustomerUpsertOne
- func (u *CustomerUpsertOne) UpdateTimezone() *CustomerUpsertOne
- func (u *CustomerUpsertOne) UpdateUpdatedAt() *CustomerUpsertOne
- type Customers
- type Entitlement
- func (c *Entitlement) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (e *Entitlement) QueryBalanceSnapshot() *BalanceSnapshotQuery
- func (c *Entitlement) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (e *Entitlement) QueryFeature() *FeatureQuery
- func (e *Entitlement) QueryGrant() *GrantQuery
- func (e *Entitlement) QueryUsageReset() *UsageResetQuery
- func (e *Entitlement) String() string
- func (e *Entitlement) Unwrap() *Entitlement
- func (e *Entitlement) Update() *EntitlementUpdateOne
- func (e *Entitlement) Value(name string) (ent.Value, error)
- type EntitlementClient
- func (c *EntitlementClient) Create() *EntitlementCreate
- func (c *EntitlementClient) CreateBulk(builders ...*EntitlementCreate) *EntitlementCreateBulk
- func (c *EntitlementClient) Delete() *EntitlementDelete
- func (c *EntitlementClient) DeleteOne(e *Entitlement) *EntitlementDeleteOne
- func (c *EntitlementClient) DeleteOneID(id string) *EntitlementDeleteOne
- func (c *EntitlementClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *EntitlementClient) Get(ctx context.Context, id string) (*Entitlement, error)
- func (c *EntitlementClient) GetX(ctx context.Context, id string) *Entitlement
- func (c *EntitlementClient) Hooks() []Hook
- func (c *EntitlementClient) Intercept(interceptors ...Interceptor)
- func (c *EntitlementClient) Interceptors() []Interceptor
- func (c *EntitlementClient) MapCreateBulk(slice any, setFunc func(*EntitlementCreate, int)) *EntitlementCreateBulk
- func (c *EntitlementClient) Query() *EntitlementQuery
- func (c *EntitlementClient) QueryBalanceSnapshot(e *Entitlement) *BalanceSnapshotQuery
- func (c *EntitlementClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *EntitlementClient) QueryFeature(e *Entitlement) *FeatureQuery
- func (c *EntitlementClient) QueryGrant(e *Entitlement) *GrantQuery
- func (c *EntitlementClient) QueryUsageReset(e *Entitlement) *UsageResetQuery
- func (c *EntitlementClient) Update() *EntitlementUpdate
- func (c *EntitlementClient) UpdateOne(e *Entitlement) *EntitlementUpdateOne
- func (c *EntitlementClient) UpdateOneID(id string) *EntitlementUpdateOne
- func (c *EntitlementClient) Use(hooks ...Hook)
- type EntitlementCreate
- func (ec *EntitlementCreate) AddBalanceSnapshot(b ...*BalanceSnapshot) *EntitlementCreate
- func (ec *EntitlementCreate) AddBalanceSnapshotIDs(ids ...int) *EntitlementCreate
- func (ec *EntitlementCreate) AddGrant(g ...*Grant) *EntitlementCreate
- func (ec *EntitlementCreate) AddGrantIDs(ids ...string) *EntitlementCreate
- func (ec *EntitlementCreate) AddUsageReset(u ...*UsageReset) *EntitlementCreate
- func (ec *EntitlementCreate) AddUsageResetIDs(ids ...string) *EntitlementCreate
- func (ec *EntitlementCreate) Exec(ctx context.Context) error
- func (c *EntitlementCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ec *EntitlementCreate) ExecX(ctx context.Context)
- func (ec *EntitlementCreate) Mutation() *EntitlementMutation
- func (ec *EntitlementCreate) OnConflict(opts ...sql.ConflictOption) *EntitlementUpsertOne
- func (ec *EntitlementCreate) OnConflictColumns(columns ...string) *EntitlementUpsertOne
- func (c *EntitlementCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ec *EntitlementCreate) Save(ctx context.Context) (*Entitlement, error)
- func (ec *EntitlementCreate) SaveX(ctx context.Context) *Entitlement
- func (ec *EntitlementCreate) SetConfig(u []uint8) *EntitlementCreate
- func (ec *EntitlementCreate) SetCreatedAt(t time.Time) *EntitlementCreate
- func (ec *EntitlementCreate) SetCurrentUsagePeriodEnd(t time.Time) *EntitlementCreate
- func (ec *EntitlementCreate) SetCurrentUsagePeriodStart(t time.Time) *EntitlementCreate
- func (ec *EntitlementCreate) SetDeletedAt(t time.Time) *EntitlementCreate
- func (ec *EntitlementCreate) SetEntitlementType(et entitlement.EntitlementType) *EntitlementCreate
- func (ec *EntitlementCreate) SetFeature(f *Feature) *EntitlementCreate
- func (ec *EntitlementCreate) SetFeatureID(s string) *EntitlementCreate
- func (ec *EntitlementCreate) SetFeatureKey(s string) *EntitlementCreate
- func (ec *EntitlementCreate) SetID(s string) *EntitlementCreate
- func (ec *EntitlementCreate) SetIsSoftLimit(b bool) *EntitlementCreate
- func (ec *EntitlementCreate) SetIssueAfterReset(f float64) *EntitlementCreate
- func (ec *EntitlementCreate) SetIssueAfterResetPriority(u uint8) *EntitlementCreate
- func (ec *EntitlementCreate) SetMeasureUsageFrom(t time.Time) *EntitlementCreate
- func (ec *EntitlementCreate) SetMetadata(m map[string]string) *EntitlementCreate
- func (ec *EntitlementCreate) SetNamespace(s string) *EntitlementCreate
- func (ec *EntitlementCreate) SetNillableCreatedAt(t *time.Time) *EntitlementCreate
- func (ec *EntitlementCreate) SetNillableCurrentUsagePeriodEnd(t *time.Time) *EntitlementCreate
- func (ec *EntitlementCreate) SetNillableCurrentUsagePeriodStart(t *time.Time) *EntitlementCreate
- func (ec *EntitlementCreate) SetNillableDeletedAt(t *time.Time) *EntitlementCreate
- func (ec *EntitlementCreate) SetNillableID(s *string) *EntitlementCreate
- func (ec *EntitlementCreate) SetNillableIsSoftLimit(b *bool) *EntitlementCreate
- func (ec *EntitlementCreate) SetNillableIssueAfterReset(f *float64) *EntitlementCreate
- func (ec *EntitlementCreate) SetNillableIssueAfterResetPriority(u *uint8) *EntitlementCreate
- func (ec *EntitlementCreate) SetNillableMeasureUsageFrom(t *time.Time) *EntitlementCreate
- func (ec *EntitlementCreate) SetNillablePreserveOverageAtReset(b *bool) *EntitlementCreate
- func (ec *EntitlementCreate) SetNillableUpdatedAt(t *time.Time) *EntitlementCreate
- func (ec *EntitlementCreate) SetNillableUsagePeriodAnchor(t *time.Time) *EntitlementCreate
- func (ec *EntitlementCreate) SetNillableUsagePeriodInterval(epi *entitlement.UsagePeriodInterval) *EntitlementCreate
- func (ec *EntitlementCreate) SetPreserveOverageAtReset(b bool) *EntitlementCreate
- func (ec *EntitlementCreate) SetSubjectKey(s string) *EntitlementCreate
- func (ec *EntitlementCreate) SetUpdatedAt(t time.Time) *EntitlementCreate
- func (ec *EntitlementCreate) SetUsagePeriodAnchor(t time.Time) *EntitlementCreate
- func (ec *EntitlementCreate) SetUsagePeriodInterval(epi entitlement.UsagePeriodInterval) *EntitlementCreate
- type EntitlementCreateBulk
- func (ecb *EntitlementCreateBulk) Exec(ctx context.Context) error
- func (c *EntitlementCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ecb *EntitlementCreateBulk) ExecX(ctx context.Context)
- func (ecb *EntitlementCreateBulk) OnConflict(opts ...sql.ConflictOption) *EntitlementUpsertBulk
- func (ecb *EntitlementCreateBulk) OnConflictColumns(columns ...string) *EntitlementUpsertBulk
- func (c *EntitlementCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ecb *EntitlementCreateBulk) Save(ctx context.Context) ([]*Entitlement, error)
- func (ecb *EntitlementCreateBulk) SaveX(ctx context.Context) []*Entitlement
- type EntitlementDelete
- func (ed *EntitlementDelete) Exec(ctx context.Context) (int, error)
- func (c *EntitlementDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ed *EntitlementDelete) ExecX(ctx context.Context) int
- func (c *EntitlementDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ed *EntitlementDelete) Where(ps ...predicate.Entitlement) *EntitlementDelete
- type EntitlementDeleteOne
- type EntitlementEdges
- type EntitlementGroupBy
- func (egb *EntitlementGroupBy) Aggregate(fns ...AggregateFunc) *EntitlementGroupBy
- func (s *EntitlementGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *EntitlementGroupBy) BoolX(ctx context.Context) bool
- func (s *EntitlementGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *EntitlementGroupBy) BoolsX(ctx context.Context) []bool
- func (s *EntitlementGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *EntitlementGroupBy) Float64X(ctx context.Context) float64
- func (s *EntitlementGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *EntitlementGroupBy) Float64sX(ctx context.Context) []float64
- func (s *EntitlementGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *EntitlementGroupBy) IntX(ctx context.Context) int
- func (s *EntitlementGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *EntitlementGroupBy) IntsX(ctx context.Context) []int
- func (egb *EntitlementGroupBy) Scan(ctx context.Context, v any) error
- func (s *EntitlementGroupBy) ScanX(ctx context.Context, v any)
- func (s *EntitlementGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *EntitlementGroupBy) StringX(ctx context.Context) string
- func (s *EntitlementGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *EntitlementGroupBy) StringsX(ctx context.Context) []string
- type EntitlementMutation
- func (m *EntitlementMutation) AddBalanceSnapshotIDs(ids ...int)
- func (m *EntitlementMutation) AddField(name string, value ent.Value) error
- func (m *EntitlementMutation) AddGrantIDs(ids ...string)
- func (m *EntitlementMutation) AddIssueAfterReset(f float64)
- func (m *EntitlementMutation) AddIssueAfterResetPriority(u int8)
- func (m *EntitlementMutation) AddUsageResetIDs(ids ...string)
- func (m *EntitlementMutation) AddedEdges() []string
- func (m *EntitlementMutation) AddedField(name string) (ent.Value, bool)
- func (m *EntitlementMutation) AddedFields() []string
- func (m *EntitlementMutation) AddedIDs(name string) []ent.Value
- func (m *EntitlementMutation) AddedIssueAfterReset() (r float64, exists bool)
- func (m *EntitlementMutation) AddedIssueAfterResetPriority() (r int8, exists bool)
- func (m *EntitlementMutation) AppendConfig(u []uint8)
- func (m *EntitlementMutation) AppendedConfig() ([]uint8, bool)
- func (m *EntitlementMutation) BalanceSnapshotCleared() bool
- func (m *EntitlementMutation) BalanceSnapshotIDs() (ids []int)
- func (m *EntitlementMutation) ClearBalanceSnapshot()
- func (m *EntitlementMutation) ClearConfig()
- func (m *EntitlementMutation) ClearCurrentUsagePeriodEnd()
- func (m *EntitlementMutation) ClearCurrentUsagePeriodStart()
- func (m *EntitlementMutation) ClearDeletedAt()
- func (m *EntitlementMutation) ClearEdge(name string) error
- func (m *EntitlementMutation) ClearFeature()
- func (m *EntitlementMutation) ClearField(name string) error
- func (m *EntitlementMutation) ClearGrant()
- func (m *EntitlementMutation) ClearIsSoftLimit()
- func (m *EntitlementMutation) ClearIssueAfterReset()
- func (m *EntitlementMutation) ClearIssueAfterResetPriority()
- func (m *EntitlementMutation) ClearMeasureUsageFrom()
- func (m *EntitlementMutation) ClearMetadata()
- func (m *EntitlementMutation) ClearPreserveOverageAtReset()
- func (m *EntitlementMutation) ClearUsagePeriodAnchor()
- func (m *EntitlementMutation) ClearUsagePeriodInterval()
- func (m *EntitlementMutation) ClearUsageReset()
- func (m *EntitlementMutation) ClearedEdges() []string
- func (m *EntitlementMutation) ClearedFields() []string
- func (m EntitlementMutation) Client() *Client
- func (m *EntitlementMutation) Config() (r []uint8, exists bool)
- func (m *EntitlementMutation) ConfigCleared() bool
- func (m *EntitlementMutation) CreatedAt() (r time.Time, exists bool)
- func (m *EntitlementMutation) CurrentUsagePeriodEnd() (r time.Time, exists bool)
- func (m *EntitlementMutation) CurrentUsagePeriodEndCleared() bool
- func (m *EntitlementMutation) CurrentUsagePeriodStart() (r time.Time, exists bool)
- func (m *EntitlementMutation) CurrentUsagePeriodStartCleared() bool
- func (m *EntitlementMutation) DeletedAt() (r time.Time, exists bool)
- func (m *EntitlementMutation) DeletedAtCleared() bool
- func (m *EntitlementMutation) EdgeCleared(name string) bool
- func (m *EntitlementMutation) EntitlementType() (r entitlement.EntitlementType, exists bool)
- func (c *EntitlementMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *EntitlementMutation) FeatureCleared() bool
- func (m *EntitlementMutation) FeatureID() (r string, exists bool)
- func (m *EntitlementMutation) FeatureIDs() (ids []string)
- func (m *EntitlementMutation) FeatureKey() (r string, exists bool)
- func (m *EntitlementMutation) Field(name string) (ent.Value, bool)
- func (m *EntitlementMutation) FieldCleared(name string) bool
- func (m *EntitlementMutation) Fields() []string
- func (m *EntitlementMutation) GrantCleared() bool
- func (m *EntitlementMutation) GrantIDs() (ids []string)
- func (m *EntitlementMutation) ID() (id string, exists bool)
- func (m *EntitlementMutation) IDs(ctx context.Context) ([]string, error)
- func (m *EntitlementMutation) IsSoftLimit() (r bool, exists bool)
- func (m *EntitlementMutation) IsSoftLimitCleared() bool
- func (m *EntitlementMutation) IssueAfterReset() (r float64, exists bool)
- func (m *EntitlementMutation) IssueAfterResetCleared() bool
- func (m *EntitlementMutation) IssueAfterResetPriority() (r uint8, exists bool)
- func (m *EntitlementMutation) IssueAfterResetPriorityCleared() bool
- func (m *EntitlementMutation) MeasureUsageFrom() (r time.Time, exists bool)
- func (m *EntitlementMutation) MeasureUsageFromCleared() bool
- func (m *EntitlementMutation) Metadata() (r map[string]string, exists bool)
- func (m *EntitlementMutation) MetadataCleared() bool
- func (m *EntitlementMutation) Namespace() (r string, exists bool)
- func (m *EntitlementMutation) OldConfig(ctx context.Context) (v []uint8, err error)
- func (m *EntitlementMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *EntitlementMutation) OldCurrentUsagePeriodEnd(ctx context.Context) (v *time.Time, err error)
- func (m *EntitlementMutation) OldCurrentUsagePeriodStart(ctx context.Context) (v *time.Time, err error)
- func (m *EntitlementMutation) OldDeletedAt(ctx context.Context) (v *time.Time, err error)
- func (m *EntitlementMutation) OldEntitlementType(ctx context.Context) (v entitlement.EntitlementType, err error)
- func (m *EntitlementMutation) OldFeatureID(ctx context.Context) (v string, err error)
- func (m *EntitlementMutation) OldFeatureKey(ctx context.Context) (v string, err error)
- func (m *EntitlementMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *EntitlementMutation) OldIsSoftLimit(ctx context.Context) (v *bool, err error)
- func (m *EntitlementMutation) OldIssueAfterReset(ctx context.Context) (v *float64, err error)
- func (m *EntitlementMutation) OldIssueAfterResetPriority(ctx context.Context) (v *uint8, err error)
- func (m *EntitlementMutation) OldMeasureUsageFrom(ctx context.Context) (v *time.Time, err error)
- func (m *EntitlementMutation) OldMetadata(ctx context.Context) (v map[string]string, err error)
- func (m *EntitlementMutation) OldNamespace(ctx context.Context) (v string, err error)
- func (m *EntitlementMutation) OldPreserveOverageAtReset(ctx context.Context) (v *bool, err error)
- func (m *EntitlementMutation) OldSubjectKey(ctx context.Context) (v string, err error)
- func (m *EntitlementMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *EntitlementMutation) OldUsagePeriodAnchor(ctx context.Context) (v *time.Time, err error)
- func (m *EntitlementMutation) OldUsagePeriodInterval(ctx context.Context) (v *entitlement.UsagePeriodInterval, err error)
- func (m *EntitlementMutation) Op() Op
- func (m *EntitlementMutation) PreserveOverageAtReset() (r bool, exists bool)
- func (m *EntitlementMutation) PreserveOverageAtResetCleared() bool
- func (c *EntitlementMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *EntitlementMutation) RemoveBalanceSnapshotIDs(ids ...int)
- func (m *EntitlementMutation) RemoveGrantIDs(ids ...string)
- func (m *EntitlementMutation) RemoveUsageResetIDs(ids ...string)
- func (m *EntitlementMutation) RemovedBalanceSnapshotIDs() (ids []int)
- func (m *EntitlementMutation) RemovedEdges() []string
- func (m *EntitlementMutation) RemovedGrantIDs() (ids []string)
- func (m *EntitlementMutation) RemovedIDs(name string) []ent.Value
- func (m *EntitlementMutation) RemovedUsageResetIDs() (ids []string)
- func (m *EntitlementMutation) ResetBalanceSnapshot()
- func (m *EntitlementMutation) ResetConfig()
- func (m *EntitlementMutation) ResetCreatedAt()
- func (m *EntitlementMutation) ResetCurrentUsagePeriodEnd()
- func (m *EntitlementMutation) ResetCurrentUsagePeriodStart()
- func (m *EntitlementMutation) ResetDeletedAt()
- func (m *EntitlementMutation) ResetEdge(name string) error
- func (m *EntitlementMutation) ResetEntitlementType()
- func (m *EntitlementMutation) ResetFeature()
- func (m *EntitlementMutation) ResetFeatureID()
- func (m *EntitlementMutation) ResetFeatureKey()
- func (m *EntitlementMutation) ResetField(name string) error
- func (m *EntitlementMutation) ResetGrant()
- func (m *EntitlementMutation) ResetIsSoftLimit()
- func (m *EntitlementMutation) ResetIssueAfterReset()
- func (m *EntitlementMutation) ResetIssueAfterResetPriority()
- func (m *EntitlementMutation) ResetMeasureUsageFrom()
- func (m *EntitlementMutation) ResetMetadata()
- func (m *EntitlementMutation) ResetNamespace()
- func (m *EntitlementMutation) ResetPreserveOverageAtReset()
- func (m *EntitlementMutation) ResetSubjectKey()
- func (m *EntitlementMutation) ResetUpdatedAt()
- func (m *EntitlementMutation) ResetUsagePeriodAnchor()
- func (m *EntitlementMutation) ResetUsagePeriodInterval()
- func (m *EntitlementMutation) ResetUsageReset()
- func (m *EntitlementMutation) SetConfig(u []uint8)
- func (m *EntitlementMutation) SetCreatedAt(t time.Time)
- func (m *EntitlementMutation) SetCurrentUsagePeriodEnd(t time.Time)
- func (m *EntitlementMutation) SetCurrentUsagePeriodStart(t time.Time)
- func (m *EntitlementMutation) SetDeletedAt(t time.Time)
- func (m *EntitlementMutation) SetEntitlementType(et entitlement.EntitlementType)
- func (m *EntitlementMutation) SetFeatureID(s string)
- func (m *EntitlementMutation) SetFeatureKey(s string)
- func (m *EntitlementMutation) SetField(name string, value ent.Value) error
- func (m *EntitlementMutation) SetID(id string)
- func (m *EntitlementMutation) SetIsSoftLimit(b bool)
- func (m *EntitlementMutation) SetIssueAfterReset(f float64)
- func (m *EntitlementMutation) SetIssueAfterResetPriority(u uint8)
- func (m *EntitlementMutation) SetMeasureUsageFrom(t time.Time)
- func (m *EntitlementMutation) SetMetadata(value map[string]string)
- func (m *EntitlementMutation) SetNamespace(s string)
- func (m *EntitlementMutation) SetOp(op Op)
- func (m *EntitlementMutation) SetPreserveOverageAtReset(b bool)
- func (m *EntitlementMutation) SetSubjectKey(s string)
- func (m *EntitlementMutation) SetUpdatedAt(t time.Time)
- func (m *EntitlementMutation) SetUsagePeriodAnchor(t time.Time)
- func (m *EntitlementMutation) SetUsagePeriodInterval(epi entitlement.UsagePeriodInterval)
- func (m *EntitlementMutation) SubjectKey() (r string, exists bool)
- func (m EntitlementMutation) Tx() (*Tx, error)
- func (m *EntitlementMutation) Type() string
- func (m *EntitlementMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *EntitlementMutation) UsagePeriodAnchor() (r time.Time, exists bool)
- func (m *EntitlementMutation) UsagePeriodAnchorCleared() bool
- func (m *EntitlementMutation) UsagePeriodInterval() (r entitlement.UsagePeriodInterval, exists bool)
- func (m *EntitlementMutation) UsagePeriodIntervalCleared() bool
- func (m *EntitlementMutation) UsageResetCleared() bool
- func (m *EntitlementMutation) UsageResetIDs() (ids []string)
- func (m *EntitlementMutation) Where(ps ...predicate.Entitlement)
- func (m *EntitlementMutation) WhereP(ps ...func(*sql.Selector))
- type EntitlementQuery
- func (eq *EntitlementQuery) Aggregate(fns ...AggregateFunc) *EntitlementSelect
- func (eq *EntitlementQuery) All(ctx context.Context) ([]*Entitlement, error)
- func (eq *EntitlementQuery) AllX(ctx context.Context) []*Entitlement
- func (eq *EntitlementQuery) Clone() *EntitlementQuery
- func (eq *EntitlementQuery) Count(ctx context.Context) (int, error)
- func (eq *EntitlementQuery) CountX(ctx context.Context) int
- func (c *EntitlementQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (eq *EntitlementQuery) Exist(ctx context.Context) (bool, error)
- func (eq *EntitlementQuery) ExistX(ctx context.Context) bool
- func (eq *EntitlementQuery) First(ctx context.Context) (*Entitlement, error)
- func (eq *EntitlementQuery) FirstID(ctx context.Context) (id string, err error)
- func (eq *EntitlementQuery) FirstIDX(ctx context.Context) string
- func (eq *EntitlementQuery) FirstX(ctx context.Context) *Entitlement
- func (eq *EntitlementQuery) ForShare(opts ...sql.LockOption) *EntitlementQuery
- func (eq *EntitlementQuery) ForUpdate(opts ...sql.LockOption) *EntitlementQuery
- func (eq *EntitlementQuery) GroupBy(field string, fields ...string) *EntitlementGroupBy
- func (eq *EntitlementQuery) IDs(ctx context.Context) (ids []string, err error)
- func (eq *EntitlementQuery) IDsX(ctx context.Context) []string
- func (eq *EntitlementQuery) Limit(limit int) *EntitlementQuery
- func (eq *EntitlementQuery) Offset(offset int) *EntitlementQuery
- func (eq *EntitlementQuery) Only(ctx context.Context) (*Entitlement, error)
- func (eq *EntitlementQuery) OnlyID(ctx context.Context) (id string, err error)
- func (eq *EntitlementQuery) OnlyIDX(ctx context.Context) string
- func (eq *EntitlementQuery) OnlyX(ctx context.Context) *Entitlement
- func (eq *EntitlementQuery) Order(o ...entitlement.OrderOption) *EntitlementQuery
- func (e *EntitlementQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*Entitlement], error)
- func (eq *EntitlementQuery) QueryBalanceSnapshot() *BalanceSnapshotQuery
- func (c *EntitlementQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (eq *EntitlementQuery) QueryFeature() *FeatureQuery
- func (eq *EntitlementQuery) QueryGrant() *GrantQuery
- func (eq *EntitlementQuery) QueryUsageReset() *UsageResetQuery
- func (eq *EntitlementQuery) Select(fields ...string) *EntitlementSelect
- func (eq *EntitlementQuery) Unique(unique bool) *EntitlementQuery
- func (eq *EntitlementQuery) Where(ps ...predicate.Entitlement) *EntitlementQuery
- func (eq *EntitlementQuery) WithBalanceSnapshot(opts ...func(*BalanceSnapshotQuery)) *EntitlementQuery
- func (eq *EntitlementQuery) WithFeature(opts ...func(*FeatureQuery)) *EntitlementQuery
- func (eq *EntitlementQuery) WithGrant(opts ...func(*GrantQuery)) *EntitlementQuery
- func (eq *EntitlementQuery) WithUsageReset(opts ...func(*UsageResetQuery)) *EntitlementQuery
- type EntitlementSelect
- func (es *EntitlementSelect) Aggregate(fns ...AggregateFunc) *EntitlementSelect
- func (s *EntitlementSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *EntitlementSelect) BoolX(ctx context.Context) bool
- func (s *EntitlementSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *EntitlementSelect) BoolsX(ctx context.Context) []bool
- func (c EntitlementSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *EntitlementSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *EntitlementSelect) Float64X(ctx context.Context) float64
- func (s *EntitlementSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *EntitlementSelect) Float64sX(ctx context.Context) []float64
- func (s *EntitlementSelect) Int(ctx context.Context) (_ int, err error)
- func (s *EntitlementSelect) IntX(ctx context.Context) int
- func (s *EntitlementSelect) Ints(ctx context.Context) ([]int, error)
- func (s *EntitlementSelect) IntsX(ctx context.Context) []int
- func (c EntitlementSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (es *EntitlementSelect) Scan(ctx context.Context, v any) error
- func (s *EntitlementSelect) ScanX(ctx context.Context, v any)
- func (s *EntitlementSelect) String(ctx context.Context) (_ string, err error)
- func (s *EntitlementSelect) StringX(ctx context.Context) string
- func (s *EntitlementSelect) Strings(ctx context.Context) ([]string, error)
- func (s *EntitlementSelect) StringsX(ctx context.Context) []string
- type EntitlementUpdate
- func (eu *EntitlementUpdate) AddBalanceSnapshot(b ...*BalanceSnapshot) *EntitlementUpdate
- func (eu *EntitlementUpdate) AddBalanceSnapshotIDs(ids ...int) *EntitlementUpdate
- func (eu *EntitlementUpdate) AddGrant(g ...*Grant) *EntitlementUpdate
- func (eu *EntitlementUpdate) AddGrantIDs(ids ...string) *EntitlementUpdate
- func (eu *EntitlementUpdate) AddUsageReset(u ...*UsageReset) *EntitlementUpdate
- func (eu *EntitlementUpdate) AddUsageResetIDs(ids ...string) *EntitlementUpdate
- func (eu *EntitlementUpdate) AppendConfig(u []uint8) *EntitlementUpdate
- func (eu *EntitlementUpdate) ClearBalanceSnapshot() *EntitlementUpdate
- func (eu *EntitlementUpdate) ClearConfig() *EntitlementUpdate
- func (eu *EntitlementUpdate) ClearCurrentUsagePeriodEnd() *EntitlementUpdate
- func (eu *EntitlementUpdate) ClearCurrentUsagePeriodStart() *EntitlementUpdate
- func (eu *EntitlementUpdate) ClearDeletedAt() *EntitlementUpdate
- func (eu *EntitlementUpdate) ClearGrant() *EntitlementUpdate
- func (eu *EntitlementUpdate) ClearMetadata() *EntitlementUpdate
- func (eu *EntitlementUpdate) ClearUsagePeriodAnchor() *EntitlementUpdate
- func (eu *EntitlementUpdate) ClearUsageReset() *EntitlementUpdate
- func (eu *EntitlementUpdate) Exec(ctx context.Context) error
- func (c *EntitlementUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (eu *EntitlementUpdate) ExecX(ctx context.Context)
- func (eu *EntitlementUpdate) Mutation() *EntitlementMutation
- func (c *EntitlementUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (eu *EntitlementUpdate) RemoveBalanceSnapshot(b ...*BalanceSnapshot) *EntitlementUpdate
- func (eu *EntitlementUpdate) RemoveBalanceSnapshotIDs(ids ...int) *EntitlementUpdate
- func (eu *EntitlementUpdate) RemoveGrant(g ...*Grant) *EntitlementUpdate
- func (eu *EntitlementUpdate) RemoveGrantIDs(ids ...string) *EntitlementUpdate
- func (eu *EntitlementUpdate) RemoveUsageReset(u ...*UsageReset) *EntitlementUpdate
- func (eu *EntitlementUpdate) RemoveUsageResetIDs(ids ...string) *EntitlementUpdate
- func (eu *EntitlementUpdate) Save(ctx context.Context) (int, error)
- func (eu *EntitlementUpdate) SaveX(ctx context.Context) int
- func (eu *EntitlementUpdate) SetConfig(u []uint8) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetCurrentUsagePeriodEnd(t time.Time) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetCurrentUsagePeriodStart(t time.Time) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetDeletedAt(t time.Time) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetMetadata(m map[string]string) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetNillableCurrentUsagePeriodEnd(t *time.Time) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetNillableCurrentUsagePeriodStart(t *time.Time) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetNillableDeletedAt(t *time.Time) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetNillableUsagePeriodAnchor(t *time.Time) *EntitlementUpdate
- func (u *EntitlementUpdate) SetOrClearConfig(value *[]uint8) *EntitlementUpdate
- func (u *EntitlementUpdate) SetOrClearCurrentUsagePeriodEnd(value *time.Time) *EntitlementUpdate
- func (u *EntitlementUpdate) SetOrClearCurrentUsagePeriodStart(value *time.Time) *EntitlementUpdate
- func (u *EntitlementUpdate) SetOrClearDeletedAt(value *time.Time) *EntitlementUpdate
- func (u *EntitlementUpdate) SetOrClearMetadata(value *map[string]string) *EntitlementUpdate
- func (u *EntitlementUpdate) SetOrClearUsagePeriodAnchor(value *time.Time) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetUpdatedAt(t time.Time) *EntitlementUpdate
- func (eu *EntitlementUpdate) SetUsagePeriodAnchor(t time.Time) *EntitlementUpdate
- func (eu *EntitlementUpdate) Where(ps ...predicate.Entitlement) *EntitlementUpdate
- type EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) AddBalanceSnapshot(b ...*BalanceSnapshot) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) AddBalanceSnapshotIDs(ids ...int) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) AddGrant(g ...*Grant) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) AddGrantIDs(ids ...string) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) AddUsageReset(u ...*UsageReset) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) AddUsageResetIDs(ids ...string) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) AppendConfig(u []uint8) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) ClearBalanceSnapshot() *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) ClearConfig() *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) ClearCurrentUsagePeriodEnd() *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) ClearCurrentUsagePeriodStart() *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) ClearDeletedAt() *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) ClearGrant() *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) ClearMetadata() *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) ClearUsagePeriodAnchor() *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) ClearUsageReset() *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) Exec(ctx context.Context) error
- func (c *EntitlementUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (euo *EntitlementUpdateOne) ExecX(ctx context.Context)
- func (euo *EntitlementUpdateOne) Mutation() *EntitlementMutation
- func (c *EntitlementUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (euo *EntitlementUpdateOne) RemoveBalanceSnapshot(b ...*BalanceSnapshot) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) RemoveBalanceSnapshotIDs(ids ...int) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) RemoveGrant(g ...*Grant) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) RemoveGrantIDs(ids ...string) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) RemoveUsageReset(u ...*UsageReset) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) RemoveUsageResetIDs(ids ...string) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) Save(ctx context.Context) (*Entitlement, error)
- func (euo *EntitlementUpdateOne) SaveX(ctx context.Context) *Entitlement
- func (euo *EntitlementUpdateOne) Select(field string, fields ...string) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetConfig(u []uint8) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetCurrentUsagePeriodEnd(t time.Time) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetCurrentUsagePeriodStart(t time.Time) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetDeletedAt(t time.Time) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetMetadata(m map[string]string) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetNillableCurrentUsagePeriodEnd(t *time.Time) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetNillableCurrentUsagePeriodStart(t *time.Time) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetNillableDeletedAt(t *time.Time) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetNillableUsagePeriodAnchor(t *time.Time) *EntitlementUpdateOne
- func (u *EntitlementUpdateOne) SetOrClearConfig(value *[]uint8) *EntitlementUpdateOne
- func (u *EntitlementUpdateOne) SetOrClearCurrentUsagePeriodEnd(value *time.Time) *EntitlementUpdateOne
- func (u *EntitlementUpdateOne) SetOrClearCurrentUsagePeriodStart(value *time.Time) *EntitlementUpdateOne
- func (u *EntitlementUpdateOne) SetOrClearDeletedAt(value *time.Time) *EntitlementUpdateOne
- func (u *EntitlementUpdateOne) SetOrClearMetadata(value *map[string]string) *EntitlementUpdateOne
- func (u *EntitlementUpdateOne) SetOrClearUsagePeriodAnchor(value *time.Time) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetUpdatedAt(t time.Time) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) SetUsagePeriodAnchor(t time.Time) *EntitlementUpdateOne
- func (euo *EntitlementUpdateOne) Where(ps ...predicate.Entitlement) *EntitlementUpdateOne
- type EntitlementUpsert
- func (u *EntitlementUpsert) ClearConfig() *EntitlementUpsert
- func (u *EntitlementUpsert) ClearCurrentUsagePeriodEnd() *EntitlementUpsert
- func (u *EntitlementUpsert) ClearCurrentUsagePeriodStart() *EntitlementUpsert
- func (u *EntitlementUpsert) ClearDeletedAt() *EntitlementUpsert
- func (u *EntitlementUpsert) ClearMetadata() *EntitlementUpsert
- func (u *EntitlementUpsert) ClearUsagePeriodAnchor() *EntitlementUpsert
- func (u *EntitlementUpsert) SetConfig(v []uint8) *EntitlementUpsert
- func (u *EntitlementUpsert) SetCurrentUsagePeriodEnd(v time.Time) *EntitlementUpsert
- func (u *EntitlementUpsert) SetCurrentUsagePeriodStart(v time.Time) *EntitlementUpsert
- func (u *EntitlementUpsert) SetDeletedAt(v time.Time) *EntitlementUpsert
- func (u *EntitlementUpsert) SetMetadata(v map[string]string) *EntitlementUpsert
- func (u *EntitlementUpsert) SetUpdatedAt(v time.Time) *EntitlementUpsert
- func (u *EntitlementUpsert) SetUsagePeriodAnchor(v time.Time) *EntitlementUpsert
- func (u *EntitlementUpsert) UpdateConfig() *EntitlementUpsert
- func (u *EntitlementUpsert) UpdateCurrentUsagePeriodEnd() *EntitlementUpsert
- func (u *EntitlementUpsert) UpdateCurrentUsagePeriodStart() *EntitlementUpsert
- func (u *EntitlementUpsert) UpdateDeletedAt() *EntitlementUpsert
- func (u *EntitlementUpsert) UpdateMetadata() *EntitlementUpsert
- func (u *EntitlementUpsert) UpdateUpdatedAt() *EntitlementUpsert
- func (u *EntitlementUpsert) UpdateUsagePeriodAnchor() *EntitlementUpsert
- type EntitlementUpsertBulk
- func (u *EntitlementUpsertBulk) ClearConfig() *EntitlementUpsertBulk
- func (u *EntitlementUpsertBulk) ClearCurrentUsagePeriodEnd() *EntitlementUpsertBulk
- func (u *EntitlementUpsertBulk) ClearCurrentUsagePeriodStart() *EntitlementUpsertBulk
- func (u *EntitlementUpsertBulk) ClearDeletedAt() *EntitlementUpsertBulk
- func (u *EntitlementUpsertBulk) ClearMetadata() *EntitlementUpsertBulk
- func (u *EntitlementUpsertBulk) ClearUsagePeriodAnchor() *EntitlementUpsertBulk
- func (u *EntitlementUpsertBulk) DoNothing() *EntitlementUpsertBulk
- func (u *EntitlementUpsertBulk) Exec(ctx context.Context) error
- func (u *EntitlementUpsertBulk) ExecX(ctx context.Context)
- func (u *EntitlementUpsertBulk) Ignore() *EntitlementUpsertBulk
- func (u *EntitlementUpsertBulk) SetConfig(v []uint8) *EntitlementUpsertBulk
- func (u *EntitlementUpsertBulk) SetCurrentUsagePeriodEnd(v time.Time) *EntitlementUpsertBulk
- func (u *EntitlementUpsertBulk) SetCurrentUsagePeriodStart(v time.Time) *EntitlementUpsertBulk
- func (u *EntitlementUpsertBulk) SetDeletedAt(v time.Time) *EntitlementUpsertBulk
- func (u *EntitlementUpsertBulk) SetMetadata(v map[string]string) *EntitlementUpsertBulk
- func (u *EntitlementUpsertBulk) SetUpdatedAt(v time.Time) *EntitlementUpsertBulk
- func (u *EntitlementUpsertBulk) SetUsagePeriodAnchor(v time.Time) *EntitlementUpsertBulk
- func (u *EntitlementUpsertBulk) Update(set func(*EntitlementUpsert)) *EntitlementUpsertBulk
- func (u *EntitlementUpsertBulk) UpdateConfig() *EntitlementUpsertBulk
- func (u *EntitlementUpsertBulk) UpdateCurrentUsagePeriodEnd() *EntitlementUpsertBulk
- func (u *EntitlementUpsertBulk) UpdateCurrentUsagePeriodStart() *EntitlementUpsertBulk
- func (u *EntitlementUpsertBulk) UpdateDeletedAt() *EntitlementUpsertBulk
- func (u *EntitlementUpsertBulk) UpdateMetadata() *EntitlementUpsertBulk
- func (u *EntitlementUpsertBulk) UpdateNewValues() *EntitlementUpsertBulk
- func (u *EntitlementUpsertBulk) UpdateUpdatedAt() *EntitlementUpsertBulk
- func (u *EntitlementUpsertBulk) UpdateUsagePeriodAnchor() *EntitlementUpsertBulk
- type EntitlementUpsertOne
- func (u *EntitlementUpsertOne) ClearConfig() *EntitlementUpsertOne
- func (u *EntitlementUpsertOne) ClearCurrentUsagePeriodEnd() *EntitlementUpsertOne
- func (u *EntitlementUpsertOne) ClearCurrentUsagePeriodStart() *EntitlementUpsertOne
- func (u *EntitlementUpsertOne) ClearDeletedAt() *EntitlementUpsertOne
- func (u *EntitlementUpsertOne) ClearMetadata() *EntitlementUpsertOne
- func (u *EntitlementUpsertOne) ClearUsagePeriodAnchor() *EntitlementUpsertOne
- func (u *EntitlementUpsertOne) DoNothing() *EntitlementUpsertOne
- func (u *EntitlementUpsertOne) Exec(ctx context.Context) error
- func (u *EntitlementUpsertOne) ExecX(ctx context.Context)
- func (u *EntitlementUpsertOne) ID(ctx context.Context) (id string, err error)
- func (u *EntitlementUpsertOne) IDX(ctx context.Context) string
- func (u *EntitlementUpsertOne) Ignore() *EntitlementUpsertOne
- func (u *EntitlementUpsertOne) SetConfig(v []uint8) *EntitlementUpsertOne
- func (u *EntitlementUpsertOne) SetCurrentUsagePeriodEnd(v time.Time) *EntitlementUpsertOne
- func (u *EntitlementUpsertOne) SetCurrentUsagePeriodStart(v time.Time) *EntitlementUpsertOne
- func (u *EntitlementUpsertOne) SetDeletedAt(v time.Time) *EntitlementUpsertOne
- func (u *EntitlementUpsertOne) SetMetadata(v map[string]string) *EntitlementUpsertOne
- func (u *EntitlementUpsertOne) SetUpdatedAt(v time.Time) *EntitlementUpsertOne
- func (u *EntitlementUpsertOne) SetUsagePeriodAnchor(v time.Time) *EntitlementUpsertOne
- func (u *EntitlementUpsertOne) Update(set func(*EntitlementUpsert)) *EntitlementUpsertOne
- func (u *EntitlementUpsertOne) UpdateConfig() *EntitlementUpsertOne
- func (u *EntitlementUpsertOne) UpdateCurrentUsagePeriodEnd() *EntitlementUpsertOne
- func (u *EntitlementUpsertOne) UpdateCurrentUsagePeriodStart() *EntitlementUpsertOne
- func (u *EntitlementUpsertOne) UpdateDeletedAt() *EntitlementUpsertOne
- func (u *EntitlementUpsertOne) UpdateMetadata() *EntitlementUpsertOne
- func (u *EntitlementUpsertOne) UpdateNewValues() *EntitlementUpsertOne
- func (u *EntitlementUpsertOne) UpdateUpdatedAt() *EntitlementUpsertOne
- func (u *EntitlementUpsertOne) UpdateUsagePeriodAnchor() *EntitlementUpsertOne
- type Entitlements
- type ExposedTxDriver
- type Feature
- func (c *Feature) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *Feature) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (f *Feature) QueryEntitlement() *EntitlementQuery
- func (f *Feature) String() string
- func (f *Feature) Unwrap() *Feature
- func (f *Feature) Update() *FeatureUpdateOne
- func (f *Feature) Value(name string) (ent.Value, error)
- type FeatureClient
- func (c *FeatureClient) Create() *FeatureCreate
- func (c *FeatureClient) CreateBulk(builders ...*FeatureCreate) *FeatureCreateBulk
- func (c *FeatureClient) Delete() *FeatureDelete
- func (c *FeatureClient) DeleteOne(f *Feature) *FeatureDeleteOne
- func (c *FeatureClient) DeleteOneID(id string) *FeatureDeleteOne
- func (c *FeatureClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *FeatureClient) Get(ctx context.Context, id string) (*Feature, error)
- func (c *FeatureClient) GetX(ctx context.Context, id string) *Feature
- func (c *FeatureClient) Hooks() []Hook
- func (c *FeatureClient) Intercept(interceptors ...Interceptor)
- func (c *FeatureClient) Interceptors() []Interceptor
- func (c *FeatureClient) MapCreateBulk(slice any, setFunc func(*FeatureCreate, int)) *FeatureCreateBulk
- func (c *FeatureClient) Query() *FeatureQuery
- func (c *FeatureClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *FeatureClient) QueryEntitlement(f *Feature) *EntitlementQuery
- func (c *FeatureClient) Update() *FeatureUpdate
- func (c *FeatureClient) UpdateOne(f *Feature) *FeatureUpdateOne
- func (c *FeatureClient) UpdateOneID(id string) *FeatureUpdateOne
- func (c *FeatureClient) Use(hooks ...Hook)
- type FeatureCreate
- func (fc *FeatureCreate) AddEntitlement(e ...*Entitlement) *FeatureCreate
- func (fc *FeatureCreate) AddEntitlementIDs(ids ...string) *FeatureCreate
- func (fc *FeatureCreate) Exec(ctx context.Context) error
- func (c *FeatureCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (fc *FeatureCreate) ExecX(ctx context.Context)
- func (fc *FeatureCreate) Mutation() *FeatureMutation
- func (fc *FeatureCreate) OnConflict(opts ...sql.ConflictOption) *FeatureUpsertOne
- func (fc *FeatureCreate) OnConflictColumns(columns ...string) *FeatureUpsertOne
- func (c *FeatureCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (fc *FeatureCreate) Save(ctx context.Context) (*Feature, error)
- func (fc *FeatureCreate) SaveX(ctx context.Context) *Feature
- func (fc *FeatureCreate) SetArchivedAt(t time.Time) *FeatureCreate
- func (fc *FeatureCreate) SetCreatedAt(t time.Time) *FeatureCreate
- func (fc *FeatureCreate) SetDeletedAt(t time.Time) *FeatureCreate
- func (fc *FeatureCreate) SetID(s string) *FeatureCreate
- func (fc *FeatureCreate) SetKey(s string) *FeatureCreate
- func (fc *FeatureCreate) SetMetadata(m map[string]string) *FeatureCreate
- func (fc *FeatureCreate) SetMeterGroupByFilters(m map[string]string) *FeatureCreate
- func (fc *FeatureCreate) SetMeterSlug(s string) *FeatureCreate
- func (fc *FeatureCreate) SetName(s string) *FeatureCreate
- func (fc *FeatureCreate) SetNamespace(s string) *FeatureCreate
- func (fc *FeatureCreate) SetNillableArchivedAt(t *time.Time) *FeatureCreate
- func (fc *FeatureCreate) SetNillableCreatedAt(t *time.Time) *FeatureCreate
- func (fc *FeatureCreate) SetNillableDeletedAt(t *time.Time) *FeatureCreate
- func (fc *FeatureCreate) SetNillableID(s *string) *FeatureCreate
- func (fc *FeatureCreate) SetNillableMeterSlug(s *string) *FeatureCreate
- func (fc *FeatureCreate) SetNillableUpdatedAt(t *time.Time) *FeatureCreate
- func (fc *FeatureCreate) SetUpdatedAt(t time.Time) *FeatureCreate
- type FeatureCreateBulk
- func (fcb *FeatureCreateBulk) Exec(ctx context.Context) error
- func (c *FeatureCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (fcb *FeatureCreateBulk) ExecX(ctx context.Context)
- func (fcb *FeatureCreateBulk) OnConflict(opts ...sql.ConflictOption) *FeatureUpsertBulk
- func (fcb *FeatureCreateBulk) OnConflictColumns(columns ...string) *FeatureUpsertBulk
- func (c *FeatureCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (fcb *FeatureCreateBulk) Save(ctx context.Context) ([]*Feature, error)
- func (fcb *FeatureCreateBulk) SaveX(ctx context.Context) []*Feature
- type FeatureDelete
- func (fd *FeatureDelete) Exec(ctx context.Context) (int, error)
- func (c *FeatureDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (fd *FeatureDelete) ExecX(ctx context.Context) int
- func (c *FeatureDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (fd *FeatureDelete) Where(ps ...predicate.Feature) *FeatureDelete
- type FeatureDeleteOne
- type FeatureEdges
- type FeatureGroupBy
- func (fgb *FeatureGroupBy) Aggregate(fns ...AggregateFunc) *FeatureGroupBy
- func (s *FeatureGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *FeatureGroupBy) BoolX(ctx context.Context) bool
- func (s *FeatureGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *FeatureGroupBy) BoolsX(ctx context.Context) []bool
- func (s *FeatureGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *FeatureGroupBy) Float64X(ctx context.Context) float64
- func (s *FeatureGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *FeatureGroupBy) Float64sX(ctx context.Context) []float64
- func (s *FeatureGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *FeatureGroupBy) IntX(ctx context.Context) int
- func (s *FeatureGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *FeatureGroupBy) IntsX(ctx context.Context) []int
- func (fgb *FeatureGroupBy) Scan(ctx context.Context, v any) error
- func (s *FeatureGroupBy) ScanX(ctx context.Context, v any)
- func (s *FeatureGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *FeatureGroupBy) StringX(ctx context.Context) string
- func (s *FeatureGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *FeatureGroupBy) StringsX(ctx context.Context) []string
- type FeatureMutation
- func (m *FeatureMutation) AddEntitlementIDs(ids ...string)
- func (m *FeatureMutation) AddField(name string, value ent.Value) error
- func (m *FeatureMutation) AddedEdges() []string
- func (m *FeatureMutation) AddedField(name string) (ent.Value, bool)
- func (m *FeatureMutation) AddedFields() []string
- func (m *FeatureMutation) AddedIDs(name string) []ent.Value
- func (m *FeatureMutation) ArchivedAt() (r time.Time, exists bool)
- func (m *FeatureMutation) ArchivedAtCleared() bool
- func (m *FeatureMutation) ClearArchivedAt()
- func (m *FeatureMutation) ClearDeletedAt()
- func (m *FeatureMutation) ClearEdge(name string) error
- func (m *FeatureMutation) ClearEntitlement()
- func (m *FeatureMutation) ClearField(name string) error
- func (m *FeatureMutation) ClearMetadata()
- func (m *FeatureMutation) ClearMeterGroupByFilters()
- func (m *FeatureMutation) ClearMeterSlug()
- func (m *FeatureMutation) ClearedEdges() []string
- func (m *FeatureMutation) ClearedFields() []string
- func (m FeatureMutation) Client() *Client
- func (m *FeatureMutation) CreatedAt() (r time.Time, exists bool)
- func (m *FeatureMutation) DeletedAt() (r time.Time, exists bool)
- func (m *FeatureMutation) DeletedAtCleared() bool
- func (m *FeatureMutation) EdgeCleared(name string) bool
- func (m *FeatureMutation) EntitlementCleared() bool
- func (m *FeatureMutation) EntitlementIDs() (ids []string)
- func (c *FeatureMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *FeatureMutation) Field(name string) (ent.Value, bool)
- func (m *FeatureMutation) FieldCleared(name string) bool
- func (m *FeatureMutation) Fields() []string
- func (m *FeatureMutation) ID() (id string, exists bool)
- func (m *FeatureMutation) IDs(ctx context.Context) ([]string, error)
- func (m *FeatureMutation) Key() (r string, exists bool)
- func (m *FeatureMutation) Metadata() (r map[string]string, exists bool)
- func (m *FeatureMutation) MetadataCleared() bool
- func (m *FeatureMutation) MeterGroupByFilters() (r map[string]string, exists bool)
- func (m *FeatureMutation) MeterGroupByFiltersCleared() bool
- func (m *FeatureMutation) MeterSlug() (r string, exists bool)
- func (m *FeatureMutation) MeterSlugCleared() bool
- func (m *FeatureMutation) Name() (r string, exists bool)
- func (m *FeatureMutation) Namespace() (r string, exists bool)
- func (m *FeatureMutation) OldArchivedAt(ctx context.Context) (v *time.Time, err error)
- func (m *FeatureMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *FeatureMutation) OldDeletedAt(ctx context.Context) (v *time.Time, err error)
- func (m *FeatureMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *FeatureMutation) OldKey(ctx context.Context) (v string, err error)
- func (m *FeatureMutation) OldMetadata(ctx context.Context) (v map[string]string, err error)
- func (m *FeatureMutation) OldMeterGroupByFilters(ctx context.Context) (v map[string]string, err error)
- func (m *FeatureMutation) OldMeterSlug(ctx context.Context) (v *string, err error)
- func (m *FeatureMutation) OldName(ctx context.Context) (v string, err error)
- func (m *FeatureMutation) OldNamespace(ctx context.Context) (v string, err error)
- func (m *FeatureMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *FeatureMutation) Op() Op
- func (c *FeatureMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *FeatureMutation) RemoveEntitlementIDs(ids ...string)
- func (m *FeatureMutation) RemovedEdges() []string
- func (m *FeatureMutation) RemovedEntitlementIDs() (ids []string)
- func (m *FeatureMutation) RemovedIDs(name string) []ent.Value
- func (m *FeatureMutation) ResetArchivedAt()
- func (m *FeatureMutation) ResetCreatedAt()
- func (m *FeatureMutation) ResetDeletedAt()
- func (m *FeatureMutation) ResetEdge(name string) error
- func (m *FeatureMutation) ResetEntitlement()
- func (m *FeatureMutation) ResetField(name string) error
- func (m *FeatureMutation) ResetKey()
- func (m *FeatureMutation) ResetMetadata()
- func (m *FeatureMutation) ResetMeterGroupByFilters()
- func (m *FeatureMutation) ResetMeterSlug()
- func (m *FeatureMutation) ResetName()
- func (m *FeatureMutation) ResetNamespace()
- func (m *FeatureMutation) ResetUpdatedAt()
- func (m *FeatureMutation) SetArchivedAt(t time.Time)
- func (m *FeatureMutation) SetCreatedAt(t time.Time)
- func (m *FeatureMutation) SetDeletedAt(t time.Time)
- func (m *FeatureMutation) SetField(name string, value ent.Value) error
- func (m *FeatureMutation) SetID(id string)
- func (m *FeatureMutation) SetKey(s string)
- func (m *FeatureMutation) SetMetadata(value map[string]string)
- func (m *FeatureMutation) SetMeterGroupByFilters(value map[string]string)
- func (m *FeatureMutation) SetMeterSlug(s string)
- func (m *FeatureMutation) SetName(s string)
- func (m *FeatureMutation) SetNamespace(s string)
- func (m *FeatureMutation) SetOp(op Op)
- func (m *FeatureMutation) SetUpdatedAt(t time.Time)
- func (m FeatureMutation) Tx() (*Tx, error)
- func (m *FeatureMutation) Type() string
- func (m *FeatureMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *FeatureMutation) Where(ps ...predicate.Feature)
- func (m *FeatureMutation) WhereP(ps ...func(*sql.Selector))
- type FeatureQuery
- func (fq *FeatureQuery) Aggregate(fns ...AggregateFunc) *FeatureSelect
- func (fq *FeatureQuery) All(ctx context.Context) ([]*Feature, error)
- func (fq *FeatureQuery) AllX(ctx context.Context) []*Feature
- func (fq *FeatureQuery) Clone() *FeatureQuery
- func (fq *FeatureQuery) Count(ctx context.Context) (int, error)
- func (fq *FeatureQuery) CountX(ctx context.Context) int
- func (c *FeatureQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (fq *FeatureQuery) Exist(ctx context.Context) (bool, error)
- func (fq *FeatureQuery) ExistX(ctx context.Context) bool
- func (fq *FeatureQuery) First(ctx context.Context) (*Feature, error)
- func (fq *FeatureQuery) FirstID(ctx context.Context) (id string, err error)
- func (fq *FeatureQuery) FirstIDX(ctx context.Context) string
- func (fq *FeatureQuery) FirstX(ctx context.Context) *Feature
- func (fq *FeatureQuery) ForShare(opts ...sql.LockOption) *FeatureQuery
- func (fq *FeatureQuery) ForUpdate(opts ...sql.LockOption) *FeatureQuery
- func (fq *FeatureQuery) GroupBy(field string, fields ...string) *FeatureGroupBy
- func (fq *FeatureQuery) IDs(ctx context.Context) (ids []string, err error)
- func (fq *FeatureQuery) IDsX(ctx context.Context) []string
- func (fq *FeatureQuery) Limit(limit int) *FeatureQuery
- func (fq *FeatureQuery) Offset(offset int) *FeatureQuery
- func (fq *FeatureQuery) Only(ctx context.Context) (*Feature, error)
- func (fq *FeatureQuery) OnlyID(ctx context.Context) (id string, err error)
- func (fq *FeatureQuery) OnlyIDX(ctx context.Context) string
- func (fq *FeatureQuery) OnlyX(ctx context.Context) *Feature
- func (fq *FeatureQuery) Order(o ...feature.OrderOption) *FeatureQuery
- func (f *FeatureQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*Feature], error)
- func (c *FeatureQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (fq *FeatureQuery) QueryEntitlement() *EntitlementQuery
- func (fq *FeatureQuery) Select(fields ...string) *FeatureSelect
- func (fq *FeatureQuery) Unique(unique bool) *FeatureQuery
- func (fq *FeatureQuery) Where(ps ...predicate.Feature) *FeatureQuery
- func (fq *FeatureQuery) WithEntitlement(opts ...func(*EntitlementQuery)) *FeatureQuery
- type FeatureSelect
- func (fs *FeatureSelect) Aggregate(fns ...AggregateFunc) *FeatureSelect
- func (s *FeatureSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *FeatureSelect) BoolX(ctx context.Context) bool
- func (s *FeatureSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *FeatureSelect) BoolsX(ctx context.Context) []bool
- func (c FeatureSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *FeatureSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *FeatureSelect) Float64X(ctx context.Context) float64
- func (s *FeatureSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *FeatureSelect) Float64sX(ctx context.Context) []float64
- func (s *FeatureSelect) Int(ctx context.Context) (_ int, err error)
- func (s *FeatureSelect) IntX(ctx context.Context) int
- func (s *FeatureSelect) Ints(ctx context.Context) ([]int, error)
- func (s *FeatureSelect) IntsX(ctx context.Context) []int
- func (c FeatureSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (fs *FeatureSelect) Scan(ctx context.Context, v any) error
- func (s *FeatureSelect) ScanX(ctx context.Context, v any)
- func (s *FeatureSelect) String(ctx context.Context) (_ string, err error)
- func (s *FeatureSelect) StringX(ctx context.Context) string
- func (s *FeatureSelect) Strings(ctx context.Context) ([]string, error)
- func (s *FeatureSelect) StringsX(ctx context.Context) []string
- type FeatureUpdate
- func (fu *FeatureUpdate) AddEntitlement(e ...*Entitlement) *FeatureUpdate
- func (fu *FeatureUpdate) AddEntitlementIDs(ids ...string) *FeatureUpdate
- func (fu *FeatureUpdate) ClearArchivedAt() *FeatureUpdate
- func (fu *FeatureUpdate) ClearDeletedAt() *FeatureUpdate
- func (fu *FeatureUpdate) ClearEntitlement() *FeatureUpdate
- func (fu *FeatureUpdate) ClearMetadata() *FeatureUpdate
- func (fu *FeatureUpdate) ClearMeterGroupByFilters() *FeatureUpdate
- func (fu *FeatureUpdate) Exec(ctx context.Context) error
- func (c *FeatureUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (fu *FeatureUpdate) ExecX(ctx context.Context)
- func (fu *FeatureUpdate) Mutation() *FeatureMutation
- func (c *FeatureUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (fu *FeatureUpdate) RemoveEntitlement(e ...*Entitlement) *FeatureUpdate
- func (fu *FeatureUpdate) RemoveEntitlementIDs(ids ...string) *FeatureUpdate
- func (fu *FeatureUpdate) Save(ctx context.Context) (int, error)
- func (fu *FeatureUpdate) SaveX(ctx context.Context) int
- func (fu *FeatureUpdate) SetArchivedAt(t time.Time) *FeatureUpdate
- func (fu *FeatureUpdate) SetDeletedAt(t time.Time) *FeatureUpdate
- func (fu *FeatureUpdate) SetMetadata(m map[string]string) *FeatureUpdate
- func (fu *FeatureUpdate) SetMeterGroupByFilters(m map[string]string) *FeatureUpdate
- func (fu *FeatureUpdate) SetName(s string) *FeatureUpdate
- func (fu *FeatureUpdate) SetNillableArchivedAt(t *time.Time) *FeatureUpdate
- func (fu *FeatureUpdate) SetNillableDeletedAt(t *time.Time) *FeatureUpdate
- func (fu *FeatureUpdate) SetNillableName(s *string) *FeatureUpdate
- func (u *FeatureUpdate) SetOrClearArchivedAt(value *time.Time) *FeatureUpdate
- func (u *FeatureUpdate) SetOrClearDeletedAt(value *time.Time) *FeatureUpdate
- func (u *FeatureUpdate) SetOrClearMetadata(value *map[string]string) *FeatureUpdate
- func (u *FeatureUpdate) SetOrClearMeterGroupByFilters(value *map[string]string) *FeatureUpdate
- func (fu *FeatureUpdate) SetUpdatedAt(t time.Time) *FeatureUpdate
- func (fu *FeatureUpdate) Where(ps ...predicate.Feature) *FeatureUpdate
- type FeatureUpdateOne
- func (fuo *FeatureUpdateOne) AddEntitlement(e ...*Entitlement) *FeatureUpdateOne
- func (fuo *FeatureUpdateOne) AddEntitlementIDs(ids ...string) *FeatureUpdateOne
- func (fuo *FeatureUpdateOne) ClearArchivedAt() *FeatureUpdateOne
- func (fuo *FeatureUpdateOne) ClearDeletedAt() *FeatureUpdateOne
- func (fuo *FeatureUpdateOne) ClearEntitlement() *FeatureUpdateOne
- func (fuo *FeatureUpdateOne) ClearMetadata() *FeatureUpdateOne
- func (fuo *FeatureUpdateOne) ClearMeterGroupByFilters() *FeatureUpdateOne
- func (fuo *FeatureUpdateOne) Exec(ctx context.Context) error
- func (c *FeatureUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (fuo *FeatureUpdateOne) ExecX(ctx context.Context)
- func (fuo *FeatureUpdateOne) Mutation() *FeatureMutation
- func (c *FeatureUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (fuo *FeatureUpdateOne) RemoveEntitlement(e ...*Entitlement) *FeatureUpdateOne
- func (fuo *FeatureUpdateOne) RemoveEntitlementIDs(ids ...string) *FeatureUpdateOne
- func (fuo *FeatureUpdateOne) Save(ctx context.Context) (*Feature, error)
- func (fuo *FeatureUpdateOne) SaveX(ctx context.Context) *Feature
- func (fuo *FeatureUpdateOne) Select(field string, fields ...string) *FeatureUpdateOne
- func (fuo *FeatureUpdateOne) SetArchivedAt(t time.Time) *FeatureUpdateOne
- func (fuo *FeatureUpdateOne) SetDeletedAt(t time.Time) *FeatureUpdateOne
- func (fuo *FeatureUpdateOne) SetMetadata(m map[string]string) *FeatureUpdateOne
- func (fuo *FeatureUpdateOne) SetMeterGroupByFilters(m map[string]string) *FeatureUpdateOne
- func (fuo *FeatureUpdateOne) SetName(s string) *FeatureUpdateOne
- func (fuo *FeatureUpdateOne) SetNillableArchivedAt(t *time.Time) *FeatureUpdateOne
- func (fuo *FeatureUpdateOne) SetNillableDeletedAt(t *time.Time) *FeatureUpdateOne
- func (fuo *FeatureUpdateOne) SetNillableName(s *string) *FeatureUpdateOne
- func (u *FeatureUpdateOne) SetOrClearArchivedAt(value *time.Time) *FeatureUpdateOne
- func (u *FeatureUpdateOne) SetOrClearDeletedAt(value *time.Time) *FeatureUpdateOne
- func (u *FeatureUpdateOne) SetOrClearMetadata(value *map[string]string) *FeatureUpdateOne
- func (u *FeatureUpdateOne) SetOrClearMeterGroupByFilters(value *map[string]string) *FeatureUpdateOne
- func (fuo *FeatureUpdateOne) SetUpdatedAt(t time.Time) *FeatureUpdateOne
- func (fuo *FeatureUpdateOne) Where(ps ...predicate.Feature) *FeatureUpdateOne
- type FeatureUpsert
- func (u *FeatureUpsert) ClearArchivedAt() *FeatureUpsert
- func (u *FeatureUpsert) ClearDeletedAt() *FeatureUpsert
- func (u *FeatureUpsert) ClearMetadata() *FeatureUpsert
- func (u *FeatureUpsert) ClearMeterGroupByFilters() *FeatureUpsert
- func (u *FeatureUpsert) SetArchivedAt(v time.Time) *FeatureUpsert
- func (u *FeatureUpsert) SetDeletedAt(v time.Time) *FeatureUpsert
- func (u *FeatureUpsert) SetMetadata(v map[string]string) *FeatureUpsert
- func (u *FeatureUpsert) SetMeterGroupByFilters(v map[string]string) *FeatureUpsert
- func (u *FeatureUpsert) SetName(v string) *FeatureUpsert
- func (u *FeatureUpsert) SetUpdatedAt(v time.Time) *FeatureUpsert
- func (u *FeatureUpsert) UpdateArchivedAt() *FeatureUpsert
- func (u *FeatureUpsert) UpdateDeletedAt() *FeatureUpsert
- func (u *FeatureUpsert) UpdateMetadata() *FeatureUpsert
- func (u *FeatureUpsert) UpdateMeterGroupByFilters() *FeatureUpsert
- func (u *FeatureUpsert) UpdateName() *FeatureUpsert
- func (u *FeatureUpsert) UpdateUpdatedAt() *FeatureUpsert
- type FeatureUpsertBulk
- func (u *FeatureUpsertBulk) ClearArchivedAt() *FeatureUpsertBulk
- func (u *FeatureUpsertBulk) ClearDeletedAt() *FeatureUpsertBulk
- func (u *FeatureUpsertBulk) ClearMetadata() *FeatureUpsertBulk
- func (u *FeatureUpsertBulk) ClearMeterGroupByFilters() *FeatureUpsertBulk
- func (u *FeatureUpsertBulk) DoNothing() *FeatureUpsertBulk
- func (u *FeatureUpsertBulk) Exec(ctx context.Context) error
- func (u *FeatureUpsertBulk) ExecX(ctx context.Context)
- func (u *FeatureUpsertBulk) Ignore() *FeatureUpsertBulk
- func (u *FeatureUpsertBulk) SetArchivedAt(v time.Time) *FeatureUpsertBulk
- func (u *FeatureUpsertBulk) SetDeletedAt(v time.Time) *FeatureUpsertBulk
- func (u *FeatureUpsertBulk) SetMetadata(v map[string]string) *FeatureUpsertBulk
- func (u *FeatureUpsertBulk) SetMeterGroupByFilters(v map[string]string) *FeatureUpsertBulk
- func (u *FeatureUpsertBulk) SetName(v string) *FeatureUpsertBulk
- func (u *FeatureUpsertBulk) SetUpdatedAt(v time.Time) *FeatureUpsertBulk
- func (u *FeatureUpsertBulk) Update(set func(*FeatureUpsert)) *FeatureUpsertBulk
- func (u *FeatureUpsertBulk) UpdateArchivedAt() *FeatureUpsertBulk
- func (u *FeatureUpsertBulk) UpdateDeletedAt() *FeatureUpsertBulk
- func (u *FeatureUpsertBulk) UpdateMetadata() *FeatureUpsertBulk
- func (u *FeatureUpsertBulk) UpdateMeterGroupByFilters() *FeatureUpsertBulk
- func (u *FeatureUpsertBulk) UpdateName() *FeatureUpsertBulk
- func (u *FeatureUpsertBulk) UpdateNewValues() *FeatureUpsertBulk
- func (u *FeatureUpsertBulk) UpdateUpdatedAt() *FeatureUpsertBulk
- type FeatureUpsertOne
- func (u *FeatureUpsertOne) ClearArchivedAt() *FeatureUpsertOne
- func (u *FeatureUpsertOne) ClearDeletedAt() *FeatureUpsertOne
- func (u *FeatureUpsertOne) ClearMetadata() *FeatureUpsertOne
- func (u *FeatureUpsertOne) ClearMeterGroupByFilters() *FeatureUpsertOne
- func (u *FeatureUpsertOne) DoNothing() *FeatureUpsertOne
- func (u *FeatureUpsertOne) Exec(ctx context.Context) error
- func (u *FeatureUpsertOne) ExecX(ctx context.Context)
- func (u *FeatureUpsertOne) ID(ctx context.Context) (id string, err error)
- func (u *FeatureUpsertOne) IDX(ctx context.Context) string
- func (u *FeatureUpsertOne) Ignore() *FeatureUpsertOne
- func (u *FeatureUpsertOne) SetArchivedAt(v time.Time) *FeatureUpsertOne
- func (u *FeatureUpsertOne) SetDeletedAt(v time.Time) *FeatureUpsertOne
- func (u *FeatureUpsertOne) SetMetadata(v map[string]string) *FeatureUpsertOne
- func (u *FeatureUpsertOne) SetMeterGroupByFilters(v map[string]string) *FeatureUpsertOne
- func (u *FeatureUpsertOne) SetName(v string) *FeatureUpsertOne
- func (u *FeatureUpsertOne) SetUpdatedAt(v time.Time) *FeatureUpsertOne
- func (u *FeatureUpsertOne) Update(set func(*FeatureUpsert)) *FeatureUpsertOne
- func (u *FeatureUpsertOne) UpdateArchivedAt() *FeatureUpsertOne
- func (u *FeatureUpsertOne) UpdateDeletedAt() *FeatureUpsertOne
- func (u *FeatureUpsertOne) UpdateMetadata() *FeatureUpsertOne
- func (u *FeatureUpsertOne) UpdateMeterGroupByFilters() *FeatureUpsertOne
- func (u *FeatureUpsertOne) UpdateName() *FeatureUpsertOne
- func (u *FeatureUpsertOne) UpdateNewValues() *FeatureUpsertOne
- func (u *FeatureUpsertOne) UpdateUpdatedAt() *FeatureUpsertOne
- type Features
- type Grant
- func (c *Grant) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *Grant) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (gr *Grant) QueryEntitlement() *EntitlementQuery
- func (gr *Grant) String() string
- func (gr *Grant) Unwrap() *Grant
- func (gr *Grant) Update() *GrantUpdateOne
- func (gr *Grant) Value(name string) (ent.Value, error)
- type GrantClient
- func (c *GrantClient) Create() *GrantCreate
- func (c *GrantClient) CreateBulk(builders ...*GrantCreate) *GrantCreateBulk
- func (c *GrantClient) Delete() *GrantDelete
- func (c *GrantClient) DeleteOne(gr *Grant) *GrantDeleteOne
- func (c *GrantClient) DeleteOneID(id string) *GrantDeleteOne
- func (c *GrantClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *GrantClient) Get(ctx context.Context, id string) (*Grant, error)
- func (c *GrantClient) GetX(ctx context.Context, id string) *Grant
- func (c *GrantClient) Hooks() []Hook
- func (c *GrantClient) Intercept(interceptors ...Interceptor)
- func (c *GrantClient) Interceptors() []Interceptor
- func (c *GrantClient) MapCreateBulk(slice any, setFunc func(*GrantCreate, int)) *GrantCreateBulk
- func (c *GrantClient) Query() *GrantQuery
- func (c *GrantClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *GrantClient) QueryEntitlement(gr *Grant) *EntitlementQuery
- func (c *GrantClient) Update() *GrantUpdate
- func (c *GrantClient) UpdateOne(gr *Grant) *GrantUpdateOne
- func (c *GrantClient) UpdateOneID(id string) *GrantUpdateOne
- func (c *GrantClient) Use(hooks ...Hook)
- type GrantCreate
- func (gc *GrantCreate) Exec(ctx context.Context) error
- func (c *GrantCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (gc *GrantCreate) ExecX(ctx context.Context)
- func (gc *GrantCreate) Mutation() *GrantMutation
- func (gc *GrantCreate) OnConflict(opts ...sql.ConflictOption) *GrantUpsertOne
- func (gc *GrantCreate) OnConflictColumns(columns ...string) *GrantUpsertOne
- func (c *GrantCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (gc *GrantCreate) Save(ctx context.Context) (*Grant, error)
- func (gc *GrantCreate) SaveX(ctx context.Context) *Grant
- func (gc *GrantCreate) SetAmount(f float64) *GrantCreate
- func (gc *GrantCreate) SetCreatedAt(t time.Time) *GrantCreate
- func (gc *GrantCreate) SetDeletedAt(t time.Time) *GrantCreate
- func (gc *GrantCreate) SetEffectiveAt(t time.Time) *GrantCreate
- func (gc *GrantCreate) SetEntitlement(e *Entitlement) *GrantCreate
- func (gc *GrantCreate) SetEntitlementID(id string) *GrantCreate
- func (gc *GrantCreate) SetExpiration(gp grant.ExpirationPeriod) *GrantCreate
- func (gc *GrantCreate) SetExpiresAt(t time.Time) *GrantCreate
- func (gc *GrantCreate) SetID(s string) *GrantCreate
- func (gc *GrantCreate) SetMetadata(m map[string]string) *GrantCreate
- func (gc *GrantCreate) SetNamespace(s string) *GrantCreate
- func (gc *GrantCreate) SetNillableCreatedAt(t *time.Time) *GrantCreate
- func (gc *GrantCreate) SetNillableDeletedAt(t *time.Time) *GrantCreate
- func (gc *GrantCreate) SetNillableID(s *string) *GrantCreate
- func (gc *GrantCreate) SetNillablePriority(u *uint8) *GrantCreate
- func (gc *GrantCreate) SetNillableRecurrenceAnchor(t *time.Time) *GrantCreate
- func (gc *GrantCreate) SetNillableRecurrencePeriod(ri *recurrence.RecurrenceInterval) *GrantCreate
- func (gc *GrantCreate) SetNillableUpdatedAt(t *time.Time) *GrantCreate
- func (gc *GrantCreate) SetNillableVoidedAt(t *time.Time) *GrantCreate
- func (gc *GrantCreate) SetOwnerID(s string) *GrantCreate
- func (gc *GrantCreate) SetPriority(u uint8) *GrantCreate
- func (gc *GrantCreate) SetRecurrenceAnchor(t time.Time) *GrantCreate
- func (gc *GrantCreate) SetRecurrencePeriod(ri recurrence.RecurrenceInterval) *GrantCreate
- func (gc *GrantCreate) SetResetMaxRollover(f float64) *GrantCreate
- func (gc *GrantCreate) SetResetMinRollover(f float64) *GrantCreate
- func (gc *GrantCreate) SetUpdatedAt(t time.Time) *GrantCreate
- func (gc *GrantCreate) SetVoidedAt(t time.Time) *GrantCreate
- type GrantCreateBulk
- func (gcb *GrantCreateBulk) Exec(ctx context.Context) error
- func (c *GrantCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (gcb *GrantCreateBulk) ExecX(ctx context.Context)
- func (gcb *GrantCreateBulk) OnConflict(opts ...sql.ConflictOption) *GrantUpsertBulk
- func (gcb *GrantCreateBulk) OnConflictColumns(columns ...string) *GrantUpsertBulk
- func (c *GrantCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (gcb *GrantCreateBulk) Save(ctx context.Context) ([]*Grant, error)
- func (gcb *GrantCreateBulk) SaveX(ctx context.Context) []*Grant
- type GrantDelete
- func (gd *GrantDelete) Exec(ctx context.Context) (int, error)
- func (c *GrantDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (gd *GrantDelete) ExecX(ctx context.Context) int
- func (c *GrantDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (gd *GrantDelete) Where(ps ...predicate.Grant) *GrantDelete
- type GrantDeleteOne
- type GrantEdges
- type GrantGroupBy
- func (ggb *GrantGroupBy) Aggregate(fns ...AggregateFunc) *GrantGroupBy
- func (s *GrantGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *GrantGroupBy) BoolX(ctx context.Context) bool
- func (s *GrantGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *GrantGroupBy) BoolsX(ctx context.Context) []bool
- func (s *GrantGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *GrantGroupBy) Float64X(ctx context.Context) float64
- func (s *GrantGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *GrantGroupBy) Float64sX(ctx context.Context) []float64
- func (s *GrantGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *GrantGroupBy) IntX(ctx context.Context) int
- func (s *GrantGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *GrantGroupBy) IntsX(ctx context.Context) []int
- func (ggb *GrantGroupBy) Scan(ctx context.Context, v any) error
- func (s *GrantGroupBy) ScanX(ctx context.Context, v any)
- func (s *GrantGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *GrantGroupBy) StringX(ctx context.Context) string
- func (s *GrantGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *GrantGroupBy) StringsX(ctx context.Context) []string
- type GrantMutation
- func (m *GrantMutation) AddAmount(f float64)
- func (m *GrantMutation) AddField(name string, value ent.Value) error
- func (m *GrantMutation) AddPriority(u int8)
- func (m *GrantMutation) AddResetMaxRollover(f float64)
- func (m *GrantMutation) AddResetMinRollover(f float64)
- func (m *GrantMutation) AddedAmount() (r float64, exists bool)
- func (m *GrantMutation) AddedEdges() []string
- func (m *GrantMutation) AddedField(name string) (ent.Value, bool)
- func (m *GrantMutation) AddedFields() []string
- func (m *GrantMutation) AddedIDs(name string) []ent.Value
- func (m *GrantMutation) AddedPriority() (r int8, exists bool)
- func (m *GrantMutation) AddedResetMaxRollover() (r float64, exists bool)
- func (m *GrantMutation) AddedResetMinRollover() (r float64, exists bool)
- func (m *GrantMutation) Amount() (r float64, exists bool)
- func (m *GrantMutation) ClearDeletedAt()
- func (m *GrantMutation) ClearEdge(name string) error
- func (m *GrantMutation) ClearEntitlement()
- func (m *GrantMutation) ClearField(name string) error
- func (m *GrantMutation) ClearMetadata()
- func (m *GrantMutation) ClearRecurrenceAnchor()
- func (m *GrantMutation) ClearRecurrencePeriod()
- func (m *GrantMutation) ClearVoidedAt()
- func (m *GrantMutation) ClearedEdges() []string
- func (m *GrantMutation) ClearedFields() []string
- func (m GrantMutation) Client() *Client
- func (m *GrantMutation) CreatedAt() (r time.Time, exists bool)
- func (m *GrantMutation) DeletedAt() (r time.Time, exists bool)
- func (m *GrantMutation) DeletedAtCleared() bool
- func (m *GrantMutation) EdgeCleared(name string) bool
- func (m *GrantMutation) EffectiveAt() (r time.Time, exists bool)
- func (m *GrantMutation) EntitlementCleared() bool
- func (m *GrantMutation) EntitlementID() (id string, exists bool)
- func (m *GrantMutation) EntitlementIDs() (ids []string)
- func (c *GrantMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *GrantMutation) Expiration() (r grant.ExpirationPeriod, exists bool)
- func (m *GrantMutation) ExpiresAt() (r time.Time, exists bool)
- func (m *GrantMutation) Field(name string) (ent.Value, bool)
- func (m *GrantMutation) FieldCleared(name string) bool
- func (m *GrantMutation) Fields() []string
- func (m *GrantMutation) ID() (id string, exists bool)
- func (m *GrantMutation) IDs(ctx context.Context) ([]string, error)
- func (m *GrantMutation) Metadata() (r map[string]string, exists bool)
- func (m *GrantMutation) MetadataCleared() bool
- func (m *GrantMutation) Namespace() (r string, exists bool)
- func (m *GrantMutation) OldAmount(ctx context.Context) (v float64, err error)
- func (m *GrantMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *GrantMutation) OldDeletedAt(ctx context.Context) (v *time.Time, err error)
- func (m *GrantMutation) OldEffectiveAt(ctx context.Context) (v time.Time, err error)
- func (m *GrantMutation) OldExpiration(ctx context.Context) (v grant.ExpirationPeriod, err error)
- func (m *GrantMutation) OldExpiresAt(ctx context.Context) (v time.Time, err error)
- func (m *GrantMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *GrantMutation) OldMetadata(ctx context.Context) (v map[string]string, err error)
- func (m *GrantMutation) OldNamespace(ctx context.Context) (v string, err error)
- func (m *GrantMutation) OldOwnerID(ctx context.Context) (v string, err error)
- func (m *GrantMutation) OldPriority(ctx context.Context) (v uint8, err error)
- func (m *GrantMutation) OldRecurrenceAnchor(ctx context.Context) (v *time.Time, err error)
- func (m *GrantMutation) OldRecurrencePeriod(ctx context.Context) (v *recurrence.RecurrenceInterval, err error)
- func (m *GrantMutation) OldResetMaxRollover(ctx context.Context) (v float64, err error)
- func (m *GrantMutation) OldResetMinRollover(ctx context.Context) (v float64, err error)
- func (m *GrantMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *GrantMutation) OldVoidedAt(ctx context.Context) (v *time.Time, err error)
- func (m *GrantMutation) Op() Op
- func (m *GrantMutation) OwnerID() (r string, exists bool)
- func (m *GrantMutation) Priority() (r uint8, exists bool)
- func (c *GrantMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *GrantMutation) RecurrenceAnchor() (r time.Time, exists bool)
- func (m *GrantMutation) RecurrenceAnchorCleared() bool
- func (m *GrantMutation) RecurrencePeriod() (r recurrence.RecurrenceInterval, exists bool)
- func (m *GrantMutation) RecurrencePeriodCleared() bool
- func (m *GrantMutation) RemovedEdges() []string
- func (m *GrantMutation) RemovedIDs(name string) []ent.Value
- func (m *GrantMutation) ResetAmount()
- func (m *GrantMutation) ResetCreatedAt()
- func (m *GrantMutation) ResetDeletedAt()
- func (m *GrantMutation) ResetEdge(name string) error
- func (m *GrantMutation) ResetEffectiveAt()
- func (m *GrantMutation) ResetEntitlement()
- func (m *GrantMutation) ResetExpiration()
- func (m *GrantMutation) ResetExpiresAt()
- func (m *GrantMutation) ResetField(name string) error
- func (m *GrantMutation) ResetMaxRollover() (r float64, exists bool)
- func (m *GrantMutation) ResetMetadata()
- func (m *GrantMutation) ResetMinRollover() (r float64, exists bool)
- func (m *GrantMutation) ResetNamespace()
- func (m *GrantMutation) ResetOwnerID()
- func (m *GrantMutation) ResetPriority()
- func (m *GrantMutation) ResetRecurrenceAnchor()
- func (m *GrantMutation) ResetRecurrencePeriod()
- func (m *GrantMutation) ResetResetMaxRollover()
- func (m *GrantMutation) ResetResetMinRollover()
- func (m *GrantMutation) ResetUpdatedAt()
- func (m *GrantMutation) ResetVoidedAt()
- func (m *GrantMutation) SetAmount(f float64)
- func (m *GrantMutation) SetCreatedAt(t time.Time)
- func (m *GrantMutation) SetDeletedAt(t time.Time)
- func (m *GrantMutation) SetEffectiveAt(t time.Time)
- func (m *GrantMutation) SetEntitlementID(id string)
- func (m *GrantMutation) SetExpiration(gp grant.ExpirationPeriod)
- func (m *GrantMutation) SetExpiresAt(t time.Time)
- func (m *GrantMutation) SetField(name string, value ent.Value) error
- func (m *GrantMutation) SetID(id string)
- func (m *GrantMutation) SetMetadata(value map[string]string)
- func (m *GrantMutation) SetNamespace(s string)
- func (m *GrantMutation) SetOp(op Op)
- func (m *GrantMutation) SetOwnerID(s string)
- func (m *GrantMutation) SetPriority(u uint8)
- func (m *GrantMutation) SetRecurrenceAnchor(t time.Time)
- func (m *GrantMutation) SetRecurrencePeriod(ri recurrence.RecurrenceInterval)
- func (m *GrantMutation) SetResetMaxRollover(f float64)
- func (m *GrantMutation) SetResetMinRollover(f float64)
- func (m *GrantMutation) SetUpdatedAt(t time.Time)
- func (m *GrantMutation) SetVoidedAt(t time.Time)
- func (m GrantMutation) Tx() (*Tx, error)
- func (m *GrantMutation) Type() string
- func (m *GrantMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *GrantMutation) VoidedAt() (r time.Time, exists bool)
- func (m *GrantMutation) VoidedAtCleared() bool
- func (m *GrantMutation) Where(ps ...predicate.Grant)
- func (m *GrantMutation) WhereP(ps ...func(*sql.Selector))
- type GrantQuery
- func (gq *GrantQuery) Aggregate(fns ...AggregateFunc) *GrantSelect
- func (gq *GrantQuery) All(ctx context.Context) ([]*Grant, error)
- func (gq *GrantQuery) AllX(ctx context.Context) []*Grant
- func (gq *GrantQuery) Clone() *GrantQuery
- func (gq *GrantQuery) Count(ctx context.Context) (int, error)
- func (gq *GrantQuery) CountX(ctx context.Context) int
- func (c *GrantQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (gq *GrantQuery) Exist(ctx context.Context) (bool, error)
- func (gq *GrantQuery) ExistX(ctx context.Context) bool
- func (gq *GrantQuery) First(ctx context.Context) (*Grant, error)
- func (gq *GrantQuery) FirstID(ctx context.Context) (id string, err error)
- func (gq *GrantQuery) FirstIDX(ctx context.Context) string
- func (gq *GrantQuery) FirstX(ctx context.Context) *Grant
- func (gq *GrantQuery) ForShare(opts ...sql.LockOption) *GrantQuery
- func (gq *GrantQuery) ForUpdate(opts ...sql.LockOption) *GrantQuery
- func (gq *GrantQuery) GroupBy(field string, fields ...string) *GrantGroupBy
- func (gq *GrantQuery) IDs(ctx context.Context) (ids []string, err error)
- func (gq *GrantQuery) IDsX(ctx context.Context) []string
- func (gq *GrantQuery) Limit(limit int) *GrantQuery
- func (gq *GrantQuery) Offset(offset int) *GrantQuery
- func (gq *GrantQuery) Only(ctx context.Context) (*Grant, error)
- func (gq *GrantQuery) OnlyID(ctx context.Context) (id string, err error)
- func (gq *GrantQuery) OnlyIDX(ctx context.Context) string
- func (gq *GrantQuery) OnlyX(ctx context.Context) *Grant
- func (gq *GrantQuery) Order(o ...dbgrant.OrderOption) *GrantQuery
- func (gr *GrantQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*Grant], error)
- func (c *GrantQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (gq *GrantQuery) QueryEntitlement() *EntitlementQuery
- func (gq *GrantQuery) Select(fields ...string) *GrantSelect
- func (gq *GrantQuery) Unique(unique bool) *GrantQuery
- func (gq *GrantQuery) Where(ps ...predicate.Grant) *GrantQuery
- func (gq *GrantQuery) WithEntitlement(opts ...func(*EntitlementQuery)) *GrantQuery
- type GrantSelect
- func (gs *GrantSelect) Aggregate(fns ...AggregateFunc) *GrantSelect
- func (s *GrantSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *GrantSelect) BoolX(ctx context.Context) bool
- func (s *GrantSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *GrantSelect) BoolsX(ctx context.Context) []bool
- func (c GrantSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *GrantSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *GrantSelect) Float64X(ctx context.Context) float64
- func (s *GrantSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *GrantSelect) Float64sX(ctx context.Context) []float64
- func (s *GrantSelect) Int(ctx context.Context) (_ int, err error)
- func (s *GrantSelect) IntX(ctx context.Context) int
- func (s *GrantSelect) Ints(ctx context.Context) ([]int, error)
- func (s *GrantSelect) IntsX(ctx context.Context) []int
- func (c GrantSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (gs *GrantSelect) Scan(ctx context.Context, v any) error
- func (s *GrantSelect) ScanX(ctx context.Context, v any)
- func (s *GrantSelect) String(ctx context.Context) (_ string, err error)
- func (s *GrantSelect) StringX(ctx context.Context) string
- func (s *GrantSelect) Strings(ctx context.Context) ([]string, error)
- func (s *GrantSelect) StringsX(ctx context.Context) []string
- type GrantUpdate
- func (gu *GrantUpdate) ClearDeletedAt() *GrantUpdate
- func (gu *GrantUpdate) ClearMetadata() *GrantUpdate
- func (gu *GrantUpdate) ClearVoidedAt() *GrantUpdate
- func (gu *GrantUpdate) Exec(ctx context.Context) error
- func (c *GrantUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (gu *GrantUpdate) ExecX(ctx context.Context)
- func (gu *GrantUpdate) Mutation() *GrantMutation
- func (c *GrantUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (gu *GrantUpdate) Save(ctx context.Context) (int, error)
- func (gu *GrantUpdate) SaveX(ctx context.Context) int
- func (gu *GrantUpdate) SetDeletedAt(t time.Time) *GrantUpdate
- func (gu *GrantUpdate) SetMetadata(m map[string]string) *GrantUpdate
- func (gu *GrantUpdate) SetNillableDeletedAt(t *time.Time) *GrantUpdate
- func (gu *GrantUpdate) SetNillableVoidedAt(t *time.Time) *GrantUpdate
- func (u *GrantUpdate) SetOrClearDeletedAt(value *time.Time) *GrantUpdate
- func (u *GrantUpdate) SetOrClearMetadata(value *map[string]string) *GrantUpdate
- func (u *GrantUpdate) SetOrClearVoidedAt(value *time.Time) *GrantUpdate
- func (gu *GrantUpdate) SetUpdatedAt(t time.Time) *GrantUpdate
- func (gu *GrantUpdate) SetVoidedAt(t time.Time) *GrantUpdate
- func (gu *GrantUpdate) Where(ps ...predicate.Grant) *GrantUpdate
- type GrantUpdateOne
- func (guo *GrantUpdateOne) ClearDeletedAt() *GrantUpdateOne
- func (guo *GrantUpdateOne) ClearMetadata() *GrantUpdateOne
- func (guo *GrantUpdateOne) ClearVoidedAt() *GrantUpdateOne
- func (guo *GrantUpdateOne) Exec(ctx context.Context) error
- func (c *GrantUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (guo *GrantUpdateOne) ExecX(ctx context.Context)
- func (guo *GrantUpdateOne) Mutation() *GrantMutation
- func (c *GrantUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (guo *GrantUpdateOne) Save(ctx context.Context) (*Grant, error)
- func (guo *GrantUpdateOne) SaveX(ctx context.Context) *Grant
- func (guo *GrantUpdateOne) Select(field string, fields ...string) *GrantUpdateOne
- func (guo *GrantUpdateOne) SetDeletedAt(t time.Time) *GrantUpdateOne
- func (guo *GrantUpdateOne) SetMetadata(m map[string]string) *GrantUpdateOne
- func (guo *GrantUpdateOne) SetNillableDeletedAt(t *time.Time) *GrantUpdateOne
- func (guo *GrantUpdateOne) SetNillableVoidedAt(t *time.Time) *GrantUpdateOne
- func (u *GrantUpdateOne) SetOrClearDeletedAt(value *time.Time) *GrantUpdateOne
- func (u *GrantUpdateOne) SetOrClearMetadata(value *map[string]string) *GrantUpdateOne
- func (u *GrantUpdateOne) SetOrClearVoidedAt(value *time.Time) *GrantUpdateOne
- func (guo *GrantUpdateOne) SetUpdatedAt(t time.Time) *GrantUpdateOne
- func (guo *GrantUpdateOne) SetVoidedAt(t time.Time) *GrantUpdateOne
- func (guo *GrantUpdateOne) Where(ps ...predicate.Grant) *GrantUpdateOne
- type GrantUpsert
- func (u *GrantUpsert) ClearDeletedAt() *GrantUpsert
- func (u *GrantUpsert) ClearMetadata() *GrantUpsert
- func (u *GrantUpsert) ClearVoidedAt() *GrantUpsert
- func (u *GrantUpsert) SetDeletedAt(v time.Time) *GrantUpsert
- func (u *GrantUpsert) SetMetadata(v map[string]string) *GrantUpsert
- func (u *GrantUpsert) SetUpdatedAt(v time.Time) *GrantUpsert
- func (u *GrantUpsert) SetVoidedAt(v time.Time) *GrantUpsert
- func (u *GrantUpsert) UpdateDeletedAt() *GrantUpsert
- func (u *GrantUpsert) UpdateMetadata() *GrantUpsert
- func (u *GrantUpsert) UpdateUpdatedAt() *GrantUpsert
- func (u *GrantUpsert) UpdateVoidedAt() *GrantUpsert
- type GrantUpsertBulk
- func (u *GrantUpsertBulk) ClearDeletedAt() *GrantUpsertBulk
- func (u *GrantUpsertBulk) ClearMetadata() *GrantUpsertBulk
- func (u *GrantUpsertBulk) ClearVoidedAt() *GrantUpsertBulk
- func (u *GrantUpsertBulk) DoNothing() *GrantUpsertBulk
- func (u *GrantUpsertBulk) Exec(ctx context.Context) error
- func (u *GrantUpsertBulk) ExecX(ctx context.Context)
- func (u *GrantUpsertBulk) Ignore() *GrantUpsertBulk
- func (u *GrantUpsertBulk) SetDeletedAt(v time.Time) *GrantUpsertBulk
- func (u *GrantUpsertBulk) SetMetadata(v map[string]string) *GrantUpsertBulk
- func (u *GrantUpsertBulk) SetUpdatedAt(v time.Time) *GrantUpsertBulk
- func (u *GrantUpsertBulk) SetVoidedAt(v time.Time) *GrantUpsertBulk
- func (u *GrantUpsertBulk) Update(set func(*GrantUpsert)) *GrantUpsertBulk
- func (u *GrantUpsertBulk) UpdateDeletedAt() *GrantUpsertBulk
- func (u *GrantUpsertBulk) UpdateMetadata() *GrantUpsertBulk
- func (u *GrantUpsertBulk) UpdateNewValues() *GrantUpsertBulk
- func (u *GrantUpsertBulk) UpdateUpdatedAt() *GrantUpsertBulk
- func (u *GrantUpsertBulk) UpdateVoidedAt() *GrantUpsertBulk
- type GrantUpsertOne
- func (u *GrantUpsertOne) ClearDeletedAt() *GrantUpsertOne
- func (u *GrantUpsertOne) ClearMetadata() *GrantUpsertOne
- func (u *GrantUpsertOne) ClearVoidedAt() *GrantUpsertOne
- func (u *GrantUpsertOne) DoNothing() *GrantUpsertOne
- func (u *GrantUpsertOne) Exec(ctx context.Context) error
- func (u *GrantUpsertOne) ExecX(ctx context.Context)
- func (u *GrantUpsertOne) ID(ctx context.Context) (id string, err error)
- func (u *GrantUpsertOne) IDX(ctx context.Context) string
- func (u *GrantUpsertOne) Ignore() *GrantUpsertOne
- func (u *GrantUpsertOne) SetDeletedAt(v time.Time) *GrantUpsertOne
- func (u *GrantUpsertOne) SetMetadata(v map[string]string) *GrantUpsertOne
- func (u *GrantUpsertOne) SetUpdatedAt(v time.Time) *GrantUpsertOne
- func (u *GrantUpsertOne) SetVoidedAt(v time.Time) *GrantUpsertOne
- func (u *GrantUpsertOne) Update(set func(*GrantUpsert)) *GrantUpsertOne
- func (u *GrantUpsertOne) UpdateDeletedAt() *GrantUpsertOne
- func (u *GrantUpsertOne) UpdateMetadata() *GrantUpsertOne
- func (u *GrantUpsertOne) UpdateNewValues() *GrantUpsertOne
- func (u *GrantUpsertOne) UpdateUpdatedAt() *GrantUpsertOne
- func (u *GrantUpsertOne) UpdateVoidedAt() *GrantUpsertOne
- type Grants
- type Hook
- type InterceptFunc
- type Interceptor
- type MutateFunc
- type Mutation
- type Mutator
- type NotFoundError
- type NotLoadedError
- type NotSingularError
- type NotificationChannel
- func (c *NotificationChannel) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *NotificationChannel) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (nc *NotificationChannel) QueryRules() *NotificationRuleQuery
- func (nc *NotificationChannel) String() string
- func (nc *NotificationChannel) Unwrap() *NotificationChannel
- func (nc *NotificationChannel) Update() *NotificationChannelUpdateOne
- func (nc *NotificationChannel) Value(name string) (ent.Value, error)
- type NotificationChannelClient
- func (c *NotificationChannelClient) Create() *NotificationChannelCreate
- func (c *NotificationChannelClient) CreateBulk(builders ...*NotificationChannelCreate) *NotificationChannelCreateBulk
- func (c *NotificationChannelClient) Delete() *NotificationChannelDelete
- func (c *NotificationChannelClient) DeleteOne(nc *NotificationChannel) *NotificationChannelDeleteOne
- func (c *NotificationChannelClient) DeleteOneID(id string) *NotificationChannelDeleteOne
- func (c *NotificationChannelClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *NotificationChannelClient) Get(ctx context.Context, id string) (*NotificationChannel, error)
- func (c *NotificationChannelClient) GetX(ctx context.Context, id string) *NotificationChannel
- func (c *NotificationChannelClient) Hooks() []Hook
- func (c *NotificationChannelClient) Intercept(interceptors ...Interceptor)
- func (c *NotificationChannelClient) Interceptors() []Interceptor
- func (c *NotificationChannelClient) MapCreateBulk(slice any, setFunc func(*NotificationChannelCreate, int)) *NotificationChannelCreateBulk
- func (c *NotificationChannelClient) Query() *NotificationChannelQuery
- func (c *NotificationChannelClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *NotificationChannelClient) QueryRules(nc *NotificationChannel) *NotificationRuleQuery
- func (c *NotificationChannelClient) Update() *NotificationChannelUpdate
- func (c *NotificationChannelClient) UpdateOne(nc *NotificationChannel) *NotificationChannelUpdateOne
- func (c *NotificationChannelClient) UpdateOneID(id string) *NotificationChannelUpdateOne
- func (c *NotificationChannelClient) Use(hooks ...Hook)
- type NotificationChannelCreate
- func (ncc *NotificationChannelCreate) AddRuleIDs(ids ...string) *NotificationChannelCreate
- func (ncc *NotificationChannelCreate) AddRules(n ...*NotificationRule) *NotificationChannelCreate
- func (ncc *NotificationChannelCreate) Exec(ctx context.Context) error
- func (c *NotificationChannelCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ncc *NotificationChannelCreate) ExecX(ctx context.Context)
- func (ncc *NotificationChannelCreate) Mutation() *NotificationChannelMutation
- func (ncc *NotificationChannelCreate) OnConflict(opts ...sql.ConflictOption) *NotificationChannelUpsertOne
- func (ncc *NotificationChannelCreate) OnConflictColumns(columns ...string) *NotificationChannelUpsertOne
- func (c *NotificationChannelCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ncc *NotificationChannelCreate) Save(ctx context.Context) (*NotificationChannel, error)
- func (ncc *NotificationChannelCreate) SaveX(ctx context.Context) *NotificationChannel
- func (ncc *NotificationChannelCreate) SetConfig(nc notification.ChannelConfig) *NotificationChannelCreate
- func (ncc *NotificationChannelCreate) SetCreatedAt(t time.Time) *NotificationChannelCreate
- func (ncc *NotificationChannelCreate) SetDeletedAt(t time.Time) *NotificationChannelCreate
- func (ncc *NotificationChannelCreate) SetDisabled(b bool) *NotificationChannelCreate
- func (ncc *NotificationChannelCreate) SetID(s string) *NotificationChannelCreate
- func (ncc *NotificationChannelCreate) SetName(s string) *NotificationChannelCreate
- func (ncc *NotificationChannelCreate) SetNamespace(s string) *NotificationChannelCreate
- func (ncc *NotificationChannelCreate) SetNillableCreatedAt(t *time.Time) *NotificationChannelCreate
- func (ncc *NotificationChannelCreate) SetNillableDeletedAt(t *time.Time) *NotificationChannelCreate
- func (ncc *NotificationChannelCreate) SetNillableDisabled(b *bool) *NotificationChannelCreate
- func (ncc *NotificationChannelCreate) SetNillableID(s *string) *NotificationChannelCreate
- func (ncc *NotificationChannelCreate) SetNillableUpdatedAt(t *time.Time) *NotificationChannelCreate
- func (ncc *NotificationChannelCreate) SetType(nt notification.ChannelType) *NotificationChannelCreate
- func (ncc *NotificationChannelCreate) SetUpdatedAt(t time.Time) *NotificationChannelCreate
- type NotificationChannelCreateBulk
- func (nccb *NotificationChannelCreateBulk) Exec(ctx context.Context) error
- func (c *NotificationChannelCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (nccb *NotificationChannelCreateBulk) ExecX(ctx context.Context)
- func (nccb *NotificationChannelCreateBulk) OnConflict(opts ...sql.ConflictOption) *NotificationChannelUpsertBulk
- func (nccb *NotificationChannelCreateBulk) OnConflictColumns(columns ...string) *NotificationChannelUpsertBulk
- func (c *NotificationChannelCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (nccb *NotificationChannelCreateBulk) Save(ctx context.Context) ([]*NotificationChannel, error)
- func (nccb *NotificationChannelCreateBulk) SaveX(ctx context.Context) []*NotificationChannel
- type NotificationChannelDelete
- func (ncd *NotificationChannelDelete) Exec(ctx context.Context) (int, error)
- func (c *NotificationChannelDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ncd *NotificationChannelDelete) ExecX(ctx context.Context) int
- func (c *NotificationChannelDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ncd *NotificationChannelDelete) Where(ps ...predicate.NotificationChannel) *NotificationChannelDelete
- type NotificationChannelDeleteOne
- type NotificationChannelEdges
- type NotificationChannelGroupBy
- func (ncgb *NotificationChannelGroupBy) Aggregate(fns ...AggregateFunc) *NotificationChannelGroupBy
- func (s *NotificationChannelGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *NotificationChannelGroupBy) BoolX(ctx context.Context) bool
- func (s *NotificationChannelGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *NotificationChannelGroupBy) BoolsX(ctx context.Context) []bool
- func (s *NotificationChannelGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *NotificationChannelGroupBy) Float64X(ctx context.Context) float64
- func (s *NotificationChannelGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *NotificationChannelGroupBy) Float64sX(ctx context.Context) []float64
- func (s *NotificationChannelGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *NotificationChannelGroupBy) IntX(ctx context.Context) int
- func (s *NotificationChannelGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *NotificationChannelGroupBy) IntsX(ctx context.Context) []int
- func (ncgb *NotificationChannelGroupBy) Scan(ctx context.Context, v any) error
- func (s *NotificationChannelGroupBy) ScanX(ctx context.Context, v any)
- func (s *NotificationChannelGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *NotificationChannelGroupBy) StringX(ctx context.Context) string
- func (s *NotificationChannelGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *NotificationChannelGroupBy) StringsX(ctx context.Context) []string
- type NotificationChannelMutation
- func (m *NotificationChannelMutation) AddField(name string, value ent.Value) error
- func (m *NotificationChannelMutation) AddRuleIDs(ids ...string)
- func (m *NotificationChannelMutation) AddedEdges() []string
- func (m *NotificationChannelMutation) AddedField(name string) (ent.Value, bool)
- func (m *NotificationChannelMutation) AddedFields() []string
- func (m *NotificationChannelMutation) AddedIDs(name string) []ent.Value
- func (m *NotificationChannelMutation) ClearDeletedAt()
- func (m *NotificationChannelMutation) ClearDisabled()
- func (m *NotificationChannelMutation) ClearEdge(name string) error
- func (m *NotificationChannelMutation) ClearField(name string) error
- func (m *NotificationChannelMutation) ClearRules()
- func (m *NotificationChannelMutation) ClearedEdges() []string
- func (m *NotificationChannelMutation) ClearedFields() []string
- func (m NotificationChannelMutation) Client() *Client
- func (m *NotificationChannelMutation) Config() (r notification.ChannelConfig, exists bool)
- func (m *NotificationChannelMutation) CreatedAt() (r time.Time, exists bool)
- func (m *NotificationChannelMutation) DeletedAt() (r time.Time, exists bool)
- func (m *NotificationChannelMutation) DeletedAtCleared() bool
- func (m *NotificationChannelMutation) Disabled() (r bool, exists bool)
- func (m *NotificationChannelMutation) DisabledCleared() bool
- func (m *NotificationChannelMutation) EdgeCleared(name string) bool
- func (c *NotificationChannelMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *NotificationChannelMutation) Field(name string) (ent.Value, bool)
- func (m *NotificationChannelMutation) FieldCleared(name string) bool
- func (m *NotificationChannelMutation) Fields() []string
- func (m *NotificationChannelMutation) GetType() (r notification.ChannelType, exists bool)
- func (m *NotificationChannelMutation) ID() (id string, exists bool)
- func (m *NotificationChannelMutation) IDs(ctx context.Context) ([]string, error)
- func (m *NotificationChannelMutation) Name() (r string, exists bool)
- func (m *NotificationChannelMutation) Namespace() (r string, exists bool)
- func (m *NotificationChannelMutation) OldConfig(ctx context.Context) (v notification.ChannelConfig, err error)
- func (m *NotificationChannelMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *NotificationChannelMutation) OldDeletedAt(ctx context.Context) (v *time.Time, err error)
- func (m *NotificationChannelMutation) OldDisabled(ctx context.Context) (v bool, err error)
- func (m *NotificationChannelMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *NotificationChannelMutation) OldName(ctx context.Context) (v string, err error)
- func (m *NotificationChannelMutation) OldNamespace(ctx context.Context) (v string, err error)
- func (m *NotificationChannelMutation) OldType(ctx context.Context) (v notification.ChannelType, err error)
- func (m *NotificationChannelMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *NotificationChannelMutation) Op() Op
- func (c *NotificationChannelMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *NotificationChannelMutation) RemoveRuleIDs(ids ...string)
- func (m *NotificationChannelMutation) RemovedEdges() []string
- func (m *NotificationChannelMutation) RemovedIDs(name string) []ent.Value
- func (m *NotificationChannelMutation) RemovedRulesIDs() (ids []string)
- func (m *NotificationChannelMutation) ResetConfig()
- func (m *NotificationChannelMutation) ResetCreatedAt()
- func (m *NotificationChannelMutation) ResetDeletedAt()
- func (m *NotificationChannelMutation) ResetDisabled()
- func (m *NotificationChannelMutation) ResetEdge(name string) error
- func (m *NotificationChannelMutation) ResetField(name string) error
- func (m *NotificationChannelMutation) ResetName()
- func (m *NotificationChannelMutation) ResetNamespace()
- func (m *NotificationChannelMutation) ResetRules()
- func (m *NotificationChannelMutation) ResetType()
- func (m *NotificationChannelMutation) ResetUpdatedAt()
- func (m *NotificationChannelMutation) RulesCleared() bool
- func (m *NotificationChannelMutation) RulesIDs() (ids []string)
- func (m *NotificationChannelMutation) SetConfig(nc notification.ChannelConfig)
- func (m *NotificationChannelMutation) SetCreatedAt(t time.Time)
- func (m *NotificationChannelMutation) SetDeletedAt(t time.Time)
- func (m *NotificationChannelMutation) SetDisabled(b bool)
- func (m *NotificationChannelMutation) SetField(name string, value ent.Value) error
- func (m *NotificationChannelMutation) SetID(id string)
- func (m *NotificationChannelMutation) SetName(s string)
- func (m *NotificationChannelMutation) SetNamespace(s string)
- func (m *NotificationChannelMutation) SetOp(op Op)
- func (m *NotificationChannelMutation) SetType(nt notification.ChannelType)
- func (m *NotificationChannelMutation) SetUpdatedAt(t time.Time)
- func (m NotificationChannelMutation) Tx() (*Tx, error)
- func (m *NotificationChannelMutation) Type() string
- func (m *NotificationChannelMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *NotificationChannelMutation) Where(ps ...predicate.NotificationChannel)
- func (m *NotificationChannelMutation) WhereP(ps ...func(*sql.Selector))
- type NotificationChannelQuery
- func (ncq *NotificationChannelQuery) Aggregate(fns ...AggregateFunc) *NotificationChannelSelect
- func (ncq *NotificationChannelQuery) All(ctx context.Context) ([]*NotificationChannel, error)
- func (ncq *NotificationChannelQuery) AllX(ctx context.Context) []*NotificationChannel
- func (ncq *NotificationChannelQuery) Clone() *NotificationChannelQuery
- func (ncq *NotificationChannelQuery) Count(ctx context.Context) (int, error)
- func (ncq *NotificationChannelQuery) CountX(ctx context.Context) int
- func (c *NotificationChannelQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ncq *NotificationChannelQuery) Exist(ctx context.Context) (bool, error)
- func (ncq *NotificationChannelQuery) ExistX(ctx context.Context) bool
- func (ncq *NotificationChannelQuery) First(ctx context.Context) (*NotificationChannel, error)
- func (ncq *NotificationChannelQuery) FirstID(ctx context.Context) (id string, err error)
- func (ncq *NotificationChannelQuery) FirstIDX(ctx context.Context) string
- func (ncq *NotificationChannelQuery) FirstX(ctx context.Context) *NotificationChannel
- func (ncq *NotificationChannelQuery) ForShare(opts ...sql.LockOption) *NotificationChannelQuery
- func (ncq *NotificationChannelQuery) ForUpdate(opts ...sql.LockOption) *NotificationChannelQuery
- func (ncq *NotificationChannelQuery) GroupBy(field string, fields ...string) *NotificationChannelGroupBy
- func (ncq *NotificationChannelQuery) IDs(ctx context.Context) (ids []string, err error)
- func (ncq *NotificationChannelQuery) IDsX(ctx context.Context) []string
- func (ncq *NotificationChannelQuery) Limit(limit int) *NotificationChannelQuery
- func (ncq *NotificationChannelQuery) Offset(offset int) *NotificationChannelQuery
- func (ncq *NotificationChannelQuery) Only(ctx context.Context) (*NotificationChannel, error)
- func (ncq *NotificationChannelQuery) OnlyID(ctx context.Context) (id string, err error)
- func (ncq *NotificationChannelQuery) OnlyIDX(ctx context.Context) string
- func (ncq *NotificationChannelQuery) OnlyX(ctx context.Context) *NotificationChannel
- func (ncq *NotificationChannelQuery) Order(o ...notificationchannel.OrderOption) *NotificationChannelQuery
- func (nc *NotificationChannelQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*NotificationChannel], error)
- func (c *NotificationChannelQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ncq *NotificationChannelQuery) QueryRules() *NotificationRuleQuery
- func (ncq *NotificationChannelQuery) Select(fields ...string) *NotificationChannelSelect
- func (ncq *NotificationChannelQuery) Unique(unique bool) *NotificationChannelQuery
- func (ncq *NotificationChannelQuery) Where(ps ...predicate.NotificationChannel) *NotificationChannelQuery
- func (ncq *NotificationChannelQuery) WithRules(opts ...func(*NotificationRuleQuery)) *NotificationChannelQuery
- type NotificationChannelSelect
- func (ncs *NotificationChannelSelect) Aggregate(fns ...AggregateFunc) *NotificationChannelSelect
- func (s *NotificationChannelSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *NotificationChannelSelect) BoolX(ctx context.Context) bool
- func (s *NotificationChannelSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *NotificationChannelSelect) BoolsX(ctx context.Context) []bool
- func (c NotificationChannelSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *NotificationChannelSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *NotificationChannelSelect) Float64X(ctx context.Context) float64
- func (s *NotificationChannelSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *NotificationChannelSelect) Float64sX(ctx context.Context) []float64
- func (s *NotificationChannelSelect) Int(ctx context.Context) (_ int, err error)
- func (s *NotificationChannelSelect) IntX(ctx context.Context) int
- func (s *NotificationChannelSelect) Ints(ctx context.Context) ([]int, error)
- func (s *NotificationChannelSelect) IntsX(ctx context.Context) []int
- func (c NotificationChannelSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ncs *NotificationChannelSelect) Scan(ctx context.Context, v any) error
- func (s *NotificationChannelSelect) ScanX(ctx context.Context, v any)
- func (s *NotificationChannelSelect) String(ctx context.Context) (_ string, err error)
- func (s *NotificationChannelSelect) StringX(ctx context.Context) string
- func (s *NotificationChannelSelect) Strings(ctx context.Context) ([]string, error)
- func (s *NotificationChannelSelect) StringsX(ctx context.Context) []string
- type NotificationChannelUpdate
- func (ncu *NotificationChannelUpdate) AddRuleIDs(ids ...string) *NotificationChannelUpdate
- func (ncu *NotificationChannelUpdate) AddRules(n ...*NotificationRule) *NotificationChannelUpdate
- func (ncu *NotificationChannelUpdate) ClearDeletedAt() *NotificationChannelUpdate
- func (ncu *NotificationChannelUpdate) ClearDisabled() *NotificationChannelUpdate
- func (ncu *NotificationChannelUpdate) ClearRules() *NotificationChannelUpdate
- func (ncu *NotificationChannelUpdate) Exec(ctx context.Context) error
- func (c *NotificationChannelUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ncu *NotificationChannelUpdate) ExecX(ctx context.Context)
- func (ncu *NotificationChannelUpdate) Mutation() *NotificationChannelMutation
- func (c *NotificationChannelUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ncu *NotificationChannelUpdate) RemoveRuleIDs(ids ...string) *NotificationChannelUpdate
- func (ncu *NotificationChannelUpdate) RemoveRules(n ...*NotificationRule) *NotificationChannelUpdate
- func (ncu *NotificationChannelUpdate) Save(ctx context.Context) (int, error)
- func (ncu *NotificationChannelUpdate) SaveX(ctx context.Context) int
- func (ncu *NotificationChannelUpdate) SetConfig(nc notification.ChannelConfig) *NotificationChannelUpdate
- func (ncu *NotificationChannelUpdate) SetDeletedAt(t time.Time) *NotificationChannelUpdate
- func (ncu *NotificationChannelUpdate) SetDisabled(b bool) *NotificationChannelUpdate
- func (ncu *NotificationChannelUpdate) SetName(s string) *NotificationChannelUpdate
- func (ncu *NotificationChannelUpdate) SetNillableConfig(nc *notification.ChannelConfig) *NotificationChannelUpdate
- func (ncu *NotificationChannelUpdate) SetNillableDeletedAt(t *time.Time) *NotificationChannelUpdate
- func (ncu *NotificationChannelUpdate) SetNillableDisabled(b *bool) *NotificationChannelUpdate
- func (ncu *NotificationChannelUpdate) SetNillableName(s *string) *NotificationChannelUpdate
- func (u *NotificationChannelUpdate) SetOrClearDeletedAt(value *time.Time) *NotificationChannelUpdate
- func (u *NotificationChannelUpdate) SetOrClearDisabled(value *bool) *NotificationChannelUpdate
- func (ncu *NotificationChannelUpdate) SetUpdatedAt(t time.Time) *NotificationChannelUpdate
- func (ncu *NotificationChannelUpdate) Where(ps ...predicate.NotificationChannel) *NotificationChannelUpdate
- type NotificationChannelUpdateOne
- func (ncuo *NotificationChannelUpdateOne) AddRuleIDs(ids ...string) *NotificationChannelUpdateOne
- func (ncuo *NotificationChannelUpdateOne) AddRules(n ...*NotificationRule) *NotificationChannelUpdateOne
- func (ncuo *NotificationChannelUpdateOne) ClearDeletedAt() *NotificationChannelUpdateOne
- func (ncuo *NotificationChannelUpdateOne) ClearDisabled() *NotificationChannelUpdateOne
- func (ncuo *NotificationChannelUpdateOne) ClearRules() *NotificationChannelUpdateOne
- func (ncuo *NotificationChannelUpdateOne) Exec(ctx context.Context) error
- func (c *NotificationChannelUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ncuo *NotificationChannelUpdateOne) ExecX(ctx context.Context)
- func (ncuo *NotificationChannelUpdateOne) Mutation() *NotificationChannelMutation
- func (c *NotificationChannelUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ncuo *NotificationChannelUpdateOne) RemoveRuleIDs(ids ...string) *NotificationChannelUpdateOne
- func (ncuo *NotificationChannelUpdateOne) RemoveRules(n ...*NotificationRule) *NotificationChannelUpdateOne
- func (ncuo *NotificationChannelUpdateOne) Save(ctx context.Context) (*NotificationChannel, error)
- func (ncuo *NotificationChannelUpdateOne) SaveX(ctx context.Context) *NotificationChannel
- func (ncuo *NotificationChannelUpdateOne) Select(field string, fields ...string) *NotificationChannelUpdateOne
- func (ncuo *NotificationChannelUpdateOne) SetConfig(nc notification.ChannelConfig) *NotificationChannelUpdateOne
- func (ncuo *NotificationChannelUpdateOne) SetDeletedAt(t time.Time) *NotificationChannelUpdateOne
- func (ncuo *NotificationChannelUpdateOne) SetDisabled(b bool) *NotificationChannelUpdateOne
- func (ncuo *NotificationChannelUpdateOne) SetName(s string) *NotificationChannelUpdateOne
- func (ncuo *NotificationChannelUpdateOne) SetNillableConfig(nc *notification.ChannelConfig) *NotificationChannelUpdateOne
- func (ncuo *NotificationChannelUpdateOne) SetNillableDeletedAt(t *time.Time) *NotificationChannelUpdateOne
- func (ncuo *NotificationChannelUpdateOne) SetNillableDisabled(b *bool) *NotificationChannelUpdateOne
- func (ncuo *NotificationChannelUpdateOne) SetNillableName(s *string) *NotificationChannelUpdateOne
- func (u *NotificationChannelUpdateOne) SetOrClearDeletedAt(value *time.Time) *NotificationChannelUpdateOne
- func (u *NotificationChannelUpdateOne) SetOrClearDisabled(value *bool) *NotificationChannelUpdateOne
- func (ncuo *NotificationChannelUpdateOne) SetUpdatedAt(t time.Time) *NotificationChannelUpdateOne
- func (ncuo *NotificationChannelUpdateOne) Where(ps ...predicate.NotificationChannel) *NotificationChannelUpdateOne
- type NotificationChannelUpsert
- func (u *NotificationChannelUpsert) ClearDeletedAt() *NotificationChannelUpsert
- func (u *NotificationChannelUpsert) ClearDisabled() *NotificationChannelUpsert
- func (u *NotificationChannelUpsert) SetConfig(v notification.ChannelConfig) *NotificationChannelUpsert
- func (u *NotificationChannelUpsert) SetDeletedAt(v time.Time) *NotificationChannelUpsert
- func (u *NotificationChannelUpsert) SetDisabled(v bool) *NotificationChannelUpsert
- func (u *NotificationChannelUpsert) SetName(v string) *NotificationChannelUpsert
- func (u *NotificationChannelUpsert) SetUpdatedAt(v time.Time) *NotificationChannelUpsert
- func (u *NotificationChannelUpsert) UpdateConfig() *NotificationChannelUpsert
- func (u *NotificationChannelUpsert) UpdateDeletedAt() *NotificationChannelUpsert
- func (u *NotificationChannelUpsert) UpdateDisabled() *NotificationChannelUpsert
- func (u *NotificationChannelUpsert) UpdateName() *NotificationChannelUpsert
- func (u *NotificationChannelUpsert) UpdateUpdatedAt() *NotificationChannelUpsert
- type NotificationChannelUpsertBulk
- func (u *NotificationChannelUpsertBulk) ClearDeletedAt() *NotificationChannelUpsertBulk
- func (u *NotificationChannelUpsertBulk) ClearDisabled() *NotificationChannelUpsertBulk
- func (u *NotificationChannelUpsertBulk) DoNothing() *NotificationChannelUpsertBulk
- func (u *NotificationChannelUpsertBulk) Exec(ctx context.Context) error
- func (u *NotificationChannelUpsertBulk) ExecX(ctx context.Context)
- func (u *NotificationChannelUpsertBulk) Ignore() *NotificationChannelUpsertBulk
- func (u *NotificationChannelUpsertBulk) SetConfig(v notification.ChannelConfig) *NotificationChannelUpsertBulk
- func (u *NotificationChannelUpsertBulk) SetDeletedAt(v time.Time) *NotificationChannelUpsertBulk
- func (u *NotificationChannelUpsertBulk) SetDisabled(v bool) *NotificationChannelUpsertBulk
- func (u *NotificationChannelUpsertBulk) SetName(v string) *NotificationChannelUpsertBulk
- func (u *NotificationChannelUpsertBulk) SetUpdatedAt(v time.Time) *NotificationChannelUpsertBulk
- func (u *NotificationChannelUpsertBulk) Update(set func(*NotificationChannelUpsert)) *NotificationChannelUpsertBulk
- func (u *NotificationChannelUpsertBulk) UpdateConfig() *NotificationChannelUpsertBulk
- func (u *NotificationChannelUpsertBulk) UpdateDeletedAt() *NotificationChannelUpsertBulk
- func (u *NotificationChannelUpsertBulk) UpdateDisabled() *NotificationChannelUpsertBulk
- func (u *NotificationChannelUpsertBulk) UpdateName() *NotificationChannelUpsertBulk
- func (u *NotificationChannelUpsertBulk) UpdateNewValues() *NotificationChannelUpsertBulk
- func (u *NotificationChannelUpsertBulk) UpdateUpdatedAt() *NotificationChannelUpsertBulk
- type NotificationChannelUpsertOne
- func (u *NotificationChannelUpsertOne) ClearDeletedAt() *NotificationChannelUpsertOne
- func (u *NotificationChannelUpsertOne) ClearDisabled() *NotificationChannelUpsertOne
- func (u *NotificationChannelUpsertOne) DoNothing() *NotificationChannelUpsertOne
- func (u *NotificationChannelUpsertOne) Exec(ctx context.Context) error
- func (u *NotificationChannelUpsertOne) ExecX(ctx context.Context)
- func (u *NotificationChannelUpsertOne) ID(ctx context.Context) (id string, err error)
- func (u *NotificationChannelUpsertOne) IDX(ctx context.Context) string
- func (u *NotificationChannelUpsertOne) Ignore() *NotificationChannelUpsertOne
- func (u *NotificationChannelUpsertOne) SetConfig(v notification.ChannelConfig) *NotificationChannelUpsertOne
- func (u *NotificationChannelUpsertOne) SetDeletedAt(v time.Time) *NotificationChannelUpsertOne
- func (u *NotificationChannelUpsertOne) SetDisabled(v bool) *NotificationChannelUpsertOne
- func (u *NotificationChannelUpsertOne) SetName(v string) *NotificationChannelUpsertOne
- func (u *NotificationChannelUpsertOne) SetUpdatedAt(v time.Time) *NotificationChannelUpsertOne
- func (u *NotificationChannelUpsertOne) Update(set func(*NotificationChannelUpsert)) *NotificationChannelUpsertOne
- func (u *NotificationChannelUpsertOne) UpdateConfig() *NotificationChannelUpsertOne
- func (u *NotificationChannelUpsertOne) UpdateDeletedAt() *NotificationChannelUpsertOne
- func (u *NotificationChannelUpsertOne) UpdateDisabled() *NotificationChannelUpsertOne
- func (u *NotificationChannelUpsertOne) UpdateName() *NotificationChannelUpsertOne
- func (u *NotificationChannelUpsertOne) UpdateNewValues() *NotificationChannelUpsertOne
- func (u *NotificationChannelUpsertOne) UpdateUpdatedAt() *NotificationChannelUpsertOne
- type NotificationChannels
- type NotificationEvent
- func (c *NotificationEvent) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *NotificationEvent) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ne *NotificationEvent) QueryDeliveryStatuses() *NotificationEventDeliveryStatusQuery
- func (ne *NotificationEvent) QueryRules() *NotificationRuleQuery
- func (ne *NotificationEvent) String() string
- func (ne *NotificationEvent) Unwrap() *NotificationEvent
- func (ne *NotificationEvent) Update() *NotificationEventUpdateOne
- func (ne *NotificationEvent) Value(name string) (ent.Value, error)
- type NotificationEventClient
- func (c *NotificationEventClient) Create() *NotificationEventCreate
- func (c *NotificationEventClient) CreateBulk(builders ...*NotificationEventCreate) *NotificationEventCreateBulk
- func (c *NotificationEventClient) Delete() *NotificationEventDelete
- func (c *NotificationEventClient) DeleteOne(ne *NotificationEvent) *NotificationEventDeleteOne
- func (c *NotificationEventClient) DeleteOneID(id string) *NotificationEventDeleteOne
- func (c *NotificationEventClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *NotificationEventClient) Get(ctx context.Context, id string) (*NotificationEvent, error)
- func (c *NotificationEventClient) GetX(ctx context.Context, id string) *NotificationEvent
- func (c *NotificationEventClient) Hooks() []Hook
- func (c *NotificationEventClient) Intercept(interceptors ...Interceptor)
- func (c *NotificationEventClient) Interceptors() []Interceptor
- func (c *NotificationEventClient) MapCreateBulk(slice any, setFunc func(*NotificationEventCreate, int)) *NotificationEventCreateBulk
- func (c *NotificationEventClient) Query() *NotificationEventQuery
- func (c *NotificationEventClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *NotificationEventClient) QueryDeliveryStatuses(ne *NotificationEvent) *NotificationEventDeliveryStatusQuery
- func (c *NotificationEventClient) QueryRules(ne *NotificationEvent) *NotificationRuleQuery
- func (c *NotificationEventClient) Update() *NotificationEventUpdate
- func (c *NotificationEventClient) UpdateOne(ne *NotificationEvent) *NotificationEventUpdateOne
- func (c *NotificationEventClient) UpdateOneID(id string) *NotificationEventUpdateOne
- func (c *NotificationEventClient) Use(hooks ...Hook)
- type NotificationEventCreate
- func (nec *NotificationEventCreate) AddDeliveryStatusIDs(ids ...string) *NotificationEventCreate
- func (nec *NotificationEventCreate) AddDeliveryStatuses(n ...*NotificationEventDeliveryStatus) *NotificationEventCreate
- func (nec *NotificationEventCreate) Exec(ctx context.Context) error
- func (c *NotificationEventCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (nec *NotificationEventCreate) ExecX(ctx context.Context)
- func (nec *NotificationEventCreate) Mutation() *NotificationEventMutation
- func (nec *NotificationEventCreate) OnConflict(opts ...sql.ConflictOption) *NotificationEventUpsertOne
- func (nec *NotificationEventCreate) OnConflictColumns(columns ...string) *NotificationEventUpsertOne
- func (c *NotificationEventCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (nec *NotificationEventCreate) Save(ctx context.Context) (*NotificationEvent, error)
- func (nec *NotificationEventCreate) SaveX(ctx context.Context) *NotificationEvent
- func (nec *NotificationEventCreate) SetAnnotations(m map[string]interface{}) *NotificationEventCreate
- func (nec *NotificationEventCreate) SetCreatedAt(t time.Time) *NotificationEventCreate
- func (nec *NotificationEventCreate) SetID(s string) *NotificationEventCreate
- func (nec *NotificationEventCreate) SetNamespace(s string) *NotificationEventCreate
- func (nec *NotificationEventCreate) SetNillableCreatedAt(t *time.Time) *NotificationEventCreate
- func (nec *NotificationEventCreate) SetNillableID(s *string) *NotificationEventCreate
- func (nec *NotificationEventCreate) SetPayload(s string) *NotificationEventCreate
- func (nec *NotificationEventCreate) SetRuleID(s string) *NotificationEventCreate
- func (nec *NotificationEventCreate) SetRules(n *NotificationRule) *NotificationEventCreate
- func (nec *NotificationEventCreate) SetRulesID(id string) *NotificationEventCreate
- func (nec *NotificationEventCreate) SetType(nt notification.EventType) *NotificationEventCreate
- type NotificationEventCreateBulk
- func (necb *NotificationEventCreateBulk) Exec(ctx context.Context) error
- func (c *NotificationEventCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (necb *NotificationEventCreateBulk) ExecX(ctx context.Context)
- func (necb *NotificationEventCreateBulk) OnConflict(opts ...sql.ConflictOption) *NotificationEventUpsertBulk
- func (necb *NotificationEventCreateBulk) OnConflictColumns(columns ...string) *NotificationEventUpsertBulk
- func (c *NotificationEventCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (necb *NotificationEventCreateBulk) Save(ctx context.Context) ([]*NotificationEvent, error)
- func (necb *NotificationEventCreateBulk) SaveX(ctx context.Context) []*NotificationEvent
- type NotificationEventDelete
- func (ned *NotificationEventDelete) Exec(ctx context.Context) (int, error)
- func (c *NotificationEventDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ned *NotificationEventDelete) ExecX(ctx context.Context) int
- func (c *NotificationEventDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ned *NotificationEventDelete) Where(ps ...predicate.NotificationEvent) *NotificationEventDelete
- type NotificationEventDeleteOne
- type NotificationEventDeliveryStatus
- func (c *NotificationEventDeliveryStatus) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *NotificationEventDeliveryStatus) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (neds *NotificationEventDeliveryStatus) QueryEvents() *NotificationEventQuery
- func (neds *NotificationEventDeliveryStatus) String() string
- func (neds *NotificationEventDeliveryStatus) Unwrap() *NotificationEventDeliveryStatus
- func (neds *NotificationEventDeliveryStatus) Update() *NotificationEventDeliveryStatusUpdateOne
- func (neds *NotificationEventDeliveryStatus) Value(name string) (ent.Value, error)
- type NotificationEventDeliveryStatusClient
- func (c *NotificationEventDeliveryStatusClient) Create() *NotificationEventDeliveryStatusCreate
- func (c *NotificationEventDeliveryStatusClient) CreateBulk(builders ...*NotificationEventDeliveryStatusCreate) *NotificationEventDeliveryStatusCreateBulk
- func (c *NotificationEventDeliveryStatusClient) Delete() *NotificationEventDeliveryStatusDelete
- func (c *NotificationEventDeliveryStatusClient) DeleteOne(neds *NotificationEventDeliveryStatus) *NotificationEventDeliveryStatusDeleteOne
- func (c *NotificationEventDeliveryStatusClient) DeleteOneID(id string) *NotificationEventDeliveryStatusDeleteOne
- func (c *NotificationEventDeliveryStatusClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *NotificationEventDeliveryStatusClient) Get(ctx context.Context, id string) (*NotificationEventDeliveryStatus, error)
- func (c *NotificationEventDeliveryStatusClient) GetX(ctx context.Context, id string) *NotificationEventDeliveryStatus
- func (c *NotificationEventDeliveryStatusClient) Hooks() []Hook
- func (c *NotificationEventDeliveryStatusClient) Intercept(interceptors ...Interceptor)
- func (c *NotificationEventDeliveryStatusClient) Interceptors() []Interceptor
- func (c *NotificationEventDeliveryStatusClient) MapCreateBulk(slice any, setFunc func(*NotificationEventDeliveryStatusCreate, int)) *NotificationEventDeliveryStatusCreateBulk
- func (c *NotificationEventDeliveryStatusClient) Query() *NotificationEventDeliveryStatusQuery
- func (c *NotificationEventDeliveryStatusClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *NotificationEventDeliveryStatusClient) QueryEvents(neds *NotificationEventDeliveryStatus) *NotificationEventQuery
- func (c *NotificationEventDeliveryStatusClient) Update() *NotificationEventDeliveryStatusUpdate
- func (c *NotificationEventDeliveryStatusClient) UpdateOne(neds *NotificationEventDeliveryStatus) *NotificationEventDeliveryStatusUpdateOne
- func (c *NotificationEventDeliveryStatusClient) UpdateOneID(id string) *NotificationEventDeliveryStatusUpdateOne
- func (c *NotificationEventDeliveryStatusClient) Use(hooks ...Hook)
- type NotificationEventDeliveryStatusCreate
- func (nedsc *NotificationEventDeliveryStatusCreate) AddEventIDs(ids ...string) *NotificationEventDeliveryStatusCreate
- func (nedsc *NotificationEventDeliveryStatusCreate) AddEvents(n ...*NotificationEvent) *NotificationEventDeliveryStatusCreate
- func (nedsc *NotificationEventDeliveryStatusCreate) Exec(ctx context.Context) error
- func (c *NotificationEventDeliveryStatusCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (nedsc *NotificationEventDeliveryStatusCreate) ExecX(ctx context.Context)
- func (nedsc *NotificationEventDeliveryStatusCreate) Mutation() *NotificationEventDeliveryStatusMutation
- func (nedsc *NotificationEventDeliveryStatusCreate) OnConflict(opts ...sql.ConflictOption) *NotificationEventDeliveryStatusUpsertOne
- func (nedsc *NotificationEventDeliveryStatusCreate) OnConflictColumns(columns ...string) *NotificationEventDeliveryStatusUpsertOne
- func (c *NotificationEventDeliveryStatusCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (nedsc *NotificationEventDeliveryStatusCreate) Save(ctx context.Context) (*NotificationEventDeliveryStatus, error)
- func (nedsc *NotificationEventDeliveryStatusCreate) SaveX(ctx context.Context) *NotificationEventDeliveryStatus
- func (nedsc *NotificationEventDeliveryStatusCreate) SetChannelID(s string) *NotificationEventDeliveryStatusCreate
- func (nedsc *NotificationEventDeliveryStatusCreate) SetCreatedAt(t time.Time) *NotificationEventDeliveryStatusCreate
- func (nedsc *NotificationEventDeliveryStatusCreate) SetEventID(s string) *NotificationEventDeliveryStatusCreate
- func (nedsc *NotificationEventDeliveryStatusCreate) SetID(s string) *NotificationEventDeliveryStatusCreate
- func (nedsc *NotificationEventDeliveryStatusCreate) SetNamespace(s string) *NotificationEventDeliveryStatusCreate
- func (nedsc *NotificationEventDeliveryStatusCreate) SetNillableCreatedAt(t *time.Time) *NotificationEventDeliveryStatusCreate
- func (nedsc *NotificationEventDeliveryStatusCreate) SetNillableID(s *string) *NotificationEventDeliveryStatusCreate
- func (nedsc *NotificationEventDeliveryStatusCreate) SetNillableReason(s *string) *NotificationEventDeliveryStatusCreate
- func (nedsc *NotificationEventDeliveryStatusCreate) SetNillableState(ndss *notification.EventDeliveryStatusState) *NotificationEventDeliveryStatusCreate
- func (nedsc *NotificationEventDeliveryStatusCreate) SetNillableUpdatedAt(t *time.Time) *NotificationEventDeliveryStatusCreate
- func (nedsc *NotificationEventDeliveryStatusCreate) SetReason(s string) *NotificationEventDeliveryStatusCreate
- func (nedsc *NotificationEventDeliveryStatusCreate) SetState(ndss notification.EventDeliveryStatusState) *NotificationEventDeliveryStatusCreate
- func (nedsc *NotificationEventDeliveryStatusCreate) SetUpdatedAt(t time.Time) *NotificationEventDeliveryStatusCreate
- type NotificationEventDeliveryStatusCreateBulk
- func (nedscb *NotificationEventDeliveryStatusCreateBulk) Exec(ctx context.Context) error
- func (c *NotificationEventDeliveryStatusCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (nedscb *NotificationEventDeliveryStatusCreateBulk) ExecX(ctx context.Context)
- func (nedscb *NotificationEventDeliveryStatusCreateBulk) OnConflict(opts ...sql.ConflictOption) *NotificationEventDeliveryStatusUpsertBulk
- func (nedscb *NotificationEventDeliveryStatusCreateBulk) OnConflictColumns(columns ...string) *NotificationEventDeliveryStatusUpsertBulk
- func (c *NotificationEventDeliveryStatusCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (nedscb *NotificationEventDeliveryStatusCreateBulk) Save(ctx context.Context) ([]*NotificationEventDeliveryStatus, error)
- func (nedscb *NotificationEventDeliveryStatusCreateBulk) SaveX(ctx context.Context) []*NotificationEventDeliveryStatus
- type NotificationEventDeliveryStatusDelete
- func (nedsd *NotificationEventDeliveryStatusDelete) Exec(ctx context.Context) (int, error)
- func (c *NotificationEventDeliveryStatusDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (nedsd *NotificationEventDeliveryStatusDelete) ExecX(ctx context.Context) int
- func (c *NotificationEventDeliveryStatusDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (nedsd *NotificationEventDeliveryStatusDelete) Where(ps ...predicate.NotificationEventDeliveryStatus) *NotificationEventDeliveryStatusDelete
- type NotificationEventDeliveryStatusDeleteOne
- func (nedsdo *NotificationEventDeliveryStatusDeleteOne) Exec(ctx context.Context) error
- func (nedsdo *NotificationEventDeliveryStatusDeleteOne) ExecX(ctx context.Context)
- func (nedsdo *NotificationEventDeliveryStatusDeleteOne) Where(ps ...predicate.NotificationEventDeliveryStatus) *NotificationEventDeliveryStatusDeleteOne
- type NotificationEventDeliveryStatusEdges
- type NotificationEventDeliveryStatusGroupBy
- func (nedsgb *NotificationEventDeliveryStatusGroupBy) Aggregate(fns ...AggregateFunc) *NotificationEventDeliveryStatusGroupBy
- func (s *NotificationEventDeliveryStatusGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *NotificationEventDeliveryStatusGroupBy) BoolX(ctx context.Context) bool
- func (s *NotificationEventDeliveryStatusGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *NotificationEventDeliveryStatusGroupBy) BoolsX(ctx context.Context) []bool
- func (s *NotificationEventDeliveryStatusGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *NotificationEventDeliveryStatusGroupBy) Float64X(ctx context.Context) float64
- func (s *NotificationEventDeliveryStatusGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *NotificationEventDeliveryStatusGroupBy) Float64sX(ctx context.Context) []float64
- func (s *NotificationEventDeliveryStatusGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *NotificationEventDeliveryStatusGroupBy) IntX(ctx context.Context) int
- func (s *NotificationEventDeliveryStatusGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *NotificationEventDeliveryStatusGroupBy) IntsX(ctx context.Context) []int
- func (nedsgb *NotificationEventDeliveryStatusGroupBy) Scan(ctx context.Context, v any) error
- func (s *NotificationEventDeliveryStatusGroupBy) ScanX(ctx context.Context, v any)
- func (s *NotificationEventDeliveryStatusGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *NotificationEventDeliveryStatusGroupBy) StringX(ctx context.Context) string
- func (s *NotificationEventDeliveryStatusGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *NotificationEventDeliveryStatusGroupBy) StringsX(ctx context.Context) []string
- type NotificationEventDeliveryStatusMutation
- func (m *NotificationEventDeliveryStatusMutation) AddEventIDs(ids ...string)
- func (m *NotificationEventDeliveryStatusMutation) AddField(name string, value ent.Value) error
- func (m *NotificationEventDeliveryStatusMutation) AddedEdges() []string
- func (m *NotificationEventDeliveryStatusMutation) AddedField(name string) (ent.Value, bool)
- func (m *NotificationEventDeliveryStatusMutation) AddedFields() []string
- func (m *NotificationEventDeliveryStatusMutation) AddedIDs(name string) []ent.Value
- func (m *NotificationEventDeliveryStatusMutation) ChannelID() (r string, exists bool)
- func (m *NotificationEventDeliveryStatusMutation) ClearEdge(name string) error
- func (m *NotificationEventDeliveryStatusMutation) ClearEvents()
- func (m *NotificationEventDeliveryStatusMutation) ClearField(name string) error
- func (m *NotificationEventDeliveryStatusMutation) ClearReason()
- func (m *NotificationEventDeliveryStatusMutation) ClearedEdges() []string
- func (m *NotificationEventDeliveryStatusMutation) ClearedFields() []string
- func (m NotificationEventDeliveryStatusMutation) Client() *Client
- func (m *NotificationEventDeliveryStatusMutation) CreatedAt() (r time.Time, exists bool)
- func (m *NotificationEventDeliveryStatusMutation) EdgeCleared(name string) bool
- func (m *NotificationEventDeliveryStatusMutation) EventID() (r string, exists bool)
- func (m *NotificationEventDeliveryStatusMutation) EventsCleared() bool
- func (m *NotificationEventDeliveryStatusMutation) EventsIDs() (ids []string)
- func (c *NotificationEventDeliveryStatusMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *NotificationEventDeliveryStatusMutation) Field(name string) (ent.Value, bool)
- func (m *NotificationEventDeliveryStatusMutation) FieldCleared(name string) bool
- func (m *NotificationEventDeliveryStatusMutation) Fields() []string
- func (m *NotificationEventDeliveryStatusMutation) ID() (id string, exists bool)
- func (m *NotificationEventDeliveryStatusMutation) IDs(ctx context.Context) ([]string, error)
- func (m *NotificationEventDeliveryStatusMutation) Namespace() (r string, exists bool)
- func (m *NotificationEventDeliveryStatusMutation) OldChannelID(ctx context.Context) (v string, err error)
- func (m *NotificationEventDeliveryStatusMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *NotificationEventDeliveryStatusMutation) OldEventID(ctx context.Context) (v string, err error)
- func (m *NotificationEventDeliveryStatusMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *NotificationEventDeliveryStatusMutation) OldNamespace(ctx context.Context) (v string, err error)
- func (m *NotificationEventDeliveryStatusMutation) OldReason(ctx context.Context) (v string, err error)
- func (m *NotificationEventDeliveryStatusMutation) OldState(ctx context.Context) (v notification.EventDeliveryStatusState, err error)
- func (m *NotificationEventDeliveryStatusMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *NotificationEventDeliveryStatusMutation) Op() Op
- func (c *NotificationEventDeliveryStatusMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *NotificationEventDeliveryStatusMutation) Reason() (r string, exists bool)
- func (m *NotificationEventDeliveryStatusMutation) ReasonCleared() bool
- func (m *NotificationEventDeliveryStatusMutation) RemoveEventIDs(ids ...string)
- func (m *NotificationEventDeliveryStatusMutation) RemovedEdges() []string
- func (m *NotificationEventDeliveryStatusMutation) RemovedEventsIDs() (ids []string)
- func (m *NotificationEventDeliveryStatusMutation) RemovedIDs(name string) []ent.Value
- func (m *NotificationEventDeliveryStatusMutation) ResetChannelID()
- func (m *NotificationEventDeliveryStatusMutation) ResetCreatedAt()
- func (m *NotificationEventDeliveryStatusMutation) ResetEdge(name string) error
- func (m *NotificationEventDeliveryStatusMutation) ResetEventID()
- func (m *NotificationEventDeliveryStatusMutation) ResetEvents()
- func (m *NotificationEventDeliveryStatusMutation) ResetField(name string) error
- func (m *NotificationEventDeliveryStatusMutation) ResetNamespace()
- func (m *NotificationEventDeliveryStatusMutation) ResetReason()
- func (m *NotificationEventDeliveryStatusMutation) ResetState()
- func (m *NotificationEventDeliveryStatusMutation) ResetUpdatedAt()
- func (m *NotificationEventDeliveryStatusMutation) SetChannelID(s string)
- func (m *NotificationEventDeliveryStatusMutation) SetCreatedAt(t time.Time)
- func (m *NotificationEventDeliveryStatusMutation) SetEventID(s string)
- func (m *NotificationEventDeliveryStatusMutation) SetField(name string, value ent.Value) error
- func (m *NotificationEventDeliveryStatusMutation) SetID(id string)
- func (m *NotificationEventDeliveryStatusMutation) SetNamespace(s string)
- func (m *NotificationEventDeliveryStatusMutation) SetOp(op Op)
- func (m *NotificationEventDeliveryStatusMutation) SetReason(s string)
- func (m *NotificationEventDeliveryStatusMutation) SetState(ndss notification.EventDeliveryStatusState)
- func (m *NotificationEventDeliveryStatusMutation) SetUpdatedAt(t time.Time)
- func (m *NotificationEventDeliveryStatusMutation) State() (r notification.EventDeliveryStatusState, exists bool)
- func (m NotificationEventDeliveryStatusMutation) Tx() (*Tx, error)
- func (m *NotificationEventDeliveryStatusMutation) Type() string
- func (m *NotificationEventDeliveryStatusMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *NotificationEventDeliveryStatusMutation) Where(ps ...predicate.NotificationEventDeliveryStatus)
- func (m *NotificationEventDeliveryStatusMutation) WhereP(ps ...func(*sql.Selector))
- type NotificationEventDeliveryStatusQuery
- func (nedsq *NotificationEventDeliveryStatusQuery) Aggregate(fns ...AggregateFunc) *NotificationEventDeliveryStatusSelect
- func (nedsq *NotificationEventDeliveryStatusQuery) All(ctx context.Context) ([]*NotificationEventDeliveryStatus, error)
- func (nedsq *NotificationEventDeliveryStatusQuery) AllX(ctx context.Context) []*NotificationEventDeliveryStatus
- func (nedsq *NotificationEventDeliveryStatusQuery) Clone() *NotificationEventDeliveryStatusQuery
- func (nedsq *NotificationEventDeliveryStatusQuery) Count(ctx context.Context) (int, error)
- func (nedsq *NotificationEventDeliveryStatusQuery) CountX(ctx context.Context) int
- func (c *NotificationEventDeliveryStatusQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (nedsq *NotificationEventDeliveryStatusQuery) Exist(ctx context.Context) (bool, error)
- func (nedsq *NotificationEventDeliveryStatusQuery) ExistX(ctx context.Context) bool
- func (nedsq *NotificationEventDeliveryStatusQuery) First(ctx context.Context) (*NotificationEventDeliveryStatus, error)
- func (nedsq *NotificationEventDeliveryStatusQuery) FirstID(ctx context.Context) (id string, err error)
- func (nedsq *NotificationEventDeliveryStatusQuery) FirstIDX(ctx context.Context) string
- func (nedsq *NotificationEventDeliveryStatusQuery) FirstX(ctx context.Context) *NotificationEventDeliveryStatus
- func (nedsq *NotificationEventDeliveryStatusQuery) ForShare(opts ...sql.LockOption) *NotificationEventDeliveryStatusQuery
- func (nedsq *NotificationEventDeliveryStatusQuery) ForUpdate(opts ...sql.LockOption) *NotificationEventDeliveryStatusQuery
- func (nedsq *NotificationEventDeliveryStatusQuery) GroupBy(field string, fields ...string) *NotificationEventDeliveryStatusGroupBy
- func (nedsq *NotificationEventDeliveryStatusQuery) IDs(ctx context.Context) (ids []string, err error)
- func (nedsq *NotificationEventDeliveryStatusQuery) IDsX(ctx context.Context) []string
- func (nedsq *NotificationEventDeliveryStatusQuery) Limit(limit int) *NotificationEventDeliveryStatusQuery
- func (nedsq *NotificationEventDeliveryStatusQuery) Offset(offset int) *NotificationEventDeliveryStatusQuery
- func (nedsq *NotificationEventDeliveryStatusQuery) Only(ctx context.Context) (*NotificationEventDeliveryStatus, error)
- func (nedsq *NotificationEventDeliveryStatusQuery) OnlyID(ctx context.Context) (id string, err error)
- func (nedsq *NotificationEventDeliveryStatusQuery) OnlyIDX(ctx context.Context) string
- func (nedsq *NotificationEventDeliveryStatusQuery) OnlyX(ctx context.Context) *NotificationEventDeliveryStatus
- func (nedsq *NotificationEventDeliveryStatusQuery) Order(o ...notificationeventdeliverystatus.OrderOption) *NotificationEventDeliveryStatusQuery
- func (neds *NotificationEventDeliveryStatusQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*NotificationEventDeliveryStatus], error)
- func (c *NotificationEventDeliveryStatusQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (nedsq *NotificationEventDeliveryStatusQuery) QueryEvents() *NotificationEventQuery
- func (nedsq *NotificationEventDeliveryStatusQuery) Select(fields ...string) *NotificationEventDeliveryStatusSelect
- func (nedsq *NotificationEventDeliveryStatusQuery) Unique(unique bool) *NotificationEventDeliveryStatusQuery
- func (nedsq *NotificationEventDeliveryStatusQuery) Where(ps ...predicate.NotificationEventDeliveryStatus) *NotificationEventDeliveryStatusQuery
- func (nedsq *NotificationEventDeliveryStatusQuery) WithEvents(opts ...func(*NotificationEventQuery)) *NotificationEventDeliveryStatusQuery
- type NotificationEventDeliveryStatusSelect
- func (nedss *NotificationEventDeliveryStatusSelect) Aggregate(fns ...AggregateFunc) *NotificationEventDeliveryStatusSelect
- func (s *NotificationEventDeliveryStatusSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *NotificationEventDeliveryStatusSelect) BoolX(ctx context.Context) bool
- func (s *NotificationEventDeliveryStatusSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *NotificationEventDeliveryStatusSelect) BoolsX(ctx context.Context) []bool
- func (c NotificationEventDeliveryStatusSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *NotificationEventDeliveryStatusSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *NotificationEventDeliveryStatusSelect) Float64X(ctx context.Context) float64
- func (s *NotificationEventDeliveryStatusSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *NotificationEventDeliveryStatusSelect) Float64sX(ctx context.Context) []float64
- func (s *NotificationEventDeliveryStatusSelect) Int(ctx context.Context) (_ int, err error)
- func (s *NotificationEventDeliveryStatusSelect) IntX(ctx context.Context) int
- func (s *NotificationEventDeliveryStatusSelect) Ints(ctx context.Context) ([]int, error)
- func (s *NotificationEventDeliveryStatusSelect) IntsX(ctx context.Context) []int
- func (c NotificationEventDeliveryStatusSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (nedss *NotificationEventDeliveryStatusSelect) Scan(ctx context.Context, v any) error
- func (s *NotificationEventDeliveryStatusSelect) ScanX(ctx context.Context, v any)
- func (s *NotificationEventDeliveryStatusSelect) String(ctx context.Context) (_ string, err error)
- func (s *NotificationEventDeliveryStatusSelect) StringX(ctx context.Context) string
- func (s *NotificationEventDeliveryStatusSelect) Strings(ctx context.Context) ([]string, error)
- func (s *NotificationEventDeliveryStatusSelect) StringsX(ctx context.Context) []string
- type NotificationEventDeliveryStatusSlice
- type NotificationEventDeliveryStatusUpdate
- func (nedsu *NotificationEventDeliveryStatusUpdate) AddEventIDs(ids ...string) *NotificationEventDeliveryStatusUpdate
- func (nedsu *NotificationEventDeliveryStatusUpdate) AddEvents(n ...*NotificationEvent) *NotificationEventDeliveryStatusUpdate
- func (nedsu *NotificationEventDeliveryStatusUpdate) ClearEvents() *NotificationEventDeliveryStatusUpdate
- func (nedsu *NotificationEventDeliveryStatusUpdate) ClearReason() *NotificationEventDeliveryStatusUpdate
- func (nedsu *NotificationEventDeliveryStatusUpdate) Exec(ctx context.Context) error
- func (c *NotificationEventDeliveryStatusUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (nedsu *NotificationEventDeliveryStatusUpdate) ExecX(ctx context.Context)
- func (nedsu *NotificationEventDeliveryStatusUpdate) Mutation() *NotificationEventDeliveryStatusMutation
- func (c *NotificationEventDeliveryStatusUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (nedsu *NotificationEventDeliveryStatusUpdate) RemoveEventIDs(ids ...string) *NotificationEventDeliveryStatusUpdate
- func (nedsu *NotificationEventDeliveryStatusUpdate) RemoveEvents(n ...*NotificationEvent) *NotificationEventDeliveryStatusUpdate
- func (nedsu *NotificationEventDeliveryStatusUpdate) Save(ctx context.Context) (int, error)
- func (nedsu *NotificationEventDeliveryStatusUpdate) SaveX(ctx context.Context) int
- func (nedsu *NotificationEventDeliveryStatusUpdate) SetNillableReason(s *string) *NotificationEventDeliveryStatusUpdate
- func (nedsu *NotificationEventDeliveryStatusUpdate) SetNillableState(ndss *notification.EventDeliveryStatusState) *NotificationEventDeliveryStatusUpdate
- func (u *NotificationEventDeliveryStatusUpdate) SetOrClearReason(value *string) *NotificationEventDeliveryStatusUpdate
- func (nedsu *NotificationEventDeliveryStatusUpdate) SetReason(s string) *NotificationEventDeliveryStatusUpdate
- func (nedsu *NotificationEventDeliveryStatusUpdate) SetState(ndss notification.EventDeliveryStatusState) *NotificationEventDeliveryStatusUpdate
- func (nedsu *NotificationEventDeliveryStatusUpdate) SetUpdatedAt(t time.Time) *NotificationEventDeliveryStatusUpdate
- func (nedsu *NotificationEventDeliveryStatusUpdate) Where(ps ...predicate.NotificationEventDeliveryStatus) *NotificationEventDeliveryStatusUpdate
- type NotificationEventDeliveryStatusUpdateOne
- func (nedsuo *NotificationEventDeliveryStatusUpdateOne) AddEventIDs(ids ...string) *NotificationEventDeliveryStatusUpdateOne
- func (nedsuo *NotificationEventDeliveryStatusUpdateOne) AddEvents(n ...*NotificationEvent) *NotificationEventDeliveryStatusUpdateOne
- func (nedsuo *NotificationEventDeliveryStatusUpdateOne) ClearEvents() *NotificationEventDeliveryStatusUpdateOne
- func (nedsuo *NotificationEventDeliveryStatusUpdateOne) ClearReason() *NotificationEventDeliveryStatusUpdateOne
- func (nedsuo *NotificationEventDeliveryStatusUpdateOne) Exec(ctx context.Context) error
- func (c *NotificationEventDeliveryStatusUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (nedsuo *NotificationEventDeliveryStatusUpdateOne) ExecX(ctx context.Context)
- func (nedsuo *NotificationEventDeliveryStatusUpdateOne) Mutation() *NotificationEventDeliveryStatusMutation
- func (c *NotificationEventDeliveryStatusUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (nedsuo *NotificationEventDeliveryStatusUpdateOne) RemoveEventIDs(ids ...string) *NotificationEventDeliveryStatusUpdateOne
- func (nedsuo *NotificationEventDeliveryStatusUpdateOne) RemoveEvents(n ...*NotificationEvent) *NotificationEventDeliveryStatusUpdateOne
- func (nedsuo *NotificationEventDeliveryStatusUpdateOne) Save(ctx context.Context) (*NotificationEventDeliveryStatus, error)
- func (nedsuo *NotificationEventDeliveryStatusUpdateOne) SaveX(ctx context.Context) *NotificationEventDeliveryStatus
- func (nedsuo *NotificationEventDeliveryStatusUpdateOne) Select(field string, fields ...string) *NotificationEventDeliveryStatusUpdateOne
- func (nedsuo *NotificationEventDeliveryStatusUpdateOne) SetNillableReason(s *string) *NotificationEventDeliveryStatusUpdateOne
- func (nedsuo *NotificationEventDeliveryStatusUpdateOne) SetNillableState(ndss *notification.EventDeliveryStatusState) *NotificationEventDeliveryStatusUpdateOne
- func (u *NotificationEventDeliveryStatusUpdateOne) SetOrClearReason(value *string) *NotificationEventDeliveryStatusUpdateOne
- func (nedsuo *NotificationEventDeliveryStatusUpdateOne) SetReason(s string) *NotificationEventDeliveryStatusUpdateOne
- func (nedsuo *NotificationEventDeliveryStatusUpdateOne) SetState(ndss notification.EventDeliveryStatusState) *NotificationEventDeliveryStatusUpdateOne
- func (nedsuo *NotificationEventDeliveryStatusUpdateOne) SetUpdatedAt(t time.Time) *NotificationEventDeliveryStatusUpdateOne
- func (nedsuo *NotificationEventDeliveryStatusUpdateOne) Where(ps ...predicate.NotificationEventDeliveryStatus) *NotificationEventDeliveryStatusUpdateOne
- type NotificationEventDeliveryStatusUpsert
- func (u *NotificationEventDeliveryStatusUpsert) ClearReason() *NotificationEventDeliveryStatusUpsert
- func (u *NotificationEventDeliveryStatusUpsert) SetReason(v string) *NotificationEventDeliveryStatusUpsert
- func (u *NotificationEventDeliveryStatusUpsert) SetState(v notification.EventDeliveryStatusState) *NotificationEventDeliveryStatusUpsert
- func (u *NotificationEventDeliveryStatusUpsert) SetUpdatedAt(v time.Time) *NotificationEventDeliveryStatusUpsert
- func (u *NotificationEventDeliveryStatusUpsert) UpdateReason() *NotificationEventDeliveryStatusUpsert
- func (u *NotificationEventDeliveryStatusUpsert) UpdateState() *NotificationEventDeliveryStatusUpsert
- func (u *NotificationEventDeliveryStatusUpsert) UpdateUpdatedAt() *NotificationEventDeliveryStatusUpsert
- type NotificationEventDeliveryStatusUpsertBulk
- func (u *NotificationEventDeliveryStatusUpsertBulk) ClearReason() *NotificationEventDeliveryStatusUpsertBulk
- func (u *NotificationEventDeliveryStatusUpsertBulk) DoNothing() *NotificationEventDeliveryStatusUpsertBulk
- func (u *NotificationEventDeliveryStatusUpsertBulk) Exec(ctx context.Context) error
- func (u *NotificationEventDeliveryStatusUpsertBulk) ExecX(ctx context.Context)
- func (u *NotificationEventDeliveryStatusUpsertBulk) Ignore() *NotificationEventDeliveryStatusUpsertBulk
- func (u *NotificationEventDeliveryStatusUpsertBulk) SetReason(v string) *NotificationEventDeliveryStatusUpsertBulk
- func (u *NotificationEventDeliveryStatusUpsertBulk) SetState(v notification.EventDeliveryStatusState) *NotificationEventDeliveryStatusUpsertBulk
- func (u *NotificationEventDeliveryStatusUpsertBulk) SetUpdatedAt(v time.Time) *NotificationEventDeliveryStatusUpsertBulk
- func (u *NotificationEventDeliveryStatusUpsertBulk) Update(set func(*NotificationEventDeliveryStatusUpsert)) *NotificationEventDeliveryStatusUpsertBulk
- func (u *NotificationEventDeliveryStatusUpsertBulk) UpdateNewValues() *NotificationEventDeliveryStatusUpsertBulk
- func (u *NotificationEventDeliveryStatusUpsertBulk) UpdateReason() *NotificationEventDeliveryStatusUpsertBulk
- func (u *NotificationEventDeliveryStatusUpsertBulk) UpdateState() *NotificationEventDeliveryStatusUpsertBulk
- func (u *NotificationEventDeliveryStatusUpsertBulk) UpdateUpdatedAt() *NotificationEventDeliveryStatusUpsertBulk
- type NotificationEventDeliveryStatusUpsertOne
- func (u *NotificationEventDeliveryStatusUpsertOne) ClearReason() *NotificationEventDeliveryStatusUpsertOne
- func (u *NotificationEventDeliveryStatusUpsertOne) DoNothing() *NotificationEventDeliveryStatusUpsertOne
- func (u *NotificationEventDeliveryStatusUpsertOne) Exec(ctx context.Context) error
- func (u *NotificationEventDeliveryStatusUpsertOne) ExecX(ctx context.Context)
- func (u *NotificationEventDeliveryStatusUpsertOne) ID(ctx context.Context) (id string, err error)
- func (u *NotificationEventDeliveryStatusUpsertOne) IDX(ctx context.Context) string
- func (u *NotificationEventDeliveryStatusUpsertOne) Ignore() *NotificationEventDeliveryStatusUpsertOne
- func (u *NotificationEventDeliveryStatusUpsertOne) SetReason(v string) *NotificationEventDeliveryStatusUpsertOne
- func (u *NotificationEventDeliveryStatusUpsertOne) SetState(v notification.EventDeliveryStatusState) *NotificationEventDeliveryStatusUpsertOne
- func (u *NotificationEventDeliveryStatusUpsertOne) SetUpdatedAt(v time.Time) *NotificationEventDeliveryStatusUpsertOne
- func (u *NotificationEventDeliveryStatusUpsertOne) Update(set func(*NotificationEventDeliveryStatusUpsert)) *NotificationEventDeliveryStatusUpsertOne
- func (u *NotificationEventDeliveryStatusUpsertOne) UpdateNewValues() *NotificationEventDeliveryStatusUpsertOne
- func (u *NotificationEventDeliveryStatusUpsertOne) UpdateReason() *NotificationEventDeliveryStatusUpsertOne
- func (u *NotificationEventDeliveryStatusUpsertOne) UpdateState() *NotificationEventDeliveryStatusUpsertOne
- func (u *NotificationEventDeliveryStatusUpsertOne) UpdateUpdatedAt() *NotificationEventDeliveryStatusUpsertOne
- type NotificationEventEdges
- type NotificationEventGroupBy
- func (negb *NotificationEventGroupBy) Aggregate(fns ...AggregateFunc) *NotificationEventGroupBy
- func (s *NotificationEventGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *NotificationEventGroupBy) BoolX(ctx context.Context) bool
- func (s *NotificationEventGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *NotificationEventGroupBy) BoolsX(ctx context.Context) []bool
- func (s *NotificationEventGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *NotificationEventGroupBy) Float64X(ctx context.Context) float64
- func (s *NotificationEventGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *NotificationEventGroupBy) Float64sX(ctx context.Context) []float64
- func (s *NotificationEventGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *NotificationEventGroupBy) IntX(ctx context.Context) int
- func (s *NotificationEventGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *NotificationEventGroupBy) IntsX(ctx context.Context) []int
- func (negb *NotificationEventGroupBy) Scan(ctx context.Context, v any) error
- func (s *NotificationEventGroupBy) ScanX(ctx context.Context, v any)
- func (s *NotificationEventGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *NotificationEventGroupBy) StringX(ctx context.Context) string
- func (s *NotificationEventGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *NotificationEventGroupBy) StringsX(ctx context.Context) []string
- type NotificationEventMutation
- func (m *NotificationEventMutation) AddDeliveryStatusIDs(ids ...string)
- func (m *NotificationEventMutation) AddField(name string, value ent.Value) error
- func (m *NotificationEventMutation) AddedEdges() []string
- func (m *NotificationEventMutation) AddedField(name string) (ent.Value, bool)
- func (m *NotificationEventMutation) AddedFields() []string
- func (m *NotificationEventMutation) AddedIDs(name string) []ent.Value
- func (m *NotificationEventMutation) Annotations() (r map[string]interface{}, exists bool)
- func (m *NotificationEventMutation) AnnotationsCleared() bool
- func (m *NotificationEventMutation) ClearAnnotations()
- func (m *NotificationEventMutation) ClearDeliveryStatuses()
- func (m *NotificationEventMutation) ClearEdge(name string) error
- func (m *NotificationEventMutation) ClearField(name string) error
- func (m *NotificationEventMutation) ClearRules()
- func (m *NotificationEventMutation) ClearedEdges() []string
- func (m *NotificationEventMutation) ClearedFields() []string
- func (m NotificationEventMutation) Client() *Client
- func (m *NotificationEventMutation) CreatedAt() (r time.Time, exists bool)
- func (m *NotificationEventMutation) DeliveryStatusesCleared() bool
- func (m *NotificationEventMutation) DeliveryStatusesIDs() (ids []string)
- func (m *NotificationEventMutation) EdgeCleared(name string) bool
- func (c *NotificationEventMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *NotificationEventMutation) Field(name string) (ent.Value, bool)
- func (m *NotificationEventMutation) FieldCleared(name string) bool
- func (m *NotificationEventMutation) Fields() []string
- func (m *NotificationEventMutation) GetType() (r notification.EventType, exists bool)
- func (m *NotificationEventMutation) ID() (id string, exists bool)
- func (m *NotificationEventMutation) IDs(ctx context.Context) ([]string, error)
- func (m *NotificationEventMutation) Namespace() (r string, exists bool)
- func (m *NotificationEventMutation) OldAnnotations(ctx context.Context) (v map[string]interface{}, err error)
- func (m *NotificationEventMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *NotificationEventMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *NotificationEventMutation) OldNamespace(ctx context.Context) (v string, err error)
- func (m *NotificationEventMutation) OldPayload(ctx context.Context) (v string, err error)
- func (m *NotificationEventMutation) OldRuleID(ctx context.Context) (v string, err error)
- func (m *NotificationEventMutation) OldType(ctx context.Context) (v notification.EventType, err error)
- func (m *NotificationEventMutation) Op() Op
- func (m *NotificationEventMutation) Payload() (r string, exists bool)
- func (c *NotificationEventMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *NotificationEventMutation) RemoveDeliveryStatusIDs(ids ...string)
- func (m *NotificationEventMutation) RemovedDeliveryStatusesIDs() (ids []string)
- func (m *NotificationEventMutation) RemovedEdges() []string
- func (m *NotificationEventMutation) RemovedIDs(name string) []ent.Value
- func (m *NotificationEventMutation) ResetAnnotations()
- func (m *NotificationEventMutation) ResetCreatedAt()
- func (m *NotificationEventMutation) ResetDeliveryStatuses()
- func (m *NotificationEventMutation) ResetEdge(name string) error
- func (m *NotificationEventMutation) ResetField(name string) error
- func (m *NotificationEventMutation) ResetNamespace()
- func (m *NotificationEventMutation) ResetPayload()
- func (m *NotificationEventMutation) ResetRuleID()
- func (m *NotificationEventMutation) ResetRules()
- func (m *NotificationEventMutation) ResetType()
- func (m *NotificationEventMutation) RuleID() (r string, exists bool)
- func (m *NotificationEventMutation) RulesCleared() bool
- func (m *NotificationEventMutation) RulesID() (id string, exists bool)
- func (m *NotificationEventMutation) RulesIDs() (ids []string)
- func (m *NotificationEventMutation) SetAnnotations(value map[string]interface{})
- func (m *NotificationEventMutation) SetCreatedAt(t time.Time)
- func (m *NotificationEventMutation) SetField(name string, value ent.Value) error
- func (m *NotificationEventMutation) SetID(id string)
- func (m *NotificationEventMutation) SetNamespace(s string)
- func (m *NotificationEventMutation) SetOp(op Op)
- func (m *NotificationEventMutation) SetPayload(s string)
- func (m *NotificationEventMutation) SetRuleID(s string)
- func (m *NotificationEventMutation) SetRulesID(id string)
- func (m *NotificationEventMutation) SetType(nt notification.EventType)
- func (m NotificationEventMutation) Tx() (*Tx, error)
- func (m *NotificationEventMutation) Type() string
- func (m *NotificationEventMutation) Where(ps ...predicate.NotificationEvent)
- func (m *NotificationEventMutation) WhereP(ps ...func(*sql.Selector))
- type NotificationEventQuery
- func (neq *NotificationEventQuery) Aggregate(fns ...AggregateFunc) *NotificationEventSelect
- func (neq *NotificationEventQuery) All(ctx context.Context) ([]*NotificationEvent, error)
- func (neq *NotificationEventQuery) AllX(ctx context.Context) []*NotificationEvent
- func (neq *NotificationEventQuery) Clone() *NotificationEventQuery
- func (neq *NotificationEventQuery) Count(ctx context.Context) (int, error)
- func (neq *NotificationEventQuery) CountX(ctx context.Context) int
- func (c *NotificationEventQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (neq *NotificationEventQuery) Exist(ctx context.Context) (bool, error)
- func (neq *NotificationEventQuery) ExistX(ctx context.Context) bool
- func (neq *NotificationEventQuery) First(ctx context.Context) (*NotificationEvent, error)
- func (neq *NotificationEventQuery) FirstID(ctx context.Context) (id string, err error)
- func (neq *NotificationEventQuery) FirstIDX(ctx context.Context) string
- func (neq *NotificationEventQuery) FirstX(ctx context.Context) *NotificationEvent
- func (neq *NotificationEventQuery) ForShare(opts ...sql.LockOption) *NotificationEventQuery
- func (neq *NotificationEventQuery) ForUpdate(opts ...sql.LockOption) *NotificationEventQuery
- func (neq *NotificationEventQuery) GroupBy(field string, fields ...string) *NotificationEventGroupBy
- func (neq *NotificationEventQuery) IDs(ctx context.Context) (ids []string, err error)
- func (neq *NotificationEventQuery) IDsX(ctx context.Context) []string
- func (neq *NotificationEventQuery) Limit(limit int) *NotificationEventQuery
- func (neq *NotificationEventQuery) Offset(offset int) *NotificationEventQuery
- func (neq *NotificationEventQuery) Only(ctx context.Context) (*NotificationEvent, error)
- func (neq *NotificationEventQuery) OnlyID(ctx context.Context) (id string, err error)
- func (neq *NotificationEventQuery) OnlyIDX(ctx context.Context) string
- func (neq *NotificationEventQuery) OnlyX(ctx context.Context) *NotificationEvent
- func (neq *NotificationEventQuery) Order(o ...notificationevent.OrderOption) *NotificationEventQuery
- func (ne *NotificationEventQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*NotificationEvent], error)
- func (c *NotificationEventQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (neq *NotificationEventQuery) QueryDeliveryStatuses() *NotificationEventDeliveryStatusQuery
- func (neq *NotificationEventQuery) QueryRules() *NotificationRuleQuery
- func (neq *NotificationEventQuery) Select(fields ...string) *NotificationEventSelect
- func (neq *NotificationEventQuery) Unique(unique bool) *NotificationEventQuery
- func (neq *NotificationEventQuery) Where(ps ...predicate.NotificationEvent) *NotificationEventQuery
- func (neq *NotificationEventQuery) WithDeliveryStatuses(opts ...func(*NotificationEventDeliveryStatusQuery)) *NotificationEventQuery
- func (neq *NotificationEventQuery) WithRules(opts ...func(*NotificationRuleQuery)) *NotificationEventQuery
- type NotificationEventSelect
- func (nes *NotificationEventSelect) Aggregate(fns ...AggregateFunc) *NotificationEventSelect
- func (s *NotificationEventSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *NotificationEventSelect) BoolX(ctx context.Context) bool
- func (s *NotificationEventSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *NotificationEventSelect) BoolsX(ctx context.Context) []bool
- func (c NotificationEventSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *NotificationEventSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *NotificationEventSelect) Float64X(ctx context.Context) float64
- func (s *NotificationEventSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *NotificationEventSelect) Float64sX(ctx context.Context) []float64
- func (s *NotificationEventSelect) Int(ctx context.Context) (_ int, err error)
- func (s *NotificationEventSelect) IntX(ctx context.Context) int
- func (s *NotificationEventSelect) Ints(ctx context.Context) ([]int, error)
- func (s *NotificationEventSelect) IntsX(ctx context.Context) []int
- func (c NotificationEventSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (nes *NotificationEventSelect) Scan(ctx context.Context, v any) error
- func (s *NotificationEventSelect) ScanX(ctx context.Context, v any)
- func (s *NotificationEventSelect) String(ctx context.Context) (_ string, err error)
- func (s *NotificationEventSelect) StringX(ctx context.Context) string
- func (s *NotificationEventSelect) Strings(ctx context.Context) ([]string, error)
- func (s *NotificationEventSelect) StringsX(ctx context.Context) []string
- type NotificationEventUpdate
- func (neu *NotificationEventUpdate) AddDeliveryStatusIDs(ids ...string) *NotificationEventUpdate
- func (neu *NotificationEventUpdate) AddDeliveryStatuses(n ...*NotificationEventDeliveryStatus) *NotificationEventUpdate
- func (neu *NotificationEventUpdate) ClearAnnotations() *NotificationEventUpdate
- func (neu *NotificationEventUpdate) ClearDeliveryStatuses() *NotificationEventUpdate
- func (neu *NotificationEventUpdate) Exec(ctx context.Context) error
- func (c *NotificationEventUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (neu *NotificationEventUpdate) ExecX(ctx context.Context)
- func (neu *NotificationEventUpdate) Mutation() *NotificationEventMutation
- func (c *NotificationEventUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (neu *NotificationEventUpdate) RemoveDeliveryStatusIDs(ids ...string) *NotificationEventUpdate
- func (neu *NotificationEventUpdate) RemoveDeliveryStatuses(n ...*NotificationEventDeliveryStatus) *NotificationEventUpdate
- func (neu *NotificationEventUpdate) Save(ctx context.Context) (int, error)
- func (neu *NotificationEventUpdate) SaveX(ctx context.Context) int
- func (neu *NotificationEventUpdate) SetAnnotations(m map[string]interface{}) *NotificationEventUpdate
- func (neu *NotificationEventUpdate) SetNillablePayload(s *string) *NotificationEventUpdate
- func (u *NotificationEventUpdate) SetOrClearAnnotations(value *map[string]interface{}) *NotificationEventUpdate
- func (neu *NotificationEventUpdate) SetPayload(s string) *NotificationEventUpdate
- func (neu *NotificationEventUpdate) Where(ps ...predicate.NotificationEvent) *NotificationEventUpdate
- type NotificationEventUpdateOne
- func (neuo *NotificationEventUpdateOne) AddDeliveryStatusIDs(ids ...string) *NotificationEventUpdateOne
- func (neuo *NotificationEventUpdateOne) AddDeliveryStatuses(n ...*NotificationEventDeliveryStatus) *NotificationEventUpdateOne
- func (neuo *NotificationEventUpdateOne) ClearAnnotations() *NotificationEventUpdateOne
- func (neuo *NotificationEventUpdateOne) ClearDeliveryStatuses() *NotificationEventUpdateOne
- func (neuo *NotificationEventUpdateOne) Exec(ctx context.Context) error
- func (c *NotificationEventUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (neuo *NotificationEventUpdateOne) ExecX(ctx context.Context)
- func (neuo *NotificationEventUpdateOne) Mutation() *NotificationEventMutation
- func (c *NotificationEventUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (neuo *NotificationEventUpdateOne) RemoveDeliveryStatusIDs(ids ...string) *NotificationEventUpdateOne
- func (neuo *NotificationEventUpdateOne) RemoveDeliveryStatuses(n ...*NotificationEventDeliveryStatus) *NotificationEventUpdateOne
- func (neuo *NotificationEventUpdateOne) Save(ctx context.Context) (*NotificationEvent, error)
- func (neuo *NotificationEventUpdateOne) SaveX(ctx context.Context) *NotificationEvent
- func (neuo *NotificationEventUpdateOne) Select(field string, fields ...string) *NotificationEventUpdateOne
- func (neuo *NotificationEventUpdateOne) SetAnnotations(m map[string]interface{}) *NotificationEventUpdateOne
- func (neuo *NotificationEventUpdateOne) SetNillablePayload(s *string) *NotificationEventUpdateOne
- func (u *NotificationEventUpdateOne) SetOrClearAnnotations(value *map[string]interface{}) *NotificationEventUpdateOne
- func (neuo *NotificationEventUpdateOne) SetPayload(s string) *NotificationEventUpdateOne
- func (neuo *NotificationEventUpdateOne) Where(ps ...predicate.NotificationEvent) *NotificationEventUpdateOne
- type NotificationEventUpsert
- func (u *NotificationEventUpsert) ClearAnnotations() *NotificationEventUpsert
- func (u *NotificationEventUpsert) SetAnnotations(v map[string]interface{}) *NotificationEventUpsert
- func (u *NotificationEventUpsert) SetPayload(v string) *NotificationEventUpsert
- func (u *NotificationEventUpsert) UpdateAnnotations() *NotificationEventUpsert
- func (u *NotificationEventUpsert) UpdatePayload() *NotificationEventUpsert
- type NotificationEventUpsertBulk
- func (u *NotificationEventUpsertBulk) ClearAnnotations() *NotificationEventUpsertBulk
- func (u *NotificationEventUpsertBulk) DoNothing() *NotificationEventUpsertBulk
- func (u *NotificationEventUpsertBulk) Exec(ctx context.Context) error
- func (u *NotificationEventUpsertBulk) ExecX(ctx context.Context)
- func (u *NotificationEventUpsertBulk) Ignore() *NotificationEventUpsertBulk
- func (u *NotificationEventUpsertBulk) SetAnnotations(v map[string]interface{}) *NotificationEventUpsertBulk
- func (u *NotificationEventUpsertBulk) SetPayload(v string) *NotificationEventUpsertBulk
- func (u *NotificationEventUpsertBulk) Update(set func(*NotificationEventUpsert)) *NotificationEventUpsertBulk
- func (u *NotificationEventUpsertBulk) UpdateAnnotations() *NotificationEventUpsertBulk
- func (u *NotificationEventUpsertBulk) UpdateNewValues() *NotificationEventUpsertBulk
- func (u *NotificationEventUpsertBulk) UpdatePayload() *NotificationEventUpsertBulk
- type NotificationEventUpsertOne
- func (u *NotificationEventUpsertOne) ClearAnnotations() *NotificationEventUpsertOne
- func (u *NotificationEventUpsertOne) DoNothing() *NotificationEventUpsertOne
- func (u *NotificationEventUpsertOne) Exec(ctx context.Context) error
- func (u *NotificationEventUpsertOne) ExecX(ctx context.Context)
- func (u *NotificationEventUpsertOne) ID(ctx context.Context) (id string, err error)
- func (u *NotificationEventUpsertOne) IDX(ctx context.Context) string
- func (u *NotificationEventUpsertOne) Ignore() *NotificationEventUpsertOne
- func (u *NotificationEventUpsertOne) SetAnnotations(v map[string]interface{}) *NotificationEventUpsertOne
- func (u *NotificationEventUpsertOne) SetPayload(v string) *NotificationEventUpsertOne
- func (u *NotificationEventUpsertOne) Update(set func(*NotificationEventUpsert)) *NotificationEventUpsertOne
- func (u *NotificationEventUpsertOne) UpdateAnnotations() *NotificationEventUpsertOne
- func (u *NotificationEventUpsertOne) UpdateNewValues() *NotificationEventUpsertOne
- func (u *NotificationEventUpsertOne) UpdatePayload() *NotificationEventUpsertOne
- type NotificationEvents
- type NotificationRule
- func (c *NotificationRule) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (nr *NotificationRule) QueryChannels() *NotificationChannelQuery
- func (c *NotificationRule) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (nr *NotificationRule) QueryEvents() *NotificationEventQuery
- func (nr *NotificationRule) String() string
- func (nr *NotificationRule) Unwrap() *NotificationRule
- func (nr *NotificationRule) Update() *NotificationRuleUpdateOne
- func (nr *NotificationRule) Value(name string) (ent.Value, error)
- type NotificationRuleClient
- func (c *NotificationRuleClient) Create() *NotificationRuleCreate
- func (c *NotificationRuleClient) CreateBulk(builders ...*NotificationRuleCreate) *NotificationRuleCreateBulk
- func (c *NotificationRuleClient) Delete() *NotificationRuleDelete
- func (c *NotificationRuleClient) DeleteOne(nr *NotificationRule) *NotificationRuleDeleteOne
- func (c *NotificationRuleClient) DeleteOneID(id string) *NotificationRuleDeleteOne
- func (c *NotificationRuleClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *NotificationRuleClient) Get(ctx context.Context, id string) (*NotificationRule, error)
- func (c *NotificationRuleClient) GetX(ctx context.Context, id string) *NotificationRule
- func (c *NotificationRuleClient) Hooks() []Hook
- func (c *NotificationRuleClient) Intercept(interceptors ...Interceptor)
- func (c *NotificationRuleClient) Interceptors() []Interceptor
- func (c *NotificationRuleClient) MapCreateBulk(slice any, setFunc func(*NotificationRuleCreate, int)) *NotificationRuleCreateBulk
- func (c *NotificationRuleClient) Query() *NotificationRuleQuery
- func (c *NotificationRuleClient) QueryChannels(nr *NotificationRule) *NotificationChannelQuery
- func (c *NotificationRuleClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *NotificationRuleClient) QueryEvents(nr *NotificationRule) *NotificationEventQuery
- func (c *NotificationRuleClient) Update() *NotificationRuleUpdate
- func (c *NotificationRuleClient) UpdateOne(nr *NotificationRule) *NotificationRuleUpdateOne
- func (c *NotificationRuleClient) UpdateOneID(id string) *NotificationRuleUpdateOne
- func (c *NotificationRuleClient) Use(hooks ...Hook)
- type NotificationRuleCreate
- func (nrc *NotificationRuleCreate) AddChannelIDs(ids ...string) *NotificationRuleCreate
- func (nrc *NotificationRuleCreate) AddChannels(n ...*NotificationChannel) *NotificationRuleCreate
- func (nrc *NotificationRuleCreate) AddEventIDs(ids ...string) *NotificationRuleCreate
- func (nrc *NotificationRuleCreate) AddEvents(n ...*NotificationEvent) *NotificationRuleCreate
- func (nrc *NotificationRuleCreate) Exec(ctx context.Context) error
- func (c *NotificationRuleCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (nrc *NotificationRuleCreate) ExecX(ctx context.Context)
- func (nrc *NotificationRuleCreate) Mutation() *NotificationRuleMutation
- func (nrc *NotificationRuleCreate) OnConflict(opts ...sql.ConflictOption) *NotificationRuleUpsertOne
- func (nrc *NotificationRuleCreate) OnConflictColumns(columns ...string) *NotificationRuleUpsertOne
- func (c *NotificationRuleCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (nrc *NotificationRuleCreate) Save(ctx context.Context) (*NotificationRule, error)
- func (nrc *NotificationRuleCreate) SaveX(ctx context.Context) *NotificationRule
- func (nrc *NotificationRuleCreate) SetConfig(nc notification.RuleConfig) *NotificationRuleCreate
- func (nrc *NotificationRuleCreate) SetCreatedAt(t time.Time) *NotificationRuleCreate
- func (nrc *NotificationRuleCreate) SetDeletedAt(t time.Time) *NotificationRuleCreate
- func (nrc *NotificationRuleCreate) SetDisabled(b bool) *NotificationRuleCreate
- func (nrc *NotificationRuleCreate) SetID(s string) *NotificationRuleCreate
- func (nrc *NotificationRuleCreate) SetName(s string) *NotificationRuleCreate
- func (nrc *NotificationRuleCreate) SetNamespace(s string) *NotificationRuleCreate
- func (nrc *NotificationRuleCreate) SetNillableCreatedAt(t *time.Time) *NotificationRuleCreate
- func (nrc *NotificationRuleCreate) SetNillableDeletedAt(t *time.Time) *NotificationRuleCreate
- func (nrc *NotificationRuleCreate) SetNillableDisabled(b *bool) *NotificationRuleCreate
- func (nrc *NotificationRuleCreate) SetNillableID(s *string) *NotificationRuleCreate
- func (nrc *NotificationRuleCreate) SetNillableUpdatedAt(t *time.Time) *NotificationRuleCreate
- func (nrc *NotificationRuleCreate) SetType(nt notification.RuleType) *NotificationRuleCreate
- func (nrc *NotificationRuleCreate) SetUpdatedAt(t time.Time) *NotificationRuleCreate
- type NotificationRuleCreateBulk
- func (nrcb *NotificationRuleCreateBulk) Exec(ctx context.Context) error
- func (c *NotificationRuleCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (nrcb *NotificationRuleCreateBulk) ExecX(ctx context.Context)
- func (nrcb *NotificationRuleCreateBulk) OnConflict(opts ...sql.ConflictOption) *NotificationRuleUpsertBulk
- func (nrcb *NotificationRuleCreateBulk) OnConflictColumns(columns ...string) *NotificationRuleUpsertBulk
- func (c *NotificationRuleCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (nrcb *NotificationRuleCreateBulk) Save(ctx context.Context) ([]*NotificationRule, error)
- func (nrcb *NotificationRuleCreateBulk) SaveX(ctx context.Context) []*NotificationRule
- type NotificationRuleDelete
- func (nrd *NotificationRuleDelete) Exec(ctx context.Context) (int, error)
- func (c *NotificationRuleDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (nrd *NotificationRuleDelete) ExecX(ctx context.Context) int
- func (c *NotificationRuleDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (nrd *NotificationRuleDelete) Where(ps ...predicate.NotificationRule) *NotificationRuleDelete
- type NotificationRuleDeleteOne
- type NotificationRuleEdges
- type NotificationRuleGroupBy
- func (nrgb *NotificationRuleGroupBy) Aggregate(fns ...AggregateFunc) *NotificationRuleGroupBy
- func (s *NotificationRuleGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *NotificationRuleGroupBy) BoolX(ctx context.Context) bool
- func (s *NotificationRuleGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *NotificationRuleGroupBy) BoolsX(ctx context.Context) []bool
- func (s *NotificationRuleGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *NotificationRuleGroupBy) Float64X(ctx context.Context) float64
- func (s *NotificationRuleGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *NotificationRuleGroupBy) Float64sX(ctx context.Context) []float64
- func (s *NotificationRuleGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *NotificationRuleGroupBy) IntX(ctx context.Context) int
- func (s *NotificationRuleGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *NotificationRuleGroupBy) IntsX(ctx context.Context) []int
- func (nrgb *NotificationRuleGroupBy) Scan(ctx context.Context, v any) error
- func (s *NotificationRuleGroupBy) ScanX(ctx context.Context, v any)
- func (s *NotificationRuleGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *NotificationRuleGroupBy) StringX(ctx context.Context) string
- func (s *NotificationRuleGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *NotificationRuleGroupBy) StringsX(ctx context.Context) []string
- type NotificationRuleMutation
- func (m *NotificationRuleMutation) AddChannelIDs(ids ...string)
- func (m *NotificationRuleMutation) AddEventIDs(ids ...string)
- func (m *NotificationRuleMutation) AddField(name string, value ent.Value) error
- func (m *NotificationRuleMutation) AddedEdges() []string
- func (m *NotificationRuleMutation) AddedField(name string) (ent.Value, bool)
- func (m *NotificationRuleMutation) AddedFields() []string
- func (m *NotificationRuleMutation) AddedIDs(name string) []ent.Value
- func (m *NotificationRuleMutation) ChannelsCleared() bool
- func (m *NotificationRuleMutation) ChannelsIDs() (ids []string)
- func (m *NotificationRuleMutation) ClearChannels()
- func (m *NotificationRuleMutation) ClearDeletedAt()
- func (m *NotificationRuleMutation) ClearDisabled()
- func (m *NotificationRuleMutation) ClearEdge(name string) error
- func (m *NotificationRuleMutation) ClearEvents()
- func (m *NotificationRuleMutation) ClearField(name string) error
- func (m *NotificationRuleMutation) ClearedEdges() []string
- func (m *NotificationRuleMutation) ClearedFields() []string
- func (m NotificationRuleMutation) Client() *Client
- func (m *NotificationRuleMutation) Config() (r notification.RuleConfig, exists bool)
- func (m *NotificationRuleMutation) CreatedAt() (r time.Time, exists bool)
- func (m *NotificationRuleMutation) DeletedAt() (r time.Time, exists bool)
- func (m *NotificationRuleMutation) DeletedAtCleared() bool
- func (m *NotificationRuleMutation) Disabled() (r bool, exists bool)
- func (m *NotificationRuleMutation) DisabledCleared() bool
- func (m *NotificationRuleMutation) EdgeCleared(name string) bool
- func (m *NotificationRuleMutation) EventsCleared() bool
- func (m *NotificationRuleMutation) EventsIDs() (ids []string)
- func (c *NotificationRuleMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *NotificationRuleMutation) Field(name string) (ent.Value, bool)
- func (m *NotificationRuleMutation) FieldCleared(name string) bool
- func (m *NotificationRuleMutation) Fields() []string
- func (m *NotificationRuleMutation) GetType() (r notification.RuleType, exists bool)
- func (m *NotificationRuleMutation) ID() (id string, exists bool)
- func (m *NotificationRuleMutation) IDs(ctx context.Context) ([]string, error)
- func (m *NotificationRuleMutation) Name() (r string, exists bool)
- func (m *NotificationRuleMutation) Namespace() (r string, exists bool)
- func (m *NotificationRuleMutation) OldConfig(ctx context.Context) (v notification.RuleConfig, err error)
- func (m *NotificationRuleMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *NotificationRuleMutation) OldDeletedAt(ctx context.Context) (v *time.Time, err error)
- func (m *NotificationRuleMutation) OldDisabled(ctx context.Context) (v bool, err error)
- func (m *NotificationRuleMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *NotificationRuleMutation) OldName(ctx context.Context) (v string, err error)
- func (m *NotificationRuleMutation) OldNamespace(ctx context.Context) (v string, err error)
- func (m *NotificationRuleMutation) OldType(ctx context.Context) (v notification.RuleType, err error)
- func (m *NotificationRuleMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *NotificationRuleMutation) Op() Op
- func (c *NotificationRuleMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *NotificationRuleMutation) RemoveChannelIDs(ids ...string)
- func (m *NotificationRuleMutation) RemoveEventIDs(ids ...string)
- func (m *NotificationRuleMutation) RemovedChannelsIDs() (ids []string)
- func (m *NotificationRuleMutation) RemovedEdges() []string
- func (m *NotificationRuleMutation) RemovedEventsIDs() (ids []string)
- func (m *NotificationRuleMutation) RemovedIDs(name string) []ent.Value
- func (m *NotificationRuleMutation) ResetChannels()
- func (m *NotificationRuleMutation) ResetConfig()
- func (m *NotificationRuleMutation) ResetCreatedAt()
- func (m *NotificationRuleMutation) ResetDeletedAt()
- func (m *NotificationRuleMutation) ResetDisabled()
- func (m *NotificationRuleMutation) ResetEdge(name string) error
- func (m *NotificationRuleMutation) ResetEvents()
- func (m *NotificationRuleMutation) ResetField(name string) error
- func (m *NotificationRuleMutation) ResetName()
- func (m *NotificationRuleMutation) ResetNamespace()
- func (m *NotificationRuleMutation) ResetType()
- func (m *NotificationRuleMutation) ResetUpdatedAt()
- func (m *NotificationRuleMutation) SetConfig(nc notification.RuleConfig)
- func (m *NotificationRuleMutation) SetCreatedAt(t time.Time)
- func (m *NotificationRuleMutation) SetDeletedAt(t time.Time)
- func (m *NotificationRuleMutation) SetDisabled(b bool)
- func (m *NotificationRuleMutation) SetField(name string, value ent.Value) error
- func (m *NotificationRuleMutation) SetID(id string)
- func (m *NotificationRuleMutation) SetName(s string)
- func (m *NotificationRuleMutation) SetNamespace(s string)
- func (m *NotificationRuleMutation) SetOp(op Op)
- func (m *NotificationRuleMutation) SetType(nt notification.RuleType)
- func (m *NotificationRuleMutation) SetUpdatedAt(t time.Time)
- func (m NotificationRuleMutation) Tx() (*Tx, error)
- func (m *NotificationRuleMutation) Type() string
- func (m *NotificationRuleMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *NotificationRuleMutation) Where(ps ...predicate.NotificationRule)
- func (m *NotificationRuleMutation) WhereP(ps ...func(*sql.Selector))
- type NotificationRuleQuery
- func (nrq *NotificationRuleQuery) Aggregate(fns ...AggregateFunc) *NotificationRuleSelect
- func (nrq *NotificationRuleQuery) All(ctx context.Context) ([]*NotificationRule, error)
- func (nrq *NotificationRuleQuery) AllX(ctx context.Context) []*NotificationRule
- func (nrq *NotificationRuleQuery) Clone() *NotificationRuleQuery
- func (nrq *NotificationRuleQuery) Count(ctx context.Context) (int, error)
- func (nrq *NotificationRuleQuery) CountX(ctx context.Context) int
- func (c *NotificationRuleQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (nrq *NotificationRuleQuery) Exist(ctx context.Context) (bool, error)
- func (nrq *NotificationRuleQuery) ExistX(ctx context.Context) bool
- func (nrq *NotificationRuleQuery) First(ctx context.Context) (*NotificationRule, error)
- func (nrq *NotificationRuleQuery) FirstID(ctx context.Context) (id string, err error)
- func (nrq *NotificationRuleQuery) FirstIDX(ctx context.Context) string
- func (nrq *NotificationRuleQuery) FirstX(ctx context.Context) *NotificationRule
- func (nrq *NotificationRuleQuery) ForShare(opts ...sql.LockOption) *NotificationRuleQuery
- func (nrq *NotificationRuleQuery) ForUpdate(opts ...sql.LockOption) *NotificationRuleQuery
- func (nrq *NotificationRuleQuery) GroupBy(field string, fields ...string) *NotificationRuleGroupBy
- func (nrq *NotificationRuleQuery) IDs(ctx context.Context) (ids []string, err error)
- func (nrq *NotificationRuleQuery) IDsX(ctx context.Context) []string
- func (nrq *NotificationRuleQuery) Limit(limit int) *NotificationRuleQuery
- func (nrq *NotificationRuleQuery) Offset(offset int) *NotificationRuleQuery
- func (nrq *NotificationRuleQuery) Only(ctx context.Context) (*NotificationRule, error)
- func (nrq *NotificationRuleQuery) OnlyID(ctx context.Context) (id string, err error)
- func (nrq *NotificationRuleQuery) OnlyIDX(ctx context.Context) string
- func (nrq *NotificationRuleQuery) OnlyX(ctx context.Context) *NotificationRule
- func (nrq *NotificationRuleQuery) Order(o ...notificationrule.OrderOption) *NotificationRuleQuery
- func (nr *NotificationRuleQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*NotificationRule], error)
- func (nrq *NotificationRuleQuery) QueryChannels() *NotificationChannelQuery
- func (c *NotificationRuleQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (nrq *NotificationRuleQuery) QueryEvents() *NotificationEventQuery
- func (nrq *NotificationRuleQuery) Select(fields ...string) *NotificationRuleSelect
- func (nrq *NotificationRuleQuery) Unique(unique bool) *NotificationRuleQuery
- func (nrq *NotificationRuleQuery) Where(ps ...predicate.NotificationRule) *NotificationRuleQuery
- func (nrq *NotificationRuleQuery) WithChannels(opts ...func(*NotificationChannelQuery)) *NotificationRuleQuery
- func (nrq *NotificationRuleQuery) WithEvents(opts ...func(*NotificationEventQuery)) *NotificationRuleQuery
- type NotificationRuleSelect
- func (nrs *NotificationRuleSelect) Aggregate(fns ...AggregateFunc) *NotificationRuleSelect
- func (s *NotificationRuleSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *NotificationRuleSelect) BoolX(ctx context.Context) bool
- func (s *NotificationRuleSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *NotificationRuleSelect) BoolsX(ctx context.Context) []bool
- func (c NotificationRuleSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *NotificationRuleSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *NotificationRuleSelect) Float64X(ctx context.Context) float64
- func (s *NotificationRuleSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *NotificationRuleSelect) Float64sX(ctx context.Context) []float64
- func (s *NotificationRuleSelect) Int(ctx context.Context) (_ int, err error)
- func (s *NotificationRuleSelect) IntX(ctx context.Context) int
- func (s *NotificationRuleSelect) Ints(ctx context.Context) ([]int, error)
- func (s *NotificationRuleSelect) IntsX(ctx context.Context) []int
- func (c NotificationRuleSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (nrs *NotificationRuleSelect) Scan(ctx context.Context, v any) error
- func (s *NotificationRuleSelect) ScanX(ctx context.Context, v any)
- func (s *NotificationRuleSelect) String(ctx context.Context) (_ string, err error)
- func (s *NotificationRuleSelect) StringX(ctx context.Context) string
- func (s *NotificationRuleSelect) Strings(ctx context.Context) ([]string, error)
- func (s *NotificationRuleSelect) StringsX(ctx context.Context) []string
- type NotificationRuleUpdate
- func (nru *NotificationRuleUpdate) AddChannelIDs(ids ...string) *NotificationRuleUpdate
- func (nru *NotificationRuleUpdate) AddChannels(n ...*NotificationChannel) *NotificationRuleUpdate
- func (nru *NotificationRuleUpdate) AddEventIDs(ids ...string) *NotificationRuleUpdate
- func (nru *NotificationRuleUpdate) AddEvents(n ...*NotificationEvent) *NotificationRuleUpdate
- func (nru *NotificationRuleUpdate) ClearChannels() *NotificationRuleUpdate
- func (nru *NotificationRuleUpdate) ClearDeletedAt() *NotificationRuleUpdate
- func (nru *NotificationRuleUpdate) ClearDisabled() *NotificationRuleUpdate
- func (nru *NotificationRuleUpdate) ClearEvents() *NotificationRuleUpdate
- func (nru *NotificationRuleUpdate) Exec(ctx context.Context) error
- func (c *NotificationRuleUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (nru *NotificationRuleUpdate) ExecX(ctx context.Context)
- func (nru *NotificationRuleUpdate) Mutation() *NotificationRuleMutation
- func (c *NotificationRuleUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (nru *NotificationRuleUpdate) RemoveChannelIDs(ids ...string) *NotificationRuleUpdate
- func (nru *NotificationRuleUpdate) RemoveChannels(n ...*NotificationChannel) *NotificationRuleUpdate
- func (nru *NotificationRuleUpdate) RemoveEventIDs(ids ...string) *NotificationRuleUpdate
- func (nru *NotificationRuleUpdate) RemoveEvents(n ...*NotificationEvent) *NotificationRuleUpdate
- func (nru *NotificationRuleUpdate) Save(ctx context.Context) (int, error)
- func (nru *NotificationRuleUpdate) SaveX(ctx context.Context) int
- func (nru *NotificationRuleUpdate) SetConfig(nc notification.RuleConfig) *NotificationRuleUpdate
- func (nru *NotificationRuleUpdate) SetDeletedAt(t time.Time) *NotificationRuleUpdate
- func (nru *NotificationRuleUpdate) SetDisabled(b bool) *NotificationRuleUpdate
- func (nru *NotificationRuleUpdate) SetName(s string) *NotificationRuleUpdate
- func (nru *NotificationRuleUpdate) SetNillableConfig(nc *notification.RuleConfig) *NotificationRuleUpdate
- func (nru *NotificationRuleUpdate) SetNillableDeletedAt(t *time.Time) *NotificationRuleUpdate
- func (nru *NotificationRuleUpdate) SetNillableDisabled(b *bool) *NotificationRuleUpdate
- func (nru *NotificationRuleUpdate) SetNillableName(s *string) *NotificationRuleUpdate
- func (u *NotificationRuleUpdate) SetOrClearDeletedAt(value *time.Time) *NotificationRuleUpdate
- func (u *NotificationRuleUpdate) SetOrClearDisabled(value *bool) *NotificationRuleUpdate
- func (nru *NotificationRuleUpdate) SetUpdatedAt(t time.Time) *NotificationRuleUpdate
- func (nru *NotificationRuleUpdate) Where(ps ...predicate.NotificationRule) *NotificationRuleUpdate
- type NotificationRuleUpdateOne
- func (nruo *NotificationRuleUpdateOne) AddChannelIDs(ids ...string) *NotificationRuleUpdateOne
- func (nruo *NotificationRuleUpdateOne) AddChannels(n ...*NotificationChannel) *NotificationRuleUpdateOne
- func (nruo *NotificationRuleUpdateOne) AddEventIDs(ids ...string) *NotificationRuleUpdateOne
- func (nruo *NotificationRuleUpdateOne) AddEvents(n ...*NotificationEvent) *NotificationRuleUpdateOne
- func (nruo *NotificationRuleUpdateOne) ClearChannels() *NotificationRuleUpdateOne
- func (nruo *NotificationRuleUpdateOne) ClearDeletedAt() *NotificationRuleUpdateOne
- func (nruo *NotificationRuleUpdateOne) ClearDisabled() *NotificationRuleUpdateOne
- func (nruo *NotificationRuleUpdateOne) ClearEvents() *NotificationRuleUpdateOne
- func (nruo *NotificationRuleUpdateOne) Exec(ctx context.Context) error
- func (c *NotificationRuleUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (nruo *NotificationRuleUpdateOne) ExecX(ctx context.Context)
- func (nruo *NotificationRuleUpdateOne) Mutation() *NotificationRuleMutation
- func (c *NotificationRuleUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (nruo *NotificationRuleUpdateOne) RemoveChannelIDs(ids ...string) *NotificationRuleUpdateOne
- func (nruo *NotificationRuleUpdateOne) RemoveChannels(n ...*NotificationChannel) *NotificationRuleUpdateOne
- func (nruo *NotificationRuleUpdateOne) RemoveEventIDs(ids ...string) *NotificationRuleUpdateOne
- func (nruo *NotificationRuleUpdateOne) RemoveEvents(n ...*NotificationEvent) *NotificationRuleUpdateOne
- func (nruo *NotificationRuleUpdateOne) Save(ctx context.Context) (*NotificationRule, error)
- func (nruo *NotificationRuleUpdateOne) SaveX(ctx context.Context) *NotificationRule
- func (nruo *NotificationRuleUpdateOne) Select(field string, fields ...string) *NotificationRuleUpdateOne
- func (nruo *NotificationRuleUpdateOne) SetConfig(nc notification.RuleConfig) *NotificationRuleUpdateOne
- func (nruo *NotificationRuleUpdateOne) SetDeletedAt(t time.Time) *NotificationRuleUpdateOne
- func (nruo *NotificationRuleUpdateOne) SetDisabled(b bool) *NotificationRuleUpdateOne
- func (nruo *NotificationRuleUpdateOne) SetName(s string) *NotificationRuleUpdateOne
- func (nruo *NotificationRuleUpdateOne) SetNillableConfig(nc *notification.RuleConfig) *NotificationRuleUpdateOne
- func (nruo *NotificationRuleUpdateOne) SetNillableDeletedAt(t *time.Time) *NotificationRuleUpdateOne
- func (nruo *NotificationRuleUpdateOne) SetNillableDisabled(b *bool) *NotificationRuleUpdateOne
- func (nruo *NotificationRuleUpdateOne) SetNillableName(s *string) *NotificationRuleUpdateOne
- func (u *NotificationRuleUpdateOne) SetOrClearDeletedAt(value *time.Time) *NotificationRuleUpdateOne
- func (u *NotificationRuleUpdateOne) SetOrClearDisabled(value *bool) *NotificationRuleUpdateOne
- func (nruo *NotificationRuleUpdateOne) SetUpdatedAt(t time.Time) *NotificationRuleUpdateOne
- func (nruo *NotificationRuleUpdateOne) Where(ps ...predicate.NotificationRule) *NotificationRuleUpdateOne
- type NotificationRuleUpsert
- func (u *NotificationRuleUpsert) ClearDeletedAt() *NotificationRuleUpsert
- func (u *NotificationRuleUpsert) ClearDisabled() *NotificationRuleUpsert
- func (u *NotificationRuleUpsert) SetConfig(v notification.RuleConfig) *NotificationRuleUpsert
- func (u *NotificationRuleUpsert) SetDeletedAt(v time.Time) *NotificationRuleUpsert
- func (u *NotificationRuleUpsert) SetDisabled(v bool) *NotificationRuleUpsert
- func (u *NotificationRuleUpsert) SetName(v string) *NotificationRuleUpsert
- func (u *NotificationRuleUpsert) SetUpdatedAt(v time.Time) *NotificationRuleUpsert
- func (u *NotificationRuleUpsert) UpdateConfig() *NotificationRuleUpsert
- func (u *NotificationRuleUpsert) UpdateDeletedAt() *NotificationRuleUpsert
- func (u *NotificationRuleUpsert) UpdateDisabled() *NotificationRuleUpsert
- func (u *NotificationRuleUpsert) UpdateName() *NotificationRuleUpsert
- func (u *NotificationRuleUpsert) UpdateUpdatedAt() *NotificationRuleUpsert
- type NotificationRuleUpsertBulk
- func (u *NotificationRuleUpsertBulk) ClearDeletedAt() *NotificationRuleUpsertBulk
- func (u *NotificationRuleUpsertBulk) ClearDisabled() *NotificationRuleUpsertBulk
- func (u *NotificationRuleUpsertBulk) DoNothing() *NotificationRuleUpsertBulk
- func (u *NotificationRuleUpsertBulk) Exec(ctx context.Context) error
- func (u *NotificationRuleUpsertBulk) ExecX(ctx context.Context)
- func (u *NotificationRuleUpsertBulk) Ignore() *NotificationRuleUpsertBulk
- func (u *NotificationRuleUpsertBulk) SetConfig(v notification.RuleConfig) *NotificationRuleUpsertBulk
- func (u *NotificationRuleUpsertBulk) SetDeletedAt(v time.Time) *NotificationRuleUpsertBulk
- func (u *NotificationRuleUpsertBulk) SetDisabled(v bool) *NotificationRuleUpsertBulk
- func (u *NotificationRuleUpsertBulk) SetName(v string) *NotificationRuleUpsertBulk
- func (u *NotificationRuleUpsertBulk) SetUpdatedAt(v time.Time) *NotificationRuleUpsertBulk
- func (u *NotificationRuleUpsertBulk) Update(set func(*NotificationRuleUpsert)) *NotificationRuleUpsertBulk
- func (u *NotificationRuleUpsertBulk) UpdateConfig() *NotificationRuleUpsertBulk
- func (u *NotificationRuleUpsertBulk) UpdateDeletedAt() *NotificationRuleUpsertBulk
- func (u *NotificationRuleUpsertBulk) UpdateDisabled() *NotificationRuleUpsertBulk
- func (u *NotificationRuleUpsertBulk) UpdateName() *NotificationRuleUpsertBulk
- func (u *NotificationRuleUpsertBulk) UpdateNewValues() *NotificationRuleUpsertBulk
- func (u *NotificationRuleUpsertBulk) UpdateUpdatedAt() *NotificationRuleUpsertBulk
- type NotificationRuleUpsertOne
- func (u *NotificationRuleUpsertOne) ClearDeletedAt() *NotificationRuleUpsertOne
- func (u *NotificationRuleUpsertOne) ClearDisabled() *NotificationRuleUpsertOne
- func (u *NotificationRuleUpsertOne) DoNothing() *NotificationRuleUpsertOne
- func (u *NotificationRuleUpsertOne) Exec(ctx context.Context) error
- func (u *NotificationRuleUpsertOne) ExecX(ctx context.Context)
- func (u *NotificationRuleUpsertOne) ID(ctx context.Context) (id string, err error)
- func (u *NotificationRuleUpsertOne) IDX(ctx context.Context) string
- func (u *NotificationRuleUpsertOne) Ignore() *NotificationRuleUpsertOne
- func (u *NotificationRuleUpsertOne) SetConfig(v notification.RuleConfig) *NotificationRuleUpsertOne
- func (u *NotificationRuleUpsertOne) SetDeletedAt(v time.Time) *NotificationRuleUpsertOne
- func (u *NotificationRuleUpsertOne) SetDisabled(v bool) *NotificationRuleUpsertOne
- func (u *NotificationRuleUpsertOne) SetName(v string) *NotificationRuleUpsertOne
- func (u *NotificationRuleUpsertOne) SetUpdatedAt(v time.Time) *NotificationRuleUpsertOne
- func (u *NotificationRuleUpsertOne) Update(set func(*NotificationRuleUpsert)) *NotificationRuleUpsertOne
- func (u *NotificationRuleUpsertOne) UpdateConfig() *NotificationRuleUpsertOne
- func (u *NotificationRuleUpsertOne) UpdateDeletedAt() *NotificationRuleUpsertOne
- func (u *NotificationRuleUpsertOne) UpdateDisabled() *NotificationRuleUpsertOne
- func (u *NotificationRuleUpsertOne) UpdateName() *NotificationRuleUpsertOne
- func (u *NotificationRuleUpsertOne) UpdateNewValues() *NotificationRuleUpsertOne
- func (u *NotificationRuleUpsertOne) UpdateUpdatedAt() *NotificationRuleUpsertOne
- type NotificationRules
- type Op
- type Option
- type OrderFunc
- type Policy
- type Querier
- type QuerierFunc
- type Query
- type QueryContext
- type RollbackFunc
- type RollbackHook
- type Rollbacker
- type TraverseFunc
- type Traverser
- type Tx
- func (tx *Tx) Client() *Client
- func (tx *Tx) Commit() error
- func (c *Tx) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (tx *Tx) OnCommit(f CommitHook)
- func (tx *Tx) OnRollback(f RollbackHook)
- func (c *Tx) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (tx *Tx) Rollback() error
- type UsageReset
- func (c *UsageReset) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *UsageReset) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ur *UsageReset) QueryEntitlement() *EntitlementQuery
- func (ur *UsageReset) String() string
- func (ur *UsageReset) Unwrap() *UsageReset
- func (ur *UsageReset) Update() *UsageResetUpdateOne
- func (ur *UsageReset) Value(name string) (ent.Value, error)
- type UsageResetClient
- func (c *UsageResetClient) Create() *UsageResetCreate
- func (c *UsageResetClient) CreateBulk(builders ...*UsageResetCreate) *UsageResetCreateBulk
- func (c *UsageResetClient) Delete() *UsageResetDelete
- func (c *UsageResetClient) DeleteOne(ur *UsageReset) *UsageResetDeleteOne
- func (c *UsageResetClient) DeleteOneID(id string) *UsageResetDeleteOne
- func (c *UsageResetClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *UsageResetClient) Get(ctx context.Context, id string) (*UsageReset, error)
- func (c *UsageResetClient) GetX(ctx context.Context, id string) *UsageReset
- func (c *UsageResetClient) Hooks() []Hook
- func (c *UsageResetClient) Intercept(interceptors ...Interceptor)
- func (c *UsageResetClient) Interceptors() []Interceptor
- func (c *UsageResetClient) MapCreateBulk(slice any, setFunc func(*UsageResetCreate, int)) *UsageResetCreateBulk
- func (c *UsageResetClient) Query() *UsageResetQuery
- func (c *UsageResetClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *UsageResetClient) QueryEntitlement(ur *UsageReset) *EntitlementQuery
- func (c *UsageResetClient) Update() *UsageResetUpdate
- func (c *UsageResetClient) UpdateOne(ur *UsageReset) *UsageResetUpdateOne
- func (c *UsageResetClient) UpdateOneID(id string) *UsageResetUpdateOne
- func (c *UsageResetClient) Use(hooks ...Hook)
- type UsageResetCreate
- func (urc *UsageResetCreate) Exec(ctx context.Context) error
- func (c *UsageResetCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (urc *UsageResetCreate) ExecX(ctx context.Context)
- func (urc *UsageResetCreate) Mutation() *UsageResetMutation
- func (urc *UsageResetCreate) OnConflict(opts ...sql.ConflictOption) *UsageResetUpsertOne
- func (urc *UsageResetCreate) OnConflictColumns(columns ...string) *UsageResetUpsertOne
- func (c *UsageResetCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (urc *UsageResetCreate) Save(ctx context.Context) (*UsageReset, error)
- func (urc *UsageResetCreate) SaveX(ctx context.Context) *UsageReset
- func (urc *UsageResetCreate) SetCreatedAt(t time.Time) *UsageResetCreate
- func (urc *UsageResetCreate) SetDeletedAt(t time.Time) *UsageResetCreate
- func (urc *UsageResetCreate) SetEntitlement(e *Entitlement) *UsageResetCreate
- func (urc *UsageResetCreate) SetEntitlementID(s string) *UsageResetCreate
- func (urc *UsageResetCreate) SetID(s string) *UsageResetCreate
- func (urc *UsageResetCreate) SetNamespace(s string) *UsageResetCreate
- func (urc *UsageResetCreate) SetNillableCreatedAt(t *time.Time) *UsageResetCreate
- func (urc *UsageResetCreate) SetNillableDeletedAt(t *time.Time) *UsageResetCreate
- func (urc *UsageResetCreate) SetNillableID(s *string) *UsageResetCreate
- func (urc *UsageResetCreate) SetNillableUpdatedAt(t *time.Time) *UsageResetCreate
- func (urc *UsageResetCreate) SetResetTime(t time.Time) *UsageResetCreate
- func (urc *UsageResetCreate) SetUpdatedAt(t time.Time) *UsageResetCreate
- type UsageResetCreateBulk
- func (urcb *UsageResetCreateBulk) Exec(ctx context.Context) error
- func (c *UsageResetCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (urcb *UsageResetCreateBulk) ExecX(ctx context.Context)
- func (urcb *UsageResetCreateBulk) OnConflict(opts ...sql.ConflictOption) *UsageResetUpsertBulk
- func (urcb *UsageResetCreateBulk) OnConflictColumns(columns ...string) *UsageResetUpsertBulk
- func (c *UsageResetCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (urcb *UsageResetCreateBulk) Save(ctx context.Context) ([]*UsageReset, error)
- func (urcb *UsageResetCreateBulk) SaveX(ctx context.Context) []*UsageReset
- type UsageResetDelete
- func (urd *UsageResetDelete) Exec(ctx context.Context) (int, error)
- func (c *UsageResetDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (urd *UsageResetDelete) ExecX(ctx context.Context) int
- func (c *UsageResetDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (urd *UsageResetDelete) Where(ps ...predicate.UsageReset) *UsageResetDelete
- type UsageResetDeleteOne
- type UsageResetEdges
- type UsageResetGroupBy
- func (urgb *UsageResetGroupBy) Aggregate(fns ...AggregateFunc) *UsageResetGroupBy
- func (s *UsageResetGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *UsageResetGroupBy) BoolX(ctx context.Context) bool
- func (s *UsageResetGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *UsageResetGroupBy) BoolsX(ctx context.Context) []bool
- func (s *UsageResetGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *UsageResetGroupBy) Float64X(ctx context.Context) float64
- func (s *UsageResetGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *UsageResetGroupBy) Float64sX(ctx context.Context) []float64
- func (s *UsageResetGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *UsageResetGroupBy) IntX(ctx context.Context) int
- func (s *UsageResetGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *UsageResetGroupBy) IntsX(ctx context.Context) []int
- func (urgb *UsageResetGroupBy) Scan(ctx context.Context, v any) error
- func (s *UsageResetGroupBy) ScanX(ctx context.Context, v any)
- func (s *UsageResetGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *UsageResetGroupBy) StringX(ctx context.Context) string
- func (s *UsageResetGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *UsageResetGroupBy) StringsX(ctx context.Context) []string
- type UsageResetMutation
- func (m *UsageResetMutation) AddField(name string, value ent.Value) error
- func (m *UsageResetMutation) AddedEdges() []string
- func (m *UsageResetMutation) AddedField(name string) (ent.Value, bool)
- func (m *UsageResetMutation) AddedFields() []string
- func (m *UsageResetMutation) AddedIDs(name string) []ent.Value
- func (m *UsageResetMutation) ClearDeletedAt()
- func (m *UsageResetMutation) ClearEdge(name string) error
- func (m *UsageResetMutation) ClearEntitlement()
- func (m *UsageResetMutation) ClearField(name string) error
- func (m *UsageResetMutation) ClearedEdges() []string
- func (m *UsageResetMutation) ClearedFields() []string
- func (m UsageResetMutation) Client() *Client
- func (m *UsageResetMutation) CreatedAt() (r time.Time, exists bool)
- func (m *UsageResetMutation) DeletedAt() (r time.Time, exists bool)
- func (m *UsageResetMutation) DeletedAtCleared() bool
- func (m *UsageResetMutation) EdgeCleared(name string) bool
- func (m *UsageResetMutation) EntitlementCleared() bool
- func (m *UsageResetMutation) EntitlementID() (r string, exists bool)
- func (m *UsageResetMutation) EntitlementIDs() (ids []string)
- func (c *UsageResetMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *UsageResetMutation) Field(name string) (ent.Value, bool)
- func (m *UsageResetMutation) FieldCleared(name string) bool
- func (m *UsageResetMutation) Fields() []string
- func (m *UsageResetMutation) ID() (id string, exists bool)
- func (m *UsageResetMutation) IDs(ctx context.Context) ([]string, error)
- func (m *UsageResetMutation) Namespace() (r string, exists bool)
- func (m *UsageResetMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *UsageResetMutation) OldDeletedAt(ctx context.Context) (v *time.Time, err error)
- func (m *UsageResetMutation) OldEntitlementID(ctx context.Context) (v string, err error)
- func (m *UsageResetMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *UsageResetMutation) OldNamespace(ctx context.Context) (v string, err error)
- func (m *UsageResetMutation) OldResetTime(ctx context.Context) (v time.Time, err error)
- func (m *UsageResetMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *UsageResetMutation) Op() Op
- func (c *UsageResetMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *UsageResetMutation) RemovedEdges() []string
- func (m *UsageResetMutation) RemovedIDs(name string) []ent.Value
- func (m *UsageResetMutation) ResetCreatedAt()
- func (m *UsageResetMutation) ResetDeletedAt()
- func (m *UsageResetMutation) ResetEdge(name string) error
- func (m *UsageResetMutation) ResetEntitlement()
- func (m *UsageResetMutation) ResetEntitlementID()
- func (m *UsageResetMutation) ResetField(name string) error
- func (m *UsageResetMutation) ResetNamespace()
- func (m *UsageResetMutation) ResetResetTime()
- func (m *UsageResetMutation) ResetTime() (r time.Time, exists bool)
- func (m *UsageResetMutation) ResetUpdatedAt()
- func (m *UsageResetMutation) SetCreatedAt(t time.Time)
- func (m *UsageResetMutation) SetDeletedAt(t time.Time)
- func (m *UsageResetMutation) SetEntitlementID(s string)
- func (m *UsageResetMutation) SetField(name string, value ent.Value) error
- func (m *UsageResetMutation) SetID(id string)
- func (m *UsageResetMutation) SetNamespace(s string)
- func (m *UsageResetMutation) SetOp(op Op)
- func (m *UsageResetMutation) SetResetTime(t time.Time)
- func (m *UsageResetMutation) SetUpdatedAt(t time.Time)
- func (m UsageResetMutation) Tx() (*Tx, error)
- func (m *UsageResetMutation) Type() string
- func (m *UsageResetMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *UsageResetMutation) Where(ps ...predicate.UsageReset)
- func (m *UsageResetMutation) WhereP(ps ...func(*sql.Selector))
- type UsageResetQuery
- func (urq *UsageResetQuery) Aggregate(fns ...AggregateFunc) *UsageResetSelect
- func (urq *UsageResetQuery) All(ctx context.Context) ([]*UsageReset, error)
- func (urq *UsageResetQuery) AllX(ctx context.Context) []*UsageReset
- func (urq *UsageResetQuery) Clone() *UsageResetQuery
- func (urq *UsageResetQuery) Count(ctx context.Context) (int, error)
- func (urq *UsageResetQuery) CountX(ctx context.Context) int
- func (c *UsageResetQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (urq *UsageResetQuery) Exist(ctx context.Context) (bool, error)
- func (urq *UsageResetQuery) ExistX(ctx context.Context) bool
- func (urq *UsageResetQuery) First(ctx context.Context) (*UsageReset, error)
- func (urq *UsageResetQuery) FirstID(ctx context.Context) (id string, err error)
- func (urq *UsageResetQuery) FirstIDX(ctx context.Context) string
- func (urq *UsageResetQuery) FirstX(ctx context.Context) *UsageReset
- func (urq *UsageResetQuery) ForShare(opts ...sql.LockOption) *UsageResetQuery
- func (urq *UsageResetQuery) ForUpdate(opts ...sql.LockOption) *UsageResetQuery
- func (urq *UsageResetQuery) GroupBy(field string, fields ...string) *UsageResetGroupBy
- func (urq *UsageResetQuery) IDs(ctx context.Context) (ids []string, err error)
- func (urq *UsageResetQuery) IDsX(ctx context.Context) []string
- func (urq *UsageResetQuery) Limit(limit int) *UsageResetQuery
- func (urq *UsageResetQuery) Offset(offset int) *UsageResetQuery
- func (urq *UsageResetQuery) Only(ctx context.Context) (*UsageReset, error)
- func (urq *UsageResetQuery) OnlyID(ctx context.Context) (id string, err error)
- func (urq *UsageResetQuery) OnlyIDX(ctx context.Context) string
- func (urq *UsageResetQuery) OnlyX(ctx context.Context) *UsageReset
- func (urq *UsageResetQuery) Order(o ...usagereset.OrderOption) *UsageResetQuery
- func (ur *UsageResetQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*UsageReset], error)
- func (c *UsageResetQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (urq *UsageResetQuery) QueryEntitlement() *EntitlementQuery
- func (urq *UsageResetQuery) Select(fields ...string) *UsageResetSelect
- func (urq *UsageResetQuery) Unique(unique bool) *UsageResetQuery
- func (urq *UsageResetQuery) Where(ps ...predicate.UsageReset) *UsageResetQuery
- func (urq *UsageResetQuery) WithEntitlement(opts ...func(*EntitlementQuery)) *UsageResetQuery
- type UsageResetSelect
- func (urs *UsageResetSelect) Aggregate(fns ...AggregateFunc) *UsageResetSelect
- func (s *UsageResetSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *UsageResetSelect) BoolX(ctx context.Context) bool
- func (s *UsageResetSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *UsageResetSelect) BoolsX(ctx context.Context) []bool
- func (c UsageResetSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *UsageResetSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *UsageResetSelect) Float64X(ctx context.Context) float64
- func (s *UsageResetSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *UsageResetSelect) Float64sX(ctx context.Context) []float64
- func (s *UsageResetSelect) Int(ctx context.Context) (_ int, err error)
- func (s *UsageResetSelect) IntX(ctx context.Context) int
- func (s *UsageResetSelect) Ints(ctx context.Context) ([]int, error)
- func (s *UsageResetSelect) IntsX(ctx context.Context) []int
- func (c UsageResetSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (urs *UsageResetSelect) Scan(ctx context.Context, v any) error
- func (s *UsageResetSelect) ScanX(ctx context.Context, v any)
- func (s *UsageResetSelect) String(ctx context.Context) (_ string, err error)
- func (s *UsageResetSelect) StringX(ctx context.Context) string
- func (s *UsageResetSelect) Strings(ctx context.Context) ([]string, error)
- func (s *UsageResetSelect) StringsX(ctx context.Context) []string
- type UsageResetUpdate
- func (uru *UsageResetUpdate) ClearDeletedAt() *UsageResetUpdate
- func (uru *UsageResetUpdate) Exec(ctx context.Context) error
- func (c *UsageResetUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (uru *UsageResetUpdate) ExecX(ctx context.Context)
- func (uru *UsageResetUpdate) Mutation() *UsageResetMutation
- func (c *UsageResetUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (uru *UsageResetUpdate) Save(ctx context.Context) (int, error)
- func (uru *UsageResetUpdate) SaveX(ctx context.Context) int
- func (uru *UsageResetUpdate) SetDeletedAt(t time.Time) *UsageResetUpdate
- func (uru *UsageResetUpdate) SetNillableDeletedAt(t *time.Time) *UsageResetUpdate
- func (u *UsageResetUpdate) SetOrClearDeletedAt(value *time.Time) *UsageResetUpdate
- func (uru *UsageResetUpdate) SetUpdatedAt(t time.Time) *UsageResetUpdate
- func (uru *UsageResetUpdate) Where(ps ...predicate.UsageReset) *UsageResetUpdate
- type UsageResetUpdateOne
- func (uruo *UsageResetUpdateOne) ClearDeletedAt() *UsageResetUpdateOne
- func (uruo *UsageResetUpdateOne) Exec(ctx context.Context) error
- func (c *UsageResetUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (uruo *UsageResetUpdateOne) ExecX(ctx context.Context)
- func (uruo *UsageResetUpdateOne) Mutation() *UsageResetMutation
- func (c *UsageResetUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (uruo *UsageResetUpdateOne) Save(ctx context.Context) (*UsageReset, error)
- func (uruo *UsageResetUpdateOne) SaveX(ctx context.Context) *UsageReset
- func (uruo *UsageResetUpdateOne) Select(field string, fields ...string) *UsageResetUpdateOne
- func (uruo *UsageResetUpdateOne) SetDeletedAt(t time.Time) *UsageResetUpdateOne
- func (uruo *UsageResetUpdateOne) SetNillableDeletedAt(t *time.Time) *UsageResetUpdateOne
- func (u *UsageResetUpdateOne) SetOrClearDeletedAt(value *time.Time) *UsageResetUpdateOne
- func (uruo *UsageResetUpdateOne) SetUpdatedAt(t time.Time) *UsageResetUpdateOne
- func (uruo *UsageResetUpdateOne) Where(ps ...predicate.UsageReset) *UsageResetUpdateOne
- type UsageResetUpsert
- func (u *UsageResetUpsert) ClearDeletedAt() *UsageResetUpsert
- func (u *UsageResetUpsert) SetDeletedAt(v time.Time) *UsageResetUpsert
- func (u *UsageResetUpsert) SetUpdatedAt(v time.Time) *UsageResetUpsert
- func (u *UsageResetUpsert) UpdateDeletedAt() *UsageResetUpsert
- func (u *UsageResetUpsert) UpdateUpdatedAt() *UsageResetUpsert
- type UsageResetUpsertBulk
- func (u *UsageResetUpsertBulk) ClearDeletedAt() *UsageResetUpsertBulk
- func (u *UsageResetUpsertBulk) DoNothing() *UsageResetUpsertBulk
- func (u *UsageResetUpsertBulk) Exec(ctx context.Context) error
- func (u *UsageResetUpsertBulk) ExecX(ctx context.Context)
- func (u *UsageResetUpsertBulk) Ignore() *UsageResetUpsertBulk
- func (u *UsageResetUpsertBulk) SetDeletedAt(v time.Time) *UsageResetUpsertBulk
- func (u *UsageResetUpsertBulk) SetUpdatedAt(v time.Time) *UsageResetUpsertBulk
- func (u *UsageResetUpsertBulk) Update(set func(*UsageResetUpsert)) *UsageResetUpsertBulk
- func (u *UsageResetUpsertBulk) UpdateDeletedAt() *UsageResetUpsertBulk
- func (u *UsageResetUpsertBulk) UpdateNewValues() *UsageResetUpsertBulk
- func (u *UsageResetUpsertBulk) UpdateUpdatedAt() *UsageResetUpsertBulk
- type UsageResetUpsertOne
- func (u *UsageResetUpsertOne) ClearDeletedAt() *UsageResetUpsertOne
- func (u *UsageResetUpsertOne) DoNothing() *UsageResetUpsertOne
- func (u *UsageResetUpsertOne) Exec(ctx context.Context) error
- func (u *UsageResetUpsertOne) ExecX(ctx context.Context)
- func (u *UsageResetUpsertOne) ID(ctx context.Context) (id string, err error)
- func (u *UsageResetUpsertOne) IDX(ctx context.Context) string
- func (u *UsageResetUpsertOne) Ignore() *UsageResetUpsertOne
- func (u *UsageResetUpsertOne) SetDeletedAt(v time.Time) *UsageResetUpsertOne
- func (u *UsageResetUpsertOne) SetUpdatedAt(v time.Time) *UsageResetUpsertOne
- func (u *UsageResetUpsertOne) Update(set func(*UsageResetUpsert)) *UsageResetUpsertOne
- func (u *UsageResetUpsertOne) UpdateDeletedAt() *UsageResetUpsertOne
- func (u *UsageResetUpsertOne) UpdateNewValues() *UsageResetUpsertOne
- func (u *UsageResetUpsertOne) UpdateUpdatedAt() *UsageResetUpsertOne
- type UsageResets
- 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. TypeBalanceSnapshot = "BalanceSnapshot" TypeBillingCustomerOverride = "BillingCustomerOverride" TypeBillingInvoice = "BillingInvoice" TypeBillingInvoiceItem = "BillingInvoiceItem" TypeBillingProfile = "BillingProfile" TypeBillingWorkflowConfig = "BillingWorkflowConfig" TypeCustomer = "Customer" TypeCustomerSubjects = "CustomerSubjects" TypeEntitlement = "Entitlement" TypeFeature = "Feature" TypeGrant = "Grant" TypeNotificationChannel = "NotificationChannel" TypeNotificationEvent = "NotificationEvent" TypeNotificationEventDeliveryStatus = "NotificationEventDeliveryStatus" TypeNotificationRule = "NotificationRule" TypeUsageReset = "UsageReset" )
Variables ¶
var ErrTxStarted = errors.New("db: cannot start a transaction within a transaction")
ErrTxStarted is returned when trying to start a new transaction from a transactional client.
Functions ¶
func IsConstraintError ¶
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
func IsNotFound ¶
IsNotFound returns a boolean indicating whether the error is a not found error.
func IsNotLoaded ¶
IsNotLoaded returns a boolean indicating whether the error is a not loaded error.
func IsNotSingular ¶
IsNotSingular returns a boolean indicating whether the error is a not singular error.
func IsValidationError ¶
IsValidationError returns a boolean indicating whether the error is a validation error.
func NewContext ¶
NewContext returns a new context with the given Client attached.
Types ¶
type AggregateFunc ¶
AggregateFunc applies an aggregation step on the group-by traversal/selector.
func As ¶
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(db.As(db.Sum(field1), "sum_field1"), (db.As(db.Sum(field2), "sum_field2")). Scan(ctx, &v)
func Count ¶
func Count() AggregateFunc
Count applies the "count" aggregation function on each group.
func Max ¶
func Max(field string) AggregateFunc
Max applies the "max" aggregation function on the given field of each group.
func Mean ¶
func Mean(field string) AggregateFunc
Mean applies the "mean" aggregation function on the given field of each group.
func Min ¶
func Min(field string) AggregateFunc
Min applies the "min" aggregation function on the given field of each group.
func Sum ¶
func Sum(field string) AggregateFunc
Sum applies the "sum" aggregation function on the given field of each group.
type BalanceSnapshot ¶
type BalanceSnapshot struct {
// ID of the ent.
ID int `json:"id,omitempty"`
// Namespace holds the value of the "namespace" field.
Namespace string `json:"namespace,omitempty"`
// CreatedAt holds the value of the "created_at" field.
CreatedAt time.Time `json:"created_at,omitempty"`
// UpdatedAt holds the value of the "updated_at" field.
UpdatedAt time.Time `json:"updated_at,omitempty"`
// DeletedAt holds the value of the "deleted_at" field.
DeletedAt *time.Time `json:"deleted_at,omitempty"`
// OwnerID holds the value of the "owner_id" field.
OwnerID string `json:"owner_id,omitempty"`
// GrantBalances holds the value of the "grant_balances" field.
GrantBalances balance.Map `json:"grant_balances,omitempty"`
// Balance holds the value of the "balance" field.
Balance float64 `json:"balance,omitempty"`
// Overage holds the value of the "overage" field.
Overage float64 `json:"overage,omitempty"`
// At holds the value of the "at" field.
At time.Time `json:"at,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the BalanceSnapshotQuery when eager-loading is set.
Edges BalanceSnapshotEdges `json:"edges"`
// contains filtered or unexported fields
}
BalanceSnapshot is the model entity for the BalanceSnapshot schema.
func (*BalanceSnapshot) ExecContext ¶
func (c *BalanceSnapshot) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BalanceSnapshot) QueryContext ¶
func (c *BalanceSnapshot) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BalanceSnapshot) QueryEntitlement ¶
func (bs *BalanceSnapshot) QueryEntitlement() *EntitlementQuery
QueryEntitlement queries the "entitlement" edge of the BalanceSnapshot entity.
func (*BalanceSnapshot) String ¶
func (bs *BalanceSnapshot) String() string
String implements the fmt.Stringer.
func (*BalanceSnapshot) Unwrap ¶
func (bs *BalanceSnapshot) Unwrap() *BalanceSnapshot
Unwrap unwraps the BalanceSnapshot 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 (*BalanceSnapshot) Update ¶
func (bs *BalanceSnapshot) Update() *BalanceSnapshotUpdateOne
Update returns a builder for updating this BalanceSnapshot. Note that you need to call BalanceSnapshot.Unwrap() before calling this method if this BalanceSnapshot was returned from a transaction, and the transaction was committed or rolled back.
type BalanceSnapshotClient ¶
type BalanceSnapshotClient struct {
// contains filtered or unexported fields
}
BalanceSnapshotClient is a client for the BalanceSnapshot schema.
func NewBalanceSnapshotClient ¶
func NewBalanceSnapshotClient(c config) *BalanceSnapshotClient
NewBalanceSnapshotClient returns a client for the BalanceSnapshot from the given config.
func (*BalanceSnapshotClient) Create ¶
func (c *BalanceSnapshotClient) Create() *BalanceSnapshotCreate
Create returns a builder for creating a BalanceSnapshot entity.
func (*BalanceSnapshotClient) CreateBulk ¶
func (c *BalanceSnapshotClient) CreateBulk(builders ...*BalanceSnapshotCreate) *BalanceSnapshotCreateBulk
CreateBulk returns a builder for creating a bulk of BalanceSnapshot entities.
func (*BalanceSnapshotClient) Delete ¶
func (c *BalanceSnapshotClient) Delete() *BalanceSnapshotDelete
Delete returns a delete builder for BalanceSnapshot.
func (*BalanceSnapshotClient) DeleteOne ¶
func (c *BalanceSnapshotClient) DeleteOne(bs *BalanceSnapshot) *BalanceSnapshotDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*BalanceSnapshotClient) DeleteOneID ¶
func (c *BalanceSnapshotClient) DeleteOneID(id int) *BalanceSnapshotDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*BalanceSnapshotClient) ExecContext ¶
func (c *BalanceSnapshotClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BalanceSnapshotClient) Get ¶
func (c *BalanceSnapshotClient) Get(ctx context.Context, id int) (*BalanceSnapshot, error)
Get returns a BalanceSnapshot entity by its id.
func (*BalanceSnapshotClient) GetX ¶
func (c *BalanceSnapshotClient) GetX(ctx context.Context, id int) *BalanceSnapshot
GetX is like Get, but panics if an error occurs.
func (*BalanceSnapshotClient) Hooks ¶
func (c *BalanceSnapshotClient) Hooks() []Hook
Hooks returns the client hooks.
func (*BalanceSnapshotClient) Intercept ¶
func (c *BalanceSnapshotClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `balancesnapshot.Intercept(f(g(h())))`.
func (*BalanceSnapshotClient) Interceptors ¶
func (c *BalanceSnapshotClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*BalanceSnapshotClient) MapCreateBulk ¶
func (c *BalanceSnapshotClient) MapCreateBulk(slice any, setFunc func(*BalanceSnapshotCreate, int)) *BalanceSnapshotCreateBulk
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 (*BalanceSnapshotClient) Query ¶
func (c *BalanceSnapshotClient) Query() *BalanceSnapshotQuery
Query returns a query builder for BalanceSnapshot.
func (*BalanceSnapshotClient) QueryContext ¶
func (c *BalanceSnapshotClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BalanceSnapshotClient) QueryEntitlement ¶
func (c *BalanceSnapshotClient) QueryEntitlement(bs *BalanceSnapshot) *EntitlementQuery
QueryEntitlement queries the entitlement edge of a BalanceSnapshot.
func (*BalanceSnapshotClient) Update ¶
func (c *BalanceSnapshotClient) Update() *BalanceSnapshotUpdate
Update returns an update builder for BalanceSnapshot.
func (*BalanceSnapshotClient) UpdateOne ¶
func (c *BalanceSnapshotClient) UpdateOne(bs *BalanceSnapshot) *BalanceSnapshotUpdateOne
UpdateOne returns an update builder for the given entity.
func (*BalanceSnapshotClient) UpdateOneID ¶
func (c *BalanceSnapshotClient) UpdateOneID(id int) *BalanceSnapshotUpdateOne
UpdateOneID returns an update builder for the given id.
func (*BalanceSnapshotClient) Use ¶
func (c *BalanceSnapshotClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `balancesnapshot.Hooks(f(g(h())))`.
type BalanceSnapshotCreate ¶
type BalanceSnapshotCreate struct {
// contains filtered or unexported fields
}
BalanceSnapshotCreate is the builder for creating a BalanceSnapshot entity.
func (*BalanceSnapshotCreate) Exec ¶
func (bsc *BalanceSnapshotCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*BalanceSnapshotCreate) ExecContext ¶
func (c *BalanceSnapshotCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BalanceSnapshotCreate) ExecX ¶
func (bsc *BalanceSnapshotCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BalanceSnapshotCreate) Mutation ¶
func (bsc *BalanceSnapshotCreate) Mutation() *BalanceSnapshotMutation
Mutation returns the BalanceSnapshotMutation object of the builder.
func (*BalanceSnapshotCreate) OnConflict ¶
func (bsc *BalanceSnapshotCreate) OnConflict(opts ...sql.ConflictOption) *BalanceSnapshotUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.BalanceSnapshot.Create().
SetNamespace(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.BalanceSnapshotUpsert) {
SetNamespace(v+v).
}).
Exec(ctx)
func (*BalanceSnapshotCreate) OnConflictColumns ¶
func (bsc *BalanceSnapshotCreate) OnConflictColumns(columns ...string) *BalanceSnapshotUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.BalanceSnapshot.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*BalanceSnapshotCreate) QueryContext ¶
func (c *BalanceSnapshotCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BalanceSnapshotCreate) Save ¶
func (bsc *BalanceSnapshotCreate) Save(ctx context.Context) (*BalanceSnapshot, error)
Save creates the BalanceSnapshot in the database.
func (*BalanceSnapshotCreate) SaveX ¶
func (bsc *BalanceSnapshotCreate) SaveX(ctx context.Context) *BalanceSnapshot
SaveX calls Save and panics if Save returns an error.
func (*BalanceSnapshotCreate) SetAt ¶
func (bsc *BalanceSnapshotCreate) SetAt(t time.Time) *BalanceSnapshotCreate
SetAt sets the "at" field.
func (*BalanceSnapshotCreate) SetBalance ¶
func (bsc *BalanceSnapshotCreate) SetBalance(f float64) *BalanceSnapshotCreate
SetBalance sets the "balance" field.
func (*BalanceSnapshotCreate) SetCreatedAt ¶
func (bsc *BalanceSnapshotCreate) SetCreatedAt(t time.Time) *BalanceSnapshotCreate
SetCreatedAt sets the "created_at" field.
func (*BalanceSnapshotCreate) SetDeletedAt ¶
func (bsc *BalanceSnapshotCreate) SetDeletedAt(t time.Time) *BalanceSnapshotCreate
SetDeletedAt sets the "deleted_at" field.
func (*BalanceSnapshotCreate) SetEntitlement ¶
func (bsc *BalanceSnapshotCreate) SetEntitlement(e *Entitlement) *BalanceSnapshotCreate
SetEntitlement sets the "entitlement" edge to the Entitlement entity.
func (*BalanceSnapshotCreate) SetEntitlementID ¶
func (bsc *BalanceSnapshotCreate) SetEntitlementID(id string) *BalanceSnapshotCreate
SetEntitlementID sets the "entitlement" edge to the Entitlement entity by ID.
func (*BalanceSnapshotCreate) SetGrantBalances ¶
func (bsc *BalanceSnapshotCreate) SetGrantBalances(b balance.Map) *BalanceSnapshotCreate
SetGrantBalances sets the "grant_balances" field.
func (*BalanceSnapshotCreate) SetNamespace ¶
func (bsc *BalanceSnapshotCreate) SetNamespace(s string) *BalanceSnapshotCreate
SetNamespace sets the "namespace" field.
func (*BalanceSnapshotCreate) SetNillableCreatedAt ¶
func (bsc *BalanceSnapshotCreate) SetNillableCreatedAt(t *time.Time) *BalanceSnapshotCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*BalanceSnapshotCreate) SetNillableDeletedAt ¶
func (bsc *BalanceSnapshotCreate) SetNillableDeletedAt(t *time.Time) *BalanceSnapshotCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*BalanceSnapshotCreate) SetNillableUpdatedAt ¶
func (bsc *BalanceSnapshotCreate) SetNillableUpdatedAt(t *time.Time) *BalanceSnapshotCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*BalanceSnapshotCreate) SetOverage ¶
func (bsc *BalanceSnapshotCreate) SetOverage(f float64) *BalanceSnapshotCreate
SetOverage sets the "overage" field.
func (*BalanceSnapshotCreate) SetOwnerID ¶
func (bsc *BalanceSnapshotCreate) SetOwnerID(s string) *BalanceSnapshotCreate
SetOwnerID sets the "owner_id" field.
func (*BalanceSnapshotCreate) SetUpdatedAt ¶
func (bsc *BalanceSnapshotCreate) SetUpdatedAt(t time.Time) *BalanceSnapshotCreate
SetUpdatedAt sets the "updated_at" field.
type BalanceSnapshotCreateBulk ¶
type BalanceSnapshotCreateBulk struct {
// contains filtered or unexported fields
}
BalanceSnapshotCreateBulk is the builder for creating many BalanceSnapshot entities in bulk.
func (*BalanceSnapshotCreateBulk) Exec ¶
func (bscb *BalanceSnapshotCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*BalanceSnapshotCreateBulk) ExecContext ¶
func (c *BalanceSnapshotCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BalanceSnapshotCreateBulk) ExecX ¶
func (bscb *BalanceSnapshotCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BalanceSnapshotCreateBulk) OnConflict ¶
func (bscb *BalanceSnapshotCreateBulk) OnConflict(opts ...sql.ConflictOption) *BalanceSnapshotUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.BalanceSnapshot.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.BalanceSnapshotUpsert) {
SetNamespace(v+v).
}).
Exec(ctx)
func (*BalanceSnapshotCreateBulk) OnConflictColumns ¶
func (bscb *BalanceSnapshotCreateBulk) OnConflictColumns(columns ...string) *BalanceSnapshotUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.BalanceSnapshot.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*BalanceSnapshotCreateBulk) QueryContext ¶
func (c *BalanceSnapshotCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BalanceSnapshotCreateBulk) Save ¶
func (bscb *BalanceSnapshotCreateBulk) Save(ctx context.Context) ([]*BalanceSnapshot, error)
Save creates the BalanceSnapshot entities in the database.
func (*BalanceSnapshotCreateBulk) SaveX ¶
func (bscb *BalanceSnapshotCreateBulk) SaveX(ctx context.Context) []*BalanceSnapshot
SaveX is like Save, but panics if an error occurs.
type BalanceSnapshotDelete ¶
type BalanceSnapshotDelete struct {
// contains filtered or unexported fields
}
BalanceSnapshotDelete is the builder for deleting a BalanceSnapshot entity.
func (*BalanceSnapshotDelete) Exec ¶
func (bsd *BalanceSnapshotDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*BalanceSnapshotDelete) ExecContext ¶
func (c *BalanceSnapshotDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BalanceSnapshotDelete) ExecX ¶
func (bsd *BalanceSnapshotDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*BalanceSnapshotDelete) QueryContext ¶
func (c *BalanceSnapshotDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BalanceSnapshotDelete) Where ¶
func (bsd *BalanceSnapshotDelete) Where(ps ...predicate.BalanceSnapshot) *BalanceSnapshotDelete
Where appends a list predicates to the BalanceSnapshotDelete builder.
type BalanceSnapshotDeleteOne ¶
type BalanceSnapshotDeleteOne struct {
// contains filtered or unexported fields
}
BalanceSnapshotDeleteOne is the builder for deleting a single BalanceSnapshot entity.
func (*BalanceSnapshotDeleteOne) Exec ¶
func (bsdo *BalanceSnapshotDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*BalanceSnapshotDeleteOne) ExecX ¶
func (bsdo *BalanceSnapshotDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BalanceSnapshotDeleteOne) Where ¶
func (bsdo *BalanceSnapshotDeleteOne) Where(ps ...predicate.BalanceSnapshot) *BalanceSnapshotDeleteOne
Where appends a list predicates to the BalanceSnapshotDelete builder.
type BalanceSnapshotEdges ¶
type BalanceSnapshotEdges struct {
// Entitlement holds the value of the entitlement edge.
Entitlement *Entitlement `json:"entitlement,omitempty"`
// contains filtered or unexported fields
}
BalanceSnapshotEdges holds the relations/edges for other nodes in the graph.
func (BalanceSnapshotEdges) EntitlementOrErr ¶
func (e BalanceSnapshotEdges) EntitlementOrErr() (*Entitlement, error)
EntitlementOrErr returns the Entitlement value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type BalanceSnapshotGroupBy ¶
type BalanceSnapshotGroupBy struct {
// contains filtered or unexported fields
}
BalanceSnapshotGroupBy is the group-by builder for BalanceSnapshot entities.
func (*BalanceSnapshotGroupBy) Aggregate ¶
func (bsgb *BalanceSnapshotGroupBy) Aggregate(fns ...AggregateFunc) *BalanceSnapshotGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*BalanceSnapshotGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*BalanceSnapshotGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*BalanceSnapshotGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*BalanceSnapshotGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*BalanceSnapshotGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*BalanceSnapshotGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*BalanceSnapshotGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*BalanceSnapshotGroupBy) Scan ¶
func (bsgb *BalanceSnapshotGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*BalanceSnapshotGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type BalanceSnapshotMutation ¶
type BalanceSnapshotMutation struct {
// contains filtered or unexported fields
}
BalanceSnapshotMutation represents an operation that mutates the BalanceSnapshot nodes in the graph.
func (*BalanceSnapshotMutation) AddBalance ¶
func (m *BalanceSnapshotMutation) AddBalance(f float64)
AddBalance adds f to the "balance" field.
func (*BalanceSnapshotMutation) AddField ¶
func (m *BalanceSnapshotMutation) 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 (*BalanceSnapshotMutation) AddOverage ¶
func (m *BalanceSnapshotMutation) AddOverage(f float64)
AddOverage adds f to the "overage" field.
func (*BalanceSnapshotMutation) AddedBalance ¶
func (m *BalanceSnapshotMutation) AddedBalance() (r float64, exists bool)
AddedBalance returns the value that was added to the "balance" field in this mutation.
func (*BalanceSnapshotMutation) AddedEdges ¶
func (m *BalanceSnapshotMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*BalanceSnapshotMutation) AddedField ¶
func (m *BalanceSnapshotMutation) 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 (*BalanceSnapshotMutation) AddedFields ¶
func (m *BalanceSnapshotMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*BalanceSnapshotMutation) AddedIDs ¶
func (m *BalanceSnapshotMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*BalanceSnapshotMutation) AddedOverage ¶
func (m *BalanceSnapshotMutation) AddedOverage() (r float64, exists bool)
AddedOverage returns the value that was added to the "overage" field in this mutation.
func (*BalanceSnapshotMutation) At ¶
func (m *BalanceSnapshotMutation) At() (r time.Time, exists bool)
At returns the value of the "at" field in the mutation.
func (*BalanceSnapshotMutation) Balance ¶
func (m *BalanceSnapshotMutation) Balance() (r float64, exists bool)
Balance returns the value of the "balance" field in the mutation.
func (*BalanceSnapshotMutation) ClearDeletedAt ¶
func (m *BalanceSnapshotMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BalanceSnapshotMutation) ClearEdge ¶
func (m *BalanceSnapshotMutation) 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 (*BalanceSnapshotMutation) ClearEntitlement ¶
func (m *BalanceSnapshotMutation) ClearEntitlement()
ClearEntitlement clears the "entitlement" edge to the Entitlement entity.
func (*BalanceSnapshotMutation) ClearField ¶
func (m *BalanceSnapshotMutation) 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 (*BalanceSnapshotMutation) ClearedEdges ¶
func (m *BalanceSnapshotMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*BalanceSnapshotMutation) ClearedFields ¶
func (m *BalanceSnapshotMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (BalanceSnapshotMutation) Client ¶
func (m BalanceSnapshotMutation) 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 (*BalanceSnapshotMutation) CreatedAt ¶
func (m *BalanceSnapshotMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*BalanceSnapshotMutation) DeletedAt ¶
func (m *BalanceSnapshotMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*BalanceSnapshotMutation) DeletedAtCleared ¶
func (m *BalanceSnapshotMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*BalanceSnapshotMutation) EdgeCleared ¶
func (m *BalanceSnapshotMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*BalanceSnapshotMutation) EntitlementCleared ¶
func (m *BalanceSnapshotMutation) EntitlementCleared() bool
EntitlementCleared reports if the "entitlement" edge to the Entitlement entity was cleared.
func (*BalanceSnapshotMutation) EntitlementID ¶
func (m *BalanceSnapshotMutation) EntitlementID() (id string, exists bool)
EntitlementID returns the "entitlement" edge ID in the mutation.
func (*BalanceSnapshotMutation) EntitlementIDs ¶
func (m *BalanceSnapshotMutation) EntitlementIDs() (ids []string)
EntitlementIDs returns the "entitlement" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use EntitlementID instead. It exists only for internal usage by the builders.
func (*BalanceSnapshotMutation) ExecContext ¶
func (c *BalanceSnapshotMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BalanceSnapshotMutation) Field ¶
func (m *BalanceSnapshotMutation) 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 (*BalanceSnapshotMutation) FieldCleared ¶
func (m *BalanceSnapshotMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*BalanceSnapshotMutation) Fields ¶
func (m *BalanceSnapshotMutation) 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 (*BalanceSnapshotMutation) GrantBalances ¶
func (m *BalanceSnapshotMutation) GrantBalances() (r balance.Map, exists bool)
GrantBalances returns the value of the "grant_balances" field in the mutation.
func (*BalanceSnapshotMutation) ID ¶
func (m *BalanceSnapshotMutation) ID() (id int, 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 (*BalanceSnapshotMutation) IDs ¶
func (m *BalanceSnapshotMutation) IDs(ctx context.Context) ([]int, error)
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 (*BalanceSnapshotMutation) Namespace ¶
func (m *BalanceSnapshotMutation) Namespace() (r string, exists bool)
Namespace returns the value of the "namespace" field in the mutation.
func (*BalanceSnapshotMutation) OldAt ¶
OldAt returns the old "at" field's value of the BalanceSnapshot entity. If the BalanceSnapshot 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 (*BalanceSnapshotMutation) OldBalance ¶
func (m *BalanceSnapshotMutation) OldBalance(ctx context.Context) (v float64, err error)
OldBalance returns the old "balance" field's value of the BalanceSnapshot entity. If the BalanceSnapshot 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 (*BalanceSnapshotMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the BalanceSnapshot entity. If the BalanceSnapshot 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 (*BalanceSnapshotMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the BalanceSnapshot entity. If the BalanceSnapshot 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 (*BalanceSnapshotMutation) OldField ¶
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 (*BalanceSnapshotMutation) OldGrantBalances ¶
OldGrantBalances returns the old "grant_balances" field's value of the BalanceSnapshot entity. If the BalanceSnapshot 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 (*BalanceSnapshotMutation) OldNamespace ¶
func (m *BalanceSnapshotMutation) OldNamespace(ctx context.Context) (v string, err error)
OldNamespace returns the old "namespace" field's value of the BalanceSnapshot entity. If the BalanceSnapshot 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 (*BalanceSnapshotMutation) OldOverage ¶
func (m *BalanceSnapshotMutation) OldOverage(ctx context.Context) (v float64, err error)
OldOverage returns the old "overage" field's value of the BalanceSnapshot entity. If the BalanceSnapshot 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 (*BalanceSnapshotMutation) OldOwnerID ¶
func (m *BalanceSnapshotMutation) OldOwnerID(ctx context.Context) (v string, err error)
OldOwnerID returns the old "owner_id" field's value of the BalanceSnapshot entity. If the BalanceSnapshot 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 (*BalanceSnapshotMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the BalanceSnapshot entity. If the BalanceSnapshot 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 (*BalanceSnapshotMutation) Op ¶
func (m *BalanceSnapshotMutation) Op() Op
Op returns the operation name.
func (*BalanceSnapshotMutation) Overage ¶
func (m *BalanceSnapshotMutation) Overage() (r float64, exists bool)
Overage returns the value of the "overage" field in the mutation.
func (*BalanceSnapshotMutation) OwnerID ¶
func (m *BalanceSnapshotMutation) OwnerID() (r string, exists bool)
OwnerID returns the value of the "owner_id" field in the mutation.
func (*BalanceSnapshotMutation) QueryContext ¶
func (c *BalanceSnapshotMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BalanceSnapshotMutation) RemovedEdges ¶
func (m *BalanceSnapshotMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*BalanceSnapshotMutation) RemovedIDs ¶
func (m *BalanceSnapshotMutation) 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 (*BalanceSnapshotMutation) ResetAt ¶
func (m *BalanceSnapshotMutation) ResetAt()
ResetAt resets all changes to the "at" field.
func (*BalanceSnapshotMutation) ResetBalance ¶
func (m *BalanceSnapshotMutation) ResetBalance()
ResetBalance resets all changes to the "balance" field.
func (*BalanceSnapshotMutation) ResetCreatedAt ¶
func (m *BalanceSnapshotMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*BalanceSnapshotMutation) ResetDeletedAt ¶
func (m *BalanceSnapshotMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*BalanceSnapshotMutation) ResetEdge ¶
func (m *BalanceSnapshotMutation) 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 (*BalanceSnapshotMutation) ResetEntitlement ¶
func (m *BalanceSnapshotMutation) ResetEntitlement()
ResetEntitlement resets all changes to the "entitlement" edge.
func (*BalanceSnapshotMutation) ResetField ¶
func (m *BalanceSnapshotMutation) 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 (*BalanceSnapshotMutation) ResetGrantBalances ¶
func (m *BalanceSnapshotMutation) ResetGrantBalances()
ResetGrantBalances resets all changes to the "grant_balances" field.
func (*BalanceSnapshotMutation) ResetNamespace ¶
func (m *BalanceSnapshotMutation) ResetNamespace()
ResetNamespace resets all changes to the "namespace" field.
func (*BalanceSnapshotMutation) ResetOverage ¶
func (m *BalanceSnapshotMutation) ResetOverage()
ResetOverage resets all changes to the "overage" field.
func (*BalanceSnapshotMutation) ResetOwnerID ¶
func (m *BalanceSnapshotMutation) ResetOwnerID()
ResetOwnerID resets all changes to the "owner_id" field.
func (*BalanceSnapshotMutation) ResetUpdatedAt ¶
func (m *BalanceSnapshotMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*BalanceSnapshotMutation) SetAt ¶
func (m *BalanceSnapshotMutation) SetAt(t time.Time)
SetAt sets the "at" field.
func (*BalanceSnapshotMutation) SetBalance ¶
func (m *BalanceSnapshotMutation) SetBalance(f float64)
SetBalance sets the "balance" field.
func (*BalanceSnapshotMutation) SetCreatedAt ¶
func (m *BalanceSnapshotMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*BalanceSnapshotMutation) SetDeletedAt ¶
func (m *BalanceSnapshotMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*BalanceSnapshotMutation) SetEntitlementID ¶
func (m *BalanceSnapshotMutation) SetEntitlementID(id string)
SetEntitlementID sets the "entitlement" edge to the Entitlement entity by id.
func (*BalanceSnapshotMutation) SetField ¶
func (m *BalanceSnapshotMutation) 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 (*BalanceSnapshotMutation) SetGrantBalances ¶
func (m *BalanceSnapshotMutation) SetGrantBalances(b balance.Map)
SetGrantBalances sets the "grant_balances" field.
func (*BalanceSnapshotMutation) SetNamespace ¶
func (m *BalanceSnapshotMutation) SetNamespace(s string)
SetNamespace sets the "namespace" field.
func (*BalanceSnapshotMutation) SetOp ¶
func (m *BalanceSnapshotMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*BalanceSnapshotMutation) SetOverage ¶
func (m *BalanceSnapshotMutation) SetOverage(f float64)
SetOverage sets the "overage" field.
func (*BalanceSnapshotMutation) SetOwnerID ¶
func (m *BalanceSnapshotMutation) SetOwnerID(s string)
SetOwnerID sets the "owner_id" field.
func (*BalanceSnapshotMutation) SetUpdatedAt ¶
func (m *BalanceSnapshotMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (BalanceSnapshotMutation) Tx ¶
func (m BalanceSnapshotMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*BalanceSnapshotMutation) Type ¶
func (m *BalanceSnapshotMutation) Type() string
Type returns the node type of this mutation (BalanceSnapshot).
func (*BalanceSnapshotMutation) UpdatedAt ¶
func (m *BalanceSnapshotMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*BalanceSnapshotMutation) Where ¶
func (m *BalanceSnapshotMutation) Where(ps ...predicate.BalanceSnapshot)
Where appends a list predicates to the BalanceSnapshotMutation builder.
func (*BalanceSnapshotMutation) WhereP ¶
func (m *BalanceSnapshotMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the BalanceSnapshotMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type BalanceSnapshotQuery ¶
type BalanceSnapshotQuery struct {
// contains filtered or unexported fields
}
BalanceSnapshotQuery is the builder for querying BalanceSnapshot entities.
func (*BalanceSnapshotQuery) Aggregate ¶
func (bsq *BalanceSnapshotQuery) Aggregate(fns ...AggregateFunc) *BalanceSnapshotSelect
Aggregate returns a BalanceSnapshotSelect configured with the given aggregations.
func (*BalanceSnapshotQuery) All ¶
func (bsq *BalanceSnapshotQuery) All(ctx context.Context) ([]*BalanceSnapshot, error)
All executes the query and returns a list of BalanceSnapshots.
func (*BalanceSnapshotQuery) AllX ¶
func (bsq *BalanceSnapshotQuery) AllX(ctx context.Context) []*BalanceSnapshot
AllX is like All, but panics if an error occurs.
func (*BalanceSnapshotQuery) Clone ¶
func (bsq *BalanceSnapshotQuery) Clone() *BalanceSnapshotQuery
Clone returns a duplicate of the BalanceSnapshotQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*BalanceSnapshotQuery) Count ¶
func (bsq *BalanceSnapshotQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*BalanceSnapshotQuery) CountX ¶
func (bsq *BalanceSnapshotQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*BalanceSnapshotQuery) ExecContext ¶
func (c *BalanceSnapshotQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BalanceSnapshotQuery) Exist ¶
func (bsq *BalanceSnapshotQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*BalanceSnapshotQuery) ExistX ¶
func (bsq *BalanceSnapshotQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*BalanceSnapshotQuery) First ¶
func (bsq *BalanceSnapshotQuery) First(ctx context.Context) (*BalanceSnapshot, error)
First returns the first BalanceSnapshot entity from the query. Returns a *NotFoundError when no BalanceSnapshot was found.
func (*BalanceSnapshotQuery) FirstID ¶
func (bsq *BalanceSnapshotQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first BalanceSnapshot ID from the query. Returns a *NotFoundError when no BalanceSnapshot ID was found.
func (*BalanceSnapshotQuery) FirstIDX ¶
func (bsq *BalanceSnapshotQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*BalanceSnapshotQuery) FirstX ¶
func (bsq *BalanceSnapshotQuery) FirstX(ctx context.Context) *BalanceSnapshot
FirstX is like First, but panics if an error occurs.
func (*BalanceSnapshotQuery) ForShare ¶
func (bsq *BalanceSnapshotQuery) ForShare(opts ...sql.LockOption) *BalanceSnapshotQuery
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 (*BalanceSnapshotQuery) ForUpdate ¶
func (bsq *BalanceSnapshotQuery) ForUpdate(opts ...sql.LockOption) *BalanceSnapshotQuery
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 (*BalanceSnapshotQuery) GroupBy ¶
func (bsq *BalanceSnapshotQuery) GroupBy(field string, fields ...string) *BalanceSnapshotGroupBy
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 {
Namespace string `json:"namespace,omitempty"`
Count int `json:"count,omitempty"`
}
client.BalanceSnapshot.Query().
GroupBy(balancesnapshot.FieldNamespace).
Aggregate(db.Count()).
Scan(ctx, &v)
func (*BalanceSnapshotQuery) IDs ¶
func (bsq *BalanceSnapshotQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of BalanceSnapshot IDs.
func (*BalanceSnapshotQuery) IDsX ¶
func (bsq *BalanceSnapshotQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*BalanceSnapshotQuery) Limit ¶
func (bsq *BalanceSnapshotQuery) Limit(limit int) *BalanceSnapshotQuery
Limit the number of records to be returned by this query.
func (*BalanceSnapshotQuery) Offset ¶
func (bsq *BalanceSnapshotQuery) Offset(offset int) *BalanceSnapshotQuery
Offset to start from.
func (*BalanceSnapshotQuery) Only ¶
func (bsq *BalanceSnapshotQuery) Only(ctx context.Context) (*BalanceSnapshot, error)
Only returns a single BalanceSnapshot entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one BalanceSnapshot entity is found. Returns a *NotFoundError when no BalanceSnapshot entities are found.
func (*BalanceSnapshotQuery) OnlyID ¶
func (bsq *BalanceSnapshotQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only BalanceSnapshot ID in the query. Returns a *NotSingularError when more than one BalanceSnapshot ID is found. Returns a *NotFoundError when no entities are found.
func (*BalanceSnapshotQuery) OnlyIDX ¶
func (bsq *BalanceSnapshotQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*BalanceSnapshotQuery) OnlyX ¶
func (bsq *BalanceSnapshotQuery) OnlyX(ctx context.Context) *BalanceSnapshot
OnlyX is like Only, but panics if an error occurs.
func (*BalanceSnapshotQuery) Order ¶
func (bsq *BalanceSnapshotQuery) Order(o ...balancesnapshot.OrderOption) *BalanceSnapshotQuery
Order specifies how the records should be ordered.
func (*BalanceSnapshotQuery) Paginate ¶
func (bs *BalanceSnapshotQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*BalanceSnapshot], error)
Paginate runs the query and returns a paginated response. If page is its 0 value then it will return all the items and populate the response page accordingly.
func (*BalanceSnapshotQuery) QueryContext ¶
func (c *BalanceSnapshotQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BalanceSnapshotQuery) QueryEntitlement ¶
func (bsq *BalanceSnapshotQuery) QueryEntitlement() *EntitlementQuery
QueryEntitlement chains the current query on the "entitlement" edge.
func (*BalanceSnapshotQuery) Select ¶
func (bsq *BalanceSnapshotQuery) Select(fields ...string) *BalanceSnapshotSelect
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 {
Namespace string `json:"namespace,omitempty"`
}
client.BalanceSnapshot.Query().
Select(balancesnapshot.FieldNamespace).
Scan(ctx, &v)
func (*BalanceSnapshotQuery) Unique ¶
func (bsq *BalanceSnapshotQuery) Unique(unique bool) *BalanceSnapshotQuery
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 (*BalanceSnapshotQuery) Where ¶
func (bsq *BalanceSnapshotQuery) Where(ps ...predicate.BalanceSnapshot) *BalanceSnapshotQuery
Where adds a new predicate for the BalanceSnapshotQuery builder.
func (*BalanceSnapshotQuery) WithEntitlement ¶
func (bsq *BalanceSnapshotQuery) WithEntitlement(opts ...func(*EntitlementQuery)) *BalanceSnapshotQuery
WithEntitlement tells the query-builder to eager-load the nodes that are connected to the "entitlement" edge. The optional arguments are used to configure the query builder of the edge.
type BalanceSnapshotSelect ¶
type BalanceSnapshotSelect struct {
*BalanceSnapshotQuery
// contains filtered or unexported fields
}
BalanceSnapshotSelect is the builder for selecting fields of BalanceSnapshot entities.
func (*BalanceSnapshotSelect) Aggregate ¶
func (bss *BalanceSnapshotSelect) Aggregate(fns ...AggregateFunc) *BalanceSnapshotSelect
Aggregate adds the given aggregation functions to the selector query.
func (*BalanceSnapshotSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*BalanceSnapshotSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (BalanceSnapshotSelect) ExecContext ¶
func (c BalanceSnapshotSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BalanceSnapshotSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*BalanceSnapshotSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*BalanceSnapshotSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*BalanceSnapshotSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*BalanceSnapshotSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (BalanceSnapshotSelect) QueryContext ¶
func (c BalanceSnapshotSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BalanceSnapshotSelect) Scan ¶
func (bss *BalanceSnapshotSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*BalanceSnapshotSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type BalanceSnapshotUpdate ¶
type BalanceSnapshotUpdate struct {
// contains filtered or unexported fields
}
BalanceSnapshotUpdate is the builder for updating BalanceSnapshot entities.
func (*BalanceSnapshotUpdate) ClearDeletedAt ¶
func (bsu *BalanceSnapshotUpdate) ClearDeletedAt() *BalanceSnapshotUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BalanceSnapshotUpdate) Exec ¶
func (bsu *BalanceSnapshotUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*BalanceSnapshotUpdate) ExecContext ¶
func (c *BalanceSnapshotUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BalanceSnapshotUpdate) ExecX ¶
func (bsu *BalanceSnapshotUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BalanceSnapshotUpdate) Mutation ¶
func (bsu *BalanceSnapshotUpdate) Mutation() *BalanceSnapshotMutation
Mutation returns the BalanceSnapshotMutation object of the builder.
func (*BalanceSnapshotUpdate) QueryContext ¶
func (c *BalanceSnapshotUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BalanceSnapshotUpdate) Save ¶
func (bsu *BalanceSnapshotUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*BalanceSnapshotUpdate) SaveX ¶
func (bsu *BalanceSnapshotUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*BalanceSnapshotUpdate) SetDeletedAt ¶
func (bsu *BalanceSnapshotUpdate) SetDeletedAt(t time.Time) *BalanceSnapshotUpdate
SetDeletedAt sets the "deleted_at" field.
func (*BalanceSnapshotUpdate) SetNillableDeletedAt ¶
func (bsu *BalanceSnapshotUpdate) SetNillableDeletedAt(t *time.Time) *BalanceSnapshotUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*BalanceSnapshotUpdate) SetOrClearDeletedAt ¶
func (u *BalanceSnapshotUpdate) SetOrClearDeletedAt(value *time.Time) *BalanceSnapshotUpdate
func (*BalanceSnapshotUpdate) SetUpdatedAt ¶
func (bsu *BalanceSnapshotUpdate) SetUpdatedAt(t time.Time) *BalanceSnapshotUpdate
SetUpdatedAt sets the "updated_at" field.
func (*BalanceSnapshotUpdate) Where ¶
func (bsu *BalanceSnapshotUpdate) Where(ps ...predicate.BalanceSnapshot) *BalanceSnapshotUpdate
Where appends a list predicates to the BalanceSnapshotUpdate builder.
type BalanceSnapshotUpdateOne ¶
type BalanceSnapshotUpdateOne struct {
// contains filtered or unexported fields
}
BalanceSnapshotUpdateOne is the builder for updating a single BalanceSnapshot entity.
func (*BalanceSnapshotUpdateOne) ClearDeletedAt ¶
func (bsuo *BalanceSnapshotUpdateOne) ClearDeletedAt() *BalanceSnapshotUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BalanceSnapshotUpdateOne) Exec ¶
func (bsuo *BalanceSnapshotUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*BalanceSnapshotUpdateOne) ExecContext ¶
func (c *BalanceSnapshotUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BalanceSnapshotUpdateOne) ExecX ¶
func (bsuo *BalanceSnapshotUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BalanceSnapshotUpdateOne) Mutation ¶
func (bsuo *BalanceSnapshotUpdateOne) Mutation() *BalanceSnapshotMutation
Mutation returns the BalanceSnapshotMutation object of the builder.
func (*BalanceSnapshotUpdateOne) QueryContext ¶
func (c *BalanceSnapshotUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BalanceSnapshotUpdateOne) Save ¶
func (bsuo *BalanceSnapshotUpdateOne) Save(ctx context.Context) (*BalanceSnapshot, error)
Save executes the query and returns the updated BalanceSnapshot entity.
func (*BalanceSnapshotUpdateOne) SaveX ¶
func (bsuo *BalanceSnapshotUpdateOne) SaveX(ctx context.Context) *BalanceSnapshot
SaveX is like Save, but panics if an error occurs.
func (*BalanceSnapshotUpdateOne) Select ¶
func (bsuo *BalanceSnapshotUpdateOne) Select(field string, fields ...string) *BalanceSnapshotUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*BalanceSnapshotUpdateOne) SetDeletedAt ¶
func (bsuo *BalanceSnapshotUpdateOne) SetDeletedAt(t time.Time) *BalanceSnapshotUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*BalanceSnapshotUpdateOne) SetNillableDeletedAt ¶
func (bsuo *BalanceSnapshotUpdateOne) SetNillableDeletedAt(t *time.Time) *BalanceSnapshotUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*BalanceSnapshotUpdateOne) SetOrClearDeletedAt ¶
func (u *BalanceSnapshotUpdateOne) SetOrClearDeletedAt(value *time.Time) *BalanceSnapshotUpdateOne
func (*BalanceSnapshotUpdateOne) SetUpdatedAt ¶
func (bsuo *BalanceSnapshotUpdateOne) SetUpdatedAt(t time.Time) *BalanceSnapshotUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*BalanceSnapshotUpdateOne) Where ¶
func (bsuo *BalanceSnapshotUpdateOne) Where(ps ...predicate.BalanceSnapshot) *BalanceSnapshotUpdateOne
Where appends a list predicates to the BalanceSnapshotUpdate builder.
type BalanceSnapshotUpsert ¶
BalanceSnapshotUpsert is the "OnConflict" setter.
func (*BalanceSnapshotUpsert) ClearDeletedAt ¶
func (u *BalanceSnapshotUpsert) ClearDeletedAt() *BalanceSnapshotUpsert
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BalanceSnapshotUpsert) SetDeletedAt ¶
func (u *BalanceSnapshotUpsert) SetDeletedAt(v time.Time) *BalanceSnapshotUpsert
SetDeletedAt sets the "deleted_at" field.
func (*BalanceSnapshotUpsert) SetUpdatedAt ¶
func (u *BalanceSnapshotUpsert) SetUpdatedAt(v time.Time) *BalanceSnapshotUpsert
SetUpdatedAt sets the "updated_at" field.
func (*BalanceSnapshotUpsert) UpdateDeletedAt ¶
func (u *BalanceSnapshotUpsert) UpdateDeletedAt() *BalanceSnapshotUpsert
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*BalanceSnapshotUpsert) UpdateUpdatedAt ¶
func (u *BalanceSnapshotUpsert) UpdateUpdatedAt() *BalanceSnapshotUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type BalanceSnapshotUpsertBulk ¶
type BalanceSnapshotUpsertBulk struct {
// contains filtered or unexported fields
}
BalanceSnapshotUpsertBulk is the builder for "upsert"-ing a bulk of BalanceSnapshot nodes.
func (*BalanceSnapshotUpsertBulk) ClearDeletedAt ¶
func (u *BalanceSnapshotUpsertBulk) ClearDeletedAt() *BalanceSnapshotUpsertBulk
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BalanceSnapshotUpsertBulk) DoNothing ¶
func (u *BalanceSnapshotUpsertBulk) DoNothing() *BalanceSnapshotUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*BalanceSnapshotUpsertBulk) Exec ¶
func (u *BalanceSnapshotUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*BalanceSnapshotUpsertBulk) ExecX ¶
func (u *BalanceSnapshotUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BalanceSnapshotUpsertBulk) Ignore ¶
func (u *BalanceSnapshotUpsertBulk) Ignore() *BalanceSnapshotUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.BalanceSnapshot.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*BalanceSnapshotUpsertBulk) SetDeletedAt ¶
func (u *BalanceSnapshotUpsertBulk) SetDeletedAt(v time.Time) *BalanceSnapshotUpsertBulk
SetDeletedAt sets the "deleted_at" field.
func (*BalanceSnapshotUpsertBulk) SetUpdatedAt ¶
func (u *BalanceSnapshotUpsertBulk) SetUpdatedAt(v time.Time) *BalanceSnapshotUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*BalanceSnapshotUpsertBulk) Update ¶
func (u *BalanceSnapshotUpsertBulk) Update(set func(*BalanceSnapshotUpsert)) *BalanceSnapshotUpsertBulk
Update allows overriding fields `UPDATE` values. See the BalanceSnapshotCreateBulk.OnConflict documentation for more info.
func (*BalanceSnapshotUpsertBulk) UpdateDeletedAt ¶
func (u *BalanceSnapshotUpsertBulk) UpdateDeletedAt() *BalanceSnapshotUpsertBulk
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*BalanceSnapshotUpsertBulk) UpdateNewValues ¶
func (u *BalanceSnapshotUpsertBulk) UpdateNewValues() *BalanceSnapshotUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.BalanceSnapshot.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*BalanceSnapshotUpsertBulk) UpdateUpdatedAt ¶
func (u *BalanceSnapshotUpsertBulk) UpdateUpdatedAt() *BalanceSnapshotUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type BalanceSnapshotUpsertOne ¶
type BalanceSnapshotUpsertOne struct {
// contains filtered or unexported fields
}
BalanceSnapshotUpsertOne is the builder for "upsert"-ing
one BalanceSnapshot node.
func (*BalanceSnapshotUpsertOne) ClearDeletedAt ¶
func (u *BalanceSnapshotUpsertOne) ClearDeletedAt() *BalanceSnapshotUpsertOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BalanceSnapshotUpsertOne) DoNothing ¶
func (u *BalanceSnapshotUpsertOne) DoNothing() *BalanceSnapshotUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*BalanceSnapshotUpsertOne) Exec ¶
func (u *BalanceSnapshotUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*BalanceSnapshotUpsertOne) ExecX ¶
func (u *BalanceSnapshotUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BalanceSnapshotUpsertOne) ID ¶
func (u *BalanceSnapshotUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*BalanceSnapshotUpsertOne) IDX ¶
func (u *BalanceSnapshotUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*BalanceSnapshotUpsertOne) Ignore ¶
func (u *BalanceSnapshotUpsertOne) Ignore() *BalanceSnapshotUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.BalanceSnapshot.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*BalanceSnapshotUpsertOne) SetDeletedAt ¶
func (u *BalanceSnapshotUpsertOne) SetDeletedAt(v time.Time) *BalanceSnapshotUpsertOne
SetDeletedAt sets the "deleted_at" field.
func (*BalanceSnapshotUpsertOne) SetUpdatedAt ¶
func (u *BalanceSnapshotUpsertOne) SetUpdatedAt(v time.Time) *BalanceSnapshotUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*BalanceSnapshotUpsertOne) Update ¶
func (u *BalanceSnapshotUpsertOne) Update(set func(*BalanceSnapshotUpsert)) *BalanceSnapshotUpsertOne
Update allows overriding fields `UPDATE` values. See the BalanceSnapshotCreate.OnConflict documentation for more info.
func (*BalanceSnapshotUpsertOne) UpdateDeletedAt ¶
func (u *BalanceSnapshotUpsertOne) UpdateDeletedAt() *BalanceSnapshotUpsertOne
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*BalanceSnapshotUpsertOne) UpdateNewValues ¶
func (u *BalanceSnapshotUpsertOne) UpdateNewValues() *BalanceSnapshotUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.BalanceSnapshot.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*BalanceSnapshotUpsertOne) UpdateUpdatedAt ¶
func (u *BalanceSnapshotUpsertOne) UpdateUpdatedAt() *BalanceSnapshotUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type BalanceSnapshots ¶
type BalanceSnapshots []*BalanceSnapshot
BalanceSnapshots is a parsable slice of BalanceSnapshot.
type BillingCustomerOverride ¶
type BillingCustomerOverride struct {
// ID of the ent.
ID string `json:"id,omitempty"`
// Namespace holds the value of the "namespace" field.
Namespace string `json:"namespace,omitempty"`
// CreatedAt holds the value of the "created_at" field.
CreatedAt time.Time `json:"created_at,omitempty"`
// UpdatedAt holds the value of the "updated_at" field.
UpdatedAt time.Time `json:"updated_at,omitempty"`
// DeletedAt holds the value of the "deleted_at" field.
DeletedAt *time.Time `json:"deleted_at,omitempty"`
// CustomerID holds the value of the "customer_id" field.
CustomerID string `json:"customer_id,omitempty"`
// BillingProfileID holds the value of the "billing_profile_id" field.
BillingProfileID *string `json:"billing_profile_id,omitempty"`
// CollectionAlignment holds the value of the "collection_alignment" field.
CollectionAlignment *billing.AlignmentKind `json:"collection_alignment,omitempty"`
// ItemCollectionPeriodSeconds holds the value of the "item_collection_period_seconds" field.
ItemCollectionPeriodSeconds *int64 `json:"item_collection_period_seconds,omitempty"`
// InvoiceAutoAdvance holds the value of the "invoice_auto_advance" field.
InvoiceAutoAdvance *bool `json:"invoice_auto_advance,omitempty"`
// InvoiceDraftPeriodSeconds holds the value of the "invoice_draft_period_seconds" field.
InvoiceDraftPeriodSeconds *int64 `json:"invoice_draft_period_seconds,omitempty"`
// InvoiceDueAfterSeconds holds the value of the "invoice_due_after_seconds" field.
InvoiceDueAfterSeconds *int64 `json:"invoice_due_after_seconds,omitempty"`
// InvoiceCollectionMethod holds the value of the "invoice_collection_method" field.
InvoiceCollectionMethod *billing.CollectionMethod `json:"invoice_collection_method,omitempty"`
// InvoiceItemResolution holds the value of the "invoice_item_resolution" field.
InvoiceItemResolution *billing.GranularityResolution `json:"invoice_item_resolution,omitempty"`
// InvoiceItemPerSubject holds the value of the "invoice_item_per_subject" field.
InvoiceItemPerSubject *bool `json:"invoice_item_per_subject,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the BillingCustomerOverrideQuery when eager-loading is set.
Edges BillingCustomerOverrideEdges `json:"edges"`
// contains filtered or unexported fields
}
BillingCustomerOverride is the model entity for the BillingCustomerOverride schema.
func (*BillingCustomerOverride) ExecContext ¶
func (c *BillingCustomerOverride) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingCustomerOverride) QueryBillingProfile ¶
func (bco *BillingCustomerOverride) QueryBillingProfile() *BillingProfileQuery
QueryBillingProfile queries the "billing_profile" edge of the BillingCustomerOverride entity.
func (*BillingCustomerOverride) QueryContext ¶
func (c *BillingCustomerOverride) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingCustomerOverride) QueryCustomer ¶
func (bco *BillingCustomerOverride) QueryCustomer() *CustomerQuery
QueryCustomer queries the "customer" edge of the BillingCustomerOverride entity.
func (*BillingCustomerOverride) String ¶
func (bco *BillingCustomerOverride) String() string
String implements the fmt.Stringer.
func (*BillingCustomerOverride) Unwrap ¶
func (bco *BillingCustomerOverride) Unwrap() *BillingCustomerOverride
Unwrap unwraps the BillingCustomerOverride 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 (*BillingCustomerOverride) Update ¶
func (bco *BillingCustomerOverride) Update() *BillingCustomerOverrideUpdateOne
Update returns a builder for updating this BillingCustomerOverride. Note that you need to call BillingCustomerOverride.Unwrap() before calling this method if this BillingCustomerOverride was returned from a transaction, and the transaction was committed or rolled back.
type BillingCustomerOverrideClient ¶
type BillingCustomerOverrideClient struct {
// contains filtered or unexported fields
}
BillingCustomerOverrideClient is a client for the BillingCustomerOverride schema.
func NewBillingCustomerOverrideClient ¶
func NewBillingCustomerOverrideClient(c config) *BillingCustomerOverrideClient
NewBillingCustomerOverrideClient returns a client for the BillingCustomerOverride from the given config.
func (*BillingCustomerOverrideClient) Create ¶
func (c *BillingCustomerOverrideClient) Create() *BillingCustomerOverrideCreate
Create returns a builder for creating a BillingCustomerOverride entity.
func (*BillingCustomerOverrideClient) CreateBulk ¶
func (c *BillingCustomerOverrideClient) CreateBulk(builders ...*BillingCustomerOverrideCreate) *BillingCustomerOverrideCreateBulk
CreateBulk returns a builder for creating a bulk of BillingCustomerOverride entities.
func (*BillingCustomerOverrideClient) Delete ¶
func (c *BillingCustomerOverrideClient) Delete() *BillingCustomerOverrideDelete
Delete returns a delete builder for BillingCustomerOverride.
func (*BillingCustomerOverrideClient) DeleteOne ¶
func (c *BillingCustomerOverrideClient) DeleteOne(bco *BillingCustomerOverride) *BillingCustomerOverrideDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*BillingCustomerOverrideClient) DeleteOneID ¶
func (c *BillingCustomerOverrideClient) DeleteOneID(id string) *BillingCustomerOverrideDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*BillingCustomerOverrideClient) ExecContext ¶
func (c *BillingCustomerOverrideClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingCustomerOverrideClient) Get ¶
func (c *BillingCustomerOverrideClient) Get(ctx context.Context, id string) (*BillingCustomerOverride, error)
Get returns a BillingCustomerOverride entity by its id.
func (*BillingCustomerOverrideClient) GetX ¶
func (c *BillingCustomerOverrideClient) GetX(ctx context.Context, id string) *BillingCustomerOverride
GetX is like Get, but panics if an error occurs.
func (*BillingCustomerOverrideClient) Hooks ¶
func (c *BillingCustomerOverrideClient) Hooks() []Hook
Hooks returns the client hooks.
func (*BillingCustomerOverrideClient) Intercept ¶
func (c *BillingCustomerOverrideClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `billingcustomeroverride.Intercept(f(g(h())))`.
func (*BillingCustomerOverrideClient) Interceptors ¶
func (c *BillingCustomerOverrideClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*BillingCustomerOverrideClient) MapCreateBulk ¶
func (c *BillingCustomerOverrideClient) MapCreateBulk(slice any, setFunc func(*BillingCustomerOverrideCreate, int)) *BillingCustomerOverrideCreateBulk
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 (*BillingCustomerOverrideClient) Query ¶
func (c *BillingCustomerOverrideClient) Query() *BillingCustomerOverrideQuery
Query returns a query builder for BillingCustomerOverride.
func (*BillingCustomerOverrideClient) QueryBillingProfile ¶
func (c *BillingCustomerOverrideClient) QueryBillingProfile(bco *BillingCustomerOverride) *BillingProfileQuery
QueryBillingProfile queries the billing_profile edge of a BillingCustomerOverride.
func (*BillingCustomerOverrideClient) QueryContext ¶
func (c *BillingCustomerOverrideClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingCustomerOverrideClient) QueryCustomer ¶
func (c *BillingCustomerOverrideClient) QueryCustomer(bco *BillingCustomerOverride) *CustomerQuery
QueryCustomer queries the customer edge of a BillingCustomerOverride.
func (*BillingCustomerOverrideClient) Update ¶
func (c *BillingCustomerOverrideClient) Update() *BillingCustomerOverrideUpdate
Update returns an update builder for BillingCustomerOverride.
func (*BillingCustomerOverrideClient) UpdateOne ¶
func (c *BillingCustomerOverrideClient) UpdateOne(bco *BillingCustomerOverride) *BillingCustomerOverrideUpdateOne
UpdateOne returns an update builder for the given entity.
func (*BillingCustomerOverrideClient) UpdateOneID ¶
func (c *BillingCustomerOverrideClient) UpdateOneID(id string) *BillingCustomerOverrideUpdateOne
UpdateOneID returns an update builder for the given id.
func (*BillingCustomerOverrideClient) Use ¶
func (c *BillingCustomerOverrideClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `billingcustomeroverride.Hooks(f(g(h())))`.
type BillingCustomerOverrideCreate ¶
type BillingCustomerOverrideCreate struct {
// contains filtered or unexported fields
}
BillingCustomerOverrideCreate is the builder for creating a BillingCustomerOverride entity.
func (*BillingCustomerOverrideCreate) Exec ¶
func (bcoc *BillingCustomerOverrideCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*BillingCustomerOverrideCreate) ExecContext ¶
func (c *BillingCustomerOverrideCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingCustomerOverrideCreate) ExecX ¶
func (bcoc *BillingCustomerOverrideCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingCustomerOverrideCreate) Mutation ¶
func (bcoc *BillingCustomerOverrideCreate) Mutation() *BillingCustomerOverrideMutation
Mutation returns the BillingCustomerOverrideMutation object of the builder.
func (*BillingCustomerOverrideCreate) OnConflict ¶
func (bcoc *BillingCustomerOverrideCreate) OnConflict(opts ...sql.ConflictOption) *BillingCustomerOverrideUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.BillingCustomerOverride.Create().
SetNamespace(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.BillingCustomerOverrideUpsert) {
SetNamespace(v+v).
}).
Exec(ctx)
func (*BillingCustomerOverrideCreate) OnConflictColumns ¶
func (bcoc *BillingCustomerOverrideCreate) OnConflictColumns(columns ...string) *BillingCustomerOverrideUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.BillingCustomerOverride.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*BillingCustomerOverrideCreate) QueryContext ¶
func (c *BillingCustomerOverrideCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingCustomerOverrideCreate) Save ¶
func (bcoc *BillingCustomerOverrideCreate) Save(ctx context.Context) (*BillingCustomerOverride, error)
Save creates the BillingCustomerOverride in the database.
func (*BillingCustomerOverrideCreate) SaveX ¶
func (bcoc *BillingCustomerOverrideCreate) SaveX(ctx context.Context) *BillingCustomerOverride
SaveX calls Save and panics if Save returns an error.
func (*BillingCustomerOverrideCreate) SetBillingProfile ¶
func (bcoc *BillingCustomerOverrideCreate) SetBillingProfile(b *BillingProfile) *BillingCustomerOverrideCreate
SetBillingProfile sets the "billing_profile" edge to the BillingProfile entity.
func (*BillingCustomerOverrideCreate) SetBillingProfileID ¶
func (bcoc *BillingCustomerOverrideCreate) SetBillingProfileID(s string) *BillingCustomerOverrideCreate
SetBillingProfileID sets the "billing_profile_id" field.
func (*BillingCustomerOverrideCreate) SetCollectionAlignment ¶
func (bcoc *BillingCustomerOverrideCreate) SetCollectionAlignment(bk billing.AlignmentKind) *BillingCustomerOverrideCreate
SetCollectionAlignment sets the "collection_alignment" field.
func (*BillingCustomerOverrideCreate) SetCreatedAt ¶
func (bcoc *BillingCustomerOverrideCreate) SetCreatedAt(t time.Time) *BillingCustomerOverrideCreate
SetCreatedAt sets the "created_at" field.
func (*BillingCustomerOverrideCreate) SetCustomer ¶
func (bcoc *BillingCustomerOverrideCreate) SetCustomer(c *Customer) *BillingCustomerOverrideCreate
SetCustomer sets the "customer" edge to the Customer entity.
func (*BillingCustomerOverrideCreate) SetCustomerID ¶
func (bcoc *BillingCustomerOverrideCreate) SetCustomerID(s string) *BillingCustomerOverrideCreate
SetCustomerID sets the "customer_id" field.
func (*BillingCustomerOverrideCreate) SetDeletedAt ¶
func (bcoc *BillingCustomerOverrideCreate) SetDeletedAt(t time.Time) *BillingCustomerOverrideCreate
SetDeletedAt sets the "deleted_at" field.
func (*BillingCustomerOverrideCreate) SetID ¶
func (bcoc *BillingCustomerOverrideCreate) SetID(s string) *BillingCustomerOverrideCreate
SetID sets the "id" field.
func (*BillingCustomerOverrideCreate) SetInvoiceAutoAdvance ¶
func (bcoc *BillingCustomerOverrideCreate) SetInvoiceAutoAdvance(b bool) *BillingCustomerOverrideCreate
SetInvoiceAutoAdvance sets the "invoice_auto_advance" field.
func (*BillingCustomerOverrideCreate) SetInvoiceCollectionMethod ¶
func (bcoc *BillingCustomerOverrideCreate) SetInvoiceCollectionMethod(bm billing.CollectionMethod) *BillingCustomerOverrideCreate
SetInvoiceCollectionMethod sets the "invoice_collection_method" field.
func (*BillingCustomerOverrideCreate) SetInvoiceDraftPeriodSeconds ¶
func (bcoc *BillingCustomerOverrideCreate) SetInvoiceDraftPeriodSeconds(i int64) *BillingCustomerOverrideCreate
SetInvoiceDraftPeriodSeconds sets the "invoice_draft_period_seconds" field.
func (*BillingCustomerOverrideCreate) SetInvoiceDueAfterSeconds ¶
func (bcoc *BillingCustomerOverrideCreate) SetInvoiceDueAfterSeconds(i int64) *BillingCustomerOverrideCreate
SetInvoiceDueAfterSeconds sets the "invoice_due_after_seconds" field.
func (*BillingCustomerOverrideCreate) SetInvoiceItemPerSubject ¶
func (bcoc *BillingCustomerOverrideCreate) SetInvoiceItemPerSubject(b bool) *BillingCustomerOverrideCreate
SetInvoiceItemPerSubject sets the "invoice_item_per_subject" field.
func (*BillingCustomerOverrideCreate) SetInvoiceItemResolution ¶
func (bcoc *BillingCustomerOverrideCreate) SetInvoiceItemResolution(br billing.GranularityResolution) *BillingCustomerOverrideCreate
SetInvoiceItemResolution sets the "invoice_item_resolution" field.
func (*BillingCustomerOverrideCreate) SetItemCollectionPeriodSeconds ¶
func (bcoc *BillingCustomerOverrideCreate) SetItemCollectionPeriodSeconds(i int64) *BillingCustomerOverrideCreate
SetItemCollectionPeriodSeconds sets the "item_collection_period_seconds" field.
func (*BillingCustomerOverrideCreate) SetNamespace ¶
func (bcoc *BillingCustomerOverrideCreate) SetNamespace(s string) *BillingCustomerOverrideCreate
SetNamespace sets the "namespace" field.
func (*BillingCustomerOverrideCreate) SetNillableBillingProfileID ¶
func (bcoc *BillingCustomerOverrideCreate) SetNillableBillingProfileID(s *string) *BillingCustomerOverrideCreate
SetNillableBillingProfileID sets the "billing_profile_id" field if the given value is not nil.
func (*BillingCustomerOverrideCreate) SetNillableCollectionAlignment ¶
func (bcoc *BillingCustomerOverrideCreate) SetNillableCollectionAlignment(bk *billing.AlignmentKind) *BillingCustomerOverrideCreate
SetNillableCollectionAlignment sets the "collection_alignment" field if the given value is not nil.
func (*BillingCustomerOverrideCreate) SetNillableCreatedAt ¶
func (bcoc *BillingCustomerOverrideCreate) SetNillableCreatedAt(t *time.Time) *BillingCustomerOverrideCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*BillingCustomerOverrideCreate) SetNillableDeletedAt ¶
func (bcoc *BillingCustomerOverrideCreate) SetNillableDeletedAt(t *time.Time) *BillingCustomerOverrideCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*BillingCustomerOverrideCreate) SetNillableID ¶
func (bcoc *BillingCustomerOverrideCreate) SetNillableID(s *string) *BillingCustomerOverrideCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*BillingCustomerOverrideCreate) SetNillableInvoiceAutoAdvance ¶
func (bcoc *BillingCustomerOverrideCreate) SetNillableInvoiceAutoAdvance(b *bool) *BillingCustomerOverrideCreate
SetNillableInvoiceAutoAdvance sets the "invoice_auto_advance" field if the given value is not nil.
func (*BillingCustomerOverrideCreate) SetNillableInvoiceCollectionMethod ¶
func (bcoc *BillingCustomerOverrideCreate) SetNillableInvoiceCollectionMethod(bm *billing.CollectionMethod) *BillingCustomerOverrideCreate
SetNillableInvoiceCollectionMethod sets the "invoice_collection_method" field if the given value is not nil.
func (*BillingCustomerOverrideCreate) SetNillableInvoiceDraftPeriodSeconds ¶
func (bcoc *BillingCustomerOverrideCreate) SetNillableInvoiceDraftPeriodSeconds(i *int64) *BillingCustomerOverrideCreate
SetNillableInvoiceDraftPeriodSeconds sets the "invoice_draft_period_seconds" field if the given value is not nil.
func (*BillingCustomerOverrideCreate) SetNillableInvoiceDueAfterSeconds ¶
func (bcoc *BillingCustomerOverrideCreate) SetNillableInvoiceDueAfterSeconds(i *int64) *BillingCustomerOverrideCreate
SetNillableInvoiceDueAfterSeconds sets the "invoice_due_after_seconds" field if the given value is not nil.
func (*BillingCustomerOverrideCreate) SetNillableInvoiceItemPerSubject ¶
func (bcoc *BillingCustomerOverrideCreate) SetNillableInvoiceItemPerSubject(b *bool) *BillingCustomerOverrideCreate
SetNillableInvoiceItemPerSubject sets the "invoice_item_per_subject" field if the given value is not nil.
func (*BillingCustomerOverrideCreate) SetNillableInvoiceItemResolution ¶
func (bcoc *BillingCustomerOverrideCreate) SetNillableInvoiceItemResolution(br *billing.GranularityResolution) *BillingCustomerOverrideCreate
SetNillableInvoiceItemResolution sets the "invoice_item_resolution" field if the given value is not nil.
func (*BillingCustomerOverrideCreate) SetNillableItemCollectionPeriodSeconds ¶
func (bcoc *BillingCustomerOverrideCreate) SetNillableItemCollectionPeriodSeconds(i *int64) *BillingCustomerOverrideCreate
SetNillableItemCollectionPeriodSeconds sets the "item_collection_period_seconds" field if the given value is not nil.
func (*BillingCustomerOverrideCreate) SetNillableUpdatedAt ¶
func (bcoc *BillingCustomerOverrideCreate) SetNillableUpdatedAt(t *time.Time) *BillingCustomerOverrideCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*BillingCustomerOverrideCreate) SetUpdatedAt ¶
func (bcoc *BillingCustomerOverrideCreate) SetUpdatedAt(t time.Time) *BillingCustomerOverrideCreate
SetUpdatedAt sets the "updated_at" field.
type BillingCustomerOverrideCreateBulk ¶
type BillingCustomerOverrideCreateBulk struct {
// contains filtered or unexported fields
}
BillingCustomerOverrideCreateBulk is the builder for creating many BillingCustomerOverride entities in bulk.
func (*BillingCustomerOverrideCreateBulk) Exec ¶
func (bcocb *BillingCustomerOverrideCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*BillingCustomerOverrideCreateBulk) ExecContext ¶
func (c *BillingCustomerOverrideCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingCustomerOverrideCreateBulk) ExecX ¶
func (bcocb *BillingCustomerOverrideCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingCustomerOverrideCreateBulk) OnConflict ¶
func (bcocb *BillingCustomerOverrideCreateBulk) OnConflict(opts ...sql.ConflictOption) *BillingCustomerOverrideUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.BillingCustomerOverride.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.BillingCustomerOverrideUpsert) {
SetNamespace(v+v).
}).
Exec(ctx)
func (*BillingCustomerOverrideCreateBulk) OnConflictColumns ¶
func (bcocb *BillingCustomerOverrideCreateBulk) OnConflictColumns(columns ...string) *BillingCustomerOverrideUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.BillingCustomerOverride.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*BillingCustomerOverrideCreateBulk) QueryContext ¶
func (c *BillingCustomerOverrideCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingCustomerOverrideCreateBulk) Save ¶
func (bcocb *BillingCustomerOverrideCreateBulk) Save(ctx context.Context) ([]*BillingCustomerOverride, error)
Save creates the BillingCustomerOverride entities in the database.
func (*BillingCustomerOverrideCreateBulk) SaveX ¶
func (bcocb *BillingCustomerOverrideCreateBulk) SaveX(ctx context.Context) []*BillingCustomerOverride
SaveX is like Save, but panics if an error occurs.
type BillingCustomerOverrideDelete ¶
type BillingCustomerOverrideDelete struct {
// contains filtered or unexported fields
}
BillingCustomerOverrideDelete is the builder for deleting a BillingCustomerOverride entity.
func (*BillingCustomerOverrideDelete) Exec ¶
func (bcod *BillingCustomerOverrideDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*BillingCustomerOverrideDelete) ExecContext ¶
func (c *BillingCustomerOverrideDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingCustomerOverrideDelete) ExecX ¶
func (bcod *BillingCustomerOverrideDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*BillingCustomerOverrideDelete) QueryContext ¶
func (c *BillingCustomerOverrideDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingCustomerOverrideDelete) Where ¶
func (bcod *BillingCustomerOverrideDelete) Where(ps ...predicate.BillingCustomerOverride) *BillingCustomerOverrideDelete
Where appends a list predicates to the BillingCustomerOverrideDelete builder.
type BillingCustomerOverrideDeleteOne ¶
type BillingCustomerOverrideDeleteOne struct {
// contains filtered or unexported fields
}
BillingCustomerOverrideDeleteOne is the builder for deleting a single BillingCustomerOverride entity.
func (*BillingCustomerOverrideDeleteOne) Exec ¶
func (bcodo *BillingCustomerOverrideDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*BillingCustomerOverrideDeleteOne) ExecX ¶
func (bcodo *BillingCustomerOverrideDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingCustomerOverrideDeleteOne) Where ¶
func (bcodo *BillingCustomerOverrideDeleteOne) Where(ps ...predicate.BillingCustomerOverride) *BillingCustomerOverrideDeleteOne
Where appends a list predicates to the BillingCustomerOverrideDelete builder.
type BillingCustomerOverrideEdges ¶
type BillingCustomerOverrideEdges struct {
// Customer holds the value of the customer edge.
Customer *Customer `json:"customer,omitempty"`
// BillingProfile holds the value of the billing_profile edge.
BillingProfile *BillingProfile `json:"billing_profile,omitempty"`
// contains filtered or unexported fields
}
BillingCustomerOverrideEdges holds the relations/edges for other nodes in the graph.
func (BillingCustomerOverrideEdges) BillingProfileOrErr ¶
func (e BillingCustomerOverrideEdges) BillingProfileOrErr() (*BillingProfile, error)
BillingProfileOrErr returns the BillingProfile value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (BillingCustomerOverrideEdges) CustomerOrErr ¶
func (e BillingCustomerOverrideEdges) CustomerOrErr() (*Customer, error)
CustomerOrErr returns the Customer value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type BillingCustomerOverrideGroupBy ¶
type BillingCustomerOverrideGroupBy struct {
// contains filtered or unexported fields
}
BillingCustomerOverrideGroupBy is the group-by builder for BillingCustomerOverride entities.
func (*BillingCustomerOverrideGroupBy) Aggregate ¶
func (bcogb *BillingCustomerOverrideGroupBy) Aggregate(fns ...AggregateFunc) *BillingCustomerOverrideGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*BillingCustomerOverrideGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*BillingCustomerOverrideGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*BillingCustomerOverrideGroupBy) BoolsX ¶
BoolsX is like Bools, but panics if an error occurs.
func (*BillingCustomerOverrideGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*BillingCustomerOverrideGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*BillingCustomerOverrideGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*BillingCustomerOverrideGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*BillingCustomerOverrideGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*BillingCustomerOverrideGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*BillingCustomerOverrideGroupBy) Scan ¶
func (bcogb *BillingCustomerOverrideGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*BillingCustomerOverrideGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*BillingCustomerOverrideGroupBy) StringX ¶
StringX is like String, but panics if an error occurs.
type BillingCustomerOverrideMutation ¶
type BillingCustomerOverrideMutation struct {
// contains filtered or unexported fields
}
BillingCustomerOverrideMutation represents an operation that mutates the BillingCustomerOverride nodes in the graph.
func (*BillingCustomerOverrideMutation) AddField ¶
func (m *BillingCustomerOverrideMutation) 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 (*BillingCustomerOverrideMutation) AddInvoiceDraftPeriodSeconds ¶
func (m *BillingCustomerOverrideMutation) AddInvoiceDraftPeriodSeconds(i int64)
AddInvoiceDraftPeriodSeconds adds i to the "invoice_draft_period_seconds" field.
func (*BillingCustomerOverrideMutation) AddInvoiceDueAfterSeconds ¶
func (m *BillingCustomerOverrideMutation) AddInvoiceDueAfterSeconds(i int64)
AddInvoiceDueAfterSeconds adds i to the "invoice_due_after_seconds" field.
func (*BillingCustomerOverrideMutation) AddItemCollectionPeriodSeconds ¶
func (m *BillingCustomerOverrideMutation) AddItemCollectionPeriodSeconds(i int64)
AddItemCollectionPeriodSeconds adds i to the "item_collection_period_seconds" field.
func (*BillingCustomerOverrideMutation) AddedEdges ¶
func (m *BillingCustomerOverrideMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*BillingCustomerOverrideMutation) AddedField ¶
func (m *BillingCustomerOverrideMutation) 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 (*BillingCustomerOverrideMutation) AddedFields ¶
func (m *BillingCustomerOverrideMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*BillingCustomerOverrideMutation) AddedIDs ¶
func (m *BillingCustomerOverrideMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*BillingCustomerOverrideMutation) AddedInvoiceDraftPeriodSeconds ¶
func (m *BillingCustomerOverrideMutation) AddedInvoiceDraftPeriodSeconds() (r int64, exists bool)
AddedInvoiceDraftPeriodSeconds returns the value that was added to the "invoice_draft_period_seconds" field in this mutation.
func (*BillingCustomerOverrideMutation) AddedInvoiceDueAfterSeconds ¶
func (m *BillingCustomerOverrideMutation) AddedInvoiceDueAfterSeconds() (r int64, exists bool)
AddedInvoiceDueAfterSeconds returns the value that was added to the "invoice_due_after_seconds" field in this mutation.
func (*BillingCustomerOverrideMutation) AddedItemCollectionPeriodSeconds ¶
func (m *BillingCustomerOverrideMutation) AddedItemCollectionPeriodSeconds() (r int64, exists bool)
AddedItemCollectionPeriodSeconds returns the value that was added to the "item_collection_period_seconds" field in this mutation.
func (*BillingCustomerOverrideMutation) BillingProfileCleared ¶
func (m *BillingCustomerOverrideMutation) BillingProfileCleared() bool
BillingProfileCleared reports if the "billing_profile" edge to the BillingProfile entity was cleared.
func (*BillingCustomerOverrideMutation) BillingProfileID ¶
func (m *BillingCustomerOverrideMutation) BillingProfileID() (r string, exists bool)
BillingProfileID returns the value of the "billing_profile_id" field in the mutation.
func (*BillingCustomerOverrideMutation) BillingProfileIDCleared ¶
func (m *BillingCustomerOverrideMutation) BillingProfileIDCleared() bool
BillingProfileIDCleared returns if the "billing_profile_id" field was cleared in this mutation.
func (*BillingCustomerOverrideMutation) BillingProfileIDs ¶
func (m *BillingCustomerOverrideMutation) BillingProfileIDs() (ids []string)
BillingProfileIDs returns the "billing_profile" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use BillingProfileID instead. It exists only for internal usage by the builders.
func (*BillingCustomerOverrideMutation) ClearBillingProfile ¶
func (m *BillingCustomerOverrideMutation) ClearBillingProfile()
ClearBillingProfile clears the "billing_profile" edge to the BillingProfile entity.
func (*BillingCustomerOverrideMutation) ClearBillingProfileID ¶
func (m *BillingCustomerOverrideMutation) ClearBillingProfileID()
ClearBillingProfileID clears the value of the "billing_profile_id" field.
func (*BillingCustomerOverrideMutation) ClearCollectionAlignment ¶
func (m *BillingCustomerOverrideMutation) ClearCollectionAlignment()
ClearCollectionAlignment clears the value of the "collection_alignment" field.
func (*BillingCustomerOverrideMutation) ClearCustomer ¶
func (m *BillingCustomerOverrideMutation) ClearCustomer()
ClearCustomer clears the "customer" edge to the Customer entity.
func (*BillingCustomerOverrideMutation) ClearDeletedAt ¶
func (m *BillingCustomerOverrideMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BillingCustomerOverrideMutation) ClearEdge ¶
func (m *BillingCustomerOverrideMutation) 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 (*BillingCustomerOverrideMutation) ClearField ¶
func (m *BillingCustomerOverrideMutation) 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 (*BillingCustomerOverrideMutation) ClearInvoiceAutoAdvance ¶
func (m *BillingCustomerOverrideMutation) ClearInvoiceAutoAdvance()
ClearInvoiceAutoAdvance clears the value of the "invoice_auto_advance" field.
func (*BillingCustomerOverrideMutation) ClearInvoiceCollectionMethod ¶
func (m *BillingCustomerOverrideMutation) ClearInvoiceCollectionMethod()
ClearInvoiceCollectionMethod clears the value of the "invoice_collection_method" field.
func (*BillingCustomerOverrideMutation) ClearInvoiceDraftPeriodSeconds ¶
func (m *BillingCustomerOverrideMutation) ClearInvoiceDraftPeriodSeconds()
ClearInvoiceDraftPeriodSeconds clears the value of the "invoice_draft_period_seconds" field.
func (*BillingCustomerOverrideMutation) ClearInvoiceDueAfterSeconds ¶
func (m *BillingCustomerOverrideMutation) ClearInvoiceDueAfterSeconds()
ClearInvoiceDueAfterSeconds clears the value of the "invoice_due_after_seconds" field.
func (*BillingCustomerOverrideMutation) ClearInvoiceItemPerSubject ¶
func (m *BillingCustomerOverrideMutation) ClearInvoiceItemPerSubject()
ClearInvoiceItemPerSubject clears the value of the "invoice_item_per_subject" field.
func (*BillingCustomerOverrideMutation) ClearInvoiceItemResolution ¶
func (m *BillingCustomerOverrideMutation) ClearInvoiceItemResolution()
ClearInvoiceItemResolution clears the value of the "invoice_item_resolution" field.
func (*BillingCustomerOverrideMutation) ClearItemCollectionPeriodSeconds ¶
func (m *BillingCustomerOverrideMutation) ClearItemCollectionPeriodSeconds()
ClearItemCollectionPeriodSeconds clears the value of the "item_collection_period_seconds" field.
func (*BillingCustomerOverrideMutation) ClearedEdges ¶
func (m *BillingCustomerOverrideMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*BillingCustomerOverrideMutation) ClearedFields ¶
func (m *BillingCustomerOverrideMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (BillingCustomerOverrideMutation) Client ¶
func (m BillingCustomerOverrideMutation) 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 (*BillingCustomerOverrideMutation) CollectionAlignment ¶
func (m *BillingCustomerOverrideMutation) CollectionAlignment() (r billing.AlignmentKind, exists bool)
CollectionAlignment returns the value of the "collection_alignment" field in the mutation.
func (*BillingCustomerOverrideMutation) CollectionAlignmentCleared ¶
func (m *BillingCustomerOverrideMutation) CollectionAlignmentCleared() bool
CollectionAlignmentCleared returns if the "collection_alignment" field was cleared in this mutation.
func (*BillingCustomerOverrideMutation) CreatedAt ¶
func (m *BillingCustomerOverrideMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*BillingCustomerOverrideMutation) CustomerCleared ¶
func (m *BillingCustomerOverrideMutation) CustomerCleared() bool
CustomerCleared reports if the "customer" edge to the Customer entity was cleared.
func (*BillingCustomerOverrideMutation) CustomerID ¶
func (m *BillingCustomerOverrideMutation) CustomerID() (r string, exists bool)
CustomerID returns the value of the "customer_id" field in the mutation.
func (*BillingCustomerOverrideMutation) CustomerIDs ¶
func (m *BillingCustomerOverrideMutation) CustomerIDs() (ids []string)
CustomerIDs returns the "customer" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use CustomerID instead. It exists only for internal usage by the builders.
func (*BillingCustomerOverrideMutation) DeletedAt ¶
func (m *BillingCustomerOverrideMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*BillingCustomerOverrideMutation) DeletedAtCleared ¶
func (m *BillingCustomerOverrideMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*BillingCustomerOverrideMutation) EdgeCleared ¶
func (m *BillingCustomerOverrideMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*BillingCustomerOverrideMutation) ExecContext ¶
func (c *BillingCustomerOverrideMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingCustomerOverrideMutation) Field ¶
func (m *BillingCustomerOverrideMutation) 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 (*BillingCustomerOverrideMutation) FieldCleared ¶
func (m *BillingCustomerOverrideMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*BillingCustomerOverrideMutation) Fields ¶
func (m *BillingCustomerOverrideMutation) 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 (*BillingCustomerOverrideMutation) ID ¶
func (m *BillingCustomerOverrideMutation) ID() (id string, 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 (*BillingCustomerOverrideMutation) IDs ¶
func (m *BillingCustomerOverrideMutation) IDs(ctx context.Context) ([]string, error)
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 (*BillingCustomerOverrideMutation) InvoiceAutoAdvance ¶
func (m *BillingCustomerOverrideMutation) InvoiceAutoAdvance() (r bool, exists bool)
InvoiceAutoAdvance returns the value of the "invoice_auto_advance" field in the mutation.
func (*BillingCustomerOverrideMutation) InvoiceAutoAdvanceCleared ¶
func (m *BillingCustomerOverrideMutation) InvoiceAutoAdvanceCleared() bool
InvoiceAutoAdvanceCleared returns if the "invoice_auto_advance" field was cleared in this mutation.
func (*BillingCustomerOverrideMutation) InvoiceCollectionMethod ¶
func (m *BillingCustomerOverrideMutation) InvoiceCollectionMethod() (r billing.CollectionMethod, exists bool)
InvoiceCollectionMethod returns the value of the "invoice_collection_method" field in the mutation.
func (*BillingCustomerOverrideMutation) InvoiceCollectionMethodCleared ¶
func (m *BillingCustomerOverrideMutation) InvoiceCollectionMethodCleared() bool
InvoiceCollectionMethodCleared returns if the "invoice_collection_method" field was cleared in this mutation.
func (*BillingCustomerOverrideMutation) InvoiceDraftPeriodSeconds ¶
func (m *BillingCustomerOverrideMutation) InvoiceDraftPeriodSeconds() (r int64, exists bool)
InvoiceDraftPeriodSeconds returns the value of the "invoice_draft_period_seconds" field in the mutation.
func (*BillingCustomerOverrideMutation) InvoiceDraftPeriodSecondsCleared ¶
func (m *BillingCustomerOverrideMutation) InvoiceDraftPeriodSecondsCleared() bool
InvoiceDraftPeriodSecondsCleared returns if the "invoice_draft_period_seconds" field was cleared in this mutation.
func (*BillingCustomerOverrideMutation) InvoiceDueAfterSeconds ¶
func (m *BillingCustomerOverrideMutation) InvoiceDueAfterSeconds() (r int64, exists bool)
InvoiceDueAfterSeconds returns the value of the "invoice_due_after_seconds" field in the mutation.
func (*BillingCustomerOverrideMutation) InvoiceDueAfterSecondsCleared ¶
func (m *BillingCustomerOverrideMutation) InvoiceDueAfterSecondsCleared() bool
InvoiceDueAfterSecondsCleared returns if the "invoice_due_after_seconds" field was cleared in this mutation.
func (*BillingCustomerOverrideMutation) InvoiceItemPerSubject ¶
func (m *BillingCustomerOverrideMutation) InvoiceItemPerSubject() (r bool, exists bool)
InvoiceItemPerSubject returns the value of the "invoice_item_per_subject" field in the mutation.
func (*BillingCustomerOverrideMutation) InvoiceItemPerSubjectCleared ¶
func (m *BillingCustomerOverrideMutation) InvoiceItemPerSubjectCleared() bool
InvoiceItemPerSubjectCleared returns if the "invoice_item_per_subject" field was cleared in this mutation.
func (*BillingCustomerOverrideMutation) InvoiceItemResolution ¶
func (m *BillingCustomerOverrideMutation) InvoiceItemResolution() (r billing.GranularityResolution, exists bool)
InvoiceItemResolution returns the value of the "invoice_item_resolution" field in the mutation.
func (*BillingCustomerOverrideMutation) InvoiceItemResolutionCleared ¶
func (m *BillingCustomerOverrideMutation) InvoiceItemResolutionCleared() bool
InvoiceItemResolutionCleared returns if the "invoice_item_resolution" field was cleared in this mutation.
func (*BillingCustomerOverrideMutation) ItemCollectionPeriodSeconds ¶
func (m *BillingCustomerOverrideMutation) ItemCollectionPeriodSeconds() (r int64, exists bool)
ItemCollectionPeriodSeconds returns the value of the "item_collection_period_seconds" field in the mutation.
func (*BillingCustomerOverrideMutation) ItemCollectionPeriodSecondsCleared ¶
func (m *BillingCustomerOverrideMutation) ItemCollectionPeriodSecondsCleared() bool
ItemCollectionPeriodSecondsCleared returns if the "item_collection_period_seconds" field was cleared in this mutation.
func (*BillingCustomerOverrideMutation) Namespace ¶
func (m *BillingCustomerOverrideMutation) Namespace() (r string, exists bool)
Namespace returns the value of the "namespace" field in the mutation.
func (*BillingCustomerOverrideMutation) OldBillingProfileID ¶
func (m *BillingCustomerOverrideMutation) OldBillingProfileID(ctx context.Context) (v *string, err error)
OldBillingProfileID returns the old "billing_profile_id" field's value of the BillingCustomerOverride entity. If the BillingCustomerOverride 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 (*BillingCustomerOverrideMutation) OldCollectionAlignment ¶
func (m *BillingCustomerOverrideMutation) OldCollectionAlignment(ctx context.Context) (v *billing.AlignmentKind, err error)
OldCollectionAlignment returns the old "collection_alignment" field's value of the BillingCustomerOverride entity. If the BillingCustomerOverride 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 (*BillingCustomerOverrideMutation) OldCreatedAt ¶
func (m *BillingCustomerOverrideMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
OldCreatedAt returns the old "created_at" field's value of the BillingCustomerOverride entity. If the BillingCustomerOverride 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 (*BillingCustomerOverrideMutation) OldCustomerID ¶
func (m *BillingCustomerOverrideMutation) OldCustomerID(ctx context.Context) (v string, err error)
OldCustomerID returns the old "customer_id" field's value of the BillingCustomerOverride entity. If the BillingCustomerOverride 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 (*BillingCustomerOverrideMutation) OldDeletedAt ¶
func (m *BillingCustomerOverrideMutation) OldDeletedAt(ctx context.Context) (v *time.Time, err error)
OldDeletedAt returns the old "deleted_at" field's value of the BillingCustomerOverride entity. If the BillingCustomerOverride 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 (*BillingCustomerOverrideMutation) OldField ¶
func (m *BillingCustomerOverrideMutation) OldField(ctx context.Context, name string) (ent.Value, error)
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 (*BillingCustomerOverrideMutation) OldInvoiceAutoAdvance ¶
func (m *BillingCustomerOverrideMutation) OldInvoiceAutoAdvance(ctx context.Context) (v *bool, err error)
OldInvoiceAutoAdvance returns the old "invoice_auto_advance" field's value of the BillingCustomerOverride entity. If the BillingCustomerOverride 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 (*BillingCustomerOverrideMutation) OldInvoiceCollectionMethod ¶
func (m *BillingCustomerOverrideMutation) OldInvoiceCollectionMethod(ctx context.Context) (v *billing.CollectionMethod, err error)
OldInvoiceCollectionMethod returns the old "invoice_collection_method" field's value of the BillingCustomerOverride entity. If the BillingCustomerOverride 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 (*BillingCustomerOverrideMutation) OldInvoiceDraftPeriodSeconds ¶
func (m *BillingCustomerOverrideMutation) OldInvoiceDraftPeriodSeconds(ctx context.Context) (v *int64, err error)
OldInvoiceDraftPeriodSeconds returns the old "invoice_draft_period_seconds" field's value of the BillingCustomerOverride entity. If the BillingCustomerOverride 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 (*BillingCustomerOverrideMutation) OldInvoiceDueAfterSeconds ¶
func (m *BillingCustomerOverrideMutation) OldInvoiceDueAfterSeconds(ctx context.Context) (v *int64, err error)
OldInvoiceDueAfterSeconds returns the old "invoice_due_after_seconds" field's value of the BillingCustomerOverride entity. If the BillingCustomerOverride 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 (*BillingCustomerOverrideMutation) OldInvoiceItemPerSubject ¶
func (m *BillingCustomerOverrideMutation) OldInvoiceItemPerSubject(ctx context.Context) (v *bool, err error)
OldInvoiceItemPerSubject returns the old "invoice_item_per_subject" field's value of the BillingCustomerOverride entity. If the BillingCustomerOverride 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 (*BillingCustomerOverrideMutation) OldInvoiceItemResolution ¶
func (m *BillingCustomerOverrideMutation) OldInvoiceItemResolution(ctx context.Context) (v *billing.GranularityResolution, err error)
OldInvoiceItemResolution returns the old "invoice_item_resolution" field's value of the BillingCustomerOverride entity. If the BillingCustomerOverride 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 (*BillingCustomerOverrideMutation) OldItemCollectionPeriodSeconds ¶
func (m *BillingCustomerOverrideMutation) OldItemCollectionPeriodSeconds(ctx context.Context) (v *int64, err error)
OldItemCollectionPeriodSeconds returns the old "item_collection_period_seconds" field's value of the BillingCustomerOverride entity. If the BillingCustomerOverride 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 (*BillingCustomerOverrideMutation) OldNamespace ¶
func (m *BillingCustomerOverrideMutation) OldNamespace(ctx context.Context) (v string, err error)
OldNamespace returns the old "namespace" field's value of the BillingCustomerOverride entity. If the BillingCustomerOverride 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 (*BillingCustomerOverrideMutation) OldUpdatedAt ¶
func (m *BillingCustomerOverrideMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
OldUpdatedAt returns the old "updated_at" field's value of the BillingCustomerOverride entity. If the BillingCustomerOverride 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 (*BillingCustomerOverrideMutation) Op ¶
func (m *BillingCustomerOverrideMutation) Op() Op
Op returns the operation name.
func (*BillingCustomerOverrideMutation) QueryContext ¶
func (c *BillingCustomerOverrideMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingCustomerOverrideMutation) RemovedEdges ¶
func (m *BillingCustomerOverrideMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*BillingCustomerOverrideMutation) RemovedIDs ¶
func (m *BillingCustomerOverrideMutation) 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 (*BillingCustomerOverrideMutation) ResetBillingProfile ¶
func (m *BillingCustomerOverrideMutation) ResetBillingProfile()
ResetBillingProfile resets all changes to the "billing_profile" edge.
func (*BillingCustomerOverrideMutation) ResetBillingProfileID ¶
func (m *BillingCustomerOverrideMutation) ResetBillingProfileID()
ResetBillingProfileID resets all changes to the "billing_profile_id" field.
func (*BillingCustomerOverrideMutation) ResetCollectionAlignment ¶
func (m *BillingCustomerOverrideMutation) ResetCollectionAlignment()
ResetCollectionAlignment resets all changes to the "collection_alignment" field.
func (*BillingCustomerOverrideMutation) ResetCreatedAt ¶
func (m *BillingCustomerOverrideMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*BillingCustomerOverrideMutation) ResetCustomer ¶
func (m *BillingCustomerOverrideMutation) ResetCustomer()
ResetCustomer resets all changes to the "customer" edge.
func (*BillingCustomerOverrideMutation) ResetCustomerID ¶
func (m *BillingCustomerOverrideMutation) ResetCustomerID()
ResetCustomerID resets all changes to the "customer_id" field.
func (*BillingCustomerOverrideMutation) ResetDeletedAt ¶
func (m *BillingCustomerOverrideMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*BillingCustomerOverrideMutation) ResetEdge ¶
func (m *BillingCustomerOverrideMutation) 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 (*BillingCustomerOverrideMutation) ResetField ¶
func (m *BillingCustomerOverrideMutation) 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 (*BillingCustomerOverrideMutation) ResetInvoiceAutoAdvance ¶
func (m *BillingCustomerOverrideMutation) ResetInvoiceAutoAdvance()
ResetInvoiceAutoAdvance resets all changes to the "invoice_auto_advance" field.
func (*BillingCustomerOverrideMutation) ResetInvoiceCollectionMethod ¶
func (m *BillingCustomerOverrideMutation) ResetInvoiceCollectionMethod()
ResetInvoiceCollectionMethod resets all changes to the "invoice_collection_method" field.
func (*BillingCustomerOverrideMutation) ResetInvoiceDraftPeriodSeconds ¶
func (m *BillingCustomerOverrideMutation) ResetInvoiceDraftPeriodSeconds()
ResetInvoiceDraftPeriodSeconds resets all changes to the "invoice_draft_period_seconds" field.
func (*BillingCustomerOverrideMutation) ResetInvoiceDueAfterSeconds ¶
func (m *BillingCustomerOverrideMutation) ResetInvoiceDueAfterSeconds()
ResetInvoiceDueAfterSeconds resets all changes to the "invoice_due_after_seconds" field.
func (*BillingCustomerOverrideMutation) ResetInvoiceItemPerSubject ¶
func (m *BillingCustomerOverrideMutation) ResetInvoiceItemPerSubject()
ResetInvoiceItemPerSubject resets all changes to the "invoice_item_per_subject" field.
func (*BillingCustomerOverrideMutation) ResetInvoiceItemResolution ¶
func (m *BillingCustomerOverrideMutation) ResetInvoiceItemResolution()
ResetInvoiceItemResolution resets all changes to the "invoice_item_resolution" field.
func (*BillingCustomerOverrideMutation) ResetItemCollectionPeriodSeconds ¶
func (m *BillingCustomerOverrideMutation) ResetItemCollectionPeriodSeconds()
ResetItemCollectionPeriodSeconds resets all changes to the "item_collection_period_seconds" field.
func (*BillingCustomerOverrideMutation) ResetNamespace ¶
func (m *BillingCustomerOverrideMutation) ResetNamespace()
ResetNamespace resets all changes to the "namespace" field.
func (*BillingCustomerOverrideMutation) ResetUpdatedAt ¶
func (m *BillingCustomerOverrideMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*BillingCustomerOverrideMutation) SetBillingProfileID ¶
func (m *BillingCustomerOverrideMutation) SetBillingProfileID(s string)
SetBillingProfileID sets the "billing_profile_id" field.
func (*BillingCustomerOverrideMutation) SetCollectionAlignment ¶
func (m *BillingCustomerOverrideMutation) SetCollectionAlignment(bk billing.AlignmentKind)
SetCollectionAlignment sets the "collection_alignment" field.
func (*BillingCustomerOverrideMutation) SetCreatedAt ¶
func (m *BillingCustomerOverrideMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*BillingCustomerOverrideMutation) SetCustomerID ¶
func (m *BillingCustomerOverrideMutation) SetCustomerID(s string)
SetCustomerID sets the "customer_id" field.
func (*BillingCustomerOverrideMutation) SetDeletedAt ¶
func (m *BillingCustomerOverrideMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*BillingCustomerOverrideMutation) SetField ¶
func (m *BillingCustomerOverrideMutation) 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 (*BillingCustomerOverrideMutation) SetID ¶
func (m *BillingCustomerOverrideMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of BillingCustomerOverride entities.
func (*BillingCustomerOverrideMutation) SetInvoiceAutoAdvance ¶
func (m *BillingCustomerOverrideMutation) SetInvoiceAutoAdvance(b bool)
SetInvoiceAutoAdvance sets the "invoice_auto_advance" field.
func (*BillingCustomerOverrideMutation) SetInvoiceCollectionMethod ¶
func (m *BillingCustomerOverrideMutation) SetInvoiceCollectionMethod(bm billing.CollectionMethod)
SetInvoiceCollectionMethod sets the "invoice_collection_method" field.
func (*BillingCustomerOverrideMutation) SetInvoiceDraftPeriodSeconds ¶
func (m *BillingCustomerOverrideMutation) SetInvoiceDraftPeriodSeconds(i int64)
SetInvoiceDraftPeriodSeconds sets the "invoice_draft_period_seconds" field.
func (*BillingCustomerOverrideMutation) SetInvoiceDueAfterSeconds ¶
func (m *BillingCustomerOverrideMutation) SetInvoiceDueAfterSeconds(i int64)
SetInvoiceDueAfterSeconds sets the "invoice_due_after_seconds" field.
func (*BillingCustomerOverrideMutation) SetInvoiceItemPerSubject ¶
func (m *BillingCustomerOverrideMutation) SetInvoiceItemPerSubject(b bool)
SetInvoiceItemPerSubject sets the "invoice_item_per_subject" field.
func (*BillingCustomerOverrideMutation) SetInvoiceItemResolution ¶
func (m *BillingCustomerOverrideMutation) SetInvoiceItemResolution(br billing.GranularityResolution)
SetInvoiceItemResolution sets the "invoice_item_resolution" field.
func (*BillingCustomerOverrideMutation) SetItemCollectionPeriodSeconds ¶
func (m *BillingCustomerOverrideMutation) SetItemCollectionPeriodSeconds(i int64)
SetItemCollectionPeriodSeconds sets the "item_collection_period_seconds" field.
func (*BillingCustomerOverrideMutation) SetNamespace ¶
func (m *BillingCustomerOverrideMutation) SetNamespace(s string)
SetNamespace sets the "namespace" field.
func (*BillingCustomerOverrideMutation) SetOp ¶
func (m *BillingCustomerOverrideMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*BillingCustomerOverrideMutation) SetUpdatedAt ¶
func (m *BillingCustomerOverrideMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (BillingCustomerOverrideMutation) Tx ¶
func (m BillingCustomerOverrideMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*BillingCustomerOverrideMutation) Type ¶
func (m *BillingCustomerOverrideMutation) Type() string
Type returns the node type of this mutation (BillingCustomerOverride).
func (*BillingCustomerOverrideMutation) UpdatedAt ¶
func (m *BillingCustomerOverrideMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*BillingCustomerOverrideMutation) Where ¶
func (m *BillingCustomerOverrideMutation) Where(ps ...predicate.BillingCustomerOverride)
Where appends a list predicates to the BillingCustomerOverrideMutation builder.
func (*BillingCustomerOverrideMutation) WhereP ¶
func (m *BillingCustomerOverrideMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the BillingCustomerOverrideMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type BillingCustomerOverrideQuery ¶
type BillingCustomerOverrideQuery struct {
// contains filtered or unexported fields
}
BillingCustomerOverrideQuery is the builder for querying BillingCustomerOverride entities.
func (*BillingCustomerOverrideQuery) Aggregate ¶
func (bcoq *BillingCustomerOverrideQuery) Aggregate(fns ...AggregateFunc) *BillingCustomerOverrideSelect
Aggregate returns a BillingCustomerOverrideSelect configured with the given aggregations.
func (*BillingCustomerOverrideQuery) All ¶
func (bcoq *BillingCustomerOverrideQuery) All(ctx context.Context) ([]*BillingCustomerOverride, error)
All executes the query and returns a list of BillingCustomerOverrides.
func (*BillingCustomerOverrideQuery) AllX ¶
func (bcoq *BillingCustomerOverrideQuery) AllX(ctx context.Context) []*BillingCustomerOverride
AllX is like All, but panics if an error occurs.
func (*BillingCustomerOverrideQuery) Clone ¶
func (bcoq *BillingCustomerOverrideQuery) Clone() *BillingCustomerOverrideQuery
Clone returns a duplicate of the BillingCustomerOverrideQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*BillingCustomerOverrideQuery) Count ¶
func (bcoq *BillingCustomerOverrideQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*BillingCustomerOverrideQuery) CountX ¶
func (bcoq *BillingCustomerOverrideQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*BillingCustomerOverrideQuery) ExecContext ¶
func (c *BillingCustomerOverrideQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingCustomerOverrideQuery) Exist ¶
func (bcoq *BillingCustomerOverrideQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*BillingCustomerOverrideQuery) ExistX ¶
func (bcoq *BillingCustomerOverrideQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*BillingCustomerOverrideQuery) First ¶
func (bcoq *BillingCustomerOverrideQuery) First(ctx context.Context) (*BillingCustomerOverride, error)
First returns the first BillingCustomerOverride entity from the query. Returns a *NotFoundError when no BillingCustomerOverride was found.
func (*BillingCustomerOverrideQuery) FirstID ¶
func (bcoq *BillingCustomerOverrideQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first BillingCustomerOverride ID from the query. Returns a *NotFoundError when no BillingCustomerOverride ID was found.
func (*BillingCustomerOverrideQuery) FirstIDX ¶
func (bcoq *BillingCustomerOverrideQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*BillingCustomerOverrideQuery) FirstX ¶
func (bcoq *BillingCustomerOverrideQuery) FirstX(ctx context.Context) *BillingCustomerOverride
FirstX is like First, but panics if an error occurs.
func (*BillingCustomerOverrideQuery) ForShare ¶
func (bcoq *BillingCustomerOverrideQuery) ForShare(opts ...sql.LockOption) *BillingCustomerOverrideQuery
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 (*BillingCustomerOverrideQuery) ForUpdate ¶
func (bcoq *BillingCustomerOverrideQuery) ForUpdate(opts ...sql.LockOption) *BillingCustomerOverrideQuery
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 (*BillingCustomerOverrideQuery) GroupBy ¶
func (bcoq *BillingCustomerOverrideQuery) GroupBy(field string, fields ...string) *BillingCustomerOverrideGroupBy
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 {
Namespace string `json:"namespace,omitempty"`
Count int `json:"count,omitempty"`
}
client.BillingCustomerOverride.Query().
GroupBy(billingcustomeroverride.FieldNamespace).
Aggregate(db.Count()).
Scan(ctx, &v)
func (*BillingCustomerOverrideQuery) IDs ¶
func (bcoq *BillingCustomerOverrideQuery) IDs(ctx context.Context) (ids []string, err error)
IDs executes the query and returns a list of BillingCustomerOverride IDs.
func (*BillingCustomerOverrideQuery) IDsX ¶
func (bcoq *BillingCustomerOverrideQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*BillingCustomerOverrideQuery) Limit ¶
func (bcoq *BillingCustomerOverrideQuery) Limit(limit int) *BillingCustomerOverrideQuery
Limit the number of records to be returned by this query.
func (*BillingCustomerOverrideQuery) Offset ¶
func (bcoq *BillingCustomerOverrideQuery) Offset(offset int) *BillingCustomerOverrideQuery
Offset to start from.
func (*BillingCustomerOverrideQuery) Only ¶
func (bcoq *BillingCustomerOverrideQuery) Only(ctx context.Context) (*BillingCustomerOverride, error)
Only returns a single BillingCustomerOverride entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one BillingCustomerOverride entity is found. Returns a *NotFoundError when no BillingCustomerOverride entities are found.
func (*BillingCustomerOverrideQuery) OnlyID ¶
func (bcoq *BillingCustomerOverrideQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only BillingCustomerOverride ID in the query. Returns a *NotSingularError when more than one BillingCustomerOverride ID is found. Returns a *NotFoundError when no entities are found.
func (*BillingCustomerOverrideQuery) OnlyIDX ¶
func (bcoq *BillingCustomerOverrideQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*BillingCustomerOverrideQuery) OnlyX ¶
func (bcoq *BillingCustomerOverrideQuery) OnlyX(ctx context.Context) *BillingCustomerOverride
OnlyX is like Only, but panics if an error occurs.
func (*BillingCustomerOverrideQuery) Order ¶
func (bcoq *BillingCustomerOverrideQuery) Order(o ...billingcustomeroverride.OrderOption) *BillingCustomerOverrideQuery
Order specifies how the records should be ordered.
func (*BillingCustomerOverrideQuery) Paginate ¶
func (bco *BillingCustomerOverrideQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*BillingCustomerOverride], error)
Paginate runs the query and returns a paginated response. If page is its 0 value then it will return all the items and populate the response page accordingly.
func (*BillingCustomerOverrideQuery) QueryBillingProfile ¶
func (bcoq *BillingCustomerOverrideQuery) QueryBillingProfile() *BillingProfileQuery
QueryBillingProfile chains the current query on the "billing_profile" edge.
func (*BillingCustomerOverrideQuery) QueryContext ¶
func (c *BillingCustomerOverrideQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingCustomerOverrideQuery) QueryCustomer ¶
func (bcoq *BillingCustomerOverrideQuery) QueryCustomer() *CustomerQuery
QueryCustomer chains the current query on the "customer" edge.
func (*BillingCustomerOverrideQuery) Select ¶
func (bcoq *BillingCustomerOverrideQuery) Select(fields ...string) *BillingCustomerOverrideSelect
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 {
Namespace string `json:"namespace,omitempty"`
}
client.BillingCustomerOverride.Query().
Select(billingcustomeroverride.FieldNamespace).
Scan(ctx, &v)
func (*BillingCustomerOverrideQuery) Unique ¶
func (bcoq *BillingCustomerOverrideQuery) Unique(unique bool) *BillingCustomerOverrideQuery
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 (*BillingCustomerOverrideQuery) Where ¶
func (bcoq *BillingCustomerOverrideQuery) Where(ps ...predicate.BillingCustomerOverride) *BillingCustomerOverrideQuery
Where adds a new predicate for the BillingCustomerOverrideQuery builder.
func (*BillingCustomerOverrideQuery) WithBillingProfile ¶
func (bcoq *BillingCustomerOverrideQuery) WithBillingProfile(opts ...func(*BillingProfileQuery)) *BillingCustomerOverrideQuery
WithBillingProfile tells the query-builder to eager-load the nodes that are connected to the "billing_profile" edge. The optional arguments are used to configure the query builder of the edge.
func (*BillingCustomerOverrideQuery) WithCustomer ¶
func (bcoq *BillingCustomerOverrideQuery) WithCustomer(opts ...func(*CustomerQuery)) *BillingCustomerOverrideQuery
WithCustomer tells the query-builder to eager-load the nodes that are connected to the "customer" edge. The optional arguments are used to configure the query builder of the edge.
type BillingCustomerOverrideSelect ¶
type BillingCustomerOverrideSelect struct {
*BillingCustomerOverrideQuery
// contains filtered or unexported fields
}
BillingCustomerOverrideSelect is the builder for selecting fields of BillingCustomerOverride entities.
func (*BillingCustomerOverrideSelect) Aggregate ¶
func (bcos *BillingCustomerOverrideSelect) Aggregate(fns ...AggregateFunc) *BillingCustomerOverrideSelect
Aggregate adds the given aggregation functions to the selector query.
func (*BillingCustomerOverrideSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*BillingCustomerOverrideSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (BillingCustomerOverrideSelect) ExecContext ¶
func (c BillingCustomerOverrideSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingCustomerOverrideSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*BillingCustomerOverrideSelect) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*BillingCustomerOverrideSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*BillingCustomerOverrideSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*BillingCustomerOverrideSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*BillingCustomerOverrideSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (BillingCustomerOverrideSelect) QueryContext ¶
func (c BillingCustomerOverrideSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingCustomerOverrideSelect) Scan ¶
func (bcos *BillingCustomerOverrideSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*BillingCustomerOverrideSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*BillingCustomerOverrideSelect) StringX ¶
StringX is like String, but panics if an error occurs.
type BillingCustomerOverrideUpdate ¶
type BillingCustomerOverrideUpdate struct {
// contains filtered or unexported fields
}
BillingCustomerOverrideUpdate is the builder for updating BillingCustomerOverride entities.
func (*BillingCustomerOverrideUpdate) AddInvoiceDraftPeriodSeconds ¶
func (bcou *BillingCustomerOverrideUpdate) AddInvoiceDraftPeriodSeconds(i int64) *BillingCustomerOverrideUpdate
AddInvoiceDraftPeriodSeconds adds i to the "invoice_draft_period_seconds" field.
func (*BillingCustomerOverrideUpdate) AddInvoiceDueAfterSeconds ¶
func (bcou *BillingCustomerOverrideUpdate) AddInvoiceDueAfterSeconds(i int64) *BillingCustomerOverrideUpdate
AddInvoiceDueAfterSeconds adds i to the "invoice_due_after_seconds" field.
func (*BillingCustomerOverrideUpdate) AddItemCollectionPeriodSeconds ¶
func (bcou *BillingCustomerOverrideUpdate) AddItemCollectionPeriodSeconds(i int64) *BillingCustomerOverrideUpdate
AddItemCollectionPeriodSeconds adds i to the "item_collection_period_seconds" field.
func (*BillingCustomerOverrideUpdate) ClearBillingProfile ¶
func (bcou *BillingCustomerOverrideUpdate) ClearBillingProfile() *BillingCustomerOverrideUpdate
ClearBillingProfile clears the "billing_profile" edge to the BillingProfile entity.
func (*BillingCustomerOverrideUpdate) ClearBillingProfileID ¶
func (bcou *BillingCustomerOverrideUpdate) ClearBillingProfileID() *BillingCustomerOverrideUpdate
ClearBillingProfileID clears the value of the "billing_profile_id" field.
func (*BillingCustomerOverrideUpdate) ClearCollectionAlignment ¶
func (bcou *BillingCustomerOverrideUpdate) ClearCollectionAlignment() *BillingCustomerOverrideUpdate
ClearCollectionAlignment clears the value of the "collection_alignment" field.
func (*BillingCustomerOverrideUpdate) ClearDeletedAt ¶
func (bcou *BillingCustomerOverrideUpdate) ClearDeletedAt() *BillingCustomerOverrideUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BillingCustomerOverrideUpdate) ClearInvoiceAutoAdvance ¶
func (bcou *BillingCustomerOverrideUpdate) ClearInvoiceAutoAdvance() *BillingCustomerOverrideUpdate
ClearInvoiceAutoAdvance clears the value of the "invoice_auto_advance" field.
func (*BillingCustomerOverrideUpdate) ClearInvoiceCollectionMethod ¶
func (bcou *BillingCustomerOverrideUpdate) ClearInvoiceCollectionMethod() *BillingCustomerOverrideUpdate
ClearInvoiceCollectionMethod clears the value of the "invoice_collection_method" field.
func (*BillingCustomerOverrideUpdate) ClearInvoiceDraftPeriodSeconds ¶
func (bcou *BillingCustomerOverrideUpdate) ClearInvoiceDraftPeriodSeconds() *BillingCustomerOverrideUpdate
ClearInvoiceDraftPeriodSeconds clears the value of the "invoice_draft_period_seconds" field.
func (*BillingCustomerOverrideUpdate) ClearInvoiceDueAfterSeconds ¶
func (bcou *BillingCustomerOverrideUpdate) ClearInvoiceDueAfterSeconds() *BillingCustomerOverrideUpdate
ClearInvoiceDueAfterSeconds clears the value of the "invoice_due_after_seconds" field.
func (*BillingCustomerOverrideUpdate) ClearInvoiceItemPerSubject ¶
func (bcou *BillingCustomerOverrideUpdate) ClearInvoiceItemPerSubject() *BillingCustomerOverrideUpdate
ClearInvoiceItemPerSubject clears the value of the "invoice_item_per_subject" field.
func (*BillingCustomerOverrideUpdate) ClearInvoiceItemResolution ¶
func (bcou *BillingCustomerOverrideUpdate) ClearInvoiceItemResolution() *BillingCustomerOverrideUpdate
ClearInvoiceItemResolution clears the value of the "invoice_item_resolution" field.
func (*BillingCustomerOverrideUpdate) ClearItemCollectionPeriodSeconds ¶
func (bcou *BillingCustomerOverrideUpdate) ClearItemCollectionPeriodSeconds() *BillingCustomerOverrideUpdate
ClearItemCollectionPeriodSeconds clears the value of the "item_collection_period_seconds" field.
func (*BillingCustomerOverrideUpdate) Exec ¶
func (bcou *BillingCustomerOverrideUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*BillingCustomerOverrideUpdate) ExecContext ¶
func (c *BillingCustomerOverrideUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingCustomerOverrideUpdate) ExecX ¶
func (bcou *BillingCustomerOverrideUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingCustomerOverrideUpdate) Mutation ¶
func (bcou *BillingCustomerOverrideUpdate) Mutation() *BillingCustomerOverrideMutation
Mutation returns the BillingCustomerOverrideMutation object of the builder.
func (*BillingCustomerOverrideUpdate) QueryContext ¶
func (c *BillingCustomerOverrideUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingCustomerOverrideUpdate) Save ¶
func (bcou *BillingCustomerOverrideUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*BillingCustomerOverrideUpdate) SaveX ¶
func (bcou *BillingCustomerOverrideUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*BillingCustomerOverrideUpdate) SetBillingProfile ¶
func (bcou *BillingCustomerOverrideUpdate) SetBillingProfile(b *BillingProfile) *BillingCustomerOverrideUpdate
SetBillingProfile sets the "billing_profile" edge to the BillingProfile entity.
func (*BillingCustomerOverrideUpdate) SetBillingProfileID ¶
func (bcou *BillingCustomerOverrideUpdate) SetBillingProfileID(s string) *BillingCustomerOverrideUpdate
SetBillingProfileID sets the "billing_profile_id" field.
func (*BillingCustomerOverrideUpdate) SetCollectionAlignment ¶
func (bcou *BillingCustomerOverrideUpdate) SetCollectionAlignment(bk billing.AlignmentKind) *BillingCustomerOverrideUpdate
SetCollectionAlignment sets the "collection_alignment" field.
func (*BillingCustomerOverrideUpdate) SetDeletedAt ¶
func (bcou *BillingCustomerOverrideUpdate) SetDeletedAt(t time.Time) *BillingCustomerOverrideUpdate
SetDeletedAt sets the "deleted_at" field.
func (*BillingCustomerOverrideUpdate) SetInvoiceAutoAdvance ¶
func (bcou *BillingCustomerOverrideUpdate) SetInvoiceAutoAdvance(b bool) *BillingCustomerOverrideUpdate
SetInvoiceAutoAdvance sets the "invoice_auto_advance" field.
func (*BillingCustomerOverrideUpdate) SetInvoiceCollectionMethod ¶
func (bcou *BillingCustomerOverrideUpdate) SetInvoiceCollectionMethod(bm billing.CollectionMethod) *BillingCustomerOverrideUpdate
SetInvoiceCollectionMethod sets the "invoice_collection_method" field.
func (*BillingCustomerOverrideUpdate) SetInvoiceDraftPeriodSeconds ¶
func (bcou *BillingCustomerOverrideUpdate) SetInvoiceDraftPeriodSeconds(i int64) *BillingCustomerOverrideUpdate
SetInvoiceDraftPeriodSeconds sets the "invoice_draft_period_seconds" field.
func (*BillingCustomerOverrideUpdate) SetInvoiceDueAfterSeconds ¶
func (bcou *BillingCustomerOverrideUpdate) SetInvoiceDueAfterSeconds(i int64) *BillingCustomerOverrideUpdate
SetInvoiceDueAfterSeconds sets the "invoice_due_after_seconds" field.
func (*BillingCustomerOverrideUpdate) SetInvoiceItemPerSubject ¶
func (bcou *BillingCustomerOverrideUpdate) SetInvoiceItemPerSubject(b bool) *BillingCustomerOverrideUpdate
SetInvoiceItemPerSubject sets the "invoice_item_per_subject" field.
func (*BillingCustomerOverrideUpdate) SetInvoiceItemResolution ¶
func (bcou *BillingCustomerOverrideUpdate) SetInvoiceItemResolution(br billing.GranularityResolution) *BillingCustomerOverrideUpdate
SetInvoiceItemResolution sets the "invoice_item_resolution" field.
func (*BillingCustomerOverrideUpdate) SetItemCollectionPeriodSeconds ¶
func (bcou *BillingCustomerOverrideUpdate) SetItemCollectionPeriodSeconds(i int64) *BillingCustomerOverrideUpdate
SetItemCollectionPeriodSeconds sets the "item_collection_period_seconds" field.
func (*BillingCustomerOverrideUpdate) SetNillableBillingProfileID ¶
func (bcou *BillingCustomerOverrideUpdate) SetNillableBillingProfileID(s *string) *BillingCustomerOverrideUpdate
SetNillableBillingProfileID sets the "billing_profile_id" field if the given value is not nil.
func (*BillingCustomerOverrideUpdate) SetNillableCollectionAlignment ¶
func (bcou *BillingCustomerOverrideUpdate) SetNillableCollectionAlignment(bk *billing.AlignmentKind) *BillingCustomerOverrideUpdate
SetNillableCollectionAlignment sets the "collection_alignment" field if the given value is not nil.
func (*BillingCustomerOverrideUpdate) SetNillableDeletedAt ¶
func (bcou *BillingCustomerOverrideUpdate) SetNillableDeletedAt(t *time.Time) *BillingCustomerOverrideUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*BillingCustomerOverrideUpdate) SetNillableInvoiceAutoAdvance ¶
func (bcou *BillingCustomerOverrideUpdate) SetNillableInvoiceAutoAdvance(b *bool) *BillingCustomerOverrideUpdate
SetNillableInvoiceAutoAdvance sets the "invoice_auto_advance" field if the given value is not nil.
func (*BillingCustomerOverrideUpdate) SetNillableInvoiceCollectionMethod ¶
func (bcou *BillingCustomerOverrideUpdate) SetNillableInvoiceCollectionMethod(bm *billing.CollectionMethod) *BillingCustomerOverrideUpdate
SetNillableInvoiceCollectionMethod sets the "invoice_collection_method" field if the given value is not nil.
func (*BillingCustomerOverrideUpdate) SetNillableInvoiceDraftPeriodSeconds ¶
func (bcou *BillingCustomerOverrideUpdate) SetNillableInvoiceDraftPeriodSeconds(i *int64) *BillingCustomerOverrideUpdate
SetNillableInvoiceDraftPeriodSeconds sets the "invoice_draft_period_seconds" field if the given value is not nil.
func (*BillingCustomerOverrideUpdate) SetNillableInvoiceDueAfterSeconds ¶
func (bcou *BillingCustomerOverrideUpdate) SetNillableInvoiceDueAfterSeconds(i *int64) *BillingCustomerOverrideUpdate
SetNillableInvoiceDueAfterSeconds sets the "invoice_due_after_seconds" field if the given value is not nil.
func (*BillingCustomerOverrideUpdate) SetNillableInvoiceItemPerSubject ¶
func (bcou *BillingCustomerOverrideUpdate) SetNillableInvoiceItemPerSubject(b *bool) *BillingCustomerOverrideUpdate
SetNillableInvoiceItemPerSubject sets the "invoice_item_per_subject" field if the given value is not nil.
func (*BillingCustomerOverrideUpdate) SetNillableInvoiceItemResolution ¶
func (bcou *BillingCustomerOverrideUpdate) SetNillableInvoiceItemResolution(br *billing.GranularityResolution) *BillingCustomerOverrideUpdate
SetNillableInvoiceItemResolution sets the "invoice_item_resolution" field if the given value is not nil.
func (*BillingCustomerOverrideUpdate) SetNillableItemCollectionPeriodSeconds ¶
func (bcou *BillingCustomerOverrideUpdate) SetNillableItemCollectionPeriodSeconds(i *int64) *BillingCustomerOverrideUpdate
SetNillableItemCollectionPeriodSeconds sets the "item_collection_period_seconds" field if the given value is not nil.
func (*BillingCustomerOverrideUpdate) SetOrClearBillingProfileID ¶
func (u *BillingCustomerOverrideUpdate) SetOrClearBillingProfileID(value *string) *BillingCustomerOverrideUpdate
func (*BillingCustomerOverrideUpdate) SetOrClearCollectionAlignment ¶
func (u *BillingCustomerOverrideUpdate) SetOrClearCollectionAlignment(value *billing.AlignmentKind) *BillingCustomerOverrideUpdate
func (*BillingCustomerOverrideUpdate) SetOrClearDeletedAt ¶
func (u *BillingCustomerOverrideUpdate) SetOrClearDeletedAt(value *time.Time) *BillingCustomerOverrideUpdate
func (*BillingCustomerOverrideUpdate) SetOrClearInvoiceAutoAdvance ¶
func (u *BillingCustomerOverrideUpdate) SetOrClearInvoiceAutoAdvance(value *bool) *BillingCustomerOverrideUpdate
func (*BillingCustomerOverrideUpdate) SetOrClearInvoiceCollectionMethod ¶
func (u *BillingCustomerOverrideUpdate) SetOrClearInvoiceCollectionMethod(value *billing.CollectionMethod) *BillingCustomerOverrideUpdate
func (*BillingCustomerOverrideUpdate) SetOrClearInvoiceDraftPeriodSeconds ¶
func (u *BillingCustomerOverrideUpdate) SetOrClearInvoiceDraftPeriodSeconds(value *int64) *BillingCustomerOverrideUpdate
func (*BillingCustomerOverrideUpdate) SetOrClearInvoiceDueAfterSeconds ¶
func (u *BillingCustomerOverrideUpdate) SetOrClearInvoiceDueAfterSeconds(value *int64) *BillingCustomerOverrideUpdate
func (*BillingCustomerOverrideUpdate) SetOrClearInvoiceItemPerSubject ¶
func (u *BillingCustomerOverrideUpdate) SetOrClearInvoiceItemPerSubject(value *bool) *BillingCustomerOverrideUpdate
func (*BillingCustomerOverrideUpdate) SetOrClearInvoiceItemResolution ¶
func (u *BillingCustomerOverrideUpdate) SetOrClearInvoiceItemResolution(value *billing.GranularityResolution) *BillingCustomerOverrideUpdate
func (*BillingCustomerOverrideUpdate) SetOrClearItemCollectionPeriodSeconds ¶
func (u *BillingCustomerOverrideUpdate) SetOrClearItemCollectionPeriodSeconds(value *int64) *BillingCustomerOverrideUpdate
func (*BillingCustomerOverrideUpdate) SetUpdatedAt ¶
func (bcou *BillingCustomerOverrideUpdate) SetUpdatedAt(t time.Time) *BillingCustomerOverrideUpdate
SetUpdatedAt sets the "updated_at" field.
func (*BillingCustomerOverrideUpdate) Where ¶
func (bcou *BillingCustomerOverrideUpdate) Where(ps ...predicate.BillingCustomerOverride) *BillingCustomerOverrideUpdate
Where appends a list predicates to the BillingCustomerOverrideUpdate builder.
type BillingCustomerOverrideUpdateOne ¶
type BillingCustomerOverrideUpdateOne struct {
// contains filtered or unexported fields
}
BillingCustomerOverrideUpdateOne is the builder for updating a single BillingCustomerOverride entity.
func (*BillingCustomerOverrideUpdateOne) AddInvoiceDraftPeriodSeconds ¶
func (bcouo *BillingCustomerOverrideUpdateOne) AddInvoiceDraftPeriodSeconds(i int64) *BillingCustomerOverrideUpdateOne
AddInvoiceDraftPeriodSeconds adds i to the "invoice_draft_period_seconds" field.
func (*BillingCustomerOverrideUpdateOne) AddInvoiceDueAfterSeconds ¶
func (bcouo *BillingCustomerOverrideUpdateOne) AddInvoiceDueAfterSeconds(i int64) *BillingCustomerOverrideUpdateOne
AddInvoiceDueAfterSeconds adds i to the "invoice_due_after_seconds" field.
func (*BillingCustomerOverrideUpdateOne) AddItemCollectionPeriodSeconds ¶
func (bcouo *BillingCustomerOverrideUpdateOne) AddItemCollectionPeriodSeconds(i int64) *BillingCustomerOverrideUpdateOne
AddItemCollectionPeriodSeconds adds i to the "item_collection_period_seconds" field.
func (*BillingCustomerOverrideUpdateOne) ClearBillingProfile ¶
func (bcouo *BillingCustomerOverrideUpdateOne) ClearBillingProfile() *BillingCustomerOverrideUpdateOne
ClearBillingProfile clears the "billing_profile" edge to the BillingProfile entity.
func (*BillingCustomerOverrideUpdateOne) ClearBillingProfileID ¶
func (bcouo *BillingCustomerOverrideUpdateOne) ClearBillingProfileID() *BillingCustomerOverrideUpdateOne
ClearBillingProfileID clears the value of the "billing_profile_id" field.
func (*BillingCustomerOverrideUpdateOne) ClearCollectionAlignment ¶
func (bcouo *BillingCustomerOverrideUpdateOne) ClearCollectionAlignment() *BillingCustomerOverrideUpdateOne
ClearCollectionAlignment clears the value of the "collection_alignment" field.
func (*BillingCustomerOverrideUpdateOne) ClearDeletedAt ¶
func (bcouo *BillingCustomerOverrideUpdateOne) ClearDeletedAt() *BillingCustomerOverrideUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BillingCustomerOverrideUpdateOne) ClearInvoiceAutoAdvance ¶
func (bcouo *BillingCustomerOverrideUpdateOne) ClearInvoiceAutoAdvance() *BillingCustomerOverrideUpdateOne
ClearInvoiceAutoAdvance clears the value of the "invoice_auto_advance" field.
func (*BillingCustomerOverrideUpdateOne) ClearInvoiceCollectionMethod ¶
func (bcouo *BillingCustomerOverrideUpdateOne) ClearInvoiceCollectionMethod() *BillingCustomerOverrideUpdateOne
ClearInvoiceCollectionMethod clears the value of the "invoice_collection_method" field.
func (*BillingCustomerOverrideUpdateOne) ClearInvoiceDraftPeriodSeconds ¶
func (bcouo *BillingCustomerOverrideUpdateOne) ClearInvoiceDraftPeriodSeconds() *BillingCustomerOverrideUpdateOne
ClearInvoiceDraftPeriodSeconds clears the value of the "invoice_draft_period_seconds" field.
func (*BillingCustomerOverrideUpdateOne) ClearInvoiceDueAfterSeconds ¶
func (bcouo *BillingCustomerOverrideUpdateOne) ClearInvoiceDueAfterSeconds() *BillingCustomerOverrideUpdateOne
ClearInvoiceDueAfterSeconds clears the value of the "invoice_due_after_seconds" field.
func (*BillingCustomerOverrideUpdateOne) ClearInvoiceItemPerSubject ¶
func (bcouo *BillingCustomerOverrideUpdateOne) ClearInvoiceItemPerSubject() *BillingCustomerOverrideUpdateOne
ClearInvoiceItemPerSubject clears the value of the "invoice_item_per_subject" field.
func (*BillingCustomerOverrideUpdateOne) ClearInvoiceItemResolution ¶
func (bcouo *BillingCustomerOverrideUpdateOne) ClearInvoiceItemResolution() *BillingCustomerOverrideUpdateOne
ClearInvoiceItemResolution clears the value of the "invoice_item_resolution" field.
func (*BillingCustomerOverrideUpdateOne) ClearItemCollectionPeriodSeconds ¶
func (bcouo *BillingCustomerOverrideUpdateOne) ClearItemCollectionPeriodSeconds() *BillingCustomerOverrideUpdateOne
ClearItemCollectionPeriodSeconds clears the value of the "item_collection_period_seconds" field.
func (*BillingCustomerOverrideUpdateOne) Exec ¶
func (bcouo *BillingCustomerOverrideUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*BillingCustomerOverrideUpdateOne) ExecContext ¶
func (c *BillingCustomerOverrideUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingCustomerOverrideUpdateOne) ExecX ¶
func (bcouo *BillingCustomerOverrideUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingCustomerOverrideUpdateOne) Mutation ¶
func (bcouo *BillingCustomerOverrideUpdateOne) Mutation() *BillingCustomerOverrideMutation
Mutation returns the BillingCustomerOverrideMutation object of the builder.
func (*BillingCustomerOverrideUpdateOne) QueryContext ¶
func (c *BillingCustomerOverrideUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingCustomerOverrideUpdateOne) Save ¶
func (bcouo *BillingCustomerOverrideUpdateOne) Save(ctx context.Context) (*BillingCustomerOverride, error)
Save executes the query and returns the updated BillingCustomerOverride entity.
func (*BillingCustomerOverrideUpdateOne) SaveX ¶
func (bcouo *BillingCustomerOverrideUpdateOne) SaveX(ctx context.Context) *BillingCustomerOverride
SaveX is like Save, but panics if an error occurs.
func (*BillingCustomerOverrideUpdateOne) Select ¶
func (bcouo *BillingCustomerOverrideUpdateOne) Select(field string, fields ...string) *BillingCustomerOverrideUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*BillingCustomerOverrideUpdateOne) SetBillingProfile ¶
func (bcouo *BillingCustomerOverrideUpdateOne) SetBillingProfile(b *BillingProfile) *BillingCustomerOverrideUpdateOne
SetBillingProfile sets the "billing_profile" edge to the BillingProfile entity.
func (*BillingCustomerOverrideUpdateOne) SetBillingProfileID ¶
func (bcouo *BillingCustomerOverrideUpdateOne) SetBillingProfileID(s string) *BillingCustomerOverrideUpdateOne
SetBillingProfileID sets the "billing_profile_id" field.
func (*BillingCustomerOverrideUpdateOne) SetCollectionAlignment ¶
func (bcouo *BillingCustomerOverrideUpdateOne) SetCollectionAlignment(bk billing.AlignmentKind) *BillingCustomerOverrideUpdateOne
SetCollectionAlignment sets the "collection_alignment" field.
func (*BillingCustomerOverrideUpdateOne) SetDeletedAt ¶
func (bcouo *BillingCustomerOverrideUpdateOne) SetDeletedAt(t time.Time) *BillingCustomerOverrideUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*BillingCustomerOverrideUpdateOne) SetInvoiceAutoAdvance ¶
func (bcouo *BillingCustomerOverrideUpdateOne) SetInvoiceAutoAdvance(b bool) *BillingCustomerOverrideUpdateOne
SetInvoiceAutoAdvance sets the "invoice_auto_advance" field.
func (*BillingCustomerOverrideUpdateOne) SetInvoiceCollectionMethod ¶
func (bcouo *BillingCustomerOverrideUpdateOne) SetInvoiceCollectionMethod(bm billing.CollectionMethod) *BillingCustomerOverrideUpdateOne
SetInvoiceCollectionMethod sets the "invoice_collection_method" field.
func (*BillingCustomerOverrideUpdateOne) SetInvoiceDraftPeriodSeconds ¶
func (bcouo *BillingCustomerOverrideUpdateOne) SetInvoiceDraftPeriodSeconds(i int64) *BillingCustomerOverrideUpdateOne
SetInvoiceDraftPeriodSeconds sets the "invoice_draft_period_seconds" field.
func (*BillingCustomerOverrideUpdateOne) SetInvoiceDueAfterSeconds ¶
func (bcouo *BillingCustomerOverrideUpdateOne) SetInvoiceDueAfterSeconds(i int64) *BillingCustomerOverrideUpdateOne
SetInvoiceDueAfterSeconds sets the "invoice_due_after_seconds" field.
func (*BillingCustomerOverrideUpdateOne) SetInvoiceItemPerSubject ¶
func (bcouo *BillingCustomerOverrideUpdateOne) SetInvoiceItemPerSubject(b bool) *BillingCustomerOverrideUpdateOne
SetInvoiceItemPerSubject sets the "invoice_item_per_subject" field.
func (*BillingCustomerOverrideUpdateOne) SetInvoiceItemResolution ¶
func (bcouo *BillingCustomerOverrideUpdateOne) SetInvoiceItemResolution(br billing.GranularityResolution) *BillingCustomerOverrideUpdateOne
SetInvoiceItemResolution sets the "invoice_item_resolution" field.
func (*BillingCustomerOverrideUpdateOne) SetItemCollectionPeriodSeconds ¶
func (bcouo *BillingCustomerOverrideUpdateOne) SetItemCollectionPeriodSeconds(i int64) *BillingCustomerOverrideUpdateOne
SetItemCollectionPeriodSeconds sets the "item_collection_period_seconds" field.
func (*BillingCustomerOverrideUpdateOne) SetNillableBillingProfileID ¶
func (bcouo *BillingCustomerOverrideUpdateOne) SetNillableBillingProfileID(s *string) *BillingCustomerOverrideUpdateOne
SetNillableBillingProfileID sets the "billing_profile_id" field if the given value is not nil.
func (*BillingCustomerOverrideUpdateOne) SetNillableCollectionAlignment ¶
func (bcouo *BillingCustomerOverrideUpdateOne) SetNillableCollectionAlignment(bk *billing.AlignmentKind) *BillingCustomerOverrideUpdateOne
SetNillableCollectionAlignment sets the "collection_alignment" field if the given value is not nil.
func (*BillingCustomerOverrideUpdateOne) SetNillableDeletedAt ¶
func (bcouo *BillingCustomerOverrideUpdateOne) SetNillableDeletedAt(t *time.Time) *BillingCustomerOverrideUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*BillingCustomerOverrideUpdateOne) SetNillableInvoiceAutoAdvance ¶
func (bcouo *BillingCustomerOverrideUpdateOne) SetNillableInvoiceAutoAdvance(b *bool) *BillingCustomerOverrideUpdateOne
SetNillableInvoiceAutoAdvance sets the "invoice_auto_advance" field if the given value is not nil.
func (*BillingCustomerOverrideUpdateOne) SetNillableInvoiceCollectionMethod ¶
func (bcouo *BillingCustomerOverrideUpdateOne) SetNillableInvoiceCollectionMethod(bm *billing.CollectionMethod) *BillingCustomerOverrideUpdateOne
SetNillableInvoiceCollectionMethod sets the "invoice_collection_method" field if the given value is not nil.
func (*BillingCustomerOverrideUpdateOne) SetNillableInvoiceDraftPeriodSeconds ¶
func (bcouo *BillingCustomerOverrideUpdateOne) SetNillableInvoiceDraftPeriodSeconds(i *int64) *BillingCustomerOverrideUpdateOne
SetNillableInvoiceDraftPeriodSeconds sets the "invoice_draft_period_seconds" field if the given value is not nil.
func (*BillingCustomerOverrideUpdateOne) SetNillableInvoiceDueAfterSeconds ¶
func (bcouo *BillingCustomerOverrideUpdateOne) SetNillableInvoiceDueAfterSeconds(i *int64) *BillingCustomerOverrideUpdateOne
SetNillableInvoiceDueAfterSeconds sets the "invoice_due_after_seconds" field if the given value is not nil.
func (*BillingCustomerOverrideUpdateOne) SetNillableInvoiceItemPerSubject ¶
func (bcouo *BillingCustomerOverrideUpdateOne) SetNillableInvoiceItemPerSubject(b *bool) *BillingCustomerOverrideUpdateOne
SetNillableInvoiceItemPerSubject sets the "invoice_item_per_subject" field if the given value is not nil.
func (*BillingCustomerOverrideUpdateOne) SetNillableInvoiceItemResolution ¶
func (bcouo *BillingCustomerOverrideUpdateOne) SetNillableInvoiceItemResolution(br *billing.GranularityResolution) *BillingCustomerOverrideUpdateOne
SetNillableInvoiceItemResolution sets the "invoice_item_resolution" field if the given value is not nil.
func (*BillingCustomerOverrideUpdateOne) SetNillableItemCollectionPeriodSeconds ¶
func (bcouo *BillingCustomerOverrideUpdateOne) SetNillableItemCollectionPeriodSeconds(i *int64) *BillingCustomerOverrideUpdateOne
SetNillableItemCollectionPeriodSeconds sets the "item_collection_period_seconds" field if the given value is not nil.
func (*BillingCustomerOverrideUpdateOne) SetOrClearBillingProfileID ¶
func (u *BillingCustomerOverrideUpdateOne) SetOrClearBillingProfileID(value *string) *BillingCustomerOverrideUpdateOne
func (*BillingCustomerOverrideUpdateOne) SetOrClearCollectionAlignment ¶
func (u *BillingCustomerOverrideUpdateOne) SetOrClearCollectionAlignment(value *billing.AlignmentKind) *BillingCustomerOverrideUpdateOne
func (*BillingCustomerOverrideUpdateOne) SetOrClearDeletedAt ¶
func (u *BillingCustomerOverrideUpdateOne) SetOrClearDeletedAt(value *time.Time) *BillingCustomerOverrideUpdateOne
func (*BillingCustomerOverrideUpdateOne) SetOrClearInvoiceAutoAdvance ¶
func (u *BillingCustomerOverrideUpdateOne) SetOrClearInvoiceAutoAdvance(value *bool) *BillingCustomerOverrideUpdateOne
func (*BillingCustomerOverrideUpdateOne) SetOrClearInvoiceCollectionMethod ¶
func (u *BillingCustomerOverrideUpdateOne) SetOrClearInvoiceCollectionMethod(value *billing.CollectionMethod) *BillingCustomerOverrideUpdateOne
func (*BillingCustomerOverrideUpdateOne) SetOrClearInvoiceDraftPeriodSeconds ¶
func (u *BillingCustomerOverrideUpdateOne) SetOrClearInvoiceDraftPeriodSeconds(value *int64) *BillingCustomerOverrideUpdateOne
func (*BillingCustomerOverrideUpdateOne) SetOrClearInvoiceDueAfterSeconds ¶
func (u *BillingCustomerOverrideUpdateOne) SetOrClearInvoiceDueAfterSeconds(value *int64) *BillingCustomerOverrideUpdateOne
func (*BillingCustomerOverrideUpdateOne) SetOrClearInvoiceItemPerSubject ¶
func (u *BillingCustomerOverrideUpdateOne) SetOrClearInvoiceItemPerSubject(value *bool) *BillingCustomerOverrideUpdateOne
func (*BillingCustomerOverrideUpdateOne) SetOrClearInvoiceItemResolution ¶
func (u *BillingCustomerOverrideUpdateOne) SetOrClearInvoiceItemResolution(value *billing.GranularityResolution) *BillingCustomerOverrideUpdateOne
func (*BillingCustomerOverrideUpdateOne) SetOrClearItemCollectionPeriodSeconds ¶
func (u *BillingCustomerOverrideUpdateOne) SetOrClearItemCollectionPeriodSeconds(value *int64) *BillingCustomerOverrideUpdateOne
func (*BillingCustomerOverrideUpdateOne) SetUpdatedAt ¶
func (bcouo *BillingCustomerOverrideUpdateOne) SetUpdatedAt(t time.Time) *BillingCustomerOverrideUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*BillingCustomerOverrideUpdateOne) Where ¶
func (bcouo *BillingCustomerOverrideUpdateOne) Where(ps ...predicate.BillingCustomerOverride) *BillingCustomerOverrideUpdateOne
Where appends a list predicates to the BillingCustomerOverrideUpdate builder.
type BillingCustomerOverrideUpsert ¶
BillingCustomerOverrideUpsert is the "OnConflict" setter.
func (*BillingCustomerOverrideUpsert) AddInvoiceDraftPeriodSeconds ¶
func (u *BillingCustomerOverrideUpsert) AddInvoiceDraftPeriodSeconds(v int64) *BillingCustomerOverrideUpsert
AddInvoiceDraftPeriodSeconds adds v to the "invoice_draft_period_seconds" field.
func (*BillingCustomerOverrideUpsert) AddInvoiceDueAfterSeconds ¶
func (u *BillingCustomerOverrideUpsert) AddInvoiceDueAfterSeconds(v int64) *BillingCustomerOverrideUpsert
AddInvoiceDueAfterSeconds adds v to the "invoice_due_after_seconds" field.
func (*BillingCustomerOverrideUpsert) AddItemCollectionPeriodSeconds ¶
func (u *BillingCustomerOverrideUpsert) AddItemCollectionPeriodSeconds(v int64) *BillingCustomerOverrideUpsert
AddItemCollectionPeriodSeconds adds v to the "item_collection_period_seconds" field.
func (*BillingCustomerOverrideUpsert) ClearBillingProfileID ¶
func (u *BillingCustomerOverrideUpsert) ClearBillingProfileID() *BillingCustomerOverrideUpsert
ClearBillingProfileID clears the value of the "billing_profile_id" field.
func (*BillingCustomerOverrideUpsert) ClearCollectionAlignment ¶
func (u *BillingCustomerOverrideUpsert) ClearCollectionAlignment() *BillingCustomerOverrideUpsert
ClearCollectionAlignment clears the value of the "collection_alignment" field.
func (*BillingCustomerOverrideUpsert) ClearDeletedAt ¶
func (u *BillingCustomerOverrideUpsert) ClearDeletedAt() *BillingCustomerOverrideUpsert
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BillingCustomerOverrideUpsert) ClearInvoiceAutoAdvance ¶
func (u *BillingCustomerOverrideUpsert) ClearInvoiceAutoAdvance() *BillingCustomerOverrideUpsert
ClearInvoiceAutoAdvance clears the value of the "invoice_auto_advance" field.
func (*BillingCustomerOverrideUpsert) ClearInvoiceCollectionMethod ¶
func (u *BillingCustomerOverrideUpsert) ClearInvoiceCollectionMethod() *BillingCustomerOverrideUpsert
ClearInvoiceCollectionMethod clears the value of the "invoice_collection_method" field.
func (*BillingCustomerOverrideUpsert) ClearInvoiceDraftPeriodSeconds ¶
func (u *BillingCustomerOverrideUpsert) ClearInvoiceDraftPeriodSeconds() *BillingCustomerOverrideUpsert
ClearInvoiceDraftPeriodSeconds clears the value of the "invoice_draft_period_seconds" field.
func (*BillingCustomerOverrideUpsert) ClearInvoiceDueAfterSeconds ¶
func (u *BillingCustomerOverrideUpsert) ClearInvoiceDueAfterSeconds() *BillingCustomerOverrideUpsert
ClearInvoiceDueAfterSeconds clears the value of the "invoice_due_after_seconds" field.
func (*BillingCustomerOverrideUpsert) ClearInvoiceItemPerSubject ¶
func (u *BillingCustomerOverrideUpsert) ClearInvoiceItemPerSubject() *BillingCustomerOverrideUpsert
ClearInvoiceItemPerSubject clears the value of the "invoice_item_per_subject" field.
func (*BillingCustomerOverrideUpsert) ClearInvoiceItemResolution ¶
func (u *BillingCustomerOverrideUpsert) ClearInvoiceItemResolution() *BillingCustomerOverrideUpsert
ClearInvoiceItemResolution clears the value of the "invoice_item_resolution" field.
func (*BillingCustomerOverrideUpsert) ClearItemCollectionPeriodSeconds ¶
func (u *BillingCustomerOverrideUpsert) ClearItemCollectionPeriodSeconds() *BillingCustomerOverrideUpsert
ClearItemCollectionPeriodSeconds clears the value of the "item_collection_period_seconds" field.
func (*BillingCustomerOverrideUpsert) SetBillingProfileID ¶
func (u *BillingCustomerOverrideUpsert) SetBillingProfileID(v string) *BillingCustomerOverrideUpsert
SetBillingProfileID sets the "billing_profile_id" field.
func (*BillingCustomerOverrideUpsert) SetCollectionAlignment ¶
func (u *BillingCustomerOverrideUpsert) SetCollectionAlignment(v billing.AlignmentKind) *BillingCustomerOverrideUpsert
SetCollectionAlignment sets the "collection_alignment" field.
func (*BillingCustomerOverrideUpsert) SetDeletedAt ¶
func (u *BillingCustomerOverrideUpsert) SetDeletedAt(v time.Time) *BillingCustomerOverrideUpsert
SetDeletedAt sets the "deleted_at" field.
func (*BillingCustomerOverrideUpsert) SetInvoiceAutoAdvance ¶
func (u *BillingCustomerOverrideUpsert) SetInvoiceAutoAdvance(v bool) *BillingCustomerOverrideUpsert
SetInvoiceAutoAdvance sets the "invoice_auto_advance" field.
func (*BillingCustomerOverrideUpsert) SetInvoiceCollectionMethod ¶
func (u *BillingCustomerOverrideUpsert) SetInvoiceCollectionMethod(v billing.CollectionMethod) *BillingCustomerOverrideUpsert
SetInvoiceCollectionMethod sets the "invoice_collection_method" field.
func (*BillingCustomerOverrideUpsert) SetInvoiceDraftPeriodSeconds ¶
func (u *BillingCustomerOverrideUpsert) SetInvoiceDraftPeriodSeconds(v int64) *BillingCustomerOverrideUpsert
SetInvoiceDraftPeriodSeconds sets the "invoice_draft_period_seconds" field.
func (*BillingCustomerOverrideUpsert) SetInvoiceDueAfterSeconds ¶
func (u *BillingCustomerOverrideUpsert) SetInvoiceDueAfterSeconds(v int64) *BillingCustomerOverrideUpsert
SetInvoiceDueAfterSeconds sets the "invoice_due_after_seconds" field.
func (*BillingCustomerOverrideUpsert) SetInvoiceItemPerSubject ¶
func (u *BillingCustomerOverrideUpsert) SetInvoiceItemPerSubject(v bool) *BillingCustomerOverrideUpsert
SetInvoiceItemPerSubject sets the "invoice_item_per_subject" field.
func (*BillingCustomerOverrideUpsert) SetInvoiceItemResolution ¶
func (u *BillingCustomerOverrideUpsert) SetInvoiceItemResolution(v billing.GranularityResolution) *BillingCustomerOverrideUpsert
SetInvoiceItemResolution sets the "invoice_item_resolution" field.
func (*BillingCustomerOverrideUpsert) SetItemCollectionPeriodSeconds ¶
func (u *BillingCustomerOverrideUpsert) SetItemCollectionPeriodSeconds(v int64) *BillingCustomerOverrideUpsert
SetItemCollectionPeriodSeconds sets the "item_collection_period_seconds" field.
func (*BillingCustomerOverrideUpsert) SetUpdatedAt ¶
func (u *BillingCustomerOverrideUpsert) SetUpdatedAt(v time.Time) *BillingCustomerOverrideUpsert
SetUpdatedAt sets the "updated_at" field.
func (*BillingCustomerOverrideUpsert) UpdateBillingProfileID ¶
func (u *BillingCustomerOverrideUpsert) UpdateBillingProfileID() *BillingCustomerOverrideUpsert
UpdateBillingProfileID sets the "billing_profile_id" field to the value that was provided on create.
func (*BillingCustomerOverrideUpsert) UpdateCollectionAlignment ¶
func (u *BillingCustomerOverrideUpsert) UpdateCollectionAlignment() *BillingCustomerOverrideUpsert
UpdateCollectionAlignment sets the "collection_alignment" field to the value that was provided on create.
func (*BillingCustomerOverrideUpsert) UpdateDeletedAt ¶
func (u *BillingCustomerOverrideUpsert) UpdateDeletedAt() *BillingCustomerOverrideUpsert
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*BillingCustomerOverrideUpsert) UpdateInvoiceAutoAdvance ¶
func (u *BillingCustomerOverrideUpsert) UpdateInvoiceAutoAdvance() *BillingCustomerOverrideUpsert
UpdateInvoiceAutoAdvance sets the "invoice_auto_advance" field to the value that was provided on create.
func (*BillingCustomerOverrideUpsert) UpdateInvoiceCollectionMethod ¶
func (u *BillingCustomerOverrideUpsert) UpdateInvoiceCollectionMethod() *BillingCustomerOverrideUpsert
UpdateInvoiceCollectionMethod sets the "invoice_collection_method" field to the value that was provided on create.
func (*BillingCustomerOverrideUpsert) UpdateInvoiceDraftPeriodSeconds ¶
func (u *BillingCustomerOverrideUpsert) UpdateInvoiceDraftPeriodSeconds() *BillingCustomerOverrideUpsert
UpdateInvoiceDraftPeriodSeconds sets the "invoice_draft_period_seconds" field to the value that was provided on create.
func (*BillingCustomerOverrideUpsert) UpdateInvoiceDueAfterSeconds ¶
func (u *BillingCustomerOverrideUpsert) UpdateInvoiceDueAfterSeconds() *BillingCustomerOverrideUpsert
UpdateInvoiceDueAfterSeconds sets the "invoice_due_after_seconds" field to the value that was provided on create.
func (*BillingCustomerOverrideUpsert) UpdateInvoiceItemPerSubject ¶
func (u *BillingCustomerOverrideUpsert) UpdateInvoiceItemPerSubject() *BillingCustomerOverrideUpsert
UpdateInvoiceItemPerSubject sets the "invoice_item_per_subject" field to the value that was provided on create.
func (*BillingCustomerOverrideUpsert) UpdateInvoiceItemResolution ¶
func (u *BillingCustomerOverrideUpsert) UpdateInvoiceItemResolution() *BillingCustomerOverrideUpsert
UpdateInvoiceItemResolution sets the "invoice_item_resolution" field to the value that was provided on create.
func (*BillingCustomerOverrideUpsert) UpdateItemCollectionPeriodSeconds ¶
func (u *BillingCustomerOverrideUpsert) UpdateItemCollectionPeriodSeconds() *BillingCustomerOverrideUpsert
UpdateItemCollectionPeriodSeconds sets the "item_collection_period_seconds" field to the value that was provided on create.
func (*BillingCustomerOverrideUpsert) UpdateUpdatedAt ¶
func (u *BillingCustomerOverrideUpsert) UpdateUpdatedAt() *BillingCustomerOverrideUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type BillingCustomerOverrideUpsertBulk ¶
type BillingCustomerOverrideUpsertBulk struct {
// contains filtered or unexported fields
}
BillingCustomerOverrideUpsertBulk is the builder for "upsert"-ing a bulk of BillingCustomerOverride nodes.
func (*BillingCustomerOverrideUpsertBulk) AddInvoiceDraftPeriodSeconds ¶
func (u *BillingCustomerOverrideUpsertBulk) AddInvoiceDraftPeriodSeconds(v int64) *BillingCustomerOverrideUpsertBulk
AddInvoiceDraftPeriodSeconds adds v to the "invoice_draft_period_seconds" field.
func (*BillingCustomerOverrideUpsertBulk) AddInvoiceDueAfterSeconds ¶
func (u *BillingCustomerOverrideUpsertBulk) AddInvoiceDueAfterSeconds(v int64) *BillingCustomerOverrideUpsertBulk
AddInvoiceDueAfterSeconds adds v to the "invoice_due_after_seconds" field.
func (*BillingCustomerOverrideUpsertBulk) AddItemCollectionPeriodSeconds ¶
func (u *BillingCustomerOverrideUpsertBulk) AddItemCollectionPeriodSeconds(v int64) *BillingCustomerOverrideUpsertBulk
AddItemCollectionPeriodSeconds adds v to the "item_collection_period_seconds" field.
func (*BillingCustomerOverrideUpsertBulk) ClearBillingProfileID ¶
func (u *BillingCustomerOverrideUpsertBulk) ClearBillingProfileID() *BillingCustomerOverrideUpsertBulk
ClearBillingProfileID clears the value of the "billing_profile_id" field.
func (*BillingCustomerOverrideUpsertBulk) ClearCollectionAlignment ¶
func (u *BillingCustomerOverrideUpsertBulk) ClearCollectionAlignment() *BillingCustomerOverrideUpsertBulk
ClearCollectionAlignment clears the value of the "collection_alignment" field.
func (*BillingCustomerOverrideUpsertBulk) ClearDeletedAt ¶
func (u *BillingCustomerOverrideUpsertBulk) ClearDeletedAt() *BillingCustomerOverrideUpsertBulk
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BillingCustomerOverrideUpsertBulk) ClearInvoiceAutoAdvance ¶
func (u *BillingCustomerOverrideUpsertBulk) ClearInvoiceAutoAdvance() *BillingCustomerOverrideUpsertBulk
ClearInvoiceAutoAdvance clears the value of the "invoice_auto_advance" field.
func (*BillingCustomerOverrideUpsertBulk) ClearInvoiceCollectionMethod ¶
func (u *BillingCustomerOverrideUpsertBulk) ClearInvoiceCollectionMethod() *BillingCustomerOverrideUpsertBulk
ClearInvoiceCollectionMethod clears the value of the "invoice_collection_method" field.
func (*BillingCustomerOverrideUpsertBulk) ClearInvoiceDraftPeriodSeconds ¶
func (u *BillingCustomerOverrideUpsertBulk) ClearInvoiceDraftPeriodSeconds() *BillingCustomerOverrideUpsertBulk
ClearInvoiceDraftPeriodSeconds clears the value of the "invoice_draft_period_seconds" field.
func (*BillingCustomerOverrideUpsertBulk) ClearInvoiceDueAfterSeconds ¶
func (u *BillingCustomerOverrideUpsertBulk) ClearInvoiceDueAfterSeconds() *BillingCustomerOverrideUpsertBulk
ClearInvoiceDueAfterSeconds clears the value of the "invoice_due_after_seconds" field.
func (*BillingCustomerOverrideUpsertBulk) ClearInvoiceItemPerSubject ¶
func (u *BillingCustomerOverrideUpsertBulk) ClearInvoiceItemPerSubject() *BillingCustomerOverrideUpsertBulk
ClearInvoiceItemPerSubject clears the value of the "invoice_item_per_subject" field.
func (*BillingCustomerOverrideUpsertBulk) ClearInvoiceItemResolution ¶
func (u *BillingCustomerOverrideUpsertBulk) ClearInvoiceItemResolution() *BillingCustomerOverrideUpsertBulk
ClearInvoiceItemResolution clears the value of the "invoice_item_resolution" field.
func (*BillingCustomerOverrideUpsertBulk) ClearItemCollectionPeriodSeconds ¶
func (u *BillingCustomerOverrideUpsertBulk) ClearItemCollectionPeriodSeconds() *BillingCustomerOverrideUpsertBulk
ClearItemCollectionPeriodSeconds clears the value of the "item_collection_period_seconds" field.
func (*BillingCustomerOverrideUpsertBulk) DoNothing ¶
func (u *BillingCustomerOverrideUpsertBulk) DoNothing() *BillingCustomerOverrideUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*BillingCustomerOverrideUpsertBulk) Exec ¶
func (u *BillingCustomerOverrideUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*BillingCustomerOverrideUpsertBulk) ExecX ¶
func (u *BillingCustomerOverrideUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingCustomerOverrideUpsertBulk) Ignore ¶
func (u *BillingCustomerOverrideUpsertBulk) Ignore() *BillingCustomerOverrideUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.BillingCustomerOverride.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*BillingCustomerOverrideUpsertBulk) SetBillingProfileID ¶
func (u *BillingCustomerOverrideUpsertBulk) SetBillingProfileID(v string) *BillingCustomerOverrideUpsertBulk
SetBillingProfileID sets the "billing_profile_id" field.
func (*BillingCustomerOverrideUpsertBulk) SetCollectionAlignment ¶
func (u *BillingCustomerOverrideUpsertBulk) SetCollectionAlignment(v billing.AlignmentKind) *BillingCustomerOverrideUpsertBulk
SetCollectionAlignment sets the "collection_alignment" field.
func (*BillingCustomerOverrideUpsertBulk) SetDeletedAt ¶
func (u *BillingCustomerOverrideUpsertBulk) SetDeletedAt(v time.Time) *BillingCustomerOverrideUpsertBulk
SetDeletedAt sets the "deleted_at" field.
func (*BillingCustomerOverrideUpsertBulk) SetInvoiceAutoAdvance ¶
func (u *BillingCustomerOverrideUpsertBulk) SetInvoiceAutoAdvance(v bool) *BillingCustomerOverrideUpsertBulk
SetInvoiceAutoAdvance sets the "invoice_auto_advance" field.
func (*BillingCustomerOverrideUpsertBulk) SetInvoiceCollectionMethod ¶
func (u *BillingCustomerOverrideUpsertBulk) SetInvoiceCollectionMethod(v billing.CollectionMethod) *BillingCustomerOverrideUpsertBulk
SetInvoiceCollectionMethod sets the "invoice_collection_method" field.
func (*BillingCustomerOverrideUpsertBulk) SetInvoiceDraftPeriodSeconds ¶
func (u *BillingCustomerOverrideUpsertBulk) SetInvoiceDraftPeriodSeconds(v int64) *BillingCustomerOverrideUpsertBulk
SetInvoiceDraftPeriodSeconds sets the "invoice_draft_period_seconds" field.
func (*BillingCustomerOverrideUpsertBulk) SetInvoiceDueAfterSeconds ¶
func (u *BillingCustomerOverrideUpsertBulk) SetInvoiceDueAfterSeconds(v int64) *BillingCustomerOverrideUpsertBulk
SetInvoiceDueAfterSeconds sets the "invoice_due_after_seconds" field.
func (*BillingCustomerOverrideUpsertBulk) SetInvoiceItemPerSubject ¶
func (u *BillingCustomerOverrideUpsertBulk) SetInvoiceItemPerSubject(v bool) *BillingCustomerOverrideUpsertBulk
SetInvoiceItemPerSubject sets the "invoice_item_per_subject" field.
func (*BillingCustomerOverrideUpsertBulk) SetInvoiceItemResolution ¶
func (u *BillingCustomerOverrideUpsertBulk) SetInvoiceItemResolution(v billing.GranularityResolution) *BillingCustomerOverrideUpsertBulk
SetInvoiceItemResolution sets the "invoice_item_resolution" field.
func (*BillingCustomerOverrideUpsertBulk) SetItemCollectionPeriodSeconds ¶
func (u *BillingCustomerOverrideUpsertBulk) SetItemCollectionPeriodSeconds(v int64) *BillingCustomerOverrideUpsertBulk
SetItemCollectionPeriodSeconds sets the "item_collection_period_seconds" field.
func (*BillingCustomerOverrideUpsertBulk) SetUpdatedAt ¶
func (u *BillingCustomerOverrideUpsertBulk) SetUpdatedAt(v time.Time) *BillingCustomerOverrideUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*BillingCustomerOverrideUpsertBulk) Update ¶
func (u *BillingCustomerOverrideUpsertBulk) Update(set func(*BillingCustomerOverrideUpsert)) *BillingCustomerOverrideUpsertBulk
Update allows overriding fields `UPDATE` values. See the BillingCustomerOverrideCreateBulk.OnConflict documentation for more info.
func (*BillingCustomerOverrideUpsertBulk) UpdateBillingProfileID ¶
func (u *BillingCustomerOverrideUpsertBulk) UpdateBillingProfileID() *BillingCustomerOverrideUpsertBulk
UpdateBillingProfileID sets the "billing_profile_id" field to the value that was provided on create.
func (*BillingCustomerOverrideUpsertBulk) UpdateCollectionAlignment ¶
func (u *BillingCustomerOverrideUpsertBulk) UpdateCollectionAlignment() *BillingCustomerOverrideUpsertBulk
UpdateCollectionAlignment sets the "collection_alignment" field to the value that was provided on create.
func (*BillingCustomerOverrideUpsertBulk) UpdateDeletedAt ¶
func (u *BillingCustomerOverrideUpsertBulk) UpdateDeletedAt() *BillingCustomerOverrideUpsertBulk
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*BillingCustomerOverrideUpsertBulk) UpdateInvoiceAutoAdvance ¶
func (u *BillingCustomerOverrideUpsertBulk) UpdateInvoiceAutoAdvance() *BillingCustomerOverrideUpsertBulk
UpdateInvoiceAutoAdvance sets the "invoice_auto_advance" field to the value that was provided on create.
func (*BillingCustomerOverrideUpsertBulk) UpdateInvoiceCollectionMethod ¶
func (u *BillingCustomerOverrideUpsertBulk) UpdateInvoiceCollectionMethod() *BillingCustomerOverrideUpsertBulk
UpdateInvoiceCollectionMethod sets the "invoice_collection_method" field to the value that was provided on create.
func (*BillingCustomerOverrideUpsertBulk) UpdateInvoiceDraftPeriodSeconds ¶
func (u *BillingCustomerOverrideUpsertBulk) UpdateInvoiceDraftPeriodSeconds() *BillingCustomerOverrideUpsertBulk
UpdateInvoiceDraftPeriodSeconds sets the "invoice_draft_period_seconds" field to the value that was provided on create.
func (*BillingCustomerOverrideUpsertBulk) UpdateInvoiceDueAfterSeconds ¶
func (u *BillingCustomerOverrideUpsertBulk) UpdateInvoiceDueAfterSeconds() *BillingCustomerOverrideUpsertBulk
UpdateInvoiceDueAfterSeconds sets the "invoice_due_after_seconds" field to the value that was provided on create.
func (*BillingCustomerOverrideUpsertBulk) UpdateInvoiceItemPerSubject ¶
func (u *BillingCustomerOverrideUpsertBulk) UpdateInvoiceItemPerSubject() *BillingCustomerOverrideUpsertBulk
UpdateInvoiceItemPerSubject sets the "invoice_item_per_subject" field to the value that was provided on create.
func (*BillingCustomerOverrideUpsertBulk) UpdateInvoiceItemResolution ¶
func (u *BillingCustomerOverrideUpsertBulk) UpdateInvoiceItemResolution() *BillingCustomerOverrideUpsertBulk
UpdateInvoiceItemResolution sets the "invoice_item_resolution" field to the value that was provided on create.
func (*BillingCustomerOverrideUpsertBulk) UpdateItemCollectionPeriodSeconds ¶
func (u *BillingCustomerOverrideUpsertBulk) UpdateItemCollectionPeriodSeconds() *BillingCustomerOverrideUpsertBulk
UpdateItemCollectionPeriodSeconds sets the "item_collection_period_seconds" field to the value that was provided on create.
func (*BillingCustomerOverrideUpsertBulk) UpdateNewValues ¶
func (u *BillingCustomerOverrideUpsertBulk) UpdateNewValues() *BillingCustomerOverrideUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.BillingCustomerOverride.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(billingcustomeroverride.FieldID)
}),
).
Exec(ctx)
func (*BillingCustomerOverrideUpsertBulk) UpdateUpdatedAt ¶
func (u *BillingCustomerOverrideUpsertBulk) UpdateUpdatedAt() *BillingCustomerOverrideUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type BillingCustomerOverrideUpsertOne ¶
type BillingCustomerOverrideUpsertOne struct {
// contains filtered or unexported fields
}
BillingCustomerOverrideUpsertOne is the builder for "upsert"-ing
one BillingCustomerOverride node.
func (*BillingCustomerOverrideUpsertOne) AddInvoiceDraftPeriodSeconds ¶
func (u *BillingCustomerOverrideUpsertOne) AddInvoiceDraftPeriodSeconds(v int64) *BillingCustomerOverrideUpsertOne
AddInvoiceDraftPeriodSeconds adds v to the "invoice_draft_period_seconds" field.
func (*BillingCustomerOverrideUpsertOne) AddInvoiceDueAfterSeconds ¶
func (u *BillingCustomerOverrideUpsertOne) AddInvoiceDueAfterSeconds(v int64) *BillingCustomerOverrideUpsertOne
AddInvoiceDueAfterSeconds adds v to the "invoice_due_after_seconds" field.
func (*BillingCustomerOverrideUpsertOne) AddItemCollectionPeriodSeconds ¶
func (u *BillingCustomerOverrideUpsertOne) AddItemCollectionPeriodSeconds(v int64) *BillingCustomerOverrideUpsertOne
AddItemCollectionPeriodSeconds adds v to the "item_collection_period_seconds" field.
func (*BillingCustomerOverrideUpsertOne) ClearBillingProfileID ¶
func (u *BillingCustomerOverrideUpsertOne) ClearBillingProfileID() *BillingCustomerOverrideUpsertOne
ClearBillingProfileID clears the value of the "billing_profile_id" field.
func (*BillingCustomerOverrideUpsertOne) ClearCollectionAlignment ¶
func (u *BillingCustomerOverrideUpsertOne) ClearCollectionAlignment() *BillingCustomerOverrideUpsertOne
ClearCollectionAlignment clears the value of the "collection_alignment" field.
func (*BillingCustomerOverrideUpsertOne) ClearDeletedAt ¶
func (u *BillingCustomerOverrideUpsertOne) ClearDeletedAt() *BillingCustomerOverrideUpsertOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BillingCustomerOverrideUpsertOne) ClearInvoiceAutoAdvance ¶
func (u *BillingCustomerOverrideUpsertOne) ClearInvoiceAutoAdvance() *BillingCustomerOverrideUpsertOne
ClearInvoiceAutoAdvance clears the value of the "invoice_auto_advance" field.
func (*BillingCustomerOverrideUpsertOne) ClearInvoiceCollectionMethod ¶
func (u *BillingCustomerOverrideUpsertOne) ClearInvoiceCollectionMethod() *BillingCustomerOverrideUpsertOne
ClearInvoiceCollectionMethod clears the value of the "invoice_collection_method" field.
func (*BillingCustomerOverrideUpsertOne) ClearInvoiceDraftPeriodSeconds ¶
func (u *BillingCustomerOverrideUpsertOne) ClearInvoiceDraftPeriodSeconds() *BillingCustomerOverrideUpsertOne
ClearInvoiceDraftPeriodSeconds clears the value of the "invoice_draft_period_seconds" field.
func (*BillingCustomerOverrideUpsertOne) ClearInvoiceDueAfterSeconds ¶
func (u *BillingCustomerOverrideUpsertOne) ClearInvoiceDueAfterSeconds() *BillingCustomerOverrideUpsertOne
ClearInvoiceDueAfterSeconds clears the value of the "invoice_due_after_seconds" field.
func (*BillingCustomerOverrideUpsertOne) ClearInvoiceItemPerSubject ¶
func (u *BillingCustomerOverrideUpsertOne) ClearInvoiceItemPerSubject() *BillingCustomerOverrideUpsertOne
ClearInvoiceItemPerSubject clears the value of the "invoice_item_per_subject" field.
func (*BillingCustomerOverrideUpsertOne) ClearInvoiceItemResolution ¶
func (u *BillingCustomerOverrideUpsertOne) ClearInvoiceItemResolution() *BillingCustomerOverrideUpsertOne
ClearInvoiceItemResolution clears the value of the "invoice_item_resolution" field.
func (*BillingCustomerOverrideUpsertOne) ClearItemCollectionPeriodSeconds ¶
func (u *BillingCustomerOverrideUpsertOne) ClearItemCollectionPeriodSeconds() *BillingCustomerOverrideUpsertOne
ClearItemCollectionPeriodSeconds clears the value of the "item_collection_period_seconds" field.
func (*BillingCustomerOverrideUpsertOne) DoNothing ¶
func (u *BillingCustomerOverrideUpsertOne) DoNothing() *BillingCustomerOverrideUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*BillingCustomerOverrideUpsertOne) Exec ¶
func (u *BillingCustomerOverrideUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*BillingCustomerOverrideUpsertOne) ExecX ¶
func (u *BillingCustomerOverrideUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingCustomerOverrideUpsertOne) ID ¶
func (u *BillingCustomerOverrideUpsertOne) ID(ctx context.Context) (id string, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*BillingCustomerOverrideUpsertOne) IDX ¶
func (u *BillingCustomerOverrideUpsertOne) IDX(ctx context.Context) string
IDX is like ID, but panics if an error occurs.
func (*BillingCustomerOverrideUpsertOne) Ignore ¶
func (u *BillingCustomerOverrideUpsertOne) Ignore() *BillingCustomerOverrideUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.BillingCustomerOverride.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*BillingCustomerOverrideUpsertOne) SetBillingProfileID ¶
func (u *BillingCustomerOverrideUpsertOne) SetBillingProfileID(v string) *BillingCustomerOverrideUpsertOne
SetBillingProfileID sets the "billing_profile_id" field.
func (*BillingCustomerOverrideUpsertOne) SetCollectionAlignment ¶
func (u *BillingCustomerOverrideUpsertOne) SetCollectionAlignment(v billing.AlignmentKind) *BillingCustomerOverrideUpsertOne
SetCollectionAlignment sets the "collection_alignment" field.
func (*BillingCustomerOverrideUpsertOne) SetDeletedAt ¶
func (u *BillingCustomerOverrideUpsertOne) SetDeletedAt(v time.Time) *BillingCustomerOverrideUpsertOne
SetDeletedAt sets the "deleted_at" field.
func (*BillingCustomerOverrideUpsertOne) SetInvoiceAutoAdvance ¶
func (u *BillingCustomerOverrideUpsertOne) SetInvoiceAutoAdvance(v bool) *BillingCustomerOverrideUpsertOne
SetInvoiceAutoAdvance sets the "invoice_auto_advance" field.
func (*BillingCustomerOverrideUpsertOne) SetInvoiceCollectionMethod ¶
func (u *BillingCustomerOverrideUpsertOne) SetInvoiceCollectionMethod(v billing.CollectionMethod) *BillingCustomerOverrideUpsertOne
SetInvoiceCollectionMethod sets the "invoice_collection_method" field.
func (*BillingCustomerOverrideUpsertOne) SetInvoiceDraftPeriodSeconds ¶
func (u *BillingCustomerOverrideUpsertOne) SetInvoiceDraftPeriodSeconds(v int64) *BillingCustomerOverrideUpsertOne
SetInvoiceDraftPeriodSeconds sets the "invoice_draft_period_seconds" field.
func (*BillingCustomerOverrideUpsertOne) SetInvoiceDueAfterSeconds ¶
func (u *BillingCustomerOverrideUpsertOne) SetInvoiceDueAfterSeconds(v int64) *BillingCustomerOverrideUpsertOne
SetInvoiceDueAfterSeconds sets the "invoice_due_after_seconds" field.
func (*BillingCustomerOverrideUpsertOne) SetInvoiceItemPerSubject ¶
func (u *BillingCustomerOverrideUpsertOne) SetInvoiceItemPerSubject(v bool) *BillingCustomerOverrideUpsertOne
SetInvoiceItemPerSubject sets the "invoice_item_per_subject" field.
func (*BillingCustomerOverrideUpsertOne) SetInvoiceItemResolution ¶
func (u *BillingCustomerOverrideUpsertOne) SetInvoiceItemResolution(v billing.GranularityResolution) *BillingCustomerOverrideUpsertOne
SetInvoiceItemResolution sets the "invoice_item_resolution" field.
func (*BillingCustomerOverrideUpsertOne) SetItemCollectionPeriodSeconds ¶
func (u *BillingCustomerOverrideUpsertOne) SetItemCollectionPeriodSeconds(v int64) *BillingCustomerOverrideUpsertOne
SetItemCollectionPeriodSeconds sets the "item_collection_period_seconds" field.
func (*BillingCustomerOverrideUpsertOne) SetUpdatedAt ¶
func (u *BillingCustomerOverrideUpsertOne) SetUpdatedAt(v time.Time) *BillingCustomerOverrideUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*BillingCustomerOverrideUpsertOne) Update ¶
func (u *BillingCustomerOverrideUpsertOne) Update(set func(*BillingCustomerOverrideUpsert)) *BillingCustomerOverrideUpsertOne
Update allows overriding fields `UPDATE` values. See the BillingCustomerOverrideCreate.OnConflict documentation for more info.
func (*BillingCustomerOverrideUpsertOne) UpdateBillingProfileID ¶
func (u *BillingCustomerOverrideUpsertOne) UpdateBillingProfileID() *BillingCustomerOverrideUpsertOne
UpdateBillingProfileID sets the "billing_profile_id" field to the value that was provided on create.
func (*BillingCustomerOverrideUpsertOne) UpdateCollectionAlignment ¶
func (u *BillingCustomerOverrideUpsertOne) UpdateCollectionAlignment() *BillingCustomerOverrideUpsertOne
UpdateCollectionAlignment sets the "collection_alignment" field to the value that was provided on create.
func (*BillingCustomerOverrideUpsertOne) UpdateDeletedAt ¶
func (u *BillingCustomerOverrideUpsertOne) UpdateDeletedAt() *BillingCustomerOverrideUpsertOne
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*BillingCustomerOverrideUpsertOne) UpdateInvoiceAutoAdvance ¶
func (u *BillingCustomerOverrideUpsertOne) UpdateInvoiceAutoAdvance() *BillingCustomerOverrideUpsertOne
UpdateInvoiceAutoAdvance sets the "invoice_auto_advance" field to the value that was provided on create.
func (*BillingCustomerOverrideUpsertOne) UpdateInvoiceCollectionMethod ¶
func (u *BillingCustomerOverrideUpsertOne) UpdateInvoiceCollectionMethod() *BillingCustomerOverrideUpsertOne
UpdateInvoiceCollectionMethod sets the "invoice_collection_method" field to the value that was provided on create.
func (*BillingCustomerOverrideUpsertOne) UpdateInvoiceDraftPeriodSeconds ¶
func (u *BillingCustomerOverrideUpsertOne) UpdateInvoiceDraftPeriodSeconds() *BillingCustomerOverrideUpsertOne
UpdateInvoiceDraftPeriodSeconds sets the "invoice_draft_period_seconds" field to the value that was provided on create.
func (*BillingCustomerOverrideUpsertOne) UpdateInvoiceDueAfterSeconds ¶
func (u *BillingCustomerOverrideUpsertOne) UpdateInvoiceDueAfterSeconds() *BillingCustomerOverrideUpsertOne
UpdateInvoiceDueAfterSeconds sets the "invoice_due_after_seconds" field to the value that was provided on create.
func (*BillingCustomerOverrideUpsertOne) UpdateInvoiceItemPerSubject ¶
func (u *BillingCustomerOverrideUpsertOne) UpdateInvoiceItemPerSubject() *BillingCustomerOverrideUpsertOne
UpdateInvoiceItemPerSubject sets the "invoice_item_per_subject" field to the value that was provided on create.
func (*BillingCustomerOverrideUpsertOne) UpdateInvoiceItemResolution ¶
func (u *BillingCustomerOverrideUpsertOne) UpdateInvoiceItemResolution() *BillingCustomerOverrideUpsertOne
UpdateInvoiceItemResolution sets the "invoice_item_resolution" field to the value that was provided on create.
func (*BillingCustomerOverrideUpsertOne) UpdateItemCollectionPeriodSeconds ¶
func (u *BillingCustomerOverrideUpsertOne) UpdateItemCollectionPeriodSeconds() *BillingCustomerOverrideUpsertOne
UpdateItemCollectionPeriodSeconds sets the "item_collection_period_seconds" field to the value that was provided on create.
func (*BillingCustomerOverrideUpsertOne) UpdateNewValues ¶
func (u *BillingCustomerOverrideUpsertOne) UpdateNewValues() *BillingCustomerOverrideUpsertOne
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.BillingCustomerOverride.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(billingcustomeroverride.FieldID)
}),
).
Exec(ctx)
func (*BillingCustomerOverrideUpsertOne) UpdateUpdatedAt ¶
func (u *BillingCustomerOverrideUpsertOne) UpdateUpdatedAt() *BillingCustomerOverrideUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type BillingCustomerOverrides ¶
type BillingCustomerOverrides []*BillingCustomerOverride
BillingCustomerOverrides is a parsable slice of BillingCustomerOverride.
type BillingInvoice ¶
type BillingInvoice struct {
// ID of the ent.
ID string `json:"id,omitempty"`
// Namespace holds the value of the "namespace" field.
Namespace string `json:"namespace,omitempty"`
// CreatedAt holds the value of the "created_at" field.
CreatedAt time.Time `json:"created_at,omitempty"`
// UpdatedAt holds the value of the "updated_at" field.
UpdatedAt time.Time `json:"updated_at,omitempty"`
// DeletedAt holds the value of the "deleted_at" field.
DeletedAt *time.Time `json:"deleted_at,omitempty"`
// Metadata holds the value of the "metadata" field.
Metadata map[string]string `json:"metadata,omitempty"`
// Series holds the value of the "series" field.
Series *string `json:"series,omitempty"`
// Code holds the value of the "code" field.
Code *string `json:"code,omitempty"`
// CustomerID holds the value of the "customer_id" field.
CustomerID string `json:"customer_id,omitempty"`
// BillingProfileID holds the value of the "billing_profile_id" field.
BillingProfileID string `json:"billing_profile_id,omitempty"`
// VoidedAt holds the value of the "voided_at" field.
VoidedAt time.Time `json:"voided_at,omitempty"`
// Currency holds the value of the "currency" field.
Currency string `json:"currency,omitempty"`
// DueDate holds the value of the "due_date" field.
DueDate time.Time `json:"due_date,omitempty"`
// Status holds the value of the "status" field.
Status billing.InvoiceStatus `json:"status,omitempty"`
// TaxProvider holds the value of the "tax_provider" field.
TaxProvider *provider.TaxProvider `json:"tax_provider,omitempty"`
// InvoicingProvider holds the value of the "invoicing_provider" field.
InvoicingProvider *provider.InvoicingProvider `json:"invoicing_provider,omitempty"`
// PaymentProvider holds the value of the "payment_provider" field.
PaymentProvider *provider.PaymentProvider `json:"payment_provider,omitempty"`
// WorkflowConfigID holds the value of the "workflow_config_id" field.
WorkflowConfigID string `json:"workflow_config_id,omitempty"`
// PeriodStart holds the value of the "period_start" field.
PeriodStart time.Time `json:"period_start,omitempty"`
// PeriodEnd holds the value of the "period_end" field.
PeriodEnd time.Time `json:"period_end,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the BillingInvoiceQuery when eager-loading is set.
Edges BillingInvoiceEdges `json:"edges"`
// contains filtered or unexported fields
}
BillingInvoice is the model entity for the BillingInvoice schema.
func (*BillingInvoice) ExecContext ¶
func (c *BillingInvoice) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingInvoice) QueryBillingInvoiceItems ¶
func (bi *BillingInvoice) QueryBillingInvoiceItems() *BillingInvoiceItemQuery
QueryBillingInvoiceItems queries the "billing_invoice_items" edge of the BillingInvoice entity.
func (*BillingInvoice) QueryBillingProfile ¶
func (bi *BillingInvoice) QueryBillingProfile() *BillingProfileQuery
QueryBillingProfile queries the "billing_profile" edge of the BillingInvoice entity.
func (*BillingInvoice) QueryBillingWorkflowConfig ¶
func (bi *BillingInvoice) QueryBillingWorkflowConfig() *BillingWorkflowConfigQuery
QueryBillingWorkflowConfig queries the "billing_workflow_config" edge of the BillingInvoice entity.
func (*BillingInvoice) QueryContext ¶
func (c *BillingInvoice) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingInvoice) String ¶
func (bi *BillingInvoice) String() string
String implements the fmt.Stringer.
func (*BillingInvoice) Unwrap ¶
func (bi *BillingInvoice) Unwrap() *BillingInvoice
Unwrap unwraps the BillingInvoice 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 (*BillingInvoice) Update ¶
func (bi *BillingInvoice) Update() *BillingInvoiceUpdateOne
Update returns a builder for updating this BillingInvoice. Note that you need to call BillingInvoice.Unwrap() before calling this method if this BillingInvoice was returned from a transaction, and the transaction was committed or rolled back.
type BillingInvoiceClient ¶
type BillingInvoiceClient struct {
// contains filtered or unexported fields
}
BillingInvoiceClient is a client for the BillingInvoice schema.
func NewBillingInvoiceClient ¶
func NewBillingInvoiceClient(c config) *BillingInvoiceClient
NewBillingInvoiceClient returns a client for the BillingInvoice from the given config.
func (*BillingInvoiceClient) Create ¶
func (c *BillingInvoiceClient) Create() *BillingInvoiceCreate
Create returns a builder for creating a BillingInvoice entity.
func (*BillingInvoiceClient) CreateBulk ¶
func (c *BillingInvoiceClient) CreateBulk(builders ...*BillingInvoiceCreate) *BillingInvoiceCreateBulk
CreateBulk returns a builder for creating a bulk of BillingInvoice entities.
func (*BillingInvoiceClient) Delete ¶
func (c *BillingInvoiceClient) Delete() *BillingInvoiceDelete
Delete returns a delete builder for BillingInvoice.
func (*BillingInvoiceClient) DeleteOne ¶
func (c *BillingInvoiceClient) DeleteOne(bi *BillingInvoice) *BillingInvoiceDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*BillingInvoiceClient) DeleteOneID ¶
func (c *BillingInvoiceClient) DeleteOneID(id string) *BillingInvoiceDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*BillingInvoiceClient) ExecContext ¶
func (c *BillingInvoiceClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingInvoiceClient) Get ¶
func (c *BillingInvoiceClient) Get(ctx context.Context, id string) (*BillingInvoice, error)
Get returns a BillingInvoice entity by its id.
func (*BillingInvoiceClient) GetX ¶
func (c *BillingInvoiceClient) GetX(ctx context.Context, id string) *BillingInvoice
GetX is like Get, but panics if an error occurs.
func (*BillingInvoiceClient) Hooks ¶
func (c *BillingInvoiceClient) Hooks() []Hook
Hooks returns the client hooks.
func (*BillingInvoiceClient) Intercept ¶
func (c *BillingInvoiceClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `billinginvoice.Intercept(f(g(h())))`.
func (*BillingInvoiceClient) Interceptors ¶
func (c *BillingInvoiceClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*BillingInvoiceClient) MapCreateBulk ¶
func (c *BillingInvoiceClient) MapCreateBulk(slice any, setFunc func(*BillingInvoiceCreate, int)) *BillingInvoiceCreateBulk
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 (*BillingInvoiceClient) Query ¶
func (c *BillingInvoiceClient) Query() *BillingInvoiceQuery
Query returns a query builder for BillingInvoice.
func (*BillingInvoiceClient) QueryBillingInvoiceItems ¶
func (c *BillingInvoiceClient) QueryBillingInvoiceItems(bi *BillingInvoice) *BillingInvoiceItemQuery
QueryBillingInvoiceItems queries the billing_invoice_items edge of a BillingInvoice.
func (*BillingInvoiceClient) QueryBillingProfile ¶
func (c *BillingInvoiceClient) QueryBillingProfile(bi *BillingInvoice) *BillingProfileQuery
QueryBillingProfile queries the billing_profile edge of a BillingInvoice.
func (*BillingInvoiceClient) QueryBillingWorkflowConfig ¶
func (c *BillingInvoiceClient) QueryBillingWorkflowConfig(bi *BillingInvoice) *BillingWorkflowConfigQuery
QueryBillingWorkflowConfig queries the billing_workflow_config edge of a BillingInvoice.
func (*BillingInvoiceClient) QueryContext ¶
func (c *BillingInvoiceClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingInvoiceClient) Update ¶
func (c *BillingInvoiceClient) Update() *BillingInvoiceUpdate
Update returns an update builder for BillingInvoice.
func (*BillingInvoiceClient) UpdateOne ¶
func (c *BillingInvoiceClient) UpdateOne(bi *BillingInvoice) *BillingInvoiceUpdateOne
UpdateOne returns an update builder for the given entity.
func (*BillingInvoiceClient) UpdateOneID ¶
func (c *BillingInvoiceClient) UpdateOneID(id string) *BillingInvoiceUpdateOne
UpdateOneID returns an update builder for the given id.
func (*BillingInvoiceClient) Use ¶
func (c *BillingInvoiceClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `billinginvoice.Hooks(f(g(h())))`.
type BillingInvoiceCreate ¶
type BillingInvoiceCreate struct {
// contains filtered or unexported fields
}
BillingInvoiceCreate is the builder for creating a BillingInvoice entity.
func (*BillingInvoiceCreate) AddBillingInvoiceItemIDs ¶
func (bic *BillingInvoiceCreate) AddBillingInvoiceItemIDs(ids ...string) *BillingInvoiceCreate
AddBillingInvoiceItemIDs adds the "billing_invoice_items" edge to the BillingInvoiceItem entity by IDs.
func (*BillingInvoiceCreate) AddBillingInvoiceItems ¶
func (bic *BillingInvoiceCreate) AddBillingInvoiceItems(b ...*BillingInvoiceItem) *BillingInvoiceCreate
AddBillingInvoiceItems adds the "billing_invoice_items" edges to the BillingInvoiceItem entity.
func (*BillingInvoiceCreate) Exec ¶
func (bic *BillingInvoiceCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*BillingInvoiceCreate) ExecContext ¶
func (c *BillingInvoiceCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingInvoiceCreate) ExecX ¶
func (bic *BillingInvoiceCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingInvoiceCreate) Mutation ¶
func (bic *BillingInvoiceCreate) Mutation() *BillingInvoiceMutation
Mutation returns the BillingInvoiceMutation object of the builder.
func (*BillingInvoiceCreate) OnConflict ¶
func (bic *BillingInvoiceCreate) OnConflict(opts ...sql.ConflictOption) *BillingInvoiceUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.BillingInvoice.Create().
SetNamespace(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.BillingInvoiceUpsert) {
SetNamespace(v+v).
}).
Exec(ctx)
func (*BillingInvoiceCreate) OnConflictColumns ¶
func (bic *BillingInvoiceCreate) OnConflictColumns(columns ...string) *BillingInvoiceUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.BillingInvoice.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*BillingInvoiceCreate) QueryContext ¶
func (c *BillingInvoiceCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingInvoiceCreate) Save ¶
func (bic *BillingInvoiceCreate) Save(ctx context.Context) (*BillingInvoice, error)
Save creates the BillingInvoice in the database.
func (*BillingInvoiceCreate) SaveX ¶
func (bic *BillingInvoiceCreate) SaveX(ctx context.Context) *BillingInvoice
SaveX calls Save and panics if Save returns an error.
func (*BillingInvoiceCreate) SetBillingProfile ¶
func (bic *BillingInvoiceCreate) SetBillingProfile(b *BillingProfile) *BillingInvoiceCreate
SetBillingProfile sets the "billing_profile" edge to the BillingProfile entity.
func (*BillingInvoiceCreate) SetBillingProfileID ¶
func (bic *BillingInvoiceCreate) SetBillingProfileID(s string) *BillingInvoiceCreate
SetBillingProfileID sets the "billing_profile_id" field.
func (*BillingInvoiceCreate) SetBillingWorkflowConfig ¶
func (bic *BillingInvoiceCreate) SetBillingWorkflowConfig(b *BillingWorkflowConfig) *BillingInvoiceCreate
SetBillingWorkflowConfig sets the "billing_workflow_config" edge to the BillingWorkflowConfig entity.
func (*BillingInvoiceCreate) SetBillingWorkflowConfigID ¶
func (bic *BillingInvoiceCreate) SetBillingWorkflowConfigID(id string) *BillingInvoiceCreate
SetBillingWorkflowConfigID sets the "billing_workflow_config" edge to the BillingWorkflowConfig entity by ID.
func (*BillingInvoiceCreate) SetCode ¶
func (bic *BillingInvoiceCreate) SetCode(s string) *BillingInvoiceCreate
SetCode sets the "code" field.
func (*BillingInvoiceCreate) SetCreatedAt ¶
func (bic *BillingInvoiceCreate) SetCreatedAt(t time.Time) *BillingInvoiceCreate
SetCreatedAt sets the "created_at" field.
func (*BillingInvoiceCreate) SetCurrency ¶
func (bic *BillingInvoiceCreate) SetCurrency(s string) *BillingInvoiceCreate
SetCurrency sets the "currency" field.
func (*BillingInvoiceCreate) SetCustomerID ¶
func (bic *BillingInvoiceCreate) SetCustomerID(s string) *BillingInvoiceCreate
SetCustomerID sets the "customer_id" field.
func (*BillingInvoiceCreate) SetDeletedAt ¶
func (bic *BillingInvoiceCreate) SetDeletedAt(t time.Time) *BillingInvoiceCreate
SetDeletedAt sets the "deleted_at" field.
func (*BillingInvoiceCreate) SetDueDate ¶
func (bic *BillingInvoiceCreate) SetDueDate(t time.Time) *BillingInvoiceCreate
SetDueDate sets the "due_date" field.
func (*BillingInvoiceCreate) SetID ¶
func (bic *BillingInvoiceCreate) SetID(s string) *BillingInvoiceCreate
SetID sets the "id" field.
func (*BillingInvoiceCreate) SetInvoicingProvider ¶
func (bic *BillingInvoiceCreate) SetInvoicingProvider(pp provider.InvoicingProvider) *BillingInvoiceCreate
SetInvoicingProvider sets the "invoicing_provider" field.
func (*BillingInvoiceCreate) SetMetadata ¶
func (bic *BillingInvoiceCreate) SetMetadata(m map[string]string) *BillingInvoiceCreate
SetMetadata sets the "metadata" field.
func (*BillingInvoiceCreate) SetNamespace ¶
func (bic *BillingInvoiceCreate) SetNamespace(s string) *BillingInvoiceCreate
SetNamespace sets the "namespace" field.
func (*BillingInvoiceCreate) SetNillableCode ¶
func (bic *BillingInvoiceCreate) SetNillableCode(s *string) *BillingInvoiceCreate
SetNillableCode sets the "code" field if the given value is not nil.
func (*BillingInvoiceCreate) SetNillableCreatedAt ¶
func (bic *BillingInvoiceCreate) SetNillableCreatedAt(t *time.Time) *BillingInvoiceCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*BillingInvoiceCreate) SetNillableDeletedAt ¶
func (bic *BillingInvoiceCreate) SetNillableDeletedAt(t *time.Time) *BillingInvoiceCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*BillingInvoiceCreate) SetNillableID ¶
func (bic *BillingInvoiceCreate) SetNillableID(s *string) *BillingInvoiceCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*BillingInvoiceCreate) SetNillableInvoicingProvider ¶
func (bic *BillingInvoiceCreate) SetNillableInvoicingProvider(pp *provider.InvoicingProvider) *BillingInvoiceCreate
SetNillableInvoicingProvider sets the "invoicing_provider" field if the given value is not nil.
func (*BillingInvoiceCreate) SetNillablePaymentProvider ¶
func (bic *BillingInvoiceCreate) SetNillablePaymentProvider(pp *provider.PaymentProvider) *BillingInvoiceCreate
SetNillablePaymentProvider sets the "payment_provider" field if the given value is not nil.
func (*BillingInvoiceCreate) SetNillableSeries ¶
func (bic *BillingInvoiceCreate) SetNillableSeries(s *string) *BillingInvoiceCreate
SetNillableSeries sets the "series" field if the given value is not nil.
func (*BillingInvoiceCreate) SetNillableTaxProvider ¶
func (bic *BillingInvoiceCreate) SetNillableTaxProvider(pp *provider.TaxProvider) *BillingInvoiceCreate
SetNillableTaxProvider sets the "tax_provider" field if the given value is not nil.
func (*BillingInvoiceCreate) SetNillableUpdatedAt ¶
func (bic *BillingInvoiceCreate) SetNillableUpdatedAt(t *time.Time) *BillingInvoiceCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*BillingInvoiceCreate) SetNillableVoidedAt ¶
func (bic *BillingInvoiceCreate) SetNillableVoidedAt(t *time.Time) *BillingInvoiceCreate
SetNillableVoidedAt sets the "voided_at" field if the given value is not nil.
func (*BillingInvoiceCreate) SetPaymentProvider ¶
func (bic *BillingInvoiceCreate) SetPaymentProvider(pp provider.PaymentProvider) *BillingInvoiceCreate
SetPaymentProvider sets the "payment_provider" field.
func (*BillingInvoiceCreate) SetPeriodEnd ¶
func (bic *BillingInvoiceCreate) SetPeriodEnd(t time.Time) *BillingInvoiceCreate
SetPeriodEnd sets the "period_end" field.
func (*BillingInvoiceCreate) SetPeriodStart ¶
func (bic *BillingInvoiceCreate) SetPeriodStart(t time.Time) *BillingInvoiceCreate
SetPeriodStart sets the "period_start" field.
func (*BillingInvoiceCreate) SetSeries ¶
func (bic *BillingInvoiceCreate) SetSeries(s string) *BillingInvoiceCreate
SetSeries sets the "series" field.
func (*BillingInvoiceCreate) SetStatus ¶
func (bic *BillingInvoiceCreate) SetStatus(bs billing.InvoiceStatus) *BillingInvoiceCreate
SetStatus sets the "status" field.
func (*BillingInvoiceCreate) SetTaxProvider ¶
func (bic *BillingInvoiceCreate) SetTaxProvider(pp provider.TaxProvider) *BillingInvoiceCreate
SetTaxProvider sets the "tax_provider" field.
func (*BillingInvoiceCreate) SetUpdatedAt ¶
func (bic *BillingInvoiceCreate) SetUpdatedAt(t time.Time) *BillingInvoiceCreate
SetUpdatedAt sets the "updated_at" field.
func (*BillingInvoiceCreate) SetVoidedAt ¶
func (bic *BillingInvoiceCreate) SetVoidedAt(t time.Time) *BillingInvoiceCreate
SetVoidedAt sets the "voided_at" field.
func (*BillingInvoiceCreate) SetWorkflowConfigID ¶
func (bic *BillingInvoiceCreate) SetWorkflowConfigID(s string) *BillingInvoiceCreate
SetWorkflowConfigID sets the "workflow_config_id" field.
type BillingInvoiceCreateBulk ¶
type BillingInvoiceCreateBulk struct {
// contains filtered or unexported fields
}
BillingInvoiceCreateBulk is the builder for creating many BillingInvoice entities in bulk.
func (*BillingInvoiceCreateBulk) Exec ¶
func (bicb *BillingInvoiceCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*BillingInvoiceCreateBulk) ExecContext ¶
func (c *BillingInvoiceCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingInvoiceCreateBulk) ExecX ¶
func (bicb *BillingInvoiceCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingInvoiceCreateBulk) OnConflict ¶
func (bicb *BillingInvoiceCreateBulk) OnConflict(opts ...sql.ConflictOption) *BillingInvoiceUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.BillingInvoice.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.BillingInvoiceUpsert) {
SetNamespace(v+v).
}).
Exec(ctx)
func (*BillingInvoiceCreateBulk) OnConflictColumns ¶
func (bicb *BillingInvoiceCreateBulk) OnConflictColumns(columns ...string) *BillingInvoiceUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.BillingInvoice.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*BillingInvoiceCreateBulk) QueryContext ¶
func (c *BillingInvoiceCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingInvoiceCreateBulk) Save ¶
func (bicb *BillingInvoiceCreateBulk) Save(ctx context.Context) ([]*BillingInvoice, error)
Save creates the BillingInvoice entities in the database.
func (*BillingInvoiceCreateBulk) SaveX ¶
func (bicb *BillingInvoiceCreateBulk) SaveX(ctx context.Context) []*BillingInvoice
SaveX is like Save, but panics if an error occurs.
type BillingInvoiceDelete ¶
type BillingInvoiceDelete struct {
// contains filtered or unexported fields
}
BillingInvoiceDelete is the builder for deleting a BillingInvoice entity.
func (*BillingInvoiceDelete) Exec ¶
func (bid *BillingInvoiceDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*BillingInvoiceDelete) ExecContext ¶
func (c *BillingInvoiceDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingInvoiceDelete) ExecX ¶
func (bid *BillingInvoiceDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*BillingInvoiceDelete) QueryContext ¶
func (c *BillingInvoiceDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingInvoiceDelete) Where ¶
func (bid *BillingInvoiceDelete) Where(ps ...predicate.BillingInvoice) *BillingInvoiceDelete
Where appends a list predicates to the BillingInvoiceDelete builder.
type BillingInvoiceDeleteOne ¶
type BillingInvoiceDeleteOne struct {
// contains filtered or unexported fields
}
BillingInvoiceDeleteOne is the builder for deleting a single BillingInvoice entity.
func (*BillingInvoiceDeleteOne) Exec ¶
func (bido *BillingInvoiceDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*BillingInvoiceDeleteOne) ExecX ¶
func (bido *BillingInvoiceDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingInvoiceDeleteOne) Where ¶
func (bido *BillingInvoiceDeleteOne) Where(ps ...predicate.BillingInvoice) *BillingInvoiceDeleteOne
Where appends a list predicates to the BillingInvoiceDelete builder.
type BillingInvoiceEdges ¶
type BillingInvoiceEdges struct {
// BillingProfile holds the value of the billing_profile edge.
BillingProfile *BillingProfile `json:"billing_profile,omitempty"`
// BillingWorkflowConfig holds the value of the billing_workflow_config edge.
BillingWorkflowConfig *BillingWorkflowConfig `json:"billing_workflow_config,omitempty"`
// BillingInvoiceItems holds the value of the billing_invoice_items edge.
BillingInvoiceItems []*BillingInvoiceItem `json:"billing_invoice_items,omitempty"`
// contains filtered or unexported fields
}
BillingInvoiceEdges holds the relations/edges for other nodes in the graph.
func (BillingInvoiceEdges) BillingInvoiceItemsOrErr ¶
func (e BillingInvoiceEdges) BillingInvoiceItemsOrErr() ([]*BillingInvoiceItem, error)
BillingInvoiceItemsOrErr returns the BillingInvoiceItems value or an error if the edge was not loaded in eager-loading.
func (BillingInvoiceEdges) BillingProfileOrErr ¶
func (e BillingInvoiceEdges) BillingProfileOrErr() (*BillingProfile, error)
BillingProfileOrErr returns the BillingProfile value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (BillingInvoiceEdges) BillingWorkflowConfigOrErr ¶
func (e BillingInvoiceEdges) BillingWorkflowConfigOrErr() (*BillingWorkflowConfig, error)
BillingWorkflowConfigOrErr returns the BillingWorkflowConfig value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type BillingInvoiceGroupBy ¶
type BillingInvoiceGroupBy struct {
// contains filtered or unexported fields
}
BillingInvoiceGroupBy is the group-by builder for BillingInvoice entities.
func (*BillingInvoiceGroupBy) Aggregate ¶
func (bigb *BillingInvoiceGroupBy) Aggregate(fns ...AggregateFunc) *BillingInvoiceGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*BillingInvoiceGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*BillingInvoiceGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*BillingInvoiceGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*BillingInvoiceGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*BillingInvoiceGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*BillingInvoiceGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*BillingInvoiceGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*BillingInvoiceGroupBy) Scan ¶
func (bigb *BillingInvoiceGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*BillingInvoiceGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type BillingInvoiceItem ¶
type BillingInvoiceItem struct {
// ID of the ent.
ID string `json:"id,omitempty"`
// Namespace holds the value of the "namespace" field.
Namespace string `json:"namespace,omitempty"`
// CreatedAt holds the value of the "created_at" field.
CreatedAt time.Time `json:"created_at,omitempty"`
// UpdatedAt holds the value of the "updated_at" field.
UpdatedAt time.Time `json:"updated_at,omitempty"`
// DeletedAt holds the value of the "deleted_at" field.
DeletedAt *time.Time `json:"deleted_at,omitempty"`
// Metadata holds the value of the "metadata" field.
Metadata map[string]string `json:"metadata,omitempty"`
// InvoiceID holds the value of the "invoice_id" field.
InvoiceID *string `json:"invoice_id,omitempty"`
// CustomerID holds the value of the "customer_id" field.
CustomerID string `json:"customer_id,omitempty"`
// PeriodStart holds the value of the "period_start" field.
PeriodStart time.Time `json:"period_start,omitempty"`
// PeriodEnd holds the value of the "period_end" field.
PeriodEnd time.Time `json:"period_end,omitempty"`
// InvoiceAt holds the value of the "invoice_at" field.
InvoiceAt time.Time `json:"invoice_at,omitempty"`
// Type holds the value of the "type" field.
Type billing.InvoiceItemType `json:"type,omitempty"`
// Name holds the value of the "name" field.
Name string `json:"name,omitempty"`
// Quantity holds the value of the "quantity" field.
Quantity *alpacadecimal.Decimal `json:"quantity,omitempty"`
// UnitPrice holds the value of the "unit_price" field.
UnitPrice alpacadecimal.Decimal `json:"unit_price,omitempty"`
// Currency holds the value of the "currency" field.
Currency currencyx.Code `json:"currency,omitempty"`
// TaxCodeOverride holds the value of the "tax_code_override" field.
TaxCodeOverride billing.TaxOverrides `json:"tax_code_override,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the BillingInvoiceItemQuery when eager-loading is set.
Edges BillingInvoiceItemEdges `json:"edges"`
// contains filtered or unexported fields
}
BillingInvoiceItem is the model entity for the BillingInvoiceItem schema.
func (*BillingInvoiceItem) ExecContext ¶
func (c *BillingInvoiceItem) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingInvoiceItem) QueryBillingInvoice ¶
func (bii *BillingInvoiceItem) QueryBillingInvoice() *BillingInvoiceQuery
QueryBillingInvoice queries the "billing_invoice" edge of the BillingInvoiceItem entity.
func (*BillingInvoiceItem) QueryContext ¶
func (c *BillingInvoiceItem) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingInvoiceItem) String ¶
func (bii *BillingInvoiceItem) String() string
String implements the fmt.Stringer.
func (*BillingInvoiceItem) Unwrap ¶
func (bii *BillingInvoiceItem) Unwrap() *BillingInvoiceItem
Unwrap unwraps the BillingInvoiceItem 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 (*BillingInvoiceItem) Update ¶
func (bii *BillingInvoiceItem) Update() *BillingInvoiceItemUpdateOne
Update returns a builder for updating this BillingInvoiceItem. Note that you need to call BillingInvoiceItem.Unwrap() before calling this method if this BillingInvoiceItem was returned from a transaction, and the transaction was committed or rolled back.
type BillingInvoiceItemClient ¶
type BillingInvoiceItemClient struct {
// contains filtered or unexported fields
}
BillingInvoiceItemClient is a client for the BillingInvoiceItem schema.
func NewBillingInvoiceItemClient ¶
func NewBillingInvoiceItemClient(c config) *BillingInvoiceItemClient
NewBillingInvoiceItemClient returns a client for the BillingInvoiceItem from the given config.
func (*BillingInvoiceItemClient) Create ¶
func (c *BillingInvoiceItemClient) Create() *BillingInvoiceItemCreate
Create returns a builder for creating a BillingInvoiceItem entity.
func (*BillingInvoiceItemClient) CreateBulk ¶
func (c *BillingInvoiceItemClient) CreateBulk(builders ...*BillingInvoiceItemCreate) *BillingInvoiceItemCreateBulk
CreateBulk returns a builder for creating a bulk of BillingInvoiceItem entities.
func (*BillingInvoiceItemClient) Delete ¶
func (c *BillingInvoiceItemClient) Delete() *BillingInvoiceItemDelete
Delete returns a delete builder for BillingInvoiceItem.
func (*BillingInvoiceItemClient) DeleteOne ¶
func (c *BillingInvoiceItemClient) DeleteOne(bii *BillingInvoiceItem) *BillingInvoiceItemDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*BillingInvoiceItemClient) DeleteOneID ¶
func (c *BillingInvoiceItemClient) DeleteOneID(id string) *BillingInvoiceItemDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*BillingInvoiceItemClient) ExecContext ¶
func (c *BillingInvoiceItemClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingInvoiceItemClient) Get ¶
func (c *BillingInvoiceItemClient) Get(ctx context.Context, id string) (*BillingInvoiceItem, error)
Get returns a BillingInvoiceItem entity by its id.
func (*BillingInvoiceItemClient) GetX ¶
func (c *BillingInvoiceItemClient) GetX(ctx context.Context, id string) *BillingInvoiceItem
GetX is like Get, but panics if an error occurs.
func (*BillingInvoiceItemClient) Hooks ¶
func (c *BillingInvoiceItemClient) Hooks() []Hook
Hooks returns the client hooks.
func (*BillingInvoiceItemClient) Intercept ¶
func (c *BillingInvoiceItemClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `billinginvoiceitem.Intercept(f(g(h())))`.
func (*BillingInvoiceItemClient) Interceptors ¶
func (c *BillingInvoiceItemClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*BillingInvoiceItemClient) MapCreateBulk ¶
func (c *BillingInvoiceItemClient) MapCreateBulk(slice any, setFunc func(*BillingInvoiceItemCreate, int)) *BillingInvoiceItemCreateBulk
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 (*BillingInvoiceItemClient) Query ¶
func (c *BillingInvoiceItemClient) Query() *BillingInvoiceItemQuery
Query returns a query builder for BillingInvoiceItem.
func (*BillingInvoiceItemClient) QueryBillingInvoice ¶
func (c *BillingInvoiceItemClient) QueryBillingInvoice(bii *BillingInvoiceItem) *BillingInvoiceQuery
QueryBillingInvoice queries the billing_invoice edge of a BillingInvoiceItem.
func (*BillingInvoiceItemClient) QueryContext ¶
func (c *BillingInvoiceItemClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingInvoiceItemClient) Update ¶
func (c *BillingInvoiceItemClient) Update() *BillingInvoiceItemUpdate
Update returns an update builder for BillingInvoiceItem.
func (*BillingInvoiceItemClient) UpdateOne ¶
func (c *BillingInvoiceItemClient) UpdateOne(bii *BillingInvoiceItem) *BillingInvoiceItemUpdateOne
UpdateOne returns an update builder for the given entity.
func (*BillingInvoiceItemClient) UpdateOneID ¶
func (c *BillingInvoiceItemClient) UpdateOneID(id string) *BillingInvoiceItemUpdateOne
UpdateOneID returns an update builder for the given id.
func (*BillingInvoiceItemClient) Use ¶
func (c *BillingInvoiceItemClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `billinginvoiceitem.Hooks(f(g(h())))`.
type BillingInvoiceItemCreate ¶
type BillingInvoiceItemCreate struct {
// contains filtered or unexported fields
}
BillingInvoiceItemCreate is the builder for creating a BillingInvoiceItem entity.
func (*BillingInvoiceItemCreate) Exec ¶
func (biic *BillingInvoiceItemCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*BillingInvoiceItemCreate) ExecContext ¶
func (c *BillingInvoiceItemCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingInvoiceItemCreate) ExecX ¶
func (biic *BillingInvoiceItemCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingInvoiceItemCreate) Mutation ¶
func (biic *BillingInvoiceItemCreate) Mutation() *BillingInvoiceItemMutation
Mutation returns the BillingInvoiceItemMutation object of the builder.
func (*BillingInvoiceItemCreate) OnConflict ¶
func (biic *BillingInvoiceItemCreate) OnConflict(opts ...sql.ConflictOption) *BillingInvoiceItemUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.BillingInvoiceItem.Create().
SetNamespace(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.BillingInvoiceItemUpsert) {
SetNamespace(v+v).
}).
Exec(ctx)
func (*BillingInvoiceItemCreate) OnConflictColumns ¶
func (biic *BillingInvoiceItemCreate) OnConflictColumns(columns ...string) *BillingInvoiceItemUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.BillingInvoiceItem.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*BillingInvoiceItemCreate) QueryContext ¶
func (c *BillingInvoiceItemCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingInvoiceItemCreate) Save ¶
func (biic *BillingInvoiceItemCreate) Save(ctx context.Context) (*BillingInvoiceItem, error)
Save creates the BillingInvoiceItem in the database.
func (*BillingInvoiceItemCreate) SaveX ¶
func (biic *BillingInvoiceItemCreate) SaveX(ctx context.Context) *BillingInvoiceItem
SaveX calls Save and panics if Save returns an error.
func (*BillingInvoiceItemCreate) SetBillingInvoice ¶
func (biic *BillingInvoiceItemCreate) SetBillingInvoice(b *BillingInvoice) *BillingInvoiceItemCreate
SetBillingInvoice sets the "billing_invoice" edge to the BillingInvoice entity.
func (*BillingInvoiceItemCreate) SetBillingInvoiceID ¶
func (biic *BillingInvoiceItemCreate) SetBillingInvoiceID(id string) *BillingInvoiceItemCreate
SetBillingInvoiceID sets the "billing_invoice" edge to the BillingInvoice entity by ID.
func (*BillingInvoiceItemCreate) SetCreatedAt ¶
func (biic *BillingInvoiceItemCreate) SetCreatedAt(t time.Time) *BillingInvoiceItemCreate
SetCreatedAt sets the "created_at" field.
func (*BillingInvoiceItemCreate) SetCurrency ¶
func (biic *BillingInvoiceItemCreate) SetCurrency(c currencyx.Code) *BillingInvoiceItemCreate
SetCurrency sets the "currency" field.
func (*BillingInvoiceItemCreate) SetCustomerID ¶
func (biic *BillingInvoiceItemCreate) SetCustomerID(s string) *BillingInvoiceItemCreate
SetCustomerID sets the "customer_id" field.
func (*BillingInvoiceItemCreate) SetDeletedAt ¶
func (biic *BillingInvoiceItemCreate) SetDeletedAt(t time.Time) *BillingInvoiceItemCreate
SetDeletedAt sets the "deleted_at" field.
func (*BillingInvoiceItemCreate) SetID ¶
func (biic *BillingInvoiceItemCreate) SetID(s string) *BillingInvoiceItemCreate
SetID sets the "id" field.
func (*BillingInvoiceItemCreate) SetInvoiceAt ¶
func (biic *BillingInvoiceItemCreate) SetInvoiceAt(t time.Time) *BillingInvoiceItemCreate
SetInvoiceAt sets the "invoice_at" field.
func (*BillingInvoiceItemCreate) SetInvoiceID ¶
func (biic *BillingInvoiceItemCreate) SetInvoiceID(s string) *BillingInvoiceItemCreate
SetInvoiceID sets the "invoice_id" field.
func (*BillingInvoiceItemCreate) SetMetadata ¶
func (biic *BillingInvoiceItemCreate) SetMetadata(m map[string]string) *BillingInvoiceItemCreate
SetMetadata sets the "metadata" field.
func (*BillingInvoiceItemCreate) SetName ¶
func (biic *BillingInvoiceItemCreate) SetName(s string) *BillingInvoiceItemCreate
SetName sets the "name" field.
func (*BillingInvoiceItemCreate) SetNamespace ¶
func (biic *BillingInvoiceItemCreate) SetNamespace(s string) *BillingInvoiceItemCreate
SetNamespace sets the "namespace" field.
func (*BillingInvoiceItemCreate) SetNillableBillingInvoiceID ¶
func (biic *BillingInvoiceItemCreate) SetNillableBillingInvoiceID(id *string) *BillingInvoiceItemCreate
SetNillableBillingInvoiceID sets the "billing_invoice" edge to the BillingInvoice entity by ID if the given value is not nil.
func (*BillingInvoiceItemCreate) SetNillableCreatedAt ¶
func (biic *BillingInvoiceItemCreate) SetNillableCreatedAt(t *time.Time) *BillingInvoiceItemCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*BillingInvoiceItemCreate) SetNillableDeletedAt ¶
func (biic *BillingInvoiceItemCreate) SetNillableDeletedAt(t *time.Time) *BillingInvoiceItemCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*BillingInvoiceItemCreate) SetNillableID ¶
func (biic *BillingInvoiceItemCreate) SetNillableID(s *string) *BillingInvoiceItemCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*BillingInvoiceItemCreate) SetNillableInvoiceID ¶
func (biic *BillingInvoiceItemCreate) SetNillableInvoiceID(s *string) *BillingInvoiceItemCreate
SetNillableInvoiceID sets the "invoice_id" field if the given value is not nil.
func (*BillingInvoiceItemCreate) SetNillableQuantity ¶
func (biic *BillingInvoiceItemCreate) SetNillableQuantity(a *alpacadecimal.Decimal) *BillingInvoiceItemCreate
SetNillableQuantity sets the "quantity" field if the given value is not nil.
func (*BillingInvoiceItemCreate) SetNillableUpdatedAt ¶
func (biic *BillingInvoiceItemCreate) SetNillableUpdatedAt(t *time.Time) *BillingInvoiceItemCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*BillingInvoiceItemCreate) SetPeriodEnd ¶
func (biic *BillingInvoiceItemCreate) SetPeriodEnd(t time.Time) *BillingInvoiceItemCreate
SetPeriodEnd sets the "period_end" field.
func (*BillingInvoiceItemCreate) SetPeriodStart ¶
func (biic *BillingInvoiceItemCreate) SetPeriodStart(t time.Time) *BillingInvoiceItemCreate
SetPeriodStart sets the "period_start" field.
func (*BillingInvoiceItemCreate) SetQuantity ¶
func (biic *BillingInvoiceItemCreate) SetQuantity(a alpacadecimal.Decimal) *BillingInvoiceItemCreate
SetQuantity sets the "quantity" field.
func (*BillingInvoiceItemCreate) SetTaxCodeOverride ¶
func (biic *BillingInvoiceItemCreate) SetTaxCodeOverride(bo billing.TaxOverrides) *BillingInvoiceItemCreate
SetTaxCodeOverride sets the "tax_code_override" field.
func (*BillingInvoiceItemCreate) SetType ¶
func (biic *BillingInvoiceItemCreate) SetType(bit billing.InvoiceItemType) *BillingInvoiceItemCreate
SetType sets the "type" field.
func (*BillingInvoiceItemCreate) SetUnitPrice ¶
func (biic *BillingInvoiceItemCreate) SetUnitPrice(a alpacadecimal.Decimal) *BillingInvoiceItemCreate
SetUnitPrice sets the "unit_price" field.
func (*BillingInvoiceItemCreate) SetUpdatedAt ¶
func (biic *BillingInvoiceItemCreate) SetUpdatedAt(t time.Time) *BillingInvoiceItemCreate
SetUpdatedAt sets the "updated_at" field.
type BillingInvoiceItemCreateBulk ¶
type BillingInvoiceItemCreateBulk struct {
// contains filtered or unexported fields
}
BillingInvoiceItemCreateBulk is the builder for creating many BillingInvoiceItem entities in bulk.
func (*BillingInvoiceItemCreateBulk) Exec ¶
func (biicb *BillingInvoiceItemCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*BillingInvoiceItemCreateBulk) ExecContext ¶
func (c *BillingInvoiceItemCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingInvoiceItemCreateBulk) ExecX ¶
func (biicb *BillingInvoiceItemCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingInvoiceItemCreateBulk) OnConflict ¶
func (biicb *BillingInvoiceItemCreateBulk) OnConflict(opts ...sql.ConflictOption) *BillingInvoiceItemUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.BillingInvoiceItem.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.BillingInvoiceItemUpsert) {
SetNamespace(v+v).
}).
Exec(ctx)
func (*BillingInvoiceItemCreateBulk) OnConflictColumns ¶
func (biicb *BillingInvoiceItemCreateBulk) OnConflictColumns(columns ...string) *BillingInvoiceItemUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.BillingInvoiceItem.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*BillingInvoiceItemCreateBulk) QueryContext ¶
func (c *BillingInvoiceItemCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingInvoiceItemCreateBulk) Save ¶
func (biicb *BillingInvoiceItemCreateBulk) Save(ctx context.Context) ([]*BillingInvoiceItem, error)
Save creates the BillingInvoiceItem entities in the database.
func (*BillingInvoiceItemCreateBulk) SaveX ¶
func (biicb *BillingInvoiceItemCreateBulk) SaveX(ctx context.Context) []*BillingInvoiceItem
SaveX is like Save, but panics if an error occurs.
type BillingInvoiceItemDelete ¶
type BillingInvoiceItemDelete struct {
// contains filtered or unexported fields
}
BillingInvoiceItemDelete is the builder for deleting a BillingInvoiceItem entity.
func (*BillingInvoiceItemDelete) Exec ¶
func (biid *BillingInvoiceItemDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*BillingInvoiceItemDelete) ExecContext ¶
func (c *BillingInvoiceItemDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingInvoiceItemDelete) ExecX ¶
func (biid *BillingInvoiceItemDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*BillingInvoiceItemDelete) QueryContext ¶
func (c *BillingInvoiceItemDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingInvoiceItemDelete) Where ¶
func (biid *BillingInvoiceItemDelete) Where(ps ...predicate.BillingInvoiceItem) *BillingInvoiceItemDelete
Where appends a list predicates to the BillingInvoiceItemDelete builder.
type BillingInvoiceItemDeleteOne ¶
type BillingInvoiceItemDeleteOne struct {
// contains filtered or unexported fields
}
BillingInvoiceItemDeleteOne is the builder for deleting a single BillingInvoiceItem entity.
func (*BillingInvoiceItemDeleteOne) Exec ¶
func (biido *BillingInvoiceItemDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*BillingInvoiceItemDeleteOne) ExecX ¶
func (biido *BillingInvoiceItemDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingInvoiceItemDeleteOne) Where ¶
func (biido *BillingInvoiceItemDeleteOne) Where(ps ...predicate.BillingInvoiceItem) *BillingInvoiceItemDeleteOne
Where appends a list predicates to the BillingInvoiceItemDelete builder.
type BillingInvoiceItemEdges ¶
type BillingInvoiceItemEdges struct {
// BillingInvoice holds the value of the billing_invoice edge.
BillingInvoice *BillingInvoice `json:"billing_invoice,omitempty"`
// contains filtered or unexported fields
}
BillingInvoiceItemEdges holds the relations/edges for other nodes in the graph.
func (BillingInvoiceItemEdges) BillingInvoiceOrErr ¶
func (e BillingInvoiceItemEdges) BillingInvoiceOrErr() (*BillingInvoice, error)
BillingInvoiceOrErr returns the BillingInvoice value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type BillingInvoiceItemGroupBy ¶
type BillingInvoiceItemGroupBy struct {
// contains filtered or unexported fields
}
BillingInvoiceItemGroupBy is the group-by builder for BillingInvoiceItem entities.
func (*BillingInvoiceItemGroupBy) Aggregate ¶
func (biigb *BillingInvoiceItemGroupBy) Aggregate(fns ...AggregateFunc) *BillingInvoiceItemGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*BillingInvoiceItemGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*BillingInvoiceItemGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*BillingInvoiceItemGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*BillingInvoiceItemGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*BillingInvoiceItemGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*BillingInvoiceItemGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*BillingInvoiceItemGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*BillingInvoiceItemGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*BillingInvoiceItemGroupBy) Scan ¶
func (biigb *BillingInvoiceItemGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*BillingInvoiceItemGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type BillingInvoiceItemMutation ¶
type BillingInvoiceItemMutation struct {
// contains filtered or unexported fields
}
BillingInvoiceItemMutation represents an operation that mutates the BillingInvoiceItem nodes in the graph.
func (*BillingInvoiceItemMutation) AddField ¶
func (m *BillingInvoiceItemMutation) 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 (*BillingInvoiceItemMutation) AddedEdges ¶
func (m *BillingInvoiceItemMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*BillingInvoiceItemMutation) AddedField ¶
func (m *BillingInvoiceItemMutation) 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 (*BillingInvoiceItemMutation) AddedFields ¶
func (m *BillingInvoiceItemMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*BillingInvoiceItemMutation) AddedIDs ¶
func (m *BillingInvoiceItemMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*BillingInvoiceItemMutation) BillingInvoiceCleared ¶
func (m *BillingInvoiceItemMutation) BillingInvoiceCleared() bool
BillingInvoiceCleared reports if the "billing_invoice" edge to the BillingInvoice entity was cleared.
func (*BillingInvoiceItemMutation) BillingInvoiceID ¶
func (m *BillingInvoiceItemMutation) BillingInvoiceID() (id string, exists bool)
BillingInvoiceID returns the "billing_invoice" edge ID in the mutation.
func (*BillingInvoiceItemMutation) BillingInvoiceIDs ¶
func (m *BillingInvoiceItemMutation) BillingInvoiceIDs() (ids []string)
BillingInvoiceIDs returns the "billing_invoice" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use BillingInvoiceID instead. It exists only for internal usage by the builders.
func (*BillingInvoiceItemMutation) ClearBillingInvoice ¶
func (m *BillingInvoiceItemMutation) ClearBillingInvoice()
ClearBillingInvoice clears the "billing_invoice" edge to the BillingInvoice entity.
func (*BillingInvoiceItemMutation) ClearDeletedAt ¶
func (m *BillingInvoiceItemMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BillingInvoiceItemMutation) ClearEdge ¶
func (m *BillingInvoiceItemMutation) 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 (*BillingInvoiceItemMutation) ClearField ¶
func (m *BillingInvoiceItemMutation) 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 (*BillingInvoiceItemMutation) ClearInvoiceID ¶
func (m *BillingInvoiceItemMutation) ClearInvoiceID()
ClearInvoiceID clears the value of the "invoice_id" field.
func (*BillingInvoiceItemMutation) ClearMetadata ¶
func (m *BillingInvoiceItemMutation) ClearMetadata()
ClearMetadata clears the value of the "metadata" field.
func (*BillingInvoiceItemMutation) ClearQuantity ¶
func (m *BillingInvoiceItemMutation) ClearQuantity()
ClearQuantity clears the value of the "quantity" field.
func (*BillingInvoiceItemMutation) ClearedEdges ¶
func (m *BillingInvoiceItemMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*BillingInvoiceItemMutation) ClearedFields ¶
func (m *BillingInvoiceItemMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (BillingInvoiceItemMutation) Client ¶
func (m BillingInvoiceItemMutation) 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 (*BillingInvoiceItemMutation) CreatedAt ¶
func (m *BillingInvoiceItemMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*BillingInvoiceItemMutation) Currency ¶
func (m *BillingInvoiceItemMutation) Currency() (r currencyx.Code, exists bool)
Currency returns the value of the "currency" field in the mutation.
func (*BillingInvoiceItemMutation) CustomerID ¶
func (m *BillingInvoiceItemMutation) CustomerID() (r string, exists bool)
CustomerID returns the value of the "customer_id" field in the mutation.
func (*BillingInvoiceItemMutation) DeletedAt ¶
func (m *BillingInvoiceItemMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*BillingInvoiceItemMutation) DeletedAtCleared ¶
func (m *BillingInvoiceItemMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*BillingInvoiceItemMutation) EdgeCleared ¶
func (m *BillingInvoiceItemMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*BillingInvoiceItemMutation) ExecContext ¶
func (c *BillingInvoiceItemMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingInvoiceItemMutation) Field ¶
func (m *BillingInvoiceItemMutation) 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 (*BillingInvoiceItemMutation) FieldCleared ¶
func (m *BillingInvoiceItemMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*BillingInvoiceItemMutation) Fields ¶
func (m *BillingInvoiceItemMutation) 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 (*BillingInvoiceItemMutation) GetType ¶
func (m *BillingInvoiceItemMutation) GetType() (r billing.InvoiceItemType, exists bool)
GetType returns the value of the "type" field in the mutation.
func (*BillingInvoiceItemMutation) ID ¶
func (m *BillingInvoiceItemMutation) ID() (id string, 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 (*BillingInvoiceItemMutation) IDs ¶
func (m *BillingInvoiceItemMutation) IDs(ctx context.Context) ([]string, error)
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 (*BillingInvoiceItemMutation) InvoiceAt ¶
func (m *BillingInvoiceItemMutation) InvoiceAt() (r time.Time, exists bool)
InvoiceAt returns the value of the "invoice_at" field in the mutation.
func (*BillingInvoiceItemMutation) InvoiceID ¶
func (m *BillingInvoiceItemMutation) InvoiceID() (r string, exists bool)
InvoiceID returns the value of the "invoice_id" field in the mutation.
func (*BillingInvoiceItemMutation) InvoiceIDCleared ¶
func (m *BillingInvoiceItemMutation) InvoiceIDCleared() bool
InvoiceIDCleared returns if the "invoice_id" field was cleared in this mutation.
func (*BillingInvoiceItemMutation) Metadata ¶
func (m *BillingInvoiceItemMutation) Metadata() (r map[string]string, exists bool)
Metadata returns the value of the "metadata" field in the mutation.
func (*BillingInvoiceItemMutation) MetadataCleared ¶
func (m *BillingInvoiceItemMutation) MetadataCleared() bool
MetadataCleared returns if the "metadata" field was cleared in this mutation.
func (*BillingInvoiceItemMutation) Name ¶
func (m *BillingInvoiceItemMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*BillingInvoiceItemMutation) Namespace ¶
func (m *BillingInvoiceItemMutation) Namespace() (r string, exists bool)
Namespace returns the value of the "namespace" field in the mutation.
func (*BillingInvoiceItemMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the BillingInvoiceItem entity. If the BillingInvoiceItem 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 (*BillingInvoiceItemMutation) OldCurrency ¶
OldCurrency returns the old "currency" field's value of the BillingInvoiceItem entity. If the BillingInvoiceItem 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 (*BillingInvoiceItemMutation) OldCustomerID ¶
func (m *BillingInvoiceItemMutation) OldCustomerID(ctx context.Context) (v string, err error)
OldCustomerID returns the old "customer_id" field's value of the BillingInvoiceItem entity. If the BillingInvoiceItem 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 (*BillingInvoiceItemMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the BillingInvoiceItem entity. If the BillingInvoiceItem 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 (*BillingInvoiceItemMutation) OldField ¶
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 (*BillingInvoiceItemMutation) OldInvoiceAt ¶
OldInvoiceAt returns the old "invoice_at" field's value of the BillingInvoiceItem entity. If the BillingInvoiceItem 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 (*BillingInvoiceItemMutation) OldInvoiceID ¶
func (m *BillingInvoiceItemMutation) OldInvoiceID(ctx context.Context) (v *string, err error)
OldInvoiceID returns the old "invoice_id" field's value of the BillingInvoiceItem entity. If the BillingInvoiceItem 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 (*BillingInvoiceItemMutation) OldMetadata ¶
func (m *BillingInvoiceItemMutation) OldMetadata(ctx context.Context) (v map[string]string, err error)
OldMetadata returns the old "metadata" field's value of the BillingInvoiceItem entity. If the BillingInvoiceItem 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 (*BillingInvoiceItemMutation) OldName ¶
func (m *BillingInvoiceItemMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the BillingInvoiceItem entity. If the BillingInvoiceItem 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 (*BillingInvoiceItemMutation) OldNamespace ¶
func (m *BillingInvoiceItemMutation) OldNamespace(ctx context.Context) (v string, err error)
OldNamespace returns the old "namespace" field's value of the BillingInvoiceItem entity. If the BillingInvoiceItem 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 (*BillingInvoiceItemMutation) OldPeriodEnd ¶
OldPeriodEnd returns the old "period_end" field's value of the BillingInvoiceItem entity. If the BillingInvoiceItem 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 (*BillingInvoiceItemMutation) OldPeriodStart ¶
OldPeriodStart returns the old "period_start" field's value of the BillingInvoiceItem entity. If the BillingInvoiceItem 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 (*BillingInvoiceItemMutation) OldQuantity ¶
func (m *BillingInvoiceItemMutation) OldQuantity(ctx context.Context) (v *alpacadecimal.Decimal, err error)
OldQuantity returns the old "quantity" field's value of the BillingInvoiceItem entity. If the BillingInvoiceItem 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 (*BillingInvoiceItemMutation) OldTaxCodeOverride ¶
func (m *BillingInvoiceItemMutation) OldTaxCodeOverride(ctx context.Context) (v billing.TaxOverrides, err error)
OldTaxCodeOverride returns the old "tax_code_override" field's value of the BillingInvoiceItem entity. If the BillingInvoiceItem 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 (*BillingInvoiceItemMutation) OldType ¶
func (m *BillingInvoiceItemMutation) OldType(ctx context.Context) (v billing.InvoiceItemType, err error)
OldType returns the old "type" field's value of the BillingInvoiceItem entity. If the BillingInvoiceItem 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 (*BillingInvoiceItemMutation) OldUnitPrice ¶
func (m *BillingInvoiceItemMutation) OldUnitPrice(ctx context.Context) (v alpacadecimal.Decimal, err error)
OldUnitPrice returns the old "unit_price" field's value of the BillingInvoiceItem entity. If the BillingInvoiceItem 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 (*BillingInvoiceItemMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the BillingInvoiceItem entity. If the BillingInvoiceItem 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 (*BillingInvoiceItemMutation) Op ¶
func (m *BillingInvoiceItemMutation) Op() Op
Op returns the operation name.
func (*BillingInvoiceItemMutation) PeriodEnd ¶
func (m *BillingInvoiceItemMutation) PeriodEnd() (r time.Time, exists bool)
PeriodEnd returns the value of the "period_end" field in the mutation.
func (*BillingInvoiceItemMutation) PeriodStart ¶
func (m *BillingInvoiceItemMutation) PeriodStart() (r time.Time, exists bool)
PeriodStart returns the value of the "period_start" field in the mutation.
func (*BillingInvoiceItemMutation) Quantity ¶
func (m *BillingInvoiceItemMutation) Quantity() (r alpacadecimal.Decimal, exists bool)
Quantity returns the value of the "quantity" field in the mutation.
func (*BillingInvoiceItemMutation) QuantityCleared ¶
func (m *BillingInvoiceItemMutation) QuantityCleared() bool
QuantityCleared returns if the "quantity" field was cleared in this mutation.
func (*BillingInvoiceItemMutation) QueryContext ¶
func (c *BillingInvoiceItemMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingInvoiceItemMutation) RemovedEdges ¶
func (m *BillingInvoiceItemMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*BillingInvoiceItemMutation) RemovedIDs ¶
func (m *BillingInvoiceItemMutation) 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 (*BillingInvoiceItemMutation) ResetBillingInvoice ¶
func (m *BillingInvoiceItemMutation) ResetBillingInvoice()
ResetBillingInvoice resets all changes to the "billing_invoice" edge.
func (*BillingInvoiceItemMutation) ResetCreatedAt ¶
func (m *BillingInvoiceItemMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*BillingInvoiceItemMutation) ResetCurrency ¶
func (m *BillingInvoiceItemMutation) ResetCurrency()
ResetCurrency resets all changes to the "currency" field.
func (*BillingInvoiceItemMutation) ResetCustomerID ¶
func (m *BillingInvoiceItemMutation) ResetCustomerID()
ResetCustomerID resets all changes to the "customer_id" field.
func (*BillingInvoiceItemMutation) ResetDeletedAt ¶
func (m *BillingInvoiceItemMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*BillingInvoiceItemMutation) ResetEdge ¶
func (m *BillingInvoiceItemMutation) 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 (*BillingInvoiceItemMutation) ResetField ¶
func (m *BillingInvoiceItemMutation) 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 (*BillingInvoiceItemMutation) ResetInvoiceAt ¶
func (m *BillingInvoiceItemMutation) ResetInvoiceAt()
ResetInvoiceAt resets all changes to the "invoice_at" field.
func (*BillingInvoiceItemMutation) ResetInvoiceID ¶
func (m *BillingInvoiceItemMutation) ResetInvoiceID()
ResetInvoiceID resets all changes to the "invoice_id" field.
func (*BillingInvoiceItemMutation) ResetMetadata ¶
func (m *BillingInvoiceItemMutation) ResetMetadata()
ResetMetadata resets all changes to the "metadata" field.
func (*BillingInvoiceItemMutation) ResetName ¶
func (m *BillingInvoiceItemMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*BillingInvoiceItemMutation) ResetNamespace ¶
func (m *BillingInvoiceItemMutation) ResetNamespace()
ResetNamespace resets all changes to the "namespace" field.
func (*BillingInvoiceItemMutation) ResetPeriodEnd ¶
func (m *BillingInvoiceItemMutation) ResetPeriodEnd()
ResetPeriodEnd resets all changes to the "period_end" field.
func (*BillingInvoiceItemMutation) ResetPeriodStart ¶
func (m *BillingInvoiceItemMutation) ResetPeriodStart()
ResetPeriodStart resets all changes to the "period_start" field.
func (*BillingInvoiceItemMutation) ResetQuantity ¶
func (m *BillingInvoiceItemMutation) ResetQuantity()
ResetQuantity resets all changes to the "quantity" field.
func (*BillingInvoiceItemMutation) ResetTaxCodeOverride ¶
func (m *BillingInvoiceItemMutation) ResetTaxCodeOverride()
ResetTaxCodeOverride resets all changes to the "tax_code_override" field.
func (*BillingInvoiceItemMutation) ResetType ¶
func (m *BillingInvoiceItemMutation) ResetType()
ResetType resets all changes to the "type" field.
func (*BillingInvoiceItemMutation) ResetUnitPrice ¶
func (m *BillingInvoiceItemMutation) ResetUnitPrice()
ResetUnitPrice resets all changes to the "unit_price" field.
func (*BillingInvoiceItemMutation) ResetUpdatedAt ¶
func (m *BillingInvoiceItemMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*BillingInvoiceItemMutation) SetBillingInvoiceID ¶
func (m *BillingInvoiceItemMutation) SetBillingInvoiceID(id string)
SetBillingInvoiceID sets the "billing_invoice" edge to the BillingInvoice entity by id.
func (*BillingInvoiceItemMutation) SetCreatedAt ¶
func (m *BillingInvoiceItemMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*BillingInvoiceItemMutation) SetCurrency ¶
func (m *BillingInvoiceItemMutation) SetCurrency(c currencyx.Code)
SetCurrency sets the "currency" field.
func (*BillingInvoiceItemMutation) SetCustomerID ¶
func (m *BillingInvoiceItemMutation) SetCustomerID(s string)
SetCustomerID sets the "customer_id" field.
func (*BillingInvoiceItemMutation) SetDeletedAt ¶
func (m *BillingInvoiceItemMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*BillingInvoiceItemMutation) SetField ¶
func (m *BillingInvoiceItemMutation) 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 (*BillingInvoiceItemMutation) SetID ¶
func (m *BillingInvoiceItemMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of BillingInvoiceItem entities.
func (*BillingInvoiceItemMutation) SetInvoiceAt ¶
func (m *BillingInvoiceItemMutation) SetInvoiceAt(t time.Time)
SetInvoiceAt sets the "invoice_at" field.
func (*BillingInvoiceItemMutation) SetInvoiceID ¶
func (m *BillingInvoiceItemMutation) SetInvoiceID(s string)
SetInvoiceID sets the "invoice_id" field.
func (*BillingInvoiceItemMutation) SetMetadata ¶
func (m *BillingInvoiceItemMutation) SetMetadata(value map[string]string)
SetMetadata sets the "metadata" field.
func (*BillingInvoiceItemMutation) SetName ¶
func (m *BillingInvoiceItemMutation) SetName(s string)
SetName sets the "name" field.
func (*BillingInvoiceItemMutation) SetNamespace ¶
func (m *BillingInvoiceItemMutation) SetNamespace(s string)
SetNamespace sets the "namespace" field.
func (*BillingInvoiceItemMutation) SetOp ¶
func (m *BillingInvoiceItemMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*BillingInvoiceItemMutation) SetPeriodEnd ¶
func (m *BillingInvoiceItemMutation) SetPeriodEnd(t time.Time)
SetPeriodEnd sets the "period_end" field.
func (*BillingInvoiceItemMutation) SetPeriodStart ¶
func (m *BillingInvoiceItemMutation) SetPeriodStart(t time.Time)
SetPeriodStart sets the "period_start" field.
func (*BillingInvoiceItemMutation) SetQuantity ¶
func (m *BillingInvoiceItemMutation) SetQuantity(a alpacadecimal.Decimal)
SetQuantity sets the "quantity" field.
func (*BillingInvoiceItemMutation) SetTaxCodeOverride ¶
func (m *BillingInvoiceItemMutation) SetTaxCodeOverride(bo billing.TaxOverrides)
SetTaxCodeOverride sets the "tax_code_override" field.
func (*BillingInvoiceItemMutation) SetType ¶
func (m *BillingInvoiceItemMutation) SetType(bit billing.InvoiceItemType)
SetType sets the "type" field.
func (*BillingInvoiceItemMutation) SetUnitPrice ¶
func (m *BillingInvoiceItemMutation) SetUnitPrice(a alpacadecimal.Decimal)
SetUnitPrice sets the "unit_price" field.
func (*BillingInvoiceItemMutation) SetUpdatedAt ¶
func (m *BillingInvoiceItemMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*BillingInvoiceItemMutation) TaxCodeOverride ¶
func (m *BillingInvoiceItemMutation) TaxCodeOverride() (r billing.TaxOverrides, exists bool)
TaxCodeOverride returns the value of the "tax_code_override" field in the mutation.
func (BillingInvoiceItemMutation) Tx ¶
func (m BillingInvoiceItemMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*BillingInvoiceItemMutation) Type ¶
func (m *BillingInvoiceItemMutation) Type() string
Type returns the node type of this mutation (BillingInvoiceItem).
func (*BillingInvoiceItemMutation) UnitPrice ¶
func (m *BillingInvoiceItemMutation) UnitPrice() (r alpacadecimal.Decimal, exists bool)
UnitPrice returns the value of the "unit_price" field in the mutation.
func (*BillingInvoiceItemMutation) UpdatedAt ¶
func (m *BillingInvoiceItemMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*BillingInvoiceItemMutation) Where ¶
func (m *BillingInvoiceItemMutation) Where(ps ...predicate.BillingInvoiceItem)
Where appends a list predicates to the BillingInvoiceItemMutation builder.
func (*BillingInvoiceItemMutation) WhereP ¶
func (m *BillingInvoiceItemMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the BillingInvoiceItemMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type BillingInvoiceItemQuery ¶
type BillingInvoiceItemQuery struct {
// contains filtered or unexported fields
}
BillingInvoiceItemQuery is the builder for querying BillingInvoiceItem entities.
func (*BillingInvoiceItemQuery) Aggregate ¶
func (biiq *BillingInvoiceItemQuery) Aggregate(fns ...AggregateFunc) *BillingInvoiceItemSelect
Aggregate returns a BillingInvoiceItemSelect configured with the given aggregations.
func (*BillingInvoiceItemQuery) All ¶
func (biiq *BillingInvoiceItemQuery) All(ctx context.Context) ([]*BillingInvoiceItem, error)
All executes the query and returns a list of BillingInvoiceItems.
func (*BillingInvoiceItemQuery) AllX ¶
func (biiq *BillingInvoiceItemQuery) AllX(ctx context.Context) []*BillingInvoiceItem
AllX is like All, but panics if an error occurs.
func (*BillingInvoiceItemQuery) Clone ¶
func (biiq *BillingInvoiceItemQuery) Clone() *BillingInvoiceItemQuery
Clone returns a duplicate of the BillingInvoiceItemQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*BillingInvoiceItemQuery) Count ¶
func (biiq *BillingInvoiceItemQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*BillingInvoiceItemQuery) CountX ¶
func (biiq *BillingInvoiceItemQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*BillingInvoiceItemQuery) ExecContext ¶
func (c *BillingInvoiceItemQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingInvoiceItemQuery) Exist ¶
func (biiq *BillingInvoiceItemQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*BillingInvoiceItemQuery) ExistX ¶
func (biiq *BillingInvoiceItemQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*BillingInvoiceItemQuery) First ¶
func (biiq *BillingInvoiceItemQuery) First(ctx context.Context) (*BillingInvoiceItem, error)
First returns the first BillingInvoiceItem entity from the query. Returns a *NotFoundError when no BillingInvoiceItem was found.
func (*BillingInvoiceItemQuery) FirstID ¶
func (biiq *BillingInvoiceItemQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first BillingInvoiceItem ID from the query. Returns a *NotFoundError when no BillingInvoiceItem ID was found.
func (*BillingInvoiceItemQuery) FirstIDX ¶
func (biiq *BillingInvoiceItemQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*BillingInvoiceItemQuery) FirstX ¶
func (biiq *BillingInvoiceItemQuery) FirstX(ctx context.Context) *BillingInvoiceItem
FirstX is like First, but panics if an error occurs.
func (*BillingInvoiceItemQuery) ForShare ¶
func (biiq *BillingInvoiceItemQuery) ForShare(opts ...sql.LockOption) *BillingInvoiceItemQuery
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 (*BillingInvoiceItemQuery) ForUpdate ¶
func (biiq *BillingInvoiceItemQuery) ForUpdate(opts ...sql.LockOption) *BillingInvoiceItemQuery
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 (*BillingInvoiceItemQuery) GroupBy ¶
func (biiq *BillingInvoiceItemQuery) GroupBy(field string, fields ...string) *BillingInvoiceItemGroupBy
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 {
Namespace string `json:"namespace,omitempty"`
Count int `json:"count,omitempty"`
}
client.BillingInvoiceItem.Query().
GroupBy(billinginvoiceitem.FieldNamespace).
Aggregate(db.Count()).
Scan(ctx, &v)
func (*BillingInvoiceItemQuery) IDs ¶
func (biiq *BillingInvoiceItemQuery) IDs(ctx context.Context) (ids []string, err error)
IDs executes the query and returns a list of BillingInvoiceItem IDs.
func (*BillingInvoiceItemQuery) IDsX ¶
func (biiq *BillingInvoiceItemQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*BillingInvoiceItemQuery) Limit ¶
func (biiq *BillingInvoiceItemQuery) Limit(limit int) *BillingInvoiceItemQuery
Limit the number of records to be returned by this query.
func (*BillingInvoiceItemQuery) Offset ¶
func (biiq *BillingInvoiceItemQuery) Offset(offset int) *BillingInvoiceItemQuery
Offset to start from.
func (*BillingInvoiceItemQuery) Only ¶
func (biiq *BillingInvoiceItemQuery) Only(ctx context.Context) (*BillingInvoiceItem, error)
Only returns a single BillingInvoiceItem entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one BillingInvoiceItem entity is found. Returns a *NotFoundError when no BillingInvoiceItem entities are found.
func (*BillingInvoiceItemQuery) OnlyID ¶
func (biiq *BillingInvoiceItemQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only BillingInvoiceItem ID in the query. Returns a *NotSingularError when more than one BillingInvoiceItem ID is found. Returns a *NotFoundError when no entities are found.
func (*BillingInvoiceItemQuery) OnlyIDX ¶
func (biiq *BillingInvoiceItemQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*BillingInvoiceItemQuery) OnlyX ¶
func (biiq *BillingInvoiceItemQuery) OnlyX(ctx context.Context) *BillingInvoiceItem
OnlyX is like Only, but panics if an error occurs.
func (*BillingInvoiceItemQuery) Order ¶
func (biiq *BillingInvoiceItemQuery) Order(o ...billinginvoiceitem.OrderOption) *BillingInvoiceItemQuery
Order specifies how the records should be ordered.
func (*BillingInvoiceItemQuery) Paginate ¶
func (bii *BillingInvoiceItemQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*BillingInvoiceItem], error)
Paginate runs the query and returns a paginated response. If page is its 0 value then it will return all the items and populate the response page accordingly.
func (*BillingInvoiceItemQuery) QueryBillingInvoice ¶
func (biiq *BillingInvoiceItemQuery) QueryBillingInvoice() *BillingInvoiceQuery
QueryBillingInvoice chains the current query on the "billing_invoice" edge.
func (*BillingInvoiceItemQuery) QueryContext ¶
func (c *BillingInvoiceItemQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingInvoiceItemQuery) Select ¶
func (biiq *BillingInvoiceItemQuery) Select(fields ...string) *BillingInvoiceItemSelect
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 {
Namespace string `json:"namespace,omitempty"`
}
client.BillingInvoiceItem.Query().
Select(billinginvoiceitem.FieldNamespace).
Scan(ctx, &v)
func (*BillingInvoiceItemQuery) Unique ¶
func (biiq *BillingInvoiceItemQuery) Unique(unique bool) *BillingInvoiceItemQuery
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 (*BillingInvoiceItemQuery) Where ¶
func (biiq *BillingInvoiceItemQuery) Where(ps ...predicate.BillingInvoiceItem) *BillingInvoiceItemQuery
Where adds a new predicate for the BillingInvoiceItemQuery builder.
func (*BillingInvoiceItemQuery) WithBillingInvoice ¶
func (biiq *BillingInvoiceItemQuery) WithBillingInvoice(opts ...func(*BillingInvoiceQuery)) *BillingInvoiceItemQuery
WithBillingInvoice tells the query-builder to eager-load the nodes that are connected to the "billing_invoice" edge. The optional arguments are used to configure the query builder of the edge.
type BillingInvoiceItemSelect ¶
type BillingInvoiceItemSelect struct {
*BillingInvoiceItemQuery
// contains filtered or unexported fields
}
BillingInvoiceItemSelect is the builder for selecting fields of BillingInvoiceItem entities.
func (*BillingInvoiceItemSelect) Aggregate ¶
func (biis *BillingInvoiceItemSelect) Aggregate(fns ...AggregateFunc) *BillingInvoiceItemSelect
Aggregate adds the given aggregation functions to the selector query.
func (*BillingInvoiceItemSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*BillingInvoiceItemSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (BillingInvoiceItemSelect) ExecContext ¶
func (c BillingInvoiceItemSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingInvoiceItemSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*BillingInvoiceItemSelect) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*BillingInvoiceItemSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*BillingInvoiceItemSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*BillingInvoiceItemSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*BillingInvoiceItemSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (BillingInvoiceItemSelect) QueryContext ¶
func (c BillingInvoiceItemSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingInvoiceItemSelect) Scan ¶
func (biis *BillingInvoiceItemSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*BillingInvoiceItemSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type BillingInvoiceItemUpdate ¶
type BillingInvoiceItemUpdate struct {
// contains filtered or unexported fields
}
BillingInvoiceItemUpdate is the builder for updating BillingInvoiceItem entities.
func (*BillingInvoiceItemUpdate) ClearBillingInvoice ¶
func (biiu *BillingInvoiceItemUpdate) ClearBillingInvoice() *BillingInvoiceItemUpdate
ClearBillingInvoice clears the "billing_invoice" edge to the BillingInvoice entity.
func (*BillingInvoiceItemUpdate) ClearDeletedAt ¶
func (biiu *BillingInvoiceItemUpdate) ClearDeletedAt() *BillingInvoiceItemUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BillingInvoiceItemUpdate) ClearInvoiceID ¶
func (biiu *BillingInvoiceItemUpdate) ClearInvoiceID() *BillingInvoiceItemUpdate
ClearInvoiceID clears the value of the "invoice_id" field.
func (*BillingInvoiceItemUpdate) ClearMetadata ¶
func (biiu *BillingInvoiceItemUpdate) ClearMetadata() *BillingInvoiceItemUpdate
ClearMetadata clears the value of the "metadata" field.
func (*BillingInvoiceItemUpdate) ClearQuantity ¶
func (biiu *BillingInvoiceItemUpdate) ClearQuantity() *BillingInvoiceItemUpdate
ClearQuantity clears the value of the "quantity" field.
func (*BillingInvoiceItemUpdate) Exec ¶
func (biiu *BillingInvoiceItemUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*BillingInvoiceItemUpdate) ExecContext ¶
func (c *BillingInvoiceItemUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingInvoiceItemUpdate) ExecX ¶
func (biiu *BillingInvoiceItemUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingInvoiceItemUpdate) Mutation ¶
func (biiu *BillingInvoiceItemUpdate) Mutation() *BillingInvoiceItemMutation
Mutation returns the BillingInvoiceItemMutation object of the builder.
func (*BillingInvoiceItemUpdate) QueryContext ¶
func (c *BillingInvoiceItemUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingInvoiceItemUpdate) Save ¶
func (biiu *BillingInvoiceItemUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*BillingInvoiceItemUpdate) SaveX ¶
func (biiu *BillingInvoiceItemUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*BillingInvoiceItemUpdate) SetBillingInvoice ¶
func (biiu *BillingInvoiceItemUpdate) SetBillingInvoice(b *BillingInvoice) *BillingInvoiceItemUpdate
SetBillingInvoice sets the "billing_invoice" edge to the BillingInvoice entity.
func (*BillingInvoiceItemUpdate) SetBillingInvoiceID ¶
func (biiu *BillingInvoiceItemUpdate) SetBillingInvoiceID(id string) *BillingInvoiceItemUpdate
SetBillingInvoiceID sets the "billing_invoice" edge to the BillingInvoice entity by ID.
func (*BillingInvoiceItemUpdate) SetDeletedAt ¶
func (biiu *BillingInvoiceItemUpdate) SetDeletedAt(t time.Time) *BillingInvoiceItemUpdate
SetDeletedAt sets the "deleted_at" field.
func (*BillingInvoiceItemUpdate) SetInvoiceAt ¶
func (biiu *BillingInvoiceItemUpdate) SetInvoiceAt(t time.Time) *BillingInvoiceItemUpdate
SetInvoiceAt sets the "invoice_at" field.
func (*BillingInvoiceItemUpdate) SetInvoiceID ¶
func (biiu *BillingInvoiceItemUpdate) SetInvoiceID(s string) *BillingInvoiceItemUpdate
SetInvoiceID sets the "invoice_id" field.
func (*BillingInvoiceItemUpdate) SetMetadata ¶
func (biiu *BillingInvoiceItemUpdate) SetMetadata(m map[string]string) *BillingInvoiceItemUpdate
SetMetadata sets the "metadata" field.
func (*BillingInvoiceItemUpdate) SetName ¶
func (biiu *BillingInvoiceItemUpdate) SetName(s string) *BillingInvoiceItemUpdate
SetName sets the "name" field.
func (*BillingInvoiceItemUpdate) SetNillableBillingInvoiceID ¶
func (biiu *BillingInvoiceItemUpdate) SetNillableBillingInvoiceID(id *string) *BillingInvoiceItemUpdate
SetNillableBillingInvoiceID sets the "billing_invoice" edge to the BillingInvoice entity by ID if the given value is not nil.
func (*BillingInvoiceItemUpdate) SetNillableDeletedAt ¶
func (biiu *BillingInvoiceItemUpdate) SetNillableDeletedAt(t *time.Time) *BillingInvoiceItemUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*BillingInvoiceItemUpdate) SetNillableInvoiceAt ¶
func (biiu *BillingInvoiceItemUpdate) SetNillableInvoiceAt(t *time.Time) *BillingInvoiceItemUpdate
SetNillableInvoiceAt sets the "invoice_at" field if the given value is not nil.
func (*BillingInvoiceItemUpdate) SetNillableInvoiceID ¶
func (biiu *BillingInvoiceItemUpdate) SetNillableInvoiceID(s *string) *BillingInvoiceItemUpdate
SetNillableInvoiceID sets the "invoice_id" field if the given value is not nil.
func (*BillingInvoiceItemUpdate) SetNillableName ¶
func (biiu *BillingInvoiceItemUpdate) SetNillableName(s *string) *BillingInvoiceItemUpdate
SetNillableName sets the "name" field if the given value is not nil.
func (*BillingInvoiceItemUpdate) SetNillablePeriodEnd ¶
func (biiu *BillingInvoiceItemUpdate) SetNillablePeriodEnd(t *time.Time) *BillingInvoiceItemUpdate
SetNillablePeriodEnd sets the "period_end" field if the given value is not nil.
func (*BillingInvoiceItemUpdate) SetNillablePeriodStart ¶
func (biiu *BillingInvoiceItemUpdate) SetNillablePeriodStart(t *time.Time) *BillingInvoiceItemUpdate
SetNillablePeriodStart sets the "period_start" field if the given value is not nil.
func (*BillingInvoiceItemUpdate) SetNillableQuantity ¶
func (biiu *BillingInvoiceItemUpdate) SetNillableQuantity(a *alpacadecimal.Decimal) *BillingInvoiceItemUpdate
SetNillableQuantity sets the "quantity" field if the given value is not nil.
func (*BillingInvoiceItemUpdate) SetNillableTaxCodeOverride ¶
func (biiu *BillingInvoiceItemUpdate) SetNillableTaxCodeOverride(bo *billing.TaxOverrides) *BillingInvoiceItemUpdate
SetNillableTaxCodeOverride sets the "tax_code_override" field if the given value is not nil.
func (*BillingInvoiceItemUpdate) SetNillableType ¶
func (biiu *BillingInvoiceItemUpdate) SetNillableType(bit *billing.InvoiceItemType) *BillingInvoiceItemUpdate
SetNillableType sets the "type" field if the given value is not nil.
func (*BillingInvoiceItemUpdate) SetNillableUnitPrice ¶
func (biiu *BillingInvoiceItemUpdate) SetNillableUnitPrice(a *alpacadecimal.Decimal) *BillingInvoiceItemUpdate
SetNillableUnitPrice sets the "unit_price" field if the given value is not nil.
func (*BillingInvoiceItemUpdate) SetOrClearDeletedAt ¶
func (u *BillingInvoiceItemUpdate) SetOrClearDeletedAt(value *time.Time) *BillingInvoiceItemUpdate
func (*BillingInvoiceItemUpdate) SetOrClearInvoiceID ¶
func (u *BillingInvoiceItemUpdate) SetOrClearInvoiceID(value *string) *BillingInvoiceItemUpdate
func (*BillingInvoiceItemUpdate) SetOrClearMetadata ¶
func (u *BillingInvoiceItemUpdate) SetOrClearMetadata(value *map[string]string) *BillingInvoiceItemUpdate
func (*BillingInvoiceItemUpdate) SetOrClearQuantity ¶
func (u *BillingInvoiceItemUpdate) SetOrClearQuantity(value *alpacadecimal.Decimal) *BillingInvoiceItemUpdate
func (*BillingInvoiceItemUpdate) SetPeriodEnd ¶
func (biiu *BillingInvoiceItemUpdate) SetPeriodEnd(t time.Time) *BillingInvoiceItemUpdate
SetPeriodEnd sets the "period_end" field.
func (*BillingInvoiceItemUpdate) SetPeriodStart ¶
func (biiu *BillingInvoiceItemUpdate) SetPeriodStart(t time.Time) *BillingInvoiceItemUpdate
SetPeriodStart sets the "period_start" field.
func (*BillingInvoiceItemUpdate) SetQuantity ¶
func (biiu *BillingInvoiceItemUpdate) SetQuantity(a alpacadecimal.Decimal) *BillingInvoiceItemUpdate
SetQuantity sets the "quantity" field.
func (*BillingInvoiceItemUpdate) SetTaxCodeOverride ¶
func (biiu *BillingInvoiceItemUpdate) SetTaxCodeOverride(bo billing.TaxOverrides) *BillingInvoiceItemUpdate
SetTaxCodeOverride sets the "tax_code_override" field.
func (*BillingInvoiceItemUpdate) SetType ¶
func (biiu *BillingInvoiceItemUpdate) SetType(bit billing.InvoiceItemType) *BillingInvoiceItemUpdate
SetType sets the "type" field.
func (*BillingInvoiceItemUpdate) SetUnitPrice ¶
func (biiu *BillingInvoiceItemUpdate) SetUnitPrice(a alpacadecimal.Decimal) *BillingInvoiceItemUpdate
SetUnitPrice sets the "unit_price" field.
func (*BillingInvoiceItemUpdate) SetUpdatedAt ¶
func (biiu *BillingInvoiceItemUpdate) SetUpdatedAt(t time.Time) *BillingInvoiceItemUpdate
SetUpdatedAt sets the "updated_at" field.
func (*BillingInvoiceItemUpdate) Where ¶
func (biiu *BillingInvoiceItemUpdate) Where(ps ...predicate.BillingInvoiceItem) *BillingInvoiceItemUpdate
Where appends a list predicates to the BillingInvoiceItemUpdate builder.
type BillingInvoiceItemUpdateOne ¶
type BillingInvoiceItemUpdateOne struct {
// contains filtered or unexported fields
}
BillingInvoiceItemUpdateOne is the builder for updating a single BillingInvoiceItem entity.
func (*BillingInvoiceItemUpdateOne) ClearBillingInvoice ¶
func (biiuo *BillingInvoiceItemUpdateOne) ClearBillingInvoice() *BillingInvoiceItemUpdateOne
ClearBillingInvoice clears the "billing_invoice" edge to the BillingInvoice entity.
func (*BillingInvoiceItemUpdateOne) ClearDeletedAt ¶
func (biiuo *BillingInvoiceItemUpdateOne) ClearDeletedAt() *BillingInvoiceItemUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BillingInvoiceItemUpdateOne) ClearInvoiceID ¶
func (biiuo *BillingInvoiceItemUpdateOne) ClearInvoiceID() *BillingInvoiceItemUpdateOne
ClearInvoiceID clears the value of the "invoice_id" field.
func (*BillingInvoiceItemUpdateOne) ClearMetadata ¶
func (biiuo *BillingInvoiceItemUpdateOne) ClearMetadata() *BillingInvoiceItemUpdateOne
ClearMetadata clears the value of the "metadata" field.
func (*BillingInvoiceItemUpdateOne) ClearQuantity ¶
func (biiuo *BillingInvoiceItemUpdateOne) ClearQuantity() *BillingInvoiceItemUpdateOne
ClearQuantity clears the value of the "quantity" field.
func (*BillingInvoiceItemUpdateOne) Exec ¶
func (biiuo *BillingInvoiceItemUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*BillingInvoiceItemUpdateOne) ExecContext ¶
func (c *BillingInvoiceItemUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingInvoiceItemUpdateOne) ExecX ¶
func (biiuo *BillingInvoiceItemUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingInvoiceItemUpdateOne) Mutation ¶
func (biiuo *BillingInvoiceItemUpdateOne) Mutation() *BillingInvoiceItemMutation
Mutation returns the BillingInvoiceItemMutation object of the builder.
func (*BillingInvoiceItemUpdateOne) QueryContext ¶
func (c *BillingInvoiceItemUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingInvoiceItemUpdateOne) Save ¶
func (biiuo *BillingInvoiceItemUpdateOne) Save(ctx context.Context) (*BillingInvoiceItem, error)
Save executes the query and returns the updated BillingInvoiceItem entity.
func (*BillingInvoiceItemUpdateOne) SaveX ¶
func (biiuo *BillingInvoiceItemUpdateOne) SaveX(ctx context.Context) *BillingInvoiceItem
SaveX is like Save, but panics if an error occurs.
func (*BillingInvoiceItemUpdateOne) Select ¶
func (biiuo *BillingInvoiceItemUpdateOne) Select(field string, fields ...string) *BillingInvoiceItemUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*BillingInvoiceItemUpdateOne) SetBillingInvoice ¶
func (biiuo *BillingInvoiceItemUpdateOne) SetBillingInvoice(b *BillingInvoice) *BillingInvoiceItemUpdateOne
SetBillingInvoice sets the "billing_invoice" edge to the BillingInvoice entity.
func (*BillingInvoiceItemUpdateOne) SetBillingInvoiceID ¶
func (biiuo *BillingInvoiceItemUpdateOne) SetBillingInvoiceID(id string) *BillingInvoiceItemUpdateOne
SetBillingInvoiceID sets the "billing_invoice" edge to the BillingInvoice entity by ID.
func (*BillingInvoiceItemUpdateOne) SetDeletedAt ¶
func (biiuo *BillingInvoiceItemUpdateOne) SetDeletedAt(t time.Time) *BillingInvoiceItemUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*BillingInvoiceItemUpdateOne) SetInvoiceAt ¶
func (biiuo *BillingInvoiceItemUpdateOne) SetInvoiceAt(t time.Time) *BillingInvoiceItemUpdateOne
SetInvoiceAt sets the "invoice_at" field.
func (*BillingInvoiceItemUpdateOne) SetInvoiceID ¶
func (biiuo *BillingInvoiceItemUpdateOne) SetInvoiceID(s string) *BillingInvoiceItemUpdateOne
SetInvoiceID sets the "invoice_id" field.
func (*BillingInvoiceItemUpdateOne) SetMetadata ¶
func (biiuo *BillingInvoiceItemUpdateOne) SetMetadata(m map[string]string) *BillingInvoiceItemUpdateOne
SetMetadata sets the "metadata" field.
func (*BillingInvoiceItemUpdateOne) SetName ¶
func (biiuo *BillingInvoiceItemUpdateOne) SetName(s string) *BillingInvoiceItemUpdateOne
SetName sets the "name" field.
func (*BillingInvoiceItemUpdateOne) SetNillableBillingInvoiceID ¶
func (biiuo *BillingInvoiceItemUpdateOne) SetNillableBillingInvoiceID(id *string) *BillingInvoiceItemUpdateOne
SetNillableBillingInvoiceID sets the "billing_invoice" edge to the BillingInvoice entity by ID if the given value is not nil.
func (*BillingInvoiceItemUpdateOne) SetNillableDeletedAt ¶
func (biiuo *BillingInvoiceItemUpdateOne) SetNillableDeletedAt(t *time.Time) *BillingInvoiceItemUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*BillingInvoiceItemUpdateOne) SetNillableInvoiceAt ¶
func (biiuo *BillingInvoiceItemUpdateOne) SetNillableInvoiceAt(t *time.Time) *BillingInvoiceItemUpdateOne
SetNillableInvoiceAt sets the "invoice_at" field if the given value is not nil.
func (*BillingInvoiceItemUpdateOne) SetNillableInvoiceID ¶
func (biiuo *BillingInvoiceItemUpdateOne) SetNillableInvoiceID(s *string) *BillingInvoiceItemUpdateOne
SetNillableInvoiceID sets the "invoice_id" field if the given value is not nil.
func (*BillingInvoiceItemUpdateOne) SetNillableName ¶
func (biiuo *BillingInvoiceItemUpdateOne) SetNillableName(s *string) *BillingInvoiceItemUpdateOne
SetNillableName sets the "name" field if the given value is not nil.
func (*BillingInvoiceItemUpdateOne) SetNillablePeriodEnd ¶
func (biiuo *BillingInvoiceItemUpdateOne) SetNillablePeriodEnd(t *time.Time) *BillingInvoiceItemUpdateOne
SetNillablePeriodEnd sets the "period_end" field if the given value is not nil.
func (*BillingInvoiceItemUpdateOne) SetNillablePeriodStart ¶
func (biiuo *BillingInvoiceItemUpdateOne) SetNillablePeriodStart(t *time.Time) *BillingInvoiceItemUpdateOne
SetNillablePeriodStart sets the "period_start" field if the given value is not nil.
func (*BillingInvoiceItemUpdateOne) SetNillableQuantity ¶
func (biiuo *BillingInvoiceItemUpdateOne) SetNillableQuantity(a *alpacadecimal.Decimal) *BillingInvoiceItemUpdateOne
SetNillableQuantity sets the "quantity" field if the given value is not nil.
func (*BillingInvoiceItemUpdateOne) SetNillableTaxCodeOverride ¶
func (biiuo *BillingInvoiceItemUpdateOne) SetNillableTaxCodeOverride(bo *billing.TaxOverrides) *BillingInvoiceItemUpdateOne
SetNillableTaxCodeOverride sets the "tax_code_override" field if the given value is not nil.
func (*BillingInvoiceItemUpdateOne) SetNillableType ¶
func (biiuo *BillingInvoiceItemUpdateOne) SetNillableType(bit *billing.InvoiceItemType) *BillingInvoiceItemUpdateOne
SetNillableType sets the "type" field if the given value is not nil.
func (*BillingInvoiceItemUpdateOne) SetNillableUnitPrice ¶
func (biiuo *BillingInvoiceItemUpdateOne) SetNillableUnitPrice(a *alpacadecimal.Decimal) *BillingInvoiceItemUpdateOne
SetNillableUnitPrice sets the "unit_price" field if the given value is not nil.
func (*BillingInvoiceItemUpdateOne) SetOrClearDeletedAt ¶
func (u *BillingInvoiceItemUpdateOne) SetOrClearDeletedAt(value *time.Time) *BillingInvoiceItemUpdateOne
func (*BillingInvoiceItemUpdateOne) SetOrClearInvoiceID ¶
func (u *BillingInvoiceItemUpdateOne) SetOrClearInvoiceID(value *string) *BillingInvoiceItemUpdateOne
func (*BillingInvoiceItemUpdateOne) SetOrClearMetadata ¶
func (u *BillingInvoiceItemUpdateOne) SetOrClearMetadata(value *map[string]string) *BillingInvoiceItemUpdateOne
func (*BillingInvoiceItemUpdateOne) SetOrClearQuantity ¶
func (u *BillingInvoiceItemUpdateOne) SetOrClearQuantity(value *alpacadecimal.Decimal) *BillingInvoiceItemUpdateOne
func (*BillingInvoiceItemUpdateOne) SetPeriodEnd ¶
func (biiuo *BillingInvoiceItemUpdateOne) SetPeriodEnd(t time.Time) *BillingInvoiceItemUpdateOne
SetPeriodEnd sets the "period_end" field.
func (*BillingInvoiceItemUpdateOne) SetPeriodStart ¶
func (biiuo *BillingInvoiceItemUpdateOne) SetPeriodStart(t time.Time) *BillingInvoiceItemUpdateOne
SetPeriodStart sets the "period_start" field.
func (*BillingInvoiceItemUpdateOne) SetQuantity ¶
func (biiuo *BillingInvoiceItemUpdateOne) SetQuantity(a alpacadecimal.Decimal) *BillingInvoiceItemUpdateOne
SetQuantity sets the "quantity" field.
func (*BillingInvoiceItemUpdateOne) SetTaxCodeOverride ¶
func (biiuo *BillingInvoiceItemUpdateOne) SetTaxCodeOverride(bo billing.TaxOverrides) *BillingInvoiceItemUpdateOne
SetTaxCodeOverride sets the "tax_code_override" field.
func (*BillingInvoiceItemUpdateOne) SetType ¶
func (biiuo *BillingInvoiceItemUpdateOne) SetType(bit billing.InvoiceItemType) *BillingInvoiceItemUpdateOne
SetType sets the "type" field.
func (*BillingInvoiceItemUpdateOne) SetUnitPrice ¶
func (biiuo *BillingInvoiceItemUpdateOne) SetUnitPrice(a alpacadecimal.Decimal) *BillingInvoiceItemUpdateOne
SetUnitPrice sets the "unit_price" field.
func (*BillingInvoiceItemUpdateOne) SetUpdatedAt ¶
func (biiuo *BillingInvoiceItemUpdateOne) SetUpdatedAt(t time.Time) *BillingInvoiceItemUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*BillingInvoiceItemUpdateOne) Where ¶
func (biiuo *BillingInvoiceItemUpdateOne) Where(ps ...predicate.BillingInvoiceItem) *BillingInvoiceItemUpdateOne
Where appends a list predicates to the BillingInvoiceItemUpdate builder.
type BillingInvoiceItemUpsert ¶
BillingInvoiceItemUpsert is the "OnConflict" setter.
func (*BillingInvoiceItemUpsert) ClearDeletedAt ¶
func (u *BillingInvoiceItemUpsert) ClearDeletedAt() *BillingInvoiceItemUpsert
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BillingInvoiceItemUpsert) ClearInvoiceID ¶
func (u *BillingInvoiceItemUpsert) ClearInvoiceID() *BillingInvoiceItemUpsert
ClearInvoiceID clears the value of the "invoice_id" field.
func (*BillingInvoiceItemUpsert) ClearMetadata ¶
func (u *BillingInvoiceItemUpsert) ClearMetadata() *BillingInvoiceItemUpsert
ClearMetadata clears the value of the "metadata" field.
func (*BillingInvoiceItemUpsert) ClearQuantity ¶
func (u *BillingInvoiceItemUpsert) ClearQuantity() *BillingInvoiceItemUpsert
ClearQuantity clears the value of the "quantity" field.
func (*BillingInvoiceItemUpsert) SetDeletedAt ¶
func (u *BillingInvoiceItemUpsert) SetDeletedAt(v time.Time) *BillingInvoiceItemUpsert
SetDeletedAt sets the "deleted_at" field.
func (*BillingInvoiceItemUpsert) SetInvoiceAt ¶
func (u *BillingInvoiceItemUpsert) SetInvoiceAt(v time.Time) *BillingInvoiceItemUpsert
SetInvoiceAt sets the "invoice_at" field.
func (*BillingInvoiceItemUpsert) SetInvoiceID ¶
func (u *BillingInvoiceItemUpsert) SetInvoiceID(v string) *BillingInvoiceItemUpsert
SetInvoiceID sets the "invoice_id" field.
func (*BillingInvoiceItemUpsert) SetMetadata ¶
func (u *BillingInvoiceItemUpsert) SetMetadata(v map[string]string) *BillingInvoiceItemUpsert
SetMetadata sets the "metadata" field.
func (*BillingInvoiceItemUpsert) SetName ¶
func (u *BillingInvoiceItemUpsert) SetName(v string) *BillingInvoiceItemUpsert
SetName sets the "name" field.
func (*BillingInvoiceItemUpsert) SetPeriodEnd ¶
func (u *BillingInvoiceItemUpsert) SetPeriodEnd(v time.Time) *BillingInvoiceItemUpsert
SetPeriodEnd sets the "period_end" field.
func (*BillingInvoiceItemUpsert) SetPeriodStart ¶
func (u *BillingInvoiceItemUpsert) SetPeriodStart(v time.Time) *BillingInvoiceItemUpsert
SetPeriodStart sets the "period_start" field.
func (*BillingInvoiceItemUpsert) SetQuantity ¶
func (u *BillingInvoiceItemUpsert) SetQuantity(v alpacadecimal.Decimal) *BillingInvoiceItemUpsert
SetQuantity sets the "quantity" field.
func (*BillingInvoiceItemUpsert) SetTaxCodeOverride ¶
func (u *BillingInvoiceItemUpsert) SetTaxCodeOverride(v billing.TaxOverrides) *BillingInvoiceItemUpsert
SetTaxCodeOverride sets the "tax_code_override" field.
func (*BillingInvoiceItemUpsert) SetType ¶
func (u *BillingInvoiceItemUpsert) SetType(v billing.InvoiceItemType) *BillingInvoiceItemUpsert
SetType sets the "type" field.
func (*BillingInvoiceItemUpsert) SetUnitPrice ¶
func (u *BillingInvoiceItemUpsert) SetUnitPrice(v alpacadecimal.Decimal) *BillingInvoiceItemUpsert
SetUnitPrice sets the "unit_price" field.
func (*BillingInvoiceItemUpsert) SetUpdatedAt ¶
func (u *BillingInvoiceItemUpsert) SetUpdatedAt(v time.Time) *BillingInvoiceItemUpsert
SetUpdatedAt sets the "updated_at" field.
func (*BillingInvoiceItemUpsert) UpdateDeletedAt ¶
func (u *BillingInvoiceItemUpsert) UpdateDeletedAt() *BillingInvoiceItemUpsert
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*BillingInvoiceItemUpsert) UpdateInvoiceAt ¶
func (u *BillingInvoiceItemUpsert) UpdateInvoiceAt() *BillingInvoiceItemUpsert
UpdateInvoiceAt sets the "invoice_at" field to the value that was provided on create.
func (*BillingInvoiceItemUpsert) UpdateInvoiceID ¶
func (u *BillingInvoiceItemUpsert) UpdateInvoiceID() *BillingInvoiceItemUpsert
UpdateInvoiceID sets the "invoice_id" field to the value that was provided on create.
func (*BillingInvoiceItemUpsert) UpdateMetadata ¶
func (u *BillingInvoiceItemUpsert) UpdateMetadata() *BillingInvoiceItemUpsert
UpdateMetadata sets the "metadata" field to the value that was provided on create.
func (*BillingInvoiceItemUpsert) UpdateName ¶
func (u *BillingInvoiceItemUpsert) UpdateName() *BillingInvoiceItemUpsert
UpdateName sets the "name" field to the value that was provided on create.
func (*BillingInvoiceItemUpsert) UpdatePeriodEnd ¶
func (u *BillingInvoiceItemUpsert) UpdatePeriodEnd() *BillingInvoiceItemUpsert
UpdatePeriodEnd sets the "period_end" field to the value that was provided on create.
func (*BillingInvoiceItemUpsert) UpdatePeriodStart ¶
func (u *BillingInvoiceItemUpsert) UpdatePeriodStart() *BillingInvoiceItemUpsert
UpdatePeriodStart sets the "period_start" field to the value that was provided on create.
func (*BillingInvoiceItemUpsert) UpdateQuantity ¶
func (u *BillingInvoiceItemUpsert) UpdateQuantity() *BillingInvoiceItemUpsert
UpdateQuantity sets the "quantity" field to the value that was provided on create.
func (*BillingInvoiceItemUpsert) UpdateTaxCodeOverride ¶
func (u *BillingInvoiceItemUpsert) UpdateTaxCodeOverride() *BillingInvoiceItemUpsert
UpdateTaxCodeOverride sets the "tax_code_override" field to the value that was provided on create.
func (*BillingInvoiceItemUpsert) UpdateType ¶
func (u *BillingInvoiceItemUpsert) UpdateType() *BillingInvoiceItemUpsert
UpdateType sets the "type" field to the value that was provided on create.
func (*BillingInvoiceItemUpsert) UpdateUnitPrice ¶
func (u *BillingInvoiceItemUpsert) UpdateUnitPrice() *BillingInvoiceItemUpsert
UpdateUnitPrice sets the "unit_price" field to the value that was provided on create.
func (*BillingInvoiceItemUpsert) UpdateUpdatedAt ¶
func (u *BillingInvoiceItemUpsert) UpdateUpdatedAt() *BillingInvoiceItemUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type BillingInvoiceItemUpsertBulk ¶
type BillingInvoiceItemUpsertBulk struct {
// contains filtered or unexported fields
}
BillingInvoiceItemUpsertBulk is the builder for "upsert"-ing a bulk of BillingInvoiceItem nodes.
func (*BillingInvoiceItemUpsertBulk) ClearDeletedAt ¶
func (u *BillingInvoiceItemUpsertBulk) ClearDeletedAt() *BillingInvoiceItemUpsertBulk
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BillingInvoiceItemUpsertBulk) ClearInvoiceID ¶
func (u *BillingInvoiceItemUpsertBulk) ClearInvoiceID() *BillingInvoiceItemUpsertBulk
ClearInvoiceID clears the value of the "invoice_id" field.
func (*BillingInvoiceItemUpsertBulk) ClearMetadata ¶
func (u *BillingInvoiceItemUpsertBulk) ClearMetadata() *BillingInvoiceItemUpsertBulk
ClearMetadata clears the value of the "metadata" field.
func (*BillingInvoiceItemUpsertBulk) ClearQuantity ¶
func (u *BillingInvoiceItemUpsertBulk) ClearQuantity() *BillingInvoiceItemUpsertBulk
ClearQuantity clears the value of the "quantity" field.
func (*BillingInvoiceItemUpsertBulk) DoNothing ¶
func (u *BillingInvoiceItemUpsertBulk) DoNothing() *BillingInvoiceItemUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*BillingInvoiceItemUpsertBulk) Exec ¶
func (u *BillingInvoiceItemUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*BillingInvoiceItemUpsertBulk) ExecX ¶
func (u *BillingInvoiceItemUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingInvoiceItemUpsertBulk) Ignore ¶
func (u *BillingInvoiceItemUpsertBulk) Ignore() *BillingInvoiceItemUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.BillingInvoiceItem.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*BillingInvoiceItemUpsertBulk) SetDeletedAt ¶
func (u *BillingInvoiceItemUpsertBulk) SetDeletedAt(v time.Time) *BillingInvoiceItemUpsertBulk
SetDeletedAt sets the "deleted_at" field.
func (*BillingInvoiceItemUpsertBulk) SetInvoiceAt ¶
func (u *BillingInvoiceItemUpsertBulk) SetInvoiceAt(v time.Time) *BillingInvoiceItemUpsertBulk
SetInvoiceAt sets the "invoice_at" field.
func (*BillingInvoiceItemUpsertBulk) SetInvoiceID ¶
func (u *BillingInvoiceItemUpsertBulk) SetInvoiceID(v string) *BillingInvoiceItemUpsertBulk
SetInvoiceID sets the "invoice_id" field.
func (*BillingInvoiceItemUpsertBulk) SetMetadata ¶
func (u *BillingInvoiceItemUpsertBulk) SetMetadata(v map[string]string) *BillingInvoiceItemUpsertBulk
SetMetadata sets the "metadata" field.
func (*BillingInvoiceItemUpsertBulk) SetName ¶
func (u *BillingInvoiceItemUpsertBulk) SetName(v string) *BillingInvoiceItemUpsertBulk
SetName sets the "name" field.
func (*BillingInvoiceItemUpsertBulk) SetPeriodEnd ¶
func (u *BillingInvoiceItemUpsertBulk) SetPeriodEnd(v time.Time) *BillingInvoiceItemUpsertBulk
SetPeriodEnd sets the "period_end" field.
func (*BillingInvoiceItemUpsertBulk) SetPeriodStart ¶
func (u *BillingInvoiceItemUpsertBulk) SetPeriodStart(v time.Time) *BillingInvoiceItemUpsertBulk
SetPeriodStart sets the "period_start" field.
func (*BillingInvoiceItemUpsertBulk) SetQuantity ¶
func (u *BillingInvoiceItemUpsertBulk) SetQuantity(v alpacadecimal.Decimal) *BillingInvoiceItemUpsertBulk
SetQuantity sets the "quantity" field.
func (*BillingInvoiceItemUpsertBulk) SetTaxCodeOverride ¶
func (u *BillingInvoiceItemUpsertBulk) SetTaxCodeOverride(v billing.TaxOverrides) *BillingInvoiceItemUpsertBulk
SetTaxCodeOverride sets the "tax_code_override" field.
func (*BillingInvoiceItemUpsertBulk) SetType ¶
func (u *BillingInvoiceItemUpsertBulk) SetType(v billing.InvoiceItemType) *BillingInvoiceItemUpsertBulk
SetType sets the "type" field.
func (*BillingInvoiceItemUpsertBulk) SetUnitPrice ¶
func (u *BillingInvoiceItemUpsertBulk) SetUnitPrice(v alpacadecimal.Decimal) *BillingInvoiceItemUpsertBulk
SetUnitPrice sets the "unit_price" field.
func (*BillingInvoiceItemUpsertBulk) SetUpdatedAt ¶
func (u *BillingInvoiceItemUpsertBulk) SetUpdatedAt(v time.Time) *BillingInvoiceItemUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*BillingInvoiceItemUpsertBulk) Update ¶
func (u *BillingInvoiceItemUpsertBulk) Update(set func(*BillingInvoiceItemUpsert)) *BillingInvoiceItemUpsertBulk
Update allows overriding fields `UPDATE` values. See the BillingInvoiceItemCreateBulk.OnConflict documentation for more info.
func (*BillingInvoiceItemUpsertBulk) UpdateDeletedAt ¶
func (u *BillingInvoiceItemUpsertBulk) UpdateDeletedAt() *BillingInvoiceItemUpsertBulk
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*BillingInvoiceItemUpsertBulk) UpdateInvoiceAt ¶
func (u *BillingInvoiceItemUpsertBulk) UpdateInvoiceAt() *BillingInvoiceItemUpsertBulk
UpdateInvoiceAt sets the "invoice_at" field to the value that was provided on create.
func (*BillingInvoiceItemUpsertBulk) UpdateInvoiceID ¶
func (u *BillingInvoiceItemUpsertBulk) UpdateInvoiceID() *BillingInvoiceItemUpsertBulk
UpdateInvoiceID sets the "invoice_id" field to the value that was provided on create.
func (*BillingInvoiceItemUpsertBulk) UpdateMetadata ¶
func (u *BillingInvoiceItemUpsertBulk) UpdateMetadata() *BillingInvoiceItemUpsertBulk
UpdateMetadata sets the "metadata" field to the value that was provided on create.
func (*BillingInvoiceItemUpsertBulk) UpdateName ¶
func (u *BillingInvoiceItemUpsertBulk) UpdateName() *BillingInvoiceItemUpsertBulk
UpdateName sets the "name" field to the value that was provided on create.
func (*BillingInvoiceItemUpsertBulk) UpdateNewValues ¶
func (u *BillingInvoiceItemUpsertBulk) UpdateNewValues() *BillingInvoiceItemUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.BillingInvoiceItem.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(billinginvoiceitem.FieldID)
}),
).
Exec(ctx)
func (*BillingInvoiceItemUpsertBulk) UpdatePeriodEnd ¶
func (u *BillingInvoiceItemUpsertBulk) UpdatePeriodEnd() *BillingInvoiceItemUpsertBulk
UpdatePeriodEnd sets the "period_end" field to the value that was provided on create.
func (*BillingInvoiceItemUpsertBulk) UpdatePeriodStart ¶
func (u *BillingInvoiceItemUpsertBulk) UpdatePeriodStart() *BillingInvoiceItemUpsertBulk
UpdatePeriodStart sets the "period_start" field to the value that was provided on create.
func (*BillingInvoiceItemUpsertBulk) UpdateQuantity ¶
func (u *BillingInvoiceItemUpsertBulk) UpdateQuantity() *BillingInvoiceItemUpsertBulk
UpdateQuantity sets the "quantity" field to the value that was provided on create.
func (*BillingInvoiceItemUpsertBulk) UpdateTaxCodeOverride ¶
func (u *BillingInvoiceItemUpsertBulk) UpdateTaxCodeOverride() *BillingInvoiceItemUpsertBulk
UpdateTaxCodeOverride sets the "tax_code_override" field to the value that was provided on create.
func (*BillingInvoiceItemUpsertBulk) UpdateType ¶
func (u *BillingInvoiceItemUpsertBulk) UpdateType() *BillingInvoiceItemUpsertBulk
UpdateType sets the "type" field to the value that was provided on create.
func (*BillingInvoiceItemUpsertBulk) UpdateUnitPrice ¶
func (u *BillingInvoiceItemUpsertBulk) UpdateUnitPrice() *BillingInvoiceItemUpsertBulk
UpdateUnitPrice sets the "unit_price" field to the value that was provided on create.
func (*BillingInvoiceItemUpsertBulk) UpdateUpdatedAt ¶
func (u *BillingInvoiceItemUpsertBulk) UpdateUpdatedAt() *BillingInvoiceItemUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type BillingInvoiceItemUpsertOne ¶
type BillingInvoiceItemUpsertOne struct {
// contains filtered or unexported fields
}
BillingInvoiceItemUpsertOne is the builder for "upsert"-ing
one BillingInvoiceItem node.
func (*BillingInvoiceItemUpsertOne) ClearDeletedAt ¶
func (u *BillingInvoiceItemUpsertOne) ClearDeletedAt() *BillingInvoiceItemUpsertOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BillingInvoiceItemUpsertOne) ClearInvoiceID ¶
func (u *BillingInvoiceItemUpsertOne) ClearInvoiceID() *BillingInvoiceItemUpsertOne
ClearInvoiceID clears the value of the "invoice_id" field.
func (*BillingInvoiceItemUpsertOne) ClearMetadata ¶
func (u *BillingInvoiceItemUpsertOne) ClearMetadata() *BillingInvoiceItemUpsertOne
ClearMetadata clears the value of the "metadata" field.
func (*BillingInvoiceItemUpsertOne) ClearQuantity ¶
func (u *BillingInvoiceItemUpsertOne) ClearQuantity() *BillingInvoiceItemUpsertOne
ClearQuantity clears the value of the "quantity" field.
func (*BillingInvoiceItemUpsertOne) DoNothing ¶
func (u *BillingInvoiceItemUpsertOne) DoNothing() *BillingInvoiceItemUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*BillingInvoiceItemUpsertOne) Exec ¶
func (u *BillingInvoiceItemUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*BillingInvoiceItemUpsertOne) ExecX ¶
func (u *BillingInvoiceItemUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingInvoiceItemUpsertOne) ID ¶
func (u *BillingInvoiceItemUpsertOne) ID(ctx context.Context) (id string, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*BillingInvoiceItemUpsertOne) IDX ¶
func (u *BillingInvoiceItemUpsertOne) IDX(ctx context.Context) string
IDX is like ID, but panics if an error occurs.
func (*BillingInvoiceItemUpsertOne) Ignore ¶
func (u *BillingInvoiceItemUpsertOne) Ignore() *BillingInvoiceItemUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.BillingInvoiceItem.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*BillingInvoiceItemUpsertOne) SetDeletedAt ¶
func (u *BillingInvoiceItemUpsertOne) SetDeletedAt(v time.Time) *BillingInvoiceItemUpsertOne
SetDeletedAt sets the "deleted_at" field.
func (*BillingInvoiceItemUpsertOne) SetInvoiceAt ¶
func (u *BillingInvoiceItemUpsertOne) SetInvoiceAt(v time.Time) *BillingInvoiceItemUpsertOne
SetInvoiceAt sets the "invoice_at" field.
func (*BillingInvoiceItemUpsertOne) SetInvoiceID ¶
func (u *BillingInvoiceItemUpsertOne) SetInvoiceID(v string) *BillingInvoiceItemUpsertOne
SetInvoiceID sets the "invoice_id" field.
func (*BillingInvoiceItemUpsertOne) SetMetadata ¶
func (u *BillingInvoiceItemUpsertOne) SetMetadata(v map[string]string) *BillingInvoiceItemUpsertOne
SetMetadata sets the "metadata" field.
func (*BillingInvoiceItemUpsertOne) SetName ¶
func (u *BillingInvoiceItemUpsertOne) SetName(v string) *BillingInvoiceItemUpsertOne
SetName sets the "name" field.
func (*BillingInvoiceItemUpsertOne) SetPeriodEnd ¶
func (u *BillingInvoiceItemUpsertOne) SetPeriodEnd(v time.Time) *BillingInvoiceItemUpsertOne
SetPeriodEnd sets the "period_end" field.
func (*BillingInvoiceItemUpsertOne) SetPeriodStart ¶
func (u *BillingInvoiceItemUpsertOne) SetPeriodStart(v time.Time) *BillingInvoiceItemUpsertOne
SetPeriodStart sets the "period_start" field.
func (*BillingInvoiceItemUpsertOne) SetQuantity ¶
func (u *BillingInvoiceItemUpsertOne) SetQuantity(v alpacadecimal.Decimal) *BillingInvoiceItemUpsertOne
SetQuantity sets the "quantity" field.
func (*BillingInvoiceItemUpsertOne) SetTaxCodeOverride ¶
func (u *BillingInvoiceItemUpsertOne) SetTaxCodeOverride(v billing.TaxOverrides) *BillingInvoiceItemUpsertOne
SetTaxCodeOverride sets the "tax_code_override" field.
func (*BillingInvoiceItemUpsertOne) SetType ¶
func (u *BillingInvoiceItemUpsertOne) SetType(v billing.InvoiceItemType) *BillingInvoiceItemUpsertOne
SetType sets the "type" field.
func (*BillingInvoiceItemUpsertOne) SetUnitPrice ¶
func (u *BillingInvoiceItemUpsertOne) SetUnitPrice(v alpacadecimal.Decimal) *BillingInvoiceItemUpsertOne
SetUnitPrice sets the "unit_price" field.
func (*BillingInvoiceItemUpsertOne) SetUpdatedAt ¶
func (u *BillingInvoiceItemUpsertOne) SetUpdatedAt(v time.Time) *BillingInvoiceItemUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*BillingInvoiceItemUpsertOne) Update ¶
func (u *BillingInvoiceItemUpsertOne) Update(set func(*BillingInvoiceItemUpsert)) *BillingInvoiceItemUpsertOne
Update allows overriding fields `UPDATE` values. See the BillingInvoiceItemCreate.OnConflict documentation for more info.
func (*BillingInvoiceItemUpsertOne) UpdateDeletedAt ¶
func (u *BillingInvoiceItemUpsertOne) UpdateDeletedAt() *BillingInvoiceItemUpsertOne
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*BillingInvoiceItemUpsertOne) UpdateInvoiceAt ¶
func (u *BillingInvoiceItemUpsertOne) UpdateInvoiceAt() *BillingInvoiceItemUpsertOne
UpdateInvoiceAt sets the "invoice_at" field to the value that was provided on create.
func (*BillingInvoiceItemUpsertOne) UpdateInvoiceID ¶
func (u *BillingInvoiceItemUpsertOne) UpdateInvoiceID() *BillingInvoiceItemUpsertOne
UpdateInvoiceID sets the "invoice_id" field to the value that was provided on create.
func (*BillingInvoiceItemUpsertOne) UpdateMetadata ¶
func (u *BillingInvoiceItemUpsertOne) UpdateMetadata() *BillingInvoiceItemUpsertOne
UpdateMetadata sets the "metadata" field to the value that was provided on create.
func (*BillingInvoiceItemUpsertOne) UpdateName ¶
func (u *BillingInvoiceItemUpsertOne) UpdateName() *BillingInvoiceItemUpsertOne
UpdateName sets the "name" field to the value that was provided on create.
func (*BillingInvoiceItemUpsertOne) UpdateNewValues ¶
func (u *BillingInvoiceItemUpsertOne) UpdateNewValues() *BillingInvoiceItemUpsertOne
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.BillingInvoiceItem.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(billinginvoiceitem.FieldID)
}),
).
Exec(ctx)
func (*BillingInvoiceItemUpsertOne) UpdatePeriodEnd ¶
func (u *BillingInvoiceItemUpsertOne) UpdatePeriodEnd() *BillingInvoiceItemUpsertOne
UpdatePeriodEnd sets the "period_end" field to the value that was provided on create.
func (*BillingInvoiceItemUpsertOne) UpdatePeriodStart ¶
func (u *BillingInvoiceItemUpsertOne) UpdatePeriodStart() *BillingInvoiceItemUpsertOne
UpdatePeriodStart sets the "period_start" field to the value that was provided on create.
func (*BillingInvoiceItemUpsertOne) UpdateQuantity ¶
func (u *BillingInvoiceItemUpsertOne) UpdateQuantity() *BillingInvoiceItemUpsertOne
UpdateQuantity sets the "quantity" field to the value that was provided on create.
func (*BillingInvoiceItemUpsertOne) UpdateTaxCodeOverride ¶
func (u *BillingInvoiceItemUpsertOne) UpdateTaxCodeOverride() *BillingInvoiceItemUpsertOne
UpdateTaxCodeOverride sets the "tax_code_override" field to the value that was provided on create.
func (*BillingInvoiceItemUpsertOne) UpdateType ¶
func (u *BillingInvoiceItemUpsertOne) UpdateType() *BillingInvoiceItemUpsertOne
UpdateType sets the "type" field to the value that was provided on create.
func (*BillingInvoiceItemUpsertOne) UpdateUnitPrice ¶
func (u *BillingInvoiceItemUpsertOne) UpdateUnitPrice() *BillingInvoiceItemUpsertOne
UpdateUnitPrice sets the "unit_price" field to the value that was provided on create.
func (*BillingInvoiceItemUpsertOne) UpdateUpdatedAt ¶
func (u *BillingInvoiceItemUpsertOne) UpdateUpdatedAt() *BillingInvoiceItemUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type BillingInvoiceItems ¶
type BillingInvoiceItems []*BillingInvoiceItem
BillingInvoiceItems is a parsable slice of BillingInvoiceItem.
type BillingInvoiceMutation ¶
type BillingInvoiceMutation struct {
// contains filtered or unexported fields
}
BillingInvoiceMutation represents an operation that mutates the BillingInvoice nodes in the graph.
func (*BillingInvoiceMutation) AddBillingInvoiceItemIDs ¶
func (m *BillingInvoiceMutation) AddBillingInvoiceItemIDs(ids ...string)
AddBillingInvoiceItemIDs adds the "billing_invoice_items" edge to the BillingInvoiceItem entity by ids.
func (*BillingInvoiceMutation) AddField ¶
func (m *BillingInvoiceMutation) 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 (*BillingInvoiceMutation) AddedEdges ¶
func (m *BillingInvoiceMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*BillingInvoiceMutation) AddedField ¶
func (m *BillingInvoiceMutation) 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 (*BillingInvoiceMutation) AddedFields ¶
func (m *BillingInvoiceMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*BillingInvoiceMutation) AddedIDs ¶
func (m *BillingInvoiceMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*BillingInvoiceMutation) BillingInvoiceItemsCleared ¶
func (m *BillingInvoiceMutation) BillingInvoiceItemsCleared() bool
BillingInvoiceItemsCleared reports if the "billing_invoice_items" edge to the BillingInvoiceItem entity was cleared.
func (*BillingInvoiceMutation) BillingInvoiceItemsIDs ¶
func (m *BillingInvoiceMutation) BillingInvoiceItemsIDs() (ids []string)
BillingInvoiceItemsIDs returns the "billing_invoice_items" edge IDs in the mutation.
func (*BillingInvoiceMutation) BillingProfileCleared ¶
func (m *BillingInvoiceMutation) BillingProfileCleared() bool
BillingProfileCleared reports if the "billing_profile" edge to the BillingProfile entity was cleared.
func (*BillingInvoiceMutation) BillingProfileID ¶
func (m *BillingInvoiceMutation) BillingProfileID() (r string, exists bool)
BillingProfileID returns the value of the "billing_profile_id" field in the mutation.
func (*BillingInvoiceMutation) BillingProfileIDs ¶
func (m *BillingInvoiceMutation) BillingProfileIDs() (ids []string)
BillingProfileIDs returns the "billing_profile" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use BillingProfileID instead. It exists only for internal usage by the builders.
func (*BillingInvoiceMutation) BillingWorkflowConfigCleared ¶
func (m *BillingInvoiceMutation) BillingWorkflowConfigCleared() bool
BillingWorkflowConfigCleared reports if the "billing_workflow_config" edge to the BillingWorkflowConfig entity was cleared.
func (*BillingInvoiceMutation) BillingWorkflowConfigID ¶
func (m *BillingInvoiceMutation) BillingWorkflowConfigID() (id string, exists bool)
BillingWorkflowConfigID returns the "billing_workflow_config" edge ID in the mutation.
func (*BillingInvoiceMutation) BillingWorkflowConfigIDs ¶
func (m *BillingInvoiceMutation) BillingWorkflowConfigIDs() (ids []string)
BillingWorkflowConfigIDs returns the "billing_workflow_config" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use BillingWorkflowConfigID instead. It exists only for internal usage by the builders.
func (*BillingInvoiceMutation) ClearBillingInvoiceItems ¶
func (m *BillingInvoiceMutation) ClearBillingInvoiceItems()
ClearBillingInvoiceItems clears the "billing_invoice_items" edge to the BillingInvoiceItem entity.
func (*BillingInvoiceMutation) ClearBillingProfile ¶
func (m *BillingInvoiceMutation) ClearBillingProfile()
ClearBillingProfile clears the "billing_profile" edge to the BillingProfile entity.
func (*BillingInvoiceMutation) ClearBillingWorkflowConfig ¶
func (m *BillingInvoiceMutation) ClearBillingWorkflowConfig()
ClearBillingWorkflowConfig clears the "billing_workflow_config" edge to the BillingWorkflowConfig entity.
func (*BillingInvoiceMutation) ClearCode ¶
func (m *BillingInvoiceMutation) ClearCode()
ClearCode clears the value of the "code" field.
func (*BillingInvoiceMutation) ClearDeletedAt ¶
func (m *BillingInvoiceMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BillingInvoiceMutation) ClearEdge ¶
func (m *BillingInvoiceMutation) 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 (*BillingInvoiceMutation) ClearField ¶
func (m *BillingInvoiceMutation) 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 (*BillingInvoiceMutation) ClearInvoicingProvider ¶
func (m *BillingInvoiceMutation) ClearInvoicingProvider()
ClearInvoicingProvider clears the value of the "invoicing_provider" field.
func (*BillingInvoiceMutation) ClearMetadata ¶
func (m *BillingInvoiceMutation) ClearMetadata()
ClearMetadata clears the value of the "metadata" field.
func (*BillingInvoiceMutation) ClearPaymentProvider ¶
func (m *BillingInvoiceMutation) ClearPaymentProvider()
ClearPaymentProvider clears the value of the "payment_provider" field.
func (*BillingInvoiceMutation) ClearSeries ¶
func (m *BillingInvoiceMutation) ClearSeries()
ClearSeries clears the value of the "series" field.
func (*BillingInvoiceMutation) ClearTaxProvider ¶
func (m *BillingInvoiceMutation) ClearTaxProvider()
ClearTaxProvider clears the value of the "tax_provider" field.
func (*BillingInvoiceMutation) ClearVoidedAt ¶
func (m *BillingInvoiceMutation) ClearVoidedAt()
ClearVoidedAt clears the value of the "voided_at" field.
func (*BillingInvoiceMutation) ClearedEdges ¶
func (m *BillingInvoiceMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*BillingInvoiceMutation) ClearedFields ¶
func (m *BillingInvoiceMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (BillingInvoiceMutation) Client ¶
func (m BillingInvoiceMutation) 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 (*BillingInvoiceMutation) Code ¶
func (m *BillingInvoiceMutation) Code() (r string, exists bool)
Code returns the value of the "code" field in the mutation.
func (*BillingInvoiceMutation) CodeCleared ¶
func (m *BillingInvoiceMutation) CodeCleared() bool
CodeCleared returns if the "code" field was cleared in this mutation.
func (*BillingInvoiceMutation) CreatedAt ¶
func (m *BillingInvoiceMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*BillingInvoiceMutation) Currency ¶
func (m *BillingInvoiceMutation) Currency() (r string, exists bool)
Currency returns the value of the "currency" field in the mutation.
func (*BillingInvoiceMutation) CustomerID ¶
func (m *BillingInvoiceMutation) CustomerID() (r string, exists bool)
CustomerID returns the value of the "customer_id" field in the mutation.
func (*BillingInvoiceMutation) DeletedAt ¶
func (m *BillingInvoiceMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*BillingInvoiceMutation) DeletedAtCleared ¶
func (m *BillingInvoiceMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*BillingInvoiceMutation) DueDate ¶
func (m *BillingInvoiceMutation) DueDate() (r time.Time, exists bool)
DueDate returns the value of the "due_date" field in the mutation.
func (*BillingInvoiceMutation) EdgeCleared ¶
func (m *BillingInvoiceMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*BillingInvoiceMutation) ExecContext ¶
func (c *BillingInvoiceMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingInvoiceMutation) Field ¶
func (m *BillingInvoiceMutation) 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 (*BillingInvoiceMutation) FieldCleared ¶
func (m *BillingInvoiceMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*BillingInvoiceMutation) Fields ¶
func (m *BillingInvoiceMutation) 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 (*BillingInvoiceMutation) ID ¶
func (m *BillingInvoiceMutation) ID() (id string, 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 (*BillingInvoiceMutation) IDs ¶
func (m *BillingInvoiceMutation) IDs(ctx context.Context) ([]string, error)
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 (*BillingInvoiceMutation) InvoicingProvider ¶
func (m *BillingInvoiceMutation) InvoicingProvider() (r provider.InvoicingProvider, exists bool)
InvoicingProvider returns the value of the "invoicing_provider" field in the mutation.
func (*BillingInvoiceMutation) InvoicingProviderCleared ¶
func (m *BillingInvoiceMutation) InvoicingProviderCleared() bool
InvoicingProviderCleared returns if the "invoicing_provider" field was cleared in this mutation.
func (*BillingInvoiceMutation) Metadata ¶
func (m *BillingInvoiceMutation) Metadata() (r map[string]string, exists bool)
Metadata returns the value of the "metadata" field in the mutation.
func (*BillingInvoiceMutation) MetadataCleared ¶
func (m *BillingInvoiceMutation) MetadataCleared() bool
MetadataCleared returns if the "metadata" field was cleared in this mutation.
func (*BillingInvoiceMutation) Namespace ¶
func (m *BillingInvoiceMutation) Namespace() (r string, exists bool)
Namespace returns the value of the "namespace" field in the mutation.
func (*BillingInvoiceMutation) OldBillingProfileID ¶
func (m *BillingInvoiceMutation) OldBillingProfileID(ctx context.Context) (v string, err error)
OldBillingProfileID returns the old "billing_profile_id" field's value of the BillingInvoice entity. If the BillingInvoice 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 (*BillingInvoiceMutation) OldCode ¶
func (m *BillingInvoiceMutation) OldCode(ctx context.Context) (v *string, err error)
OldCode returns the old "code" field's value of the BillingInvoice entity. If the BillingInvoice 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 (*BillingInvoiceMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the BillingInvoice entity. If the BillingInvoice 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 (*BillingInvoiceMutation) OldCurrency ¶
func (m *BillingInvoiceMutation) OldCurrency(ctx context.Context) (v string, err error)
OldCurrency returns the old "currency" field's value of the BillingInvoice entity. If the BillingInvoice 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 (*BillingInvoiceMutation) OldCustomerID ¶
func (m *BillingInvoiceMutation) OldCustomerID(ctx context.Context) (v string, err error)
OldCustomerID returns the old "customer_id" field's value of the BillingInvoice entity. If the BillingInvoice 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 (*BillingInvoiceMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the BillingInvoice entity. If the BillingInvoice 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 (*BillingInvoiceMutation) OldDueDate ¶
OldDueDate returns the old "due_date" field's value of the BillingInvoice entity. If the BillingInvoice 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 (*BillingInvoiceMutation) OldField ¶
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 (*BillingInvoiceMutation) OldInvoicingProvider ¶
func (m *BillingInvoiceMutation) OldInvoicingProvider(ctx context.Context) (v *provider.InvoicingProvider, err error)
OldInvoicingProvider returns the old "invoicing_provider" field's value of the BillingInvoice entity. If the BillingInvoice 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 (*BillingInvoiceMutation) OldMetadata ¶
OldMetadata returns the old "metadata" field's value of the BillingInvoice entity. If the BillingInvoice 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 (*BillingInvoiceMutation) OldNamespace ¶
func (m *BillingInvoiceMutation) OldNamespace(ctx context.Context) (v string, err error)
OldNamespace returns the old "namespace" field's value of the BillingInvoice entity. If the BillingInvoice 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 (*BillingInvoiceMutation) OldPaymentProvider ¶
func (m *BillingInvoiceMutation) OldPaymentProvider(ctx context.Context) (v *provider.PaymentProvider, err error)
OldPaymentProvider returns the old "payment_provider" field's value of the BillingInvoice entity. If the BillingInvoice 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 (*BillingInvoiceMutation) OldPeriodEnd ¶
OldPeriodEnd returns the old "period_end" field's value of the BillingInvoice entity. If the BillingInvoice 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 (*BillingInvoiceMutation) OldPeriodStart ¶
OldPeriodStart returns the old "period_start" field's value of the BillingInvoice entity. If the BillingInvoice 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 (*BillingInvoiceMutation) OldSeries ¶
func (m *BillingInvoiceMutation) OldSeries(ctx context.Context) (v *string, err error)
OldSeries returns the old "series" field's value of the BillingInvoice entity. If the BillingInvoice 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 (*BillingInvoiceMutation) OldStatus ¶
func (m *BillingInvoiceMutation) OldStatus(ctx context.Context) (v billing.InvoiceStatus, err error)
OldStatus returns the old "status" field's value of the BillingInvoice entity. If the BillingInvoice 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 (*BillingInvoiceMutation) OldTaxProvider ¶
func (m *BillingInvoiceMutation) OldTaxProvider(ctx context.Context) (v *provider.TaxProvider, err error)
OldTaxProvider returns the old "tax_provider" field's value of the BillingInvoice entity. If the BillingInvoice 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 (*BillingInvoiceMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the BillingInvoice entity. If the BillingInvoice 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 (*BillingInvoiceMutation) OldVoidedAt ¶
OldVoidedAt returns the old "voided_at" field's value of the BillingInvoice entity. If the BillingInvoice 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 (*BillingInvoiceMutation) OldWorkflowConfigID ¶
func (m *BillingInvoiceMutation) OldWorkflowConfigID(ctx context.Context) (v string, err error)
OldWorkflowConfigID returns the old "workflow_config_id" field's value of the BillingInvoice entity. If the BillingInvoice 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 (*BillingInvoiceMutation) Op ¶
func (m *BillingInvoiceMutation) Op() Op
Op returns the operation name.
func (*BillingInvoiceMutation) PaymentProvider ¶
func (m *BillingInvoiceMutation) PaymentProvider() (r provider.PaymentProvider, exists bool)
PaymentProvider returns the value of the "payment_provider" field in the mutation.
func (*BillingInvoiceMutation) PaymentProviderCleared ¶
func (m *BillingInvoiceMutation) PaymentProviderCleared() bool
PaymentProviderCleared returns if the "payment_provider" field was cleared in this mutation.
func (*BillingInvoiceMutation) PeriodEnd ¶
func (m *BillingInvoiceMutation) PeriodEnd() (r time.Time, exists bool)
PeriodEnd returns the value of the "period_end" field in the mutation.
func (*BillingInvoiceMutation) PeriodStart ¶
func (m *BillingInvoiceMutation) PeriodStart() (r time.Time, exists bool)
PeriodStart returns the value of the "period_start" field in the mutation.
func (*BillingInvoiceMutation) QueryContext ¶
func (c *BillingInvoiceMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingInvoiceMutation) RemoveBillingInvoiceItemIDs ¶
func (m *BillingInvoiceMutation) RemoveBillingInvoiceItemIDs(ids ...string)
RemoveBillingInvoiceItemIDs removes the "billing_invoice_items" edge to the BillingInvoiceItem entity by IDs.
func (*BillingInvoiceMutation) RemovedBillingInvoiceItemsIDs ¶
func (m *BillingInvoiceMutation) RemovedBillingInvoiceItemsIDs() (ids []string)
RemovedBillingInvoiceItems returns the removed IDs of the "billing_invoice_items" edge to the BillingInvoiceItem entity.
func (*BillingInvoiceMutation) RemovedEdges ¶
func (m *BillingInvoiceMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*BillingInvoiceMutation) RemovedIDs ¶
func (m *BillingInvoiceMutation) 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 (*BillingInvoiceMutation) ResetBillingInvoiceItems ¶
func (m *BillingInvoiceMutation) ResetBillingInvoiceItems()
ResetBillingInvoiceItems resets all changes to the "billing_invoice_items" edge.
func (*BillingInvoiceMutation) ResetBillingProfile ¶
func (m *BillingInvoiceMutation) ResetBillingProfile()
ResetBillingProfile resets all changes to the "billing_profile" edge.
func (*BillingInvoiceMutation) ResetBillingProfileID ¶
func (m *BillingInvoiceMutation) ResetBillingProfileID()
ResetBillingProfileID resets all changes to the "billing_profile_id" field.
func (*BillingInvoiceMutation) ResetBillingWorkflowConfig ¶
func (m *BillingInvoiceMutation) ResetBillingWorkflowConfig()
ResetBillingWorkflowConfig resets all changes to the "billing_workflow_config" edge.
func (*BillingInvoiceMutation) ResetCode ¶
func (m *BillingInvoiceMutation) ResetCode()
ResetCode resets all changes to the "code" field.
func (*BillingInvoiceMutation) ResetCreatedAt ¶
func (m *BillingInvoiceMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*BillingInvoiceMutation) ResetCurrency ¶
func (m *BillingInvoiceMutation) ResetCurrency()
ResetCurrency resets all changes to the "currency" field.
func (*BillingInvoiceMutation) ResetCustomerID ¶
func (m *BillingInvoiceMutation) ResetCustomerID()
ResetCustomerID resets all changes to the "customer_id" field.
func (*BillingInvoiceMutation) ResetDeletedAt ¶
func (m *BillingInvoiceMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*BillingInvoiceMutation) ResetDueDate ¶
func (m *BillingInvoiceMutation) ResetDueDate()
ResetDueDate resets all changes to the "due_date" field.
func (*BillingInvoiceMutation) ResetEdge ¶
func (m *BillingInvoiceMutation) 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 (*BillingInvoiceMutation) ResetField ¶
func (m *BillingInvoiceMutation) 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 (*BillingInvoiceMutation) ResetInvoicingProvider ¶
func (m *BillingInvoiceMutation) ResetInvoicingProvider()
ResetInvoicingProvider resets all changes to the "invoicing_provider" field.
func (*BillingInvoiceMutation) ResetMetadata ¶
func (m *BillingInvoiceMutation) ResetMetadata()
ResetMetadata resets all changes to the "metadata" field.
func (*BillingInvoiceMutation) ResetNamespace ¶
func (m *BillingInvoiceMutation) ResetNamespace()
ResetNamespace resets all changes to the "namespace" field.
func (*BillingInvoiceMutation) ResetPaymentProvider ¶
func (m *BillingInvoiceMutation) ResetPaymentProvider()
ResetPaymentProvider resets all changes to the "payment_provider" field.
func (*BillingInvoiceMutation) ResetPeriodEnd ¶
func (m *BillingInvoiceMutation) ResetPeriodEnd()
ResetPeriodEnd resets all changes to the "period_end" field.
func (*BillingInvoiceMutation) ResetPeriodStart ¶
func (m *BillingInvoiceMutation) ResetPeriodStart()
ResetPeriodStart resets all changes to the "period_start" field.
func (*BillingInvoiceMutation) ResetSeries ¶
func (m *BillingInvoiceMutation) ResetSeries()
ResetSeries resets all changes to the "series" field.
func (*BillingInvoiceMutation) ResetStatus ¶
func (m *BillingInvoiceMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*BillingInvoiceMutation) ResetTaxProvider ¶
func (m *BillingInvoiceMutation) ResetTaxProvider()
ResetTaxProvider resets all changes to the "tax_provider" field.
func (*BillingInvoiceMutation) ResetUpdatedAt ¶
func (m *BillingInvoiceMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*BillingInvoiceMutation) ResetVoidedAt ¶
func (m *BillingInvoiceMutation) ResetVoidedAt()
ResetVoidedAt resets all changes to the "voided_at" field.
func (*BillingInvoiceMutation) ResetWorkflowConfigID ¶
func (m *BillingInvoiceMutation) ResetWorkflowConfigID()
ResetWorkflowConfigID resets all changes to the "workflow_config_id" field.
func (*BillingInvoiceMutation) Series ¶
func (m *BillingInvoiceMutation) Series() (r string, exists bool)
Series returns the value of the "series" field in the mutation.
func (*BillingInvoiceMutation) SeriesCleared ¶
func (m *BillingInvoiceMutation) SeriesCleared() bool
SeriesCleared returns if the "series" field was cleared in this mutation.
func (*BillingInvoiceMutation) SetBillingProfileID ¶
func (m *BillingInvoiceMutation) SetBillingProfileID(s string)
SetBillingProfileID sets the "billing_profile_id" field.
func (*BillingInvoiceMutation) SetBillingWorkflowConfigID ¶
func (m *BillingInvoiceMutation) SetBillingWorkflowConfigID(id string)
SetBillingWorkflowConfigID sets the "billing_workflow_config" edge to the BillingWorkflowConfig entity by id.
func (*BillingInvoiceMutation) SetCode ¶
func (m *BillingInvoiceMutation) SetCode(s string)
SetCode sets the "code" field.
func (*BillingInvoiceMutation) SetCreatedAt ¶
func (m *BillingInvoiceMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*BillingInvoiceMutation) SetCurrency ¶
func (m *BillingInvoiceMutation) SetCurrency(s string)
SetCurrency sets the "currency" field.
func (*BillingInvoiceMutation) SetCustomerID ¶
func (m *BillingInvoiceMutation) SetCustomerID(s string)
SetCustomerID sets the "customer_id" field.
func (*BillingInvoiceMutation) SetDeletedAt ¶
func (m *BillingInvoiceMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*BillingInvoiceMutation) SetDueDate ¶
func (m *BillingInvoiceMutation) SetDueDate(t time.Time)
SetDueDate sets the "due_date" field.
func (*BillingInvoiceMutation) SetField ¶
func (m *BillingInvoiceMutation) 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 (*BillingInvoiceMutation) SetID ¶
func (m *BillingInvoiceMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of BillingInvoice entities.
func (*BillingInvoiceMutation) SetInvoicingProvider ¶
func (m *BillingInvoiceMutation) SetInvoicingProvider(pp provider.InvoicingProvider)
SetInvoicingProvider sets the "invoicing_provider" field.
func (*BillingInvoiceMutation) SetMetadata ¶
func (m *BillingInvoiceMutation) SetMetadata(value map[string]string)
SetMetadata sets the "metadata" field.
func (*BillingInvoiceMutation) SetNamespace ¶
func (m *BillingInvoiceMutation) SetNamespace(s string)
SetNamespace sets the "namespace" field.
func (*BillingInvoiceMutation) SetOp ¶
func (m *BillingInvoiceMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*BillingInvoiceMutation) SetPaymentProvider ¶
func (m *BillingInvoiceMutation) SetPaymentProvider(pp provider.PaymentProvider)
SetPaymentProvider sets the "payment_provider" field.
func (*BillingInvoiceMutation) SetPeriodEnd ¶
func (m *BillingInvoiceMutation) SetPeriodEnd(t time.Time)
SetPeriodEnd sets the "period_end" field.
func (*BillingInvoiceMutation) SetPeriodStart ¶
func (m *BillingInvoiceMutation) SetPeriodStart(t time.Time)
SetPeriodStart sets the "period_start" field.
func (*BillingInvoiceMutation) SetSeries ¶
func (m *BillingInvoiceMutation) SetSeries(s string)
SetSeries sets the "series" field.
func (*BillingInvoiceMutation) SetStatus ¶
func (m *BillingInvoiceMutation) SetStatus(bs billing.InvoiceStatus)
SetStatus sets the "status" field.
func (*BillingInvoiceMutation) SetTaxProvider ¶
func (m *BillingInvoiceMutation) SetTaxProvider(pp provider.TaxProvider)
SetTaxProvider sets the "tax_provider" field.
func (*BillingInvoiceMutation) SetUpdatedAt ¶
func (m *BillingInvoiceMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*BillingInvoiceMutation) SetVoidedAt ¶
func (m *BillingInvoiceMutation) SetVoidedAt(t time.Time)
SetVoidedAt sets the "voided_at" field.
func (*BillingInvoiceMutation) SetWorkflowConfigID ¶
func (m *BillingInvoiceMutation) SetWorkflowConfigID(s string)
SetWorkflowConfigID sets the "workflow_config_id" field.
func (*BillingInvoiceMutation) Status ¶
func (m *BillingInvoiceMutation) Status() (r billing.InvoiceStatus, exists bool)
Status returns the value of the "status" field in the mutation.
func (*BillingInvoiceMutation) TaxProvider ¶
func (m *BillingInvoiceMutation) TaxProvider() (r provider.TaxProvider, exists bool)
TaxProvider returns the value of the "tax_provider" field in the mutation.
func (*BillingInvoiceMutation) TaxProviderCleared ¶
func (m *BillingInvoiceMutation) TaxProviderCleared() bool
TaxProviderCleared returns if the "tax_provider" field was cleared in this mutation.
func (BillingInvoiceMutation) Tx ¶
func (m BillingInvoiceMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*BillingInvoiceMutation) Type ¶
func (m *BillingInvoiceMutation) Type() string
Type returns the node type of this mutation (BillingInvoice).
func (*BillingInvoiceMutation) UpdatedAt ¶
func (m *BillingInvoiceMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*BillingInvoiceMutation) VoidedAt ¶
func (m *BillingInvoiceMutation) VoidedAt() (r time.Time, exists bool)
VoidedAt returns the value of the "voided_at" field in the mutation.
func (*BillingInvoiceMutation) VoidedAtCleared ¶
func (m *BillingInvoiceMutation) VoidedAtCleared() bool
VoidedAtCleared returns if the "voided_at" field was cleared in this mutation.
func (*BillingInvoiceMutation) Where ¶
func (m *BillingInvoiceMutation) Where(ps ...predicate.BillingInvoice)
Where appends a list predicates to the BillingInvoiceMutation builder.
func (*BillingInvoiceMutation) WhereP ¶
func (m *BillingInvoiceMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the BillingInvoiceMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
func (*BillingInvoiceMutation) WorkflowConfigID ¶
func (m *BillingInvoiceMutation) WorkflowConfigID() (r string, exists bool)
WorkflowConfigID returns the value of the "workflow_config_id" field in the mutation.
type BillingInvoiceQuery ¶
type BillingInvoiceQuery struct {
// contains filtered or unexported fields
}
BillingInvoiceQuery is the builder for querying BillingInvoice entities.
func (*BillingInvoiceQuery) Aggregate ¶
func (biq *BillingInvoiceQuery) Aggregate(fns ...AggregateFunc) *BillingInvoiceSelect
Aggregate returns a BillingInvoiceSelect configured with the given aggregations.
func (*BillingInvoiceQuery) All ¶
func (biq *BillingInvoiceQuery) All(ctx context.Context) ([]*BillingInvoice, error)
All executes the query and returns a list of BillingInvoices.
func (*BillingInvoiceQuery) AllX ¶
func (biq *BillingInvoiceQuery) AllX(ctx context.Context) []*BillingInvoice
AllX is like All, but panics if an error occurs.
func (*BillingInvoiceQuery) Clone ¶
func (biq *BillingInvoiceQuery) Clone() *BillingInvoiceQuery
Clone returns a duplicate of the BillingInvoiceQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*BillingInvoiceQuery) Count ¶
func (biq *BillingInvoiceQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*BillingInvoiceQuery) CountX ¶
func (biq *BillingInvoiceQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*BillingInvoiceQuery) ExecContext ¶
func (c *BillingInvoiceQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingInvoiceQuery) Exist ¶
func (biq *BillingInvoiceQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*BillingInvoiceQuery) ExistX ¶
func (biq *BillingInvoiceQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*BillingInvoiceQuery) First ¶
func (biq *BillingInvoiceQuery) First(ctx context.Context) (*BillingInvoice, error)
First returns the first BillingInvoice entity from the query. Returns a *NotFoundError when no BillingInvoice was found.
func (*BillingInvoiceQuery) FirstID ¶
func (biq *BillingInvoiceQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first BillingInvoice ID from the query. Returns a *NotFoundError when no BillingInvoice ID was found.
func (*BillingInvoiceQuery) FirstIDX ¶
func (biq *BillingInvoiceQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*BillingInvoiceQuery) FirstX ¶
func (biq *BillingInvoiceQuery) FirstX(ctx context.Context) *BillingInvoice
FirstX is like First, but panics if an error occurs.
func (*BillingInvoiceQuery) ForShare ¶
func (biq *BillingInvoiceQuery) ForShare(opts ...sql.LockOption) *BillingInvoiceQuery
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 (*BillingInvoiceQuery) ForUpdate ¶
func (biq *BillingInvoiceQuery) ForUpdate(opts ...sql.LockOption) *BillingInvoiceQuery
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 (*BillingInvoiceQuery) GroupBy ¶
func (biq *BillingInvoiceQuery) GroupBy(field string, fields ...string) *BillingInvoiceGroupBy
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 {
Namespace string `json:"namespace,omitempty"`
Count int `json:"count,omitempty"`
}
client.BillingInvoice.Query().
GroupBy(billinginvoice.FieldNamespace).
Aggregate(db.Count()).
Scan(ctx, &v)
func (*BillingInvoiceQuery) IDs ¶
func (biq *BillingInvoiceQuery) IDs(ctx context.Context) (ids []string, err error)
IDs executes the query and returns a list of BillingInvoice IDs.
func (*BillingInvoiceQuery) IDsX ¶
func (biq *BillingInvoiceQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*BillingInvoiceQuery) Limit ¶
func (biq *BillingInvoiceQuery) Limit(limit int) *BillingInvoiceQuery
Limit the number of records to be returned by this query.
func (*BillingInvoiceQuery) Offset ¶
func (biq *BillingInvoiceQuery) Offset(offset int) *BillingInvoiceQuery
Offset to start from.
func (*BillingInvoiceQuery) Only ¶
func (biq *BillingInvoiceQuery) Only(ctx context.Context) (*BillingInvoice, error)
Only returns a single BillingInvoice entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one BillingInvoice entity is found. Returns a *NotFoundError when no BillingInvoice entities are found.
func (*BillingInvoiceQuery) OnlyID ¶
func (biq *BillingInvoiceQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only BillingInvoice ID in the query. Returns a *NotSingularError when more than one BillingInvoice ID is found. Returns a *NotFoundError when no entities are found.
func (*BillingInvoiceQuery) OnlyIDX ¶
func (biq *BillingInvoiceQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*BillingInvoiceQuery) OnlyX ¶
func (biq *BillingInvoiceQuery) OnlyX(ctx context.Context) *BillingInvoice
OnlyX is like Only, but panics if an error occurs.
func (*BillingInvoiceQuery) Order ¶
func (biq *BillingInvoiceQuery) Order(o ...billinginvoice.OrderOption) *BillingInvoiceQuery
Order specifies how the records should be ordered.
func (*BillingInvoiceQuery) Paginate ¶
func (bi *BillingInvoiceQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*BillingInvoice], error)
Paginate runs the query and returns a paginated response. If page is its 0 value then it will return all the items and populate the response page accordingly.
func (*BillingInvoiceQuery) QueryBillingInvoiceItems ¶
func (biq *BillingInvoiceQuery) QueryBillingInvoiceItems() *BillingInvoiceItemQuery
QueryBillingInvoiceItems chains the current query on the "billing_invoice_items" edge.
func (*BillingInvoiceQuery) QueryBillingProfile ¶
func (biq *BillingInvoiceQuery) QueryBillingProfile() *BillingProfileQuery
QueryBillingProfile chains the current query on the "billing_profile" edge.
func (*BillingInvoiceQuery) QueryBillingWorkflowConfig ¶
func (biq *BillingInvoiceQuery) QueryBillingWorkflowConfig() *BillingWorkflowConfigQuery
QueryBillingWorkflowConfig chains the current query on the "billing_workflow_config" edge.
func (*BillingInvoiceQuery) QueryContext ¶
func (c *BillingInvoiceQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingInvoiceQuery) Select ¶
func (biq *BillingInvoiceQuery) Select(fields ...string) *BillingInvoiceSelect
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 {
Namespace string `json:"namespace,omitempty"`
}
client.BillingInvoice.Query().
Select(billinginvoice.FieldNamespace).
Scan(ctx, &v)
func (*BillingInvoiceQuery) Unique ¶
func (biq *BillingInvoiceQuery) Unique(unique bool) *BillingInvoiceQuery
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 (*BillingInvoiceQuery) Where ¶
func (biq *BillingInvoiceQuery) Where(ps ...predicate.BillingInvoice) *BillingInvoiceQuery
Where adds a new predicate for the BillingInvoiceQuery builder.
func (*BillingInvoiceQuery) WithBillingInvoiceItems ¶
func (biq *BillingInvoiceQuery) WithBillingInvoiceItems(opts ...func(*BillingInvoiceItemQuery)) *BillingInvoiceQuery
WithBillingInvoiceItems tells the query-builder to eager-load the nodes that are connected to the "billing_invoice_items" edge. The optional arguments are used to configure the query builder of the edge.
func (*BillingInvoiceQuery) WithBillingProfile ¶
func (biq *BillingInvoiceQuery) WithBillingProfile(opts ...func(*BillingProfileQuery)) *BillingInvoiceQuery
WithBillingProfile tells the query-builder to eager-load the nodes that are connected to the "billing_profile" edge. The optional arguments are used to configure the query builder of the edge.
func (*BillingInvoiceQuery) WithBillingWorkflowConfig ¶
func (biq *BillingInvoiceQuery) WithBillingWorkflowConfig(opts ...func(*BillingWorkflowConfigQuery)) *BillingInvoiceQuery
WithBillingWorkflowConfig tells the query-builder to eager-load the nodes that are connected to the "billing_workflow_config" edge. The optional arguments are used to configure the query builder of the edge.
type BillingInvoiceSelect ¶
type BillingInvoiceSelect struct {
*BillingInvoiceQuery
// contains filtered or unexported fields
}
BillingInvoiceSelect is the builder for selecting fields of BillingInvoice entities.
func (*BillingInvoiceSelect) Aggregate ¶
func (bis *BillingInvoiceSelect) Aggregate(fns ...AggregateFunc) *BillingInvoiceSelect
Aggregate adds the given aggregation functions to the selector query.
func (*BillingInvoiceSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*BillingInvoiceSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (BillingInvoiceSelect) ExecContext ¶
func (c BillingInvoiceSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingInvoiceSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*BillingInvoiceSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*BillingInvoiceSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*BillingInvoiceSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (BillingInvoiceSelect) QueryContext ¶
func (c BillingInvoiceSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingInvoiceSelect) Scan ¶
func (bis *BillingInvoiceSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*BillingInvoiceSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type BillingInvoiceUpdate ¶
type BillingInvoiceUpdate struct {
// contains filtered or unexported fields
}
BillingInvoiceUpdate is the builder for updating BillingInvoice entities.
func (*BillingInvoiceUpdate) AddBillingInvoiceItemIDs ¶
func (biu *BillingInvoiceUpdate) AddBillingInvoiceItemIDs(ids ...string) *BillingInvoiceUpdate
AddBillingInvoiceItemIDs adds the "billing_invoice_items" edge to the BillingInvoiceItem entity by IDs.
func (*BillingInvoiceUpdate) AddBillingInvoiceItems ¶
func (biu *BillingInvoiceUpdate) AddBillingInvoiceItems(b ...*BillingInvoiceItem) *BillingInvoiceUpdate
AddBillingInvoiceItems adds the "billing_invoice_items" edges to the BillingInvoiceItem entity.
func (*BillingInvoiceUpdate) ClearBillingInvoiceItems ¶
func (biu *BillingInvoiceUpdate) ClearBillingInvoiceItems() *BillingInvoiceUpdate
ClearBillingInvoiceItems clears all "billing_invoice_items" edges to the BillingInvoiceItem entity.
func (*BillingInvoiceUpdate) ClearBillingWorkflowConfig ¶
func (biu *BillingInvoiceUpdate) ClearBillingWorkflowConfig() *BillingInvoiceUpdate
ClearBillingWorkflowConfig clears the "billing_workflow_config" edge to the BillingWorkflowConfig entity.
func (*BillingInvoiceUpdate) ClearCode ¶
func (biu *BillingInvoiceUpdate) ClearCode() *BillingInvoiceUpdate
ClearCode clears the value of the "code" field.
func (*BillingInvoiceUpdate) ClearDeletedAt ¶
func (biu *BillingInvoiceUpdate) ClearDeletedAt() *BillingInvoiceUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BillingInvoiceUpdate) ClearInvoicingProvider ¶
func (biu *BillingInvoiceUpdate) ClearInvoicingProvider() *BillingInvoiceUpdate
ClearInvoicingProvider clears the value of the "invoicing_provider" field.
func (*BillingInvoiceUpdate) ClearMetadata ¶
func (biu *BillingInvoiceUpdate) ClearMetadata() *BillingInvoiceUpdate
ClearMetadata clears the value of the "metadata" field.
func (*BillingInvoiceUpdate) ClearPaymentProvider ¶
func (biu *BillingInvoiceUpdate) ClearPaymentProvider() *BillingInvoiceUpdate
ClearPaymentProvider clears the value of the "payment_provider" field.
func (*BillingInvoiceUpdate) ClearSeries ¶
func (biu *BillingInvoiceUpdate) ClearSeries() *BillingInvoiceUpdate
ClearSeries clears the value of the "series" field.
func (*BillingInvoiceUpdate) ClearTaxProvider ¶
func (biu *BillingInvoiceUpdate) ClearTaxProvider() *BillingInvoiceUpdate
ClearTaxProvider clears the value of the "tax_provider" field.
func (*BillingInvoiceUpdate) ClearVoidedAt ¶
func (biu *BillingInvoiceUpdate) ClearVoidedAt() *BillingInvoiceUpdate
ClearVoidedAt clears the value of the "voided_at" field.
func (*BillingInvoiceUpdate) Exec ¶
func (biu *BillingInvoiceUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*BillingInvoiceUpdate) ExecContext ¶
func (c *BillingInvoiceUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingInvoiceUpdate) ExecX ¶
func (biu *BillingInvoiceUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingInvoiceUpdate) Mutation ¶
func (biu *BillingInvoiceUpdate) Mutation() *BillingInvoiceMutation
Mutation returns the BillingInvoiceMutation object of the builder.
func (*BillingInvoiceUpdate) QueryContext ¶
func (c *BillingInvoiceUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingInvoiceUpdate) RemoveBillingInvoiceItemIDs ¶
func (biu *BillingInvoiceUpdate) RemoveBillingInvoiceItemIDs(ids ...string) *BillingInvoiceUpdate
RemoveBillingInvoiceItemIDs removes the "billing_invoice_items" edge to BillingInvoiceItem entities by IDs.
func (*BillingInvoiceUpdate) RemoveBillingInvoiceItems ¶
func (biu *BillingInvoiceUpdate) RemoveBillingInvoiceItems(b ...*BillingInvoiceItem) *BillingInvoiceUpdate
RemoveBillingInvoiceItems removes "billing_invoice_items" edges to BillingInvoiceItem entities.
func (*BillingInvoiceUpdate) Save ¶
func (biu *BillingInvoiceUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*BillingInvoiceUpdate) SaveX ¶
func (biu *BillingInvoiceUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*BillingInvoiceUpdate) SetBillingWorkflowConfig ¶
func (biu *BillingInvoiceUpdate) SetBillingWorkflowConfig(b *BillingWorkflowConfig) *BillingInvoiceUpdate
SetBillingWorkflowConfig sets the "billing_workflow_config" edge to the BillingWorkflowConfig entity.
func (*BillingInvoiceUpdate) SetBillingWorkflowConfigID ¶
func (biu *BillingInvoiceUpdate) SetBillingWorkflowConfigID(id string) *BillingInvoiceUpdate
SetBillingWorkflowConfigID sets the "billing_workflow_config" edge to the BillingWorkflowConfig entity by ID.
func (*BillingInvoiceUpdate) SetCode ¶
func (biu *BillingInvoiceUpdate) SetCode(s string) *BillingInvoiceUpdate
SetCode sets the "code" field.
func (*BillingInvoiceUpdate) SetDeletedAt ¶
func (biu *BillingInvoiceUpdate) SetDeletedAt(t time.Time) *BillingInvoiceUpdate
SetDeletedAt sets the "deleted_at" field.
func (*BillingInvoiceUpdate) SetDueDate ¶
func (biu *BillingInvoiceUpdate) SetDueDate(t time.Time) *BillingInvoiceUpdate
SetDueDate sets the "due_date" field.
func (*BillingInvoiceUpdate) SetInvoicingProvider ¶
func (biu *BillingInvoiceUpdate) SetInvoicingProvider(pp provider.InvoicingProvider) *BillingInvoiceUpdate
SetInvoicingProvider sets the "invoicing_provider" field.
func (*BillingInvoiceUpdate) SetMetadata ¶
func (biu *BillingInvoiceUpdate) SetMetadata(m map[string]string) *BillingInvoiceUpdate
SetMetadata sets the "metadata" field.
func (*BillingInvoiceUpdate) SetNillableCode ¶
func (biu *BillingInvoiceUpdate) SetNillableCode(s *string) *BillingInvoiceUpdate
SetNillableCode sets the "code" field if the given value is not nil.
func (*BillingInvoiceUpdate) SetNillableDeletedAt ¶
func (biu *BillingInvoiceUpdate) SetNillableDeletedAt(t *time.Time) *BillingInvoiceUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*BillingInvoiceUpdate) SetNillableDueDate ¶
func (biu *BillingInvoiceUpdate) SetNillableDueDate(t *time.Time) *BillingInvoiceUpdate
SetNillableDueDate sets the "due_date" field if the given value is not nil.
func (*BillingInvoiceUpdate) SetNillableInvoicingProvider ¶
func (biu *BillingInvoiceUpdate) SetNillableInvoicingProvider(pp *provider.InvoicingProvider) *BillingInvoiceUpdate
SetNillableInvoicingProvider sets the "invoicing_provider" field if the given value is not nil.
func (*BillingInvoiceUpdate) SetNillablePaymentProvider ¶
func (biu *BillingInvoiceUpdate) SetNillablePaymentProvider(pp *provider.PaymentProvider) *BillingInvoiceUpdate
SetNillablePaymentProvider sets the "payment_provider" field if the given value is not nil.
func (*BillingInvoiceUpdate) SetNillablePeriodEnd ¶
func (biu *BillingInvoiceUpdate) SetNillablePeriodEnd(t *time.Time) *BillingInvoiceUpdate
SetNillablePeriodEnd sets the "period_end" field if the given value is not nil.
func (*BillingInvoiceUpdate) SetNillablePeriodStart ¶
func (biu *BillingInvoiceUpdate) SetNillablePeriodStart(t *time.Time) *BillingInvoiceUpdate
SetNillablePeriodStart sets the "period_start" field if the given value is not nil.
func (*BillingInvoiceUpdate) SetNillableSeries ¶
func (biu *BillingInvoiceUpdate) SetNillableSeries(s *string) *BillingInvoiceUpdate
SetNillableSeries sets the "series" field if the given value is not nil.
func (*BillingInvoiceUpdate) SetNillableStatus ¶
func (biu *BillingInvoiceUpdate) SetNillableStatus(bs *billing.InvoiceStatus) *BillingInvoiceUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*BillingInvoiceUpdate) SetNillableTaxProvider ¶
func (biu *BillingInvoiceUpdate) SetNillableTaxProvider(pp *provider.TaxProvider) *BillingInvoiceUpdate
SetNillableTaxProvider sets the "tax_provider" field if the given value is not nil.
func (*BillingInvoiceUpdate) SetNillableVoidedAt ¶
func (biu *BillingInvoiceUpdate) SetNillableVoidedAt(t *time.Time) *BillingInvoiceUpdate
SetNillableVoidedAt sets the "voided_at" field if the given value is not nil.
func (*BillingInvoiceUpdate) SetNillableWorkflowConfigID ¶
func (biu *BillingInvoiceUpdate) SetNillableWorkflowConfigID(s *string) *BillingInvoiceUpdate
SetNillableWorkflowConfigID sets the "workflow_config_id" field if the given value is not nil.
func (*BillingInvoiceUpdate) SetOrClearCode ¶
func (u *BillingInvoiceUpdate) SetOrClearCode(value *string) *BillingInvoiceUpdate
func (*BillingInvoiceUpdate) SetOrClearDeletedAt ¶
func (u *BillingInvoiceUpdate) SetOrClearDeletedAt(value *time.Time) *BillingInvoiceUpdate
func (*BillingInvoiceUpdate) SetOrClearInvoicingProvider ¶
func (u *BillingInvoiceUpdate) SetOrClearInvoicingProvider(value *provider.InvoicingProvider) *BillingInvoiceUpdate
func (*BillingInvoiceUpdate) SetOrClearMetadata ¶
func (u *BillingInvoiceUpdate) SetOrClearMetadata(value *map[string]string) *BillingInvoiceUpdate
func (*BillingInvoiceUpdate) SetOrClearPaymentProvider ¶
func (u *BillingInvoiceUpdate) SetOrClearPaymentProvider(value *provider.PaymentProvider) *BillingInvoiceUpdate
func (*BillingInvoiceUpdate) SetOrClearSeries ¶
func (u *BillingInvoiceUpdate) SetOrClearSeries(value *string) *BillingInvoiceUpdate
func (*BillingInvoiceUpdate) SetOrClearTaxProvider ¶
func (u *BillingInvoiceUpdate) SetOrClearTaxProvider(value *provider.TaxProvider) *BillingInvoiceUpdate
func (*BillingInvoiceUpdate) SetOrClearVoidedAt ¶
func (u *BillingInvoiceUpdate) SetOrClearVoidedAt(value *time.Time) *BillingInvoiceUpdate
func (*BillingInvoiceUpdate) SetPaymentProvider ¶
func (biu *BillingInvoiceUpdate) SetPaymentProvider(pp provider.PaymentProvider) *BillingInvoiceUpdate
SetPaymentProvider sets the "payment_provider" field.
func (*BillingInvoiceUpdate) SetPeriodEnd ¶
func (biu *BillingInvoiceUpdate) SetPeriodEnd(t time.Time) *BillingInvoiceUpdate
SetPeriodEnd sets the "period_end" field.
func (*BillingInvoiceUpdate) SetPeriodStart ¶
func (biu *BillingInvoiceUpdate) SetPeriodStart(t time.Time) *BillingInvoiceUpdate
SetPeriodStart sets the "period_start" field.
func (*BillingInvoiceUpdate) SetSeries ¶
func (biu *BillingInvoiceUpdate) SetSeries(s string) *BillingInvoiceUpdate
SetSeries sets the "series" field.
func (*BillingInvoiceUpdate) SetStatus ¶
func (biu *BillingInvoiceUpdate) SetStatus(bs billing.InvoiceStatus) *BillingInvoiceUpdate
SetStatus sets the "status" field.
func (*BillingInvoiceUpdate) SetTaxProvider ¶
func (biu *BillingInvoiceUpdate) SetTaxProvider(pp provider.TaxProvider) *BillingInvoiceUpdate
SetTaxProvider sets the "tax_provider" field.
func (*BillingInvoiceUpdate) SetUpdatedAt ¶
func (biu *BillingInvoiceUpdate) SetUpdatedAt(t time.Time) *BillingInvoiceUpdate
SetUpdatedAt sets the "updated_at" field.
func (*BillingInvoiceUpdate) SetVoidedAt ¶
func (biu *BillingInvoiceUpdate) SetVoidedAt(t time.Time) *BillingInvoiceUpdate
SetVoidedAt sets the "voided_at" field.
func (*BillingInvoiceUpdate) SetWorkflowConfigID ¶
func (biu *BillingInvoiceUpdate) SetWorkflowConfigID(s string) *BillingInvoiceUpdate
SetWorkflowConfigID sets the "workflow_config_id" field.
func (*BillingInvoiceUpdate) Where ¶
func (biu *BillingInvoiceUpdate) Where(ps ...predicate.BillingInvoice) *BillingInvoiceUpdate
Where appends a list predicates to the BillingInvoiceUpdate builder.
type BillingInvoiceUpdateOne ¶
type BillingInvoiceUpdateOne struct {
// contains filtered or unexported fields
}
BillingInvoiceUpdateOne is the builder for updating a single BillingInvoice entity.
func (*BillingInvoiceUpdateOne) AddBillingInvoiceItemIDs ¶
func (biuo *BillingInvoiceUpdateOne) AddBillingInvoiceItemIDs(ids ...string) *BillingInvoiceUpdateOne
AddBillingInvoiceItemIDs adds the "billing_invoice_items" edge to the BillingInvoiceItem entity by IDs.
func (*BillingInvoiceUpdateOne) AddBillingInvoiceItems ¶
func (biuo *BillingInvoiceUpdateOne) AddBillingInvoiceItems(b ...*BillingInvoiceItem) *BillingInvoiceUpdateOne
AddBillingInvoiceItems adds the "billing_invoice_items" edges to the BillingInvoiceItem entity.
func (*BillingInvoiceUpdateOne) ClearBillingInvoiceItems ¶
func (biuo *BillingInvoiceUpdateOne) ClearBillingInvoiceItems() *BillingInvoiceUpdateOne
ClearBillingInvoiceItems clears all "billing_invoice_items" edges to the BillingInvoiceItem entity.
func (*BillingInvoiceUpdateOne) ClearBillingWorkflowConfig ¶
func (biuo *BillingInvoiceUpdateOne) ClearBillingWorkflowConfig() *BillingInvoiceUpdateOne
ClearBillingWorkflowConfig clears the "billing_workflow_config" edge to the BillingWorkflowConfig entity.
func (*BillingInvoiceUpdateOne) ClearCode ¶
func (biuo *BillingInvoiceUpdateOne) ClearCode() *BillingInvoiceUpdateOne
ClearCode clears the value of the "code" field.
func (*BillingInvoiceUpdateOne) ClearDeletedAt ¶
func (biuo *BillingInvoiceUpdateOne) ClearDeletedAt() *BillingInvoiceUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BillingInvoiceUpdateOne) ClearInvoicingProvider ¶
func (biuo *BillingInvoiceUpdateOne) ClearInvoicingProvider() *BillingInvoiceUpdateOne
ClearInvoicingProvider clears the value of the "invoicing_provider" field.
func (*BillingInvoiceUpdateOne) ClearMetadata ¶
func (biuo *BillingInvoiceUpdateOne) ClearMetadata() *BillingInvoiceUpdateOne
ClearMetadata clears the value of the "metadata" field.
func (*BillingInvoiceUpdateOne) ClearPaymentProvider ¶
func (biuo *BillingInvoiceUpdateOne) ClearPaymentProvider() *BillingInvoiceUpdateOne
ClearPaymentProvider clears the value of the "payment_provider" field.
func (*BillingInvoiceUpdateOne) ClearSeries ¶
func (biuo *BillingInvoiceUpdateOne) ClearSeries() *BillingInvoiceUpdateOne
ClearSeries clears the value of the "series" field.
func (*BillingInvoiceUpdateOne) ClearTaxProvider ¶
func (biuo *BillingInvoiceUpdateOne) ClearTaxProvider() *BillingInvoiceUpdateOne
ClearTaxProvider clears the value of the "tax_provider" field.
func (*BillingInvoiceUpdateOne) ClearVoidedAt ¶
func (biuo *BillingInvoiceUpdateOne) ClearVoidedAt() *BillingInvoiceUpdateOne
ClearVoidedAt clears the value of the "voided_at" field.
func (*BillingInvoiceUpdateOne) Exec ¶
func (biuo *BillingInvoiceUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*BillingInvoiceUpdateOne) ExecContext ¶
func (c *BillingInvoiceUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingInvoiceUpdateOne) ExecX ¶
func (biuo *BillingInvoiceUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingInvoiceUpdateOne) Mutation ¶
func (biuo *BillingInvoiceUpdateOne) Mutation() *BillingInvoiceMutation
Mutation returns the BillingInvoiceMutation object of the builder.
func (*BillingInvoiceUpdateOne) QueryContext ¶
func (c *BillingInvoiceUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingInvoiceUpdateOne) RemoveBillingInvoiceItemIDs ¶
func (biuo *BillingInvoiceUpdateOne) RemoveBillingInvoiceItemIDs(ids ...string) *BillingInvoiceUpdateOne
RemoveBillingInvoiceItemIDs removes the "billing_invoice_items" edge to BillingInvoiceItem entities by IDs.
func (*BillingInvoiceUpdateOne) RemoveBillingInvoiceItems ¶
func (biuo *BillingInvoiceUpdateOne) RemoveBillingInvoiceItems(b ...*BillingInvoiceItem) *BillingInvoiceUpdateOne
RemoveBillingInvoiceItems removes "billing_invoice_items" edges to BillingInvoiceItem entities.
func (*BillingInvoiceUpdateOne) Save ¶
func (biuo *BillingInvoiceUpdateOne) Save(ctx context.Context) (*BillingInvoice, error)
Save executes the query and returns the updated BillingInvoice entity.
func (*BillingInvoiceUpdateOne) SaveX ¶
func (biuo *BillingInvoiceUpdateOne) SaveX(ctx context.Context) *BillingInvoice
SaveX is like Save, but panics if an error occurs.
func (*BillingInvoiceUpdateOne) Select ¶
func (biuo *BillingInvoiceUpdateOne) Select(field string, fields ...string) *BillingInvoiceUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*BillingInvoiceUpdateOne) SetBillingWorkflowConfig ¶
func (biuo *BillingInvoiceUpdateOne) SetBillingWorkflowConfig(b *BillingWorkflowConfig) *BillingInvoiceUpdateOne
SetBillingWorkflowConfig sets the "billing_workflow_config" edge to the BillingWorkflowConfig entity.
func (*BillingInvoiceUpdateOne) SetBillingWorkflowConfigID ¶
func (biuo *BillingInvoiceUpdateOne) SetBillingWorkflowConfigID(id string) *BillingInvoiceUpdateOne
SetBillingWorkflowConfigID sets the "billing_workflow_config" edge to the BillingWorkflowConfig entity by ID.
func (*BillingInvoiceUpdateOne) SetCode ¶
func (biuo *BillingInvoiceUpdateOne) SetCode(s string) *BillingInvoiceUpdateOne
SetCode sets the "code" field.
func (*BillingInvoiceUpdateOne) SetDeletedAt ¶
func (biuo *BillingInvoiceUpdateOne) SetDeletedAt(t time.Time) *BillingInvoiceUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*BillingInvoiceUpdateOne) SetDueDate ¶
func (biuo *BillingInvoiceUpdateOne) SetDueDate(t time.Time) *BillingInvoiceUpdateOne
SetDueDate sets the "due_date" field.
func (*BillingInvoiceUpdateOne) SetInvoicingProvider ¶
func (biuo *BillingInvoiceUpdateOne) SetInvoicingProvider(pp provider.InvoicingProvider) *BillingInvoiceUpdateOne
SetInvoicingProvider sets the "invoicing_provider" field.
func (*BillingInvoiceUpdateOne) SetMetadata ¶
func (biuo *BillingInvoiceUpdateOne) SetMetadata(m map[string]string) *BillingInvoiceUpdateOne
SetMetadata sets the "metadata" field.
func (*BillingInvoiceUpdateOne) SetNillableCode ¶
func (biuo *BillingInvoiceUpdateOne) SetNillableCode(s *string) *BillingInvoiceUpdateOne
SetNillableCode sets the "code" field if the given value is not nil.
func (*BillingInvoiceUpdateOne) SetNillableDeletedAt ¶
func (biuo *BillingInvoiceUpdateOne) SetNillableDeletedAt(t *time.Time) *BillingInvoiceUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*BillingInvoiceUpdateOne) SetNillableDueDate ¶
func (biuo *BillingInvoiceUpdateOne) SetNillableDueDate(t *time.Time) *BillingInvoiceUpdateOne
SetNillableDueDate sets the "due_date" field if the given value is not nil.
func (*BillingInvoiceUpdateOne) SetNillableInvoicingProvider ¶
func (biuo *BillingInvoiceUpdateOne) SetNillableInvoicingProvider(pp *provider.InvoicingProvider) *BillingInvoiceUpdateOne
SetNillableInvoicingProvider sets the "invoicing_provider" field if the given value is not nil.
func (*BillingInvoiceUpdateOne) SetNillablePaymentProvider ¶
func (biuo *BillingInvoiceUpdateOne) SetNillablePaymentProvider(pp *provider.PaymentProvider) *BillingInvoiceUpdateOne
SetNillablePaymentProvider sets the "payment_provider" field if the given value is not nil.
func (*BillingInvoiceUpdateOne) SetNillablePeriodEnd ¶
func (biuo *BillingInvoiceUpdateOne) SetNillablePeriodEnd(t *time.Time) *BillingInvoiceUpdateOne
SetNillablePeriodEnd sets the "period_end" field if the given value is not nil.
func (*BillingInvoiceUpdateOne) SetNillablePeriodStart ¶
func (biuo *BillingInvoiceUpdateOne) SetNillablePeriodStart(t *time.Time) *BillingInvoiceUpdateOne
SetNillablePeriodStart sets the "period_start" field if the given value is not nil.
func (*BillingInvoiceUpdateOne) SetNillableSeries ¶
func (biuo *BillingInvoiceUpdateOne) SetNillableSeries(s *string) *BillingInvoiceUpdateOne
SetNillableSeries sets the "series" field if the given value is not nil.
func (*BillingInvoiceUpdateOne) SetNillableStatus ¶
func (biuo *BillingInvoiceUpdateOne) SetNillableStatus(bs *billing.InvoiceStatus) *BillingInvoiceUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*BillingInvoiceUpdateOne) SetNillableTaxProvider ¶
func (biuo *BillingInvoiceUpdateOne) SetNillableTaxProvider(pp *provider.TaxProvider) *BillingInvoiceUpdateOne
SetNillableTaxProvider sets the "tax_provider" field if the given value is not nil.
func (*BillingInvoiceUpdateOne) SetNillableVoidedAt ¶
func (biuo *BillingInvoiceUpdateOne) SetNillableVoidedAt(t *time.Time) *BillingInvoiceUpdateOne
SetNillableVoidedAt sets the "voided_at" field if the given value is not nil.
func (*BillingInvoiceUpdateOne) SetNillableWorkflowConfigID ¶
func (biuo *BillingInvoiceUpdateOne) SetNillableWorkflowConfigID(s *string) *BillingInvoiceUpdateOne
SetNillableWorkflowConfigID sets the "workflow_config_id" field if the given value is not nil.
func (*BillingInvoiceUpdateOne) SetOrClearCode ¶
func (u *BillingInvoiceUpdateOne) SetOrClearCode(value *string) *BillingInvoiceUpdateOne
func (*BillingInvoiceUpdateOne) SetOrClearDeletedAt ¶
func (u *BillingInvoiceUpdateOne) SetOrClearDeletedAt(value *time.Time) *BillingInvoiceUpdateOne
func (*BillingInvoiceUpdateOne) SetOrClearInvoicingProvider ¶
func (u *BillingInvoiceUpdateOne) SetOrClearInvoicingProvider(value *provider.InvoicingProvider) *BillingInvoiceUpdateOne
func (*BillingInvoiceUpdateOne) SetOrClearMetadata ¶
func (u *BillingInvoiceUpdateOne) SetOrClearMetadata(value *map[string]string) *BillingInvoiceUpdateOne
func (*BillingInvoiceUpdateOne) SetOrClearPaymentProvider ¶
func (u *BillingInvoiceUpdateOne) SetOrClearPaymentProvider(value *provider.PaymentProvider) *BillingInvoiceUpdateOne
func (*BillingInvoiceUpdateOne) SetOrClearSeries ¶
func (u *BillingInvoiceUpdateOne) SetOrClearSeries(value *string) *BillingInvoiceUpdateOne
func (*BillingInvoiceUpdateOne) SetOrClearTaxProvider ¶
func (u *BillingInvoiceUpdateOne) SetOrClearTaxProvider(value *provider.TaxProvider) *BillingInvoiceUpdateOne
func (*BillingInvoiceUpdateOne) SetOrClearVoidedAt ¶
func (u *BillingInvoiceUpdateOne) SetOrClearVoidedAt(value *time.Time) *BillingInvoiceUpdateOne
func (*BillingInvoiceUpdateOne) SetPaymentProvider ¶
func (biuo *BillingInvoiceUpdateOne) SetPaymentProvider(pp provider.PaymentProvider) *BillingInvoiceUpdateOne
SetPaymentProvider sets the "payment_provider" field.
func (*BillingInvoiceUpdateOne) SetPeriodEnd ¶
func (biuo *BillingInvoiceUpdateOne) SetPeriodEnd(t time.Time) *BillingInvoiceUpdateOne
SetPeriodEnd sets the "period_end" field.
func (*BillingInvoiceUpdateOne) SetPeriodStart ¶
func (biuo *BillingInvoiceUpdateOne) SetPeriodStart(t time.Time) *BillingInvoiceUpdateOne
SetPeriodStart sets the "period_start" field.
func (*BillingInvoiceUpdateOne) SetSeries ¶
func (biuo *BillingInvoiceUpdateOne) SetSeries(s string) *BillingInvoiceUpdateOne
SetSeries sets the "series" field.
func (*BillingInvoiceUpdateOne) SetStatus ¶
func (biuo *BillingInvoiceUpdateOne) SetStatus(bs billing.InvoiceStatus) *BillingInvoiceUpdateOne
SetStatus sets the "status" field.
func (*BillingInvoiceUpdateOne) SetTaxProvider ¶
func (biuo *BillingInvoiceUpdateOne) SetTaxProvider(pp provider.TaxProvider) *BillingInvoiceUpdateOne
SetTaxProvider sets the "tax_provider" field.
func (*BillingInvoiceUpdateOne) SetUpdatedAt ¶
func (biuo *BillingInvoiceUpdateOne) SetUpdatedAt(t time.Time) *BillingInvoiceUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*BillingInvoiceUpdateOne) SetVoidedAt ¶
func (biuo *BillingInvoiceUpdateOne) SetVoidedAt(t time.Time) *BillingInvoiceUpdateOne
SetVoidedAt sets the "voided_at" field.
func (*BillingInvoiceUpdateOne) SetWorkflowConfigID ¶
func (biuo *BillingInvoiceUpdateOne) SetWorkflowConfigID(s string) *BillingInvoiceUpdateOne
SetWorkflowConfigID sets the "workflow_config_id" field.
func (*BillingInvoiceUpdateOne) Where ¶
func (biuo *BillingInvoiceUpdateOne) Where(ps ...predicate.BillingInvoice) *BillingInvoiceUpdateOne
Where appends a list predicates to the BillingInvoiceUpdate builder.
type BillingInvoiceUpsert ¶
BillingInvoiceUpsert is the "OnConflict" setter.
func (*BillingInvoiceUpsert) ClearCode ¶
func (u *BillingInvoiceUpsert) ClearCode() *BillingInvoiceUpsert
ClearCode clears the value of the "code" field.
func (*BillingInvoiceUpsert) ClearDeletedAt ¶
func (u *BillingInvoiceUpsert) ClearDeletedAt() *BillingInvoiceUpsert
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BillingInvoiceUpsert) ClearInvoicingProvider ¶
func (u *BillingInvoiceUpsert) ClearInvoicingProvider() *BillingInvoiceUpsert
ClearInvoicingProvider clears the value of the "invoicing_provider" field.
func (*BillingInvoiceUpsert) ClearMetadata ¶
func (u *BillingInvoiceUpsert) ClearMetadata() *BillingInvoiceUpsert
ClearMetadata clears the value of the "metadata" field.
func (*BillingInvoiceUpsert) ClearPaymentProvider ¶
func (u *BillingInvoiceUpsert) ClearPaymentProvider() *BillingInvoiceUpsert
ClearPaymentProvider clears the value of the "payment_provider" field.
func (*BillingInvoiceUpsert) ClearSeries ¶
func (u *BillingInvoiceUpsert) ClearSeries() *BillingInvoiceUpsert
ClearSeries clears the value of the "series" field.
func (*BillingInvoiceUpsert) ClearTaxProvider ¶
func (u *BillingInvoiceUpsert) ClearTaxProvider() *BillingInvoiceUpsert
ClearTaxProvider clears the value of the "tax_provider" field.
func (*BillingInvoiceUpsert) ClearVoidedAt ¶
func (u *BillingInvoiceUpsert) ClearVoidedAt() *BillingInvoiceUpsert
ClearVoidedAt clears the value of the "voided_at" field.
func (*BillingInvoiceUpsert) SetCode ¶
func (u *BillingInvoiceUpsert) SetCode(v string) *BillingInvoiceUpsert
SetCode sets the "code" field.
func (*BillingInvoiceUpsert) SetDeletedAt ¶
func (u *BillingInvoiceUpsert) SetDeletedAt(v time.Time) *BillingInvoiceUpsert
SetDeletedAt sets the "deleted_at" field.
func (*BillingInvoiceUpsert) SetDueDate ¶
func (u *BillingInvoiceUpsert) SetDueDate(v time.Time) *BillingInvoiceUpsert
SetDueDate sets the "due_date" field.
func (*BillingInvoiceUpsert) SetInvoicingProvider ¶
func (u *BillingInvoiceUpsert) SetInvoicingProvider(v provider.InvoicingProvider) *BillingInvoiceUpsert
SetInvoicingProvider sets the "invoicing_provider" field.
func (*BillingInvoiceUpsert) SetMetadata ¶
func (u *BillingInvoiceUpsert) SetMetadata(v map[string]string) *BillingInvoiceUpsert
SetMetadata sets the "metadata" field.
func (*BillingInvoiceUpsert) SetPaymentProvider ¶
func (u *BillingInvoiceUpsert) SetPaymentProvider(v provider.PaymentProvider) *BillingInvoiceUpsert
SetPaymentProvider sets the "payment_provider" field.
func (*BillingInvoiceUpsert) SetPeriodEnd ¶
func (u *BillingInvoiceUpsert) SetPeriodEnd(v time.Time) *BillingInvoiceUpsert
SetPeriodEnd sets the "period_end" field.
func (*BillingInvoiceUpsert) SetPeriodStart ¶
func (u *BillingInvoiceUpsert) SetPeriodStart(v time.Time) *BillingInvoiceUpsert
SetPeriodStart sets the "period_start" field.
func (*BillingInvoiceUpsert) SetSeries ¶
func (u *BillingInvoiceUpsert) SetSeries(v string) *BillingInvoiceUpsert
SetSeries sets the "series" field.
func (*BillingInvoiceUpsert) SetStatus ¶
func (u *BillingInvoiceUpsert) SetStatus(v billing.InvoiceStatus) *BillingInvoiceUpsert
SetStatus sets the "status" field.
func (*BillingInvoiceUpsert) SetTaxProvider ¶
func (u *BillingInvoiceUpsert) SetTaxProvider(v provider.TaxProvider) *BillingInvoiceUpsert
SetTaxProvider sets the "tax_provider" field.
func (*BillingInvoiceUpsert) SetUpdatedAt ¶
func (u *BillingInvoiceUpsert) SetUpdatedAt(v time.Time) *BillingInvoiceUpsert
SetUpdatedAt sets the "updated_at" field.
func (*BillingInvoiceUpsert) SetVoidedAt ¶
func (u *BillingInvoiceUpsert) SetVoidedAt(v time.Time) *BillingInvoiceUpsert
SetVoidedAt sets the "voided_at" field.
func (*BillingInvoiceUpsert) SetWorkflowConfigID ¶
func (u *BillingInvoiceUpsert) SetWorkflowConfigID(v string) *BillingInvoiceUpsert
SetWorkflowConfigID sets the "workflow_config_id" field.
func (*BillingInvoiceUpsert) UpdateCode ¶
func (u *BillingInvoiceUpsert) UpdateCode() *BillingInvoiceUpsert
UpdateCode sets the "code" field to the value that was provided on create.
func (*BillingInvoiceUpsert) UpdateDeletedAt ¶
func (u *BillingInvoiceUpsert) UpdateDeletedAt() *BillingInvoiceUpsert
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*BillingInvoiceUpsert) UpdateDueDate ¶
func (u *BillingInvoiceUpsert) UpdateDueDate() *BillingInvoiceUpsert
UpdateDueDate sets the "due_date" field to the value that was provided on create.
func (*BillingInvoiceUpsert) UpdateInvoicingProvider ¶
func (u *BillingInvoiceUpsert) UpdateInvoicingProvider() *BillingInvoiceUpsert
UpdateInvoicingProvider sets the "invoicing_provider" field to the value that was provided on create.
func (*BillingInvoiceUpsert) UpdateMetadata ¶
func (u *BillingInvoiceUpsert) UpdateMetadata() *BillingInvoiceUpsert
UpdateMetadata sets the "metadata" field to the value that was provided on create.
func (*BillingInvoiceUpsert) UpdatePaymentProvider ¶
func (u *BillingInvoiceUpsert) UpdatePaymentProvider() *BillingInvoiceUpsert
UpdatePaymentProvider sets the "payment_provider" field to the value that was provided on create.
func (*BillingInvoiceUpsert) UpdatePeriodEnd ¶
func (u *BillingInvoiceUpsert) UpdatePeriodEnd() *BillingInvoiceUpsert
UpdatePeriodEnd sets the "period_end" field to the value that was provided on create.
func (*BillingInvoiceUpsert) UpdatePeriodStart ¶
func (u *BillingInvoiceUpsert) UpdatePeriodStart() *BillingInvoiceUpsert
UpdatePeriodStart sets the "period_start" field to the value that was provided on create.
func (*BillingInvoiceUpsert) UpdateSeries ¶
func (u *BillingInvoiceUpsert) UpdateSeries() *BillingInvoiceUpsert
UpdateSeries sets the "series" field to the value that was provided on create.
func (*BillingInvoiceUpsert) UpdateStatus ¶
func (u *BillingInvoiceUpsert) UpdateStatus() *BillingInvoiceUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*BillingInvoiceUpsert) UpdateTaxProvider ¶
func (u *BillingInvoiceUpsert) UpdateTaxProvider() *BillingInvoiceUpsert
UpdateTaxProvider sets the "tax_provider" field to the value that was provided on create.
func (*BillingInvoiceUpsert) UpdateUpdatedAt ¶
func (u *BillingInvoiceUpsert) UpdateUpdatedAt() *BillingInvoiceUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*BillingInvoiceUpsert) UpdateVoidedAt ¶
func (u *BillingInvoiceUpsert) UpdateVoidedAt() *BillingInvoiceUpsert
UpdateVoidedAt sets the "voided_at" field to the value that was provided on create.
func (*BillingInvoiceUpsert) UpdateWorkflowConfigID ¶
func (u *BillingInvoiceUpsert) UpdateWorkflowConfigID() *BillingInvoiceUpsert
UpdateWorkflowConfigID sets the "workflow_config_id" field to the value that was provided on create.
type BillingInvoiceUpsertBulk ¶
type BillingInvoiceUpsertBulk struct {
// contains filtered or unexported fields
}
BillingInvoiceUpsertBulk is the builder for "upsert"-ing a bulk of BillingInvoice nodes.
func (*BillingInvoiceUpsertBulk) ClearCode ¶
func (u *BillingInvoiceUpsertBulk) ClearCode() *BillingInvoiceUpsertBulk
ClearCode clears the value of the "code" field.
func (*BillingInvoiceUpsertBulk) ClearDeletedAt ¶
func (u *BillingInvoiceUpsertBulk) ClearDeletedAt() *BillingInvoiceUpsertBulk
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BillingInvoiceUpsertBulk) ClearInvoicingProvider ¶
func (u *BillingInvoiceUpsertBulk) ClearInvoicingProvider() *BillingInvoiceUpsertBulk
ClearInvoicingProvider clears the value of the "invoicing_provider" field.
func (*BillingInvoiceUpsertBulk) ClearMetadata ¶
func (u *BillingInvoiceUpsertBulk) ClearMetadata() *BillingInvoiceUpsertBulk
ClearMetadata clears the value of the "metadata" field.
func (*BillingInvoiceUpsertBulk) ClearPaymentProvider ¶
func (u *BillingInvoiceUpsertBulk) ClearPaymentProvider() *BillingInvoiceUpsertBulk
ClearPaymentProvider clears the value of the "payment_provider" field.
func (*BillingInvoiceUpsertBulk) ClearSeries ¶
func (u *BillingInvoiceUpsertBulk) ClearSeries() *BillingInvoiceUpsertBulk
ClearSeries clears the value of the "series" field.
func (*BillingInvoiceUpsertBulk) ClearTaxProvider ¶
func (u *BillingInvoiceUpsertBulk) ClearTaxProvider() *BillingInvoiceUpsertBulk
ClearTaxProvider clears the value of the "tax_provider" field.
func (*BillingInvoiceUpsertBulk) ClearVoidedAt ¶
func (u *BillingInvoiceUpsertBulk) ClearVoidedAt() *BillingInvoiceUpsertBulk
ClearVoidedAt clears the value of the "voided_at" field.
func (*BillingInvoiceUpsertBulk) DoNothing ¶
func (u *BillingInvoiceUpsertBulk) DoNothing() *BillingInvoiceUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*BillingInvoiceUpsertBulk) Exec ¶
func (u *BillingInvoiceUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*BillingInvoiceUpsertBulk) ExecX ¶
func (u *BillingInvoiceUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingInvoiceUpsertBulk) Ignore ¶
func (u *BillingInvoiceUpsertBulk) Ignore() *BillingInvoiceUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.BillingInvoice.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*BillingInvoiceUpsertBulk) SetCode ¶
func (u *BillingInvoiceUpsertBulk) SetCode(v string) *BillingInvoiceUpsertBulk
SetCode sets the "code" field.
func (*BillingInvoiceUpsertBulk) SetDeletedAt ¶
func (u *BillingInvoiceUpsertBulk) SetDeletedAt(v time.Time) *BillingInvoiceUpsertBulk
SetDeletedAt sets the "deleted_at" field.
func (*BillingInvoiceUpsertBulk) SetDueDate ¶
func (u *BillingInvoiceUpsertBulk) SetDueDate(v time.Time) *BillingInvoiceUpsertBulk
SetDueDate sets the "due_date" field.
func (*BillingInvoiceUpsertBulk) SetInvoicingProvider ¶
func (u *BillingInvoiceUpsertBulk) SetInvoicingProvider(v provider.InvoicingProvider) *BillingInvoiceUpsertBulk
SetInvoicingProvider sets the "invoicing_provider" field.
func (*BillingInvoiceUpsertBulk) SetMetadata ¶
func (u *BillingInvoiceUpsertBulk) SetMetadata(v map[string]string) *BillingInvoiceUpsertBulk
SetMetadata sets the "metadata" field.
func (*BillingInvoiceUpsertBulk) SetPaymentProvider ¶
func (u *BillingInvoiceUpsertBulk) SetPaymentProvider(v provider.PaymentProvider) *BillingInvoiceUpsertBulk
SetPaymentProvider sets the "payment_provider" field.
func (*BillingInvoiceUpsertBulk) SetPeriodEnd ¶
func (u *BillingInvoiceUpsertBulk) SetPeriodEnd(v time.Time) *BillingInvoiceUpsertBulk
SetPeriodEnd sets the "period_end" field.
func (*BillingInvoiceUpsertBulk) SetPeriodStart ¶
func (u *BillingInvoiceUpsertBulk) SetPeriodStart(v time.Time) *BillingInvoiceUpsertBulk
SetPeriodStart sets the "period_start" field.
func (*BillingInvoiceUpsertBulk) SetSeries ¶
func (u *BillingInvoiceUpsertBulk) SetSeries(v string) *BillingInvoiceUpsertBulk
SetSeries sets the "series" field.
func (*BillingInvoiceUpsertBulk) SetStatus ¶
func (u *BillingInvoiceUpsertBulk) SetStatus(v billing.InvoiceStatus) *BillingInvoiceUpsertBulk
SetStatus sets the "status" field.
func (*BillingInvoiceUpsertBulk) SetTaxProvider ¶
func (u *BillingInvoiceUpsertBulk) SetTaxProvider(v provider.TaxProvider) *BillingInvoiceUpsertBulk
SetTaxProvider sets the "tax_provider" field.
func (*BillingInvoiceUpsertBulk) SetUpdatedAt ¶
func (u *BillingInvoiceUpsertBulk) SetUpdatedAt(v time.Time) *BillingInvoiceUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*BillingInvoiceUpsertBulk) SetVoidedAt ¶
func (u *BillingInvoiceUpsertBulk) SetVoidedAt(v time.Time) *BillingInvoiceUpsertBulk
SetVoidedAt sets the "voided_at" field.
func (*BillingInvoiceUpsertBulk) SetWorkflowConfigID ¶
func (u *BillingInvoiceUpsertBulk) SetWorkflowConfigID(v string) *BillingInvoiceUpsertBulk
SetWorkflowConfigID sets the "workflow_config_id" field.
func (*BillingInvoiceUpsertBulk) Update ¶
func (u *BillingInvoiceUpsertBulk) Update(set func(*BillingInvoiceUpsert)) *BillingInvoiceUpsertBulk
Update allows overriding fields `UPDATE` values. See the BillingInvoiceCreateBulk.OnConflict documentation for more info.
func (*BillingInvoiceUpsertBulk) UpdateCode ¶
func (u *BillingInvoiceUpsertBulk) UpdateCode() *BillingInvoiceUpsertBulk
UpdateCode sets the "code" field to the value that was provided on create.
func (*BillingInvoiceUpsertBulk) UpdateDeletedAt ¶
func (u *BillingInvoiceUpsertBulk) UpdateDeletedAt() *BillingInvoiceUpsertBulk
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*BillingInvoiceUpsertBulk) UpdateDueDate ¶
func (u *BillingInvoiceUpsertBulk) UpdateDueDate() *BillingInvoiceUpsertBulk
UpdateDueDate sets the "due_date" field to the value that was provided on create.
func (*BillingInvoiceUpsertBulk) UpdateInvoicingProvider ¶
func (u *BillingInvoiceUpsertBulk) UpdateInvoicingProvider() *BillingInvoiceUpsertBulk
UpdateInvoicingProvider sets the "invoicing_provider" field to the value that was provided on create.
func (*BillingInvoiceUpsertBulk) UpdateMetadata ¶
func (u *BillingInvoiceUpsertBulk) UpdateMetadata() *BillingInvoiceUpsertBulk
UpdateMetadata sets the "metadata" field to the value that was provided on create.
func (*BillingInvoiceUpsertBulk) UpdateNewValues ¶
func (u *BillingInvoiceUpsertBulk) UpdateNewValues() *BillingInvoiceUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.BillingInvoice.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(billinginvoice.FieldID)
}),
).
Exec(ctx)
func (*BillingInvoiceUpsertBulk) UpdatePaymentProvider ¶
func (u *BillingInvoiceUpsertBulk) UpdatePaymentProvider() *BillingInvoiceUpsertBulk
UpdatePaymentProvider sets the "payment_provider" field to the value that was provided on create.
func (*BillingInvoiceUpsertBulk) UpdatePeriodEnd ¶
func (u *BillingInvoiceUpsertBulk) UpdatePeriodEnd() *BillingInvoiceUpsertBulk
UpdatePeriodEnd sets the "period_end" field to the value that was provided on create.
func (*BillingInvoiceUpsertBulk) UpdatePeriodStart ¶
func (u *BillingInvoiceUpsertBulk) UpdatePeriodStart() *BillingInvoiceUpsertBulk
UpdatePeriodStart sets the "period_start" field to the value that was provided on create.
func (*BillingInvoiceUpsertBulk) UpdateSeries ¶
func (u *BillingInvoiceUpsertBulk) UpdateSeries() *BillingInvoiceUpsertBulk
UpdateSeries sets the "series" field to the value that was provided on create.
func (*BillingInvoiceUpsertBulk) UpdateStatus ¶
func (u *BillingInvoiceUpsertBulk) UpdateStatus() *BillingInvoiceUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*BillingInvoiceUpsertBulk) UpdateTaxProvider ¶
func (u *BillingInvoiceUpsertBulk) UpdateTaxProvider() *BillingInvoiceUpsertBulk
UpdateTaxProvider sets the "tax_provider" field to the value that was provided on create.
func (*BillingInvoiceUpsertBulk) UpdateUpdatedAt ¶
func (u *BillingInvoiceUpsertBulk) UpdateUpdatedAt() *BillingInvoiceUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*BillingInvoiceUpsertBulk) UpdateVoidedAt ¶
func (u *BillingInvoiceUpsertBulk) UpdateVoidedAt() *BillingInvoiceUpsertBulk
UpdateVoidedAt sets the "voided_at" field to the value that was provided on create.
func (*BillingInvoiceUpsertBulk) UpdateWorkflowConfigID ¶
func (u *BillingInvoiceUpsertBulk) UpdateWorkflowConfigID() *BillingInvoiceUpsertBulk
UpdateWorkflowConfigID sets the "workflow_config_id" field to the value that was provided on create.
type BillingInvoiceUpsertOne ¶
type BillingInvoiceUpsertOne struct {
// contains filtered or unexported fields
}
BillingInvoiceUpsertOne is the builder for "upsert"-ing
one BillingInvoice node.
func (*BillingInvoiceUpsertOne) ClearCode ¶
func (u *BillingInvoiceUpsertOne) ClearCode() *BillingInvoiceUpsertOne
ClearCode clears the value of the "code" field.
func (*BillingInvoiceUpsertOne) ClearDeletedAt ¶
func (u *BillingInvoiceUpsertOne) ClearDeletedAt() *BillingInvoiceUpsertOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BillingInvoiceUpsertOne) ClearInvoicingProvider ¶
func (u *BillingInvoiceUpsertOne) ClearInvoicingProvider() *BillingInvoiceUpsertOne
ClearInvoicingProvider clears the value of the "invoicing_provider" field.
func (*BillingInvoiceUpsertOne) ClearMetadata ¶
func (u *BillingInvoiceUpsertOne) ClearMetadata() *BillingInvoiceUpsertOne
ClearMetadata clears the value of the "metadata" field.
func (*BillingInvoiceUpsertOne) ClearPaymentProvider ¶
func (u *BillingInvoiceUpsertOne) ClearPaymentProvider() *BillingInvoiceUpsertOne
ClearPaymentProvider clears the value of the "payment_provider" field.
func (*BillingInvoiceUpsertOne) ClearSeries ¶
func (u *BillingInvoiceUpsertOne) ClearSeries() *BillingInvoiceUpsertOne
ClearSeries clears the value of the "series" field.
func (*BillingInvoiceUpsertOne) ClearTaxProvider ¶
func (u *BillingInvoiceUpsertOne) ClearTaxProvider() *BillingInvoiceUpsertOne
ClearTaxProvider clears the value of the "tax_provider" field.
func (*BillingInvoiceUpsertOne) ClearVoidedAt ¶
func (u *BillingInvoiceUpsertOne) ClearVoidedAt() *BillingInvoiceUpsertOne
ClearVoidedAt clears the value of the "voided_at" field.
func (*BillingInvoiceUpsertOne) DoNothing ¶
func (u *BillingInvoiceUpsertOne) DoNothing() *BillingInvoiceUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*BillingInvoiceUpsertOne) Exec ¶
func (u *BillingInvoiceUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*BillingInvoiceUpsertOne) ExecX ¶
func (u *BillingInvoiceUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingInvoiceUpsertOne) ID ¶
func (u *BillingInvoiceUpsertOne) ID(ctx context.Context) (id string, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*BillingInvoiceUpsertOne) IDX ¶
func (u *BillingInvoiceUpsertOne) IDX(ctx context.Context) string
IDX is like ID, but panics if an error occurs.
func (*BillingInvoiceUpsertOne) Ignore ¶
func (u *BillingInvoiceUpsertOne) Ignore() *BillingInvoiceUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.BillingInvoice.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*BillingInvoiceUpsertOne) SetCode ¶
func (u *BillingInvoiceUpsertOne) SetCode(v string) *BillingInvoiceUpsertOne
SetCode sets the "code" field.
func (*BillingInvoiceUpsertOne) SetDeletedAt ¶
func (u *BillingInvoiceUpsertOne) SetDeletedAt(v time.Time) *BillingInvoiceUpsertOne
SetDeletedAt sets the "deleted_at" field.
func (*BillingInvoiceUpsertOne) SetDueDate ¶
func (u *BillingInvoiceUpsertOne) SetDueDate(v time.Time) *BillingInvoiceUpsertOne
SetDueDate sets the "due_date" field.
func (*BillingInvoiceUpsertOne) SetInvoicingProvider ¶
func (u *BillingInvoiceUpsertOne) SetInvoicingProvider(v provider.InvoicingProvider) *BillingInvoiceUpsertOne
SetInvoicingProvider sets the "invoicing_provider" field.
func (*BillingInvoiceUpsertOne) SetMetadata ¶
func (u *BillingInvoiceUpsertOne) SetMetadata(v map[string]string) *BillingInvoiceUpsertOne
SetMetadata sets the "metadata" field.
func (*BillingInvoiceUpsertOne) SetPaymentProvider ¶
func (u *BillingInvoiceUpsertOne) SetPaymentProvider(v provider.PaymentProvider) *BillingInvoiceUpsertOne
SetPaymentProvider sets the "payment_provider" field.
func (*BillingInvoiceUpsertOne) SetPeriodEnd ¶
func (u *BillingInvoiceUpsertOne) SetPeriodEnd(v time.Time) *BillingInvoiceUpsertOne
SetPeriodEnd sets the "period_end" field.
func (*BillingInvoiceUpsertOne) SetPeriodStart ¶
func (u *BillingInvoiceUpsertOne) SetPeriodStart(v time.Time) *BillingInvoiceUpsertOne
SetPeriodStart sets the "period_start" field.
func (*BillingInvoiceUpsertOne) SetSeries ¶
func (u *BillingInvoiceUpsertOne) SetSeries(v string) *BillingInvoiceUpsertOne
SetSeries sets the "series" field.
func (*BillingInvoiceUpsertOne) SetStatus ¶
func (u *BillingInvoiceUpsertOne) SetStatus(v billing.InvoiceStatus) *BillingInvoiceUpsertOne
SetStatus sets the "status" field.
func (*BillingInvoiceUpsertOne) SetTaxProvider ¶
func (u *BillingInvoiceUpsertOne) SetTaxProvider(v provider.TaxProvider) *BillingInvoiceUpsertOne
SetTaxProvider sets the "tax_provider" field.
func (*BillingInvoiceUpsertOne) SetUpdatedAt ¶
func (u *BillingInvoiceUpsertOne) SetUpdatedAt(v time.Time) *BillingInvoiceUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*BillingInvoiceUpsertOne) SetVoidedAt ¶
func (u *BillingInvoiceUpsertOne) SetVoidedAt(v time.Time) *BillingInvoiceUpsertOne
SetVoidedAt sets the "voided_at" field.
func (*BillingInvoiceUpsertOne) SetWorkflowConfigID ¶
func (u *BillingInvoiceUpsertOne) SetWorkflowConfigID(v string) *BillingInvoiceUpsertOne
SetWorkflowConfigID sets the "workflow_config_id" field.
func (*BillingInvoiceUpsertOne) Update ¶
func (u *BillingInvoiceUpsertOne) Update(set func(*BillingInvoiceUpsert)) *BillingInvoiceUpsertOne
Update allows overriding fields `UPDATE` values. See the BillingInvoiceCreate.OnConflict documentation for more info.
func (*BillingInvoiceUpsertOne) UpdateCode ¶
func (u *BillingInvoiceUpsertOne) UpdateCode() *BillingInvoiceUpsertOne
UpdateCode sets the "code" field to the value that was provided on create.
func (*BillingInvoiceUpsertOne) UpdateDeletedAt ¶
func (u *BillingInvoiceUpsertOne) UpdateDeletedAt() *BillingInvoiceUpsertOne
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*BillingInvoiceUpsertOne) UpdateDueDate ¶
func (u *BillingInvoiceUpsertOne) UpdateDueDate() *BillingInvoiceUpsertOne
UpdateDueDate sets the "due_date" field to the value that was provided on create.
func (*BillingInvoiceUpsertOne) UpdateInvoicingProvider ¶
func (u *BillingInvoiceUpsertOne) UpdateInvoicingProvider() *BillingInvoiceUpsertOne
UpdateInvoicingProvider sets the "invoicing_provider" field to the value that was provided on create.
func (*BillingInvoiceUpsertOne) UpdateMetadata ¶
func (u *BillingInvoiceUpsertOne) UpdateMetadata() *BillingInvoiceUpsertOne
UpdateMetadata sets the "metadata" field to the value that was provided on create.
func (*BillingInvoiceUpsertOne) UpdateNewValues ¶
func (u *BillingInvoiceUpsertOne) UpdateNewValues() *BillingInvoiceUpsertOne
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.BillingInvoice.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(billinginvoice.FieldID)
}),
).
Exec(ctx)
func (*BillingInvoiceUpsertOne) UpdatePaymentProvider ¶
func (u *BillingInvoiceUpsertOne) UpdatePaymentProvider() *BillingInvoiceUpsertOne
UpdatePaymentProvider sets the "payment_provider" field to the value that was provided on create.
func (*BillingInvoiceUpsertOne) UpdatePeriodEnd ¶
func (u *BillingInvoiceUpsertOne) UpdatePeriodEnd() *BillingInvoiceUpsertOne
UpdatePeriodEnd sets the "period_end" field to the value that was provided on create.
func (*BillingInvoiceUpsertOne) UpdatePeriodStart ¶
func (u *BillingInvoiceUpsertOne) UpdatePeriodStart() *BillingInvoiceUpsertOne
UpdatePeriodStart sets the "period_start" field to the value that was provided on create.
func (*BillingInvoiceUpsertOne) UpdateSeries ¶
func (u *BillingInvoiceUpsertOne) UpdateSeries() *BillingInvoiceUpsertOne
UpdateSeries sets the "series" field to the value that was provided on create.
func (*BillingInvoiceUpsertOne) UpdateStatus ¶
func (u *BillingInvoiceUpsertOne) UpdateStatus() *BillingInvoiceUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*BillingInvoiceUpsertOne) UpdateTaxProvider ¶
func (u *BillingInvoiceUpsertOne) UpdateTaxProvider() *BillingInvoiceUpsertOne
UpdateTaxProvider sets the "tax_provider" field to the value that was provided on create.
func (*BillingInvoiceUpsertOne) UpdateUpdatedAt ¶
func (u *BillingInvoiceUpsertOne) UpdateUpdatedAt() *BillingInvoiceUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*BillingInvoiceUpsertOne) UpdateVoidedAt ¶
func (u *BillingInvoiceUpsertOne) UpdateVoidedAt() *BillingInvoiceUpsertOne
UpdateVoidedAt sets the "voided_at" field to the value that was provided on create.
func (*BillingInvoiceUpsertOne) UpdateWorkflowConfigID ¶
func (u *BillingInvoiceUpsertOne) UpdateWorkflowConfigID() *BillingInvoiceUpsertOne
UpdateWorkflowConfigID sets the "workflow_config_id" field to the value that was provided on create.
type BillingInvoices ¶
type BillingInvoices []*BillingInvoice
BillingInvoices is a parsable slice of BillingInvoice.
type BillingProfile ¶
type BillingProfile struct {
// ID of the ent.
ID string `json:"id,omitempty"`
// Namespace holds the value of the "namespace" field.
Namespace string `json:"namespace,omitempty"`
// Metadata holds the value of the "metadata" field.
Metadata map[string]string `json:"metadata,omitempty"`
// CreatedAt holds the value of the "created_at" field.
CreatedAt time.Time `json:"created_at,omitempty"`
// UpdatedAt holds the value of the "updated_at" field.
UpdatedAt time.Time `json:"updated_at,omitempty"`
// DeletedAt holds the value of the "deleted_at" field.
DeletedAt *time.Time `json:"deleted_at,omitempty"`
// SupplierAddressCountry holds the value of the "supplier_address_country" field.
SupplierAddressCountry *models.CountryCode `json:"supplier_address_country,omitempty"`
// SupplierAddressPostalCode holds the value of the "supplier_address_postal_code" field.
SupplierAddressPostalCode *string `json:"supplier_address_postal_code,omitempty"`
// SupplierAddressState holds the value of the "supplier_address_state" field.
SupplierAddressState *string `json:"supplier_address_state,omitempty"`
// SupplierAddressCity holds the value of the "supplier_address_city" field.
SupplierAddressCity *string `json:"supplier_address_city,omitempty"`
// SupplierAddressLine1 holds the value of the "supplier_address_line1" field.
SupplierAddressLine1 *string `json:"supplier_address_line1,omitempty"`
// SupplierAddressLine2 holds the value of the "supplier_address_line2" field.
SupplierAddressLine2 *string `json:"supplier_address_line2,omitempty"`
// SupplierAddressPhoneNumber holds the value of the "supplier_address_phone_number" field.
SupplierAddressPhoneNumber *string `json:"supplier_address_phone_number,omitempty"`
// TaxProvider holds the value of the "tax_provider" field.
TaxProvider provider.TaxProvider `json:"tax_provider,omitempty"`
// InvoicingProvider holds the value of the "invoicing_provider" field.
InvoicingProvider provider.InvoicingProvider `json:"invoicing_provider,omitempty"`
// PaymentProvider holds the value of the "payment_provider" field.
PaymentProvider provider.PaymentProvider `json:"payment_provider,omitempty"`
// WorkflowConfigID holds the value of the "workflow_config_id" field.
WorkflowConfigID string `json:"workflow_config_id,omitempty"`
// Default holds the value of the "default" field.
Default bool `json:"default,omitempty"`
// SupplierName holds the value of the "supplier_name" field.
SupplierName string `json:"supplier_name,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the BillingProfileQuery when eager-loading is set.
Edges BillingProfileEdges `json:"edges"`
// contains filtered or unexported fields
}
BillingProfile is the model entity for the BillingProfile schema.
func (*BillingProfile) ExecContext ¶
func (c *BillingProfile) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingProfile) QueryBillingCustomerOverride ¶
func (bp *BillingProfile) QueryBillingCustomerOverride() *BillingCustomerOverrideQuery
QueryBillingCustomerOverride queries the "billing_customer_override" edge of the BillingProfile entity.
func (*BillingProfile) QueryBillingInvoices ¶
func (bp *BillingProfile) QueryBillingInvoices() *BillingInvoiceQuery
QueryBillingInvoices queries the "billing_invoices" edge of the BillingProfile entity.
func (*BillingProfile) QueryContext ¶
func (c *BillingProfile) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingProfile) QueryWorkflowConfig ¶
func (bp *BillingProfile) QueryWorkflowConfig() *BillingWorkflowConfigQuery
QueryWorkflowConfig queries the "workflow_config" edge of the BillingProfile entity.
func (*BillingProfile) String ¶
func (bp *BillingProfile) String() string
String implements the fmt.Stringer.
func (*BillingProfile) Unwrap ¶
func (bp *BillingProfile) Unwrap() *BillingProfile
Unwrap unwraps the BillingProfile 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 (*BillingProfile) Update ¶
func (bp *BillingProfile) Update() *BillingProfileUpdateOne
Update returns a builder for updating this BillingProfile. Note that you need to call BillingProfile.Unwrap() before calling this method if this BillingProfile was returned from a transaction, and the transaction was committed or rolled back.
type BillingProfileClient ¶
type BillingProfileClient struct {
// contains filtered or unexported fields
}
BillingProfileClient is a client for the BillingProfile schema.
func NewBillingProfileClient ¶
func NewBillingProfileClient(c config) *BillingProfileClient
NewBillingProfileClient returns a client for the BillingProfile from the given config.
func (*BillingProfileClient) Create ¶
func (c *BillingProfileClient) Create() *BillingProfileCreate
Create returns a builder for creating a BillingProfile entity.
func (*BillingProfileClient) CreateBulk ¶
func (c *BillingProfileClient) CreateBulk(builders ...*BillingProfileCreate) *BillingProfileCreateBulk
CreateBulk returns a builder for creating a bulk of BillingProfile entities.
func (*BillingProfileClient) Delete ¶
func (c *BillingProfileClient) Delete() *BillingProfileDelete
Delete returns a delete builder for BillingProfile.
func (*BillingProfileClient) DeleteOne ¶
func (c *BillingProfileClient) DeleteOne(bp *BillingProfile) *BillingProfileDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*BillingProfileClient) DeleteOneID ¶
func (c *BillingProfileClient) DeleteOneID(id string) *BillingProfileDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*BillingProfileClient) ExecContext ¶
func (c *BillingProfileClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingProfileClient) Get ¶
func (c *BillingProfileClient) Get(ctx context.Context, id string) (*BillingProfile, error)
Get returns a BillingProfile entity by its id.
func (*BillingProfileClient) GetX ¶
func (c *BillingProfileClient) GetX(ctx context.Context, id string) *BillingProfile
GetX is like Get, but panics if an error occurs.
func (*BillingProfileClient) Hooks ¶
func (c *BillingProfileClient) Hooks() []Hook
Hooks returns the client hooks.
func (*BillingProfileClient) Intercept ¶
func (c *BillingProfileClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `billingprofile.Intercept(f(g(h())))`.
func (*BillingProfileClient) Interceptors ¶
func (c *BillingProfileClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*BillingProfileClient) MapCreateBulk ¶
func (c *BillingProfileClient) MapCreateBulk(slice any, setFunc func(*BillingProfileCreate, int)) *BillingProfileCreateBulk
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 (*BillingProfileClient) Query ¶
func (c *BillingProfileClient) Query() *BillingProfileQuery
Query returns a query builder for BillingProfile.
func (*BillingProfileClient) QueryBillingCustomerOverride ¶
func (c *BillingProfileClient) QueryBillingCustomerOverride(bp *BillingProfile) *BillingCustomerOverrideQuery
QueryBillingCustomerOverride queries the billing_customer_override edge of a BillingProfile.
func (*BillingProfileClient) QueryBillingInvoices ¶
func (c *BillingProfileClient) QueryBillingInvoices(bp *BillingProfile) *BillingInvoiceQuery
QueryBillingInvoices queries the billing_invoices edge of a BillingProfile.
func (*BillingProfileClient) QueryContext ¶
func (c *BillingProfileClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingProfileClient) QueryWorkflowConfig ¶
func (c *BillingProfileClient) QueryWorkflowConfig(bp *BillingProfile) *BillingWorkflowConfigQuery
QueryWorkflowConfig queries the workflow_config edge of a BillingProfile.
func (*BillingProfileClient) Update ¶
func (c *BillingProfileClient) Update() *BillingProfileUpdate
Update returns an update builder for BillingProfile.
func (*BillingProfileClient) UpdateOne ¶
func (c *BillingProfileClient) UpdateOne(bp *BillingProfile) *BillingProfileUpdateOne
UpdateOne returns an update builder for the given entity.
func (*BillingProfileClient) UpdateOneID ¶
func (c *BillingProfileClient) UpdateOneID(id string) *BillingProfileUpdateOne
UpdateOneID returns an update builder for the given id.
func (*BillingProfileClient) Use ¶
func (c *BillingProfileClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `billingprofile.Hooks(f(g(h())))`.
type BillingProfileCreate ¶
type BillingProfileCreate struct {
// contains filtered or unexported fields
}
BillingProfileCreate is the builder for creating a BillingProfile entity.
func (*BillingProfileCreate) AddBillingCustomerOverride ¶
func (bpc *BillingProfileCreate) AddBillingCustomerOverride(b ...*BillingCustomerOverride) *BillingProfileCreate
AddBillingCustomerOverride adds the "billing_customer_override" edges to the BillingCustomerOverride entity.
func (*BillingProfileCreate) AddBillingCustomerOverrideIDs ¶
func (bpc *BillingProfileCreate) AddBillingCustomerOverrideIDs(ids ...string) *BillingProfileCreate
AddBillingCustomerOverrideIDs adds the "billing_customer_override" edge to the BillingCustomerOverride entity by IDs.
func (*BillingProfileCreate) AddBillingInvoiceIDs ¶
func (bpc *BillingProfileCreate) AddBillingInvoiceIDs(ids ...string) *BillingProfileCreate
AddBillingInvoiceIDs adds the "billing_invoices" edge to the BillingInvoice entity by IDs.
func (*BillingProfileCreate) AddBillingInvoices ¶
func (bpc *BillingProfileCreate) AddBillingInvoices(b ...*BillingInvoice) *BillingProfileCreate
AddBillingInvoices adds the "billing_invoices" edges to the BillingInvoice entity.
func (*BillingProfileCreate) Exec ¶
func (bpc *BillingProfileCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*BillingProfileCreate) ExecContext ¶
func (c *BillingProfileCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingProfileCreate) ExecX ¶
func (bpc *BillingProfileCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingProfileCreate) Mutation ¶
func (bpc *BillingProfileCreate) Mutation() *BillingProfileMutation
Mutation returns the BillingProfileMutation object of the builder.
func (*BillingProfileCreate) OnConflict ¶
func (bpc *BillingProfileCreate) OnConflict(opts ...sql.ConflictOption) *BillingProfileUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.BillingProfile.Create().
SetNamespace(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.BillingProfileUpsert) {
SetNamespace(v+v).
}).
Exec(ctx)
func (*BillingProfileCreate) OnConflictColumns ¶
func (bpc *BillingProfileCreate) OnConflictColumns(columns ...string) *BillingProfileUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.BillingProfile.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*BillingProfileCreate) QueryContext ¶
func (c *BillingProfileCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingProfileCreate) Save ¶
func (bpc *BillingProfileCreate) Save(ctx context.Context) (*BillingProfile, error)
Save creates the BillingProfile in the database.
func (*BillingProfileCreate) SaveX ¶
func (bpc *BillingProfileCreate) SaveX(ctx context.Context) *BillingProfile
SaveX calls Save and panics if Save returns an error.
func (*BillingProfileCreate) SetCreatedAt ¶
func (bpc *BillingProfileCreate) SetCreatedAt(t time.Time) *BillingProfileCreate
SetCreatedAt sets the "created_at" field.
func (*BillingProfileCreate) SetDefault ¶
func (bpc *BillingProfileCreate) SetDefault(b bool) *BillingProfileCreate
SetDefault sets the "default" field.
func (*BillingProfileCreate) SetDeletedAt ¶
func (bpc *BillingProfileCreate) SetDeletedAt(t time.Time) *BillingProfileCreate
SetDeletedAt sets the "deleted_at" field.
func (*BillingProfileCreate) SetID ¶
func (bpc *BillingProfileCreate) SetID(s string) *BillingProfileCreate
SetID sets the "id" field.
func (*BillingProfileCreate) SetInvoicingProvider ¶
func (bpc *BillingProfileCreate) SetInvoicingProvider(pp provider.InvoicingProvider) *BillingProfileCreate
SetInvoicingProvider sets the "invoicing_provider" field.
func (*BillingProfileCreate) SetMetadata ¶
func (bpc *BillingProfileCreate) SetMetadata(m map[string]string) *BillingProfileCreate
SetMetadata sets the "metadata" field.
func (*BillingProfileCreate) SetNamespace ¶
func (bpc *BillingProfileCreate) SetNamespace(s string) *BillingProfileCreate
SetNamespace sets the "namespace" field.
func (*BillingProfileCreate) SetNillableCreatedAt ¶
func (bpc *BillingProfileCreate) SetNillableCreatedAt(t *time.Time) *BillingProfileCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*BillingProfileCreate) SetNillableDefault ¶
func (bpc *BillingProfileCreate) SetNillableDefault(b *bool) *BillingProfileCreate
SetNillableDefault sets the "default" field if the given value is not nil.
func (*BillingProfileCreate) SetNillableDeletedAt ¶
func (bpc *BillingProfileCreate) SetNillableDeletedAt(t *time.Time) *BillingProfileCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*BillingProfileCreate) SetNillableID ¶
func (bpc *BillingProfileCreate) SetNillableID(s *string) *BillingProfileCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*BillingProfileCreate) SetNillableSupplierAddressCity ¶
func (bpc *BillingProfileCreate) SetNillableSupplierAddressCity(s *string) *BillingProfileCreate
SetNillableSupplierAddressCity sets the "supplier_address_city" field if the given value is not nil.
func (*BillingProfileCreate) SetNillableSupplierAddressCountry ¶
func (bpc *BillingProfileCreate) SetNillableSupplierAddressCountry(mc *models.CountryCode) *BillingProfileCreate
SetNillableSupplierAddressCountry sets the "supplier_address_country" field if the given value is not nil.
func (*BillingProfileCreate) SetNillableSupplierAddressLine1 ¶
func (bpc *BillingProfileCreate) SetNillableSupplierAddressLine1(s *string) *BillingProfileCreate
SetNillableSupplierAddressLine1 sets the "supplier_address_line1" field if the given value is not nil.
func (*BillingProfileCreate) SetNillableSupplierAddressLine2 ¶
func (bpc *BillingProfileCreate) SetNillableSupplierAddressLine2(s *string) *BillingProfileCreate
SetNillableSupplierAddressLine2 sets the "supplier_address_line2" field if the given value is not nil.
func (*BillingProfileCreate) SetNillableSupplierAddressPhoneNumber ¶
func (bpc *BillingProfileCreate) SetNillableSupplierAddressPhoneNumber(s *string) *BillingProfileCreate
SetNillableSupplierAddressPhoneNumber sets the "supplier_address_phone_number" field if the given value is not nil.
func (*BillingProfileCreate) SetNillableSupplierAddressPostalCode ¶
func (bpc *BillingProfileCreate) SetNillableSupplierAddressPostalCode(s *string) *BillingProfileCreate
SetNillableSupplierAddressPostalCode sets the "supplier_address_postal_code" field if the given value is not nil.
func (*BillingProfileCreate) SetNillableSupplierAddressState ¶
func (bpc *BillingProfileCreate) SetNillableSupplierAddressState(s *string) *BillingProfileCreate
SetNillableSupplierAddressState sets the "supplier_address_state" field if the given value is not nil.
func (*BillingProfileCreate) SetNillableUpdatedAt ¶
func (bpc *BillingProfileCreate) SetNillableUpdatedAt(t *time.Time) *BillingProfileCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*BillingProfileCreate) SetPaymentProvider ¶
func (bpc *BillingProfileCreate) SetPaymentProvider(pp provider.PaymentProvider) *BillingProfileCreate
SetPaymentProvider sets the "payment_provider" field.
func (*BillingProfileCreate) SetSupplierAddressCity ¶
func (bpc *BillingProfileCreate) SetSupplierAddressCity(s string) *BillingProfileCreate
SetSupplierAddressCity sets the "supplier_address_city" field.
func (*BillingProfileCreate) SetSupplierAddressCountry ¶
func (bpc *BillingProfileCreate) SetSupplierAddressCountry(mc models.CountryCode) *BillingProfileCreate
SetSupplierAddressCountry sets the "supplier_address_country" field.
func (*BillingProfileCreate) SetSupplierAddressLine1 ¶
func (bpc *BillingProfileCreate) SetSupplierAddressLine1(s string) *BillingProfileCreate
SetSupplierAddressLine1 sets the "supplier_address_line1" field.
func (*BillingProfileCreate) SetSupplierAddressLine2 ¶
func (bpc *BillingProfileCreate) SetSupplierAddressLine2(s string) *BillingProfileCreate
SetSupplierAddressLine2 sets the "supplier_address_line2" field.
func (*BillingProfileCreate) SetSupplierAddressPhoneNumber ¶
func (bpc *BillingProfileCreate) SetSupplierAddressPhoneNumber(s string) *BillingProfileCreate
SetSupplierAddressPhoneNumber sets the "supplier_address_phone_number" field.
func (*BillingProfileCreate) SetSupplierAddressPostalCode ¶
func (bpc *BillingProfileCreate) SetSupplierAddressPostalCode(s string) *BillingProfileCreate
SetSupplierAddressPostalCode sets the "supplier_address_postal_code" field.
func (*BillingProfileCreate) SetSupplierAddressState ¶
func (bpc *BillingProfileCreate) SetSupplierAddressState(s string) *BillingProfileCreate
SetSupplierAddressState sets the "supplier_address_state" field.
func (*BillingProfileCreate) SetSupplierName ¶
func (bpc *BillingProfileCreate) SetSupplierName(s string) *BillingProfileCreate
SetSupplierName sets the "supplier_name" field.
func (*BillingProfileCreate) SetTaxProvider ¶
func (bpc *BillingProfileCreate) SetTaxProvider(pp provider.TaxProvider) *BillingProfileCreate
SetTaxProvider sets the "tax_provider" field.
func (*BillingProfileCreate) SetUpdatedAt ¶
func (bpc *BillingProfileCreate) SetUpdatedAt(t time.Time) *BillingProfileCreate
SetUpdatedAt sets the "updated_at" field.
func (*BillingProfileCreate) SetWorkflowConfig ¶
func (bpc *BillingProfileCreate) SetWorkflowConfig(b *BillingWorkflowConfig) *BillingProfileCreate
SetWorkflowConfig sets the "workflow_config" edge to the BillingWorkflowConfig entity.
func (*BillingProfileCreate) SetWorkflowConfigID ¶
func (bpc *BillingProfileCreate) SetWorkflowConfigID(s string) *BillingProfileCreate
SetWorkflowConfigID sets the "workflow_config_id" field.
type BillingProfileCreateBulk ¶
type BillingProfileCreateBulk struct {
// contains filtered or unexported fields
}
BillingProfileCreateBulk is the builder for creating many BillingProfile entities in bulk.
func (*BillingProfileCreateBulk) Exec ¶
func (bpcb *BillingProfileCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*BillingProfileCreateBulk) ExecContext ¶
func (c *BillingProfileCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingProfileCreateBulk) ExecX ¶
func (bpcb *BillingProfileCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingProfileCreateBulk) OnConflict ¶
func (bpcb *BillingProfileCreateBulk) OnConflict(opts ...sql.ConflictOption) *BillingProfileUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.BillingProfile.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.BillingProfileUpsert) {
SetNamespace(v+v).
}).
Exec(ctx)
func (*BillingProfileCreateBulk) OnConflictColumns ¶
func (bpcb *BillingProfileCreateBulk) OnConflictColumns(columns ...string) *BillingProfileUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.BillingProfile.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*BillingProfileCreateBulk) QueryContext ¶
func (c *BillingProfileCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingProfileCreateBulk) Save ¶
func (bpcb *BillingProfileCreateBulk) Save(ctx context.Context) ([]*BillingProfile, error)
Save creates the BillingProfile entities in the database.
func (*BillingProfileCreateBulk) SaveX ¶
func (bpcb *BillingProfileCreateBulk) SaveX(ctx context.Context) []*BillingProfile
SaveX is like Save, but panics if an error occurs.
type BillingProfileDelete ¶
type BillingProfileDelete struct {
// contains filtered or unexported fields
}
BillingProfileDelete is the builder for deleting a BillingProfile entity.
func (*BillingProfileDelete) Exec ¶
func (bpd *BillingProfileDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*BillingProfileDelete) ExecContext ¶
func (c *BillingProfileDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingProfileDelete) ExecX ¶
func (bpd *BillingProfileDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*BillingProfileDelete) QueryContext ¶
func (c *BillingProfileDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingProfileDelete) Where ¶
func (bpd *BillingProfileDelete) Where(ps ...predicate.BillingProfile) *BillingProfileDelete
Where appends a list predicates to the BillingProfileDelete builder.
type BillingProfileDeleteOne ¶
type BillingProfileDeleteOne struct {
// contains filtered or unexported fields
}
BillingProfileDeleteOne is the builder for deleting a single BillingProfile entity.
func (*BillingProfileDeleteOne) Exec ¶
func (bpdo *BillingProfileDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*BillingProfileDeleteOne) ExecX ¶
func (bpdo *BillingProfileDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingProfileDeleteOne) Where ¶
func (bpdo *BillingProfileDeleteOne) Where(ps ...predicate.BillingProfile) *BillingProfileDeleteOne
Where appends a list predicates to the BillingProfileDelete builder.
type BillingProfileEdges ¶
type BillingProfileEdges struct {
// BillingInvoices holds the value of the billing_invoices edge.
BillingInvoices []*BillingInvoice `json:"billing_invoices,omitempty"`
// BillingCustomerOverride holds the value of the billing_customer_override edge.
BillingCustomerOverride []*BillingCustomerOverride `json:"billing_customer_override,omitempty"`
// WorkflowConfig holds the value of the workflow_config edge.
WorkflowConfig *BillingWorkflowConfig `json:"workflow_config,omitempty"`
// contains filtered or unexported fields
}
BillingProfileEdges holds the relations/edges for other nodes in the graph.
func (BillingProfileEdges) BillingCustomerOverrideOrErr ¶
func (e BillingProfileEdges) BillingCustomerOverrideOrErr() ([]*BillingCustomerOverride, error)
BillingCustomerOverrideOrErr returns the BillingCustomerOverride value or an error if the edge was not loaded in eager-loading.
func (BillingProfileEdges) BillingInvoicesOrErr ¶
func (e BillingProfileEdges) BillingInvoicesOrErr() ([]*BillingInvoice, error)
BillingInvoicesOrErr returns the BillingInvoices value or an error if the edge was not loaded in eager-loading.
func (BillingProfileEdges) WorkflowConfigOrErr ¶
func (e BillingProfileEdges) WorkflowConfigOrErr() (*BillingWorkflowConfig, error)
WorkflowConfigOrErr returns the WorkflowConfig value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type BillingProfileGroupBy ¶
type BillingProfileGroupBy struct {
// contains filtered or unexported fields
}
BillingProfileGroupBy is the group-by builder for BillingProfile entities.
func (*BillingProfileGroupBy) Aggregate ¶
func (bpgb *BillingProfileGroupBy) Aggregate(fns ...AggregateFunc) *BillingProfileGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*BillingProfileGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*BillingProfileGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*BillingProfileGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*BillingProfileGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*BillingProfileGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*BillingProfileGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*BillingProfileGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*BillingProfileGroupBy) Scan ¶
func (bpgb *BillingProfileGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*BillingProfileGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type BillingProfileMutation ¶
type BillingProfileMutation struct {
// contains filtered or unexported fields
}
BillingProfileMutation represents an operation that mutates the BillingProfile nodes in the graph.
func (*BillingProfileMutation) AddBillingCustomerOverrideIDs ¶
func (m *BillingProfileMutation) AddBillingCustomerOverrideIDs(ids ...string)
AddBillingCustomerOverrideIDs adds the "billing_customer_override" edge to the BillingCustomerOverride entity by ids.
func (*BillingProfileMutation) AddBillingInvoiceIDs ¶
func (m *BillingProfileMutation) AddBillingInvoiceIDs(ids ...string)
AddBillingInvoiceIDs adds the "billing_invoices" edge to the BillingInvoice entity by ids.
func (*BillingProfileMutation) AddField ¶
func (m *BillingProfileMutation) 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 (*BillingProfileMutation) AddedEdges ¶
func (m *BillingProfileMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*BillingProfileMutation) AddedField ¶
func (m *BillingProfileMutation) 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 (*BillingProfileMutation) AddedFields ¶
func (m *BillingProfileMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*BillingProfileMutation) AddedIDs ¶
func (m *BillingProfileMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*BillingProfileMutation) BillingCustomerOverrideCleared ¶
func (m *BillingProfileMutation) BillingCustomerOverrideCleared() bool
BillingCustomerOverrideCleared reports if the "billing_customer_override" edge to the BillingCustomerOverride entity was cleared.
func (*BillingProfileMutation) BillingCustomerOverrideIDs ¶
func (m *BillingProfileMutation) BillingCustomerOverrideIDs() (ids []string)
BillingCustomerOverrideIDs returns the "billing_customer_override" edge IDs in the mutation.
func (*BillingProfileMutation) BillingInvoicesCleared ¶
func (m *BillingProfileMutation) BillingInvoicesCleared() bool
BillingInvoicesCleared reports if the "billing_invoices" edge to the BillingInvoice entity was cleared.
func (*BillingProfileMutation) BillingInvoicesIDs ¶
func (m *BillingProfileMutation) BillingInvoicesIDs() (ids []string)
BillingInvoicesIDs returns the "billing_invoices" edge IDs in the mutation.
func (*BillingProfileMutation) ClearBillingCustomerOverride ¶
func (m *BillingProfileMutation) ClearBillingCustomerOverride()
ClearBillingCustomerOverride clears the "billing_customer_override" edge to the BillingCustomerOverride entity.
func (*BillingProfileMutation) ClearBillingInvoices ¶
func (m *BillingProfileMutation) ClearBillingInvoices()
ClearBillingInvoices clears the "billing_invoices" edge to the BillingInvoice entity.
func (*BillingProfileMutation) ClearDeletedAt ¶
func (m *BillingProfileMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BillingProfileMutation) ClearEdge ¶
func (m *BillingProfileMutation) 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 (*BillingProfileMutation) ClearField ¶
func (m *BillingProfileMutation) 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 (*BillingProfileMutation) ClearMetadata ¶
func (m *BillingProfileMutation) ClearMetadata()
ClearMetadata clears the value of the "metadata" field.
func (*BillingProfileMutation) ClearSupplierAddressCity ¶
func (m *BillingProfileMutation) ClearSupplierAddressCity()
ClearSupplierAddressCity clears the value of the "supplier_address_city" field.
func (*BillingProfileMutation) ClearSupplierAddressCountry ¶
func (m *BillingProfileMutation) ClearSupplierAddressCountry()
ClearSupplierAddressCountry clears the value of the "supplier_address_country" field.
func (*BillingProfileMutation) ClearSupplierAddressLine1 ¶
func (m *BillingProfileMutation) ClearSupplierAddressLine1()
ClearSupplierAddressLine1 clears the value of the "supplier_address_line1" field.
func (*BillingProfileMutation) ClearSupplierAddressLine2 ¶
func (m *BillingProfileMutation) ClearSupplierAddressLine2()
ClearSupplierAddressLine2 clears the value of the "supplier_address_line2" field.
func (*BillingProfileMutation) ClearSupplierAddressPhoneNumber ¶
func (m *BillingProfileMutation) ClearSupplierAddressPhoneNumber()
ClearSupplierAddressPhoneNumber clears the value of the "supplier_address_phone_number" field.
func (*BillingProfileMutation) ClearSupplierAddressPostalCode ¶
func (m *BillingProfileMutation) ClearSupplierAddressPostalCode()
ClearSupplierAddressPostalCode clears the value of the "supplier_address_postal_code" field.
func (*BillingProfileMutation) ClearSupplierAddressState ¶
func (m *BillingProfileMutation) ClearSupplierAddressState()
ClearSupplierAddressState clears the value of the "supplier_address_state" field.
func (*BillingProfileMutation) ClearWorkflowConfig ¶
func (m *BillingProfileMutation) ClearWorkflowConfig()
ClearWorkflowConfig clears the "workflow_config" edge to the BillingWorkflowConfig entity.
func (*BillingProfileMutation) ClearedEdges ¶
func (m *BillingProfileMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*BillingProfileMutation) ClearedFields ¶
func (m *BillingProfileMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (BillingProfileMutation) Client ¶
func (m BillingProfileMutation) 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 (*BillingProfileMutation) CreatedAt ¶
func (m *BillingProfileMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*BillingProfileMutation) Default ¶
func (m *BillingProfileMutation) Default() (r bool, exists bool)
Default returns the value of the "default" field in the mutation.
func (*BillingProfileMutation) DeletedAt ¶
func (m *BillingProfileMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*BillingProfileMutation) DeletedAtCleared ¶
func (m *BillingProfileMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*BillingProfileMutation) EdgeCleared ¶
func (m *BillingProfileMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*BillingProfileMutation) ExecContext ¶
func (c *BillingProfileMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingProfileMutation) Field ¶
func (m *BillingProfileMutation) 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 (*BillingProfileMutation) FieldCleared ¶
func (m *BillingProfileMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*BillingProfileMutation) Fields ¶
func (m *BillingProfileMutation) 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 (*BillingProfileMutation) ID ¶
func (m *BillingProfileMutation) ID() (id string, 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 (*BillingProfileMutation) IDs ¶
func (m *BillingProfileMutation) IDs(ctx context.Context) ([]string, error)
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 (*BillingProfileMutation) InvoicingProvider ¶
func (m *BillingProfileMutation) InvoicingProvider() (r provider.InvoicingProvider, exists bool)
InvoicingProvider returns the value of the "invoicing_provider" field in the mutation.
func (*BillingProfileMutation) Metadata ¶
func (m *BillingProfileMutation) Metadata() (r map[string]string, exists bool)
Metadata returns the value of the "metadata" field in the mutation.
func (*BillingProfileMutation) MetadataCleared ¶
func (m *BillingProfileMutation) MetadataCleared() bool
MetadataCleared returns if the "metadata" field was cleared in this mutation.
func (*BillingProfileMutation) Namespace ¶
func (m *BillingProfileMutation) Namespace() (r string, exists bool)
Namespace returns the value of the "namespace" field in the mutation.
func (*BillingProfileMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the BillingProfile entity. If the BillingProfile 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 (*BillingProfileMutation) OldDefault ¶
func (m *BillingProfileMutation) OldDefault(ctx context.Context) (v bool, err error)
OldDefault returns the old "default" field's value of the BillingProfile entity. If the BillingProfile 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 (*BillingProfileMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the BillingProfile entity. If the BillingProfile 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 (*BillingProfileMutation) OldField ¶
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 (*BillingProfileMutation) OldInvoicingProvider ¶
func (m *BillingProfileMutation) OldInvoicingProvider(ctx context.Context) (v provider.InvoicingProvider, err error)
OldInvoicingProvider returns the old "invoicing_provider" field's value of the BillingProfile entity. If the BillingProfile 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 (*BillingProfileMutation) OldMetadata ¶
OldMetadata returns the old "metadata" field's value of the BillingProfile entity. If the BillingProfile 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 (*BillingProfileMutation) OldNamespace ¶
func (m *BillingProfileMutation) OldNamespace(ctx context.Context) (v string, err error)
OldNamespace returns the old "namespace" field's value of the BillingProfile entity. If the BillingProfile 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 (*BillingProfileMutation) OldPaymentProvider ¶
func (m *BillingProfileMutation) OldPaymentProvider(ctx context.Context) (v provider.PaymentProvider, err error)
OldPaymentProvider returns the old "payment_provider" field's value of the BillingProfile entity. If the BillingProfile 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 (*BillingProfileMutation) OldSupplierAddressCity ¶
func (m *BillingProfileMutation) OldSupplierAddressCity(ctx context.Context) (v *string, err error)
OldSupplierAddressCity returns the old "supplier_address_city" field's value of the BillingProfile entity. If the BillingProfile 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 (*BillingProfileMutation) OldSupplierAddressCountry ¶
func (m *BillingProfileMutation) OldSupplierAddressCountry(ctx context.Context) (v *models.CountryCode, err error)
OldSupplierAddressCountry returns the old "supplier_address_country" field's value of the BillingProfile entity. If the BillingProfile 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 (*BillingProfileMutation) OldSupplierAddressLine1 ¶
func (m *BillingProfileMutation) OldSupplierAddressLine1(ctx context.Context) (v *string, err error)
OldSupplierAddressLine1 returns the old "supplier_address_line1" field's value of the BillingProfile entity. If the BillingProfile 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 (*BillingProfileMutation) OldSupplierAddressLine2 ¶
func (m *BillingProfileMutation) OldSupplierAddressLine2(ctx context.Context) (v *string, err error)
OldSupplierAddressLine2 returns the old "supplier_address_line2" field's value of the BillingProfile entity. If the BillingProfile 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 (*BillingProfileMutation) OldSupplierAddressPhoneNumber ¶
func (m *BillingProfileMutation) OldSupplierAddressPhoneNumber(ctx context.Context) (v *string, err error)
OldSupplierAddressPhoneNumber returns the old "supplier_address_phone_number" field's value of the BillingProfile entity. If the BillingProfile 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 (*BillingProfileMutation) OldSupplierAddressPostalCode ¶
func (m *BillingProfileMutation) OldSupplierAddressPostalCode(ctx context.Context) (v *string, err error)
OldSupplierAddressPostalCode returns the old "supplier_address_postal_code" field's value of the BillingProfile entity. If the BillingProfile 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 (*BillingProfileMutation) OldSupplierAddressState ¶
func (m *BillingProfileMutation) OldSupplierAddressState(ctx context.Context) (v *string, err error)
OldSupplierAddressState returns the old "supplier_address_state" field's value of the BillingProfile entity. If the BillingProfile 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 (*BillingProfileMutation) OldSupplierName ¶
func (m *BillingProfileMutation) OldSupplierName(ctx context.Context) (v string, err error)
OldSupplierName returns the old "supplier_name" field's value of the BillingProfile entity. If the BillingProfile 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 (*BillingProfileMutation) OldTaxProvider ¶
func (m *BillingProfileMutation) OldTaxProvider(ctx context.Context) (v provider.TaxProvider, err error)
OldTaxProvider returns the old "tax_provider" field's value of the BillingProfile entity. If the BillingProfile 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 (*BillingProfileMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the BillingProfile entity. If the BillingProfile 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 (*BillingProfileMutation) OldWorkflowConfigID ¶
func (m *BillingProfileMutation) OldWorkflowConfigID(ctx context.Context) (v string, err error)
OldWorkflowConfigID returns the old "workflow_config_id" field's value of the BillingProfile entity. If the BillingProfile 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 (*BillingProfileMutation) Op ¶
func (m *BillingProfileMutation) Op() Op
Op returns the operation name.
func (*BillingProfileMutation) PaymentProvider ¶
func (m *BillingProfileMutation) PaymentProvider() (r provider.PaymentProvider, exists bool)
PaymentProvider returns the value of the "payment_provider" field in the mutation.
func (*BillingProfileMutation) QueryContext ¶
func (c *BillingProfileMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingProfileMutation) RemoveBillingCustomerOverrideIDs ¶
func (m *BillingProfileMutation) RemoveBillingCustomerOverrideIDs(ids ...string)
RemoveBillingCustomerOverrideIDs removes the "billing_customer_override" edge to the BillingCustomerOverride entity by IDs.
func (*BillingProfileMutation) RemoveBillingInvoiceIDs ¶
func (m *BillingProfileMutation) RemoveBillingInvoiceIDs(ids ...string)
RemoveBillingInvoiceIDs removes the "billing_invoices" edge to the BillingInvoice entity by IDs.
func (*BillingProfileMutation) RemovedBillingCustomerOverrideIDs ¶
func (m *BillingProfileMutation) RemovedBillingCustomerOverrideIDs() (ids []string)
RemovedBillingCustomerOverride returns the removed IDs of the "billing_customer_override" edge to the BillingCustomerOverride entity.
func (*BillingProfileMutation) RemovedBillingInvoicesIDs ¶
func (m *BillingProfileMutation) RemovedBillingInvoicesIDs() (ids []string)
RemovedBillingInvoices returns the removed IDs of the "billing_invoices" edge to the BillingInvoice entity.
func (*BillingProfileMutation) RemovedEdges ¶
func (m *BillingProfileMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*BillingProfileMutation) RemovedIDs ¶
func (m *BillingProfileMutation) 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 (*BillingProfileMutation) ResetBillingCustomerOverride ¶
func (m *BillingProfileMutation) ResetBillingCustomerOverride()
ResetBillingCustomerOverride resets all changes to the "billing_customer_override" edge.
func (*BillingProfileMutation) ResetBillingInvoices ¶
func (m *BillingProfileMutation) ResetBillingInvoices()
ResetBillingInvoices resets all changes to the "billing_invoices" edge.
func (*BillingProfileMutation) ResetCreatedAt ¶
func (m *BillingProfileMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*BillingProfileMutation) ResetDefault ¶
func (m *BillingProfileMutation) ResetDefault()
ResetDefault resets all changes to the "default" field.
func (*BillingProfileMutation) ResetDeletedAt ¶
func (m *BillingProfileMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*BillingProfileMutation) ResetEdge ¶
func (m *BillingProfileMutation) 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 (*BillingProfileMutation) ResetField ¶
func (m *BillingProfileMutation) 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 (*BillingProfileMutation) ResetInvoicingProvider ¶
func (m *BillingProfileMutation) ResetInvoicingProvider()
ResetInvoicingProvider resets all changes to the "invoicing_provider" field.
func (*BillingProfileMutation) ResetMetadata ¶
func (m *BillingProfileMutation) ResetMetadata()
ResetMetadata resets all changes to the "metadata" field.
func (*BillingProfileMutation) ResetNamespace ¶
func (m *BillingProfileMutation) ResetNamespace()
ResetNamespace resets all changes to the "namespace" field.
func (*BillingProfileMutation) ResetPaymentProvider ¶
func (m *BillingProfileMutation) ResetPaymentProvider()
ResetPaymentProvider resets all changes to the "payment_provider" field.
func (*BillingProfileMutation) ResetSupplierAddressCity ¶
func (m *BillingProfileMutation) ResetSupplierAddressCity()
ResetSupplierAddressCity resets all changes to the "supplier_address_city" field.
func (*BillingProfileMutation) ResetSupplierAddressCountry ¶
func (m *BillingProfileMutation) ResetSupplierAddressCountry()
ResetSupplierAddressCountry resets all changes to the "supplier_address_country" field.
func (*BillingProfileMutation) ResetSupplierAddressLine1 ¶
func (m *BillingProfileMutation) ResetSupplierAddressLine1()
ResetSupplierAddressLine1 resets all changes to the "supplier_address_line1" field.
func (*BillingProfileMutation) ResetSupplierAddressLine2 ¶
func (m *BillingProfileMutation) ResetSupplierAddressLine2()
ResetSupplierAddressLine2 resets all changes to the "supplier_address_line2" field.
func (*BillingProfileMutation) ResetSupplierAddressPhoneNumber ¶
func (m *BillingProfileMutation) ResetSupplierAddressPhoneNumber()
ResetSupplierAddressPhoneNumber resets all changes to the "supplier_address_phone_number" field.
func (*BillingProfileMutation) ResetSupplierAddressPostalCode ¶
func (m *BillingProfileMutation) ResetSupplierAddressPostalCode()
ResetSupplierAddressPostalCode resets all changes to the "supplier_address_postal_code" field.
func (*BillingProfileMutation) ResetSupplierAddressState ¶
func (m *BillingProfileMutation) ResetSupplierAddressState()
ResetSupplierAddressState resets all changes to the "supplier_address_state" field.
func (*BillingProfileMutation) ResetSupplierName ¶
func (m *BillingProfileMutation) ResetSupplierName()
ResetSupplierName resets all changes to the "supplier_name" field.
func (*BillingProfileMutation) ResetTaxProvider ¶
func (m *BillingProfileMutation) ResetTaxProvider()
ResetTaxProvider resets all changes to the "tax_provider" field.
func (*BillingProfileMutation) ResetUpdatedAt ¶
func (m *BillingProfileMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*BillingProfileMutation) ResetWorkflowConfig ¶
func (m *BillingProfileMutation) ResetWorkflowConfig()
ResetWorkflowConfig resets all changes to the "workflow_config" edge.
func (*BillingProfileMutation) ResetWorkflowConfigID ¶
func (m *BillingProfileMutation) ResetWorkflowConfigID()
ResetWorkflowConfigID resets all changes to the "workflow_config_id" field.
func (*BillingProfileMutation) SetCreatedAt ¶
func (m *BillingProfileMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*BillingProfileMutation) SetDefault ¶
func (m *BillingProfileMutation) SetDefault(b bool)
SetDefault sets the "default" field.
func (*BillingProfileMutation) SetDeletedAt ¶
func (m *BillingProfileMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*BillingProfileMutation) SetField ¶
func (m *BillingProfileMutation) 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 (*BillingProfileMutation) SetID ¶
func (m *BillingProfileMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of BillingProfile entities.
func (*BillingProfileMutation) SetInvoicingProvider ¶
func (m *BillingProfileMutation) SetInvoicingProvider(pp provider.InvoicingProvider)
SetInvoicingProvider sets the "invoicing_provider" field.
func (*BillingProfileMutation) SetMetadata ¶
func (m *BillingProfileMutation) SetMetadata(value map[string]string)
SetMetadata sets the "metadata" field.
func (*BillingProfileMutation) SetNamespace ¶
func (m *BillingProfileMutation) SetNamespace(s string)
SetNamespace sets the "namespace" field.
func (*BillingProfileMutation) SetOp ¶
func (m *BillingProfileMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*BillingProfileMutation) SetPaymentProvider ¶
func (m *BillingProfileMutation) SetPaymentProvider(pp provider.PaymentProvider)
SetPaymentProvider sets the "payment_provider" field.
func (*BillingProfileMutation) SetSupplierAddressCity ¶
func (m *BillingProfileMutation) SetSupplierAddressCity(s string)
SetSupplierAddressCity sets the "supplier_address_city" field.
func (*BillingProfileMutation) SetSupplierAddressCountry ¶
func (m *BillingProfileMutation) SetSupplierAddressCountry(mc models.CountryCode)
SetSupplierAddressCountry sets the "supplier_address_country" field.
func (*BillingProfileMutation) SetSupplierAddressLine1 ¶
func (m *BillingProfileMutation) SetSupplierAddressLine1(s string)
SetSupplierAddressLine1 sets the "supplier_address_line1" field.
func (*BillingProfileMutation) SetSupplierAddressLine2 ¶
func (m *BillingProfileMutation) SetSupplierAddressLine2(s string)
SetSupplierAddressLine2 sets the "supplier_address_line2" field.
func (*BillingProfileMutation) SetSupplierAddressPhoneNumber ¶
func (m *BillingProfileMutation) SetSupplierAddressPhoneNumber(s string)
SetSupplierAddressPhoneNumber sets the "supplier_address_phone_number" field.
func (*BillingProfileMutation) SetSupplierAddressPostalCode ¶
func (m *BillingProfileMutation) SetSupplierAddressPostalCode(s string)
SetSupplierAddressPostalCode sets the "supplier_address_postal_code" field.
func (*BillingProfileMutation) SetSupplierAddressState ¶
func (m *BillingProfileMutation) SetSupplierAddressState(s string)
SetSupplierAddressState sets the "supplier_address_state" field.
func (*BillingProfileMutation) SetSupplierName ¶
func (m *BillingProfileMutation) SetSupplierName(s string)
SetSupplierName sets the "supplier_name" field.
func (*BillingProfileMutation) SetTaxProvider ¶
func (m *BillingProfileMutation) SetTaxProvider(pp provider.TaxProvider)
SetTaxProvider sets the "tax_provider" field.
func (*BillingProfileMutation) SetUpdatedAt ¶
func (m *BillingProfileMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*BillingProfileMutation) SetWorkflowConfigID ¶
func (m *BillingProfileMutation) SetWorkflowConfigID(s string)
SetWorkflowConfigID sets the "workflow_config_id" field.
func (*BillingProfileMutation) SupplierAddressCity ¶
func (m *BillingProfileMutation) SupplierAddressCity() (r string, exists bool)
SupplierAddressCity returns the value of the "supplier_address_city" field in the mutation.
func (*BillingProfileMutation) SupplierAddressCityCleared ¶
func (m *BillingProfileMutation) SupplierAddressCityCleared() bool
SupplierAddressCityCleared returns if the "supplier_address_city" field was cleared in this mutation.
func (*BillingProfileMutation) SupplierAddressCountry ¶
func (m *BillingProfileMutation) SupplierAddressCountry() (r models.CountryCode, exists bool)
SupplierAddressCountry returns the value of the "supplier_address_country" field in the mutation.
func (*BillingProfileMutation) SupplierAddressCountryCleared ¶
func (m *BillingProfileMutation) SupplierAddressCountryCleared() bool
SupplierAddressCountryCleared returns if the "supplier_address_country" field was cleared in this mutation.
func (*BillingProfileMutation) SupplierAddressLine1 ¶
func (m *BillingProfileMutation) SupplierAddressLine1() (r string, exists bool)
SupplierAddressLine1 returns the value of the "supplier_address_line1" field in the mutation.
func (*BillingProfileMutation) SupplierAddressLine1Cleared ¶
func (m *BillingProfileMutation) SupplierAddressLine1Cleared() bool
SupplierAddressLine1Cleared returns if the "supplier_address_line1" field was cleared in this mutation.
func (*BillingProfileMutation) SupplierAddressLine2 ¶
func (m *BillingProfileMutation) SupplierAddressLine2() (r string, exists bool)
SupplierAddressLine2 returns the value of the "supplier_address_line2" field in the mutation.
func (*BillingProfileMutation) SupplierAddressLine2Cleared ¶
func (m *BillingProfileMutation) SupplierAddressLine2Cleared() bool
SupplierAddressLine2Cleared returns if the "supplier_address_line2" field was cleared in this mutation.
func (*BillingProfileMutation) SupplierAddressPhoneNumber ¶
func (m *BillingProfileMutation) SupplierAddressPhoneNumber() (r string, exists bool)
SupplierAddressPhoneNumber returns the value of the "supplier_address_phone_number" field in the mutation.
func (*BillingProfileMutation) SupplierAddressPhoneNumberCleared ¶
func (m *BillingProfileMutation) SupplierAddressPhoneNumberCleared() bool
SupplierAddressPhoneNumberCleared returns if the "supplier_address_phone_number" field was cleared in this mutation.
func (*BillingProfileMutation) SupplierAddressPostalCode ¶
func (m *BillingProfileMutation) SupplierAddressPostalCode() (r string, exists bool)
SupplierAddressPostalCode returns the value of the "supplier_address_postal_code" field in the mutation.
func (*BillingProfileMutation) SupplierAddressPostalCodeCleared ¶
func (m *BillingProfileMutation) SupplierAddressPostalCodeCleared() bool
SupplierAddressPostalCodeCleared returns if the "supplier_address_postal_code" field was cleared in this mutation.
func (*BillingProfileMutation) SupplierAddressState ¶
func (m *BillingProfileMutation) SupplierAddressState() (r string, exists bool)
SupplierAddressState returns the value of the "supplier_address_state" field in the mutation.
func (*BillingProfileMutation) SupplierAddressStateCleared ¶
func (m *BillingProfileMutation) SupplierAddressStateCleared() bool
SupplierAddressStateCleared returns if the "supplier_address_state" field was cleared in this mutation.
func (*BillingProfileMutation) SupplierName ¶
func (m *BillingProfileMutation) SupplierName() (r string, exists bool)
SupplierName returns the value of the "supplier_name" field in the mutation.
func (*BillingProfileMutation) TaxProvider ¶
func (m *BillingProfileMutation) TaxProvider() (r provider.TaxProvider, exists bool)
TaxProvider returns the value of the "tax_provider" field in the mutation.
func (BillingProfileMutation) Tx ¶
func (m BillingProfileMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*BillingProfileMutation) Type ¶
func (m *BillingProfileMutation) Type() string
Type returns the node type of this mutation (BillingProfile).
func (*BillingProfileMutation) UpdatedAt ¶
func (m *BillingProfileMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*BillingProfileMutation) Where ¶
func (m *BillingProfileMutation) Where(ps ...predicate.BillingProfile)
Where appends a list predicates to the BillingProfileMutation builder.
func (*BillingProfileMutation) WhereP ¶
func (m *BillingProfileMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the BillingProfileMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
func (*BillingProfileMutation) WorkflowConfigCleared ¶
func (m *BillingProfileMutation) WorkflowConfigCleared() bool
WorkflowConfigCleared reports if the "workflow_config" edge to the BillingWorkflowConfig entity was cleared.
func (*BillingProfileMutation) WorkflowConfigID ¶
func (m *BillingProfileMutation) WorkflowConfigID() (r string, exists bool)
WorkflowConfigID returns the value of the "workflow_config_id" field in the mutation.
func (*BillingProfileMutation) WorkflowConfigIDs ¶
func (m *BillingProfileMutation) WorkflowConfigIDs() (ids []string)
WorkflowConfigIDs returns the "workflow_config" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use WorkflowConfigID instead. It exists only for internal usage by the builders.
type BillingProfileQuery ¶
type BillingProfileQuery struct {
// contains filtered or unexported fields
}
BillingProfileQuery is the builder for querying BillingProfile entities.
func (*BillingProfileQuery) Aggregate ¶
func (bpq *BillingProfileQuery) Aggregate(fns ...AggregateFunc) *BillingProfileSelect
Aggregate returns a BillingProfileSelect configured with the given aggregations.
func (*BillingProfileQuery) All ¶
func (bpq *BillingProfileQuery) All(ctx context.Context) ([]*BillingProfile, error)
All executes the query and returns a list of BillingProfiles.
func (*BillingProfileQuery) AllX ¶
func (bpq *BillingProfileQuery) AllX(ctx context.Context) []*BillingProfile
AllX is like All, but panics if an error occurs.
func (*BillingProfileQuery) Clone ¶
func (bpq *BillingProfileQuery) Clone() *BillingProfileQuery
Clone returns a duplicate of the BillingProfileQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*BillingProfileQuery) Count ¶
func (bpq *BillingProfileQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*BillingProfileQuery) CountX ¶
func (bpq *BillingProfileQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*BillingProfileQuery) ExecContext ¶
func (c *BillingProfileQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingProfileQuery) Exist ¶
func (bpq *BillingProfileQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*BillingProfileQuery) ExistX ¶
func (bpq *BillingProfileQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*BillingProfileQuery) First ¶
func (bpq *BillingProfileQuery) First(ctx context.Context) (*BillingProfile, error)
First returns the first BillingProfile entity from the query. Returns a *NotFoundError when no BillingProfile was found.
func (*BillingProfileQuery) FirstID ¶
func (bpq *BillingProfileQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first BillingProfile ID from the query. Returns a *NotFoundError when no BillingProfile ID was found.
func (*BillingProfileQuery) FirstIDX ¶
func (bpq *BillingProfileQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*BillingProfileQuery) FirstX ¶
func (bpq *BillingProfileQuery) FirstX(ctx context.Context) *BillingProfile
FirstX is like First, but panics if an error occurs.
func (*BillingProfileQuery) ForShare ¶
func (bpq *BillingProfileQuery) ForShare(opts ...sql.LockOption) *BillingProfileQuery
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 (*BillingProfileQuery) ForUpdate ¶
func (bpq *BillingProfileQuery) ForUpdate(opts ...sql.LockOption) *BillingProfileQuery
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 (*BillingProfileQuery) GroupBy ¶
func (bpq *BillingProfileQuery) GroupBy(field string, fields ...string) *BillingProfileGroupBy
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 {
Namespace string `json:"namespace,omitempty"`
Count int `json:"count,omitempty"`
}
client.BillingProfile.Query().
GroupBy(billingprofile.FieldNamespace).
Aggregate(db.Count()).
Scan(ctx, &v)
func (*BillingProfileQuery) IDs ¶
func (bpq *BillingProfileQuery) IDs(ctx context.Context) (ids []string, err error)
IDs executes the query and returns a list of BillingProfile IDs.
func (*BillingProfileQuery) IDsX ¶
func (bpq *BillingProfileQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*BillingProfileQuery) Limit ¶
func (bpq *BillingProfileQuery) Limit(limit int) *BillingProfileQuery
Limit the number of records to be returned by this query.
func (*BillingProfileQuery) Offset ¶
func (bpq *BillingProfileQuery) Offset(offset int) *BillingProfileQuery
Offset to start from.
func (*BillingProfileQuery) Only ¶
func (bpq *BillingProfileQuery) Only(ctx context.Context) (*BillingProfile, error)
Only returns a single BillingProfile entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one BillingProfile entity is found. Returns a *NotFoundError when no BillingProfile entities are found.
func (*BillingProfileQuery) OnlyID ¶
func (bpq *BillingProfileQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only BillingProfile ID in the query. Returns a *NotSingularError when more than one BillingProfile ID is found. Returns a *NotFoundError when no entities are found.
func (*BillingProfileQuery) OnlyIDX ¶
func (bpq *BillingProfileQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*BillingProfileQuery) OnlyX ¶
func (bpq *BillingProfileQuery) OnlyX(ctx context.Context) *BillingProfile
OnlyX is like Only, but panics if an error occurs.
func (*BillingProfileQuery) Order ¶
func (bpq *BillingProfileQuery) Order(o ...billingprofile.OrderOption) *BillingProfileQuery
Order specifies how the records should be ordered.
func (*BillingProfileQuery) Paginate ¶
func (bp *BillingProfileQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*BillingProfile], error)
Paginate runs the query and returns a paginated response. If page is its 0 value then it will return all the items and populate the response page accordingly.
func (*BillingProfileQuery) QueryBillingCustomerOverride ¶
func (bpq *BillingProfileQuery) QueryBillingCustomerOverride() *BillingCustomerOverrideQuery
QueryBillingCustomerOverride chains the current query on the "billing_customer_override" edge.
func (*BillingProfileQuery) QueryBillingInvoices ¶
func (bpq *BillingProfileQuery) QueryBillingInvoices() *BillingInvoiceQuery
QueryBillingInvoices chains the current query on the "billing_invoices" edge.
func (*BillingProfileQuery) QueryContext ¶
func (c *BillingProfileQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingProfileQuery) QueryWorkflowConfig ¶
func (bpq *BillingProfileQuery) QueryWorkflowConfig() *BillingWorkflowConfigQuery
QueryWorkflowConfig chains the current query on the "workflow_config" edge.
func (*BillingProfileQuery) Select ¶
func (bpq *BillingProfileQuery) Select(fields ...string) *BillingProfileSelect
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 {
Namespace string `json:"namespace,omitempty"`
}
client.BillingProfile.Query().
Select(billingprofile.FieldNamespace).
Scan(ctx, &v)
func (*BillingProfileQuery) Unique ¶
func (bpq *BillingProfileQuery) Unique(unique bool) *BillingProfileQuery
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 (*BillingProfileQuery) Where ¶
func (bpq *BillingProfileQuery) Where(ps ...predicate.BillingProfile) *BillingProfileQuery
Where adds a new predicate for the BillingProfileQuery builder.
func (*BillingProfileQuery) WithBillingCustomerOverride ¶
func (bpq *BillingProfileQuery) WithBillingCustomerOverride(opts ...func(*BillingCustomerOverrideQuery)) *BillingProfileQuery
WithBillingCustomerOverride tells the query-builder to eager-load the nodes that are connected to the "billing_customer_override" edge. The optional arguments are used to configure the query builder of the edge.
func (*BillingProfileQuery) WithBillingInvoices ¶
func (bpq *BillingProfileQuery) WithBillingInvoices(opts ...func(*BillingInvoiceQuery)) *BillingProfileQuery
WithBillingInvoices tells the query-builder to eager-load the nodes that are connected to the "billing_invoices" edge. The optional arguments are used to configure the query builder of the edge.
func (*BillingProfileQuery) WithWorkflowConfig ¶
func (bpq *BillingProfileQuery) WithWorkflowConfig(opts ...func(*BillingWorkflowConfigQuery)) *BillingProfileQuery
WithWorkflowConfig tells the query-builder to eager-load the nodes that are connected to the "workflow_config" edge. The optional arguments are used to configure the query builder of the edge.
type BillingProfileSelect ¶
type BillingProfileSelect struct {
*BillingProfileQuery
// contains filtered or unexported fields
}
BillingProfileSelect is the builder for selecting fields of BillingProfile entities.
func (*BillingProfileSelect) Aggregate ¶
func (bps *BillingProfileSelect) Aggregate(fns ...AggregateFunc) *BillingProfileSelect
Aggregate adds the given aggregation functions to the selector query.
func (*BillingProfileSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*BillingProfileSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (BillingProfileSelect) ExecContext ¶
func (c BillingProfileSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingProfileSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*BillingProfileSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*BillingProfileSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*BillingProfileSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (BillingProfileSelect) QueryContext ¶
func (c BillingProfileSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingProfileSelect) Scan ¶
func (bps *BillingProfileSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*BillingProfileSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type BillingProfileUpdate ¶
type BillingProfileUpdate struct {
// contains filtered or unexported fields
}
BillingProfileUpdate is the builder for updating BillingProfile entities.
func (*BillingProfileUpdate) AddBillingCustomerOverride ¶
func (bpu *BillingProfileUpdate) AddBillingCustomerOverride(b ...*BillingCustomerOverride) *BillingProfileUpdate
AddBillingCustomerOverride adds the "billing_customer_override" edges to the BillingCustomerOverride entity.
func (*BillingProfileUpdate) AddBillingCustomerOverrideIDs ¶
func (bpu *BillingProfileUpdate) AddBillingCustomerOverrideIDs(ids ...string) *BillingProfileUpdate
AddBillingCustomerOverrideIDs adds the "billing_customer_override" edge to the BillingCustomerOverride entity by IDs.
func (*BillingProfileUpdate) AddBillingInvoiceIDs ¶
func (bpu *BillingProfileUpdate) AddBillingInvoiceIDs(ids ...string) *BillingProfileUpdate
AddBillingInvoiceIDs adds the "billing_invoices" edge to the BillingInvoice entity by IDs.
func (*BillingProfileUpdate) AddBillingInvoices ¶
func (bpu *BillingProfileUpdate) AddBillingInvoices(b ...*BillingInvoice) *BillingProfileUpdate
AddBillingInvoices adds the "billing_invoices" edges to the BillingInvoice entity.
func (*BillingProfileUpdate) ClearBillingCustomerOverride ¶
func (bpu *BillingProfileUpdate) ClearBillingCustomerOverride() *BillingProfileUpdate
ClearBillingCustomerOverride clears all "billing_customer_override" edges to the BillingCustomerOverride entity.
func (*BillingProfileUpdate) ClearBillingInvoices ¶
func (bpu *BillingProfileUpdate) ClearBillingInvoices() *BillingProfileUpdate
ClearBillingInvoices clears all "billing_invoices" edges to the BillingInvoice entity.
func (*BillingProfileUpdate) ClearDeletedAt ¶
func (bpu *BillingProfileUpdate) ClearDeletedAt() *BillingProfileUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BillingProfileUpdate) ClearMetadata ¶
func (bpu *BillingProfileUpdate) ClearMetadata() *BillingProfileUpdate
ClearMetadata clears the value of the "metadata" field.
func (*BillingProfileUpdate) ClearSupplierAddressCity ¶
func (bpu *BillingProfileUpdate) ClearSupplierAddressCity() *BillingProfileUpdate
ClearSupplierAddressCity clears the value of the "supplier_address_city" field.
func (*BillingProfileUpdate) ClearSupplierAddressCountry ¶
func (bpu *BillingProfileUpdate) ClearSupplierAddressCountry() *BillingProfileUpdate
ClearSupplierAddressCountry clears the value of the "supplier_address_country" field.
func (*BillingProfileUpdate) ClearSupplierAddressLine1 ¶
func (bpu *BillingProfileUpdate) ClearSupplierAddressLine1() *BillingProfileUpdate
ClearSupplierAddressLine1 clears the value of the "supplier_address_line1" field.
func (*BillingProfileUpdate) ClearSupplierAddressLine2 ¶
func (bpu *BillingProfileUpdate) ClearSupplierAddressLine2() *BillingProfileUpdate
ClearSupplierAddressLine2 clears the value of the "supplier_address_line2" field.
func (*BillingProfileUpdate) ClearSupplierAddressPhoneNumber ¶
func (bpu *BillingProfileUpdate) ClearSupplierAddressPhoneNumber() *BillingProfileUpdate
ClearSupplierAddressPhoneNumber clears the value of the "supplier_address_phone_number" field.
func (*BillingProfileUpdate) ClearSupplierAddressPostalCode ¶
func (bpu *BillingProfileUpdate) ClearSupplierAddressPostalCode() *BillingProfileUpdate
ClearSupplierAddressPostalCode clears the value of the "supplier_address_postal_code" field.
func (*BillingProfileUpdate) ClearSupplierAddressState ¶
func (bpu *BillingProfileUpdate) ClearSupplierAddressState() *BillingProfileUpdate
ClearSupplierAddressState clears the value of the "supplier_address_state" field.
func (*BillingProfileUpdate) ClearWorkflowConfig ¶
func (bpu *BillingProfileUpdate) ClearWorkflowConfig() *BillingProfileUpdate
ClearWorkflowConfig clears the "workflow_config" edge to the BillingWorkflowConfig entity.
func (*BillingProfileUpdate) Exec ¶
func (bpu *BillingProfileUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*BillingProfileUpdate) ExecContext ¶
func (c *BillingProfileUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingProfileUpdate) ExecX ¶
func (bpu *BillingProfileUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingProfileUpdate) Mutation ¶
func (bpu *BillingProfileUpdate) Mutation() *BillingProfileMutation
Mutation returns the BillingProfileMutation object of the builder.
func (*BillingProfileUpdate) QueryContext ¶
func (c *BillingProfileUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingProfileUpdate) RemoveBillingCustomerOverride ¶
func (bpu *BillingProfileUpdate) RemoveBillingCustomerOverride(b ...*BillingCustomerOverride) *BillingProfileUpdate
RemoveBillingCustomerOverride removes "billing_customer_override" edges to BillingCustomerOverride entities.
func (*BillingProfileUpdate) RemoveBillingCustomerOverrideIDs ¶
func (bpu *BillingProfileUpdate) RemoveBillingCustomerOverrideIDs(ids ...string) *BillingProfileUpdate
RemoveBillingCustomerOverrideIDs removes the "billing_customer_override" edge to BillingCustomerOverride entities by IDs.
func (*BillingProfileUpdate) RemoveBillingInvoiceIDs ¶
func (bpu *BillingProfileUpdate) RemoveBillingInvoiceIDs(ids ...string) *BillingProfileUpdate
RemoveBillingInvoiceIDs removes the "billing_invoices" edge to BillingInvoice entities by IDs.
func (*BillingProfileUpdate) RemoveBillingInvoices ¶
func (bpu *BillingProfileUpdate) RemoveBillingInvoices(b ...*BillingInvoice) *BillingProfileUpdate
RemoveBillingInvoices removes "billing_invoices" edges to BillingInvoice entities.
func (*BillingProfileUpdate) Save ¶
func (bpu *BillingProfileUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*BillingProfileUpdate) SaveX ¶
func (bpu *BillingProfileUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*BillingProfileUpdate) SetDefault ¶
func (bpu *BillingProfileUpdate) SetDefault(b bool) *BillingProfileUpdate
SetDefault sets the "default" field.
func (*BillingProfileUpdate) SetDeletedAt ¶
func (bpu *BillingProfileUpdate) SetDeletedAt(t time.Time) *BillingProfileUpdate
SetDeletedAt sets the "deleted_at" field.
func (*BillingProfileUpdate) SetInvoicingProvider ¶
func (bpu *BillingProfileUpdate) SetInvoicingProvider(pp provider.InvoicingProvider) *BillingProfileUpdate
SetInvoicingProvider sets the "invoicing_provider" field.
func (*BillingProfileUpdate) SetMetadata ¶
func (bpu *BillingProfileUpdate) SetMetadata(m map[string]string) *BillingProfileUpdate
SetMetadata sets the "metadata" field.
func (*BillingProfileUpdate) SetNillableDefault ¶
func (bpu *BillingProfileUpdate) SetNillableDefault(b *bool) *BillingProfileUpdate
SetNillableDefault sets the "default" field if the given value is not nil.
func (*BillingProfileUpdate) SetNillableDeletedAt ¶
func (bpu *BillingProfileUpdate) SetNillableDeletedAt(t *time.Time) *BillingProfileUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*BillingProfileUpdate) SetNillableInvoicingProvider ¶
func (bpu *BillingProfileUpdate) SetNillableInvoicingProvider(pp *provider.InvoicingProvider) *BillingProfileUpdate
SetNillableInvoicingProvider sets the "invoicing_provider" field if the given value is not nil.
func (*BillingProfileUpdate) SetNillablePaymentProvider ¶
func (bpu *BillingProfileUpdate) SetNillablePaymentProvider(pp *provider.PaymentProvider) *BillingProfileUpdate
SetNillablePaymentProvider sets the "payment_provider" field if the given value is not nil.
func (*BillingProfileUpdate) SetNillableSupplierAddressCity ¶
func (bpu *BillingProfileUpdate) SetNillableSupplierAddressCity(s *string) *BillingProfileUpdate
SetNillableSupplierAddressCity sets the "supplier_address_city" field if the given value is not nil.
func (*BillingProfileUpdate) SetNillableSupplierAddressCountry ¶
func (bpu *BillingProfileUpdate) SetNillableSupplierAddressCountry(mc *models.CountryCode) *BillingProfileUpdate
SetNillableSupplierAddressCountry sets the "supplier_address_country" field if the given value is not nil.
func (*BillingProfileUpdate) SetNillableSupplierAddressLine1 ¶
func (bpu *BillingProfileUpdate) SetNillableSupplierAddressLine1(s *string) *BillingProfileUpdate
SetNillableSupplierAddressLine1 sets the "supplier_address_line1" field if the given value is not nil.
func (*BillingProfileUpdate) SetNillableSupplierAddressLine2 ¶
func (bpu *BillingProfileUpdate) SetNillableSupplierAddressLine2(s *string) *BillingProfileUpdate
SetNillableSupplierAddressLine2 sets the "supplier_address_line2" field if the given value is not nil.
func (*BillingProfileUpdate) SetNillableSupplierAddressPhoneNumber ¶
func (bpu *BillingProfileUpdate) SetNillableSupplierAddressPhoneNumber(s *string) *BillingProfileUpdate
SetNillableSupplierAddressPhoneNumber sets the "supplier_address_phone_number" field if the given value is not nil.
func (*BillingProfileUpdate) SetNillableSupplierAddressPostalCode ¶
func (bpu *BillingProfileUpdate) SetNillableSupplierAddressPostalCode(s *string) *BillingProfileUpdate
SetNillableSupplierAddressPostalCode sets the "supplier_address_postal_code" field if the given value is not nil.
func (*BillingProfileUpdate) SetNillableSupplierAddressState ¶
func (bpu *BillingProfileUpdate) SetNillableSupplierAddressState(s *string) *BillingProfileUpdate
SetNillableSupplierAddressState sets the "supplier_address_state" field if the given value is not nil.
func (*BillingProfileUpdate) SetNillableSupplierName ¶
func (bpu *BillingProfileUpdate) SetNillableSupplierName(s *string) *BillingProfileUpdate
SetNillableSupplierName sets the "supplier_name" field if the given value is not nil.
func (*BillingProfileUpdate) SetNillableTaxProvider ¶
func (bpu *BillingProfileUpdate) SetNillableTaxProvider(pp *provider.TaxProvider) *BillingProfileUpdate
SetNillableTaxProvider sets the "tax_provider" field if the given value is not nil.
func (*BillingProfileUpdate) SetNillableWorkflowConfigID ¶
func (bpu *BillingProfileUpdate) SetNillableWorkflowConfigID(s *string) *BillingProfileUpdate
SetNillableWorkflowConfigID sets the "workflow_config_id" field if the given value is not nil.
func (*BillingProfileUpdate) SetOrClearDeletedAt ¶
func (u *BillingProfileUpdate) SetOrClearDeletedAt(value *time.Time) *BillingProfileUpdate
func (*BillingProfileUpdate) SetOrClearMetadata ¶
func (u *BillingProfileUpdate) SetOrClearMetadata(value *map[string]string) *BillingProfileUpdate
func (*BillingProfileUpdate) SetOrClearSupplierAddressCity ¶
func (u *BillingProfileUpdate) SetOrClearSupplierAddressCity(value *string) *BillingProfileUpdate
func (*BillingProfileUpdate) SetOrClearSupplierAddressCountry ¶
func (u *BillingProfileUpdate) SetOrClearSupplierAddressCountry(value *models.CountryCode) *BillingProfileUpdate
func (*BillingProfileUpdate) SetOrClearSupplierAddressLine1 ¶
func (u *BillingProfileUpdate) SetOrClearSupplierAddressLine1(value *string) *BillingProfileUpdate
func (*BillingProfileUpdate) SetOrClearSupplierAddressLine2 ¶
func (u *BillingProfileUpdate) SetOrClearSupplierAddressLine2(value *string) *BillingProfileUpdate
func (*BillingProfileUpdate) SetOrClearSupplierAddressPhoneNumber ¶
func (u *BillingProfileUpdate) SetOrClearSupplierAddressPhoneNumber(value *string) *BillingProfileUpdate
func (*BillingProfileUpdate) SetOrClearSupplierAddressPostalCode ¶
func (u *BillingProfileUpdate) SetOrClearSupplierAddressPostalCode(value *string) *BillingProfileUpdate
func (*BillingProfileUpdate) SetOrClearSupplierAddressState ¶
func (u *BillingProfileUpdate) SetOrClearSupplierAddressState(value *string) *BillingProfileUpdate
func (*BillingProfileUpdate) SetPaymentProvider ¶
func (bpu *BillingProfileUpdate) SetPaymentProvider(pp provider.PaymentProvider) *BillingProfileUpdate
SetPaymentProvider sets the "payment_provider" field.
func (*BillingProfileUpdate) SetSupplierAddressCity ¶
func (bpu *BillingProfileUpdate) SetSupplierAddressCity(s string) *BillingProfileUpdate
SetSupplierAddressCity sets the "supplier_address_city" field.
func (*BillingProfileUpdate) SetSupplierAddressCountry ¶
func (bpu *BillingProfileUpdate) SetSupplierAddressCountry(mc models.CountryCode) *BillingProfileUpdate
SetSupplierAddressCountry sets the "supplier_address_country" field.
func (*BillingProfileUpdate) SetSupplierAddressLine1 ¶
func (bpu *BillingProfileUpdate) SetSupplierAddressLine1(s string) *BillingProfileUpdate
SetSupplierAddressLine1 sets the "supplier_address_line1" field.
func (*BillingProfileUpdate) SetSupplierAddressLine2 ¶
func (bpu *BillingProfileUpdate) SetSupplierAddressLine2(s string) *BillingProfileUpdate
SetSupplierAddressLine2 sets the "supplier_address_line2" field.
func (*BillingProfileUpdate) SetSupplierAddressPhoneNumber ¶
func (bpu *BillingProfileUpdate) SetSupplierAddressPhoneNumber(s string) *BillingProfileUpdate
SetSupplierAddressPhoneNumber sets the "supplier_address_phone_number" field.
func (*BillingProfileUpdate) SetSupplierAddressPostalCode ¶
func (bpu *BillingProfileUpdate) SetSupplierAddressPostalCode(s string) *BillingProfileUpdate
SetSupplierAddressPostalCode sets the "supplier_address_postal_code" field.
func (*BillingProfileUpdate) SetSupplierAddressState ¶
func (bpu *BillingProfileUpdate) SetSupplierAddressState(s string) *BillingProfileUpdate
SetSupplierAddressState sets the "supplier_address_state" field.
func (*BillingProfileUpdate) SetSupplierName ¶
func (bpu *BillingProfileUpdate) SetSupplierName(s string) *BillingProfileUpdate
SetSupplierName sets the "supplier_name" field.
func (*BillingProfileUpdate) SetTaxProvider ¶
func (bpu *BillingProfileUpdate) SetTaxProvider(pp provider.TaxProvider) *BillingProfileUpdate
SetTaxProvider sets the "tax_provider" field.
func (*BillingProfileUpdate) SetUpdatedAt ¶
func (bpu *BillingProfileUpdate) SetUpdatedAt(t time.Time) *BillingProfileUpdate
SetUpdatedAt sets the "updated_at" field.
func (*BillingProfileUpdate) SetWorkflowConfig ¶
func (bpu *BillingProfileUpdate) SetWorkflowConfig(b *BillingWorkflowConfig) *BillingProfileUpdate
SetWorkflowConfig sets the "workflow_config" edge to the BillingWorkflowConfig entity.
func (*BillingProfileUpdate) SetWorkflowConfigID ¶
func (bpu *BillingProfileUpdate) SetWorkflowConfigID(s string) *BillingProfileUpdate
SetWorkflowConfigID sets the "workflow_config_id" field.
func (*BillingProfileUpdate) Where ¶
func (bpu *BillingProfileUpdate) Where(ps ...predicate.BillingProfile) *BillingProfileUpdate
Where appends a list predicates to the BillingProfileUpdate builder.
type BillingProfileUpdateOne ¶
type BillingProfileUpdateOne struct {
// contains filtered or unexported fields
}
BillingProfileUpdateOne is the builder for updating a single BillingProfile entity.
func (*BillingProfileUpdateOne) AddBillingCustomerOverride ¶
func (bpuo *BillingProfileUpdateOne) AddBillingCustomerOverride(b ...*BillingCustomerOverride) *BillingProfileUpdateOne
AddBillingCustomerOverride adds the "billing_customer_override" edges to the BillingCustomerOverride entity.
func (*BillingProfileUpdateOne) AddBillingCustomerOverrideIDs ¶
func (bpuo *BillingProfileUpdateOne) AddBillingCustomerOverrideIDs(ids ...string) *BillingProfileUpdateOne
AddBillingCustomerOverrideIDs adds the "billing_customer_override" edge to the BillingCustomerOverride entity by IDs.
func (*BillingProfileUpdateOne) AddBillingInvoiceIDs ¶
func (bpuo *BillingProfileUpdateOne) AddBillingInvoiceIDs(ids ...string) *BillingProfileUpdateOne
AddBillingInvoiceIDs adds the "billing_invoices" edge to the BillingInvoice entity by IDs.
func (*BillingProfileUpdateOne) AddBillingInvoices ¶
func (bpuo *BillingProfileUpdateOne) AddBillingInvoices(b ...*BillingInvoice) *BillingProfileUpdateOne
AddBillingInvoices adds the "billing_invoices" edges to the BillingInvoice entity.
func (*BillingProfileUpdateOne) ClearBillingCustomerOverride ¶
func (bpuo *BillingProfileUpdateOne) ClearBillingCustomerOverride() *BillingProfileUpdateOne
ClearBillingCustomerOverride clears all "billing_customer_override" edges to the BillingCustomerOverride entity.
func (*BillingProfileUpdateOne) ClearBillingInvoices ¶
func (bpuo *BillingProfileUpdateOne) ClearBillingInvoices() *BillingProfileUpdateOne
ClearBillingInvoices clears all "billing_invoices" edges to the BillingInvoice entity.
func (*BillingProfileUpdateOne) ClearDeletedAt ¶
func (bpuo *BillingProfileUpdateOne) ClearDeletedAt() *BillingProfileUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BillingProfileUpdateOne) ClearMetadata ¶
func (bpuo *BillingProfileUpdateOne) ClearMetadata() *BillingProfileUpdateOne
ClearMetadata clears the value of the "metadata" field.
func (*BillingProfileUpdateOne) ClearSupplierAddressCity ¶
func (bpuo *BillingProfileUpdateOne) ClearSupplierAddressCity() *BillingProfileUpdateOne
ClearSupplierAddressCity clears the value of the "supplier_address_city" field.
func (*BillingProfileUpdateOne) ClearSupplierAddressCountry ¶
func (bpuo *BillingProfileUpdateOne) ClearSupplierAddressCountry() *BillingProfileUpdateOne
ClearSupplierAddressCountry clears the value of the "supplier_address_country" field.
func (*BillingProfileUpdateOne) ClearSupplierAddressLine1 ¶
func (bpuo *BillingProfileUpdateOne) ClearSupplierAddressLine1() *BillingProfileUpdateOne
ClearSupplierAddressLine1 clears the value of the "supplier_address_line1" field.
func (*BillingProfileUpdateOne) ClearSupplierAddressLine2 ¶
func (bpuo *BillingProfileUpdateOne) ClearSupplierAddressLine2() *BillingProfileUpdateOne
ClearSupplierAddressLine2 clears the value of the "supplier_address_line2" field.
func (*BillingProfileUpdateOne) ClearSupplierAddressPhoneNumber ¶
func (bpuo *BillingProfileUpdateOne) ClearSupplierAddressPhoneNumber() *BillingProfileUpdateOne
ClearSupplierAddressPhoneNumber clears the value of the "supplier_address_phone_number" field.
func (*BillingProfileUpdateOne) ClearSupplierAddressPostalCode ¶
func (bpuo *BillingProfileUpdateOne) ClearSupplierAddressPostalCode() *BillingProfileUpdateOne
ClearSupplierAddressPostalCode clears the value of the "supplier_address_postal_code" field.
func (*BillingProfileUpdateOne) ClearSupplierAddressState ¶
func (bpuo *BillingProfileUpdateOne) ClearSupplierAddressState() *BillingProfileUpdateOne
ClearSupplierAddressState clears the value of the "supplier_address_state" field.
func (*BillingProfileUpdateOne) ClearWorkflowConfig ¶
func (bpuo *BillingProfileUpdateOne) ClearWorkflowConfig() *BillingProfileUpdateOne
ClearWorkflowConfig clears the "workflow_config" edge to the BillingWorkflowConfig entity.
func (*BillingProfileUpdateOne) Exec ¶
func (bpuo *BillingProfileUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*BillingProfileUpdateOne) ExecContext ¶
func (c *BillingProfileUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingProfileUpdateOne) ExecX ¶
func (bpuo *BillingProfileUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingProfileUpdateOne) Mutation ¶
func (bpuo *BillingProfileUpdateOne) Mutation() *BillingProfileMutation
Mutation returns the BillingProfileMutation object of the builder.
func (*BillingProfileUpdateOne) QueryContext ¶
func (c *BillingProfileUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingProfileUpdateOne) RemoveBillingCustomerOverride ¶
func (bpuo *BillingProfileUpdateOne) RemoveBillingCustomerOverride(b ...*BillingCustomerOverride) *BillingProfileUpdateOne
RemoveBillingCustomerOverride removes "billing_customer_override" edges to BillingCustomerOverride entities.
func (*BillingProfileUpdateOne) RemoveBillingCustomerOverrideIDs ¶
func (bpuo *BillingProfileUpdateOne) RemoveBillingCustomerOverrideIDs(ids ...string) *BillingProfileUpdateOne
RemoveBillingCustomerOverrideIDs removes the "billing_customer_override" edge to BillingCustomerOverride entities by IDs.
func (*BillingProfileUpdateOne) RemoveBillingInvoiceIDs ¶
func (bpuo *BillingProfileUpdateOne) RemoveBillingInvoiceIDs(ids ...string) *BillingProfileUpdateOne
RemoveBillingInvoiceIDs removes the "billing_invoices" edge to BillingInvoice entities by IDs.
func (*BillingProfileUpdateOne) RemoveBillingInvoices ¶
func (bpuo *BillingProfileUpdateOne) RemoveBillingInvoices(b ...*BillingInvoice) *BillingProfileUpdateOne
RemoveBillingInvoices removes "billing_invoices" edges to BillingInvoice entities.
func (*BillingProfileUpdateOne) Save ¶
func (bpuo *BillingProfileUpdateOne) Save(ctx context.Context) (*BillingProfile, error)
Save executes the query and returns the updated BillingProfile entity.
func (*BillingProfileUpdateOne) SaveX ¶
func (bpuo *BillingProfileUpdateOne) SaveX(ctx context.Context) *BillingProfile
SaveX is like Save, but panics if an error occurs.
func (*BillingProfileUpdateOne) Select ¶
func (bpuo *BillingProfileUpdateOne) Select(field string, fields ...string) *BillingProfileUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*BillingProfileUpdateOne) SetDefault ¶
func (bpuo *BillingProfileUpdateOne) SetDefault(b bool) *BillingProfileUpdateOne
SetDefault sets the "default" field.
func (*BillingProfileUpdateOne) SetDeletedAt ¶
func (bpuo *BillingProfileUpdateOne) SetDeletedAt(t time.Time) *BillingProfileUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*BillingProfileUpdateOne) SetInvoicingProvider ¶
func (bpuo *BillingProfileUpdateOne) SetInvoicingProvider(pp provider.InvoicingProvider) *BillingProfileUpdateOne
SetInvoicingProvider sets the "invoicing_provider" field.
func (*BillingProfileUpdateOne) SetMetadata ¶
func (bpuo *BillingProfileUpdateOne) SetMetadata(m map[string]string) *BillingProfileUpdateOne
SetMetadata sets the "metadata" field.
func (*BillingProfileUpdateOne) SetNillableDefault ¶
func (bpuo *BillingProfileUpdateOne) SetNillableDefault(b *bool) *BillingProfileUpdateOne
SetNillableDefault sets the "default" field if the given value is not nil.
func (*BillingProfileUpdateOne) SetNillableDeletedAt ¶
func (bpuo *BillingProfileUpdateOne) SetNillableDeletedAt(t *time.Time) *BillingProfileUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*BillingProfileUpdateOne) SetNillableInvoicingProvider ¶
func (bpuo *BillingProfileUpdateOne) SetNillableInvoicingProvider(pp *provider.InvoicingProvider) *BillingProfileUpdateOne
SetNillableInvoicingProvider sets the "invoicing_provider" field if the given value is not nil.
func (*BillingProfileUpdateOne) SetNillablePaymentProvider ¶
func (bpuo *BillingProfileUpdateOne) SetNillablePaymentProvider(pp *provider.PaymentProvider) *BillingProfileUpdateOne
SetNillablePaymentProvider sets the "payment_provider" field if the given value is not nil.
func (*BillingProfileUpdateOne) SetNillableSupplierAddressCity ¶
func (bpuo *BillingProfileUpdateOne) SetNillableSupplierAddressCity(s *string) *BillingProfileUpdateOne
SetNillableSupplierAddressCity sets the "supplier_address_city" field if the given value is not nil.
func (*BillingProfileUpdateOne) SetNillableSupplierAddressCountry ¶
func (bpuo *BillingProfileUpdateOne) SetNillableSupplierAddressCountry(mc *models.CountryCode) *BillingProfileUpdateOne
SetNillableSupplierAddressCountry sets the "supplier_address_country" field if the given value is not nil.
func (*BillingProfileUpdateOne) SetNillableSupplierAddressLine1 ¶
func (bpuo *BillingProfileUpdateOne) SetNillableSupplierAddressLine1(s *string) *BillingProfileUpdateOne
SetNillableSupplierAddressLine1 sets the "supplier_address_line1" field if the given value is not nil.
func (*BillingProfileUpdateOne) SetNillableSupplierAddressLine2 ¶
func (bpuo *BillingProfileUpdateOne) SetNillableSupplierAddressLine2(s *string) *BillingProfileUpdateOne
SetNillableSupplierAddressLine2 sets the "supplier_address_line2" field if the given value is not nil.
func (*BillingProfileUpdateOne) SetNillableSupplierAddressPhoneNumber ¶
func (bpuo *BillingProfileUpdateOne) SetNillableSupplierAddressPhoneNumber(s *string) *BillingProfileUpdateOne
SetNillableSupplierAddressPhoneNumber sets the "supplier_address_phone_number" field if the given value is not nil.
func (*BillingProfileUpdateOne) SetNillableSupplierAddressPostalCode ¶
func (bpuo *BillingProfileUpdateOne) SetNillableSupplierAddressPostalCode(s *string) *BillingProfileUpdateOne
SetNillableSupplierAddressPostalCode sets the "supplier_address_postal_code" field if the given value is not nil.
func (*BillingProfileUpdateOne) SetNillableSupplierAddressState ¶
func (bpuo *BillingProfileUpdateOne) SetNillableSupplierAddressState(s *string) *BillingProfileUpdateOne
SetNillableSupplierAddressState sets the "supplier_address_state" field if the given value is not nil.
func (*BillingProfileUpdateOne) SetNillableSupplierName ¶
func (bpuo *BillingProfileUpdateOne) SetNillableSupplierName(s *string) *BillingProfileUpdateOne
SetNillableSupplierName sets the "supplier_name" field if the given value is not nil.
func (*BillingProfileUpdateOne) SetNillableTaxProvider ¶
func (bpuo *BillingProfileUpdateOne) SetNillableTaxProvider(pp *provider.TaxProvider) *BillingProfileUpdateOne
SetNillableTaxProvider sets the "tax_provider" field if the given value is not nil.
func (*BillingProfileUpdateOne) SetNillableWorkflowConfigID ¶
func (bpuo *BillingProfileUpdateOne) SetNillableWorkflowConfigID(s *string) *BillingProfileUpdateOne
SetNillableWorkflowConfigID sets the "workflow_config_id" field if the given value is not nil.
func (*BillingProfileUpdateOne) SetOrClearDeletedAt ¶
func (u *BillingProfileUpdateOne) SetOrClearDeletedAt(value *time.Time) *BillingProfileUpdateOne
func (*BillingProfileUpdateOne) SetOrClearMetadata ¶
func (u *BillingProfileUpdateOne) SetOrClearMetadata(value *map[string]string) *BillingProfileUpdateOne
func (*BillingProfileUpdateOne) SetOrClearSupplierAddressCity ¶
func (u *BillingProfileUpdateOne) SetOrClearSupplierAddressCity(value *string) *BillingProfileUpdateOne
func (*BillingProfileUpdateOne) SetOrClearSupplierAddressCountry ¶
func (u *BillingProfileUpdateOne) SetOrClearSupplierAddressCountry(value *models.CountryCode) *BillingProfileUpdateOne
func (*BillingProfileUpdateOne) SetOrClearSupplierAddressLine1 ¶
func (u *BillingProfileUpdateOne) SetOrClearSupplierAddressLine1(value *string) *BillingProfileUpdateOne
func (*BillingProfileUpdateOne) SetOrClearSupplierAddressLine2 ¶
func (u *BillingProfileUpdateOne) SetOrClearSupplierAddressLine2(value *string) *BillingProfileUpdateOne
func (*BillingProfileUpdateOne) SetOrClearSupplierAddressPhoneNumber ¶
func (u *BillingProfileUpdateOne) SetOrClearSupplierAddressPhoneNumber(value *string) *BillingProfileUpdateOne
func (*BillingProfileUpdateOne) SetOrClearSupplierAddressPostalCode ¶
func (u *BillingProfileUpdateOne) SetOrClearSupplierAddressPostalCode(value *string) *BillingProfileUpdateOne
func (*BillingProfileUpdateOne) SetOrClearSupplierAddressState ¶
func (u *BillingProfileUpdateOne) SetOrClearSupplierAddressState(value *string) *BillingProfileUpdateOne
func (*BillingProfileUpdateOne) SetPaymentProvider ¶
func (bpuo *BillingProfileUpdateOne) SetPaymentProvider(pp provider.PaymentProvider) *BillingProfileUpdateOne
SetPaymentProvider sets the "payment_provider" field.
func (*BillingProfileUpdateOne) SetSupplierAddressCity ¶
func (bpuo *BillingProfileUpdateOne) SetSupplierAddressCity(s string) *BillingProfileUpdateOne
SetSupplierAddressCity sets the "supplier_address_city" field.
func (*BillingProfileUpdateOne) SetSupplierAddressCountry ¶
func (bpuo *BillingProfileUpdateOne) SetSupplierAddressCountry(mc models.CountryCode) *BillingProfileUpdateOne
SetSupplierAddressCountry sets the "supplier_address_country" field.
func (*BillingProfileUpdateOne) SetSupplierAddressLine1 ¶
func (bpuo *BillingProfileUpdateOne) SetSupplierAddressLine1(s string) *BillingProfileUpdateOne
SetSupplierAddressLine1 sets the "supplier_address_line1" field.
func (*BillingProfileUpdateOne) SetSupplierAddressLine2 ¶
func (bpuo *BillingProfileUpdateOne) SetSupplierAddressLine2(s string) *BillingProfileUpdateOne
SetSupplierAddressLine2 sets the "supplier_address_line2" field.
func (*BillingProfileUpdateOne) SetSupplierAddressPhoneNumber ¶
func (bpuo *BillingProfileUpdateOne) SetSupplierAddressPhoneNumber(s string) *BillingProfileUpdateOne
SetSupplierAddressPhoneNumber sets the "supplier_address_phone_number" field.
func (*BillingProfileUpdateOne) SetSupplierAddressPostalCode ¶
func (bpuo *BillingProfileUpdateOne) SetSupplierAddressPostalCode(s string) *BillingProfileUpdateOne
SetSupplierAddressPostalCode sets the "supplier_address_postal_code" field.
func (*BillingProfileUpdateOne) SetSupplierAddressState ¶
func (bpuo *BillingProfileUpdateOne) SetSupplierAddressState(s string) *BillingProfileUpdateOne
SetSupplierAddressState sets the "supplier_address_state" field.
func (*BillingProfileUpdateOne) SetSupplierName ¶
func (bpuo *BillingProfileUpdateOne) SetSupplierName(s string) *BillingProfileUpdateOne
SetSupplierName sets the "supplier_name" field.
func (*BillingProfileUpdateOne) SetTaxProvider ¶
func (bpuo *BillingProfileUpdateOne) SetTaxProvider(pp provider.TaxProvider) *BillingProfileUpdateOne
SetTaxProvider sets the "tax_provider" field.
func (*BillingProfileUpdateOne) SetUpdatedAt ¶
func (bpuo *BillingProfileUpdateOne) SetUpdatedAt(t time.Time) *BillingProfileUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*BillingProfileUpdateOne) SetWorkflowConfig ¶
func (bpuo *BillingProfileUpdateOne) SetWorkflowConfig(b *BillingWorkflowConfig) *BillingProfileUpdateOne
SetWorkflowConfig sets the "workflow_config" edge to the BillingWorkflowConfig entity.
func (*BillingProfileUpdateOne) SetWorkflowConfigID ¶
func (bpuo *BillingProfileUpdateOne) SetWorkflowConfigID(s string) *BillingProfileUpdateOne
SetWorkflowConfigID sets the "workflow_config_id" field.
func (*BillingProfileUpdateOne) Where ¶
func (bpuo *BillingProfileUpdateOne) Where(ps ...predicate.BillingProfile) *BillingProfileUpdateOne
Where appends a list predicates to the BillingProfileUpdate builder.
type BillingProfileUpsert ¶
BillingProfileUpsert is the "OnConflict" setter.
func (*BillingProfileUpsert) ClearDeletedAt ¶
func (u *BillingProfileUpsert) ClearDeletedAt() *BillingProfileUpsert
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BillingProfileUpsert) ClearMetadata ¶
func (u *BillingProfileUpsert) ClearMetadata() *BillingProfileUpsert
ClearMetadata clears the value of the "metadata" field.
func (*BillingProfileUpsert) ClearSupplierAddressCity ¶
func (u *BillingProfileUpsert) ClearSupplierAddressCity() *BillingProfileUpsert
ClearSupplierAddressCity clears the value of the "supplier_address_city" field.
func (*BillingProfileUpsert) ClearSupplierAddressCountry ¶
func (u *BillingProfileUpsert) ClearSupplierAddressCountry() *BillingProfileUpsert
ClearSupplierAddressCountry clears the value of the "supplier_address_country" field.
func (*BillingProfileUpsert) ClearSupplierAddressLine1 ¶
func (u *BillingProfileUpsert) ClearSupplierAddressLine1() *BillingProfileUpsert
ClearSupplierAddressLine1 clears the value of the "supplier_address_line1" field.
func (*BillingProfileUpsert) ClearSupplierAddressLine2 ¶
func (u *BillingProfileUpsert) ClearSupplierAddressLine2() *BillingProfileUpsert
ClearSupplierAddressLine2 clears the value of the "supplier_address_line2" field.
func (*BillingProfileUpsert) ClearSupplierAddressPhoneNumber ¶
func (u *BillingProfileUpsert) ClearSupplierAddressPhoneNumber() *BillingProfileUpsert
ClearSupplierAddressPhoneNumber clears the value of the "supplier_address_phone_number" field.
func (*BillingProfileUpsert) ClearSupplierAddressPostalCode ¶
func (u *BillingProfileUpsert) ClearSupplierAddressPostalCode() *BillingProfileUpsert
ClearSupplierAddressPostalCode clears the value of the "supplier_address_postal_code" field.
func (*BillingProfileUpsert) ClearSupplierAddressState ¶
func (u *BillingProfileUpsert) ClearSupplierAddressState() *BillingProfileUpsert
ClearSupplierAddressState clears the value of the "supplier_address_state" field.
func (*BillingProfileUpsert) SetDefault ¶
func (u *BillingProfileUpsert) SetDefault(v bool) *BillingProfileUpsert
SetDefault sets the "default" field.
func (*BillingProfileUpsert) SetDeletedAt ¶
func (u *BillingProfileUpsert) SetDeletedAt(v time.Time) *BillingProfileUpsert
SetDeletedAt sets the "deleted_at" field.
func (*BillingProfileUpsert) SetInvoicingProvider ¶
func (u *BillingProfileUpsert) SetInvoicingProvider(v provider.InvoicingProvider) *BillingProfileUpsert
SetInvoicingProvider sets the "invoicing_provider" field.
func (*BillingProfileUpsert) SetMetadata ¶
func (u *BillingProfileUpsert) SetMetadata(v map[string]string) *BillingProfileUpsert
SetMetadata sets the "metadata" field.
func (*BillingProfileUpsert) SetPaymentProvider ¶
func (u *BillingProfileUpsert) SetPaymentProvider(v provider.PaymentProvider) *BillingProfileUpsert
SetPaymentProvider sets the "payment_provider" field.
func (*BillingProfileUpsert) SetSupplierAddressCity ¶
func (u *BillingProfileUpsert) SetSupplierAddressCity(v string) *BillingProfileUpsert
SetSupplierAddressCity sets the "supplier_address_city" field.
func (*BillingProfileUpsert) SetSupplierAddressCountry ¶
func (u *BillingProfileUpsert) SetSupplierAddressCountry(v models.CountryCode) *BillingProfileUpsert
SetSupplierAddressCountry sets the "supplier_address_country" field.
func (*BillingProfileUpsert) SetSupplierAddressLine1 ¶
func (u *BillingProfileUpsert) SetSupplierAddressLine1(v string) *BillingProfileUpsert
SetSupplierAddressLine1 sets the "supplier_address_line1" field.
func (*BillingProfileUpsert) SetSupplierAddressLine2 ¶
func (u *BillingProfileUpsert) SetSupplierAddressLine2(v string) *BillingProfileUpsert
SetSupplierAddressLine2 sets the "supplier_address_line2" field.
func (*BillingProfileUpsert) SetSupplierAddressPhoneNumber ¶
func (u *BillingProfileUpsert) SetSupplierAddressPhoneNumber(v string) *BillingProfileUpsert
SetSupplierAddressPhoneNumber sets the "supplier_address_phone_number" field.
func (*BillingProfileUpsert) SetSupplierAddressPostalCode ¶
func (u *BillingProfileUpsert) SetSupplierAddressPostalCode(v string) *BillingProfileUpsert
SetSupplierAddressPostalCode sets the "supplier_address_postal_code" field.
func (*BillingProfileUpsert) SetSupplierAddressState ¶
func (u *BillingProfileUpsert) SetSupplierAddressState(v string) *BillingProfileUpsert
SetSupplierAddressState sets the "supplier_address_state" field.
func (*BillingProfileUpsert) SetSupplierName ¶
func (u *BillingProfileUpsert) SetSupplierName(v string) *BillingProfileUpsert
SetSupplierName sets the "supplier_name" field.
func (*BillingProfileUpsert) SetTaxProvider ¶
func (u *BillingProfileUpsert) SetTaxProvider(v provider.TaxProvider) *BillingProfileUpsert
SetTaxProvider sets the "tax_provider" field.
func (*BillingProfileUpsert) SetUpdatedAt ¶
func (u *BillingProfileUpsert) SetUpdatedAt(v time.Time) *BillingProfileUpsert
SetUpdatedAt sets the "updated_at" field.
func (*BillingProfileUpsert) SetWorkflowConfigID ¶
func (u *BillingProfileUpsert) SetWorkflowConfigID(v string) *BillingProfileUpsert
SetWorkflowConfigID sets the "workflow_config_id" field.
func (*BillingProfileUpsert) UpdateDefault ¶
func (u *BillingProfileUpsert) UpdateDefault() *BillingProfileUpsert
UpdateDefault sets the "default" field to the value that was provided on create.
func (*BillingProfileUpsert) UpdateDeletedAt ¶
func (u *BillingProfileUpsert) UpdateDeletedAt() *BillingProfileUpsert
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*BillingProfileUpsert) UpdateInvoicingProvider ¶
func (u *BillingProfileUpsert) UpdateInvoicingProvider() *BillingProfileUpsert
UpdateInvoicingProvider sets the "invoicing_provider" field to the value that was provided on create.
func (*BillingProfileUpsert) UpdateMetadata ¶
func (u *BillingProfileUpsert) UpdateMetadata() *BillingProfileUpsert
UpdateMetadata sets the "metadata" field to the value that was provided on create.
func (*BillingProfileUpsert) UpdatePaymentProvider ¶
func (u *BillingProfileUpsert) UpdatePaymentProvider() *BillingProfileUpsert
UpdatePaymentProvider sets the "payment_provider" field to the value that was provided on create.
func (*BillingProfileUpsert) UpdateSupplierAddressCity ¶
func (u *BillingProfileUpsert) UpdateSupplierAddressCity() *BillingProfileUpsert
UpdateSupplierAddressCity sets the "supplier_address_city" field to the value that was provided on create.
func (*BillingProfileUpsert) UpdateSupplierAddressCountry ¶
func (u *BillingProfileUpsert) UpdateSupplierAddressCountry() *BillingProfileUpsert
UpdateSupplierAddressCountry sets the "supplier_address_country" field to the value that was provided on create.
func (*BillingProfileUpsert) UpdateSupplierAddressLine1 ¶
func (u *BillingProfileUpsert) UpdateSupplierAddressLine1() *BillingProfileUpsert
UpdateSupplierAddressLine1 sets the "supplier_address_line1" field to the value that was provided on create.
func (*BillingProfileUpsert) UpdateSupplierAddressLine2 ¶
func (u *BillingProfileUpsert) UpdateSupplierAddressLine2() *BillingProfileUpsert
UpdateSupplierAddressLine2 sets the "supplier_address_line2" field to the value that was provided on create.
func (*BillingProfileUpsert) UpdateSupplierAddressPhoneNumber ¶
func (u *BillingProfileUpsert) UpdateSupplierAddressPhoneNumber() *BillingProfileUpsert
UpdateSupplierAddressPhoneNumber sets the "supplier_address_phone_number" field to the value that was provided on create.
func (*BillingProfileUpsert) UpdateSupplierAddressPostalCode ¶
func (u *BillingProfileUpsert) UpdateSupplierAddressPostalCode() *BillingProfileUpsert
UpdateSupplierAddressPostalCode sets the "supplier_address_postal_code" field to the value that was provided on create.
func (*BillingProfileUpsert) UpdateSupplierAddressState ¶
func (u *BillingProfileUpsert) UpdateSupplierAddressState() *BillingProfileUpsert
UpdateSupplierAddressState sets the "supplier_address_state" field to the value that was provided on create.
func (*BillingProfileUpsert) UpdateSupplierName ¶
func (u *BillingProfileUpsert) UpdateSupplierName() *BillingProfileUpsert
UpdateSupplierName sets the "supplier_name" field to the value that was provided on create.
func (*BillingProfileUpsert) UpdateTaxProvider ¶
func (u *BillingProfileUpsert) UpdateTaxProvider() *BillingProfileUpsert
UpdateTaxProvider sets the "tax_provider" field to the value that was provided on create.
func (*BillingProfileUpsert) UpdateUpdatedAt ¶
func (u *BillingProfileUpsert) UpdateUpdatedAt() *BillingProfileUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*BillingProfileUpsert) UpdateWorkflowConfigID ¶
func (u *BillingProfileUpsert) UpdateWorkflowConfigID() *BillingProfileUpsert
UpdateWorkflowConfigID sets the "workflow_config_id" field to the value that was provided on create.
type BillingProfileUpsertBulk ¶
type BillingProfileUpsertBulk struct {
// contains filtered or unexported fields
}
BillingProfileUpsertBulk is the builder for "upsert"-ing a bulk of BillingProfile nodes.
func (*BillingProfileUpsertBulk) ClearDeletedAt ¶
func (u *BillingProfileUpsertBulk) ClearDeletedAt() *BillingProfileUpsertBulk
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BillingProfileUpsertBulk) ClearMetadata ¶
func (u *BillingProfileUpsertBulk) ClearMetadata() *BillingProfileUpsertBulk
ClearMetadata clears the value of the "metadata" field.
func (*BillingProfileUpsertBulk) ClearSupplierAddressCity ¶
func (u *BillingProfileUpsertBulk) ClearSupplierAddressCity() *BillingProfileUpsertBulk
ClearSupplierAddressCity clears the value of the "supplier_address_city" field.
func (*BillingProfileUpsertBulk) ClearSupplierAddressCountry ¶
func (u *BillingProfileUpsertBulk) ClearSupplierAddressCountry() *BillingProfileUpsertBulk
ClearSupplierAddressCountry clears the value of the "supplier_address_country" field.
func (*BillingProfileUpsertBulk) ClearSupplierAddressLine1 ¶
func (u *BillingProfileUpsertBulk) ClearSupplierAddressLine1() *BillingProfileUpsertBulk
ClearSupplierAddressLine1 clears the value of the "supplier_address_line1" field.
func (*BillingProfileUpsertBulk) ClearSupplierAddressLine2 ¶
func (u *BillingProfileUpsertBulk) ClearSupplierAddressLine2() *BillingProfileUpsertBulk
ClearSupplierAddressLine2 clears the value of the "supplier_address_line2" field.
func (*BillingProfileUpsertBulk) ClearSupplierAddressPhoneNumber ¶
func (u *BillingProfileUpsertBulk) ClearSupplierAddressPhoneNumber() *BillingProfileUpsertBulk
ClearSupplierAddressPhoneNumber clears the value of the "supplier_address_phone_number" field.
func (*BillingProfileUpsertBulk) ClearSupplierAddressPostalCode ¶
func (u *BillingProfileUpsertBulk) ClearSupplierAddressPostalCode() *BillingProfileUpsertBulk
ClearSupplierAddressPostalCode clears the value of the "supplier_address_postal_code" field.
func (*BillingProfileUpsertBulk) ClearSupplierAddressState ¶
func (u *BillingProfileUpsertBulk) ClearSupplierAddressState() *BillingProfileUpsertBulk
ClearSupplierAddressState clears the value of the "supplier_address_state" field.
func (*BillingProfileUpsertBulk) DoNothing ¶
func (u *BillingProfileUpsertBulk) DoNothing() *BillingProfileUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*BillingProfileUpsertBulk) Exec ¶
func (u *BillingProfileUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*BillingProfileUpsertBulk) ExecX ¶
func (u *BillingProfileUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingProfileUpsertBulk) Ignore ¶
func (u *BillingProfileUpsertBulk) Ignore() *BillingProfileUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.BillingProfile.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*BillingProfileUpsertBulk) SetDefault ¶
func (u *BillingProfileUpsertBulk) SetDefault(v bool) *BillingProfileUpsertBulk
SetDefault sets the "default" field.
func (*BillingProfileUpsertBulk) SetDeletedAt ¶
func (u *BillingProfileUpsertBulk) SetDeletedAt(v time.Time) *BillingProfileUpsertBulk
SetDeletedAt sets the "deleted_at" field.
func (*BillingProfileUpsertBulk) SetInvoicingProvider ¶
func (u *BillingProfileUpsertBulk) SetInvoicingProvider(v provider.InvoicingProvider) *BillingProfileUpsertBulk
SetInvoicingProvider sets the "invoicing_provider" field.
func (*BillingProfileUpsertBulk) SetMetadata ¶
func (u *BillingProfileUpsertBulk) SetMetadata(v map[string]string) *BillingProfileUpsertBulk
SetMetadata sets the "metadata" field.
func (*BillingProfileUpsertBulk) SetPaymentProvider ¶
func (u *BillingProfileUpsertBulk) SetPaymentProvider(v provider.PaymentProvider) *BillingProfileUpsertBulk
SetPaymentProvider sets the "payment_provider" field.
func (*BillingProfileUpsertBulk) SetSupplierAddressCity ¶
func (u *BillingProfileUpsertBulk) SetSupplierAddressCity(v string) *BillingProfileUpsertBulk
SetSupplierAddressCity sets the "supplier_address_city" field.
func (*BillingProfileUpsertBulk) SetSupplierAddressCountry ¶
func (u *BillingProfileUpsertBulk) SetSupplierAddressCountry(v models.CountryCode) *BillingProfileUpsertBulk
SetSupplierAddressCountry sets the "supplier_address_country" field.
func (*BillingProfileUpsertBulk) SetSupplierAddressLine1 ¶
func (u *BillingProfileUpsertBulk) SetSupplierAddressLine1(v string) *BillingProfileUpsertBulk
SetSupplierAddressLine1 sets the "supplier_address_line1" field.
func (*BillingProfileUpsertBulk) SetSupplierAddressLine2 ¶
func (u *BillingProfileUpsertBulk) SetSupplierAddressLine2(v string) *BillingProfileUpsertBulk
SetSupplierAddressLine2 sets the "supplier_address_line2" field.
func (*BillingProfileUpsertBulk) SetSupplierAddressPhoneNumber ¶
func (u *BillingProfileUpsertBulk) SetSupplierAddressPhoneNumber(v string) *BillingProfileUpsertBulk
SetSupplierAddressPhoneNumber sets the "supplier_address_phone_number" field.
func (*BillingProfileUpsertBulk) SetSupplierAddressPostalCode ¶
func (u *BillingProfileUpsertBulk) SetSupplierAddressPostalCode(v string) *BillingProfileUpsertBulk
SetSupplierAddressPostalCode sets the "supplier_address_postal_code" field.
func (*BillingProfileUpsertBulk) SetSupplierAddressState ¶
func (u *BillingProfileUpsertBulk) SetSupplierAddressState(v string) *BillingProfileUpsertBulk
SetSupplierAddressState sets the "supplier_address_state" field.
func (*BillingProfileUpsertBulk) SetSupplierName ¶
func (u *BillingProfileUpsertBulk) SetSupplierName(v string) *BillingProfileUpsertBulk
SetSupplierName sets the "supplier_name" field.
func (*BillingProfileUpsertBulk) SetTaxProvider ¶
func (u *BillingProfileUpsertBulk) SetTaxProvider(v provider.TaxProvider) *BillingProfileUpsertBulk
SetTaxProvider sets the "tax_provider" field.
func (*BillingProfileUpsertBulk) SetUpdatedAt ¶
func (u *BillingProfileUpsertBulk) SetUpdatedAt(v time.Time) *BillingProfileUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*BillingProfileUpsertBulk) SetWorkflowConfigID ¶
func (u *BillingProfileUpsertBulk) SetWorkflowConfigID(v string) *BillingProfileUpsertBulk
SetWorkflowConfigID sets the "workflow_config_id" field.
func (*BillingProfileUpsertBulk) Update ¶
func (u *BillingProfileUpsertBulk) Update(set func(*BillingProfileUpsert)) *BillingProfileUpsertBulk
Update allows overriding fields `UPDATE` values. See the BillingProfileCreateBulk.OnConflict documentation for more info.
func (*BillingProfileUpsertBulk) UpdateDefault ¶
func (u *BillingProfileUpsertBulk) UpdateDefault() *BillingProfileUpsertBulk
UpdateDefault sets the "default" field to the value that was provided on create.
func (*BillingProfileUpsertBulk) UpdateDeletedAt ¶
func (u *BillingProfileUpsertBulk) UpdateDeletedAt() *BillingProfileUpsertBulk
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*BillingProfileUpsertBulk) UpdateInvoicingProvider ¶
func (u *BillingProfileUpsertBulk) UpdateInvoicingProvider() *BillingProfileUpsertBulk
UpdateInvoicingProvider sets the "invoicing_provider" field to the value that was provided on create.
func (*BillingProfileUpsertBulk) UpdateMetadata ¶
func (u *BillingProfileUpsertBulk) UpdateMetadata() *BillingProfileUpsertBulk
UpdateMetadata sets the "metadata" field to the value that was provided on create.
func (*BillingProfileUpsertBulk) UpdateNewValues ¶
func (u *BillingProfileUpsertBulk) UpdateNewValues() *BillingProfileUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.BillingProfile.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(billingprofile.FieldID)
}),
).
Exec(ctx)
func (*BillingProfileUpsertBulk) UpdatePaymentProvider ¶
func (u *BillingProfileUpsertBulk) UpdatePaymentProvider() *BillingProfileUpsertBulk
UpdatePaymentProvider sets the "payment_provider" field to the value that was provided on create.
func (*BillingProfileUpsertBulk) UpdateSupplierAddressCity ¶
func (u *BillingProfileUpsertBulk) UpdateSupplierAddressCity() *BillingProfileUpsertBulk
UpdateSupplierAddressCity sets the "supplier_address_city" field to the value that was provided on create.
func (*BillingProfileUpsertBulk) UpdateSupplierAddressCountry ¶
func (u *BillingProfileUpsertBulk) UpdateSupplierAddressCountry() *BillingProfileUpsertBulk
UpdateSupplierAddressCountry sets the "supplier_address_country" field to the value that was provided on create.
func (*BillingProfileUpsertBulk) UpdateSupplierAddressLine1 ¶
func (u *BillingProfileUpsertBulk) UpdateSupplierAddressLine1() *BillingProfileUpsertBulk
UpdateSupplierAddressLine1 sets the "supplier_address_line1" field to the value that was provided on create.
func (*BillingProfileUpsertBulk) UpdateSupplierAddressLine2 ¶
func (u *BillingProfileUpsertBulk) UpdateSupplierAddressLine2() *BillingProfileUpsertBulk
UpdateSupplierAddressLine2 sets the "supplier_address_line2" field to the value that was provided on create.
func (*BillingProfileUpsertBulk) UpdateSupplierAddressPhoneNumber ¶
func (u *BillingProfileUpsertBulk) UpdateSupplierAddressPhoneNumber() *BillingProfileUpsertBulk
UpdateSupplierAddressPhoneNumber sets the "supplier_address_phone_number" field to the value that was provided on create.
func (*BillingProfileUpsertBulk) UpdateSupplierAddressPostalCode ¶
func (u *BillingProfileUpsertBulk) UpdateSupplierAddressPostalCode() *BillingProfileUpsertBulk
UpdateSupplierAddressPostalCode sets the "supplier_address_postal_code" field to the value that was provided on create.
func (*BillingProfileUpsertBulk) UpdateSupplierAddressState ¶
func (u *BillingProfileUpsertBulk) UpdateSupplierAddressState() *BillingProfileUpsertBulk
UpdateSupplierAddressState sets the "supplier_address_state" field to the value that was provided on create.
func (*BillingProfileUpsertBulk) UpdateSupplierName ¶
func (u *BillingProfileUpsertBulk) UpdateSupplierName() *BillingProfileUpsertBulk
UpdateSupplierName sets the "supplier_name" field to the value that was provided on create.
func (*BillingProfileUpsertBulk) UpdateTaxProvider ¶
func (u *BillingProfileUpsertBulk) UpdateTaxProvider() *BillingProfileUpsertBulk
UpdateTaxProvider sets the "tax_provider" field to the value that was provided on create.
func (*BillingProfileUpsertBulk) UpdateUpdatedAt ¶
func (u *BillingProfileUpsertBulk) UpdateUpdatedAt() *BillingProfileUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*BillingProfileUpsertBulk) UpdateWorkflowConfigID ¶
func (u *BillingProfileUpsertBulk) UpdateWorkflowConfigID() *BillingProfileUpsertBulk
UpdateWorkflowConfigID sets the "workflow_config_id" field to the value that was provided on create.
type BillingProfileUpsertOne ¶
type BillingProfileUpsertOne struct {
// contains filtered or unexported fields
}
BillingProfileUpsertOne is the builder for "upsert"-ing
one BillingProfile node.
func (*BillingProfileUpsertOne) ClearDeletedAt ¶
func (u *BillingProfileUpsertOne) ClearDeletedAt() *BillingProfileUpsertOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BillingProfileUpsertOne) ClearMetadata ¶
func (u *BillingProfileUpsertOne) ClearMetadata() *BillingProfileUpsertOne
ClearMetadata clears the value of the "metadata" field.
func (*BillingProfileUpsertOne) ClearSupplierAddressCity ¶
func (u *BillingProfileUpsertOne) ClearSupplierAddressCity() *BillingProfileUpsertOne
ClearSupplierAddressCity clears the value of the "supplier_address_city" field.
func (*BillingProfileUpsertOne) ClearSupplierAddressCountry ¶
func (u *BillingProfileUpsertOne) ClearSupplierAddressCountry() *BillingProfileUpsertOne
ClearSupplierAddressCountry clears the value of the "supplier_address_country" field.
func (*BillingProfileUpsertOne) ClearSupplierAddressLine1 ¶
func (u *BillingProfileUpsertOne) ClearSupplierAddressLine1() *BillingProfileUpsertOne
ClearSupplierAddressLine1 clears the value of the "supplier_address_line1" field.
func (*BillingProfileUpsertOne) ClearSupplierAddressLine2 ¶
func (u *BillingProfileUpsertOne) ClearSupplierAddressLine2() *BillingProfileUpsertOne
ClearSupplierAddressLine2 clears the value of the "supplier_address_line2" field.
func (*BillingProfileUpsertOne) ClearSupplierAddressPhoneNumber ¶
func (u *BillingProfileUpsertOne) ClearSupplierAddressPhoneNumber() *BillingProfileUpsertOne
ClearSupplierAddressPhoneNumber clears the value of the "supplier_address_phone_number" field.
func (*BillingProfileUpsertOne) ClearSupplierAddressPostalCode ¶
func (u *BillingProfileUpsertOne) ClearSupplierAddressPostalCode() *BillingProfileUpsertOne
ClearSupplierAddressPostalCode clears the value of the "supplier_address_postal_code" field.
func (*BillingProfileUpsertOne) ClearSupplierAddressState ¶
func (u *BillingProfileUpsertOne) ClearSupplierAddressState() *BillingProfileUpsertOne
ClearSupplierAddressState clears the value of the "supplier_address_state" field.
func (*BillingProfileUpsertOne) DoNothing ¶
func (u *BillingProfileUpsertOne) DoNothing() *BillingProfileUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*BillingProfileUpsertOne) Exec ¶
func (u *BillingProfileUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*BillingProfileUpsertOne) ExecX ¶
func (u *BillingProfileUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingProfileUpsertOne) ID ¶
func (u *BillingProfileUpsertOne) ID(ctx context.Context) (id string, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*BillingProfileUpsertOne) IDX ¶
func (u *BillingProfileUpsertOne) IDX(ctx context.Context) string
IDX is like ID, but panics if an error occurs.
func (*BillingProfileUpsertOne) Ignore ¶
func (u *BillingProfileUpsertOne) Ignore() *BillingProfileUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.BillingProfile.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*BillingProfileUpsertOne) SetDefault ¶
func (u *BillingProfileUpsertOne) SetDefault(v bool) *BillingProfileUpsertOne
SetDefault sets the "default" field.
func (*BillingProfileUpsertOne) SetDeletedAt ¶
func (u *BillingProfileUpsertOne) SetDeletedAt(v time.Time) *BillingProfileUpsertOne
SetDeletedAt sets the "deleted_at" field.
func (*BillingProfileUpsertOne) SetInvoicingProvider ¶
func (u *BillingProfileUpsertOne) SetInvoicingProvider(v provider.InvoicingProvider) *BillingProfileUpsertOne
SetInvoicingProvider sets the "invoicing_provider" field.
func (*BillingProfileUpsertOne) SetMetadata ¶
func (u *BillingProfileUpsertOne) SetMetadata(v map[string]string) *BillingProfileUpsertOne
SetMetadata sets the "metadata" field.
func (*BillingProfileUpsertOne) SetPaymentProvider ¶
func (u *BillingProfileUpsertOne) SetPaymentProvider(v provider.PaymentProvider) *BillingProfileUpsertOne
SetPaymentProvider sets the "payment_provider" field.
func (*BillingProfileUpsertOne) SetSupplierAddressCity ¶
func (u *BillingProfileUpsertOne) SetSupplierAddressCity(v string) *BillingProfileUpsertOne
SetSupplierAddressCity sets the "supplier_address_city" field.
func (*BillingProfileUpsertOne) SetSupplierAddressCountry ¶
func (u *BillingProfileUpsertOne) SetSupplierAddressCountry(v models.CountryCode) *BillingProfileUpsertOne
SetSupplierAddressCountry sets the "supplier_address_country" field.
func (*BillingProfileUpsertOne) SetSupplierAddressLine1 ¶
func (u *BillingProfileUpsertOne) SetSupplierAddressLine1(v string) *BillingProfileUpsertOne
SetSupplierAddressLine1 sets the "supplier_address_line1" field.
func (*BillingProfileUpsertOne) SetSupplierAddressLine2 ¶
func (u *BillingProfileUpsertOne) SetSupplierAddressLine2(v string) *BillingProfileUpsertOne
SetSupplierAddressLine2 sets the "supplier_address_line2" field.
func (*BillingProfileUpsertOne) SetSupplierAddressPhoneNumber ¶
func (u *BillingProfileUpsertOne) SetSupplierAddressPhoneNumber(v string) *BillingProfileUpsertOne
SetSupplierAddressPhoneNumber sets the "supplier_address_phone_number" field.
func (*BillingProfileUpsertOne) SetSupplierAddressPostalCode ¶
func (u *BillingProfileUpsertOne) SetSupplierAddressPostalCode(v string) *BillingProfileUpsertOne
SetSupplierAddressPostalCode sets the "supplier_address_postal_code" field.
func (*BillingProfileUpsertOne) SetSupplierAddressState ¶
func (u *BillingProfileUpsertOne) SetSupplierAddressState(v string) *BillingProfileUpsertOne
SetSupplierAddressState sets the "supplier_address_state" field.
func (*BillingProfileUpsertOne) SetSupplierName ¶
func (u *BillingProfileUpsertOne) SetSupplierName(v string) *BillingProfileUpsertOne
SetSupplierName sets the "supplier_name" field.
func (*BillingProfileUpsertOne) SetTaxProvider ¶
func (u *BillingProfileUpsertOne) SetTaxProvider(v provider.TaxProvider) *BillingProfileUpsertOne
SetTaxProvider sets the "tax_provider" field.
func (*BillingProfileUpsertOne) SetUpdatedAt ¶
func (u *BillingProfileUpsertOne) SetUpdatedAt(v time.Time) *BillingProfileUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*BillingProfileUpsertOne) SetWorkflowConfigID ¶
func (u *BillingProfileUpsertOne) SetWorkflowConfigID(v string) *BillingProfileUpsertOne
SetWorkflowConfigID sets the "workflow_config_id" field.
func (*BillingProfileUpsertOne) Update ¶
func (u *BillingProfileUpsertOne) Update(set func(*BillingProfileUpsert)) *BillingProfileUpsertOne
Update allows overriding fields `UPDATE` values. See the BillingProfileCreate.OnConflict documentation for more info.
func (*BillingProfileUpsertOne) UpdateDefault ¶
func (u *BillingProfileUpsertOne) UpdateDefault() *BillingProfileUpsertOne
UpdateDefault sets the "default" field to the value that was provided on create.
func (*BillingProfileUpsertOne) UpdateDeletedAt ¶
func (u *BillingProfileUpsertOne) UpdateDeletedAt() *BillingProfileUpsertOne
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*BillingProfileUpsertOne) UpdateInvoicingProvider ¶
func (u *BillingProfileUpsertOne) UpdateInvoicingProvider() *BillingProfileUpsertOne
UpdateInvoicingProvider sets the "invoicing_provider" field to the value that was provided on create.
func (*BillingProfileUpsertOne) UpdateMetadata ¶
func (u *BillingProfileUpsertOne) UpdateMetadata() *BillingProfileUpsertOne
UpdateMetadata sets the "metadata" field to the value that was provided on create.
func (*BillingProfileUpsertOne) UpdateNewValues ¶
func (u *BillingProfileUpsertOne) UpdateNewValues() *BillingProfileUpsertOne
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.BillingProfile.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(billingprofile.FieldID)
}),
).
Exec(ctx)
func (*BillingProfileUpsertOne) UpdatePaymentProvider ¶
func (u *BillingProfileUpsertOne) UpdatePaymentProvider() *BillingProfileUpsertOne
UpdatePaymentProvider sets the "payment_provider" field to the value that was provided on create.
func (*BillingProfileUpsertOne) UpdateSupplierAddressCity ¶
func (u *BillingProfileUpsertOne) UpdateSupplierAddressCity() *BillingProfileUpsertOne
UpdateSupplierAddressCity sets the "supplier_address_city" field to the value that was provided on create.
func (*BillingProfileUpsertOne) UpdateSupplierAddressCountry ¶
func (u *BillingProfileUpsertOne) UpdateSupplierAddressCountry() *BillingProfileUpsertOne
UpdateSupplierAddressCountry sets the "supplier_address_country" field to the value that was provided on create.
func (*BillingProfileUpsertOne) UpdateSupplierAddressLine1 ¶
func (u *BillingProfileUpsertOne) UpdateSupplierAddressLine1() *BillingProfileUpsertOne
UpdateSupplierAddressLine1 sets the "supplier_address_line1" field to the value that was provided on create.
func (*BillingProfileUpsertOne) UpdateSupplierAddressLine2 ¶
func (u *BillingProfileUpsertOne) UpdateSupplierAddressLine2() *BillingProfileUpsertOne
UpdateSupplierAddressLine2 sets the "supplier_address_line2" field to the value that was provided on create.
func (*BillingProfileUpsertOne) UpdateSupplierAddressPhoneNumber ¶
func (u *BillingProfileUpsertOne) UpdateSupplierAddressPhoneNumber() *BillingProfileUpsertOne
UpdateSupplierAddressPhoneNumber sets the "supplier_address_phone_number" field to the value that was provided on create.
func (*BillingProfileUpsertOne) UpdateSupplierAddressPostalCode ¶
func (u *BillingProfileUpsertOne) UpdateSupplierAddressPostalCode() *BillingProfileUpsertOne
UpdateSupplierAddressPostalCode sets the "supplier_address_postal_code" field to the value that was provided on create.
func (*BillingProfileUpsertOne) UpdateSupplierAddressState ¶
func (u *BillingProfileUpsertOne) UpdateSupplierAddressState() *BillingProfileUpsertOne
UpdateSupplierAddressState sets the "supplier_address_state" field to the value that was provided on create.
func (*BillingProfileUpsertOne) UpdateSupplierName ¶
func (u *BillingProfileUpsertOne) UpdateSupplierName() *BillingProfileUpsertOne
UpdateSupplierName sets the "supplier_name" field to the value that was provided on create.
func (*BillingProfileUpsertOne) UpdateTaxProvider ¶
func (u *BillingProfileUpsertOne) UpdateTaxProvider() *BillingProfileUpsertOne
UpdateTaxProvider sets the "tax_provider" field to the value that was provided on create.
func (*BillingProfileUpsertOne) UpdateUpdatedAt ¶
func (u *BillingProfileUpsertOne) UpdateUpdatedAt() *BillingProfileUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*BillingProfileUpsertOne) UpdateWorkflowConfigID ¶
func (u *BillingProfileUpsertOne) UpdateWorkflowConfigID() *BillingProfileUpsertOne
UpdateWorkflowConfigID sets the "workflow_config_id" field to the value that was provided on create.
type BillingProfiles ¶
type BillingProfiles []*BillingProfile
BillingProfiles is a parsable slice of BillingProfile.
type BillingWorkflowConfig ¶
type BillingWorkflowConfig struct {
// ID of the ent.
ID string `json:"id,omitempty"`
// Namespace holds the value of the "namespace" field.
Namespace string `json:"namespace,omitempty"`
// CreatedAt holds the value of the "created_at" field.
CreatedAt time.Time `json:"created_at,omitempty"`
// UpdatedAt holds the value of the "updated_at" field.
UpdatedAt time.Time `json:"updated_at,omitempty"`
// DeletedAt holds the value of the "deleted_at" field.
DeletedAt *time.Time `json:"deleted_at,omitempty"`
// Timezone holds the value of the "timezone" field.
Timezone *timezone.Timezone `json:"timezone,omitempty"`
// CollectionAlignment holds the value of the "collection_alignment" field.
CollectionAlignment billing.AlignmentKind `json:"collection_alignment,omitempty"`
// ItemCollectionPeriodSeconds holds the value of the "item_collection_period_seconds" field.
ItemCollectionPeriodSeconds int64 `json:"item_collection_period_seconds,omitempty"`
// InvoiceAutoAdvance holds the value of the "invoice_auto_advance" field.
InvoiceAutoAdvance bool `json:"invoice_auto_advance,omitempty"`
// InvoiceDraftPeriodSeconds holds the value of the "invoice_draft_period_seconds" field.
InvoiceDraftPeriodSeconds int64 `json:"invoice_draft_period_seconds,omitempty"`
// InvoiceDueAfterSeconds holds the value of the "invoice_due_after_seconds" field.
InvoiceDueAfterSeconds int64 `json:"invoice_due_after_seconds,omitempty"`
// InvoiceCollectionMethod holds the value of the "invoice_collection_method" field.
InvoiceCollectionMethod billing.CollectionMethod `json:"invoice_collection_method,omitempty"`
// InvoiceItemResolution holds the value of the "invoice_item_resolution" field.
InvoiceItemResolution billing.GranularityResolution `json:"invoice_item_resolution,omitempty"`
// InvoiceItemPerSubject holds the value of the "invoice_item_per_subject" field.
InvoiceItemPerSubject bool `json:"invoice_item_per_subject,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the BillingWorkflowConfigQuery when eager-loading is set.
Edges BillingWorkflowConfigEdges `json:"edges"`
// contains filtered or unexported fields
}
BillingWorkflowConfig is the model entity for the BillingWorkflowConfig schema.
func (*BillingWorkflowConfig) ExecContext ¶
func (c *BillingWorkflowConfig) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingWorkflowConfig) QueryBillingInvoices ¶
func (bwc *BillingWorkflowConfig) QueryBillingInvoices() *BillingInvoiceQuery
QueryBillingInvoices queries the "billing_invoices" edge of the BillingWorkflowConfig entity.
func (*BillingWorkflowConfig) QueryBillingProfile ¶
func (bwc *BillingWorkflowConfig) QueryBillingProfile() *BillingProfileQuery
QueryBillingProfile queries the "billing_profile" edge of the BillingWorkflowConfig entity.
func (*BillingWorkflowConfig) QueryContext ¶
func (c *BillingWorkflowConfig) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingWorkflowConfig) String ¶
func (bwc *BillingWorkflowConfig) String() string
String implements the fmt.Stringer.
func (*BillingWorkflowConfig) Unwrap ¶
func (bwc *BillingWorkflowConfig) Unwrap() *BillingWorkflowConfig
Unwrap unwraps the BillingWorkflowConfig 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 (*BillingWorkflowConfig) Update ¶
func (bwc *BillingWorkflowConfig) Update() *BillingWorkflowConfigUpdateOne
Update returns a builder for updating this BillingWorkflowConfig. Note that you need to call BillingWorkflowConfig.Unwrap() before calling this method if this BillingWorkflowConfig was returned from a transaction, and the transaction was committed or rolled back.
type BillingWorkflowConfigClient ¶
type BillingWorkflowConfigClient struct {
// contains filtered or unexported fields
}
BillingWorkflowConfigClient is a client for the BillingWorkflowConfig schema.
func NewBillingWorkflowConfigClient ¶
func NewBillingWorkflowConfigClient(c config) *BillingWorkflowConfigClient
NewBillingWorkflowConfigClient returns a client for the BillingWorkflowConfig from the given config.
func (*BillingWorkflowConfigClient) Create ¶
func (c *BillingWorkflowConfigClient) Create() *BillingWorkflowConfigCreate
Create returns a builder for creating a BillingWorkflowConfig entity.
func (*BillingWorkflowConfigClient) CreateBulk ¶
func (c *BillingWorkflowConfigClient) CreateBulk(builders ...*BillingWorkflowConfigCreate) *BillingWorkflowConfigCreateBulk
CreateBulk returns a builder for creating a bulk of BillingWorkflowConfig entities.
func (*BillingWorkflowConfigClient) Delete ¶
func (c *BillingWorkflowConfigClient) Delete() *BillingWorkflowConfigDelete
Delete returns a delete builder for BillingWorkflowConfig.
func (*BillingWorkflowConfigClient) DeleteOne ¶
func (c *BillingWorkflowConfigClient) DeleteOne(bwc *BillingWorkflowConfig) *BillingWorkflowConfigDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*BillingWorkflowConfigClient) DeleteOneID ¶
func (c *BillingWorkflowConfigClient) DeleteOneID(id string) *BillingWorkflowConfigDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*BillingWorkflowConfigClient) ExecContext ¶
func (c *BillingWorkflowConfigClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingWorkflowConfigClient) Get ¶
func (c *BillingWorkflowConfigClient) Get(ctx context.Context, id string) (*BillingWorkflowConfig, error)
Get returns a BillingWorkflowConfig entity by its id.
func (*BillingWorkflowConfigClient) GetX ¶
func (c *BillingWorkflowConfigClient) GetX(ctx context.Context, id string) *BillingWorkflowConfig
GetX is like Get, but panics if an error occurs.
func (*BillingWorkflowConfigClient) Hooks ¶
func (c *BillingWorkflowConfigClient) Hooks() []Hook
Hooks returns the client hooks.
func (*BillingWorkflowConfigClient) Intercept ¶
func (c *BillingWorkflowConfigClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `billingworkflowconfig.Intercept(f(g(h())))`.
func (*BillingWorkflowConfigClient) Interceptors ¶
func (c *BillingWorkflowConfigClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*BillingWorkflowConfigClient) MapCreateBulk ¶
func (c *BillingWorkflowConfigClient) MapCreateBulk(slice any, setFunc func(*BillingWorkflowConfigCreate, int)) *BillingWorkflowConfigCreateBulk
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 (*BillingWorkflowConfigClient) Query ¶
func (c *BillingWorkflowConfigClient) Query() *BillingWorkflowConfigQuery
Query returns a query builder for BillingWorkflowConfig.
func (*BillingWorkflowConfigClient) QueryBillingInvoices ¶
func (c *BillingWorkflowConfigClient) QueryBillingInvoices(bwc *BillingWorkflowConfig) *BillingInvoiceQuery
QueryBillingInvoices queries the billing_invoices edge of a BillingWorkflowConfig.
func (*BillingWorkflowConfigClient) QueryBillingProfile ¶
func (c *BillingWorkflowConfigClient) QueryBillingProfile(bwc *BillingWorkflowConfig) *BillingProfileQuery
QueryBillingProfile queries the billing_profile edge of a BillingWorkflowConfig.
func (*BillingWorkflowConfigClient) QueryContext ¶
func (c *BillingWorkflowConfigClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingWorkflowConfigClient) Update ¶
func (c *BillingWorkflowConfigClient) Update() *BillingWorkflowConfigUpdate
Update returns an update builder for BillingWorkflowConfig.
func (*BillingWorkflowConfigClient) UpdateOne ¶
func (c *BillingWorkflowConfigClient) UpdateOne(bwc *BillingWorkflowConfig) *BillingWorkflowConfigUpdateOne
UpdateOne returns an update builder for the given entity.
func (*BillingWorkflowConfigClient) UpdateOneID ¶
func (c *BillingWorkflowConfigClient) UpdateOneID(id string) *BillingWorkflowConfigUpdateOne
UpdateOneID returns an update builder for the given id.
func (*BillingWorkflowConfigClient) Use ¶
func (c *BillingWorkflowConfigClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `billingworkflowconfig.Hooks(f(g(h())))`.
type BillingWorkflowConfigCreate ¶
type BillingWorkflowConfigCreate struct {
// contains filtered or unexported fields
}
BillingWorkflowConfigCreate is the builder for creating a BillingWorkflowConfig entity.
func (*BillingWorkflowConfigCreate) Exec ¶
func (bwcc *BillingWorkflowConfigCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*BillingWorkflowConfigCreate) ExecContext ¶
func (c *BillingWorkflowConfigCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingWorkflowConfigCreate) ExecX ¶
func (bwcc *BillingWorkflowConfigCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingWorkflowConfigCreate) Mutation ¶
func (bwcc *BillingWorkflowConfigCreate) Mutation() *BillingWorkflowConfigMutation
Mutation returns the BillingWorkflowConfigMutation object of the builder.
func (*BillingWorkflowConfigCreate) OnConflict ¶
func (bwcc *BillingWorkflowConfigCreate) OnConflict(opts ...sql.ConflictOption) *BillingWorkflowConfigUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.BillingWorkflowConfig.Create().
SetNamespace(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.BillingWorkflowConfigUpsert) {
SetNamespace(v+v).
}).
Exec(ctx)
func (*BillingWorkflowConfigCreate) OnConflictColumns ¶
func (bwcc *BillingWorkflowConfigCreate) OnConflictColumns(columns ...string) *BillingWorkflowConfigUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.BillingWorkflowConfig.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*BillingWorkflowConfigCreate) QueryContext ¶
func (c *BillingWorkflowConfigCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingWorkflowConfigCreate) Save ¶
func (bwcc *BillingWorkflowConfigCreate) Save(ctx context.Context) (*BillingWorkflowConfig, error)
Save creates the BillingWorkflowConfig in the database.
func (*BillingWorkflowConfigCreate) SaveX ¶
func (bwcc *BillingWorkflowConfigCreate) SaveX(ctx context.Context) *BillingWorkflowConfig
SaveX calls Save and panics if Save returns an error.
func (*BillingWorkflowConfigCreate) SetBillingInvoices ¶
func (bwcc *BillingWorkflowConfigCreate) SetBillingInvoices(b *BillingInvoice) *BillingWorkflowConfigCreate
SetBillingInvoices sets the "billing_invoices" edge to the BillingInvoice entity.
func (*BillingWorkflowConfigCreate) SetBillingInvoicesID ¶
func (bwcc *BillingWorkflowConfigCreate) SetBillingInvoicesID(id string) *BillingWorkflowConfigCreate
SetBillingInvoicesID sets the "billing_invoices" edge to the BillingInvoice entity by ID.
func (*BillingWorkflowConfigCreate) SetBillingProfile ¶
func (bwcc *BillingWorkflowConfigCreate) SetBillingProfile(b *BillingProfile) *BillingWorkflowConfigCreate
SetBillingProfile sets the "billing_profile" edge to the BillingProfile entity.
func (*BillingWorkflowConfigCreate) SetBillingProfileID ¶
func (bwcc *BillingWorkflowConfigCreate) SetBillingProfileID(id string) *BillingWorkflowConfigCreate
SetBillingProfileID sets the "billing_profile" edge to the BillingProfile entity by ID.
func (*BillingWorkflowConfigCreate) SetCollectionAlignment ¶
func (bwcc *BillingWorkflowConfigCreate) SetCollectionAlignment(bk billing.AlignmentKind) *BillingWorkflowConfigCreate
SetCollectionAlignment sets the "collection_alignment" field.
func (*BillingWorkflowConfigCreate) SetCreatedAt ¶
func (bwcc *BillingWorkflowConfigCreate) SetCreatedAt(t time.Time) *BillingWorkflowConfigCreate
SetCreatedAt sets the "created_at" field.
func (*BillingWorkflowConfigCreate) SetDeletedAt ¶
func (bwcc *BillingWorkflowConfigCreate) SetDeletedAt(t time.Time) *BillingWorkflowConfigCreate
SetDeletedAt sets the "deleted_at" field.
func (*BillingWorkflowConfigCreate) SetID ¶
func (bwcc *BillingWorkflowConfigCreate) SetID(s string) *BillingWorkflowConfigCreate
SetID sets the "id" field.
func (*BillingWorkflowConfigCreate) SetInvoiceAutoAdvance ¶
func (bwcc *BillingWorkflowConfigCreate) SetInvoiceAutoAdvance(b bool) *BillingWorkflowConfigCreate
SetInvoiceAutoAdvance sets the "invoice_auto_advance" field.
func (*BillingWorkflowConfigCreate) SetInvoiceCollectionMethod ¶
func (bwcc *BillingWorkflowConfigCreate) SetInvoiceCollectionMethod(bm billing.CollectionMethod) *BillingWorkflowConfigCreate
SetInvoiceCollectionMethod sets the "invoice_collection_method" field.
func (*BillingWorkflowConfigCreate) SetInvoiceDraftPeriodSeconds ¶
func (bwcc *BillingWorkflowConfigCreate) SetInvoiceDraftPeriodSeconds(i int64) *BillingWorkflowConfigCreate
SetInvoiceDraftPeriodSeconds sets the "invoice_draft_period_seconds" field.
func (*BillingWorkflowConfigCreate) SetInvoiceDueAfterSeconds ¶
func (bwcc *BillingWorkflowConfigCreate) SetInvoiceDueAfterSeconds(i int64) *BillingWorkflowConfigCreate
SetInvoiceDueAfterSeconds sets the "invoice_due_after_seconds" field.
func (*BillingWorkflowConfigCreate) SetInvoiceItemPerSubject ¶
func (bwcc *BillingWorkflowConfigCreate) SetInvoiceItemPerSubject(b bool) *BillingWorkflowConfigCreate
SetInvoiceItemPerSubject sets the "invoice_item_per_subject" field.
func (*BillingWorkflowConfigCreate) SetInvoiceItemResolution ¶
func (bwcc *BillingWorkflowConfigCreate) SetInvoiceItemResolution(br billing.GranularityResolution) *BillingWorkflowConfigCreate
SetInvoiceItemResolution sets the "invoice_item_resolution" field.
func (*BillingWorkflowConfigCreate) SetItemCollectionPeriodSeconds ¶
func (bwcc *BillingWorkflowConfigCreate) SetItemCollectionPeriodSeconds(i int64) *BillingWorkflowConfigCreate
SetItemCollectionPeriodSeconds sets the "item_collection_period_seconds" field.
func (*BillingWorkflowConfigCreate) SetNamespace ¶
func (bwcc *BillingWorkflowConfigCreate) SetNamespace(s string) *BillingWorkflowConfigCreate
SetNamespace sets the "namespace" field.
func (*BillingWorkflowConfigCreate) SetNillableBillingInvoicesID ¶
func (bwcc *BillingWorkflowConfigCreate) SetNillableBillingInvoicesID(id *string) *BillingWorkflowConfigCreate
SetNillableBillingInvoicesID sets the "billing_invoices" edge to the BillingInvoice entity by ID if the given value is not nil.
func (*BillingWorkflowConfigCreate) SetNillableBillingProfileID ¶
func (bwcc *BillingWorkflowConfigCreate) SetNillableBillingProfileID(id *string) *BillingWorkflowConfigCreate
SetNillableBillingProfileID sets the "billing_profile" edge to the BillingProfile entity by ID if the given value is not nil.
func (*BillingWorkflowConfigCreate) SetNillableCreatedAt ¶
func (bwcc *BillingWorkflowConfigCreate) SetNillableCreatedAt(t *time.Time) *BillingWorkflowConfigCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*BillingWorkflowConfigCreate) SetNillableDeletedAt ¶
func (bwcc *BillingWorkflowConfigCreate) SetNillableDeletedAt(t *time.Time) *BillingWorkflowConfigCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*BillingWorkflowConfigCreate) SetNillableID ¶
func (bwcc *BillingWorkflowConfigCreate) SetNillableID(s *string) *BillingWorkflowConfigCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*BillingWorkflowConfigCreate) SetNillableTimezone ¶
func (bwcc *BillingWorkflowConfigCreate) SetNillableTimezone(t *timezone.Timezone) *BillingWorkflowConfigCreate
SetNillableTimezone sets the "timezone" field if the given value is not nil.
func (*BillingWorkflowConfigCreate) SetNillableUpdatedAt ¶
func (bwcc *BillingWorkflowConfigCreate) SetNillableUpdatedAt(t *time.Time) *BillingWorkflowConfigCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*BillingWorkflowConfigCreate) SetTimezone ¶
func (bwcc *BillingWorkflowConfigCreate) SetTimezone(t timezone.Timezone) *BillingWorkflowConfigCreate
SetTimezone sets the "timezone" field.
func (*BillingWorkflowConfigCreate) SetUpdatedAt ¶
func (bwcc *BillingWorkflowConfigCreate) SetUpdatedAt(t time.Time) *BillingWorkflowConfigCreate
SetUpdatedAt sets the "updated_at" field.
type BillingWorkflowConfigCreateBulk ¶
type BillingWorkflowConfigCreateBulk struct {
// contains filtered or unexported fields
}
BillingWorkflowConfigCreateBulk is the builder for creating many BillingWorkflowConfig entities in bulk.
func (*BillingWorkflowConfigCreateBulk) Exec ¶
func (bwccb *BillingWorkflowConfigCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*BillingWorkflowConfigCreateBulk) ExecContext ¶
func (c *BillingWorkflowConfigCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingWorkflowConfigCreateBulk) ExecX ¶
func (bwccb *BillingWorkflowConfigCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingWorkflowConfigCreateBulk) OnConflict ¶
func (bwccb *BillingWorkflowConfigCreateBulk) OnConflict(opts ...sql.ConflictOption) *BillingWorkflowConfigUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.BillingWorkflowConfig.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.BillingWorkflowConfigUpsert) {
SetNamespace(v+v).
}).
Exec(ctx)
func (*BillingWorkflowConfigCreateBulk) OnConflictColumns ¶
func (bwccb *BillingWorkflowConfigCreateBulk) OnConflictColumns(columns ...string) *BillingWorkflowConfigUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.BillingWorkflowConfig.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*BillingWorkflowConfigCreateBulk) QueryContext ¶
func (c *BillingWorkflowConfigCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingWorkflowConfigCreateBulk) Save ¶
func (bwccb *BillingWorkflowConfigCreateBulk) Save(ctx context.Context) ([]*BillingWorkflowConfig, error)
Save creates the BillingWorkflowConfig entities in the database.
func (*BillingWorkflowConfigCreateBulk) SaveX ¶
func (bwccb *BillingWorkflowConfigCreateBulk) SaveX(ctx context.Context) []*BillingWorkflowConfig
SaveX is like Save, but panics if an error occurs.
type BillingWorkflowConfigDelete ¶
type BillingWorkflowConfigDelete struct {
// contains filtered or unexported fields
}
BillingWorkflowConfigDelete is the builder for deleting a BillingWorkflowConfig entity.
func (*BillingWorkflowConfigDelete) Exec ¶
func (bwcd *BillingWorkflowConfigDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*BillingWorkflowConfigDelete) ExecContext ¶
func (c *BillingWorkflowConfigDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingWorkflowConfigDelete) ExecX ¶
func (bwcd *BillingWorkflowConfigDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*BillingWorkflowConfigDelete) QueryContext ¶
func (c *BillingWorkflowConfigDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingWorkflowConfigDelete) Where ¶
func (bwcd *BillingWorkflowConfigDelete) Where(ps ...predicate.BillingWorkflowConfig) *BillingWorkflowConfigDelete
Where appends a list predicates to the BillingWorkflowConfigDelete builder.
type BillingWorkflowConfigDeleteOne ¶
type BillingWorkflowConfigDeleteOne struct {
// contains filtered or unexported fields
}
BillingWorkflowConfigDeleteOne is the builder for deleting a single BillingWorkflowConfig entity.
func (*BillingWorkflowConfigDeleteOne) Exec ¶
func (bwcdo *BillingWorkflowConfigDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*BillingWorkflowConfigDeleteOne) ExecX ¶
func (bwcdo *BillingWorkflowConfigDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingWorkflowConfigDeleteOne) Where ¶
func (bwcdo *BillingWorkflowConfigDeleteOne) Where(ps ...predicate.BillingWorkflowConfig) *BillingWorkflowConfigDeleteOne
Where appends a list predicates to the BillingWorkflowConfigDelete builder.
type BillingWorkflowConfigEdges ¶
type BillingWorkflowConfigEdges struct {
// BillingInvoices holds the value of the billing_invoices edge.
BillingInvoices *BillingInvoice `json:"billing_invoices,omitempty"`
// BillingProfile holds the value of the billing_profile edge.
BillingProfile *BillingProfile `json:"billing_profile,omitempty"`
// contains filtered or unexported fields
}
BillingWorkflowConfigEdges holds the relations/edges for other nodes in the graph.
func (BillingWorkflowConfigEdges) BillingInvoicesOrErr ¶
func (e BillingWorkflowConfigEdges) BillingInvoicesOrErr() (*BillingInvoice, error)
BillingInvoicesOrErr returns the BillingInvoices value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (BillingWorkflowConfigEdges) BillingProfileOrErr ¶
func (e BillingWorkflowConfigEdges) BillingProfileOrErr() (*BillingProfile, error)
BillingProfileOrErr returns the BillingProfile value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type BillingWorkflowConfigGroupBy ¶
type BillingWorkflowConfigGroupBy struct {
// contains filtered or unexported fields
}
BillingWorkflowConfigGroupBy is the group-by builder for BillingWorkflowConfig entities.
func (*BillingWorkflowConfigGroupBy) Aggregate ¶
func (bwcgb *BillingWorkflowConfigGroupBy) Aggregate(fns ...AggregateFunc) *BillingWorkflowConfigGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*BillingWorkflowConfigGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*BillingWorkflowConfigGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*BillingWorkflowConfigGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*BillingWorkflowConfigGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*BillingWorkflowConfigGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*BillingWorkflowConfigGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*BillingWorkflowConfigGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*BillingWorkflowConfigGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*BillingWorkflowConfigGroupBy) Scan ¶
func (bwcgb *BillingWorkflowConfigGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*BillingWorkflowConfigGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*BillingWorkflowConfigGroupBy) StringX ¶
StringX is like String, but panics if an error occurs.
type BillingWorkflowConfigMutation ¶
type BillingWorkflowConfigMutation struct {
// contains filtered or unexported fields
}
BillingWorkflowConfigMutation represents an operation that mutates the BillingWorkflowConfig nodes in the graph.
func (*BillingWorkflowConfigMutation) AddField ¶
func (m *BillingWorkflowConfigMutation) 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 (*BillingWorkflowConfigMutation) AddInvoiceDraftPeriodSeconds ¶
func (m *BillingWorkflowConfigMutation) AddInvoiceDraftPeriodSeconds(i int64)
AddInvoiceDraftPeriodSeconds adds i to the "invoice_draft_period_seconds" field.
func (*BillingWorkflowConfigMutation) AddInvoiceDueAfterSeconds ¶
func (m *BillingWorkflowConfigMutation) AddInvoiceDueAfterSeconds(i int64)
AddInvoiceDueAfterSeconds adds i to the "invoice_due_after_seconds" field.
func (*BillingWorkflowConfigMutation) AddItemCollectionPeriodSeconds ¶
func (m *BillingWorkflowConfigMutation) AddItemCollectionPeriodSeconds(i int64)
AddItemCollectionPeriodSeconds adds i to the "item_collection_period_seconds" field.
func (*BillingWorkflowConfigMutation) AddedEdges ¶
func (m *BillingWorkflowConfigMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*BillingWorkflowConfigMutation) AddedField ¶
func (m *BillingWorkflowConfigMutation) 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 (*BillingWorkflowConfigMutation) AddedFields ¶
func (m *BillingWorkflowConfigMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*BillingWorkflowConfigMutation) AddedIDs ¶
func (m *BillingWorkflowConfigMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*BillingWorkflowConfigMutation) AddedInvoiceDraftPeriodSeconds ¶
func (m *BillingWorkflowConfigMutation) AddedInvoiceDraftPeriodSeconds() (r int64, exists bool)
AddedInvoiceDraftPeriodSeconds returns the value that was added to the "invoice_draft_period_seconds" field in this mutation.
func (*BillingWorkflowConfigMutation) AddedInvoiceDueAfterSeconds ¶
func (m *BillingWorkflowConfigMutation) AddedInvoiceDueAfterSeconds() (r int64, exists bool)
AddedInvoiceDueAfterSeconds returns the value that was added to the "invoice_due_after_seconds" field in this mutation.
func (*BillingWorkflowConfigMutation) AddedItemCollectionPeriodSeconds ¶
func (m *BillingWorkflowConfigMutation) AddedItemCollectionPeriodSeconds() (r int64, exists bool)
AddedItemCollectionPeriodSeconds returns the value that was added to the "item_collection_period_seconds" field in this mutation.
func (*BillingWorkflowConfigMutation) BillingInvoicesCleared ¶
func (m *BillingWorkflowConfigMutation) BillingInvoicesCleared() bool
BillingInvoicesCleared reports if the "billing_invoices" edge to the BillingInvoice entity was cleared.
func (*BillingWorkflowConfigMutation) BillingInvoicesID ¶
func (m *BillingWorkflowConfigMutation) BillingInvoicesID() (id string, exists bool)
BillingInvoicesID returns the "billing_invoices" edge ID in the mutation.
func (*BillingWorkflowConfigMutation) BillingInvoicesIDs ¶
func (m *BillingWorkflowConfigMutation) BillingInvoicesIDs() (ids []string)
BillingInvoicesIDs returns the "billing_invoices" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use BillingInvoicesID instead. It exists only for internal usage by the builders.
func (*BillingWorkflowConfigMutation) BillingProfileCleared ¶
func (m *BillingWorkflowConfigMutation) BillingProfileCleared() bool
BillingProfileCleared reports if the "billing_profile" edge to the BillingProfile entity was cleared.
func (*BillingWorkflowConfigMutation) BillingProfileID ¶
func (m *BillingWorkflowConfigMutation) BillingProfileID() (id string, exists bool)
BillingProfileID returns the "billing_profile" edge ID in the mutation.
func (*BillingWorkflowConfigMutation) BillingProfileIDs ¶
func (m *BillingWorkflowConfigMutation) BillingProfileIDs() (ids []string)
BillingProfileIDs returns the "billing_profile" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use BillingProfileID instead. It exists only for internal usage by the builders.
func (*BillingWorkflowConfigMutation) ClearBillingInvoices ¶
func (m *BillingWorkflowConfigMutation) ClearBillingInvoices()
ClearBillingInvoices clears the "billing_invoices" edge to the BillingInvoice entity.
func (*BillingWorkflowConfigMutation) ClearBillingProfile ¶
func (m *BillingWorkflowConfigMutation) ClearBillingProfile()
ClearBillingProfile clears the "billing_profile" edge to the BillingProfile entity.
func (*BillingWorkflowConfigMutation) ClearDeletedAt ¶
func (m *BillingWorkflowConfigMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BillingWorkflowConfigMutation) ClearEdge ¶
func (m *BillingWorkflowConfigMutation) 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 (*BillingWorkflowConfigMutation) ClearField ¶
func (m *BillingWorkflowConfigMutation) 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 (*BillingWorkflowConfigMutation) ClearTimezone ¶
func (m *BillingWorkflowConfigMutation) ClearTimezone()
ClearTimezone clears the value of the "timezone" field.
func (*BillingWorkflowConfigMutation) ClearedEdges ¶
func (m *BillingWorkflowConfigMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*BillingWorkflowConfigMutation) ClearedFields ¶
func (m *BillingWorkflowConfigMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (BillingWorkflowConfigMutation) Client ¶
func (m BillingWorkflowConfigMutation) 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 (*BillingWorkflowConfigMutation) CollectionAlignment ¶
func (m *BillingWorkflowConfigMutation) CollectionAlignment() (r billing.AlignmentKind, exists bool)
CollectionAlignment returns the value of the "collection_alignment" field in the mutation.
func (*BillingWorkflowConfigMutation) CreatedAt ¶
func (m *BillingWorkflowConfigMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*BillingWorkflowConfigMutation) DeletedAt ¶
func (m *BillingWorkflowConfigMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*BillingWorkflowConfigMutation) DeletedAtCleared ¶
func (m *BillingWorkflowConfigMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*BillingWorkflowConfigMutation) EdgeCleared ¶
func (m *BillingWorkflowConfigMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*BillingWorkflowConfigMutation) ExecContext ¶
func (c *BillingWorkflowConfigMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingWorkflowConfigMutation) Field ¶
func (m *BillingWorkflowConfigMutation) 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 (*BillingWorkflowConfigMutation) FieldCleared ¶
func (m *BillingWorkflowConfigMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*BillingWorkflowConfigMutation) Fields ¶
func (m *BillingWorkflowConfigMutation) 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 (*BillingWorkflowConfigMutation) ID ¶
func (m *BillingWorkflowConfigMutation) ID() (id string, 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 (*BillingWorkflowConfigMutation) IDs ¶
func (m *BillingWorkflowConfigMutation) IDs(ctx context.Context) ([]string, error)
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 (*BillingWorkflowConfigMutation) InvoiceAutoAdvance ¶
func (m *BillingWorkflowConfigMutation) InvoiceAutoAdvance() (r bool, exists bool)
InvoiceAutoAdvance returns the value of the "invoice_auto_advance" field in the mutation.
func (*BillingWorkflowConfigMutation) InvoiceCollectionMethod ¶
func (m *BillingWorkflowConfigMutation) InvoiceCollectionMethod() (r billing.CollectionMethod, exists bool)
InvoiceCollectionMethod returns the value of the "invoice_collection_method" field in the mutation.
func (*BillingWorkflowConfigMutation) InvoiceDraftPeriodSeconds ¶
func (m *BillingWorkflowConfigMutation) InvoiceDraftPeriodSeconds() (r int64, exists bool)
InvoiceDraftPeriodSeconds returns the value of the "invoice_draft_period_seconds" field in the mutation.
func (*BillingWorkflowConfigMutation) InvoiceDueAfterSeconds ¶
func (m *BillingWorkflowConfigMutation) InvoiceDueAfterSeconds() (r int64, exists bool)
InvoiceDueAfterSeconds returns the value of the "invoice_due_after_seconds" field in the mutation.
func (*BillingWorkflowConfigMutation) InvoiceItemPerSubject ¶
func (m *BillingWorkflowConfigMutation) InvoiceItemPerSubject() (r bool, exists bool)
InvoiceItemPerSubject returns the value of the "invoice_item_per_subject" field in the mutation.
func (*BillingWorkflowConfigMutation) InvoiceItemResolution ¶
func (m *BillingWorkflowConfigMutation) InvoiceItemResolution() (r billing.GranularityResolution, exists bool)
InvoiceItemResolution returns the value of the "invoice_item_resolution" field in the mutation.
func (*BillingWorkflowConfigMutation) ItemCollectionPeriodSeconds ¶
func (m *BillingWorkflowConfigMutation) ItemCollectionPeriodSeconds() (r int64, exists bool)
ItemCollectionPeriodSeconds returns the value of the "item_collection_period_seconds" field in the mutation.
func (*BillingWorkflowConfigMutation) Namespace ¶
func (m *BillingWorkflowConfigMutation) Namespace() (r string, exists bool)
Namespace returns the value of the "namespace" field in the mutation.
func (*BillingWorkflowConfigMutation) OldCollectionAlignment ¶
func (m *BillingWorkflowConfigMutation) OldCollectionAlignment(ctx context.Context) (v billing.AlignmentKind, err error)
OldCollectionAlignment returns the old "collection_alignment" field's value of the BillingWorkflowConfig entity. If the BillingWorkflowConfig 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 (*BillingWorkflowConfigMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the BillingWorkflowConfig entity. If the BillingWorkflowConfig 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 (*BillingWorkflowConfigMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the BillingWorkflowConfig entity. If the BillingWorkflowConfig 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 (*BillingWorkflowConfigMutation) OldField ¶
func (m *BillingWorkflowConfigMutation) OldField(ctx context.Context, name string) (ent.Value, error)
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 (*BillingWorkflowConfigMutation) OldInvoiceAutoAdvance ¶
func (m *BillingWorkflowConfigMutation) OldInvoiceAutoAdvance(ctx context.Context) (v bool, err error)
OldInvoiceAutoAdvance returns the old "invoice_auto_advance" field's value of the BillingWorkflowConfig entity. If the BillingWorkflowConfig 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 (*BillingWorkflowConfigMutation) OldInvoiceCollectionMethod ¶
func (m *BillingWorkflowConfigMutation) OldInvoiceCollectionMethod(ctx context.Context) (v billing.CollectionMethod, err error)
OldInvoiceCollectionMethod returns the old "invoice_collection_method" field's value of the BillingWorkflowConfig entity. If the BillingWorkflowConfig 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 (*BillingWorkflowConfigMutation) OldInvoiceDraftPeriodSeconds ¶
func (m *BillingWorkflowConfigMutation) OldInvoiceDraftPeriodSeconds(ctx context.Context) (v int64, err error)
OldInvoiceDraftPeriodSeconds returns the old "invoice_draft_period_seconds" field's value of the BillingWorkflowConfig entity. If the BillingWorkflowConfig 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 (*BillingWorkflowConfigMutation) OldInvoiceDueAfterSeconds ¶
func (m *BillingWorkflowConfigMutation) OldInvoiceDueAfterSeconds(ctx context.Context) (v int64, err error)
OldInvoiceDueAfterSeconds returns the old "invoice_due_after_seconds" field's value of the BillingWorkflowConfig entity. If the BillingWorkflowConfig 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 (*BillingWorkflowConfigMutation) OldInvoiceItemPerSubject ¶
func (m *BillingWorkflowConfigMutation) OldInvoiceItemPerSubject(ctx context.Context) (v bool, err error)
OldInvoiceItemPerSubject returns the old "invoice_item_per_subject" field's value of the BillingWorkflowConfig entity. If the BillingWorkflowConfig 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 (*BillingWorkflowConfigMutation) OldInvoiceItemResolution ¶
func (m *BillingWorkflowConfigMutation) OldInvoiceItemResolution(ctx context.Context) (v billing.GranularityResolution, err error)
OldInvoiceItemResolution returns the old "invoice_item_resolution" field's value of the BillingWorkflowConfig entity. If the BillingWorkflowConfig 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 (*BillingWorkflowConfigMutation) OldItemCollectionPeriodSeconds ¶
func (m *BillingWorkflowConfigMutation) OldItemCollectionPeriodSeconds(ctx context.Context) (v int64, err error)
OldItemCollectionPeriodSeconds returns the old "item_collection_period_seconds" field's value of the BillingWorkflowConfig entity. If the BillingWorkflowConfig 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 (*BillingWorkflowConfigMutation) OldNamespace ¶
func (m *BillingWorkflowConfigMutation) OldNamespace(ctx context.Context) (v string, err error)
OldNamespace returns the old "namespace" field's value of the BillingWorkflowConfig entity. If the BillingWorkflowConfig 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 (*BillingWorkflowConfigMutation) OldTimezone ¶
func (m *BillingWorkflowConfigMutation) OldTimezone(ctx context.Context) (v *timezone.Timezone, err error)
OldTimezone returns the old "timezone" field's value of the BillingWorkflowConfig entity. If the BillingWorkflowConfig 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 (*BillingWorkflowConfigMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the BillingWorkflowConfig entity. If the BillingWorkflowConfig 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 (*BillingWorkflowConfigMutation) Op ¶
func (m *BillingWorkflowConfigMutation) Op() Op
Op returns the operation name.
func (*BillingWorkflowConfigMutation) QueryContext ¶
func (c *BillingWorkflowConfigMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingWorkflowConfigMutation) RemovedEdges ¶
func (m *BillingWorkflowConfigMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*BillingWorkflowConfigMutation) RemovedIDs ¶
func (m *BillingWorkflowConfigMutation) 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 (*BillingWorkflowConfigMutation) ResetBillingInvoices ¶
func (m *BillingWorkflowConfigMutation) ResetBillingInvoices()
ResetBillingInvoices resets all changes to the "billing_invoices" edge.
func (*BillingWorkflowConfigMutation) ResetBillingProfile ¶
func (m *BillingWorkflowConfigMutation) ResetBillingProfile()
ResetBillingProfile resets all changes to the "billing_profile" edge.
func (*BillingWorkflowConfigMutation) ResetCollectionAlignment ¶
func (m *BillingWorkflowConfigMutation) ResetCollectionAlignment()
ResetCollectionAlignment resets all changes to the "collection_alignment" field.
func (*BillingWorkflowConfigMutation) ResetCreatedAt ¶
func (m *BillingWorkflowConfigMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*BillingWorkflowConfigMutation) ResetDeletedAt ¶
func (m *BillingWorkflowConfigMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*BillingWorkflowConfigMutation) ResetEdge ¶
func (m *BillingWorkflowConfigMutation) 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 (*BillingWorkflowConfigMutation) ResetField ¶
func (m *BillingWorkflowConfigMutation) 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 (*BillingWorkflowConfigMutation) ResetInvoiceAutoAdvance ¶
func (m *BillingWorkflowConfigMutation) ResetInvoiceAutoAdvance()
ResetInvoiceAutoAdvance resets all changes to the "invoice_auto_advance" field.
func (*BillingWorkflowConfigMutation) ResetInvoiceCollectionMethod ¶
func (m *BillingWorkflowConfigMutation) ResetInvoiceCollectionMethod()
ResetInvoiceCollectionMethod resets all changes to the "invoice_collection_method" field.
func (*BillingWorkflowConfigMutation) ResetInvoiceDraftPeriodSeconds ¶
func (m *BillingWorkflowConfigMutation) ResetInvoiceDraftPeriodSeconds()
ResetInvoiceDraftPeriodSeconds resets all changes to the "invoice_draft_period_seconds" field.
func (*BillingWorkflowConfigMutation) ResetInvoiceDueAfterSeconds ¶
func (m *BillingWorkflowConfigMutation) ResetInvoiceDueAfterSeconds()
ResetInvoiceDueAfterSeconds resets all changes to the "invoice_due_after_seconds" field.
func (*BillingWorkflowConfigMutation) ResetInvoiceItemPerSubject ¶
func (m *BillingWorkflowConfigMutation) ResetInvoiceItemPerSubject()
ResetInvoiceItemPerSubject resets all changes to the "invoice_item_per_subject" field.
func (*BillingWorkflowConfigMutation) ResetInvoiceItemResolution ¶
func (m *BillingWorkflowConfigMutation) ResetInvoiceItemResolution()
ResetInvoiceItemResolution resets all changes to the "invoice_item_resolution" field.
func (*BillingWorkflowConfigMutation) ResetItemCollectionPeriodSeconds ¶
func (m *BillingWorkflowConfigMutation) ResetItemCollectionPeriodSeconds()
ResetItemCollectionPeriodSeconds resets all changes to the "item_collection_period_seconds" field.
func (*BillingWorkflowConfigMutation) ResetNamespace ¶
func (m *BillingWorkflowConfigMutation) ResetNamespace()
ResetNamespace resets all changes to the "namespace" field.
func (*BillingWorkflowConfigMutation) ResetTimezone ¶
func (m *BillingWorkflowConfigMutation) ResetTimezone()
ResetTimezone resets all changes to the "timezone" field.
func (*BillingWorkflowConfigMutation) ResetUpdatedAt ¶
func (m *BillingWorkflowConfigMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*BillingWorkflowConfigMutation) SetBillingInvoicesID ¶
func (m *BillingWorkflowConfigMutation) SetBillingInvoicesID(id string)
SetBillingInvoicesID sets the "billing_invoices" edge to the BillingInvoice entity by id.
func (*BillingWorkflowConfigMutation) SetBillingProfileID ¶
func (m *BillingWorkflowConfigMutation) SetBillingProfileID(id string)
SetBillingProfileID sets the "billing_profile" edge to the BillingProfile entity by id.
func (*BillingWorkflowConfigMutation) SetCollectionAlignment ¶
func (m *BillingWorkflowConfigMutation) SetCollectionAlignment(bk billing.AlignmentKind)
SetCollectionAlignment sets the "collection_alignment" field.
func (*BillingWorkflowConfigMutation) SetCreatedAt ¶
func (m *BillingWorkflowConfigMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*BillingWorkflowConfigMutation) SetDeletedAt ¶
func (m *BillingWorkflowConfigMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*BillingWorkflowConfigMutation) SetField ¶
func (m *BillingWorkflowConfigMutation) 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 (*BillingWorkflowConfigMutation) SetID ¶
func (m *BillingWorkflowConfigMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of BillingWorkflowConfig entities.
func (*BillingWorkflowConfigMutation) SetInvoiceAutoAdvance ¶
func (m *BillingWorkflowConfigMutation) SetInvoiceAutoAdvance(b bool)
SetInvoiceAutoAdvance sets the "invoice_auto_advance" field.
func (*BillingWorkflowConfigMutation) SetInvoiceCollectionMethod ¶
func (m *BillingWorkflowConfigMutation) SetInvoiceCollectionMethod(bm billing.CollectionMethod)
SetInvoiceCollectionMethod sets the "invoice_collection_method" field.
func (*BillingWorkflowConfigMutation) SetInvoiceDraftPeriodSeconds ¶
func (m *BillingWorkflowConfigMutation) SetInvoiceDraftPeriodSeconds(i int64)
SetInvoiceDraftPeriodSeconds sets the "invoice_draft_period_seconds" field.
func (*BillingWorkflowConfigMutation) SetInvoiceDueAfterSeconds ¶
func (m *BillingWorkflowConfigMutation) SetInvoiceDueAfterSeconds(i int64)
SetInvoiceDueAfterSeconds sets the "invoice_due_after_seconds" field.
func (*BillingWorkflowConfigMutation) SetInvoiceItemPerSubject ¶
func (m *BillingWorkflowConfigMutation) SetInvoiceItemPerSubject(b bool)
SetInvoiceItemPerSubject sets the "invoice_item_per_subject" field.
func (*BillingWorkflowConfigMutation) SetInvoiceItemResolution ¶
func (m *BillingWorkflowConfigMutation) SetInvoiceItemResolution(br billing.GranularityResolution)
SetInvoiceItemResolution sets the "invoice_item_resolution" field.
func (*BillingWorkflowConfigMutation) SetItemCollectionPeriodSeconds ¶
func (m *BillingWorkflowConfigMutation) SetItemCollectionPeriodSeconds(i int64)
SetItemCollectionPeriodSeconds sets the "item_collection_period_seconds" field.
func (*BillingWorkflowConfigMutation) SetNamespace ¶
func (m *BillingWorkflowConfigMutation) SetNamespace(s string)
SetNamespace sets the "namespace" field.
func (*BillingWorkflowConfigMutation) SetOp ¶
func (m *BillingWorkflowConfigMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*BillingWorkflowConfigMutation) SetTimezone ¶
func (m *BillingWorkflowConfigMutation) SetTimezone(t timezone.Timezone)
SetTimezone sets the "timezone" field.
func (*BillingWorkflowConfigMutation) SetUpdatedAt ¶
func (m *BillingWorkflowConfigMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*BillingWorkflowConfigMutation) Timezone ¶
func (m *BillingWorkflowConfigMutation) Timezone() (r timezone.Timezone, exists bool)
Timezone returns the value of the "timezone" field in the mutation.
func (*BillingWorkflowConfigMutation) TimezoneCleared ¶
func (m *BillingWorkflowConfigMutation) TimezoneCleared() bool
TimezoneCleared returns if the "timezone" field was cleared in this mutation.
func (BillingWorkflowConfigMutation) Tx ¶
func (m BillingWorkflowConfigMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*BillingWorkflowConfigMutation) Type ¶
func (m *BillingWorkflowConfigMutation) Type() string
Type returns the node type of this mutation (BillingWorkflowConfig).
func (*BillingWorkflowConfigMutation) UpdatedAt ¶
func (m *BillingWorkflowConfigMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*BillingWorkflowConfigMutation) Where ¶
func (m *BillingWorkflowConfigMutation) Where(ps ...predicate.BillingWorkflowConfig)
Where appends a list predicates to the BillingWorkflowConfigMutation builder.
func (*BillingWorkflowConfigMutation) WhereP ¶
func (m *BillingWorkflowConfigMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the BillingWorkflowConfigMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type BillingWorkflowConfigQuery ¶
type BillingWorkflowConfigQuery struct {
// contains filtered or unexported fields
}
BillingWorkflowConfigQuery is the builder for querying BillingWorkflowConfig entities.
func (*BillingWorkflowConfigQuery) Aggregate ¶
func (bwcq *BillingWorkflowConfigQuery) Aggregate(fns ...AggregateFunc) *BillingWorkflowConfigSelect
Aggregate returns a BillingWorkflowConfigSelect configured with the given aggregations.
func (*BillingWorkflowConfigQuery) All ¶
func (bwcq *BillingWorkflowConfigQuery) All(ctx context.Context) ([]*BillingWorkflowConfig, error)
All executes the query and returns a list of BillingWorkflowConfigs.
func (*BillingWorkflowConfigQuery) AllX ¶
func (bwcq *BillingWorkflowConfigQuery) AllX(ctx context.Context) []*BillingWorkflowConfig
AllX is like All, but panics if an error occurs.
func (*BillingWorkflowConfigQuery) Clone ¶
func (bwcq *BillingWorkflowConfigQuery) Clone() *BillingWorkflowConfigQuery
Clone returns a duplicate of the BillingWorkflowConfigQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*BillingWorkflowConfigQuery) Count ¶
func (bwcq *BillingWorkflowConfigQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*BillingWorkflowConfigQuery) CountX ¶
func (bwcq *BillingWorkflowConfigQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*BillingWorkflowConfigQuery) ExecContext ¶
func (c *BillingWorkflowConfigQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingWorkflowConfigQuery) Exist ¶
func (bwcq *BillingWorkflowConfigQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*BillingWorkflowConfigQuery) ExistX ¶
func (bwcq *BillingWorkflowConfigQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*BillingWorkflowConfigQuery) First ¶
func (bwcq *BillingWorkflowConfigQuery) First(ctx context.Context) (*BillingWorkflowConfig, error)
First returns the first BillingWorkflowConfig entity from the query. Returns a *NotFoundError when no BillingWorkflowConfig was found.
func (*BillingWorkflowConfigQuery) FirstID ¶
func (bwcq *BillingWorkflowConfigQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first BillingWorkflowConfig ID from the query. Returns a *NotFoundError when no BillingWorkflowConfig ID was found.
func (*BillingWorkflowConfigQuery) FirstIDX ¶
func (bwcq *BillingWorkflowConfigQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*BillingWorkflowConfigQuery) FirstX ¶
func (bwcq *BillingWorkflowConfigQuery) FirstX(ctx context.Context) *BillingWorkflowConfig
FirstX is like First, but panics if an error occurs.
func (*BillingWorkflowConfigQuery) ForShare ¶
func (bwcq *BillingWorkflowConfigQuery) ForShare(opts ...sql.LockOption) *BillingWorkflowConfigQuery
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 (*BillingWorkflowConfigQuery) ForUpdate ¶
func (bwcq *BillingWorkflowConfigQuery) ForUpdate(opts ...sql.LockOption) *BillingWorkflowConfigQuery
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 (*BillingWorkflowConfigQuery) GroupBy ¶
func (bwcq *BillingWorkflowConfigQuery) GroupBy(field string, fields ...string) *BillingWorkflowConfigGroupBy
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 {
Namespace string `json:"namespace,omitempty"`
Count int `json:"count,omitempty"`
}
client.BillingWorkflowConfig.Query().
GroupBy(billingworkflowconfig.FieldNamespace).
Aggregate(db.Count()).
Scan(ctx, &v)
func (*BillingWorkflowConfigQuery) IDs ¶
func (bwcq *BillingWorkflowConfigQuery) IDs(ctx context.Context) (ids []string, err error)
IDs executes the query and returns a list of BillingWorkflowConfig IDs.
func (*BillingWorkflowConfigQuery) IDsX ¶
func (bwcq *BillingWorkflowConfigQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*BillingWorkflowConfigQuery) Limit ¶
func (bwcq *BillingWorkflowConfigQuery) Limit(limit int) *BillingWorkflowConfigQuery
Limit the number of records to be returned by this query.
func (*BillingWorkflowConfigQuery) Offset ¶
func (bwcq *BillingWorkflowConfigQuery) Offset(offset int) *BillingWorkflowConfigQuery
Offset to start from.
func (*BillingWorkflowConfigQuery) Only ¶
func (bwcq *BillingWorkflowConfigQuery) Only(ctx context.Context) (*BillingWorkflowConfig, error)
Only returns a single BillingWorkflowConfig entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one BillingWorkflowConfig entity is found. Returns a *NotFoundError when no BillingWorkflowConfig entities are found.
func (*BillingWorkflowConfigQuery) OnlyID ¶
func (bwcq *BillingWorkflowConfigQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only BillingWorkflowConfig ID in the query. Returns a *NotSingularError when more than one BillingWorkflowConfig ID is found. Returns a *NotFoundError when no entities are found.
func (*BillingWorkflowConfigQuery) OnlyIDX ¶
func (bwcq *BillingWorkflowConfigQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*BillingWorkflowConfigQuery) OnlyX ¶
func (bwcq *BillingWorkflowConfigQuery) OnlyX(ctx context.Context) *BillingWorkflowConfig
OnlyX is like Only, but panics if an error occurs.
func (*BillingWorkflowConfigQuery) Order ¶
func (bwcq *BillingWorkflowConfigQuery) Order(o ...billingworkflowconfig.OrderOption) *BillingWorkflowConfigQuery
Order specifies how the records should be ordered.
func (*BillingWorkflowConfigQuery) Paginate ¶
func (bwc *BillingWorkflowConfigQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*BillingWorkflowConfig], error)
Paginate runs the query and returns a paginated response. If page is its 0 value then it will return all the items and populate the response page accordingly.
func (*BillingWorkflowConfigQuery) QueryBillingInvoices ¶
func (bwcq *BillingWorkflowConfigQuery) QueryBillingInvoices() *BillingInvoiceQuery
QueryBillingInvoices chains the current query on the "billing_invoices" edge.
func (*BillingWorkflowConfigQuery) QueryBillingProfile ¶
func (bwcq *BillingWorkflowConfigQuery) QueryBillingProfile() *BillingProfileQuery
QueryBillingProfile chains the current query on the "billing_profile" edge.
func (*BillingWorkflowConfigQuery) QueryContext ¶
func (c *BillingWorkflowConfigQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingWorkflowConfigQuery) Select ¶
func (bwcq *BillingWorkflowConfigQuery) Select(fields ...string) *BillingWorkflowConfigSelect
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 {
Namespace string `json:"namespace,omitempty"`
}
client.BillingWorkflowConfig.Query().
Select(billingworkflowconfig.FieldNamespace).
Scan(ctx, &v)
func (*BillingWorkflowConfigQuery) Unique ¶
func (bwcq *BillingWorkflowConfigQuery) Unique(unique bool) *BillingWorkflowConfigQuery
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 (*BillingWorkflowConfigQuery) Where ¶
func (bwcq *BillingWorkflowConfigQuery) Where(ps ...predicate.BillingWorkflowConfig) *BillingWorkflowConfigQuery
Where adds a new predicate for the BillingWorkflowConfigQuery builder.
func (*BillingWorkflowConfigQuery) WithBillingInvoices ¶
func (bwcq *BillingWorkflowConfigQuery) WithBillingInvoices(opts ...func(*BillingInvoiceQuery)) *BillingWorkflowConfigQuery
WithBillingInvoices tells the query-builder to eager-load the nodes that are connected to the "billing_invoices" edge. The optional arguments are used to configure the query builder of the edge.
func (*BillingWorkflowConfigQuery) WithBillingProfile ¶
func (bwcq *BillingWorkflowConfigQuery) WithBillingProfile(opts ...func(*BillingProfileQuery)) *BillingWorkflowConfigQuery
WithBillingProfile tells the query-builder to eager-load the nodes that are connected to the "billing_profile" edge. The optional arguments are used to configure the query builder of the edge.
type BillingWorkflowConfigSelect ¶
type BillingWorkflowConfigSelect struct {
*BillingWorkflowConfigQuery
// contains filtered or unexported fields
}
BillingWorkflowConfigSelect is the builder for selecting fields of BillingWorkflowConfig entities.
func (*BillingWorkflowConfigSelect) Aggregate ¶
func (bwcs *BillingWorkflowConfigSelect) Aggregate(fns ...AggregateFunc) *BillingWorkflowConfigSelect
Aggregate adds the given aggregation functions to the selector query.
func (*BillingWorkflowConfigSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*BillingWorkflowConfigSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (BillingWorkflowConfigSelect) ExecContext ¶
func (c BillingWorkflowConfigSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingWorkflowConfigSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*BillingWorkflowConfigSelect) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*BillingWorkflowConfigSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*BillingWorkflowConfigSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*BillingWorkflowConfigSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*BillingWorkflowConfigSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (BillingWorkflowConfigSelect) QueryContext ¶
func (c BillingWorkflowConfigSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingWorkflowConfigSelect) Scan ¶
func (bwcs *BillingWorkflowConfigSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*BillingWorkflowConfigSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*BillingWorkflowConfigSelect) StringX ¶
StringX is like String, but panics if an error occurs.
type BillingWorkflowConfigUpdate ¶
type BillingWorkflowConfigUpdate struct {
// contains filtered or unexported fields
}
BillingWorkflowConfigUpdate is the builder for updating BillingWorkflowConfig entities.
func (*BillingWorkflowConfigUpdate) AddInvoiceDraftPeriodSeconds ¶
func (bwcu *BillingWorkflowConfigUpdate) AddInvoiceDraftPeriodSeconds(i int64) *BillingWorkflowConfigUpdate
AddInvoiceDraftPeriodSeconds adds i to the "invoice_draft_period_seconds" field.
func (*BillingWorkflowConfigUpdate) AddInvoiceDueAfterSeconds ¶
func (bwcu *BillingWorkflowConfigUpdate) AddInvoiceDueAfterSeconds(i int64) *BillingWorkflowConfigUpdate
AddInvoiceDueAfterSeconds adds i to the "invoice_due_after_seconds" field.
func (*BillingWorkflowConfigUpdate) AddItemCollectionPeriodSeconds ¶
func (bwcu *BillingWorkflowConfigUpdate) AddItemCollectionPeriodSeconds(i int64) *BillingWorkflowConfigUpdate
AddItemCollectionPeriodSeconds adds i to the "item_collection_period_seconds" field.
func (*BillingWorkflowConfigUpdate) ClearBillingInvoices ¶
func (bwcu *BillingWorkflowConfigUpdate) ClearBillingInvoices() *BillingWorkflowConfigUpdate
ClearBillingInvoices clears the "billing_invoices" edge to the BillingInvoice entity.
func (*BillingWorkflowConfigUpdate) ClearBillingProfile ¶
func (bwcu *BillingWorkflowConfigUpdate) ClearBillingProfile() *BillingWorkflowConfigUpdate
ClearBillingProfile clears the "billing_profile" edge to the BillingProfile entity.
func (*BillingWorkflowConfigUpdate) ClearDeletedAt ¶
func (bwcu *BillingWorkflowConfigUpdate) ClearDeletedAt() *BillingWorkflowConfigUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BillingWorkflowConfigUpdate) ClearTimezone ¶
func (bwcu *BillingWorkflowConfigUpdate) ClearTimezone() *BillingWorkflowConfigUpdate
ClearTimezone clears the value of the "timezone" field.
func (*BillingWorkflowConfigUpdate) Exec ¶
func (bwcu *BillingWorkflowConfigUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*BillingWorkflowConfigUpdate) ExecContext ¶
func (c *BillingWorkflowConfigUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingWorkflowConfigUpdate) ExecX ¶
func (bwcu *BillingWorkflowConfigUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingWorkflowConfigUpdate) Mutation ¶
func (bwcu *BillingWorkflowConfigUpdate) Mutation() *BillingWorkflowConfigMutation
Mutation returns the BillingWorkflowConfigMutation object of the builder.
func (*BillingWorkflowConfigUpdate) QueryContext ¶
func (c *BillingWorkflowConfigUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingWorkflowConfigUpdate) Save ¶
func (bwcu *BillingWorkflowConfigUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*BillingWorkflowConfigUpdate) SaveX ¶
func (bwcu *BillingWorkflowConfigUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*BillingWorkflowConfigUpdate) SetBillingInvoices ¶
func (bwcu *BillingWorkflowConfigUpdate) SetBillingInvoices(b *BillingInvoice) *BillingWorkflowConfigUpdate
SetBillingInvoices sets the "billing_invoices" edge to the BillingInvoice entity.
func (*BillingWorkflowConfigUpdate) SetBillingInvoicesID ¶
func (bwcu *BillingWorkflowConfigUpdate) SetBillingInvoicesID(id string) *BillingWorkflowConfigUpdate
SetBillingInvoicesID sets the "billing_invoices" edge to the BillingInvoice entity by ID.
func (*BillingWorkflowConfigUpdate) SetBillingProfile ¶
func (bwcu *BillingWorkflowConfigUpdate) SetBillingProfile(b *BillingProfile) *BillingWorkflowConfigUpdate
SetBillingProfile sets the "billing_profile" edge to the BillingProfile entity.
func (*BillingWorkflowConfigUpdate) SetBillingProfileID ¶
func (bwcu *BillingWorkflowConfigUpdate) SetBillingProfileID(id string) *BillingWorkflowConfigUpdate
SetBillingProfileID sets the "billing_profile" edge to the BillingProfile entity by ID.
func (*BillingWorkflowConfigUpdate) SetCollectionAlignment ¶
func (bwcu *BillingWorkflowConfigUpdate) SetCollectionAlignment(bk billing.AlignmentKind) *BillingWorkflowConfigUpdate
SetCollectionAlignment sets the "collection_alignment" field.
func (*BillingWorkflowConfigUpdate) SetDeletedAt ¶
func (bwcu *BillingWorkflowConfigUpdate) SetDeletedAt(t time.Time) *BillingWorkflowConfigUpdate
SetDeletedAt sets the "deleted_at" field.
func (*BillingWorkflowConfigUpdate) SetInvoiceAutoAdvance ¶
func (bwcu *BillingWorkflowConfigUpdate) SetInvoiceAutoAdvance(b bool) *BillingWorkflowConfigUpdate
SetInvoiceAutoAdvance sets the "invoice_auto_advance" field.
func (*BillingWorkflowConfigUpdate) SetInvoiceCollectionMethod ¶
func (bwcu *BillingWorkflowConfigUpdate) SetInvoiceCollectionMethod(bm billing.CollectionMethod) *BillingWorkflowConfigUpdate
SetInvoiceCollectionMethod sets the "invoice_collection_method" field.
func (*BillingWorkflowConfigUpdate) SetInvoiceDraftPeriodSeconds ¶
func (bwcu *BillingWorkflowConfigUpdate) SetInvoiceDraftPeriodSeconds(i int64) *BillingWorkflowConfigUpdate
SetInvoiceDraftPeriodSeconds sets the "invoice_draft_period_seconds" field.
func (*BillingWorkflowConfigUpdate) SetInvoiceDueAfterSeconds ¶
func (bwcu *BillingWorkflowConfigUpdate) SetInvoiceDueAfterSeconds(i int64) *BillingWorkflowConfigUpdate
SetInvoiceDueAfterSeconds sets the "invoice_due_after_seconds" field.
func (*BillingWorkflowConfigUpdate) SetInvoiceItemPerSubject ¶
func (bwcu *BillingWorkflowConfigUpdate) SetInvoiceItemPerSubject(b bool) *BillingWorkflowConfigUpdate
SetInvoiceItemPerSubject sets the "invoice_item_per_subject" field.
func (*BillingWorkflowConfigUpdate) SetInvoiceItemResolution ¶
func (bwcu *BillingWorkflowConfigUpdate) SetInvoiceItemResolution(br billing.GranularityResolution) *BillingWorkflowConfigUpdate
SetInvoiceItemResolution sets the "invoice_item_resolution" field.
func (*BillingWorkflowConfigUpdate) SetItemCollectionPeriodSeconds ¶
func (bwcu *BillingWorkflowConfigUpdate) SetItemCollectionPeriodSeconds(i int64) *BillingWorkflowConfigUpdate
SetItemCollectionPeriodSeconds sets the "item_collection_period_seconds" field.
func (*BillingWorkflowConfigUpdate) SetNillableBillingInvoicesID ¶
func (bwcu *BillingWorkflowConfigUpdate) SetNillableBillingInvoicesID(id *string) *BillingWorkflowConfigUpdate
SetNillableBillingInvoicesID sets the "billing_invoices" edge to the BillingInvoice entity by ID if the given value is not nil.
func (*BillingWorkflowConfigUpdate) SetNillableBillingProfileID ¶
func (bwcu *BillingWorkflowConfigUpdate) SetNillableBillingProfileID(id *string) *BillingWorkflowConfigUpdate
SetNillableBillingProfileID sets the "billing_profile" edge to the BillingProfile entity by ID if the given value is not nil.
func (*BillingWorkflowConfigUpdate) SetNillableCollectionAlignment ¶
func (bwcu *BillingWorkflowConfigUpdate) SetNillableCollectionAlignment(bk *billing.AlignmentKind) *BillingWorkflowConfigUpdate
SetNillableCollectionAlignment sets the "collection_alignment" field if the given value is not nil.
func (*BillingWorkflowConfigUpdate) SetNillableDeletedAt ¶
func (bwcu *BillingWorkflowConfigUpdate) SetNillableDeletedAt(t *time.Time) *BillingWorkflowConfigUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*BillingWorkflowConfigUpdate) SetNillableInvoiceAutoAdvance ¶
func (bwcu *BillingWorkflowConfigUpdate) SetNillableInvoiceAutoAdvance(b *bool) *BillingWorkflowConfigUpdate
SetNillableInvoiceAutoAdvance sets the "invoice_auto_advance" field if the given value is not nil.
func (*BillingWorkflowConfigUpdate) SetNillableInvoiceCollectionMethod ¶
func (bwcu *BillingWorkflowConfigUpdate) SetNillableInvoiceCollectionMethod(bm *billing.CollectionMethod) *BillingWorkflowConfigUpdate
SetNillableInvoiceCollectionMethod sets the "invoice_collection_method" field if the given value is not nil.
func (*BillingWorkflowConfigUpdate) SetNillableInvoiceDraftPeriodSeconds ¶
func (bwcu *BillingWorkflowConfigUpdate) SetNillableInvoiceDraftPeriodSeconds(i *int64) *BillingWorkflowConfigUpdate
SetNillableInvoiceDraftPeriodSeconds sets the "invoice_draft_period_seconds" field if the given value is not nil.
func (*BillingWorkflowConfigUpdate) SetNillableInvoiceDueAfterSeconds ¶
func (bwcu *BillingWorkflowConfigUpdate) SetNillableInvoiceDueAfterSeconds(i *int64) *BillingWorkflowConfigUpdate
SetNillableInvoiceDueAfterSeconds sets the "invoice_due_after_seconds" field if the given value is not nil.
func (*BillingWorkflowConfigUpdate) SetNillableInvoiceItemPerSubject ¶
func (bwcu *BillingWorkflowConfigUpdate) SetNillableInvoiceItemPerSubject(b *bool) *BillingWorkflowConfigUpdate
SetNillableInvoiceItemPerSubject sets the "invoice_item_per_subject" field if the given value is not nil.
func (*BillingWorkflowConfigUpdate) SetNillableInvoiceItemResolution ¶
func (bwcu *BillingWorkflowConfigUpdate) SetNillableInvoiceItemResolution(br *billing.GranularityResolution) *BillingWorkflowConfigUpdate
SetNillableInvoiceItemResolution sets the "invoice_item_resolution" field if the given value is not nil.
func (*BillingWorkflowConfigUpdate) SetNillableItemCollectionPeriodSeconds ¶
func (bwcu *BillingWorkflowConfigUpdate) SetNillableItemCollectionPeriodSeconds(i *int64) *BillingWorkflowConfigUpdate
SetNillableItemCollectionPeriodSeconds sets the "item_collection_period_seconds" field if the given value is not nil.
func (*BillingWorkflowConfigUpdate) SetNillableTimezone ¶
func (bwcu *BillingWorkflowConfigUpdate) SetNillableTimezone(t *timezone.Timezone) *BillingWorkflowConfigUpdate
SetNillableTimezone sets the "timezone" field if the given value is not nil.
func (*BillingWorkflowConfigUpdate) SetOrClearDeletedAt ¶
func (u *BillingWorkflowConfigUpdate) SetOrClearDeletedAt(value *time.Time) *BillingWorkflowConfigUpdate
func (*BillingWorkflowConfigUpdate) SetOrClearTimezone ¶
func (u *BillingWorkflowConfigUpdate) SetOrClearTimezone(value *timezone.Timezone) *BillingWorkflowConfigUpdate
func (*BillingWorkflowConfigUpdate) SetTimezone ¶
func (bwcu *BillingWorkflowConfigUpdate) SetTimezone(t timezone.Timezone) *BillingWorkflowConfigUpdate
SetTimezone sets the "timezone" field.
func (*BillingWorkflowConfigUpdate) SetUpdatedAt ¶
func (bwcu *BillingWorkflowConfigUpdate) SetUpdatedAt(t time.Time) *BillingWorkflowConfigUpdate
SetUpdatedAt sets the "updated_at" field.
func (*BillingWorkflowConfigUpdate) Where ¶
func (bwcu *BillingWorkflowConfigUpdate) Where(ps ...predicate.BillingWorkflowConfig) *BillingWorkflowConfigUpdate
Where appends a list predicates to the BillingWorkflowConfigUpdate builder.
type BillingWorkflowConfigUpdateOne ¶
type BillingWorkflowConfigUpdateOne struct {
// contains filtered or unexported fields
}
BillingWorkflowConfigUpdateOne is the builder for updating a single BillingWorkflowConfig entity.
func (*BillingWorkflowConfigUpdateOne) AddInvoiceDraftPeriodSeconds ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) AddInvoiceDraftPeriodSeconds(i int64) *BillingWorkflowConfigUpdateOne
AddInvoiceDraftPeriodSeconds adds i to the "invoice_draft_period_seconds" field.
func (*BillingWorkflowConfigUpdateOne) AddInvoiceDueAfterSeconds ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) AddInvoiceDueAfterSeconds(i int64) *BillingWorkflowConfigUpdateOne
AddInvoiceDueAfterSeconds adds i to the "invoice_due_after_seconds" field.
func (*BillingWorkflowConfigUpdateOne) AddItemCollectionPeriodSeconds ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) AddItemCollectionPeriodSeconds(i int64) *BillingWorkflowConfigUpdateOne
AddItemCollectionPeriodSeconds adds i to the "item_collection_period_seconds" field.
func (*BillingWorkflowConfigUpdateOne) ClearBillingInvoices ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) ClearBillingInvoices() *BillingWorkflowConfigUpdateOne
ClearBillingInvoices clears the "billing_invoices" edge to the BillingInvoice entity.
func (*BillingWorkflowConfigUpdateOne) ClearBillingProfile ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) ClearBillingProfile() *BillingWorkflowConfigUpdateOne
ClearBillingProfile clears the "billing_profile" edge to the BillingProfile entity.
func (*BillingWorkflowConfigUpdateOne) ClearDeletedAt ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) ClearDeletedAt() *BillingWorkflowConfigUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BillingWorkflowConfigUpdateOne) ClearTimezone ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) ClearTimezone() *BillingWorkflowConfigUpdateOne
ClearTimezone clears the value of the "timezone" field.
func (*BillingWorkflowConfigUpdateOne) Exec ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*BillingWorkflowConfigUpdateOne) ExecContext ¶
func (c *BillingWorkflowConfigUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*BillingWorkflowConfigUpdateOne) ExecX ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingWorkflowConfigUpdateOne) Mutation ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) Mutation() *BillingWorkflowConfigMutation
Mutation returns the BillingWorkflowConfigMutation object of the builder.
func (*BillingWorkflowConfigUpdateOne) QueryContext ¶
func (c *BillingWorkflowConfigUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*BillingWorkflowConfigUpdateOne) Save ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) Save(ctx context.Context) (*BillingWorkflowConfig, error)
Save executes the query and returns the updated BillingWorkflowConfig entity.
func (*BillingWorkflowConfigUpdateOne) SaveX ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) SaveX(ctx context.Context) *BillingWorkflowConfig
SaveX is like Save, but panics if an error occurs.
func (*BillingWorkflowConfigUpdateOne) Select ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) Select(field string, fields ...string) *BillingWorkflowConfigUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*BillingWorkflowConfigUpdateOne) SetBillingInvoices ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) SetBillingInvoices(b *BillingInvoice) *BillingWorkflowConfigUpdateOne
SetBillingInvoices sets the "billing_invoices" edge to the BillingInvoice entity.
func (*BillingWorkflowConfigUpdateOne) SetBillingInvoicesID ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) SetBillingInvoicesID(id string) *BillingWorkflowConfigUpdateOne
SetBillingInvoicesID sets the "billing_invoices" edge to the BillingInvoice entity by ID.
func (*BillingWorkflowConfigUpdateOne) SetBillingProfile ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) SetBillingProfile(b *BillingProfile) *BillingWorkflowConfigUpdateOne
SetBillingProfile sets the "billing_profile" edge to the BillingProfile entity.
func (*BillingWorkflowConfigUpdateOne) SetBillingProfileID ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) SetBillingProfileID(id string) *BillingWorkflowConfigUpdateOne
SetBillingProfileID sets the "billing_profile" edge to the BillingProfile entity by ID.
func (*BillingWorkflowConfigUpdateOne) SetCollectionAlignment ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) SetCollectionAlignment(bk billing.AlignmentKind) *BillingWorkflowConfigUpdateOne
SetCollectionAlignment sets the "collection_alignment" field.
func (*BillingWorkflowConfigUpdateOne) SetDeletedAt ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) SetDeletedAt(t time.Time) *BillingWorkflowConfigUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*BillingWorkflowConfigUpdateOne) SetInvoiceAutoAdvance ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) SetInvoiceAutoAdvance(b bool) *BillingWorkflowConfigUpdateOne
SetInvoiceAutoAdvance sets the "invoice_auto_advance" field.
func (*BillingWorkflowConfigUpdateOne) SetInvoiceCollectionMethod ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) SetInvoiceCollectionMethod(bm billing.CollectionMethod) *BillingWorkflowConfigUpdateOne
SetInvoiceCollectionMethod sets the "invoice_collection_method" field.
func (*BillingWorkflowConfigUpdateOne) SetInvoiceDraftPeriodSeconds ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) SetInvoiceDraftPeriodSeconds(i int64) *BillingWorkflowConfigUpdateOne
SetInvoiceDraftPeriodSeconds sets the "invoice_draft_period_seconds" field.
func (*BillingWorkflowConfigUpdateOne) SetInvoiceDueAfterSeconds ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) SetInvoiceDueAfterSeconds(i int64) *BillingWorkflowConfigUpdateOne
SetInvoiceDueAfterSeconds sets the "invoice_due_after_seconds" field.
func (*BillingWorkflowConfigUpdateOne) SetInvoiceItemPerSubject ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) SetInvoiceItemPerSubject(b bool) *BillingWorkflowConfigUpdateOne
SetInvoiceItemPerSubject sets the "invoice_item_per_subject" field.
func (*BillingWorkflowConfigUpdateOne) SetInvoiceItemResolution ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) SetInvoiceItemResolution(br billing.GranularityResolution) *BillingWorkflowConfigUpdateOne
SetInvoiceItemResolution sets the "invoice_item_resolution" field.
func (*BillingWorkflowConfigUpdateOne) SetItemCollectionPeriodSeconds ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) SetItemCollectionPeriodSeconds(i int64) *BillingWorkflowConfigUpdateOne
SetItemCollectionPeriodSeconds sets the "item_collection_period_seconds" field.
func (*BillingWorkflowConfigUpdateOne) SetNillableBillingInvoicesID ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) SetNillableBillingInvoicesID(id *string) *BillingWorkflowConfigUpdateOne
SetNillableBillingInvoicesID sets the "billing_invoices" edge to the BillingInvoice entity by ID if the given value is not nil.
func (*BillingWorkflowConfigUpdateOne) SetNillableBillingProfileID ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) SetNillableBillingProfileID(id *string) *BillingWorkflowConfigUpdateOne
SetNillableBillingProfileID sets the "billing_profile" edge to the BillingProfile entity by ID if the given value is not nil.
func (*BillingWorkflowConfigUpdateOne) SetNillableCollectionAlignment ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) SetNillableCollectionAlignment(bk *billing.AlignmentKind) *BillingWorkflowConfigUpdateOne
SetNillableCollectionAlignment sets the "collection_alignment" field if the given value is not nil.
func (*BillingWorkflowConfigUpdateOne) SetNillableDeletedAt ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) SetNillableDeletedAt(t *time.Time) *BillingWorkflowConfigUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*BillingWorkflowConfigUpdateOne) SetNillableInvoiceAutoAdvance ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) SetNillableInvoiceAutoAdvance(b *bool) *BillingWorkflowConfigUpdateOne
SetNillableInvoiceAutoAdvance sets the "invoice_auto_advance" field if the given value is not nil.
func (*BillingWorkflowConfigUpdateOne) SetNillableInvoiceCollectionMethod ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) SetNillableInvoiceCollectionMethod(bm *billing.CollectionMethod) *BillingWorkflowConfigUpdateOne
SetNillableInvoiceCollectionMethod sets the "invoice_collection_method" field if the given value is not nil.
func (*BillingWorkflowConfigUpdateOne) SetNillableInvoiceDraftPeriodSeconds ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) SetNillableInvoiceDraftPeriodSeconds(i *int64) *BillingWorkflowConfigUpdateOne
SetNillableInvoiceDraftPeriodSeconds sets the "invoice_draft_period_seconds" field if the given value is not nil.
func (*BillingWorkflowConfigUpdateOne) SetNillableInvoiceDueAfterSeconds ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) SetNillableInvoiceDueAfterSeconds(i *int64) *BillingWorkflowConfigUpdateOne
SetNillableInvoiceDueAfterSeconds sets the "invoice_due_after_seconds" field if the given value is not nil.
func (*BillingWorkflowConfigUpdateOne) SetNillableInvoiceItemPerSubject ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) SetNillableInvoiceItemPerSubject(b *bool) *BillingWorkflowConfigUpdateOne
SetNillableInvoiceItemPerSubject sets the "invoice_item_per_subject" field if the given value is not nil.
func (*BillingWorkflowConfigUpdateOne) SetNillableInvoiceItemResolution ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) SetNillableInvoiceItemResolution(br *billing.GranularityResolution) *BillingWorkflowConfigUpdateOne
SetNillableInvoiceItemResolution sets the "invoice_item_resolution" field if the given value is not nil.
func (*BillingWorkflowConfigUpdateOne) SetNillableItemCollectionPeriodSeconds ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) SetNillableItemCollectionPeriodSeconds(i *int64) *BillingWorkflowConfigUpdateOne
SetNillableItemCollectionPeriodSeconds sets the "item_collection_period_seconds" field if the given value is not nil.
func (*BillingWorkflowConfigUpdateOne) SetNillableTimezone ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) SetNillableTimezone(t *timezone.Timezone) *BillingWorkflowConfigUpdateOne
SetNillableTimezone sets the "timezone" field if the given value is not nil.
func (*BillingWorkflowConfigUpdateOne) SetOrClearDeletedAt ¶
func (u *BillingWorkflowConfigUpdateOne) SetOrClearDeletedAt(value *time.Time) *BillingWorkflowConfigUpdateOne
func (*BillingWorkflowConfigUpdateOne) SetOrClearTimezone ¶
func (u *BillingWorkflowConfigUpdateOne) SetOrClearTimezone(value *timezone.Timezone) *BillingWorkflowConfigUpdateOne
func (*BillingWorkflowConfigUpdateOne) SetTimezone ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) SetTimezone(t timezone.Timezone) *BillingWorkflowConfigUpdateOne
SetTimezone sets the "timezone" field.
func (*BillingWorkflowConfigUpdateOne) SetUpdatedAt ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) SetUpdatedAt(t time.Time) *BillingWorkflowConfigUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*BillingWorkflowConfigUpdateOne) Where ¶
func (bwcuo *BillingWorkflowConfigUpdateOne) Where(ps ...predicate.BillingWorkflowConfig) *BillingWorkflowConfigUpdateOne
Where appends a list predicates to the BillingWorkflowConfigUpdate builder.
type BillingWorkflowConfigUpsert ¶
BillingWorkflowConfigUpsert is the "OnConflict" setter.
func (*BillingWorkflowConfigUpsert) AddInvoiceDraftPeriodSeconds ¶
func (u *BillingWorkflowConfigUpsert) AddInvoiceDraftPeriodSeconds(v int64) *BillingWorkflowConfigUpsert
AddInvoiceDraftPeriodSeconds adds v to the "invoice_draft_period_seconds" field.
func (*BillingWorkflowConfigUpsert) AddInvoiceDueAfterSeconds ¶
func (u *BillingWorkflowConfigUpsert) AddInvoiceDueAfterSeconds(v int64) *BillingWorkflowConfigUpsert
AddInvoiceDueAfterSeconds adds v to the "invoice_due_after_seconds" field.
func (*BillingWorkflowConfigUpsert) AddItemCollectionPeriodSeconds ¶
func (u *BillingWorkflowConfigUpsert) AddItemCollectionPeriodSeconds(v int64) *BillingWorkflowConfigUpsert
AddItemCollectionPeriodSeconds adds v to the "item_collection_period_seconds" field.
func (*BillingWorkflowConfigUpsert) ClearDeletedAt ¶
func (u *BillingWorkflowConfigUpsert) ClearDeletedAt() *BillingWorkflowConfigUpsert
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BillingWorkflowConfigUpsert) ClearTimezone ¶
func (u *BillingWorkflowConfigUpsert) ClearTimezone() *BillingWorkflowConfigUpsert
ClearTimezone clears the value of the "timezone" field.
func (*BillingWorkflowConfigUpsert) SetCollectionAlignment ¶
func (u *BillingWorkflowConfigUpsert) SetCollectionAlignment(v billing.AlignmentKind) *BillingWorkflowConfigUpsert
SetCollectionAlignment sets the "collection_alignment" field.
func (*BillingWorkflowConfigUpsert) SetDeletedAt ¶
func (u *BillingWorkflowConfigUpsert) SetDeletedAt(v time.Time) *BillingWorkflowConfigUpsert
SetDeletedAt sets the "deleted_at" field.
func (*BillingWorkflowConfigUpsert) SetInvoiceAutoAdvance ¶
func (u *BillingWorkflowConfigUpsert) SetInvoiceAutoAdvance(v bool) *BillingWorkflowConfigUpsert
SetInvoiceAutoAdvance sets the "invoice_auto_advance" field.
func (*BillingWorkflowConfigUpsert) SetInvoiceCollectionMethod ¶
func (u *BillingWorkflowConfigUpsert) SetInvoiceCollectionMethod(v billing.CollectionMethod) *BillingWorkflowConfigUpsert
SetInvoiceCollectionMethod sets the "invoice_collection_method" field.
func (*BillingWorkflowConfigUpsert) SetInvoiceDraftPeriodSeconds ¶
func (u *BillingWorkflowConfigUpsert) SetInvoiceDraftPeriodSeconds(v int64) *BillingWorkflowConfigUpsert
SetInvoiceDraftPeriodSeconds sets the "invoice_draft_period_seconds" field.
func (*BillingWorkflowConfigUpsert) SetInvoiceDueAfterSeconds ¶
func (u *BillingWorkflowConfigUpsert) SetInvoiceDueAfterSeconds(v int64) *BillingWorkflowConfigUpsert
SetInvoiceDueAfterSeconds sets the "invoice_due_after_seconds" field.
func (*BillingWorkflowConfigUpsert) SetInvoiceItemPerSubject ¶
func (u *BillingWorkflowConfigUpsert) SetInvoiceItemPerSubject(v bool) *BillingWorkflowConfigUpsert
SetInvoiceItemPerSubject sets the "invoice_item_per_subject" field.
func (*BillingWorkflowConfigUpsert) SetInvoiceItemResolution ¶
func (u *BillingWorkflowConfigUpsert) SetInvoiceItemResolution(v billing.GranularityResolution) *BillingWorkflowConfigUpsert
SetInvoiceItemResolution sets the "invoice_item_resolution" field.
func (*BillingWorkflowConfigUpsert) SetItemCollectionPeriodSeconds ¶
func (u *BillingWorkflowConfigUpsert) SetItemCollectionPeriodSeconds(v int64) *BillingWorkflowConfigUpsert
SetItemCollectionPeriodSeconds sets the "item_collection_period_seconds" field.
func (*BillingWorkflowConfigUpsert) SetTimezone ¶
func (u *BillingWorkflowConfigUpsert) SetTimezone(v timezone.Timezone) *BillingWorkflowConfigUpsert
SetTimezone sets the "timezone" field.
func (*BillingWorkflowConfigUpsert) SetUpdatedAt ¶
func (u *BillingWorkflowConfigUpsert) SetUpdatedAt(v time.Time) *BillingWorkflowConfigUpsert
SetUpdatedAt sets the "updated_at" field.
func (*BillingWorkflowConfigUpsert) UpdateCollectionAlignment ¶
func (u *BillingWorkflowConfigUpsert) UpdateCollectionAlignment() *BillingWorkflowConfigUpsert
UpdateCollectionAlignment sets the "collection_alignment" field to the value that was provided on create.
func (*BillingWorkflowConfigUpsert) UpdateDeletedAt ¶
func (u *BillingWorkflowConfigUpsert) UpdateDeletedAt() *BillingWorkflowConfigUpsert
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*BillingWorkflowConfigUpsert) UpdateInvoiceAutoAdvance ¶
func (u *BillingWorkflowConfigUpsert) UpdateInvoiceAutoAdvance() *BillingWorkflowConfigUpsert
UpdateInvoiceAutoAdvance sets the "invoice_auto_advance" field to the value that was provided on create.
func (*BillingWorkflowConfigUpsert) UpdateInvoiceCollectionMethod ¶
func (u *BillingWorkflowConfigUpsert) UpdateInvoiceCollectionMethod() *BillingWorkflowConfigUpsert
UpdateInvoiceCollectionMethod sets the "invoice_collection_method" field to the value that was provided on create.
func (*BillingWorkflowConfigUpsert) UpdateInvoiceDraftPeriodSeconds ¶
func (u *BillingWorkflowConfigUpsert) UpdateInvoiceDraftPeriodSeconds() *BillingWorkflowConfigUpsert
UpdateInvoiceDraftPeriodSeconds sets the "invoice_draft_period_seconds" field to the value that was provided on create.
func (*BillingWorkflowConfigUpsert) UpdateInvoiceDueAfterSeconds ¶
func (u *BillingWorkflowConfigUpsert) UpdateInvoiceDueAfterSeconds() *BillingWorkflowConfigUpsert
UpdateInvoiceDueAfterSeconds sets the "invoice_due_after_seconds" field to the value that was provided on create.
func (*BillingWorkflowConfigUpsert) UpdateInvoiceItemPerSubject ¶
func (u *BillingWorkflowConfigUpsert) UpdateInvoiceItemPerSubject() *BillingWorkflowConfigUpsert
UpdateInvoiceItemPerSubject sets the "invoice_item_per_subject" field to the value that was provided on create.
func (*BillingWorkflowConfigUpsert) UpdateInvoiceItemResolution ¶
func (u *BillingWorkflowConfigUpsert) UpdateInvoiceItemResolution() *BillingWorkflowConfigUpsert
UpdateInvoiceItemResolution sets the "invoice_item_resolution" field to the value that was provided on create.
func (*BillingWorkflowConfigUpsert) UpdateItemCollectionPeriodSeconds ¶
func (u *BillingWorkflowConfigUpsert) UpdateItemCollectionPeriodSeconds() *BillingWorkflowConfigUpsert
UpdateItemCollectionPeriodSeconds sets the "item_collection_period_seconds" field to the value that was provided on create.
func (*BillingWorkflowConfigUpsert) UpdateTimezone ¶
func (u *BillingWorkflowConfigUpsert) UpdateTimezone() *BillingWorkflowConfigUpsert
UpdateTimezone sets the "timezone" field to the value that was provided on create.
func (*BillingWorkflowConfigUpsert) UpdateUpdatedAt ¶
func (u *BillingWorkflowConfigUpsert) UpdateUpdatedAt() *BillingWorkflowConfigUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type BillingWorkflowConfigUpsertBulk ¶
type BillingWorkflowConfigUpsertBulk struct {
// contains filtered or unexported fields
}
BillingWorkflowConfigUpsertBulk is the builder for "upsert"-ing a bulk of BillingWorkflowConfig nodes.
func (*BillingWorkflowConfigUpsertBulk) AddInvoiceDraftPeriodSeconds ¶
func (u *BillingWorkflowConfigUpsertBulk) AddInvoiceDraftPeriodSeconds(v int64) *BillingWorkflowConfigUpsertBulk
AddInvoiceDraftPeriodSeconds adds v to the "invoice_draft_period_seconds" field.
func (*BillingWorkflowConfigUpsertBulk) AddInvoiceDueAfterSeconds ¶
func (u *BillingWorkflowConfigUpsertBulk) AddInvoiceDueAfterSeconds(v int64) *BillingWorkflowConfigUpsertBulk
AddInvoiceDueAfterSeconds adds v to the "invoice_due_after_seconds" field.
func (*BillingWorkflowConfigUpsertBulk) AddItemCollectionPeriodSeconds ¶
func (u *BillingWorkflowConfigUpsertBulk) AddItemCollectionPeriodSeconds(v int64) *BillingWorkflowConfigUpsertBulk
AddItemCollectionPeriodSeconds adds v to the "item_collection_period_seconds" field.
func (*BillingWorkflowConfigUpsertBulk) ClearDeletedAt ¶
func (u *BillingWorkflowConfigUpsertBulk) ClearDeletedAt() *BillingWorkflowConfigUpsertBulk
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BillingWorkflowConfigUpsertBulk) ClearTimezone ¶
func (u *BillingWorkflowConfigUpsertBulk) ClearTimezone() *BillingWorkflowConfigUpsertBulk
ClearTimezone clears the value of the "timezone" field.
func (*BillingWorkflowConfigUpsertBulk) DoNothing ¶
func (u *BillingWorkflowConfigUpsertBulk) DoNothing() *BillingWorkflowConfigUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*BillingWorkflowConfigUpsertBulk) Exec ¶
func (u *BillingWorkflowConfigUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*BillingWorkflowConfigUpsertBulk) ExecX ¶
func (u *BillingWorkflowConfigUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingWorkflowConfigUpsertBulk) Ignore ¶
func (u *BillingWorkflowConfigUpsertBulk) Ignore() *BillingWorkflowConfigUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.BillingWorkflowConfig.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*BillingWorkflowConfigUpsertBulk) SetCollectionAlignment ¶
func (u *BillingWorkflowConfigUpsertBulk) SetCollectionAlignment(v billing.AlignmentKind) *BillingWorkflowConfigUpsertBulk
SetCollectionAlignment sets the "collection_alignment" field.
func (*BillingWorkflowConfigUpsertBulk) SetDeletedAt ¶
func (u *BillingWorkflowConfigUpsertBulk) SetDeletedAt(v time.Time) *BillingWorkflowConfigUpsertBulk
SetDeletedAt sets the "deleted_at" field.
func (*BillingWorkflowConfigUpsertBulk) SetInvoiceAutoAdvance ¶
func (u *BillingWorkflowConfigUpsertBulk) SetInvoiceAutoAdvance(v bool) *BillingWorkflowConfigUpsertBulk
SetInvoiceAutoAdvance sets the "invoice_auto_advance" field.
func (*BillingWorkflowConfigUpsertBulk) SetInvoiceCollectionMethod ¶
func (u *BillingWorkflowConfigUpsertBulk) SetInvoiceCollectionMethod(v billing.CollectionMethod) *BillingWorkflowConfigUpsertBulk
SetInvoiceCollectionMethod sets the "invoice_collection_method" field.
func (*BillingWorkflowConfigUpsertBulk) SetInvoiceDraftPeriodSeconds ¶
func (u *BillingWorkflowConfigUpsertBulk) SetInvoiceDraftPeriodSeconds(v int64) *BillingWorkflowConfigUpsertBulk
SetInvoiceDraftPeriodSeconds sets the "invoice_draft_period_seconds" field.
func (*BillingWorkflowConfigUpsertBulk) SetInvoiceDueAfterSeconds ¶
func (u *BillingWorkflowConfigUpsertBulk) SetInvoiceDueAfterSeconds(v int64) *BillingWorkflowConfigUpsertBulk
SetInvoiceDueAfterSeconds sets the "invoice_due_after_seconds" field.
func (*BillingWorkflowConfigUpsertBulk) SetInvoiceItemPerSubject ¶
func (u *BillingWorkflowConfigUpsertBulk) SetInvoiceItemPerSubject(v bool) *BillingWorkflowConfigUpsertBulk
SetInvoiceItemPerSubject sets the "invoice_item_per_subject" field.
func (*BillingWorkflowConfigUpsertBulk) SetInvoiceItemResolution ¶
func (u *BillingWorkflowConfigUpsertBulk) SetInvoiceItemResolution(v billing.GranularityResolution) *BillingWorkflowConfigUpsertBulk
SetInvoiceItemResolution sets the "invoice_item_resolution" field.
func (*BillingWorkflowConfigUpsertBulk) SetItemCollectionPeriodSeconds ¶
func (u *BillingWorkflowConfigUpsertBulk) SetItemCollectionPeriodSeconds(v int64) *BillingWorkflowConfigUpsertBulk
SetItemCollectionPeriodSeconds sets the "item_collection_period_seconds" field.
func (*BillingWorkflowConfigUpsertBulk) SetTimezone ¶
func (u *BillingWorkflowConfigUpsertBulk) SetTimezone(v timezone.Timezone) *BillingWorkflowConfigUpsertBulk
SetTimezone sets the "timezone" field.
func (*BillingWorkflowConfigUpsertBulk) SetUpdatedAt ¶
func (u *BillingWorkflowConfigUpsertBulk) SetUpdatedAt(v time.Time) *BillingWorkflowConfigUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*BillingWorkflowConfigUpsertBulk) Update ¶
func (u *BillingWorkflowConfigUpsertBulk) Update(set func(*BillingWorkflowConfigUpsert)) *BillingWorkflowConfigUpsertBulk
Update allows overriding fields `UPDATE` values. See the BillingWorkflowConfigCreateBulk.OnConflict documentation for more info.
func (*BillingWorkflowConfigUpsertBulk) UpdateCollectionAlignment ¶
func (u *BillingWorkflowConfigUpsertBulk) UpdateCollectionAlignment() *BillingWorkflowConfigUpsertBulk
UpdateCollectionAlignment sets the "collection_alignment" field to the value that was provided on create.
func (*BillingWorkflowConfigUpsertBulk) UpdateDeletedAt ¶
func (u *BillingWorkflowConfigUpsertBulk) UpdateDeletedAt() *BillingWorkflowConfigUpsertBulk
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*BillingWorkflowConfigUpsertBulk) UpdateInvoiceAutoAdvance ¶
func (u *BillingWorkflowConfigUpsertBulk) UpdateInvoiceAutoAdvance() *BillingWorkflowConfigUpsertBulk
UpdateInvoiceAutoAdvance sets the "invoice_auto_advance" field to the value that was provided on create.
func (*BillingWorkflowConfigUpsertBulk) UpdateInvoiceCollectionMethod ¶
func (u *BillingWorkflowConfigUpsertBulk) UpdateInvoiceCollectionMethod() *BillingWorkflowConfigUpsertBulk
UpdateInvoiceCollectionMethod sets the "invoice_collection_method" field to the value that was provided on create.
func (*BillingWorkflowConfigUpsertBulk) UpdateInvoiceDraftPeriodSeconds ¶
func (u *BillingWorkflowConfigUpsertBulk) UpdateInvoiceDraftPeriodSeconds() *BillingWorkflowConfigUpsertBulk
UpdateInvoiceDraftPeriodSeconds sets the "invoice_draft_period_seconds" field to the value that was provided on create.
func (*BillingWorkflowConfigUpsertBulk) UpdateInvoiceDueAfterSeconds ¶
func (u *BillingWorkflowConfigUpsertBulk) UpdateInvoiceDueAfterSeconds() *BillingWorkflowConfigUpsertBulk
UpdateInvoiceDueAfterSeconds sets the "invoice_due_after_seconds" field to the value that was provided on create.
func (*BillingWorkflowConfigUpsertBulk) UpdateInvoiceItemPerSubject ¶
func (u *BillingWorkflowConfigUpsertBulk) UpdateInvoiceItemPerSubject() *BillingWorkflowConfigUpsertBulk
UpdateInvoiceItemPerSubject sets the "invoice_item_per_subject" field to the value that was provided on create.
func (*BillingWorkflowConfigUpsertBulk) UpdateInvoiceItemResolution ¶
func (u *BillingWorkflowConfigUpsertBulk) UpdateInvoiceItemResolution() *BillingWorkflowConfigUpsertBulk
UpdateInvoiceItemResolution sets the "invoice_item_resolution" field to the value that was provided on create.
func (*BillingWorkflowConfigUpsertBulk) UpdateItemCollectionPeriodSeconds ¶
func (u *BillingWorkflowConfigUpsertBulk) UpdateItemCollectionPeriodSeconds() *BillingWorkflowConfigUpsertBulk
UpdateItemCollectionPeriodSeconds sets the "item_collection_period_seconds" field to the value that was provided on create.
func (*BillingWorkflowConfigUpsertBulk) UpdateNewValues ¶
func (u *BillingWorkflowConfigUpsertBulk) UpdateNewValues() *BillingWorkflowConfigUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.BillingWorkflowConfig.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(billingworkflowconfig.FieldID)
}),
).
Exec(ctx)
func (*BillingWorkflowConfigUpsertBulk) UpdateTimezone ¶
func (u *BillingWorkflowConfigUpsertBulk) UpdateTimezone() *BillingWorkflowConfigUpsertBulk
UpdateTimezone sets the "timezone" field to the value that was provided on create.
func (*BillingWorkflowConfigUpsertBulk) UpdateUpdatedAt ¶
func (u *BillingWorkflowConfigUpsertBulk) UpdateUpdatedAt() *BillingWorkflowConfigUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type BillingWorkflowConfigUpsertOne ¶
type BillingWorkflowConfigUpsertOne struct {
// contains filtered or unexported fields
}
BillingWorkflowConfigUpsertOne is the builder for "upsert"-ing
one BillingWorkflowConfig node.
func (*BillingWorkflowConfigUpsertOne) AddInvoiceDraftPeriodSeconds ¶
func (u *BillingWorkflowConfigUpsertOne) AddInvoiceDraftPeriodSeconds(v int64) *BillingWorkflowConfigUpsertOne
AddInvoiceDraftPeriodSeconds adds v to the "invoice_draft_period_seconds" field.
func (*BillingWorkflowConfigUpsertOne) AddInvoiceDueAfterSeconds ¶
func (u *BillingWorkflowConfigUpsertOne) AddInvoiceDueAfterSeconds(v int64) *BillingWorkflowConfigUpsertOne
AddInvoiceDueAfterSeconds adds v to the "invoice_due_after_seconds" field.
func (*BillingWorkflowConfigUpsertOne) AddItemCollectionPeriodSeconds ¶
func (u *BillingWorkflowConfigUpsertOne) AddItemCollectionPeriodSeconds(v int64) *BillingWorkflowConfigUpsertOne
AddItemCollectionPeriodSeconds adds v to the "item_collection_period_seconds" field.
func (*BillingWorkflowConfigUpsertOne) ClearDeletedAt ¶
func (u *BillingWorkflowConfigUpsertOne) ClearDeletedAt() *BillingWorkflowConfigUpsertOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BillingWorkflowConfigUpsertOne) ClearTimezone ¶
func (u *BillingWorkflowConfigUpsertOne) ClearTimezone() *BillingWorkflowConfigUpsertOne
ClearTimezone clears the value of the "timezone" field.
func (*BillingWorkflowConfigUpsertOne) DoNothing ¶
func (u *BillingWorkflowConfigUpsertOne) DoNothing() *BillingWorkflowConfigUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*BillingWorkflowConfigUpsertOne) Exec ¶
func (u *BillingWorkflowConfigUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*BillingWorkflowConfigUpsertOne) ExecX ¶
func (u *BillingWorkflowConfigUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BillingWorkflowConfigUpsertOne) ID ¶
func (u *BillingWorkflowConfigUpsertOne) ID(ctx context.Context) (id string, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*BillingWorkflowConfigUpsertOne) IDX ¶
func (u *BillingWorkflowConfigUpsertOne) IDX(ctx context.Context) string
IDX is like ID, but panics if an error occurs.
func (*BillingWorkflowConfigUpsertOne) Ignore ¶
func (u *BillingWorkflowConfigUpsertOne) Ignore() *BillingWorkflowConfigUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.BillingWorkflowConfig.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*BillingWorkflowConfigUpsertOne) SetCollectionAlignment ¶
func (u *BillingWorkflowConfigUpsertOne) SetCollectionAlignment(v billing.AlignmentKind) *BillingWorkflowConfigUpsertOne
SetCollectionAlignment sets the "collection_alignment" field.
func (*BillingWorkflowConfigUpsertOne) SetDeletedAt ¶
func (u *BillingWorkflowConfigUpsertOne) SetDeletedAt(v time.Time) *BillingWorkflowConfigUpsertOne
SetDeletedAt sets the "deleted_at" field.
func (*BillingWorkflowConfigUpsertOne) SetInvoiceAutoAdvance ¶
func (u *BillingWorkflowConfigUpsertOne) SetInvoiceAutoAdvance(v bool) *BillingWorkflowConfigUpsertOne
SetInvoiceAutoAdvance sets the "invoice_auto_advance" field.
func (*BillingWorkflowConfigUpsertOne) SetInvoiceCollectionMethod ¶
func (u *BillingWorkflowConfigUpsertOne) SetInvoiceCollectionMethod(v billing.CollectionMethod) *BillingWorkflowConfigUpsertOne
SetInvoiceCollectionMethod sets the "invoice_collection_method" field.
func (*BillingWorkflowConfigUpsertOne) SetInvoiceDraftPeriodSeconds ¶
func (u *BillingWorkflowConfigUpsertOne) SetInvoiceDraftPeriodSeconds(v int64) *BillingWorkflowConfigUpsertOne
SetInvoiceDraftPeriodSeconds sets the "invoice_draft_period_seconds" field.
func (*BillingWorkflowConfigUpsertOne) SetInvoiceDueAfterSeconds ¶
func (u *BillingWorkflowConfigUpsertOne) SetInvoiceDueAfterSeconds(v int64) *BillingWorkflowConfigUpsertOne
SetInvoiceDueAfterSeconds sets the "invoice_due_after_seconds" field.
func (*BillingWorkflowConfigUpsertOne) SetInvoiceItemPerSubject ¶
func (u *BillingWorkflowConfigUpsertOne) SetInvoiceItemPerSubject(v bool) *BillingWorkflowConfigUpsertOne
SetInvoiceItemPerSubject sets the "invoice_item_per_subject" field.
func (*BillingWorkflowConfigUpsertOne) SetInvoiceItemResolution ¶
func (u *BillingWorkflowConfigUpsertOne) SetInvoiceItemResolution(v billing.GranularityResolution) *BillingWorkflowConfigUpsertOne
SetInvoiceItemResolution sets the "invoice_item_resolution" field.
func (*BillingWorkflowConfigUpsertOne) SetItemCollectionPeriodSeconds ¶
func (u *BillingWorkflowConfigUpsertOne) SetItemCollectionPeriodSeconds(v int64) *BillingWorkflowConfigUpsertOne
SetItemCollectionPeriodSeconds sets the "item_collection_period_seconds" field.
func (*BillingWorkflowConfigUpsertOne) SetTimezone ¶
func (u *BillingWorkflowConfigUpsertOne) SetTimezone(v timezone.Timezone) *BillingWorkflowConfigUpsertOne
SetTimezone sets the "timezone" field.
func (*BillingWorkflowConfigUpsertOne) SetUpdatedAt ¶
func (u *BillingWorkflowConfigUpsertOne) SetUpdatedAt(v time.Time) *BillingWorkflowConfigUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*BillingWorkflowConfigUpsertOne) Update ¶
func (u *BillingWorkflowConfigUpsertOne) Update(set func(*BillingWorkflowConfigUpsert)) *BillingWorkflowConfigUpsertOne
Update allows overriding fields `UPDATE` values. See the BillingWorkflowConfigCreate.OnConflict documentation for more info.
func (*BillingWorkflowConfigUpsertOne) UpdateCollectionAlignment ¶
func (u *BillingWorkflowConfigUpsertOne) UpdateCollectionAlignment() *BillingWorkflowConfigUpsertOne
UpdateCollectionAlignment sets the "collection_alignment" field to the value that was provided on create.
func (*BillingWorkflowConfigUpsertOne) UpdateDeletedAt ¶
func (u *BillingWorkflowConfigUpsertOne) UpdateDeletedAt() *BillingWorkflowConfigUpsertOne
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*BillingWorkflowConfigUpsertOne) UpdateInvoiceAutoAdvance ¶
func (u *BillingWorkflowConfigUpsertOne) UpdateInvoiceAutoAdvance() *BillingWorkflowConfigUpsertOne
UpdateInvoiceAutoAdvance sets the "invoice_auto_advance" field to the value that was provided on create.
func (*BillingWorkflowConfigUpsertOne) UpdateInvoiceCollectionMethod ¶
func (u *BillingWorkflowConfigUpsertOne) UpdateInvoiceCollectionMethod() *BillingWorkflowConfigUpsertOne
UpdateInvoiceCollectionMethod sets the "invoice_collection_method" field to the value that was provided on create.
func (*BillingWorkflowConfigUpsertOne) UpdateInvoiceDraftPeriodSeconds ¶
func (u *BillingWorkflowConfigUpsertOne) UpdateInvoiceDraftPeriodSeconds() *BillingWorkflowConfigUpsertOne
UpdateInvoiceDraftPeriodSeconds sets the "invoice_draft_period_seconds" field to the value that was provided on create.
func (*BillingWorkflowConfigUpsertOne) UpdateInvoiceDueAfterSeconds ¶
func (u *BillingWorkflowConfigUpsertOne) UpdateInvoiceDueAfterSeconds() *BillingWorkflowConfigUpsertOne
UpdateInvoiceDueAfterSeconds sets the "invoice_due_after_seconds" field to the value that was provided on create.
func (*BillingWorkflowConfigUpsertOne) UpdateInvoiceItemPerSubject ¶
func (u *BillingWorkflowConfigUpsertOne) UpdateInvoiceItemPerSubject() *BillingWorkflowConfigUpsertOne
UpdateInvoiceItemPerSubject sets the "invoice_item_per_subject" field to the value that was provided on create.
func (*BillingWorkflowConfigUpsertOne) UpdateInvoiceItemResolution ¶
func (u *BillingWorkflowConfigUpsertOne) UpdateInvoiceItemResolution() *BillingWorkflowConfigUpsertOne
UpdateInvoiceItemResolution sets the "invoice_item_resolution" field to the value that was provided on create.
func (*BillingWorkflowConfigUpsertOne) UpdateItemCollectionPeriodSeconds ¶
func (u *BillingWorkflowConfigUpsertOne) UpdateItemCollectionPeriodSeconds() *BillingWorkflowConfigUpsertOne
UpdateItemCollectionPeriodSeconds sets the "item_collection_period_seconds" field to the value that was provided on create.
func (*BillingWorkflowConfigUpsertOne) UpdateNewValues ¶
func (u *BillingWorkflowConfigUpsertOne) UpdateNewValues() *BillingWorkflowConfigUpsertOne
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.BillingWorkflowConfig.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(billingworkflowconfig.FieldID)
}),
).
Exec(ctx)
func (*BillingWorkflowConfigUpsertOne) UpdateTimezone ¶
func (u *BillingWorkflowConfigUpsertOne) UpdateTimezone() *BillingWorkflowConfigUpsertOne
UpdateTimezone sets the "timezone" field to the value that was provided on create.
func (*BillingWorkflowConfigUpsertOne) UpdateUpdatedAt ¶
func (u *BillingWorkflowConfigUpsertOne) UpdateUpdatedAt() *BillingWorkflowConfigUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type BillingWorkflowConfigs ¶
type BillingWorkflowConfigs []*BillingWorkflowConfig
BillingWorkflowConfigs is a parsable slice of BillingWorkflowConfig.
type Client ¶
type Client struct {
// Schema is the client for creating, migrating and dropping schema.
Schema *migrate.Schema
// BalanceSnapshot is the client for interacting with the BalanceSnapshot builders.
BalanceSnapshot *BalanceSnapshotClient
// BillingCustomerOverride is the client for interacting with the BillingCustomerOverride builders.
BillingCustomerOverride *BillingCustomerOverrideClient
// BillingInvoice is the client for interacting with the BillingInvoice builders.
BillingInvoice *BillingInvoiceClient
// BillingInvoiceItem is the client for interacting with the BillingInvoiceItem builders.
BillingInvoiceItem *BillingInvoiceItemClient
// BillingProfile is the client for interacting with the BillingProfile builders.
BillingProfile *BillingProfileClient
// BillingWorkflowConfig is the client for interacting with the BillingWorkflowConfig builders.
BillingWorkflowConfig *BillingWorkflowConfigClient
// Customer is the client for interacting with the Customer builders.
Customer *CustomerClient
// CustomerSubjects is the client for interacting with the CustomerSubjects builders.
CustomerSubjects *CustomerSubjectsClient
// Entitlement is the client for interacting with the Entitlement builders.
Entitlement *EntitlementClient
// Feature is the client for interacting with the Feature builders.
Feature *FeatureClient
// Grant is the client for interacting with the Grant builders.
Grant *GrantClient
// NotificationChannel is the client for interacting with the NotificationChannel builders.
NotificationChannel *NotificationChannelClient
// NotificationEvent is the client for interacting with the NotificationEvent builders.
NotificationEvent *NotificationEventClient
// NotificationEventDeliveryStatus is the client for interacting with the NotificationEventDeliveryStatus builders.
NotificationEventDeliveryStatus *NotificationEventDeliveryStatusClient
// NotificationRule is the client for interacting with the NotificationRule builders.
NotificationRule *NotificationRuleClient
// UsageReset is the client for interacting with the UsageReset builders.
UsageReset *UsageResetClient
// contains filtered or unexported fields
}
Client is the client that holds all ent builders.
func FromContext ¶
FromContext returns a Client stored inside a context, or nil if there isn't one.
func Open ¶
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) Debug ¶
Debug returns a new debug-client. It's used to get verbose logging on specific operations.
client.Debug(). BalanceSnapshot. Query(). Count(ctx)
func (*Client) ExecContext ¶
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*Client) GetConfig ¶
func (c *Client) GetConfig() *entutils.RawEntConfig
func (*Client) HijackTx ¶
func (c *Client) HijackTx(ctx context.Context, opts *sql.TxOptions) (context.Context, *entutils.RawEntConfig, *ExposedTxDriver, error)
HijackTx returns a new transaction driver with the provided options. The returned transaction can later be used to instanciate new clients.
func (*Client) Intercept ¶
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(...)`.
func (*Client) QueryContext ¶
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
type CommitFunc ¶
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 ¶
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 ¶
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 ¶
func (e ConstraintError) Error() string
Error implements the error interface.
func (*ConstraintError) Unwrap ¶
func (e *ConstraintError) Unwrap() error
Unwrap implements the errors.Wrapper interface.
type Customer ¶
type Customer struct {
// ID of the ent.
ID string `json:"id,omitempty"`
// Namespace holds the value of the "namespace" field.
Namespace string `json:"namespace,omitempty"`
// Metadata holds the value of the "metadata" field.
Metadata map[string]string `json:"metadata,omitempty"`
// CreatedAt holds the value of the "created_at" field.
CreatedAt time.Time `json:"created_at,omitempty"`
// UpdatedAt holds the value of the "updated_at" field.
UpdatedAt time.Time `json:"updated_at,omitempty"`
// DeletedAt holds the value of the "deleted_at" field.
DeletedAt *time.Time `json:"deleted_at,omitempty"`
// BillingAddressCountry holds the value of the "billing_address_country" field.
BillingAddressCountry *models.CountryCode `json:"billing_address_country,omitempty"`
// BillingAddressPostalCode holds the value of the "billing_address_postal_code" field.
BillingAddressPostalCode *string `json:"billing_address_postal_code,omitempty"`
// BillingAddressState holds the value of the "billing_address_state" field.
BillingAddressState *string `json:"billing_address_state,omitempty"`
// BillingAddressCity holds the value of the "billing_address_city" field.
BillingAddressCity *string `json:"billing_address_city,omitempty"`
// BillingAddressLine1 holds the value of the "billing_address_line1" field.
BillingAddressLine1 *string `json:"billing_address_line1,omitempty"`
// BillingAddressLine2 holds the value of the "billing_address_line2" field.
BillingAddressLine2 *string `json:"billing_address_line2,omitempty"`
// BillingAddressPhoneNumber holds the value of the "billing_address_phone_number" field.
BillingAddressPhoneNumber *string `json:"billing_address_phone_number,omitempty"`
// Name holds the value of the "name" field.
Name string `json:"name,omitempty"`
// PrimaryEmail holds the value of the "primary_email" field.
PrimaryEmail *string `json:"primary_email,omitempty"`
// Timezone holds the value of the "timezone" field.
Timezone *timezone.Timezone `json:"timezone,omitempty"`
// Currency holds the value of the "currency" field.
Currency *currencyx.Code `json:"currency,omitempty"`
// ExternalMappingStripeCustomerID holds the value of the "external_mapping_stripe_customer_id" field.
ExternalMappingStripeCustomerID *string `json:"external_mapping_stripe_customer_id,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the CustomerQuery when eager-loading is set.
Edges CustomerEdges `json:"edges"`
// contains filtered or unexported fields
}
Customer is the model entity for the Customer schema.
func (*Customer) ExecContext ¶
func (c *Customer) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*Customer) QueryBillingCustomerOverride ¶
func (c *Customer) QueryBillingCustomerOverride() *BillingCustomerOverrideQuery
QueryBillingCustomerOverride queries the "billing_customer_override" edge of the Customer entity.
func (*Customer) QueryContext ¶
func (c *Customer) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*Customer) QuerySubjects ¶
func (c *Customer) QuerySubjects() *CustomerSubjectsQuery
QuerySubjects queries the "subjects" edge of the Customer entity.
func (*Customer) Unwrap ¶
Unwrap unwraps the Customer 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 (*Customer) Update ¶
func (c *Customer) Update() *CustomerUpdateOne
Update returns a builder for updating this Customer. Note that you need to call Customer.Unwrap() before calling this method if this Customer was returned from a transaction, and the transaction was committed or rolled back.
type CustomerClient ¶
type CustomerClient struct {
// contains filtered or unexported fields
}
CustomerClient is a client for the Customer schema.
func NewCustomerClient ¶
func NewCustomerClient(c config) *CustomerClient
NewCustomerClient returns a client for the Customer from the given config.
func (*CustomerClient) Create ¶
func (c *CustomerClient) Create() *CustomerCreate
Create returns a builder for creating a Customer entity.
func (*CustomerClient) CreateBulk ¶
func (c *CustomerClient) CreateBulk(builders ...*CustomerCreate) *CustomerCreateBulk
CreateBulk returns a builder for creating a bulk of Customer entities.
func (*CustomerClient) Delete ¶
func (c *CustomerClient) Delete() *CustomerDelete
Delete returns a delete builder for Customer.
func (*CustomerClient) DeleteOne ¶
func (c *CustomerClient) DeleteOne(cu *Customer) *CustomerDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*CustomerClient) DeleteOneID ¶
func (c *CustomerClient) DeleteOneID(id string) *CustomerDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*CustomerClient) ExecContext ¶
func (c *CustomerClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*CustomerClient) GetX ¶
func (c *CustomerClient) GetX(ctx context.Context, id string) *Customer
GetX is like Get, but panics if an error occurs.
func (*CustomerClient) Hooks ¶
func (c *CustomerClient) Hooks() []Hook
Hooks returns the client hooks.
func (*CustomerClient) Intercept ¶
func (c *CustomerClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `customer.Intercept(f(g(h())))`.
func (*CustomerClient) Interceptors ¶
func (c *CustomerClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*CustomerClient) MapCreateBulk ¶
func (c *CustomerClient) MapCreateBulk(slice any, setFunc func(*CustomerCreate, int)) *CustomerCreateBulk
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 (*CustomerClient) Query ¶
func (c *CustomerClient) Query() *CustomerQuery
Query returns a query builder for Customer.
func (*CustomerClient) QueryBillingCustomerOverride ¶
func (c *CustomerClient) QueryBillingCustomerOverride(cu *Customer) *BillingCustomerOverrideQuery
QueryBillingCustomerOverride queries the billing_customer_override edge of a Customer.
func (*CustomerClient) QueryContext ¶
func (c *CustomerClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*CustomerClient) QuerySubjects ¶
func (c *CustomerClient) QuerySubjects(cu *Customer) *CustomerSubjectsQuery
QuerySubjects queries the subjects edge of a Customer.
func (*CustomerClient) Update ¶
func (c *CustomerClient) Update() *CustomerUpdate
Update returns an update builder for Customer.
func (*CustomerClient) UpdateOne ¶
func (c *CustomerClient) UpdateOne(cu *Customer) *CustomerUpdateOne
UpdateOne returns an update builder for the given entity.
func (*CustomerClient) UpdateOneID ¶
func (c *CustomerClient) UpdateOneID(id string) *CustomerUpdateOne
UpdateOneID returns an update builder for the given id.
func (*CustomerClient) Use ¶
func (c *CustomerClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `customer.Hooks(f(g(h())))`.
type CustomerCreate ¶
type CustomerCreate struct {
// contains filtered or unexported fields
}
CustomerCreate is the builder for creating a Customer entity.
func (*CustomerCreate) AddSubjectIDs ¶
func (cc *CustomerCreate) AddSubjectIDs(ids ...int) *CustomerCreate
AddSubjectIDs adds the "subjects" edge to the CustomerSubjects entity by IDs.
func (*CustomerCreate) AddSubjects ¶
func (cc *CustomerCreate) AddSubjects(c ...*CustomerSubjects) *CustomerCreate
AddSubjects adds the "subjects" edges to the CustomerSubjects entity.
func (*CustomerCreate) Exec ¶
func (cc *CustomerCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*CustomerCreate) ExecContext ¶
func (c *CustomerCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*CustomerCreate) ExecX ¶
func (cc *CustomerCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CustomerCreate) Mutation ¶
func (cc *CustomerCreate) Mutation() *CustomerMutation
Mutation returns the CustomerMutation object of the builder.
func (*CustomerCreate) OnConflict ¶
func (cc *CustomerCreate) OnConflict(opts ...sql.ConflictOption) *CustomerUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Customer.Create().
SetNamespace(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.CustomerUpsert) {
SetNamespace(v+v).
}).
Exec(ctx)
func (*CustomerCreate) OnConflictColumns ¶
func (cc *CustomerCreate) OnConflictColumns(columns ...string) *CustomerUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Customer.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*CustomerCreate) QueryContext ¶
func (c *CustomerCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*CustomerCreate) Save ¶
func (cc *CustomerCreate) Save(ctx context.Context) (*Customer, error)
Save creates the Customer in the database.
func (*CustomerCreate) SaveX ¶
func (cc *CustomerCreate) SaveX(ctx context.Context) *Customer
SaveX calls Save and panics if Save returns an error.
func (*CustomerCreate) SetBillingAddressCity ¶
func (cc *CustomerCreate) SetBillingAddressCity(s string) *CustomerCreate
SetBillingAddressCity sets the "billing_address_city" field.
func (*CustomerCreate) SetBillingAddressCountry ¶
func (cc *CustomerCreate) SetBillingAddressCountry(mc models.CountryCode) *CustomerCreate
SetBillingAddressCountry sets the "billing_address_country" field.
func (*CustomerCreate) SetBillingAddressLine1 ¶
func (cc *CustomerCreate) SetBillingAddressLine1(s string) *CustomerCreate
SetBillingAddressLine1 sets the "billing_address_line1" field.
func (*CustomerCreate) SetBillingAddressLine2 ¶
func (cc *CustomerCreate) SetBillingAddressLine2(s string) *CustomerCreate
SetBillingAddressLine2 sets the "billing_address_line2" field.
func (*CustomerCreate) SetBillingAddressPhoneNumber ¶
func (cc *CustomerCreate) SetBillingAddressPhoneNumber(s string) *CustomerCreate
SetBillingAddressPhoneNumber sets the "billing_address_phone_number" field.
func (*CustomerCreate) SetBillingAddressPostalCode ¶
func (cc *CustomerCreate) SetBillingAddressPostalCode(s string) *CustomerCreate
SetBillingAddressPostalCode sets the "billing_address_postal_code" field.
func (*CustomerCreate) SetBillingAddressState ¶
func (cc *CustomerCreate) SetBillingAddressState(s string) *CustomerCreate
SetBillingAddressState sets the "billing_address_state" field.
func (*CustomerCreate) SetBillingCustomerOverride ¶
func (cc *CustomerCreate) SetBillingCustomerOverride(b *BillingCustomerOverride) *CustomerCreate
SetBillingCustomerOverride sets the "billing_customer_override" edge to the BillingCustomerOverride entity.
func (*CustomerCreate) SetBillingCustomerOverrideID ¶
func (cc *CustomerCreate) SetBillingCustomerOverrideID(id string) *CustomerCreate
SetBillingCustomerOverrideID sets the "billing_customer_override" edge to the BillingCustomerOverride entity by ID.
func (*CustomerCreate) SetCreatedAt ¶
func (cc *CustomerCreate) SetCreatedAt(t time.Time) *CustomerCreate
SetCreatedAt sets the "created_at" field.
func (*CustomerCreate) SetCurrency ¶
func (cc *CustomerCreate) SetCurrency(c currencyx.Code) *CustomerCreate
SetCurrency sets the "currency" field.
func (*CustomerCreate) SetDeletedAt ¶
func (cc *CustomerCreate) SetDeletedAt(t time.Time) *CustomerCreate
SetDeletedAt sets the "deleted_at" field.
func (*CustomerCreate) SetExternalMappingStripeCustomerID ¶
func (cc *CustomerCreate) SetExternalMappingStripeCustomerID(s string) *CustomerCreate
SetExternalMappingStripeCustomerID sets the "external_mapping_stripe_customer_id" field.
func (*CustomerCreate) SetID ¶
func (cc *CustomerCreate) SetID(s string) *CustomerCreate
SetID sets the "id" field.
func (*CustomerCreate) SetMetadata ¶
func (cc *CustomerCreate) SetMetadata(m map[string]string) *CustomerCreate
SetMetadata sets the "metadata" field.
func (*CustomerCreate) SetName ¶
func (cc *CustomerCreate) SetName(s string) *CustomerCreate
SetName sets the "name" field.
func (*CustomerCreate) SetNamespace ¶
func (cc *CustomerCreate) SetNamespace(s string) *CustomerCreate
SetNamespace sets the "namespace" field.
func (*CustomerCreate) SetNillableBillingAddressCity ¶
func (cc *CustomerCreate) SetNillableBillingAddressCity(s *string) *CustomerCreate
SetNillableBillingAddressCity sets the "billing_address_city" field if the given value is not nil.
func (*CustomerCreate) SetNillableBillingAddressCountry ¶
func (cc *CustomerCreate) SetNillableBillingAddressCountry(mc *models.CountryCode) *CustomerCreate
SetNillableBillingAddressCountry sets the "billing_address_country" field if the given value is not nil.
func (*CustomerCreate) SetNillableBillingAddressLine1 ¶
func (cc *CustomerCreate) SetNillableBillingAddressLine1(s *string) *CustomerCreate
SetNillableBillingAddressLine1 sets the "billing_address_line1" field if the given value is not nil.
func (*CustomerCreate) SetNillableBillingAddressLine2 ¶
func (cc *CustomerCreate) SetNillableBillingAddressLine2(s *string) *CustomerCreate
SetNillableBillingAddressLine2 sets the "billing_address_line2" field if the given value is not nil.
func (*CustomerCreate) SetNillableBillingAddressPhoneNumber ¶
func (cc *CustomerCreate) SetNillableBillingAddressPhoneNumber(s *string) *CustomerCreate
SetNillableBillingAddressPhoneNumber sets the "billing_address_phone_number" field if the given value is not nil.
func (*CustomerCreate) SetNillableBillingAddressPostalCode ¶
func (cc *CustomerCreate) SetNillableBillingAddressPostalCode(s *string) *CustomerCreate
SetNillableBillingAddressPostalCode sets the "billing_address_postal_code" field if the given value is not nil.
func (*CustomerCreate) SetNillableBillingAddressState ¶
func (cc *CustomerCreate) SetNillableBillingAddressState(s *string) *CustomerCreate
SetNillableBillingAddressState sets the "billing_address_state" field if the given value is not nil.
func (*CustomerCreate) SetNillableBillingCustomerOverrideID ¶
func (cc *CustomerCreate) SetNillableBillingCustomerOverrideID(id *string) *CustomerCreate
SetNillableBillingCustomerOverrideID sets the "billing_customer_override" edge to the BillingCustomerOverride entity by ID if the given value is not nil.
func (*CustomerCreate) SetNillableCreatedAt ¶
func (cc *CustomerCreate) SetNillableCreatedAt(t *time.Time) *CustomerCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*CustomerCreate) SetNillableCurrency ¶
func (cc *CustomerCreate) SetNillableCurrency(c *currencyx.Code) *CustomerCreate
SetNillableCurrency sets the "currency" field if the given value is not nil.
func (*CustomerCreate) SetNillableDeletedAt ¶
func (cc *CustomerCreate) SetNillableDeletedAt(t *time.Time) *CustomerCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*CustomerCreate) SetNillableExternalMappingStripeCustomerID ¶
func (cc *CustomerCreate) SetNillableExternalMappingStripeCustomerID(s *string) *CustomerCreate
SetNillableExternalMappingStripeCustomerID sets the "external_mapping_stripe_customer_id" field if the given value is not nil.
func (*CustomerCreate) SetNillableID ¶
func (cc *CustomerCreate) SetNillableID(s *string) *CustomerCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*CustomerCreate) SetNillablePrimaryEmail ¶
func (cc *CustomerCreate) SetNillablePrimaryEmail(s *string) *CustomerCreate
SetNillablePrimaryEmail sets the "primary_email" field if the given value is not nil.
func (*CustomerCreate) SetNillableTimezone ¶
func (cc *CustomerCreate) SetNillableTimezone(t *timezone.Timezone) *CustomerCreate
SetNillableTimezone sets the "timezone" field if the given value is not nil.
func (*CustomerCreate) SetNillableUpdatedAt ¶
func (cc *CustomerCreate) SetNillableUpdatedAt(t *time.Time) *CustomerCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*CustomerCreate) SetPrimaryEmail ¶
func (cc *CustomerCreate) SetPrimaryEmail(s string) *CustomerCreate
SetPrimaryEmail sets the "primary_email" field.
func (*CustomerCreate) SetTimezone ¶
func (cc *CustomerCreate) SetTimezone(t timezone.Timezone) *CustomerCreate
SetTimezone sets the "timezone" field.
func (*CustomerCreate) SetUpdatedAt ¶
func (cc *CustomerCreate) SetUpdatedAt(t time.Time) *CustomerCreate
SetUpdatedAt sets the "updated_at" field.
type CustomerCreateBulk ¶
type CustomerCreateBulk struct {
// contains filtered or unexported fields
}
CustomerCreateBulk is the builder for creating many Customer entities in bulk.
func (*CustomerCreateBulk) Exec ¶
func (ccb *CustomerCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*CustomerCreateBulk) ExecContext ¶
func (c *CustomerCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*CustomerCreateBulk) ExecX ¶
func (ccb *CustomerCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CustomerCreateBulk) OnConflict ¶
func (ccb *CustomerCreateBulk) OnConflict(opts ...sql.ConflictOption) *CustomerUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Customer.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.CustomerUpsert) {
SetNamespace(v+v).
}).
Exec(ctx)
func (*CustomerCreateBulk) OnConflictColumns ¶
func (ccb *CustomerCreateBulk) OnConflictColumns(columns ...string) *CustomerUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Customer.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*CustomerCreateBulk) QueryContext ¶
func (c *CustomerCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
type CustomerDelete ¶
type CustomerDelete struct {
// contains filtered or unexported fields
}
CustomerDelete is the builder for deleting a Customer entity.
func (*CustomerDelete) Exec ¶
func (cd *CustomerDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*CustomerDelete) ExecContext ¶
func (c *CustomerDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*CustomerDelete) ExecX ¶
func (cd *CustomerDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*CustomerDelete) QueryContext ¶
func (c *CustomerDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*CustomerDelete) Where ¶
func (cd *CustomerDelete) Where(ps ...predicate.Customer) *CustomerDelete
Where appends a list predicates to the CustomerDelete builder.
type CustomerDeleteOne ¶
type CustomerDeleteOne struct {
// contains filtered or unexported fields
}
CustomerDeleteOne is the builder for deleting a single Customer entity.
func (*CustomerDeleteOne) Exec ¶
func (cdo *CustomerDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*CustomerDeleteOne) ExecX ¶
func (cdo *CustomerDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CustomerDeleteOne) Where ¶
func (cdo *CustomerDeleteOne) Where(ps ...predicate.Customer) *CustomerDeleteOne
Where appends a list predicates to the CustomerDelete builder.
type CustomerEdges ¶
type CustomerEdges struct {
// Subjects holds the value of the subjects edge.
Subjects []*CustomerSubjects `json:"subjects,omitempty"`
// BillingCustomerOverride holds the value of the billing_customer_override edge.
BillingCustomerOverride *BillingCustomerOverride `json:"billing_customer_override,omitempty"`
// contains filtered or unexported fields
}
CustomerEdges holds the relations/edges for other nodes in the graph.
func (CustomerEdges) BillingCustomerOverrideOrErr ¶
func (e CustomerEdges) BillingCustomerOverrideOrErr() (*BillingCustomerOverride, error)
BillingCustomerOverrideOrErr returns the BillingCustomerOverride value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (CustomerEdges) SubjectsOrErr ¶
func (e CustomerEdges) SubjectsOrErr() ([]*CustomerSubjects, error)
SubjectsOrErr returns the Subjects value or an error if the edge was not loaded in eager-loading.
type CustomerGroupBy ¶
type CustomerGroupBy struct {
// contains filtered or unexported fields
}
CustomerGroupBy is the group-by builder for Customer entities.
func (*CustomerGroupBy) Aggregate ¶
func (cgb *CustomerGroupBy) Aggregate(fns ...AggregateFunc) *CustomerGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*CustomerGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*CustomerGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*CustomerGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*CustomerGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*CustomerGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*CustomerGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*CustomerGroupBy) Scan ¶
func (cgb *CustomerGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*CustomerGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type CustomerMutation ¶
type CustomerMutation struct {
// contains filtered or unexported fields
}
CustomerMutation represents an operation that mutates the Customer nodes in the graph.
func (*CustomerMutation) AddField ¶
func (m *CustomerMutation) 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 (*CustomerMutation) AddSubjectIDs ¶
func (m *CustomerMutation) AddSubjectIDs(ids ...int)
AddSubjectIDs adds the "subjects" edge to the CustomerSubjects entity by ids.
func (*CustomerMutation) AddedEdges ¶
func (m *CustomerMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*CustomerMutation) AddedField ¶
func (m *CustomerMutation) 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 (*CustomerMutation) AddedFields ¶
func (m *CustomerMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*CustomerMutation) AddedIDs ¶
func (m *CustomerMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*CustomerMutation) BillingAddressCity ¶
func (m *CustomerMutation) BillingAddressCity() (r string, exists bool)
BillingAddressCity returns the value of the "billing_address_city" field in the mutation.
func (*CustomerMutation) BillingAddressCityCleared ¶
func (m *CustomerMutation) BillingAddressCityCleared() bool
BillingAddressCityCleared returns if the "billing_address_city" field was cleared in this mutation.
func (*CustomerMutation) BillingAddressCountry ¶
func (m *CustomerMutation) BillingAddressCountry() (r models.CountryCode, exists bool)
BillingAddressCountry returns the value of the "billing_address_country" field in the mutation.
func (*CustomerMutation) BillingAddressCountryCleared ¶
func (m *CustomerMutation) BillingAddressCountryCleared() bool
BillingAddressCountryCleared returns if the "billing_address_country" field was cleared in this mutation.
func (*CustomerMutation) BillingAddressLine1 ¶
func (m *CustomerMutation) BillingAddressLine1() (r string, exists bool)
BillingAddressLine1 returns the value of the "billing_address_line1" field in the mutation.
func (*CustomerMutation) BillingAddressLine1Cleared ¶
func (m *CustomerMutation) BillingAddressLine1Cleared() bool
BillingAddressLine1Cleared returns if the "billing_address_line1" field was cleared in this mutation.
func (*CustomerMutation) BillingAddressLine2 ¶
func (m *CustomerMutation) BillingAddressLine2() (r string, exists bool)
BillingAddressLine2 returns the value of the "billing_address_line2" field in the mutation.
func (*CustomerMutation) BillingAddressLine2Cleared ¶
func (m *CustomerMutation) BillingAddressLine2Cleared() bool
BillingAddressLine2Cleared returns if the "billing_address_line2" field was cleared in this mutation.
func (*CustomerMutation) BillingAddressPhoneNumber ¶
func (m *CustomerMutation) BillingAddressPhoneNumber() (r string, exists bool)
BillingAddressPhoneNumber returns the value of the "billing_address_phone_number" field in the mutation.
func (*CustomerMutation) BillingAddressPhoneNumberCleared ¶
func (m *CustomerMutation) BillingAddressPhoneNumberCleared() bool
BillingAddressPhoneNumberCleared returns if the "billing_address_phone_number" field was cleared in this mutation.
func (*CustomerMutation) BillingAddressPostalCode ¶
func (m *CustomerMutation) BillingAddressPostalCode() (r string, exists bool)
BillingAddressPostalCode returns the value of the "billing_address_postal_code" field in the mutation.
func (*CustomerMutation) BillingAddressPostalCodeCleared ¶
func (m *CustomerMutation) BillingAddressPostalCodeCleared() bool
BillingAddressPostalCodeCleared returns if the "billing_address_postal_code" field was cleared in this mutation.
func (*CustomerMutation) BillingAddressState ¶
func (m *CustomerMutation) BillingAddressState() (r string, exists bool)
BillingAddressState returns the value of the "billing_address_state" field in the mutation.
func (*CustomerMutation) BillingAddressStateCleared ¶
func (m *CustomerMutation) BillingAddressStateCleared() bool
BillingAddressStateCleared returns if the "billing_address_state" field was cleared in this mutation.
func (*CustomerMutation) BillingCustomerOverrideCleared ¶
func (m *CustomerMutation) BillingCustomerOverrideCleared() bool
BillingCustomerOverrideCleared reports if the "billing_customer_override" edge to the BillingCustomerOverride entity was cleared.
func (*CustomerMutation) BillingCustomerOverrideID ¶
func (m *CustomerMutation) BillingCustomerOverrideID() (id string, exists bool)
BillingCustomerOverrideID returns the "billing_customer_override" edge ID in the mutation.
func (*CustomerMutation) BillingCustomerOverrideIDs ¶
func (m *CustomerMutation) BillingCustomerOverrideIDs() (ids []string)
BillingCustomerOverrideIDs returns the "billing_customer_override" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use BillingCustomerOverrideID instead. It exists only for internal usage by the builders.
func (*CustomerMutation) ClearBillingAddressCity ¶
func (m *CustomerMutation) ClearBillingAddressCity()
ClearBillingAddressCity clears the value of the "billing_address_city" field.
func (*CustomerMutation) ClearBillingAddressCountry ¶
func (m *CustomerMutation) ClearBillingAddressCountry()
ClearBillingAddressCountry clears the value of the "billing_address_country" field.
func (*CustomerMutation) ClearBillingAddressLine1 ¶
func (m *CustomerMutation) ClearBillingAddressLine1()
ClearBillingAddressLine1 clears the value of the "billing_address_line1" field.
func (*CustomerMutation) ClearBillingAddressLine2 ¶
func (m *CustomerMutation) ClearBillingAddressLine2()
ClearBillingAddressLine2 clears the value of the "billing_address_line2" field.
func (*CustomerMutation) ClearBillingAddressPhoneNumber ¶
func (m *CustomerMutation) ClearBillingAddressPhoneNumber()
ClearBillingAddressPhoneNumber clears the value of the "billing_address_phone_number" field.
func (*CustomerMutation) ClearBillingAddressPostalCode ¶
func (m *CustomerMutation) ClearBillingAddressPostalCode()
ClearBillingAddressPostalCode clears the value of the "billing_address_postal_code" field.
func (*CustomerMutation) ClearBillingAddressState ¶
func (m *CustomerMutation) ClearBillingAddressState()
ClearBillingAddressState clears the value of the "billing_address_state" field.
func (*CustomerMutation) ClearBillingCustomerOverride ¶
func (m *CustomerMutation) ClearBillingCustomerOverride()
ClearBillingCustomerOverride clears the "billing_customer_override" edge to the BillingCustomerOverride entity.
func (*CustomerMutation) ClearCurrency ¶
func (m *CustomerMutation) ClearCurrency()
ClearCurrency clears the value of the "currency" field.
func (*CustomerMutation) ClearDeletedAt ¶
func (m *CustomerMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*CustomerMutation) ClearEdge ¶
func (m *CustomerMutation) 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 (*CustomerMutation) ClearExternalMappingStripeCustomerID ¶
func (m *CustomerMutation) ClearExternalMappingStripeCustomerID()
ClearExternalMappingStripeCustomerID clears the value of the "external_mapping_stripe_customer_id" field.
func (*CustomerMutation) ClearField ¶
func (m *CustomerMutation) 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 (*CustomerMutation) ClearMetadata ¶
func (m *CustomerMutation) ClearMetadata()
ClearMetadata clears the value of the "metadata" field.
func (*CustomerMutation) ClearPrimaryEmail ¶
func (m *CustomerMutation) ClearPrimaryEmail()
ClearPrimaryEmail clears the value of the "primary_email" field.
func (*CustomerMutation) ClearSubjects ¶
func (m *CustomerMutation) ClearSubjects()
ClearSubjects clears the "subjects" edge to the CustomerSubjects entity.
func (*CustomerMutation) ClearTimezone ¶
func (m *CustomerMutation) ClearTimezone()
ClearTimezone clears the value of the "timezone" field.
func (*CustomerMutation) ClearedEdges ¶
func (m *CustomerMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*CustomerMutation) ClearedFields ¶
func (m *CustomerMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (CustomerMutation) Client ¶
func (m CustomerMutation) 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 (*CustomerMutation) CreatedAt ¶
func (m *CustomerMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*CustomerMutation) Currency ¶
func (m *CustomerMutation) Currency() (r currencyx.Code, exists bool)
Currency returns the value of the "currency" field in the mutation.
func (*CustomerMutation) CurrencyCleared ¶
func (m *CustomerMutation) CurrencyCleared() bool
CurrencyCleared returns if the "currency" field was cleared in this mutation.
func (*CustomerMutation) DeletedAt ¶
func (m *CustomerMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*CustomerMutation) DeletedAtCleared ¶
func (m *CustomerMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*CustomerMutation) EdgeCleared ¶
func (m *CustomerMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*CustomerMutation) ExecContext ¶
func (c *CustomerMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*CustomerMutation) ExternalMappingStripeCustomerID ¶
func (m *CustomerMutation) ExternalMappingStripeCustomerID() (r string, exists bool)
ExternalMappingStripeCustomerID returns the value of the "external_mapping_stripe_customer_id" field in the mutation.
func (*CustomerMutation) ExternalMappingStripeCustomerIDCleared ¶
func (m *CustomerMutation) ExternalMappingStripeCustomerIDCleared() bool
ExternalMappingStripeCustomerIDCleared returns if the "external_mapping_stripe_customer_id" field was cleared in this mutation.
func (*CustomerMutation) Field ¶
func (m *CustomerMutation) 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 (*CustomerMutation) FieldCleared ¶
func (m *CustomerMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*CustomerMutation) Fields ¶
func (m *CustomerMutation) 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 (*CustomerMutation) ID ¶
func (m *CustomerMutation) ID() (id string, 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 (*CustomerMutation) IDs ¶
func (m *CustomerMutation) IDs(ctx context.Context) ([]string, error)
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 (*CustomerMutation) Metadata ¶
func (m *CustomerMutation) Metadata() (r map[string]string, exists bool)
Metadata returns the value of the "metadata" field in the mutation.
func (*CustomerMutation) MetadataCleared ¶
func (m *CustomerMutation) MetadataCleared() bool
MetadataCleared returns if the "metadata" field was cleared in this mutation.
func (*CustomerMutation) Name ¶
func (m *CustomerMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*CustomerMutation) Namespace ¶
func (m *CustomerMutation) Namespace() (r string, exists bool)
Namespace returns the value of the "namespace" field in the mutation.
func (*CustomerMutation) OldBillingAddressCity ¶
func (m *CustomerMutation) OldBillingAddressCity(ctx context.Context) (v *string, err error)
OldBillingAddressCity returns the old "billing_address_city" field's value of the Customer entity. If the Customer 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 (*CustomerMutation) OldBillingAddressCountry ¶
func (m *CustomerMutation) OldBillingAddressCountry(ctx context.Context) (v *models.CountryCode, err error)
OldBillingAddressCountry returns the old "billing_address_country" field's value of the Customer entity. If the Customer 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 (*CustomerMutation) OldBillingAddressLine1 ¶
func (m *CustomerMutation) OldBillingAddressLine1(ctx context.Context) (v *string, err error)
OldBillingAddressLine1 returns the old "billing_address_line1" field's value of the Customer entity. If the Customer 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 (*CustomerMutation) OldBillingAddressLine2 ¶
func (m *CustomerMutation) OldBillingAddressLine2(ctx context.Context) (v *string, err error)
OldBillingAddressLine2 returns the old "billing_address_line2" field's value of the Customer entity. If the Customer 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 (*CustomerMutation) OldBillingAddressPhoneNumber ¶
func (m *CustomerMutation) OldBillingAddressPhoneNumber(ctx context.Context) (v *string, err error)
OldBillingAddressPhoneNumber returns the old "billing_address_phone_number" field's value of the Customer entity. If the Customer 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 (*CustomerMutation) OldBillingAddressPostalCode ¶
func (m *CustomerMutation) OldBillingAddressPostalCode(ctx context.Context) (v *string, err error)
OldBillingAddressPostalCode returns the old "billing_address_postal_code" field's value of the Customer entity. If the Customer 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 (*CustomerMutation) OldBillingAddressState ¶
func (m *CustomerMutation) OldBillingAddressState(ctx context.Context) (v *string, err error)
OldBillingAddressState returns the old "billing_address_state" field's value of the Customer entity. If the Customer 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 (*CustomerMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Customer entity. If the Customer 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 (*CustomerMutation) OldCurrency ¶
OldCurrency returns the old "currency" field's value of the Customer entity. If the Customer 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 (*CustomerMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the Customer entity. If the Customer 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 (*CustomerMutation) OldExternalMappingStripeCustomerID ¶
func (m *CustomerMutation) OldExternalMappingStripeCustomerID(ctx context.Context) (v *string, err error)
OldExternalMappingStripeCustomerID returns the old "external_mapping_stripe_customer_id" field's value of the Customer entity. If the Customer 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 (*CustomerMutation) OldField ¶
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 (*CustomerMutation) OldMetadata ¶
OldMetadata returns the old "metadata" field's value of the Customer entity. If the Customer 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 (*CustomerMutation) OldName ¶
func (m *CustomerMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the Customer entity. If the Customer 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 (*CustomerMutation) OldNamespace ¶
func (m *CustomerMutation) OldNamespace(ctx context.Context) (v string, err error)
OldNamespace returns the old "namespace" field's value of the Customer entity. If the Customer 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 (*CustomerMutation) OldPrimaryEmail ¶
func (m *CustomerMutation) OldPrimaryEmail(ctx context.Context) (v *string, err error)
OldPrimaryEmail returns the old "primary_email" field's value of the Customer entity. If the Customer 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 (*CustomerMutation) OldTimezone ¶
OldTimezone returns the old "timezone" field's value of the Customer entity. If the Customer 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 (*CustomerMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Customer entity. If the Customer 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 (*CustomerMutation) PrimaryEmail ¶
func (m *CustomerMutation) PrimaryEmail() (r string, exists bool)
PrimaryEmail returns the value of the "primary_email" field in the mutation.
func (*CustomerMutation) PrimaryEmailCleared ¶
func (m *CustomerMutation) PrimaryEmailCleared() bool
PrimaryEmailCleared returns if the "primary_email" field was cleared in this mutation.
func (*CustomerMutation) QueryContext ¶
func (c *CustomerMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*CustomerMutation) RemoveSubjectIDs ¶
func (m *CustomerMutation) RemoveSubjectIDs(ids ...int)
RemoveSubjectIDs removes the "subjects" edge to the CustomerSubjects entity by IDs.
func (*CustomerMutation) RemovedEdges ¶
func (m *CustomerMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*CustomerMutation) RemovedIDs ¶
func (m *CustomerMutation) 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 (*CustomerMutation) RemovedSubjectsIDs ¶
func (m *CustomerMutation) RemovedSubjectsIDs() (ids []int)
RemovedSubjects returns the removed IDs of the "subjects" edge to the CustomerSubjects entity.
func (*CustomerMutation) ResetBillingAddressCity ¶
func (m *CustomerMutation) ResetBillingAddressCity()
ResetBillingAddressCity resets all changes to the "billing_address_city" field.
func (*CustomerMutation) ResetBillingAddressCountry ¶
func (m *CustomerMutation) ResetBillingAddressCountry()
ResetBillingAddressCountry resets all changes to the "billing_address_country" field.
func (*CustomerMutation) ResetBillingAddressLine1 ¶
func (m *CustomerMutation) ResetBillingAddressLine1()
ResetBillingAddressLine1 resets all changes to the "billing_address_line1" field.
func (*CustomerMutation) ResetBillingAddressLine2 ¶
func (m *CustomerMutation) ResetBillingAddressLine2()
ResetBillingAddressLine2 resets all changes to the "billing_address_line2" field.
func (*CustomerMutation) ResetBillingAddressPhoneNumber ¶
func (m *CustomerMutation) ResetBillingAddressPhoneNumber()
ResetBillingAddressPhoneNumber resets all changes to the "billing_address_phone_number" field.
func (*CustomerMutation) ResetBillingAddressPostalCode ¶
func (m *CustomerMutation) ResetBillingAddressPostalCode()
ResetBillingAddressPostalCode resets all changes to the "billing_address_postal_code" field.
func (*CustomerMutation) ResetBillingAddressState ¶
func (m *CustomerMutation) ResetBillingAddressState()
ResetBillingAddressState resets all changes to the "billing_address_state" field.
func (*CustomerMutation) ResetBillingCustomerOverride ¶
func (m *CustomerMutation) ResetBillingCustomerOverride()
ResetBillingCustomerOverride resets all changes to the "billing_customer_override" edge.
func (*CustomerMutation) ResetCreatedAt ¶
func (m *CustomerMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*CustomerMutation) ResetCurrency ¶
func (m *CustomerMutation) ResetCurrency()
ResetCurrency resets all changes to the "currency" field.
func (*CustomerMutation) ResetDeletedAt ¶
func (m *CustomerMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*CustomerMutation) ResetEdge ¶
func (m *CustomerMutation) 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 (*CustomerMutation) ResetExternalMappingStripeCustomerID ¶
func (m *CustomerMutation) ResetExternalMappingStripeCustomerID()
ResetExternalMappingStripeCustomerID resets all changes to the "external_mapping_stripe_customer_id" field.
func (*CustomerMutation) ResetField ¶
func (m *CustomerMutation) 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 (*CustomerMutation) ResetMetadata ¶
func (m *CustomerMutation) ResetMetadata()
ResetMetadata resets all changes to the "metadata" field.
func (*CustomerMutation) ResetName ¶
func (m *CustomerMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*CustomerMutation) ResetNamespace ¶
func (m *CustomerMutation) ResetNamespace()
ResetNamespace resets all changes to the "namespace" field.
func (*CustomerMutation) ResetPrimaryEmail ¶
func (m *CustomerMutation) ResetPrimaryEmail()
ResetPrimaryEmail resets all changes to the "primary_email" field.
func (*CustomerMutation) ResetSubjects ¶
func (m *CustomerMutation) ResetSubjects()
ResetSubjects resets all changes to the "subjects" edge.
func (*CustomerMutation) ResetTimezone ¶
func (m *CustomerMutation) ResetTimezone()
ResetTimezone resets all changes to the "timezone" field.
func (*CustomerMutation) ResetUpdatedAt ¶
func (m *CustomerMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*CustomerMutation) SetBillingAddressCity ¶
func (m *CustomerMutation) SetBillingAddressCity(s string)
SetBillingAddressCity sets the "billing_address_city" field.
func (*CustomerMutation) SetBillingAddressCountry ¶
func (m *CustomerMutation) SetBillingAddressCountry(mc models.CountryCode)
SetBillingAddressCountry sets the "billing_address_country" field.
func (*CustomerMutation) SetBillingAddressLine1 ¶
func (m *CustomerMutation) SetBillingAddressLine1(s string)
SetBillingAddressLine1 sets the "billing_address_line1" field.
func (*CustomerMutation) SetBillingAddressLine2 ¶
func (m *CustomerMutation) SetBillingAddressLine2(s string)
SetBillingAddressLine2 sets the "billing_address_line2" field.
func (*CustomerMutation) SetBillingAddressPhoneNumber ¶
func (m *CustomerMutation) SetBillingAddressPhoneNumber(s string)
SetBillingAddressPhoneNumber sets the "billing_address_phone_number" field.
func (*CustomerMutation) SetBillingAddressPostalCode ¶
func (m *CustomerMutation) SetBillingAddressPostalCode(s string)
SetBillingAddressPostalCode sets the "billing_address_postal_code" field.
func (*CustomerMutation) SetBillingAddressState ¶
func (m *CustomerMutation) SetBillingAddressState(s string)
SetBillingAddressState sets the "billing_address_state" field.
func (*CustomerMutation) SetBillingCustomerOverrideID ¶
func (m *CustomerMutation) SetBillingCustomerOverrideID(id string)
SetBillingCustomerOverrideID sets the "billing_customer_override" edge to the BillingCustomerOverride entity by id.
func (*CustomerMutation) SetCreatedAt ¶
func (m *CustomerMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*CustomerMutation) SetCurrency ¶
func (m *CustomerMutation) SetCurrency(c currencyx.Code)
SetCurrency sets the "currency" field.
func (*CustomerMutation) SetDeletedAt ¶
func (m *CustomerMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*CustomerMutation) SetExternalMappingStripeCustomerID ¶
func (m *CustomerMutation) SetExternalMappingStripeCustomerID(s string)
SetExternalMappingStripeCustomerID sets the "external_mapping_stripe_customer_id" field.
func (*CustomerMutation) SetField ¶
func (m *CustomerMutation) 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 (*CustomerMutation) SetID ¶
func (m *CustomerMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Customer entities.
func (*CustomerMutation) SetMetadata ¶
func (m *CustomerMutation) SetMetadata(value map[string]string)
SetMetadata sets the "metadata" field.
func (*CustomerMutation) SetName ¶
func (m *CustomerMutation) SetName(s string)
SetName sets the "name" field.
func (*CustomerMutation) SetNamespace ¶
func (m *CustomerMutation) SetNamespace(s string)
SetNamespace sets the "namespace" field.
func (*CustomerMutation) SetOp ¶
func (m *CustomerMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*CustomerMutation) SetPrimaryEmail ¶
func (m *CustomerMutation) SetPrimaryEmail(s string)
SetPrimaryEmail sets the "primary_email" field.
func (*CustomerMutation) SetTimezone ¶
func (m *CustomerMutation) SetTimezone(t timezone.Timezone)
SetTimezone sets the "timezone" field.
func (*CustomerMutation) SetUpdatedAt ¶
func (m *CustomerMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*CustomerMutation) SubjectsCleared ¶
func (m *CustomerMutation) SubjectsCleared() bool
SubjectsCleared reports if the "subjects" edge to the CustomerSubjects entity was cleared.
func (*CustomerMutation) SubjectsIDs ¶
func (m *CustomerMutation) SubjectsIDs() (ids []int)
SubjectsIDs returns the "subjects" edge IDs in the mutation.
func (*CustomerMutation) Timezone ¶
func (m *CustomerMutation) Timezone() (r timezone.Timezone, exists bool)
Timezone returns the value of the "timezone" field in the mutation.
func (*CustomerMutation) TimezoneCleared ¶
func (m *CustomerMutation) TimezoneCleared() bool
TimezoneCleared returns if the "timezone" field was cleared in this mutation.
func (CustomerMutation) Tx ¶
func (m CustomerMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*CustomerMutation) Type ¶
func (m *CustomerMutation) Type() string
Type returns the node type of this mutation (Customer).
func (*CustomerMutation) UpdatedAt ¶
func (m *CustomerMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*CustomerMutation) Where ¶
func (m *CustomerMutation) Where(ps ...predicate.Customer)
Where appends a list predicates to the CustomerMutation builder.
func (*CustomerMutation) WhereP ¶
func (m *CustomerMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the CustomerMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type CustomerQuery ¶
type CustomerQuery struct {
// contains filtered or unexported fields
}
CustomerQuery is the builder for querying Customer entities.
func (*CustomerQuery) Aggregate ¶
func (cq *CustomerQuery) Aggregate(fns ...AggregateFunc) *CustomerSelect
Aggregate returns a CustomerSelect configured with the given aggregations.
func (*CustomerQuery) All ¶
func (cq *CustomerQuery) All(ctx context.Context) ([]*Customer, error)
All executes the query and returns a list of Customers.
func (*CustomerQuery) AllX ¶
func (cq *CustomerQuery) AllX(ctx context.Context) []*Customer
AllX is like All, but panics if an error occurs.
func (*CustomerQuery) Clone ¶
func (cq *CustomerQuery) Clone() *CustomerQuery
Clone returns a duplicate of the CustomerQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*CustomerQuery) Count ¶
func (cq *CustomerQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*CustomerQuery) CountX ¶
func (cq *CustomerQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*CustomerQuery) ExecContext ¶
func (c *CustomerQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*CustomerQuery) Exist ¶
func (cq *CustomerQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*CustomerQuery) ExistX ¶
func (cq *CustomerQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*CustomerQuery) First ¶
func (cq *CustomerQuery) First(ctx context.Context) (*Customer, error)
First returns the first Customer entity from the query. Returns a *NotFoundError when no Customer was found.
func (*CustomerQuery) FirstID ¶
func (cq *CustomerQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first Customer ID from the query. Returns a *NotFoundError when no Customer ID was found.
func (*CustomerQuery) FirstIDX ¶
func (cq *CustomerQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*CustomerQuery) FirstX ¶
func (cq *CustomerQuery) FirstX(ctx context.Context) *Customer
FirstX is like First, but panics if an error occurs.
func (*CustomerQuery) ForShare ¶
func (cq *CustomerQuery) ForShare(opts ...sql.LockOption) *CustomerQuery
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 (*CustomerQuery) ForUpdate ¶
func (cq *CustomerQuery) ForUpdate(opts ...sql.LockOption) *CustomerQuery
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 (*CustomerQuery) GroupBy ¶
func (cq *CustomerQuery) GroupBy(field string, fields ...string) *CustomerGroupBy
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 {
Namespace string `json:"namespace,omitempty"`
Count int `json:"count,omitempty"`
}
client.Customer.Query().
GroupBy(customer.FieldNamespace).
Aggregate(db.Count()).
Scan(ctx, &v)
func (*CustomerQuery) IDs ¶
func (cq *CustomerQuery) IDs(ctx context.Context) (ids []string, err error)
IDs executes the query and returns a list of Customer IDs.
func (*CustomerQuery) IDsX ¶
func (cq *CustomerQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*CustomerQuery) Limit ¶
func (cq *CustomerQuery) Limit(limit int) *CustomerQuery
Limit the number of records to be returned by this query.
func (*CustomerQuery) Offset ¶
func (cq *CustomerQuery) Offset(offset int) *CustomerQuery
Offset to start from.
func (*CustomerQuery) Only ¶
func (cq *CustomerQuery) Only(ctx context.Context) (*Customer, error)
Only returns a single Customer entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Customer entity is found. Returns a *NotFoundError when no Customer entities are found.
func (*CustomerQuery) OnlyID ¶
func (cq *CustomerQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only Customer ID in the query. Returns a *NotSingularError when more than one Customer ID is found. Returns a *NotFoundError when no entities are found.
func (*CustomerQuery) OnlyIDX ¶
func (cq *CustomerQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*CustomerQuery) OnlyX ¶
func (cq *CustomerQuery) OnlyX(ctx context.Context) *Customer
OnlyX is like Only, but panics if an error occurs.
func (*CustomerQuery) Order ¶
func (cq *CustomerQuery) Order(o ...customer.OrderOption) *CustomerQuery
Order specifies how the records should be ordered.
func (*CustomerQuery) Paginate ¶
func (c *CustomerQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*Customer], error)
Paginate runs the query and returns a paginated response. If page is its 0 value then it will return all the items and populate the response page accordingly.
func (*CustomerQuery) QueryBillingCustomerOverride ¶
func (cq *CustomerQuery) QueryBillingCustomerOverride() *BillingCustomerOverrideQuery
QueryBillingCustomerOverride chains the current query on the "billing_customer_override" edge.
func (*CustomerQuery) QueryContext ¶
func (c *CustomerQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*CustomerQuery) QuerySubjects ¶
func (cq *CustomerQuery) QuerySubjects() *CustomerSubjectsQuery
QuerySubjects chains the current query on the "subjects" edge.
func (*CustomerQuery) Select ¶
func (cq *CustomerQuery) Select(fields ...string) *CustomerSelect
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 {
Namespace string `json:"namespace,omitempty"`
}
client.Customer.Query().
Select(customer.FieldNamespace).
Scan(ctx, &v)
func (*CustomerQuery) Unique ¶
func (cq *CustomerQuery) Unique(unique bool) *CustomerQuery
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 (*CustomerQuery) Where ¶
func (cq *CustomerQuery) Where(ps ...predicate.Customer) *CustomerQuery
Where adds a new predicate for the CustomerQuery builder.
func (*CustomerQuery) WithBillingCustomerOverride ¶
func (cq *CustomerQuery) WithBillingCustomerOverride(opts ...func(*BillingCustomerOverrideQuery)) *CustomerQuery
WithBillingCustomerOverride tells the query-builder to eager-load the nodes that are connected to the "billing_customer_override" edge. The optional arguments are used to configure the query builder of the edge.
func (*CustomerQuery) WithSubjects ¶
func (cq *CustomerQuery) WithSubjects(opts ...func(*CustomerSubjectsQuery)) *CustomerQuery
WithSubjects tells the query-builder to eager-load the nodes that are connected to the "subjects" edge. The optional arguments are used to configure the query builder of the edge.
type CustomerSelect ¶
type CustomerSelect struct {
*CustomerQuery
// contains filtered or unexported fields
}
CustomerSelect is the builder for selecting fields of Customer entities.
func (*CustomerSelect) Aggregate ¶
func (cs *CustomerSelect) Aggregate(fns ...AggregateFunc) *CustomerSelect
Aggregate adds the given aggregation functions to the selector query.
func (*CustomerSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*CustomerSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (CustomerSelect) ExecContext ¶
func (c CustomerSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*CustomerSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*CustomerSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*CustomerSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*CustomerSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (CustomerSelect) QueryContext ¶
func (c CustomerSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*CustomerSelect) Scan ¶
func (cs *CustomerSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*CustomerSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type CustomerSubjects ¶
type CustomerSubjects struct {
// ID of the ent.
ID int `json:"id,omitempty"`
// Namespace holds the value of the "namespace" field.
Namespace string `json:"namespace,omitempty"`
// CustomerID holds the value of the "customer_id" field.
CustomerID string `json:"customer_id,omitempty"`
// SubjectKey holds the value of the "subject_key" field.
SubjectKey string `json:"subject_key,omitempty"`
// CreatedAt holds the value of the "created_at" field.
CreatedAt time.Time `json:"created_at,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the CustomerSubjectsQuery when eager-loading is set.
Edges CustomerSubjectsEdges `json:"edges"`
// contains filtered or unexported fields
}
CustomerSubjects is the model entity for the CustomerSubjects schema.
func (*CustomerSubjects) ExecContext ¶
func (c *CustomerSubjects) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*CustomerSubjects) QueryContext ¶
func (c *CustomerSubjects) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*CustomerSubjects) QueryCustomer ¶
func (cs *CustomerSubjects) QueryCustomer() *CustomerQuery
QueryCustomer queries the "customer" edge of the CustomerSubjects entity.
func (*CustomerSubjects) String ¶
func (cs *CustomerSubjects) String() string
String implements the fmt.Stringer.
func (*CustomerSubjects) Unwrap ¶
func (cs *CustomerSubjects) Unwrap() *CustomerSubjects
Unwrap unwraps the CustomerSubjects 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 (*CustomerSubjects) Update ¶
func (cs *CustomerSubjects) Update() *CustomerSubjectsUpdateOne
Update returns a builder for updating this CustomerSubjects. Note that you need to call CustomerSubjects.Unwrap() before calling this method if this CustomerSubjects was returned from a transaction, and the transaction was committed or rolled back.
type CustomerSubjectsClient ¶
type CustomerSubjectsClient struct {
// contains filtered or unexported fields
}
CustomerSubjectsClient is a client for the CustomerSubjects schema.
func NewCustomerSubjectsClient ¶
func NewCustomerSubjectsClient(c config) *CustomerSubjectsClient
NewCustomerSubjectsClient returns a client for the CustomerSubjects from the given config.
func (*CustomerSubjectsClient) Create ¶
func (c *CustomerSubjectsClient) Create() *CustomerSubjectsCreate
Create returns a builder for creating a CustomerSubjects entity.
func (*CustomerSubjectsClient) CreateBulk ¶
func (c *CustomerSubjectsClient) CreateBulk(builders ...*CustomerSubjectsCreate) *CustomerSubjectsCreateBulk
CreateBulk returns a builder for creating a bulk of CustomerSubjects entities.
func (*CustomerSubjectsClient) Delete ¶
func (c *CustomerSubjectsClient) Delete() *CustomerSubjectsDelete
Delete returns a delete builder for CustomerSubjects.
func (*CustomerSubjectsClient) DeleteOne ¶
func (c *CustomerSubjectsClient) DeleteOne(cs *CustomerSubjects) *CustomerSubjectsDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*CustomerSubjectsClient) DeleteOneID ¶
func (c *CustomerSubjectsClient) DeleteOneID(id int) *CustomerSubjectsDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*CustomerSubjectsClient) ExecContext ¶
func (c *CustomerSubjectsClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*CustomerSubjectsClient) Get ¶
func (c *CustomerSubjectsClient) Get(ctx context.Context, id int) (*CustomerSubjects, error)
Get returns a CustomerSubjects entity by its id.
func (*CustomerSubjectsClient) GetX ¶
func (c *CustomerSubjectsClient) GetX(ctx context.Context, id int) *CustomerSubjects
GetX is like Get, but panics if an error occurs.
func (*CustomerSubjectsClient) Hooks ¶
func (c *CustomerSubjectsClient) Hooks() []Hook
Hooks returns the client hooks.
func (*CustomerSubjectsClient) Intercept ¶
func (c *CustomerSubjectsClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `customersubjects.Intercept(f(g(h())))`.
func (*CustomerSubjectsClient) Interceptors ¶
func (c *CustomerSubjectsClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*CustomerSubjectsClient) MapCreateBulk ¶
func (c *CustomerSubjectsClient) MapCreateBulk(slice any, setFunc func(*CustomerSubjectsCreate, int)) *CustomerSubjectsCreateBulk
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 (*CustomerSubjectsClient) Query ¶
func (c *CustomerSubjectsClient) Query() *CustomerSubjectsQuery
Query returns a query builder for CustomerSubjects.
func (*CustomerSubjectsClient) QueryContext ¶
func (c *CustomerSubjectsClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*CustomerSubjectsClient) QueryCustomer ¶
func (c *CustomerSubjectsClient) QueryCustomer(cs *CustomerSubjects) *CustomerQuery
QueryCustomer queries the customer edge of a CustomerSubjects.
func (*CustomerSubjectsClient) Update ¶
func (c *CustomerSubjectsClient) Update() *CustomerSubjectsUpdate
Update returns an update builder for CustomerSubjects.
func (*CustomerSubjectsClient) UpdateOne ¶
func (c *CustomerSubjectsClient) UpdateOne(cs *CustomerSubjects) *CustomerSubjectsUpdateOne
UpdateOne returns an update builder for the given entity.
func (*CustomerSubjectsClient) UpdateOneID ¶
func (c *CustomerSubjectsClient) UpdateOneID(id int) *CustomerSubjectsUpdateOne
UpdateOneID returns an update builder for the given id.
func (*CustomerSubjectsClient) Use ¶
func (c *CustomerSubjectsClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `customersubjects.Hooks(f(g(h())))`.
type CustomerSubjectsCreate ¶
type CustomerSubjectsCreate struct {
// contains filtered or unexported fields
}
CustomerSubjectsCreate is the builder for creating a CustomerSubjects entity.
func (*CustomerSubjectsCreate) Exec ¶
func (csc *CustomerSubjectsCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*CustomerSubjectsCreate) ExecContext ¶
func (c *CustomerSubjectsCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*CustomerSubjectsCreate) ExecX ¶
func (csc *CustomerSubjectsCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CustomerSubjectsCreate) Mutation ¶
func (csc *CustomerSubjectsCreate) Mutation() *CustomerSubjectsMutation
Mutation returns the CustomerSubjectsMutation object of the builder.
func (*CustomerSubjectsCreate) OnConflict ¶
func (csc *CustomerSubjectsCreate) OnConflict(opts ...sql.ConflictOption) *CustomerSubjectsUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.CustomerSubjects.Create().
SetNamespace(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.CustomerSubjectsUpsert) {
SetNamespace(v+v).
}).
Exec(ctx)
func (*CustomerSubjectsCreate) OnConflictColumns ¶
func (csc *CustomerSubjectsCreate) OnConflictColumns(columns ...string) *CustomerSubjectsUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.CustomerSubjects.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*CustomerSubjectsCreate) QueryContext ¶
func (c *CustomerSubjectsCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*CustomerSubjectsCreate) Save ¶
func (csc *CustomerSubjectsCreate) Save(ctx context.Context) (*CustomerSubjects, error)
Save creates the CustomerSubjects in the database.
func (*CustomerSubjectsCreate) SaveX ¶
func (csc *CustomerSubjectsCreate) SaveX(ctx context.Context) *CustomerSubjects
SaveX calls Save and panics if Save returns an error.
func (*CustomerSubjectsCreate) SetCreatedAt ¶
func (csc *CustomerSubjectsCreate) SetCreatedAt(t time.Time) *CustomerSubjectsCreate
SetCreatedAt sets the "created_at" field.
func (*CustomerSubjectsCreate) SetCustomer ¶
func (csc *CustomerSubjectsCreate) SetCustomer(c *Customer) *CustomerSubjectsCreate
SetCustomer sets the "customer" edge to the Customer entity.
func (*CustomerSubjectsCreate) SetCustomerID ¶
func (csc *CustomerSubjectsCreate) SetCustomerID(s string) *CustomerSubjectsCreate
SetCustomerID sets the "customer_id" field.
func (*CustomerSubjectsCreate) SetNamespace ¶
func (csc *CustomerSubjectsCreate) SetNamespace(s string) *CustomerSubjectsCreate
SetNamespace sets the "namespace" field.
func (*CustomerSubjectsCreate) SetNillableCreatedAt ¶
func (csc *CustomerSubjectsCreate) SetNillableCreatedAt(t *time.Time) *CustomerSubjectsCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*CustomerSubjectsCreate) SetSubjectKey ¶
func (csc *CustomerSubjectsCreate) SetSubjectKey(s string) *CustomerSubjectsCreate
SetSubjectKey sets the "subject_key" field.
type CustomerSubjectsCreateBulk ¶
type CustomerSubjectsCreateBulk struct {
// contains filtered or unexported fields
}
CustomerSubjectsCreateBulk is the builder for creating many CustomerSubjects entities in bulk.
func (*CustomerSubjectsCreateBulk) Exec ¶
func (cscb *CustomerSubjectsCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*CustomerSubjectsCreateBulk) ExecContext ¶
func (c *CustomerSubjectsCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*CustomerSubjectsCreateBulk) ExecX ¶
func (cscb *CustomerSubjectsCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CustomerSubjectsCreateBulk) OnConflict ¶
func (cscb *CustomerSubjectsCreateBulk) OnConflict(opts ...sql.ConflictOption) *CustomerSubjectsUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.CustomerSubjects.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.CustomerSubjectsUpsert) {
SetNamespace(v+v).
}).
Exec(ctx)
func (*CustomerSubjectsCreateBulk) OnConflictColumns ¶
func (cscb *CustomerSubjectsCreateBulk) OnConflictColumns(columns ...string) *CustomerSubjectsUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.CustomerSubjects.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*CustomerSubjectsCreateBulk) QueryContext ¶
func (c *CustomerSubjectsCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*CustomerSubjectsCreateBulk) Save ¶
func (cscb *CustomerSubjectsCreateBulk) Save(ctx context.Context) ([]*CustomerSubjects, error)
Save creates the CustomerSubjects entities in the database.
func (*CustomerSubjectsCreateBulk) SaveX ¶
func (cscb *CustomerSubjectsCreateBulk) SaveX(ctx context.Context) []*CustomerSubjects
SaveX is like Save, but panics if an error occurs.
type CustomerSubjectsDelete ¶
type CustomerSubjectsDelete struct {
// contains filtered or unexported fields
}
CustomerSubjectsDelete is the builder for deleting a CustomerSubjects entity.
func (*CustomerSubjectsDelete) Exec ¶
func (csd *CustomerSubjectsDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*CustomerSubjectsDelete) ExecContext ¶
func (c *CustomerSubjectsDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*CustomerSubjectsDelete) ExecX ¶
func (csd *CustomerSubjectsDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*CustomerSubjectsDelete) QueryContext ¶
func (c *CustomerSubjectsDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*CustomerSubjectsDelete) Where ¶
func (csd *CustomerSubjectsDelete) Where(ps ...predicate.CustomerSubjects) *CustomerSubjectsDelete
Where appends a list predicates to the CustomerSubjectsDelete builder.
type CustomerSubjectsDeleteOne ¶
type CustomerSubjectsDeleteOne struct {
// contains filtered or unexported fields
}
CustomerSubjectsDeleteOne is the builder for deleting a single CustomerSubjects entity.
func (*CustomerSubjectsDeleteOne) Exec ¶
func (csdo *CustomerSubjectsDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*CustomerSubjectsDeleteOne) ExecX ¶
func (csdo *CustomerSubjectsDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CustomerSubjectsDeleteOne) Where ¶
func (csdo *CustomerSubjectsDeleteOne) Where(ps ...predicate.CustomerSubjects) *CustomerSubjectsDeleteOne
Where appends a list predicates to the CustomerSubjectsDelete builder.
type CustomerSubjectsEdges ¶
type CustomerSubjectsEdges struct {
// Customer holds the value of the customer edge.
Customer *Customer `json:"customer,omitempty"`
// contains filtered or unexported fields
}
CustomerSubjectsEdges holds the relations/edges for other nodes in the graph.
func (CustomerSubjectsEdges) CustomerOrErr ¶
func (e CustomerSubjectsEdges) CustomerOrErr() (*Customer, error)
CustomerOrErr returns the Customer value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type CustomerSubjectsGroupBy ¶
type CustomerSubjectsGroupBy struct {
// contains filtered or unexported fields
}
CustomerSubjectsGroupBy is the group-by builder for CustomerSubjects entities.
func (*CustomerSubjectsGroupBy) Aggregate ¶
func (csgb *CustomerSubjectsGroupBy) Aggregate(fns ...AggregateFunc) *CustomerSubjectsGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*CustomerSubjectsGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*CustomerSubjectsGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*CustomerSubjectsGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*CustomerSubjectsGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*CustomerSubjectsGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*CustomerSubjectsGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*CustomerSubjectsGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*CustomerSubjectsGroupBy) Scan ¶
func (csgb *CustomerSubjectsGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*CustomerSubjectsGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type CustomerSubjectsMutation ¶
type CustomerSubjectsMutation struct {
// contains filtered or unexported fields
}
CustomerSubjectsMutation represents an operation that mutates the CustomerSubjects nodes in the graph.
func (*CustomerSubjectsMutation) AddField ¶
func (m *CustomerSubjectsMutation) 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 (*CustomerSubjectsMutation) AddedEdges ¶
func (m *CustomerSubjectsMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*CustomerSubjectsMutation) AddedField ¶
func (m *CustomerSubjectsMutation) 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 (*CustomerSubjectsMutation) AddedFields ¶
func (m *CustomerSubjectsMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*CustomerSubjectsMutation) AddedIDs ¶
func (m *CustomerSubjectsMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*CustomerSubjectsMutation) ClearCustomer ¶
func (m *CustomerSubjectsMutation) ClearCustomer()
ClearCustomer clears the "customer" edge to the Customer entity.
func (*CustomerSubjectsMutation) ClearEdge ¶
func (m *CustomerSubjectsMutation) 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 (*CustomerSubjectsMutation) ClearField ¶
func (m *CustomerSubjectsMutation) 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 (*CustomerSubjectsMutation) ClearedEdges ¶
func (m *CustomerSubjectsMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*CustomerSubjectsMutation) ClearedFields ¶
func (m *CustomerSubjectsMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (CustomerSubjectsMutation) Client ¶
func (m CustomerSubjectsMutation) 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 (*CustomerSubjectsMutation) CreatedAt ¶
func (m *CustomerSubjectsMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*CustomerSubjectsMutation) CustomerCleared ¶
func (m *CustomerSubjectsMutation) CustomerCleared() bool
CustomerCleared reports if the "customer" edge to the Customer entity was cleared.
func (*CustomerSubjectsMutation) CustomerID ¶
func (m *CustomerSubjectsMutation) CustomerID() (r string, exists bool)
CustomerID returns the value of the "customer_id" field in the mutation.
func (*CustomerSubjectsMutation) CustomerIDs ¶
func (m *CustomerSubjectsMutation) CustomerIDs() (ids []string)
CustomerIDs returns the "customer" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use CustomerID instead. It exists only for internal usage by the builders.
func (*CustomerSubjectsMutation) EdgeCleared ¶
func (m *CustomerSubjectsMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*CustomerSubjectsMutation) ExecContext ¶
func (c *CustomerSubjectsMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*CustomerSubjectsMutation) Field ¶
func (m *CustomerSubjectsMutation) 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 (*CustomerSubjectsMutation) FieldCleared ¶
func (m *CustomerSubjectsMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*CustomerSubjectsMutation) Fields ¶
func (m *CustomerSubjectsMutation) 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 (*CustomerSubjectsMutation) ID ¶
func (m *CustomerSubjectsMutation) ID() (id int, 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 (*CustomerSubjectsMutation) IDs ¶
func (m *CustomerSubjectsMutation) IDs(ctx context.Context) ([]int, error)
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 (*CustomerSubjectsMutation) Namespace ¶
func (m *CustomerSubjectsMutation) Namespace() (r string, exists bool)
Namespace returns the value of the "namespace" field in the mutation.
func (*CustomerSubjectsMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the CustomerSubjects entity. If the CustomerSubjects 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 (*CustomerSubjectsMutation) OldCustomerID ¶
func (m *CustomerSubjectsMutation) OldCustomerID(ctx context.Context) (v string, err error)
OldCustomerID returns the old "customer_id" field's value of the CustomerSubjects entity. If the CustomerSubjects 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 (*CustomerSubjectsMutation) OldField ¶
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 (*CustomerSubjectsMutation) OldNamespace ¶
func (m *CustomerSubjectsMutation) OldNamespace(ctx context.Context) (v string, err error)
OldNamespace returns the old "namespace" field's value of the CustomerSubjects entity. If the CustomerSubjects 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 (*CustomerSubjectsMutation) OldSubjectKey ¶
func (m *CustomerSubjectsMutation) OldSubjectKey(ctx context.Context) (v string, err error)
OldSubjectKey returns the old "subject_key" field's value of the CustomerSubjects entity. If the CustomerSubjects 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 (*CustomerSubjectsMutation) Op ¶
func (m *CustomerSubjectsMutation) Op() Op
Op returns the operation name.
func (*CustomerSubjectsMutation) QueryContext ¶
func (c *CustomerSubjectsMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*CustomerSubjectsMutation) RemovedEdges ¶
func (m *CustomerSubjectsMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*CustomerSubjectsMutation) RemovedIDs ¶
func (m *CustomerSubjectsMutation) 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 (*CustomerSubjectsMutation) ResetCreatedAt ¶
func (m *CustomerSubjectsMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*CustomerSubjectsMutation) ResetCustomer ¶
func (m *CustomerSubjectsMutation) ResetCustomer()
ResetCustomer resets all changes to the "customer" edge.
func (*CustomerSubjectsMutation) ResetCustomerID ¶
func (m *CustomerSubjectsMutation) ResetCustomerID()
ResetCustomerID resets all changes to the "customer_id" field.
func (*CustomerSubjectsMutation) ResetEdge ¶
func (m *CustomerSubjectsMutation) 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 (*CustomerSubjectsMutation) ResetField ¶
func (m *CustomerSubjectsMutation) 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 (*CustomerSubjectsMutation) ResetNamespace ¶
func (m *CustomerSubjectsMutation) ResetNamespace()
ResetNamespace resets all changes to the "namespace" field.
func (*CustomerSubjectsMutation) ResetSubjectKey ¶
func (m *CustomerSubjectsMutation) ResetSubjectKey()
ResetSubjectKey resets all changes to the "subject_key" field.
func (*CustomerSubjectsMutation) SetCreatedAt ¶
func (m *CustomerSubjectsMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*CustomerSubjectsMutation) SetCustomerID ¶
func (m *CustomerSubjectsMutation) SetCustomerID(s string)
SetCustomerID sets the "customer_id" field.
func (*CustomerSubjectsMutation) SetField ¶
func (m *CustomerSubjectsMutation) 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 (*CustomerSubjectsMutation) SetNamespace ¶
func (m *CustomerSubjectsMutation) SetNamespace(s string)
SetNamespace sets the "namespace" field.
func (*CustomerSubjectsMutation) SetOp ¶
func (m *CustomerSubjectsMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*CustomerSubjectsMutation) SetSubjectKey ¶
func (m *CustomerSubjectsMutation) SetSubjectKey(s string)
SetSubjectKey sets the "subject_key" field.
func (*CustomerSubjectsMutation) SubjectKey ¶
func (m *CustomerSubjectsMutation) SubjectKey() (r string, exists bool)
SubjectKey returns the value of the "subject_key" field in the mutation.
func (CustomerSubjectsMutation) Tx ¶
func (m CustomerSubjectsMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*CustomerSubjectsMutation) Type ¶
func (m *CustomerSubjectsMutation) Type() string
Type returns the node type of this mutation (CustomerSubjects).
func (*CustomerSubjectsMutation) Where ¶
func (m *CustomerSubjectsMutation) Where(ps ...predicate.CustomerSubjects)
Where appends a list predicates to the CustomerSubjectsMutation builder.
func (*CustomerSubjectsMutation) WhereP ¶
func (m *CustomerSubjectsMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the CustomerSubjectsMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type CustomerSubjectsQuery ¶
type CustomerSubjectsQuery struct {
// contains filtered or unexported fields
}
CustomerSubjectsQuery is the builder for querying CustomerSubjects entities.
func (*CustomerSubjectsQuery) Aggregate ¶
func (csq *CustomerSubjectsQuery) Aggregate(fns ...AggregateFunc) *CustomerSubjectsSelect
Aggregate returns a CustomerSubjectsSelect configured with the given aggregations.
func (*CustomerSubjectsQuery) All ¶
func (csq *CustomerSubjectsQuery) All(ctx context.Context) ([]*CustomerSubjects, error)
All executes the query and returns a list of CustomerSubjectsSlice.
func (*CustomerSubjectsQuery) AllX ¶
func (csq *CustomerSubjectsQuery) AllX(ctx context.Context) []*CustomerSubjects
AllX is like All, but panics if an error occurs.
func (*CustomerSubjectsQuery) Clone ¶
func (csq *CustomerSubjectsQuery) Clone() *CustomerSubjectsQuery
Clone returns a duplicate of the CustomerSubjectsQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*CustomerSubjectsQuery) Count ¶
func (csq *CustomerSubjectsQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*CustomerSubjectsQuery) CountX ¶
func (csq *CustomerSubjectsQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*CustomerSubjectsQuery) ExecContext ¶
func (c *CustomerSubjectsQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*CustomerSubjectsQuery) Exist ¶
func (csq *CustomerSubjectsQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*CustomerSubjectsQuery) ExistX ¶
func (csq *CustomerSubjectsQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*CustomerSubjectsQuery) First ¶
func (csq *CustomerSubjectsQuery) First(ctx context.Context) (*CustomerSubjects, error)
First returns the first CustomerSubjects entity from the query. Returns a *NotFoundError when no CustomerSubjects was found.
func (*CustomerSubjectsQuery) FirstID ¶
func (csq *CustomerSubjectsQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first CustomerSubjects ID from the query. Returns a *NotFoundError when no CustomerSubjects ID was found.
func (*CustomerSubjectsQuery) FirstIDX ¶
func (csq *CustomerSubjectsQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*CustomerSubjectsQuery) FirstX ¶
func (csq *CustomerSubjectsQuery) FirstX(ctx context.Context) *CustomerSubjects
FirstX is like First, but panics if an error occurs.
func (*CustomerSubjectsQuery) ForShare ¶
func (csq *CustomerSubjectsQuery) ForShare(opts ...sql.LockOption) *CustomerSubjectsQuery
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 (*CustomerSubjectsQuery) ForUpdate ¶
func (csq *CustomerSubjectsQuery) ForUpdate(opts ...sql.LockOption) *CustomerSubjectsQuery
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 (*CustomerSubjectsQuery) GroupBy ¶
func (csq *CustomerSubjectsQuery) GroupBy(field string, fields ...string) *CustomerSubjectsGroupBy
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 {
Namespace string `json:"namespace,omitempty"`
Count int `json:"count,omitempty"`
}
client.CustomerSubjects.Query().
GroupBy(customersubjects.FieldNamespace).
Aggregate(db.Count()).
Scan(ctx, &v)
func (*CustomerSubjectsQuery) IDs ¶
func (csq *CustomerSubjectsQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of CustomerSubjects IDs.
func (*CustomerSubjectsQuery) IDsX ¶
func (csq *CustomerSubjectsQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*CustomerSubjectsQuery) Limit ¶
func (csq *CustomerSubjectsQuery) Limit(limit int) *CustomerSubjectsQuery
Limit the number of records to be returned by this query.
func (*CustomerSubjectsQuery) Offset ¶
func (csq *CustomerSubjectsQuery) Offset(offset int) *CustomerSubjectsQuery
Offset to start from.
func (*CustomerSubjectsQuery) Only ¶
func (csq *CustomerSubjectsQuery) Only(ctx context.Context) (*CustomerSubjects, error)
Only returns a single CustomerSubjects entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one CustomerSubjects entity is found. Returns a *NotFoundError when no CustomerSubjects entities are found.
func (*CustomerSubjectsQuery) OnlyID ¶
func (csq *CustomerSubjectsQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only CustomerSubjects ID in the query. Returns a *NotSingularError when more than one CustomerSubjects ID is found. Returns a *NotFoundError when no entities are found.
func (*CustomerSubjectsQuery) OnlyIDX ¶
func (csq *CustomerSubjectsQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*CustomerSubjectsQuery) OnlyX ¶
func (csq *CustomerSubjectsQuery) OnlyX(ctx context.Context) *CustomerSubjects
OnlyX is like Only, but panics if an error occurs.
func (*CustomerSubjectsQuery) Order ¶
func (csq *CustomerSubjectsQuery) Order(o ...customersubjects.OrderOption) *CustomerSubjectsQuery
Order specifies how the records should be ordered.
func (*CustomerSubjectsQuery) Paginate ¶
func (cs *CustomerSubjectsQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*CustomerSubjects], error)
Paginate runs the query and returns a paginated response. If page is its 0 value then it will return all the items and populate the response page accordingly.
func (*CustomerSubjectsQuery) QueryContext ¶
func (c *CustomerSubjectsQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*CustomerSubjectsQuery) QueryCustomer ¶
func (csq *CustomerSubjectsQuery) QueryCustomer() *CustomerQuery
QueryCustomer chains the current query on the "customer" edge.
func (*CustomerSubjectsQuery) Select ¶
func (csq *CustomerSubjectsQuery) Select(fields ...string) *CustomerSubjectsSelect
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 {
Namespace string `json:"namespace,omitempty"`
}
client.CustomerSubjects.Query().
Select(customersubjects.FieldNamespace).
Scan(ctx, &v)
func (*CustomerSubjectsQuery) Unique ¶
func (csq *CustomerSubjectsQuery) Unique(unique bool) *CustomerSubjectsQuery
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 (*CustomerSubjectsQuery) Where ¶
func (csq *CustomerSubjectsQuery) Where(ps ...predicate.CustomerSubjects) *CustomerSubjectsQuery
Where adds a new predicate for the CustomerSubjectsQuery builder.
func (*CustomerSubjectsQuery) WithCustomer ¶
func (csq *CustomerSubjectsQuery) WithCustomer(opts ...func(*CustomerQuery)) *CustomerSubjectsQuery
WithCustomer tells the query-builder to eager-load the nodes that are connected to the "customer" edge. The optional arguments are used to configure the query builder of the edge.
type CustomerSubjectsSelect ¶
type CustomerSubjectsSelect struct {
*CustomerSubjectsQuery
// contains filtered or unexported fields
}
CustomerSubjectsSelect is the builder for selecting fields of CustomerSubjects entities.
func (*CustomerSubjectsSelect) Aggregate ¶
func (css *CustomerSubjectsSelect) Aggregate(fns ...AggregateFunc) *CustomerSubjectsSelect
Aggregate adds the given aggregation functions to the selector query.
func (*CustomerSubjectsSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*CustomerSubjectsSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (CustomerSubjectsSelect) ExecContext ¶
func (c CustomerSubjectsSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*CustomerSubjectsSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*CustomerSubjectsSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*CustomerSubjectsSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*CustomerSubjectsSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*CustomerSubjectsSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (CustomerSubjectsSelect) QueryContext ¶
func (c CustomerSubjectsSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*CustomerSubjectsSelect) Scan ¶
func (css *CustomerSubjectsSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*CustomerSubjectsSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type CustomerSubjectsSlice ¶
type CustomerSubjectsSlice []*CustomerSubjects
CustomerSubjectsSlice is a parsable slice of CustomerSubjects.
type CustomerSubjectsUpdate ¶
type CustomerSubjectsUpdate struct {
// contains filtered or unexported fields
}
CustomerSubjectsUpdate is the builder for updating CustomerSubjects entities.
func (*CustomerSubjectsUpdate) Exec ¶
func (csu *CustomerSubjectsUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*CustomerSubjectsUpdate) ExecContext ¶
func (c *CustomerSubjectsUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*CustomerSubjectsUpdate) ExecX ¶
func (csu *CustomerSubjectsUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CustomerSubjectsUpdate) Mutation ¶
func (csu *CustomerSubjectsUpdate) Mutation() *CustomerSubjectsMutation
Mutation returns the CustomerSubjectsMutation object of the builder.
func (*CustomerSubjectsUpdate) QueryContext ¶
func (c *CustomerSubjectsUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*CustomerSubjectsUpdate) Save ¶
func (csu *CustomerSubjectsUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*CustomerSubjectsUpdate) SaveX ¶
func (csu *CustomerSubjectsUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*CustomerSubjectsUpdate) Where ¶
func (csu *CustomerSubjectsUpdate) Where(ps ...predicate.CustomerSubjects) *CustomerSubjectsUpdate
Where appends a list predicates to the CustomerSubjectsUpdate builder.
type CustomerSubjectsUpdateOne ¶
type CustomerSubjectsUpdateOne struct {
// contains filtered or unexported fields
}
CustomerSubjectsUpdateOne is the builder for updating a single CustomerSubjects entity.
func (*CustomerSubjectsUpdateOne) Exec ¶
func (csuo *CustomerSubjectsUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*CustomerSubjectsUpdateOne) ExecContext ¶
func (c *CustomerSubjectsUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*CustomerSubjectsUpdateOne) ExecX ¶
func (csuo *CustomerSubjectsUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CustomerSubjectsUpdateOne) Mutation ¶
func (csuo *CustomerSubjectsUpdateOne) Mutation() *CustomerSubjectsMutation
Mutation returns the CustomerSubjectsMutation object of the builder.
func (*CustomerSubjectsUpdateOne) QueryContext ¶
func (c *CustomerSubjectsUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*CustomerSubjectsUpdateOne) Save ¶
func (csuo *CustomerSubjectsUpdateOne) Save(ctx context.Context) (*CustomerSubjects, error)
Save executes the query and returns the updated CustomerSubjects entity.
func (*CustomerSubjectsUpdateOne) SaveX ¶
func (csuo *CustomerSubjectsUpdateOne) SaveX(ctx context.Context) *CustomerSubjects
SaveX is like Save, but panics if an error occurs.
func (*CustomerSubjectsUpdateOne) Select ¶
func (csuo *CustomerSubjectsUpdateOne) Select(field string, fields ...string) *CustomerSubjectsUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*CustomerSubjectsUpdateOne) Where ¶
func (csuo *CustomerSubjectsUpdateOne) Where(ps ...predicate.CustomerSubjects) *CustomerSubjectsUpdateOne
Where appends a list predicates to the CustomerSubjectsUpdate builder.
type CustomerSubjectsUpsert ¶
CustomerSubjectsUpsert is the "OnConflict" setter.
type CustomerSubjectsUpsertBulk ¶
type CustomerSubjectsUpsertBulk struct {
// contains filtered or unexported fields
}
CustomerSubjectsUpsertBulk is the builder for "upsert"-ing a bulk of CustomerSubjects nodes.
func (*CustomerSubjectsUpsertBulk) DoNothing ¶
func (u *CustomerSubjectsUpsertBulk) DoNothing() *CustomerSubjectsUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*CustomerSubjectsUpsertBulk) Exec ¶
func (u *CustomerSubjectsUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*CustomerSubjectsUpsertBulk) ExecX ¶
func (u *CustomerSubjectsUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CustomerSubjectsUpsertBulk) Ignore ¶
func (u *CustomerSubjectsUpsertBulk) Ignore() *CustomerSubjectsUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.CustomerSubjects.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*CustomerSubjectsUpsertBulk) Update ¶
func (u *CustomerSubjectsUpsertBulk) Update(set func(*CustomerSubjectsUpsert)) *CustomerSubjectsUpsertBulk
Update allows overriding fields `UPDATE` values. See the CustomerSubjectsCreateBulk.OnConflict documentation for more info.
func (*CustomerSubjectsUpsertBulk) UpdateNewValues ¶
func (u *CustomerSubjectsUpsertBulk) UpdateNewValues() *CustomerSubjectsUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.CustomerSubjects.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
type CustomerSubjectsUpsertOne ¶
type CustomerSubjectsUpsertOne struct {
// contains filtered or unexported fields
}
CustomerSubjectsUpsertOne is the builder for "upsert"-ing
one CustomerSubjects node.
func (*CustomerSubjectsUpsertOne) DoNothing ¶
func (u *CustomerSubjectsUpsertOne) DoNothing() *CustomerSubjectsUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*CustomerSubjectsUpsertOne) Exec ¶
func (u *CustomerSubjectsUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*CustomerSubjectsUpsertOne) ExecX ¶
func (u *CustomerSubjectsUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CustomerSubjectsUpsertOne) ID ¶
func (u *CustomerSubjectsUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*CustomerSubjectsUpsertOne) IDX ¶
func (u *CustomerSubjectsUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*CustomerSubjectsUpsertOne) Ignore ¶
func (u *CustomerSubjectsUpsertOne) Ignore() *CustomerSubjectsUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.CustomerSubjects.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*CustomerSubjectsUpsertOne) Update ¶
func (u *CustomerSubjectsUpsertOne) Update(set func(*CustomerSubjectsUpsert)) *CustomerSubjectsUpsertOne
Update allows overriding fields `UPDATE` values. See the CustomerSubjectsCreate.OnConflict documentation for more info.
func (*CustomerSubjectsUpsertOne) UpdateNewValues ¶
func (u *CustomerSubjectsUpsertOne) UpdateNewValues() *CustomerSubjectsUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.CustomerSubjects.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
type CustomerUpdate ¶
type CustomerUpdate struct {
// contains filtered or unexported fields
}
CustomerUpdate is the builder for updating Customer entities.
func (*CustomerUpdate) AddSubjectIDs ¶
func (cu *CustomerUpdate) AddSubjectIDs(ids ...int) *CustomerUpdate
AddSubjectIDs adds the "subjects" edge to the CustomerSubjects entity by IDs.
func (*CustomerUpdate) AddSubjects ¶
func (cu *CustomerUpdate) AddSubjects(c ...*CustomerSubjects) *CustomerUpdate
AddSubjects adds the "subjects" edges to the CustomerSubjects entity.
func (*CustomerUpdate) ClearBillingAddressCity ¶
func (cu *CustomerUpdate) ClearBillingAddressCity() *CustomerUpdate
ClearBillingAddressCity clears the value of the "billing_address_city" field.
func (*CustomerUpdate) ClearBillingAddressCountry ¶
func (cu *CustomerUpdate) ClearBillingAddressCountry() *CustomerUpdate
ClearBillingAddressCountry clears the value of the "billing_address_country" field.
func (*CustomerUpdate) ClearBillingAddressLine1 ¶
func (cu *CustomerUpdate) ClearBillingAddressLine1() *CustomerUpdate
ClearBillingAddressLine1 clears the value of the "billing_address_line1" field.
func (*CustomerUpdate) ClearBillingAddressLine2 ¶
func (cu *CustomerUpdate) ClearBillingAddressLine2() *CustomerUpdate
ClearBillingAddressLine2 clears the value of the "billing_address_line2" field.
func (*CustomerUpdate) ClearBillingAddressPhoneNumber ¶
func (cu *CustomerUpdate) ClearBillingAddressPhoneNumber() *CustomerUpdate
ClearBillingAddressPhoneNumber clears the value of the "billing_address_phone_number" field.
func (*CustomerUpdate) ClearBillingAddressPostalCode ¶
func (cu *CustomerUpdate) ClearBillingAddressPostalCode() *CustomerUpdate
ClearBillingAddressPostalCode clears the value of the "billing_address_postal_code" field.
func (*CustomerUpdate) ClearBillingAddressState ¶
func (cu *CustomerUpdate) ClearBillingAddressState() *CustomerUpdate
ClearBillingAddressState clears the value of the "billing_address_state" field.
func (*CustomerUpdate) ClearBillingCustomerOverride ¶
func (cu *CustomerUpdate) ClearBillingCustomerOverride() *CustomerUpdate
ClearBillingCustomerOverride clears the "billing_customer_override" edge to the BillingCustomerOverride entity.
func (*CustomerUpdate) ClearCurrency ¶
func (cu *CustomerUpdate) ClearCurrency() *CustomerUpdate
ClearCurrency clears the value of the "currency" field.
func (*CustomerUpdate) ClearDeletedAt ¶
func (cu *CustomerUpdate) ClearDeletedAt() *CustomerUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*CustomerUpdate) ClearExternalMappingStripeCustomerID ¶
func (cu *CustomerUpdate) ClearExternalMappingStripeCustomerID() *CustomerUpdate
ClearExternalMappingStripeCustomerID clears the value of the "external_mapping_stripe_customer_id" field.
func (*CustomerUpdate) ClearMetadata ¶
func (cu *CustomerUpdate) ClearMetadata() *CustomerUpdate
ClearMetadata clears the value of the "metadata" field.
func (*CustomerUpdate) ClearPrimaryEmail ¶
func (cu *CustomerUpdate) ClearPrimaryEmail() *CustomerUpdate
ClearPrimaryEmail clears the value of the "primary_email" field.
func (*CustomerUpdate) ClearSubjects ¶
func (cu *CustomerUpdate) ClearSubjects() *CustomerUpdate
ClearSubjects clears all "subjects" edges to the CustomerSubjects entity.
func (*CustomerUpdate) ClearTimezone ¶
func (cu *CustomerUpdate) ClearTimezone() *CustomerUpdate
ClearTimezone clears the value of the "timezone" field.
func (*CustomerUpdate) Exec ¶
func (cu *CustomerUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*CustomerUpdate) ExecContext ¶
func (c *CustomerUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*CustomerUpdate) ExecX ¶
func (cu *CustomerUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CustomerUpdate) Mutation ¶
func (cu *CustomerUpdate) Mutation() *CustomerMutation
Mutation returns the CustomerMutation object of the builder.
func (*CustomerUpdate) QueryContext ¶
func (c *CustomerUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*CustomerUpdate) RemoveSubjectIDs ¶
func (cu *CustomerUpdate) RemoveSubjectIDs(ids ...int) *CustomerUpdate
RemoveSubjectIDs removes the "subjects" edge to CustomerSubjects entities by IDs.
func (*CustomerUpdate) RemoveSubjects ¶
func (cu *CustomerUpdate) RemoveSubjects(c ...*CustomerSubjects) *CustomerUpdate
RemoveSubjects removes "subjects" edges to CustomerSubjects entities.
func (*CustomerUpdate) Save ¶
func (cu *CustomerUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*CustomerUpdate) SaveX ¶
func (cu *CustomerUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*CustomerUpdate) SetBillingAddressCity ¶
func (cu *CustomerUpdate) SetBillingAddressCity(s string) *CustomerUpdate
SetBillingAddressCity sets the "billing_address_city" field.
func (*CustomerUpdate) SetBillingAddressCountry ¶
func (cu *CustomerUpdate) SetBillingAddressCountry(mc models.CountryCode) *CustomerUpdate
SetBillingAddressCountry sets the "billing_address_country" field.
func (*CustomerUpdate) SetBillingAddressLine1 ¶
func (cu *CustomerUpdate) SetBillingAddressLine1(s string) *CustomerUpdate
SetBillingAddressLine1 sets the "billing_address_line1" field.
func (*CustomerUpdate) SetBillingAddressLine2 ¶
func (cu *CustomerUpdate) SetBillingAddressLine2(s string) *CustomerUpdate
SetBillingAddressLine2 sets the "billing_address_line2" field.
func (*CustomerUpdate) SetBillingAddressPhoneNumber ¶
func (cu *CustomerUpdate) SetBillingAddressPhoneNumber(s string) *CustomerUpdate
SetBillingAddressPhoneNumber sets the "billing_address_phone_number" field.
func (*CustomerUpdate) SetBillingAddressPostalCode ¶
func (cu *CustomerUpdate) SetBillingAddressPostalCode(s string) *CustomerUpdate
SetBillingAddressPostalCode sets the "billing_address_postal_code" field.
func (*CustomerUpdate) SetBillingAddressState ¶
func (cu *CustomerUpdate) SetBillingAddressState(s string) *CustomerUpdate
SetBillingAddressState sets the "billing_address_state" field.
func (*CustomerUpdate) SetBillingCustomerOverride ¶
func (cu *CustomerUpdate) SetBillingCustomerOverride(b *BillingCustomerOverride) *CustomerUpdate
SetBillingCustomerOverride sets the "billing_customer_override" edge to the BillingCustomerOverride entity.
func (*CustomerUpdate) SetBillingCustomerOverrideID ¶
func (cu *CustomerUpdate) SetBillingCustomerOverrideID(id string) *CustomerUpdate
SetBillingCustomerOverrideID sets the "billing_customer_override" edge to the BillingCustomerOverride entity by ID.
func (*CustomerUpdate) SetCurrency ¶
func (cu *CustomerUpdate) SetCurrency(c currencyx.Code) *CustomerUpdate
SetCurrency sets the "currency" field.
func (*CustomerUpdate) SetDeletedAt ¶
func (cu *CustomerUpdate) SetDeletedAt(t time.Time) *CustomerUpdate
SetDeletedAt sets the "deleted_at" field.
func (*CustomerUpdate) SetExternalMappingStripeCustomerID ¶
func (cu *CustomerUpdate) SetExternalMappingStripeCustomerID(s string) *CustomerUpdate
SetExternalMappingStripeCustomerID sets the "external_mapping_stripe_customer_id" field.
func (*CustomerUpdate) SetMetadata ¶
func (cu *CustomerUpdate) SetMetadata(m map[string]string) *CustomerUpdate
SetMetadata sets the "metadata" field.
func (*CustomerUpdate) SetName ¶
func (cu *CustomerUpdate) SetName(s string) *CustomerUpdate
SetName sets the "name" field.
func (*CustomerUpdate) SetNillableBillingAddressCity ¶
func (cu *CustomerUpdate) SetNillableBillingAddressCity(s *string) *CustomerUpdate
SetNillableBillingAddressCity sets the "billing_address_city" field if the given value is not nil.
func (*CustomerUpdate) SetNillableBillingAddressCountry ¶
func (cu *CustomerUpdate) SetNillableBillingAddressCountry(mc *models.CountryCode) *CustomerUpdate
SetNillableBillingAddressCountry sets the "billing_address_country" field if the given value is not nil.
func (*CustomerUpdate) SetNillableBillingAddressLine1 ¶
func (cu *CustomerUpdate) SetNillableBillingAddressLine1(s *string) *CustomerUpdate
SetNillableBillingAddressLine1 sets the "billing_address_line1" field if the given value is not nil.
func (*CustomerUpdate) SetNillableBillingAddressLine2 ¶
func (cu *CustomerUpdate) SetNillableBillingAddressLine2(s *string) *CustomerUpdate
SetNillableBillingAddressLine2 sets the "billing_address_line2" field if the given value is not nil.
func (*CustomerUpdate) SetNillableBillingAddressPhoneNumber ¶
func (cu *CustomerUpdate) SetNillableBillingAddressPhoneNumber(s *string) *CustomerUpdate
SetNillableBillingAddressPhoneNumber sets the "billing_address_phone_number" field if the given value is not nil.
func (*CustomerUpdate) SetNillableBillingAddressPostalCode ¶
func (cu *CustomerUpdate) SetNillableBillingAddressPostalCode(s *string) *CustomerUpdate
SetNillableBillingAddressPostalCode sets the "billing_address_postal_code" field if the given value is not nil.
func (*CustomerUpdate) SetNillableBillingAddressState ¶
func (cu *CustomerUpdate) SetNillableBillingAddressState(s *string) *CustomerUpdate
SetNillableBillingAddressState sets the "billing_address_state" field if the given value is not nil.
func (*CustomerUpdate) SetNillableBillingCustomerOverrideID ¶
func (cu *CustomerUpdate) SetNillableBillingCustomerOverrideID(id *string) *CustomerUpdate
SetNillableBillingCustomerOverrideID sets the "billing_customer_override" edge to the BillingCustomerOverride entity by ID if the given value is not nil.
func (*CustomerUpdate) SetNillableCurrency ¶
func (cu *CustomerUpdate) SetNillableCurrency(c *currencyx.Code) *CustomerUpdate
SetNillableCurrency sets the "currency" field if the given value is not nil.
func (*CustomerUpdate) SetNillableDeletedAt ¶
func (cu *CustomerUpdate) SetNillableDeletedAt(t *time.Time) *CustomerUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*CustomerUpdate) SetNillableExternalMappingStripeCustomerID ¶
func (cu *CustomerUpdate) SetNillableExternalMappingStripeCustomerID(s *string) *CustomerUpdate
SetNillableExternalMappingStripeCustomerID sets the "external_mapping_stripe_customer_id" field if the given value is not nil.
func (*CustomerUpdate) SetNillableName ¶
func (cu *CustomerUpdate) SetNillableName(s *string) *CustomerUpdate
SetNillableName sets the "name" field if the given value is not nil.
func (*CustomerUpdate) SetNillablePrimaryEmail ¶
func (cu *CustomerUpdate) SetNillablePrimaryEmail(s *string) *CustomerUpdate
SetNillablePrimaryEmail sets the "primary_email" field if the given value is not nil.
func (*CustomerUpdate) SetNillableTimezone ¶
func (cu *CustomerUpdate) SetNillableTimezone(t *timezone.Timezone) *CustomerUpdate
SetNillableTimezone sets the "timezone" field if the given value is not nil.
func (*CustomerUpdate) SetOrClearBillingAddressCity ¶
func (u *CustomerUpdate) SetOrClearBillingAddressCity(value *string) *CustomerUpdate
func (*CustomerUpdate) SetOrClearBillingAddressCountry ¶
func (u *CustomerUpdate) SetOrClearBillingAddressCountry(value *models.CountryCode) *CustomerUpdate
func (*CustomerUpdate) SetOrClearBillingAddressLine1 ¶
func (u *CustomerUpdate) SetOrClearBillingAddressLine1(value *string) *CustomerUpdate
func (*CustomerUpdate) SetOrClearBillingAddressLine2 ¶
func (u *CustomerUpdate) SetOrClearBillingAddressLine2(value *string) *CustomerUpdate
func (*CustomerUpdate) SetOrClearBillingAddressPhoneNumber ¶
func (u *CustomerUpdate) SetOrClearBillingAddressPhoneNumber(value *string) *CustomerUpdate
func (*CustomerUpdate) SetOrClearBillingAddressPostalCode ¶
func (u *CustomerUpdate) SetOrClearBillingAddressPostalCode(value *string) *CustomerUpdate
func (*CustomerUpdate) SetOrClearBillingAddressState ¶
func (u *CustomerUpdate) SetOrClearBillingAddressState(value *string) *CustomerUpdate
func (*CustomerUpdate) SetOrClearCurrency ¶
func (u *CustomerUpdate) SetOrClearCurrency(value *currencyx.Code) *CustomerUpdate
func (*CustomerUpdate) SetOrClearDeletedAt ¶
func (u *CustomerUpdate) SetOrClearDeletedAt(value *time.Time) *CustomerUpdate
func (*CustomerUpdate) SetOrClearExternalMappingStripeCustomerID ¶
func (u *CustomerUpdate) SetOrClearExternalMappingStripeCustomerID(value *string) *CustomerUpdate
func (*CustomerUpdate) SetOrClearMetadata ¶
func (u *CustomerUpdate) SetOrClearMetadata(value *map[string]string) *CustomerUpdate
func (*CustomerUpdate) SetOrClearPrimaryEmail ¶
func (u *CustomerUpdate) SetOrClearPrimaryEmail(value *string) *CustomerUpdate
func (*CustomerUpdate) SetOrClearTimezone ¶
func (u *CustomerUpdate) SetOrClearTimezone(value *timezone.Timezone) *CustomerUpdate
func (*CustomerUpdate) SetPrimaryEmail ¶
func (cu *CustomerUpdate) SetPrimaryEmail(s string) *CustomerUpdate
SetPrimaryEmail sets the "primary_email" field.
func (*CustomerUpdate) SetTimezone ¶
func (cu *CustomerUpdate) SetTimezone(t timezone.Timezone) *CustomerUpdate
SetTimezone sets the "timezone" field.
func (*CustomerUpdate) SetUpdatedAt ¶
func (cu *CustomerUpdate) SetUpdatedAt(t time.Time) *CustomerUpdate
SetUpdatedAt sets the "updated_at" field.
func (*CustomerUpdate) Where ¶
func (cu *CustomerUpdate) Where(ps ...predicate.Customer) *CustomerUpdate
Where appends a list predicates to the CustomerUpdate builder.
type CustomerUpdateOne ¶
type CustomerUpdateOne struct {
// contains filtered or unexported fields
}
CustomerUpdateOne is the builder for updating a single Customer entity.
func (*CustomerUpdateOne) AddSubjectIDs ¶
func (cuo *CustomerUpdateOne) AddSubjectIDs(ids ...int) *CustomerUpdateOne
AddSubjectIDs adds the "subjects" edge to the CustomerSubjects entity by IDs.
func (*CustomerUpdateOne) AddSubjects ¶
func (cuo *CustomerUpdateOne) AddSubjects(c ...*CustomerSubjects) *CustomerUpdateOne
AddSubjects adds the "subjects" edges to the CustomerSubjects entity.
func (*CustomerUpdateOne) ClearBillingAddressCity ¶
func (cuo *CustomerUpdateOne) ClearBillingAddressCity() *CustomerUpdateOne
ClearBillingAddressCity clears the value of the "billing_address_city" field.
func (*CustomerUpdateOne) ClearBillingAddressCountry ¶
func (cuo *CustomerUpdateOne) ClearBillingAddressCountry() *CustomerUpdateOne
ClearBillingAddressCountry clears the value of the "billing_address_country" field.
func (*CustomerUpdateOne) ClearBillingAddressLine1 ¶
func (cuo *CustomerUpdateOne) ClearBillingAddressLine1() *CustomerUpdateOne
ClearBillingAddressLine1 clears the value of the "billing_address_line1" field.
func (*CustomerUpdateOne) ClearBillingAddressLine2 ¶
func (cuo *CustomerUpdateOne) ClearBillingAddressLine2() *CustomerUpdateOne
ClearBillingAddressLine2 clears the value of the "billing_address_line2" field.
func (*CustomerUpdateOne) ClearBillingAddressPhoneNumber ¶
func (cuo *CustomerUpdateOne) ClearBillingAddressPhoneNumber() *CustomerUpdateOne
ClearBillingAddressPhoneNumber clears the value of the "billing_address_phone_number" field.
func (*CustomerUpdateOne) ClearBillingAddressPostalCode ¶
func (cuo *CustomerUpdateOne) ClearBillingAddressPostalCode() *CustomerUpdateOne
ClearBillingAddressPostalCode clears the value of the "billing_address_postal_code" field.
func (*CustomerUpdateOne) ClearBillingAddressState ¶
func (cuo *CustomerUpdateOne) ClearBillingAddressState() *CustomerUpdateOne
ClearBillingAddressState clears the value of the "billing_address_state" field.
func (*CustomerUpdateOne) ClearBillingCustomerOverride ¶
func (cuo *CustomerUpdateOne) ClearBillingCustomerOverride() *CustomerUpdateOne
ClearBillingCustomerOverride clears the "billing_customer_override" edge to the BillingCustomerOverride entity.
func (*CustomerUpdateOne) ClearCurrency ¶
func (cuo *CustomerUpdateOne) ClearCurrency() *CustomerUpdateOne
ClearCurrency clears the value of the "currency" field.
func (*CustomerUpdateOne) ClearDeletedAt ¶
func (cuo *CustomerUpdateOne) ClearDeletedAt() *CustomerUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*CustomerUpdateOne) ClearExternalMappingStripeCustomerID ¶
func (cuo *CustomerUpdateOne) ClearExternalMappingStripeCustomerID() *CustomerUpdateOne
ClearExternalMappingStripeCustomerID clears the value of the "external_mapping_stripe_customer_id" field.
func (*CustomerUpdateOne) ClearMetadata ¶
func (cuo *CustomerUpdateOne) ClearMetadata() *CustomerUpdateOne
ClearMetadata clears the value of the "metadata" field.
func (*CustomerUpdateOne) ClearPrimaryEmail ¶
func (cuo *CustomerUpdateOne) ClearPrimaryEmail() *CustomerUpdateOne
ClearPrimaryEmail clears the value of the "primary_email" field.
func (*CustomerUpdateOne) ClearSubjects ¶
func (cuo *CustomerUpdateOne) ClearSubjects() *CustomerUpdateOne
ClearSubjects clears all "subjects" edges to the CustomerSubjects entity.
func (*CustomerUpdateOne) ClearTimezone ¶
func (cuo *CustomerUpdateOne) ClearTimezone() *CustomerUpdateOne
ClearTimezone clears the value of the "timezone" field.
func (*CustomerUpdateOne) Exec ¶
func (cuo *CustomerUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*CustomerUpdateOne) ExecContext ¶
func (c *CustomerUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*CustomerUpdateOne) ExecX ¶
func (cuo *CustomerUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CustomerUpdateOne) Mutation ¶
func (cuo *CustomerUpdateOne) Mutation() *CustomerMutation
Mutation returns the CustomerMutation object of the builder.
func (*CustomerUpdateOne) QueryContext ¶
func (c *CustomerUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*CustomerUpdateOne) RemoveSubjectIDs ¶
func (cuo *CustomerUpdateOne) RemoveSubjectIDs(ids ...int) *CustomerUpdateOne
RemoveSubjectIDs removes the "subjects" edge to CustomerSubjects entities by IDs.
func (*CustomerUpdateOne) RemoveSubjects ¶
func (cuo *CustomerUpdateOne) RemoveSubjects(c ...*CustomerSubjects) *CustomerUpdateOne
RemoveSubjects removes "subjects" edges to CustomerSubjects entities.
func (*CustomerUpdateOne) Save ¶
func (cuo *CustomerUpdateOne) Save(ctx context.Context) (*Customer, error)
Save executes the query and returns the updated Customer entity.
func (*CustomerUpdateOne) SaveX ¶
func (cuo *CustomerUpdateOne) SaveX(ctx context.Context) *Customer
SaveX is like Save, but panics if an error occurs.
func (*CustomerUpdateOne) Select ¶
func (cuo *CustomerUpdateOne) Select(field string, fields ...string) *CustomerUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*CustomerUpdateOne) SetBillingAddressCity ¶
func (cuo *CustomerUpdateOne) SetBillingAddressCity(s string) *CustomerUpdateOne
SetBillingAddressCity sets the "billing_address_city" field.
func (*CustomerUpdateOne) SetBillingAddressCountry ¶
func (cuo *CustomerUpdateOne) SetBillingAddressCountry(mc models.CountryCode) *CustomerUpdateOne
SetBillingAddressCountry sets the "billing_address_country" field.
func (*CustomerUpdateOne) SetBillingAddressLine1 ¶
func (cuo *CustomerUpdateOne) SetBillingAddressLine1(s string) *CustomerUpdateOne
SetBillingAddressLine1 sets the "billing_address_line1" field.
func (*CustomerUpdateOne) SetBillingAddressLine2 ¶
func (cuo *CustomerUpdateOne) SetBillingAddressLine2(s string) *CustomerUpdateOne
SetBillingAddressLine2 sets the "billing_address_line2" field.
func (*CustomerUpdateOne) SetBillingAddressPhoneNumber ¶
func (cuo *CustomerUpdateOne) SetBillingAddressPhoneNumber(s string) *CustomerUpdateOne
SetBillingAddressPhoneNumber sets the "billing_address_phone_number" field.
func (*CustomerUpdateOne) SetBillingAddressPostalCode ¶
func (cuo *CustomerUpdateOne) SetBillingAddressPostalCode(s string) *CustomerUpdateOne
SetBillingAddressPostalCode sets the "billing_address_postal_code" field.
func (*CustomerUpdateOne) SetBillingAddressState ¶
func (cuo *CustomerUpdateOne) SetBillingAddressState(s string) *CustomerUpdateOne
SetBillingAddressState sets the "billing_address_state" field.
func (*CustomerUpdateOne) SetBillingCustomerOverride ¶
func (cuo *CustomerUpdateOne) SetBillingCustomerOverride(b *BillingCustomerOverride) *CustomerUpdateOne
SetBillingCustomerOverride sets the "billing_customer_override" edge to the BillingCustomerOverride entity.
func (*CustomerUpdateOne) SetBillingCustomerOverrideID ¶
func (cuo *CustomerUpdateOne) SetBillingCustomerOverrideID(id string) *CustomerUpdateOne
SetBillingCustomerOverrideID sets the "billing_customer_override" edge to the BillingCustomerOverride entity by ID.
func (*CustomerUpdateOne) SetCurrency ¶
func (cuo *CustomerUpdateOne) SetCurrency(c currencyx.Code) *CustomerUpdateOne
SetCurrency sets the "currency" field.
func (*CustomerUpdateOne) SetDeletedAt ¶
func (cuo *CustomerUpdateOne) SetDeletedAt(t time.Time) *CustomerUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*CustomerUpdateOne) SetExternalMappingStripeCustomerID ¶
func (cuo *CustomerUpdateOne) SetExternalMappingStripeCustomerID(s string) *CustomerUpdateOne
SetExternalMappingStripeCustomerID sets the "external_mapping_stripe_customer_id" field.
func (*CustomerUpdateOne) SetMetadata ¶
func (cuo *CustomerUpdateOne) SetMetadata(m map[string]string) *CustomerUpdateOne
SetMetadata sets the "metadata" field.
func (*CustomerUpdateOne) SetName ¶
func (cuo *CustomerUpdateOne) SetName(s string) *CustomerUpdateOne
SetName sets the "name" field.
func (*CustomerUpdateOne) SetNillableBillingAddressCity ¶
func (cuo *CustomerUpdateOne) SetNillableBillingAddressCity(s *string) *CustomerUpdateOne
SetNillableBillingAddressCity sets the "billing_address_city" field if the given value is not nil.
func (*CustomerUpdateOne) SetNillableBillingAddressCountry ¶
func (cuo *CustomerUpdateOne) SetNillableBillingAddressCountry(mc *models.CountryCode) *CustomerUpdateOne
SetNillableBillingAddressCountry sets the "billing_address_country" field if the given value is not nil.
func (*CustomerUpdateOne) SetNillableBillingAddressLine1 ¶
func (cuo *CustomerUpdateOne) SetNillableBillingAddressLine1(s *string) *CustomerUpdateOne
SetNillableBillingAddressLine1 sets the "billing_address_line1" field if the given value is not nil.
func (*CustomerUpdateOne) SetNillableBillingAddressLine2 ¶
func (cuo *CustomerUpdateOne) SetNillableBillingAddressLine2(s *string) *CustomerUpdateOne
SetNillableBillingAddressLine2 sets the "billing_address_line2" field if the given value is not nil.
func (*CustomerUpdateOne) SetNillableBillingAddressPhoneNumber ¶
func (cuo *CustomerUpdateOne) SetNillableBillingAddressPhoneNumber(s *string) *CustomerUpdateOne
SetNillableBillingAddressPhoneNumber sets the "billing_address_phone_number" field if the given value is not nil.
func (*CustomerUpdateOne) SetNillableBillingAddressPostalCode ¶
func (cuo *CustomerUpdateOne) SetNillableBillingAddressPostalCode(s *string) *CustomerUpdateOne
SetNillableBillingAddressPostalCode sets the "billing_address_postal_code" field if the given value is not nil.
func (*CustomerUpdateOne) SetNillableBillingAddressState ¶
func (cuo *CustomerUpdateOne) SetNillableBillingAddressState(s *string) *CustomerUpdateOne
SetNillableBillingAddressState sets the "billing_address_state" field if the given value is not nil.
func (*CustomerUpdateOne) SetNillableBillingCustomerOverrideID ¶
func (cuo *CustomerUpdateOne) SetNillableBillingCustomerOverrideID(id *string) *CustomerUpdateOne
SetNillableBillingCustomerOverrideID sets the "billing_customer_override" edge to the BillingCustomerOverride entity by ID if the given value is not nil.
func (*CustomerUpdateOne) SetNillableCurrency ¶
func (cuo *CustomerUpdateOne) SetNillableCurrency(c *currencyx.Code) *CustomerUpdateOne
SetNillableCurrency sets the "currency" field if the given value is not nil.
func (*CustomerUpdateOne) SetNillableDeletedAt ¶
func (cuo *CustomerUpdateOne) SetNillableDeletedAt(t *time.Time) *CustomerUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*CustomerUpdateOne) SetNillableExternalMappingStripeCustomerID ¶
func (cuo *CustomerUpdateOne) SetNillableExternalMappingStripeCustomerID(s *string) *CustomerUpdateOne
SetNillableExternalMappingStripeCustomerID sets the "external_mapping_stripe_customer_id" field if the given value is not nil.
func (*CustomerUpdateOne) SetNillableName ¶
func (cuo *CustomerUpdateOne) SetNillableName(s *string) *CustomerUpdateOne
SetNillableName sets the "name" field if the given value is not nil.
func (*CustomerUpdateOne) SetNillablePrimaryEmail ¶
func (cuo *CustomerUpdateOne) SetNillablePrimaryEmail(s *string) *CustomerUpdateOne
SetNillablePrimaryEmail sets the "primary_email" field if the given value is not nil.
func (*CustomerUpdateOne) SetNillableTimezone ¶
func (cuo *CustomerUpdateOne) SetNillableTimezone(t *timezone.Timezone) *CustomerUpdateOne
SetNillableTimezone sets the "timezone" field if the given value is not nil.
func (*CustomerUpdateOne) SetOrClearBillingAddressCity ¶
func (u *CustomerUpdateOne) SetOrClearBillingAddressCity(value *string) *CustomerUpdateOne
func (*CustomerUpdateOne) SetOrClearBillingAddressCountry ¶
func (u *CustomerUpdateOne) SetOrClearBillingAddressCountry(value *models.CountryCode) *CustomerUpdateOne
func (*CustomerUpdateOne) SetOrClearBillingAddressLine1 ¶
func (u *CustomerUpdateOne) SetOrClearBillingAddressLine1(value *string) *CustomerUpdateOne
func (*CustomerUpdateOne) SetOrClearBillingAddressLine2 ¶
func (u *CustomerUpdateOne) SetOrClearBillingAddressLine2(value *string) *CustomerUpdateOne
func (*CustomerUpdateOne) SetOrClearBillingAddressPhoneNumber ¶
func (u *CustomerUpdateOne) SetOrClearBillingAddressPhoneNumber(value *string) *CustomerUpdateOne
func (*CustomerUpdateOne) SetOrClearBillingAddressPostalCode ¶
func (u *CustomerUpdateOne) SetOrClearBillingAddressPostalCode(value *string) *CustomerUpdateOne
func (*CustomerUpdateOne) SetOrClearBillingAddressState ¶
func (u *CustomerUpdateOne) SetOrClearBillingAddressState(value *string) *CustomerUpdateOne
func (*CustomerUpdateOne) SetOrClearCurrency ¶
func (u *CustomerUpdateOne) SetOrClearCurrency(value *currencyx.Code) *CustomerUpdateOne
func (*CustomerUpdateOne) SetOrClearDeletedAt ¶
func (u *CustomerUpdateOne) SetOrClearDeletedAt(value *time.Time) *CustomerUpdateOne
func (*CustomerUpdateOne) SetOrClearExternalMappingStripeCustomerID ¶
func (u *CustomerUpdateOne) SetOrClearExternalMappingStripeCustomerID(value *string) *CustomerUpdateOne
func (*CustomerUpdateOne) SetOrClearMetadata ¶
func (u *CustomerUpdateOne) SetOrClearMetadata(value *map[string]string) *CustomerUpdateOne
func (*CustomerUpdateOne) SetOrClearPrimaryEmail ¶
func (u *CustomerUpdateOne) SetOrClearPrimaryEmail(value *string) *CustomerUpdateOne
func (*CustomerUpdateOne) SetOrClearTimezone ¶
func (u *CustomerUpdateOne) SetOrClearTimezone(value *timezone.Timezone) *CustomerUpdateOne
func (*CustomerUpdateOne) SetPrimaryEmail ¶
func (cuo *CustomerUpdateOne) SetPrimaryEmail(s string) *CustomerUpdateOne
SetPrimaryEmail sets the "primary_email" field.
func (*CustomerUpdateOne) SetTimezone ¶
func (cuo *CustomerUpdateOne) SetTimezone(t timezone.Timezone) *CustomerUpdateOne
SetTimezone sets the "timezone" field.
func (*CustomerUpdateOne) SetUpdatedAt ¶
func (cuo *CustomerUpdateOne) SetUpdatedAt(t time.Time) *CustomerUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*CustomerUpdateOne) Where ¶
func (cuo *CustomerUpdateOne) Where(ps ...predicate.Customer) *CustomerUpdateOne
Where appends a list predicates to the CustomerUpdate builder.
type CustomerUpsert ¶
CustomerUpsert is the "OnConflict" setter.
func (*CustomerUpsert) ClearBillingAddressCity ¶
func (u *CustomerUpsert) ClearBillingAddressCity() *CustomerUpsert
ClearBillingAddressCity clears the value of the "billing_address_city" field.
func (*CustomerUpsert) ClearBillingAddressCountry ¶
func (u *CustomerUpsert) ClearBillingAddressCountry() *CustomerUpsert
ClearBillingAddressCountry clears the value of the "billing_address_country" field.
func (*CustomerUpsert) ClearBillingAddressLine1 ¶
func (u *CustomerUpsert) ClearBillingAddressLine1() *CustomerUpsert
ClearBillingAddressLine1 clears the value of the "billing_address_line1" field.
func (*CustomerUpsert) ClearBillingAddressLine2 ¶
func (u *CustomerUpsert) ClearBillingAddressLine2() *CustomerUpsert
ClearBillingAddressLine2 clears the value of the "billing_address_line2" field.
func (*CustomerUpsert) ClearBillingAddressPhoneNumber ¶
func (u *CustomerUpsert) ClearBillingAddressPhoneNumber() *CustomerUpsert
ClearBillingAddressPhoneNumber clears the value of the "billing_address_phone_number" field.
func (*CustomerUpsert) ClearBillingAddressPostalCode ¶
func (u *CustomerUpsert) ClearBillingAddressPostalCode() *CustomerUpsert
ClearBillingAddressPostalCode clears the value of the "billing_address_postal_code" field.
func (*CustomerUpsert) ClearBillingAddressState ¶
func (u *CustomerUpsert) ClearBillingAddressState() *CustomerUpsert
ClearBillingAddressState clears the value of the "billing_address_state" field.
func (*CustomerUpsert) ClearCurrency ¶
func (u *CustomerUpsert) ClearCurrency() *CustomerUpsert
ClearCurrency clears the value of the "currency" field.
func (*CustomerUpsert) ClearDeletedAt ¶
func (u *CustomerUpsert) ClearDeletedAt() *CustomerUpsert
ClearDeletedAt clears the value of the "deleted_at" field.
func (*CustomerUpsert) ClearExternalMappingStripeCustomerID ¶
func (u *CustomerUpsert) ClearExternalMappingStripeCustomerID() *CustomerUpsert
ClearExternalMappingStripeCustomerID clears the value of the "external_mapping_stripe_customer_id" field.
func (*CustomerUpsert) ClearMetadata ¶
func (u *CustomerUpsert) ClearMetadata() *CustomerUpsert
ClearMetadata clears the value of the "metadata" field.
func (*CustomerUpsert) ClearPrimaryEmail ¶
func (u *CustomerUpsert) ClearPrimaryEmail() *CustomerUpsert
ClearPrimaryEmail clears the value of the "primary_email" field.
func (*CustomerUpsert) ClearTimezone ¶
func (u *CustomerUpsert) ClearTimezone() *CustomerUpsert
ClearTimezone clears the value of the "timezone" field.
func (*CustomerUpsert) SetBillingAddressCity ¶
func (u *CustomerUpsert) SetBillingAddressCity(v string) *CustomerUpsert
SetBillingAddressCity sets the "billing_address_city" field.
func (*CustomerUpsert) SetBillingAddressCountry ¶
func (u *CustomerUpsert) SetBillingAddressCountry(v models.CountryCode) *CustomerUpsert
SetBillingAddressCountry sets the "billing_address_country" field.
func (*CustomerUpsert) SetBillingAddressLine1 ¶
func (u *CustomerUpsert) SetBillingAddressLine1(v string) *CustomerUpsert
SetBillingAddressLine1 sets the "billing_address_line1" field.
func (*CustomerUpsert) SetBillingAddressLine2 ¶
func (u *CustomerUpsert) SetBillingAddressLine2(v string) *CustomerUpsert
SetBillingAddressLine2 sets the "billing_address_line2" field.
func (*CustomerUpsert) SetBillingAddressPhoneNumber ¶
func (u *CustomerUpsert) SetBillingAddressPhoneNumber(v string) *CustomerUpsert
SetBillingAddressPhoneNumber sets the "billing_address_phone_number" field.
func (*CustomerUpsert) SetBillingAddressPostalCode ¶
func (u *CustomerUpsert) SetBillingAddressPostalCode(v string) *CustomerUpsert
SetBillingAddressPostalCode sets the "billing_address_postal_code" field.
func (*CustomerUpsert) SetBillingAddressState ¶
func (u *CustomerUpsert) SetBillingAddressState(v string) *CustomerUpsert
SetBillingAddressState sets the "billing_address_state" field.
func (*CustomerUpsert) SetCurrency ¶
func (u *CustomerUpsert) SetCurrency(v currencyx.Code) *CustomerUpsert
SetCurrency sets the "currency" field.
func (*CustomerUpsert) SetDeletedAt ¶
func (u *CustomerUpsert) SetDeletedAt(v time.Time) *CustomerUpsert
SetDeletedAt sets the "deleted_at" field.
func (*CustomerUpsert) SetExternalMappingStripeCustomerID ¶
func (u *CustomerUpsert) SetExternalMappingStripeCustomerID(v string) *CustomerUpsert
SetExternalMappingStripeCustomerID sets the "external_mapping_stripe_customer_id" field.
func (*CustomerUpsert) SetMetadata ¶
func (u *CustomerUpsert) SetMetadata(v map[string]string) *CustomerUpsert
SetMetadata sets the "metadata" field.
func (*CustomerUpsert) SetName ¶
func (u *CustomerUpsert) SetName(v string) *CustomerUpsert
SetName sets the "name" field.
func (*CustomerUpsert) SetPrimaryEmail ¶
func (u *CustomerUpsert) SetPrimaryEmail(v string) *CustomerUpsert
SetPrimaryEmail sets the "primary_email" field.
func (*CustomerUpsert) SetTimezone ¶
func (u *CustomerUpsert) SetTimezone(v timezone.Timezone) *CustomerUpsert
SetTimezone sets the "timezone" field.
func (*CustomerUpsert) SetUpdatedAt ¶
func (u *CustomerUpsert) SetUpdatedAt(v time.Time) *CustomerUpsert
SetUpdatedAt sets the "updated_at" field.
func (*CustomerUpsert) UpdateBillingAddressCity ¶
func (u *CustomerUpsert) UpdateBillingAddressCity() *CustomerUpsert
UpdateBillingAddressCity sets the "billing_address_city" field to the value that was provided on create.
func (*CustomerUpsert) UpdateBillingAddressCountry ¶
func (u *CustomerUpsert) UpdateBillingAddressCountry() *CustomerUpsert
UpdateBillingAddressCountry sets the "billing_address_country" field to the value that was provided on create.
func (*CustomerUpsert) UpdateBillingAddressLine1 ¶
func (u *CustomerUpsert) UpdateBillingAddressLine1() *CustomerUpsert
UpdateBillingAddressLine1 sets the "billing_address_line1" field to the value that was provided on create.
func (*CustomerUpsert) UpdateBillingAddressLine2 ¶
func (u *CustomerUpsert) UpdateBillingAddressLine2() *CustomerUpsert
UpdateBillingAddressLine2 sets the "billing_address_line2" field to the value that was provided on create.
func (*CustomerUpsert) UpdateBillingAddressPhoneNumber ¶
func (u *CustomerUpsert) UpdateBillingAddressPhoneNumber() *CustomerUpsert
UpdateBillingAddressPhoneNumber sets the "billing_address_phone_number" field to the value that was provided on create.
func (*CustomerUpsert) UpdateBillingAddressPostalCode ¶
func (u *CustomerUpsert) UpdateBillingAddressPostalCode() *CustomerUpsert
UpdateBillingAddressPostalCode sets the "billing_address_postal_code" field to the value that was provided on create.
func (*CustomerUpsert) UpdateBillingAddressState ¶
func (u *CustomerUpsert) UpdateBillingAddressState() *CustomerUpsert
UpdateBillingAddressState sets the "billing_address_state" field to the value that was provided on create.
func (*CustomerUpsert) UpdateCurrency ¶
func (u *CustomerUpsert) UpdateCurrency() *CustomerUpsert
UpdateCurrency sets the "currency" field to the value that was provided on create.
func (*CustomerUpsert) UpdateDeletedAt ¶
func (u *CustomerUpsert) UpdateDeletedAt() *CustomerUpsert
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*CustomerUpsert) UpdateExternalMappingStripeCustomerID ¶
func (u *CustomerUpsert) UpdateExternalMappingStripeCustomerID() *CustomerUpsert
UpdateExternalMappingStripeCustomerID sets the "external_mapping_stripe_customer_id" field to the value that was provided on create.
func (*CustomerUpsert) UpdateMetadata ¶
func (u *CustomerUpsert) UpdateMetadata() *CustomerUpsert
UpdateMetadata sets the "metadata" field to the value that was provided on create.
func (*CustomerUpsert) UpdateName ¶
func (u *CustomerUpsert) UpdateName() *CustomerUpsert
UpdateName sets the "name" field to the value that was provided on create.
func (*CustomerUpsert) UpdatePrimaryEmail ¶
func (u *CustomerUpsert) UpdatePrimaryEmail() *CustomerUpsert
UpdatePrimaryEmail sets the "primary_email" field to the value that was provided on create.
func (*CustomerUpsert) UpdateTimezone ¶
func (u *CustomerUpsert) UpdateTimezone() *CustomerUpsert
UpdateTimezone sets the "timezone" field to the value that was provided on create.
func (*CustomerUpsert) UpdateUpdatedAt ¶
func (u *CustomerUpsert) UpdateUpdatedAt() *CustomerUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type CustomerUpsertBulk ¶
type CustomerUpsertBulk struct {
// contains filtered or unexported fields
}
CustomerUpsertBulk is the builder for "upsert"-ing a bulk of Customer nodes.
func (*CustomerUpsertBulk) ClearBillingAddressCity ¶
func (u *CustomerUpsertBulk) ClearBillingAddressCity() *CustomerUpsertBulk
ClearBillingAddressCity clears the value of the "billing_address_city" field.
func (*CustomerUpsertBulk) ClearBillingAddressCountry ¶
func (u *CustomerUpsertBulk) ClearBillingAddressCountry() *CustomerUpsertBulk
ClearBillingAddressCountry clears the value of the "billing_address_country" field.
func (*CustomerUpsertBulk) ClearBillingAddressLine1 ¶
func (u *CustomerUpsertBulk) ClearBillingAddressLine1() *CustomerUpsertBulk
ClearBillingAddressLine1 clears the value of the "billing_address_line1" field.
func (*CustomerUpsertBulk) ClearBillingAddressLine2 ¶
func (u *CustomerUpsertBulk) ClearBillingAddressLine2() *CustomerUpsertBulk
ClearBillingAddressLine2 clears the value of the "billing_address_line2" field.
func (*CustomerUpsertBulk) ClearBillingAddressPhoneNumber ¶
func (u *CustomerUpsertBulk) ClearBillingAddressPhoneNumber() *CustomerUpsertBulk
ClearBillingAddressPhoneNumber clears the value of the "billing_address_phone_number" field.
func (*CustomerUpsertBulk) ClearBillingAddressPostalCode ¶
func (u *CustomerUpsertBulk) ClearBillingAddressPostalCode() *CustomerUpsertBulk
ClearBillingAddressPostalCode clears the value of the "billing_address_postal_code" field.
func (*CustomerUpsertBulk) ClearBillingAddressState ¶
func (u *CustomerUpsertBulk) ClearBillingAddressState() *CustomerUpsertBulk
ClearBillingAddressState clears the value of the "billing_address_state" field.
func (*CustomerUpsertBulk) ClearCurrency ¶
func (u *CustomerUpsertBulk) ClearCurrency() *CustomerUpsertBulk
ClearCurrency clears the value of the "currency" field.
func (*CustomerUpsertBulk) ClearDeletedAt ¶
func (u *CustomerUpsertBulk) ClearDeletedAt() *CustomerUpsertBulk
ClearDeletedAt clears the value of the "deleted_at" field.
func (*CustomerUpsertBulk) ClearExternalMappingStripeCustomerID ¶
func (u *CustomerUpsertBulk) ClearExternalMappingStripeCustomerID() *CustomerUpsertBulk
ClearExternalMappingStripeCustomerID clears the value of the "external_mapping_stripe_customer_id" field.
func (*CustomerUpsertBulk) ClearMetadata ¶
func (u *CustomerUpsertBulk) ClearMetadata() *CustomerUpsertBulk
ClearMetadata clears the value of the "metadata" field.
func (*CustomerUpsertBulk) ClearPrimaryEmail ¶
func (u *CustomerUpsertBulk) ClearPrimaryEmail() *CustomerUpsertBulk
ClearPrimaryEmail clears the value of the "primary_email" field.
func (*CustomerUpsertBulk) ClearTimezone ¶
func (u *CustomerUpsertBulk) ClearTimezone() *CustomerUpsertBulk
ClearTimezone clears the value of the "timezone" field.
func (*CustomerUpsertBulk) DoNothing ¶
func (u *CustomerUpsertBulk) DoNothing() *CustomerUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*CustomerUpsertBulk) Exec ¶
func (u *CustomerUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*CustomerUpsertBulk) ExecX ¶
func (u *CustomerUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CustomerUpsertBulk) Ignore ¶
func (u *CustomerUpsertBulk) Ignore() *CustomerUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Customer.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*CustomerUpsertBulk) SetBillingAddressCity ¶
func (u *CustomerUpsertBulk) SetBillingAddressCity(v string) *CustomerUpsertBulk
SetBillingAddressCity sets the "billing_address_city" field.
func (*CustomerUpsertBulk) SetBillingAddressCountry ¶
func (u *CustomerUpsertBulk) SetBillingAddressCountry(v models.CountryCode) *CustomerUpsertBulk
SetBillingAddressCountry sets the "billing_address_country" field.
func (*CustomerUpsertBulk) SetBillingAddressLine1 ¶
func (u *CustomerUpsertBulk) SetBillingAddressLine1(v string) *CustomerUpsertBulk
SetBillingAddressLine1 sets the "billing_address_line1" field.
func (*CustomerUpsertBulk) SetBillingAddressLine2 ¶
func (u *CustomerUpsertBulk) SetBillingAddressLine2(v string) *CustomerUpsertBulk
SetBillingAddressLine2 sets the "billing_address_line2" field.
func (*CustomerUpsertBulk) SetBillingAddressPhoneNumber ¶
func (u *CustomerUpsertBulk) SetBillingAddressPhoneNumber(v string) *CustomerUpsertBulk
SetBillingAddressPhoneNumber sets the "billing_address_phone_number" field.
func (*CustomerUpsertBulk) SetBillingAddressPostalCode ¶
func (u *CustomerUpsertBulk) SetBillingAddressPostalCode(v string) *CustomerUpsertBulk
SetBillingAddressPostalCode sets the "billing_address_postal_code" field.
func (*CustomerUpsertBulk) SetBillingAddressState ¶
func (u *CustomerUpsertBulk) SetBillingAddressState(v string) *CustomerUpsertBulk
SetBillingAddressState sets the "billing_address_state" field.
func (*CustomerUpsertBulk) SetCurrency ¶
func (u *CustomerUpsertBulk) SetCurrency(v currencyx.Code) *CustomerUpsertBulk
SetCurrency sets the "currency" field.
func (*CustomerUpsertBulk) SetDeletedAt ¶
func (u *CustomerUpsertBulk) SetDeletedAt(v time.Time) *CustomerUpsertBulk
SetDeletedAt sets the "deleted_at" field.
func (*CustomerUpsertBulk) SetExternalMappingStripeCustomerID ¶
func (u *CustomerUpsertBulk) SetExternalMappingStripeCustomerID(v string) *CustomerUpsertBulk
SetExternalMappingStripeCustomerID sets the "external_mapping_stripe_customer_id" field.
func (*CustomerUpsertBulk) SetMetadata ¶
func (u *CustomerUpsertBulk) SetMetadata(v map[string]string) *CustomerUpsertBulk
SetMetadata sets the "metadata" field.
func (*CustomerUpsertBulk) SetName ¶
func (u *CustomerUpsertBulk) SetName(v string) *CustomerUpsertBulk
SetName sets the "name" field.
func (*CustomerUpsertBulk) SetPrimaryEmail ¶
func (u *CustomerUpsertBulk) SetPrimaryEmail(v string) *CustomerUpsertBulk
SetPrimaryEmail sets the "primary_email" field.
func (*CustomerUpsertBulk) SetTimezone ¶
func (u *CustomerUpsertBulk) SetTimezone(v timezone.Timezone) *CustomerUpsertBulk
SetTimezone sets the "timezone" field.
func (*CustomerUpsertBulk) SetUpdatedAt ¶
func (u *CustomerUpsertBulk) SetUpdatedAt(v time.Time) *CustomerUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*CustomerUpsertBulk) Update ¶
func (u *CustomerUpsertBulk) Update(set func(*CustomerUpsert)) *CustomerUpsertBulk
Update allows overriding fields `UPDATE` values. See the CustomerCreateBulk.OnConflict documentation for more info.
func (*CustomerUpsertBulk) UpdateBillingAddressCity ¶
func (u *CustomerUpsertBulk) UpdateBillingAddressCity() *CustomerUpsertBulk
UpdateBillingAddressCity sets the "billing_address_city" field to the value that was provided on create.
func (*CustomerUpsertBulk) UpdateBillingAddressCountry ¶
func (u *CustomerUpsertBulk) UpdateBillingAddressCountry() *CustomerUpsertBulk
UpdateBillingAddressCountry sets the "billing_address_country" field to the value that was provided on create.
func (*CustomerUpsertBulk) UpdateBillingAddressLine1 ¶
func (u *CustomerUpsertBulk) UpdateBillingAddressLine1() *CustomerUpsertBulk
UpdateBillingAddressLine1 sets the "billing_address_line1" field to the value that was provided on create.
func (*CustomerUpsertBulk) UpdateBillingAddressLine2 ¶
func (u *CustomerUpsertBulk) UpdateBillingAddressLine2() *CustomerUpsertBulk
UpdateBillingAddressLine2 sets the "billing_address_line2" field to the value that was provided on create.
func (*CustomerUpsertBulk) UpdateBillingAddressPhoneNumber ¶
func (u *CustomerUpsertBulk) UpdateBillingAddressPhoneNumber() *CustomerUpsertBulk
UpdateBillingAddressPhoneNumber sets the "billing_address_phone_number" field to the value that was provided on create.
func (*CustomerUpsertBulk) UpdateBillingAddressPostalCode ¶
func (u *CustomerUpsertBulk) UpdateBillingAddressPostalCode() *CustomerUpsertBulk
UpdateBillingAddressPostalCode sets the "billing_address_postal_code" field to the value that was provided on create.
func (*CustomerUpsertBulk) UpdateBillingAddressState ¶
func (u *CustomerUpsertBulk) UpdateBillingAddressState() *CustomerUpsertBulk
UpdateBillingAddressState sets the "billing_address_state" field to the value that was provided on create.
func (*CustomerUpsertBulk) UpdateCurrency ¶
func (u *CustomerUpsertBulk) UpdateCurrency() *CustomerUpsertBulk
UpdateCurrency sets the "currency" field to the value that was provided on create.
func (*CustomerUpsertBulk) UpdateDeletedAt ¶
func (u *CustomerUpsertBulk) UpdateDeletedAt() *CustomerUpsertBulk
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*CustomerUpsertBulk) UpdateExternalMappingStripeCustomerID ¶
func (u *CustomerUpsertBulk) UpdateExternalMappingStripeCustomerID() *CustomerUpsertBulk
UpdateExternalMappingStripeCustomerID sets the "external_mapping_stripe_customer_id" field to the value that was provided on create.
func (*CustomerUpsertBulk) UpdateMetadata ¶
func (u *CustomerUpsertBulk) UpdateMetadata() *CustomerUpsertBulk
UpdateMetadata sets the "metadata" field to the value that was provided on create.
func (*CustomerUpsertBulk) UpdateName ¶
func (u *CustomerUpsertBulk) UpdateName() *CustomerUpsertBulk
UpdateName sets the "name" field to the value that was provided on create.
func (*CustomerUpsertBulk) UpdateNewValues ¶
func (u *CustomerUpsertBulk) UpdateNewValues() *CustomerUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.Customer.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(customer.FieldID)
}),
).
Exec(ctx)
func (*CustomerUpsertBulk) UpdatePrimaryEmail ¶
func (u *CustomerUpsertBulk) UpdatePrimaryEmail() *CustomerUpsertBulk
UpdatePrimaryEmail sets the "primary_email" field to the value that was provided on create.
func (*CustomerUpsertBulk) UpdateTimezone ¶
func (u *CustomerUpsertBulk) UpdateTimezone() *CustomerUpsertBulk
UpdateTimezone sets the "timezone" field to the value that was provided on create.
func (*CustomerUpsertBulk) UpdateUpdatedAt ¶
func (u *CustomerUpsertBulk) UpdateUpdatedAt() *CustomerUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type CustomerUpsertOne ¶
type CustomerUpsertOne struct {
// contains filtered or unexported fields
}
CustomerUpsertOne is the builder for "upsert"-ing
one Customer node.
func (*CustomerUpsertOne) ClearBillingAddressCity ¶
func (u *CustomerUpsertOne) ClearBillingAddressCity() *CustomerUpsertOne
ClearBillingAddressCity clears the value of the "billing_address_city" field.
func (*CustomerUpsertOne) ClearBillingAddressCountry ¶
func (u *CustomerUpsertOne) ClearBillingAddressCountry() *CustomerUpsertOne
ClearBillingAddressCountry clears the value of the "billing_address_country" field.
func (*CustomerUpsertOne) ClearBillingAddressLine1 ¶
func (u *CustomerUpsertOne) ClearBillingAddressLine1() *CustomerUpsertOne
ClearBillingAddressLine1 clears the value of the "billing_address_line1" field.
func (*CustomerUpsertOne) ClearBillingAddressLine2 ¶
func (u *CustomerUpsertOne) ClearBillingAddressLine2() *CustomerUpsertOne
ClearBillingAddressLine2 clears the value of the "billing_address_line2" field.
func (*CustomerUpsertOne) ClearBillingAddressPhoneNumber ¶
func (u *CustomerUpsertOne) ClearBillingAddressPhoneNumber() *CustomerUpsertOne
ClearBillingAddressPhoneNumber clears the value of the "billing_address_phone_number" field.
func (*CustomerUpsertOne) ClearBillingAddressPostalCode ¶
func (u *CustomerUpsertOne) ClearBillingAddressPostalCode() *CustomerUpsertOne
ClearBillingAddressPostalCode clears the value of the "billing_address_postal_code" field.
func (*CustomerUpsertOne) ClearBillingAddressState ¶
func (u *CustomerUpsertOne) ClearBillingAddressState() *CustomerUpsertOne
ClearBillingAddressState clears the value of the "billing_address_state" field.
func (*CustomerUpsertOne) ClearCurrency ¶
func (u *CustomerUpsertOne) ClearCurrency() *CustomerUpsertOne
ClearCurrency clears the value of the "currency" field.
func (*CustomerUpsertOne) ClearDeletedAt ¶
func (u *CustomerUpsertOne) ClearDeletedAt() *CustomerUpsertOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*CustomerUpsertOne) ClearExternalMappingStripeCustomerID ¶
func (u *CustomerUpsertOne) ClearExternalMappingStripeCustomerID() *CustomerUpsertOne
ClearExternalMappingStripeCustomerID clears the value of the "external_mapping_stripe_customer_id" field.
func (*CustomerUpsertOne) ClearMetadata ¶
func (u *CustomerUpsertOne) ClearMetadata() *CustomerUpsertOne
ClearMetadata clears the value of the "metadata" field.
func (*CustomerUpsertOne) ClearPrimaryEmail ¶
func (u *CustomerUpsertOne) ClearPrimaryEmail() *CustomerUpsertOne
ClearPrimaryEmail clears the value of the "primary_email" field.
func (*CustomerUpsertOne) ClearTimezone ¶
func (u *CustomerUpsertOne) ClearTimezone() *CustomerUpsertOne
ClearTimezone clears the value of the "timezone" field.
func (*CustomerUpsertOne) DoNothing ¶
func (u *CustomerUpsertOne) DoNothing() *CustomerUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*CustomerUpsertOne) Exec ¶
func (u *CustomerUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*CustomerUpsertOne) ExecX ¶
func (u *CustomerUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CustomerUpsertOne) ID ¶
func (u *CustomerUpsertOne) ID(ctx context.Context) (id string, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*CustomerUpsertOne) IDX ¶
func (u *CustomerUpsertOne) IDX(ctx context.Context) string
IDX is like ID, but panics if an error occurs.
func (*CustomerUpsertOne) Ignore ¶
func (u *CustomerUpsertOne) Ignore() *CustomerUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Customer.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*CustomerUpsertOne) SetBillingAddressCity ¶
func (u *CustomerUpsertOne) SetBillingAddressCity(v string) *CustomerUpsertOne
SetBillingAddressCity sets the "billing_address_city" field.
func (*CustomerUpsertOne) SetBillingAddressCountry ¶
func (u *CustomerUpsertOne) SetBillingAddressCountry(v models.CountryCode) *CustomerUpsertOne
SetBillingAddressCountry sets the "billing_address_country" field.
func (*CustomerUpsertOne) SetBillingAddressLine1 ¶
func (u *CustomerUpsertOne) SetBillingAddressLine1(v string) *CustomerUpsertOne
SetBillingAddressLine1 sets the "billing_address_line1" field.
func (*CustomerUpsertOne) SetBillingAddressLine2 ¶
func (u *CustomerUpsertOne) SetBillingAddressLine2(v string) *CustomerUpsertOne
SetBillingAddressLine2 sets the "billing_address_line2" field.
func (*CustomerUpsertOne) SetBillingAddressPhoneNumber ¶
func (u *CustomerUpsertOne) SetBillingAddressPhoneNumber(v string) *CustomerUpsertOne
SetBillingAddressPhoneNumber sets the "billing_address_phone_number" field.
func (*CustomerUpsertOne) SetBillingAddressPostalCode ¶
func (u *CustomerUpsertOne) SetBillingAddressPostalCode(v string) *CustomerUpsertOne
SetBillingAddressPostalCode sets the "billing_address_postal_code" field.
func (*CustomerUpsertOne) SetBillingAddressState ¶
func (u *CustomerUpsertOne) SetBillingAddressState(v string) *CustomerUpsertOne
SetBillingAddressState sets the "billing_address_state" field.
func (*CustomerUpsertOne) SetCurrency ¶
func (u *CustomerUpsertOne) SetCurrency(v currencyx.Code) *CustomerUpsertOne
SetCurrency sets the "currency" field.
func (*CustomerUpsertOne) SetDeletedAt ¶
func (u *CustomerUpsertOne) SetDeletedAt(v time.Time) *CustomerUpsertOne
SetDeletedAt sets the "deleted_at" field.
func (*CustomerUpsertOne) SetExternalMappingStripeCustomerID ¶
func (u *CustomerUpsertOne) SetExternalMappingStripeCustomerID(v string) *CustomerUpsertOne
SetExternalMappingStripeCustomerID sets the "external_mapping_stripe_customer_id" field.
func (*CustomerUpsertOne) SetMetadata ¶
func (u *CustomerUpsertOne) SetMetadata(v map[string]string) *CustomerUpsertOne
SetMetadata sets the "metadata" field.
func (*CustomerUpsertOne) SetName ¶
func (u *CustomerUpsertOne) SetName(v string) *CustomerUpsertOne
SetName sets the "name" field.
func (*CustomerUpsertOne) SetPrimaryEmail ¶
func (u *CustomerUpsertOne) SetPrimaryEmail(v string) *CustomerUpsertOne
SetPrimaryEmail sets the "primary_email" field.
func (*CustomerUpsertOne) SetTimezone ¶
func (u *CustomerUpsertOne) SetTimezone(v timezone.Timezone) *CustomerUpsertOne
SetTimezone sets the "timezone" field.
func (*CustomerUpsertOne) SetUpdatedAt ¶
func (u *CustomerUpsertOne) SetUpdatedAt(v time.Time) *CustomerUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*CustomerUpsertOne) Update ¶
func (u *CustomerUpsertOne) Update(set func(*CustomerUpsert)) *CustomerUpsertOne
Update allows overriding fields `UPDATE` values. See the CustomerCreate.OnConflict documentation for more info.
func (*CustomerUpsertOne) UpdateBillingAddressCity ¶
func (u *CustomerUpsertOne) UpdateBillingAddressCity() *CustomerUpsertOne
UpdateBillingAddressCity sets the "billing_address_city" field to the value that was provided on create.
func (*CustomerUpsertOne) UpdateBillingAddressCountry ¶
func (u *CustomerUpsertOne) UpdateBillingAddressCountry() *CustomerUpsertOne
UpdateBillingAddressCountry sets the "billing_address_country" field to the value that was provided on create.
func (*CustomerUpsertOne) UpdateBillingAddressLine1 ¶
func (u *CustomerUpsertOne) UpdateBillingAddressLine1() *CustomerUpsertOne
UpdateBillingAddressLine1 sets the "billing_address_line1" field to the value that was provided on create.
func (*CustomerUpsertOne) UpdateBillingAddressLine2 ¶
func (u *CustomerUpsertOne) UpdateBillingAddressLine2() *CustomerUpsertOne
UpdateBillingAddressLine2 sets the "billing_address_line2" field to the value that was provided on create.
func (*CustomerUpsertOne) UpdateBillingAddressPhoneNumber ¶
func (u *CustomerUpsertOne) UpdateBillingAddressPhoneNumber() *CustomerUpsertOne
UpdateBillingAddressPhoneNumber sets the "billing_address_phone_number" field to the value that was provided on create.
func (*CustomerUpsertOne) UpdateBillingAddressPostalCode ¶
func (u *CustomerUpsertOne) UpdateBillingAddressPostalCode() *CustomerUpsertOne
UpdateBillingAddressPostalCode sets the "billing_address_postal_code" field to the value that was provided on create.
func (*CustomerUpsertOne) UpdateBillingAddressState ¶
func (u *CustomerUpsertOne) UpdateBillingAddressState() *CustomerUpsertOne
UpdateBillingAddressState sets the "billing_address_state" field to the value that was provided on create.
func (*CustomerUpsertOne) UpdateCurrency ¶
func (u *CustomerUpsertOne) UpdateCurrency() *CustomerUpsertOne
UpdateCurrency sets the "currency" field to the value that was provided on create.
func (*CustomerUpsertOne) UpdateDeletedAt ¶
func (u *CustomerUpsertOne) UpdateDeletedAt() *CustomerUpsertOne
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*CustomerUpsertOne) UpdateExternalMappingStripeCustomerID ¶
func (u *CustomerUpsertOne) UpdateExternalMappingStripeCustomerID() *CustomerUpsertOne
UpdateExternalMappingStripeCustomerID sets the "external_mapping_stripe_customer_id" field to the value that was provided on create.
func (*CustomerUpsertOne) UpdateMetadata ¶
func (u *CustomerUpsertOne) UpdateMetadata() *CustomerUpsertOne
UpdateMetadata sets the "metadata" field to the value that was provided on create.
func (*CustomerUpsertOne) UpdateName ¶
func (u *CustomerUpsertOne) UpdateName() *CustomerUpsertOne
UpdateName sets the "name" field to the value that was provided on create.
func (*CustomerUpsertOne) UpdateNewValues ¶
func (u *CustomerUpsertOne) UpdateNewValues() *CustomerUpsertOne
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.Customer.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(customer.FieldID)
}),
).
Exec(ctx)
func (*CustomerUpsertOne) UpdatePrimaryEmail ¶
func (u *CustomerUpsertOne) UpdatePrimaryEmail() *CustomerUpsertOne
UpdatePrimaryEmail sets the "primary_email" field to the value that was provided on create.
func (*CustomerUpsertOne) UpdateTimezone ¶
func (u *CustomerUpsertOne) UpdateTimezone() *CustomerUpsertOne
UpdateTimezone sets the "timezone" field to the value that was provided on create.
func (*CustomerUpsertOne) UpdateUpdatedAt ¶
func (u *CustomerUpsertOne) UpdateUpdatedAt() *CustomerUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type Entitlement ¶
type Entitlement struct {
// ID of the ent.
ID string `json:"id,omitempty"`
// Namespace holds the value of the "namespace" field.
Namespace string `json:"namespace,omitempty"`
// Metadata holds the value of the "metadata" field.
Metadata map[string]string `json:"metadata,omitempty"`
// CreatedAt holds the value of the "created_at" field.
CreatedAt time.Time `json:"created_at,omitempty"`
// UpdatedAt holds the value of the "updated_at" field.
UpdatedAt time.Time `json:"updated_at,omitempty"`
// DeletedAt holds the value of the "deleted_at" field.
DeletedAt *time.Time `json:"deleted_at,omitempty"`
// EntitlementType holds the value of the "entitlement_type" field.
EntitlementType entitlement.EntitlementType `json:"entitlement_type,omitempty"`
// FeatureID holds the value of the "feature_id" field.
FeatureID string `json:"feature_id,omitempty"`
// FeatureKey holds the value of the "feature_key" field.
FeatureKey string `json:"feature_key,omitempty"`
// SubjectKey holds the value of the "subject_key" field.
SubjectKey string `json:"subject_key,omitempty"`
// MeasureUsageFrom holds the value of the "measure_usage_from" field.
MeasureUsageFrom *time.Time `json:"measure_usage_from,omitempty"`
// IssueAfterReset holds the value of the "issue_after_reset" field.
IssueAfterReset *float64 `json:"issue_after_reset,omitempty"`
// IssueAfterResetPriority holds the value of the "issue_after_reset_priority" field.
IssueAfterResetPriority *uint8 `json:"issue_after_reset_priority,omitempty"`
// IsSoftLimit holds the value of the "is_soft_limit" field.
IsSoftLimit *bool `json:"is_soft_limit,omitempty"`
// PreserveOverageAtReset holds the value of the "preserve_overage_at_reset" field.
PreserveOverageAtReset *bool `json:"preserve_overage_at_reset,omitempty"`
// Config holds the value of the "config" field.
Config []uint8 `json:"config,omitempty"`
// UsagePeriodInterval holds the value of the "usage_period_interval" field.
UsagePeriodInterval *entitlement.UsagePeriodInterval `json:"usage_period_interval,omitempty"`
// UsagePeriodAnchor holds the value of the "usage_period_anchor" field.
UsagePeriodAnchor *time.Time `json:"usage_period_anchor,omitempty"`
// CurrentUsagePeriodStart holds the value of the "current_usage_period_start" field.
CurrentUsagePeriodStart *time.Time `json:"current_usage_period_start,omitempty"`
// CurrentUsagePeriodEnd holds the value of the "current_usage_period_end" field.
CurrentUsagePeriodEnd *time.Time `json:"current_usage_period_end,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the EntitlementQuery when eager-loading is set.
Edges EntitlementEdges `json:"edges"`
// contains filtered or unexported fields
}
Entitlement is the model entity for the Entitlement schema.
func (*Entitlement) ExecContext ¶
func (c *Entitlement) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*Entitlement) QueryBalanceSnapshot ¶
func (e *Entitlement) QueryBalanceSnapshot() *BalanceSnapshotQuery
QueryBalanceSnapshot queries the "balance_snapshot" edge of the Entitlement entity.
func (*Entitlement) QueryContext ¶
func (c *Entitlement) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*Entitlement) QueryFeature ¶
func (e *Entitlement) QueryFeature() *FeatureQuery
QueryFeature queries the "feature" edge of the Entitlement entity.
func (*Entitlement) QueryGrant ¶
func (e *Entitlement) QueryGrant() *GrantQuery
QueryGrant queries the "grant" edge of the Entitlement entity.
func (*Entitlement) QueryUsageReset ¶
func (e *Entitlement) QueryUsageReset() *UsageResetQuery
QueryUsageReset queries the "usage_reset" edge of the Entitlement entity.
func (*Entitlement) String ¶
func (e *Entitlement) String() string
String implements the fmt.Stringer.
func (*Entitlement) Unwrap ¶
func (e *Entitlement) Unwrap() *Entitlement
Unwrap unwraps the Entitlement 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 (*Entitlement) Update ¶
func (e *Entitlement) Update() *EntitlementUpdateOne
Update returns a builder for updating this Entitlement. Note that you need to call Entitlement.Unwrap() before calling this method if this Entitlement was returned from a transaction, and the transaction was committed or rolled back.
type EntitlementClient ¶
type EntitlementClient struct {
// contains filtered or unexported fields
}
EntitlementClient is a client for the Entitlement schema.
func NewEntitlementClient ¶
func NewEntitlementClient(c config) *EntitlementClient
NewEntitlementClient returns a client for the Entitlement from the given config.
func (*EntitlementClient) Create ¶
func (c *EntitlementClient) Create() *EntitlementCreate
Create returns a builder for creating a Entitlement entity.
func (*EntitlementClient) CreateBulk ¶
func (c *EntitlementClient) CreateBulk(builders ...*EntitlementCreate) *EntitlementCreateBulk
CreateBulk returns a builder for creating a bulk of Entitlement entities.
func (*EntitlementClient) Delete ¶
func (c *EntitlementClient) Delete() *EntitlementDelete
Delete returns a delete builder for Entitlement.
func (*EntitlementClient) DeleteOne ¶
func (c *EntitlementClient) DeleteOne(e *Entitlement) *EntitlementDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*EntitlementClient) DeleteOneID ¶
func (c *EntitlementClient) DeleteOneID(id string) *EntitlementDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*EntitlementClient) ExecContext ¶
func (c *EntitlementClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*EntitlementClient) Get ¶
func (c *EntitlementClient) Get(ctx context.Context, id string) (*Entitlement, error)
Get returns a Entitlement entity by its id.
func (*EntitlementClient) GetX ¶
func (c *EntitlementClient) GetX(ctx context.Context, id string) *Entitlement
GetX is like Get, but panics if an error occurs.
func (*EntitlementClient) Hooks ¶
func (c *EntitlementClient) Hooks() []Hook
Hooks returns the client hooks.
func (*EntitlementClient) Intercept ¶
func (c *EntitlementClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `entitlement.Intercept(f(g(h())))`.
func (*EntitlementClient) Interceptors ¶
func (c *EntitlementClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*EntitlementClient) MapCreateBulk ¶
func (c *EntitlementClient) MapCreateBulk(slice any, setFunc func(*EntitlementCreate, int)) *EntitlementCreateBulk
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 (*EntitlementClient) Query ¶
func (c *EntitlementClient) Query() *EntitlementQuery
Query returns a query builder for Entitlement.
func (*EntitlementClient) QueryBalanceSnapshot ¶
func (c *EntitlementClient) QueryBalanceSnapshot(e *Entitlement) *BalanceSnapshotQuery
QueryBalanceSnapshot queries the balance_snapshot edge of a Entitlement.
func (*EntitlementClient) QueryContext ¶
func (c *EntitlementClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*EntitlementClient) QueryFeature ¶
func (c *EntitlementClient) QueryFeature(e *Entitlement) *FeatureQuery
QueryFeature queries the feature edge of a Entitlement.
func (*EntitlementClient) QueryGrant ¶
func (c *EntitlementClient) QueryGrant(e *Entitlement) *GrantQuery
QueryGrant queries the grant edge of a Entitlement.
func (*EntitlementClient) QueryUsageReset ¶
func (c *EntitlementClient) QueryUsageReset(e *Entitlement) *UsageResetQuery
QueryUsageReset queries the usage_reset edge of a Entitlement.
func (*EntitlementClient) Update ¶
func (c *EntitlementClient) Update() *EntitlementUpdate
Update returns an update builder for Entitlement.
func (*EntitlementClient) UpdateOne ¶
func (c *EntitlementClient) UpdateOne(e *Entitlement) *EntitlementUpdateOne
UpdateOne returns an update builder for the given entity.
func (*EntitlementClient) UpdateOneID ¶
func (c *EntitlementClient) UpdateOneID(id string) *EntitlementUpdateOne
UpdateOneID returns an update builder for the given id.
func (*EntitlementClient) Use ¶
func (c *EntitlementClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `entitlement.Hooks(f(g(h())))`.
type EntitlementCreate ¶
type EntitlementCreate struct {
// contains filtered or unexported fields
}
EntitlementCreate is the builder for creating a Entitlement entity.
func (*EntitlementCreate) AddBalanceSnapshot ¶
func (ec *EntitlementCreate) AddBalanceSnapshot(b ...*BalanceSnapshot) *EntitlementCreate
AddBalanceSnapshot adds the "balance_snapshot" edges to the BalanceSnapshot entity.
func (*EntitlementCreate) AddBalanceSnapshotIDs ¶
func (ec *EntitlementCreate) AddBalanceSnapshotIDs(ids ...int) *EntitlementCreate
AddBalanceSnapshotIDs adds the "balance_snapshot" edge to the BalanceSnapshot entity by IDs.
func (*EntitlementCreate) AddGrant ¶
func (ec *EntitlementCreate) AddGrant(g ...*Grant) *EntitlementCreate
AddGrant adds the "grant" edges to the Grant entity.
func (*EntitlementCreate) AddGrantIDs ¶
func (ec *EntitlementCreate) AddGrantIDs(ids ...string) *EntitlementCreate
AddGrantIDs adds the "grant" edge to the Grant entity by IDs.
func (*EntitlementCreate) AddUsageReset ¶
func (ec *EntitlementCreate) AddUsageReset(u ...*UsageReset) *EntitlementCreate
AddUsageReset adds the "usage_reset" edges to the UsageReset entity.
func (*EntitlementCreate) AddUsageResetIDs ¶
func (ec *EntitlementCreate) AddUsageResetIDs(ids ...string) *EntitlementCreate
AddUsageResetIDs adds the "usage_reset" edge to the UsageReset entity by IDs.
func (*EntitlementCreate) Exec ¶
func (ec *EntitlementCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*EntitlementCreate) ExecContext ¶
func (c *EntitlementCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*EntitlementCreate) ExecX ¶
func (ec *EntitlementCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*EntitlementCreate) Mutation ¶
func (ec *EntitlementCreate) Mutation() *EntitlementMutation
Mutation returns the EntitlementMutation object of the builder.
func (*EntitlementCreate) OnConflict ¶
func (ec *EntitlementCreate) OnConflict(opts ...sql.ConflictOption) *EntitlementUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Entitlement.Create().
SetNamespace(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.EntitlementUpsert) {
SetNamespace(v+v).
}).
Exec(ctx)
func (*EntitlementCreate) OnConflictColumns ¶
func (ec *EntitlementCreate) OnConflictColumns(columns ...string) *EntitlementUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Entitlement.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*EntitlementCreate) QueryContext ¶
func (c *EntitlementCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*EntitlementCreate) Save ¶
func (ec *EntitlementCreate) Save(ctx context.Context) (*Entitlement, error)
Save creates the Entitlement in the database.
func (*EntitlementCreate) SaveX ¶
func (ec *EntitlementCreate) SaveX(ctx context.Context) *Entitlement
SaveX calls Save and panics if Save returns an error.
func (*EntitlementCreate) SetConfig ¶
func (ec *EntitlementCreate) SetConfig(u []uint8) *EntitlementCreate
SetConfig sets the "config" field.
func (*EntitlementCreate) SetCreatedAt ¶
func (ec *EntitlementCreate) SetCreatedAt(t time.Time) *EntitlementCreate
SetCreatedAt sets the "created_at" field.
func (*EntitlementCreate) SetCurrentUsagePeriodEnd ¶
func (ec *EntitlementCreate) SetCurrentUsagePeriodEnd(t time.Time) *EntitlementCreate
SetCurrentUsagePeriodEnd sets the "current_usage_period_end" field.
func (*EntitlementCreate) SetCurrentUsagePeriodStart ¶
func (ec *EntitlementCreate) SetCurrentUsagePeriodStart(t time.Time) *EntitlementCreate
SetCurrentUsagePeriodStart sets the "current_usage_period_start" field.
func (*EntitlementCreate) SetDeletedAt ¶
func (ec *EntitlementCreate) SetDeletedAt(t time.Time) *EntitlementCreate
SetDeletedAt sets the "deleted_at" field.
func (*EntitlementCreate) SetEntitlementType ¶
func (ec *EntitlementCreate) SetEntitlementType(et entitlement.EntitlementType) *EntitlementCreate
SetEntitlementType sets the "entitlement_type" field.
func (*EntitlementCreate) SetFeature ¶
func (ec *EntitlementCreate) SetFeature(f *Feature) *EntitlementCreate
SetFeature sets the "feature" edge to the Feature entity.
func (*EntitlementCreate) SetFeatureID ¶
func (ec *EntitlementCreate) SetFeatureID(s string) *EntitlementCreate
SetFeatureID sets the "feature_id" field.
func (*EntitlementCreate) SetFeatureKey ¶
func (ec *EntitlementCreate) SetFeatureKey(s string) *EntitlementCreate
SetFeatureKey sets the "feature_key" field.
func (*EntitlementCreate) SetID ¶
func (ec *EntitlementCreate) SetID(s string) *EntitlementCreate
SetID sets the "id" field.
func (*EntitlementCreate) SetIsSoftLimit ¶
func (ec *EntitlementCreate) SetIsSoftLimit(b bool) *EntitlementCreate
SetIsSoftLimit sets the "is_soft_limit" field.
func (*EntitlementCreate) SetIssueAfterReset ¶
func (ec *EntitlementCreate) SetIssueAfterReset(f float64) *EntitlementCreate
SetIssueAfterReset sets the "issue_after_reset" field.
func (*EntitlementCreate) SetIssueAfterResetPriority ¶
func (ec *EntitlementCreate) SetIssueAfterResetPriority(u uint8) *EntitlementCreate
SetIssueAfterResetPriority sets the "issue_after_reset_priority" field.
func (*EntitlementCreate) SetMeasureUsageFrom ¶
func (ec *EntitlementCreate) SetMeasureUsageFrom(t time.Time) *EntitlementCreate
SetMeasureUsageFrom sets the "measure_usage_from" field.
func (*EntitlementCreate) SetMetadata ¶
func (ec *EntitlementCreate) SetMetadata(m map[string]string) *EntitlementCreate
SetMetadata sets the "metadata" field.
func (*EntitlementCreate) SetNamespace ¶
func (ec *EntitlementCreate) SetNamespace(s string) *EntitlementCreate
SetNamespace sets the "namespace" field.
func (*EntitlementCreate) SetNillableCreatedAt ¶
func (ec *EntitlementCreate) SetNillableCreatedAt(t *time.Time) *EntitlementCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*EntitlementCreate) SetNillableCurrentUsagePeriodEnd ¶
func (ec *EntitlementCreate) SetNillableCurrentUsagePeriodEnd(t *time.Time) *EntitlementCreate
SetNillableCurrentUsagePeriodEnd sets the "current_usage_period_end" field if the given value is not nil.
func (*EntitlementCreate) SetNillableCurrentUsagePeriodStart ¶
func (ec *EntitlementCreate) SetNillableCurrentUsagePeriodStart(t *time.Time) *EntitlementCreate
SetNillableCurrentUsagePeriodStart sets the "current_usage_period_start" field if the given value is not nil.
func (*EntitlementCreate) SetNillableDeletedAt ¶
func (ec *EntitlementCreate) SetNillableDeletedAt(t *time.Time) *EntitlementCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*EntitlementCreate) SetNillableID ¶
func (ec *EntitlementCreate) SetNillableID(s *string) *EntitlementCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*EntitlementCreate) SetNillableIsSoftLimit ¶
func (ec *EntitlementCreate) SetNillableIsSoftLimit(b *bool) *EntitlementCreate
SetNillableIsSoftLimit sets the "is_soft_limit" field if the given value is not nil.
func (*EntitlementCreate) SetNillableIssueAfterReset ¶
func (ec *EntitlementCreate) SetNillableIssueAfterReset(f *float64) *EntitlementCreate
SetNillableIssueAfterReset sets the "issue_after_reset" field if the given value is not nil.
func (*EntitlementCreate) SetNillableIssueAfterResetPriority ¶
func (ec *EntitlementCreate) SetNillableIssueAfterResetPriority(u *uint8) *EntitlementCreate
SetNillableIssueAfterResetPriority sets the "issue_after_reset_priority" field if the given value is not nil.
func (*EntitlementCreate) SetNillableMeasureUsageFrom ¶
func (ec *EntitlementCreate) SetNillableMeasureUsageFrom(t *time.Time) *EntitlementCreate
SetNillableMeasureUsageFrom sets the "measure_usage_from" field if the given value is not nil.
func (*EntitlementCreate) SetNillablePreserveOverageAtReset ¶
func (ec *EntitlementCreate) SetNillablePreserveOverageAtReset(b *bool) *EntitlementCreate
SetNillablePreserveOverageAtReset sets the "preserve_overage_at_reset" field if the given value is not nil.
func (*EntitlementCreate) SetNillableUpdatedAt ¶
func (ec *EntitlementCreate) SetNillableUpdatedAt(t *time.Time) *EntitlementCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*EntitlementCreate) SetNillableUsagePeriodAnchor ¶
func (ec *EntitlementCreate) SetNillableUsagePeriodAnchor(t *time.Time) *EntitlementCreate
SetNillableUsagePeriodAnchor sets the "usage_period_anchor" field if the given value is not nil.
func (*EntitlementCreate) SetNillableUsagePeriodInterval ¶
func (ec *EntitlementCreate) SetNillableUsagePeriodInterval(epi *entitlement.UsagePeriodInterval) *EntitlementCreate
SetNillableUsagePeriodInterval sets the "usage_period_interval" field if the given value is not nil.
func (*EntitlementCreate) SetPreserveOverageAtReset ¶
func (ec *EntitlementCreate) SetPreserveOverageAtReset(b bool) *EntitlementCreate
SetPreserveOverageAtReset sets the "preserve_overage_at_reset" field.
func (*EntitlementCreate) SetSubjectKey ¶
func (ec *EntitlementCreate) SetSubjectKey(s string) *EntitlementCreate
SetSubjectKey sets the "subject_key" field.
func (*EntitlementCreate) SetUpdatedAt ¶
func (ec *EntitlementCreate) SetUpdatedAt(t time.Time) *EntitlementCreate
SetUpdatedAt sets the "updated_at" field.
func (*EntitlementCreate) SetUsagePeriodAnchor ¶
func (ec *EntitlementCreate) SetUsagePeriodAnchor(t time.Time) *EntitlementCreate
SetUsagePeriodAnchor sets the "usage_period_anchor" field.
func (*EntitlementCreate) SetUsagePeriodInterval ¶
func (ec *EntitlementCreate) SetUsagePeriodInterval(epi entitlement.UsagePeriodInterval) *EntitlementCreate
SetUsagePeriodInterval sets the "usage_period_interval" field.
type EntitlementCreateBulk ¶
type EntitlementCreateBulk struct {
// contains filtered or unexported fields
}
EntitlementCreateBulk is the builder for creating many Entitlement entities in bulk.
func (*EntitlementCreateBulk) Exec ¶
func (ecb *EntitlementCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*EntitlementCreateBulk) ExecContext ¶
func (c *EntitlementCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*EntitlementCreateBulk) ExecX ¶
func (ecb *EntitlementCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*EntitlementCreateBulk) OnConflict ¶
func (ecb *EntitlementCreateBulk) OnConflict(opts ...sql.ConflictOption) *EntitlementUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Entitlement.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.EntitlementUpsert) {
SetNamespace(v+v).
}).
Exec(ctx)
func (*EntitlementCreateBulk) OnConflictColumns ¶
func (ecb *EntitlementCreateBulk) OnConflictColumns(columns ...string) *EntitlementUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Entitlement.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*EntitlementCreateBulk) QueryContext ¶
func (c *EntitlementCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*EntitlementCreateBulk) Save ¶
func (ecb *EntitlementCreateBulk) Save(ctx context.Context) ([]*Entitlement, error)
Save creates the Entitlement entities in the database.
func (*EntitlementCreateBulk) SaveX ¶
func (ecb *EntitlementCreateBulk) SaveX(ctx context.Context) []*Entitlement
SaveX is like Save, but panics if an error occurs.
type EntitlementDelete ¶
type EntitlementDelete struct {
// contains filtered or unexported fields
}
EntitlementDelete is the builder for deleting a Entitlement entity.
func (*EntitlementDelete) Exec ¶
func (ed *EntitlementDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*EntitlementDelete) ExecContext ¶
func (c *EntitlementDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*EntitlementDelete) ExecX ¶
func (ed *EntitlementDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*EntitlementDelete) QueryContext ¶
func (c *EntitlementDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*EntitlementDelete) Where ¶
func (ed *EntitlementDelete) Where(ps ...predicate.Entitlement) *EntitlementDelete
Where appends a list predicates to the EntitlementDelete builder.
type EntitlementDeleteOne ¶
type EntitlementDeleteOne struct {
// contains filtered or unexported fields
}
EntitlementDeleteOne is the builder for deleting a single Entitlement entity.
func (*EntitlementDeleteOne) Exec ¶
func (edo *EntitlementDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*EntitlementDeleteOne) ExecX ¶
func (edo *EntitlementDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*EntitlementDeleteOne) Where ¶
func (edo *EntitlementDeleteOne) Where(ps ...predicate.Entitlement) *EntitlementDeleteOne
Where appends a list predicates to the EntitlementDelete builder.
type EntitlementEdges ¶
type EntitlementEdges struct {
// UsageReset holds the value of the usage_reset edge.
UsageReset []*UsageReset `json:"usage_reset,omitempty"`
// Grant holds the value of the grant edge.
Grant []*Grant `json:"grant,omitempty"`
// BalanceSnapshot holds the value of the balance_snapshot edge.
BalanceSnapshot []*BalanceSnapshot `json:"balance_snapshot,omitempty"`
// Feature holds the value of the feature edge.
Feature *Feature `json:"feature,omitempty"`
// contains filtered or unexported fields
}
EntitlementEdges holds the relations/edges for other nodes in the graph.
func (EntitlementEdges) BalanceSnapshotOrErr ¶
func (e EntitlementEdges) BalanceSnapshotOrErr() ([]*BalanceSnapshot, error)
BalanceSnapshotOrErr returns the BalanceSnapshot value or an error if the edge was not loaded in eager-loading.
func (EntitlementEdges) FeatureOrErr ¶
func (e EntitlementEdges) FeatureOrErr() (*Feature, error)
FeatureOrErr returns the Feature value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (EntitlementEdges) GrantOrErr ¶
func (e EntitlementEdges) GrantOrErr() ([]*Grant, error)
GrantOrErr returns the Grant value or an error if the edge was not loaded in eager-loading.
func (EntitlementEdges) UsageResetOrErr ¶
func (e EntitlementEdges) UsageResetOrErr() ([]*UsageReset, error)
UsageResetOrErr returns the UsageReset value or an error if the edge was not loaded in eager-loading.
type EntitlementGroupBy ¶
type EntitlementGroupBy struct {
// contains filtered or unexported fields
}
EntitlementGroupBy is the group-by builder for Entitlement entities.
func (*EntitlementGroupBy) Aggregate ¶
func (egb *EntitlementGroupBy) Aggregate(fns ...AggregateFunc) *EntitlementGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*EntitlementGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*EntitlementGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*EntitlementGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*EntitlementGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*EntitlementGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*EntitlementGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*EntitlementGroupBy) Scan ¶
func (egb *EntitlementGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*EntitlementGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type EntitlementMutation ¶
type EntitlementMutation struct {
// contains filtered or unexported fields
}
EntitlementMutation represents an operation that mutates the Entitlement nodes in the graph.
func (*EntitlementMutation) AddBalanceSnapshotIDs ¶
func (m *EntitlementMutation) AddBalanceSnapshotIDs(ids ...int)
AddBalanceSnapshotIDs adds the "balance_snapshot" edge to the BalanceSnapshot entity by ids.
func (*EntitlementMutation) AddField ¶
func (m *EntitlementMutation) 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 (*EntitlementMutation) AddGrantIDs ¶
func (m *EntitlementMutation) AddGrantIDs(ids ...string)
AddGrantIDs adds the "grant" edge to the Grant entity by ids.
func (*EntitlementMutation) AddIssueAfterReset ¶
func (m *EntitlementMutation) AddIssueAfterReset(f float64)
AddIssueAfterReset adds f to the "issue_after_reset" field.
func (*EntitlementMutation) AddIssueAfterResetPriority ¶
func (m *EntitlementMutation) AddIssueAfterResetPriority(u int8)
AddIssueAfterResetPriority adds u to the "issue_after_reset_priority" field.
func (*EntitlementMutation) AddUsageResetIDs ¶
func (m *EntitlementMutation) AddUsageResetIDs(ids ...string)
AddUsageResetIDs adds the "usage_reset" edge to the UsageReset entity by ids.
func (*EntitlementMutation) AddedEdges ¶
func (m *EntitlementMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*EntitlementMutation) AddedField ¶
func (m *EntitlementMutation) 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 (*EntitlementMutation) AddedFields ¶
func (m *EntitlementMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*EntitlementMutation) AddedIDs ¶
func (m *EntitlementMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*EntitlementMutation) AddedIssueAfterReset ¶
func (m *EntitlementMutation) AddedIssueAfterReset() (r float64, exists bool)
AddedIssueAfterReset returns the value that was added to the "issue_after_reset" field in this mutation.
func (*EntitlementMutation) AddedIssueAfterResetPriority ¶
func (m *EntitlementMutation) AddedIssueAfterResetPriority() (r int8, exists bool)
AddedIssueAfterResetPriority returns the value that was added to the "issue_after_reset_priority" field in this mutation.
func (*EntitlementMutation) AppendConfig ¶
func (m *EntitlementMutation) AppendConfig(u []uint8)
AppendConfig adds u to the "config" field.
func (*EntitlementMutation) AppendedConfig ¶
func (m *EntitlementMutation) AppendedConfig() ([]uint8, bool)
AppendedConfig returns the list of values that were appended to the "config" field in this mutation.
func (*EntitlementMutation) BalanceSnapshotCleared ¶
func (m *EntitlementMutation) BalanceSnapshotCleared() bool
BalanceSnapshotCleared reports if the "balance_snapshot" edge to the BalanceSnapshot entity was cleared.
func (*EntitlementMutation) BalanceSnapshotIDs ¶
func (m *EntitlementMutation) BalanceSnapshotIDs() (ids []int)
BalanceSnapshotIDs returns the "balance_snapshot" edge IDs in the mutation.
func (*EntitlementMutation) ClearBalanceSnapshot ¶
func (m *EntitlementMutation) ClearBalanceSnapshot()
ClearBalanceSnapshot clears the "balance_snapshot" edge to the BalanceSnapshot entity.
func (*EntitlementMutation) ClearConfig ¶
func (m *EntitlementMutation) ClearConfig()
ClearConfig clears the value of the "config" field.
func (*EntitlementMutation) ClearCurrentUsagePeriodEnd ¶
func (m *EntitlementMutation) ClearCurrentUsagePeriodEnd()
ClearCurrentUsagePeriodEnd clears the value of the "current_usage_period_end" field.
func (*EntitlementMutation) ClearCurrentUsagePeriodStart ¶
func (m *EntitlementMutation) ClearCurrentUsagePeriodStart()
ClearCurrentUsagePeriodStart clears the value of the "current_usage_period_start" field.
func (*EntitlementMutation) ClearDeletedAt ¶
func (m *EntitlementMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*EntitlementMutation) ClearEdge ¶
func (m *EntitlementMutation) 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 (*EntitlementMutation) ClearFeature ¶
func (m *EntitlementMutation) ClearFeature()
ClearFeature clears the "feature" edge to the Feature entity.
func (*EntitlementMutation) ClearField ¶
func (m *EntitlementMutation) 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 (*EntitlementMutation) ClearGrant ¶
func (m *EntitlementMutation) ClearGrant()
ClearGrant clears the "grant" edge to the Grant entity.
func (*EntitlementMutation) ClearIsSoftLimit ¶
func (m *EntitlementMutation) ClearIsSoftLimit()
ClearIsSoftLimit clears the value of the "is_soft_limit" field.
func (*EntitlementMutation) ClearIssueAfterReset ¶
func (m *EntitlementMutation) ClearIssueAfterReset()
ClearIssueAfterReset clears the value of the "issue_after_reset" field.
func (*EntitlementMutation) ClearIssueAfterResetPriority ¶
func (m *EntitlementMutation) ClearIssueAfterResetPriority()
ClearIssueAfterResetPriority clears the value of the "issue_after_reset_priority" field.
func (*EntitlementMutation) ClearMeasureUsageFrom ¶
func (m *EntitlementMutation) ClearMeasureUsageFrom()
ClearMeasureUsageFrom clears the value of the "measure_usage_from" field.
func (*EntitlementMutation) ClearMetadata ¶
func (m *EntitlementMutation) ClearMetadata()
ClearMetadata clears the value of the "metadata" field.
func (*EntitlementMutation) ClearPreserveOverageAtReset ¶
func (m *EntitlementMutation) ClearPreserveOverageAtReset()
ClearPreserveOverageAtReset clears the value of the "preserve_overage_at_reset" field.
func (*EntitlementMutation) ClearUsagePeriodAnchor ¶
func (m *EntitlementMutation) ClearUsagePeriodAnchor()
ClearUsagePeriodAnchor clears the value of the "usage_period_anchor" field.
func (*EntitlementMutation) ClearUsagePeriodInterval ¶
func (m *EntitlementMutation) ClearUsagePeriodInterval()
ClearUsagePeriodInterval clears the value of the "usage_period_interval" field.
func (*EntitlementMutation) ClearUsageReset ¶
func (m *EntitlementMutation) ClearUsageReset()
ClearUsageReset clears the "usage_reset" edge to the UsageReset entity.
func (*EntitlementMutation) ClearedEdges ¶
func (m *EntitlementMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*EntitlementMutation) ClearedFields ¶
func (m *EntitlementMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (EntitlementMutation) Client ¶
func (m EntitlementMutation) 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 (*EntitlementMutation) Config ¶
func (m *EntitlementMutation) Config() (r []uint8, exists bool)
Config returns the value of the "config" field in the mutation.
func (*EntitlementMutation) ConfigCleared ¶
func (m *EntitlementMutation) ConfigCleared() bool
ConfigCleared returns if the "config" field was cleared in this mutation.
func (*EntitlementMutation) CreatedAt ¶
func (m *EntitlementMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*EntitlementMutation) CurrentUsagePeriodEnd ¶
func (m *EntitlementMutation) CurrentUsagePeriodEnd() (r time.Time, exists bool)
CurrentUsagePeriodEnd returns the value of the "current_usage_period_end" field in the mutation.
func (*EntitlementMutation) CurrentUsagePeriodEndCleared ¶
func (m *EntitlementMutation) CurrentUsagePeriodEndCleared() bool
CurrentUsagePeriodEndCleared returns if the "current_usage_period_end" field was cleared in this mutation.
func (*EntitlementMutation) CurrentUsagePeriodStart ¶
func (m *EntitlementMutation) CurrentUsagePeriodStart() (r time.Time, exists bool)
CurrentUsagePeriodStart returns the value of the "current_usage_period_start" field in the mutation.
func (*EntitlementMutation) CurrentUsagePeriodStartCleared ¶
func (m *EntitlementMutation) CurrentUsagePeriodStartCleared() bool
CurrentUsagePeriodStartCleared returns if the "current_usage_period_start" field was cleared in this mutation.
func (*EntitlementMutation) DeletedAt ¶
func (m *EntitlementMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*EntitlementMutation) DeletedAtCleared ¶
func (m *EntitlementMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*EntitlementMutation) EdgeCleared ¶
func (m *EntitlementMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*EntitlementMutation) EntitlementType ¶
func (m *EntitlementMutation) EntitlementType() (r entitlement.EntitlementType, exists bool)
EntitlementType returns the value of the "entitlement_type" field in the mutation.
func (*EntitlementMutation) ExecContext ¶
func (c *EntitlementMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*EntitlementMutation) FeatureCleared ¶
func (m *EntitlementMutation) FeatureCleared() bool
FeatureCleared reports if the "feature" edge to the Feature entity was cleared.
func (*EntitlementMutation) FeatureID ¶
func (m *EntitlementMutation) FeatureID() (r string, exists bool)
FeatureID returns the value of the "feature_id" field in the mutation.
func (*EntitlementMutation) FeatureIDs ¶
func (m *EntitlementMutation) FeatureIDs() (ids []string)
FeatureIDs returns the "feature" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use FeatureID instead. It exists only for internal usage by the builders.
func (*EntitlementMutation) FeatureKey ¶
func (m *EntitlementMutation) FeatureKey() (r string, exists bool)
FeatureKey returns the value of the "feature_key" field in the mutation.
func (*EntitlementMutation) Field ¶
func (m *EntitlementMutation) 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 (*EntitlementMutation) FieldCleared ¶
func (m *EntitlementMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*EntitlementMutation) Fields ¶
func (m *EntitlementMutation) 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 (*EntitlementMutation) GrantCleared ¶
func (m *EntitlementMutation) GrantCleared() bool
GrantCleared reports if the "grant" edge to the Grant entity was cleared.
func (*EntitlementMutation) GrantIDs ¶
func (m *EntitlementMutation) GrantIDs() (ids []string)
GrantIDs returns the "grant" edge IDs in the mutation.
func (*EntitlementMutation) ID ¶
func (m *EntitlementMutation) ID() (id string, 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 (*EntitlementMutation) IDs ¶
func (m *EntitlementMutation) IDs(ctx context.Context) ([]string, error)
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 (*EntitlementMutation) IsSoftLimit ¶
func (m *EntitlementMutation) IsSoftLimit() (r bool, exists bool)
IsSoftLimit returns the value of the "is_soft_limit" field in the mutation.
func (*EntitlementMutation) IsSoftLimitCleared ¶
func (m *EntitlementMutation) IsSoftLimitCleared() bool
IsSoftLimitCleared returns if the "is_soft_limit" field was cleared in this mutation.
func (*EntitlementMutation) IssueAfterReset ¶
func (m *EntitlementMutation) IssueAfterReset() (r float64, exists bool)
IssueAfterReset returns the value of the "issue_after_reset" field in the mutation.
func (*EntitlementMutation) IssueAfterResetCleared ¶
func (m *EntitlementMutation) IssueAfterResetCleared() bool
IssueAfterResetCleared returns if the "issue_after_reset" field was cleared in this mutation.
func (*EntitlementMutation) IssueAfterResetPriority ¶
func (m *EntitlementMutation) IssueAfterResetPriority() (r uint8, exists bool)
IssueAfterResetPriority returns the value of the "issue_after_reset_priority" field in the mutation.
func (*EntitlementMutation) IssueAfterResetPriorityCleared ¶
func (m *EntitlementMutation) IssueAfterResetPriorityCleared() bool
IssueAfterResetPriorityCleared returns if the "issue_after_reset_priority" field was cleared in this mutation.
func (*EntitlementMutation) MeasureUsageFrom ¶
func (m *EntitlementMutation) MeasureUsageFrom() (r time.Time, exists bool)
MeasureUsageFrom returns the value of the "measure_usage_from" field in the mutation.
func (*EntitlementMutation) MeasureUsageFromCleared ¶
func (m *EntitlementMutation) MeasureUsageFromCleared() bool
MeasureUsageFromCleared returns if the "measure_usage_from" field was cleared in this mutation.
func (*EntitlementMutation) Metadata ¶
func (m *EntitlementMutation) Metadata() (r map[string]string, exists bool)
Metadata returns the value of the "metadata" field in the mutation.
func (*EntitlementMutation) MetadataCleared ¶
func (m *EntitlementMutation) MetadataCleared() bool
MetadataCleared returns if the "metadata" field was cleared in this mutation.
func (*EntitlementMutation) Namespace ¶
func (m *EntitlementMutation) Namespace() (r string, exists bool)
Namespace returns the value of the "namespace" field in the mutation.
func (*EntitlementMutation) OldConfig ¶
func (m *EntitlementMutation) OldConfig(ctx context.Context) (v []uint8, err error)
OldConfig returns the old "config" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) OldCurrentUsagePeriodEnd ¶
func (m *EntitlementMutation) OldCurrentUsagePeriodEnd(ctx context.Context) (v *time.Time, err error)
OldCurrentUsagePeriodEnd returns the old "current_usage_period_end" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) OldCurrentUsagePeriodStart ¶
func (m *EntitlementMutation) OldCurrentUsagePeriodStart(ctx context.Context) (v *time.Time, err error)
OldCurrentUsagePeriodStart returns the old "current_usage_period_start" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) OldEntitlementType ¶
func (m *EntitlementMutation) OldEntitlementType(ctx context.Context) (v entitlement.EntitlementType, err error)
OldEntitlementType returns the old "entitlement_type" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) OldFeatureID ¶
func (m *EntitlementMutation) OldFeatureID(ctx context.Context) (v string, err error)
OldFeatureID returns the old "feature_id" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) OldFeatureKey ¶
func (m *EntitlementMutation) OldFeatureKey(ctx context.Context) (v string, err error)
OldFeatureKey returns the old "feature_key" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) OldField ¶
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 (*EntitlementMutation) OldIsSoftLimit ¶
func (m *EntitlementMutation) OldIsSoftLimit(ctx context.Context) (v *bool, err error)
OldIsSoftLimit returns the old "is_soft_limit" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) OldIssueAfterReset ¶
func (m *EntitlementMutation) OldIssueAfterReset(ctx context.Context) (v *float64, err error)
OldIssueAfterReset returns the old "issue_after_reset" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) OldIssueAfterResetPriority ¶
func (m *EntitlementMutation) OldIssueAfterResetPriority(ctx context.Context) (v *uint8, err error)
OldIssueAfterResetPriority returns the old "issue_after_reset_priority" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) OldMeasureUsageFrom ¶
OldMeasureUsageFrom returns the old "measure_usage_from" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) OldMetadata ¶
OldMetadata returns the old "metadata" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) OldNamespace ¶
func (m *EntitlementMutation) OldNamespace(ctx context.Context) (v string, err error)
OldNamespace returns the old "namespace" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) OldPreserveOverageAtReset ¶
func (m *EntitlementMutation) OldPreserveOverageAtReset(ctx context.Context) (v *bool, err error)
OldPreserveOverageAtReset returns the old "preserve_overage_at_reset" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) OldSubjectKey ¶
func (m *EntitlementMutation) OldSubjectKey(ctx context.Context) (v string, err error)
OldSubjectKey returns the old "subject_key" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) OldUsagePeriodAnchor ¶
OldUsagePeriodAnchor returns the old "usage_period_anchor" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) OldUsagePeriodInterval ¶
func (m *EntitlementMutation) OldUsagePeriodInterval(ctx context.Context) (v *entitlement.UsagePeriodInterval, err error)
OldUsagePeriodInterval returns the old "usage_period_interval" field's value of the Entitlement entity. If the Entitlement 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 (*EntitlementMutation) Op ¶
func (m *EntitlementMutation) Op() Op
Op returns the operation name.
func (*EntitlementMutation) PreserveOverageAtReset ¶
func (m *EntitlementMutation) PreserveOverageAtReset() (r bool, exists bool)
PreserveOverageAtReset returns the value of the "preserve_overage_at_reset" field in the mutation.
func (*EntitlementMutation) PreserveOverageAtResetCleared ¶
func (m *EntitlementMutation) PreserveOverageAtResetCleared() bool
PreserveOverageAtResetCleared returns if the "preserve_overage_at_reset" field was cleared in this mutation.
func (*EntitlementMutation) QueryContext ¶
func (c *EntitlementMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*EntitlementMutation) RemoveBalanceSnapshotIDs ¶
func (m *EntitlementMutation) RemoveBalanceSnapshotIDs(ids ...int)
RemoveBalanceSnapshotIDs removes the "balance_snapshot" edge to the BalanceSnapshot entity by IDs.
func (*EntitlementMutation) RemoveGrantIDs ¶
func (m *EntitlementMutation) RemoveGrantIDs(ids ...string)
RemoveGrantIDs removes the "grant" edge to the Grant entity by IDs.
func (*EntitlementMutation) RemoveUsageResetIDs ¶
func (m *EntitlementMutation) RemoveUsageResetIDs(ids ...string)
RemoveUsageResetIDs removes the "usage_reset" edge to the UsageReset entity by IDs.
func (*EntitlementMutation) RemovedBalanceSnapshotIDs ¶
func (m *EntitlementMutation) RemovedBalanceSnapshotIDs() (ids []int)
RemovedBalanceSnapshot returns the removed IDs of the "balance_snapshot" edge to the BalanceSnapshot entity.
func (*EntitlementMutation) RemovedEdges ¶
func (m *EntitlementMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*EntitlementMutation) RemovedGrantIDs ¶
func (m *EntitlementMutation) RemovedGrantIDs() (ids []string)
RemovedGrant returns the removed IDs of the "grant" edge to the Grant entity.
func (*EntitlementMutation) RemovedIDs ¶
func (m *EntitlementMutation) 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 (*EntitlementMutation) RemovedUsageResetIDs ¶
func (m *EntitlementMutation) RemovedUsageResetIDs() (ids []string)
RemovedUsageReset returns the removed IDs of the "usage_reset" edge to the UsageReset entity.
func (*EntitlementMutation) ResetBalanceSnapshot ¶
func (m *EntitlementMutation) ResetBalanceSnapshot()
ResetBalanceSnapshot resets all changes to the "balance_snapshot" edge.
func (*EntitlementMutation) ResetConfig ¶
func (m *EntitlementMutation) ResetConfig()
ResetConfig resets all changes to the "config" field.
func (*EntitlementMutation) ResetCreatedAt ¶
func (m *EntitlementMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*EntitlementMutation) ResetCurrentUsagePeriodEnd ¶
func (m *EntitlementMutation) ResetCurrentUsagePeriodEnd()
ResetCurrentUsagePeriodEnd resets all changes to the "current_usage_period_end" field.
func (*EntitlementMutation) ResetCurrentUsagePeriodStart ¶
func (m *EntitlementMutation) ResetCurrentUsagePeriodStart()
ResetCurrentUsagePeriodStart resets all changes to the "current_usage_period_start" field.
func (*EntitlementMutation) ResetDeletedAt ¶
func (m *EntitlementMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*EntitlementMutation) ResetEdge ¶
func (m *EntitlementMutation) 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 (*EntitlementMutation) ResetEntitlementType ¶
func (m *EntitlementMutation) ResetEntitlementType()
ResetEntitlementType resets all changes to the "entitlement_type" field.
func (*EntitlementMutation) ResetFeature ¶
func (m *EntitlementMutation) ResetFeature()
ResetFeature resets all changes to the "feature" edge.
func (*EntitlementMutation) ResetFeatureID ¶
func (m *EntitlementMutation) ResetFeatureID()
ResetFeatureID resets all changes to the "feature_id" field.
func (*EntitlementMutation) ResetFeatureKey ¶
func (m *EntitlementMutation) ResetFeatureKey()
ResetFeatureKey resets all changes to the "feature_key" field.
func (*EntitlementMutation) ResetField ¶
func (m *EntitlementMutation) 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 (*EntitlementMutation) ResetGrant ¶
func (m *EntitlementMutation) ResetGrant()
ResetGrant resets all changes to the "grant" edge.
func (*EntitlementMutation) ResetIsSoftLimit ¶
func (m *EntitlementMutation) ResetIsSoftLimit()
ResetIsSoftLimit resets all changes to the "is_soft_limit" field.
func (*EntitlementMutation) ResetIssueAfterReset ¶
func (m *EntitlementMutation) ResetIssueAfterReset()
ResetIssueAfterReset resets all changes to the "issue_after_reset" field.
func (*EntitlementMutation) ResetIssueAfterResetPriority ¶
func (m *EntitlementMutation) ResetIssueAfterResetPriority()
ResetIssueAfterResetPriority resets all changes to the "issue_after_reset_priority" field.
func (*EntitlementMutation) ResetMeasureUsageFrom ¶
func (m *EntitlementMutation) ResetMeasureUsageFrom()
ResetMeasureUsageFrom resets all changes to the "measure_usage_from" field.
func (*EntitlementMutation) ResetMetadata ¶
func (m *EntitlementMutation) ResetMetadata()
ResetMetadata resets all changes to the "metadata" field.
func (*EntitlementMutation) ResetNamespace ¶
func (m *EntitlementMutation) ResetNamespace()
ResetNamespace resets all changes to the "namespace" field.
func (*EntitlementMutation) ResetPreserveOverageAtReset ¶
func (m *EntitlementMutation) ResetPreserveOverageAtReset()
ResetPreserveOverageAtReset resets all changes to the "preserve_overage_at_reset" field.
func (*EntitlementMutation) ResetSubjectKey ¶
func (m *EntitlementMutation) ResetSubjectKey()
ResetSubjectKey resets all changes to the "subject_key" field.
func (*EntitlementMutation) ResetUpdatedAt ¶
func (m *EntitlementMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*EntitlementMutation) ResetUsagePeriodAnchor ¶
func (m *EntitlementMutation) ResetUsagePeriodAnchor()
ResetUsagePeriodAnchor resets all changes to the "usage_period_anchor" field.
func (*EntitlementMutation) ResetUsagePeriodInterval ¶
func (m *EntitlementMutation) ResetUsagePeriodInterval()
ResetUsagePeriodInterval resets all changes to the "usage_period_interval" field.
func (*EntitlementMutation) ResetUsageReset ¶
func (m *EntitlementMutation) ResetUsageReset()
ResetUsageReset resets all changes to the "usage_reset" edge.
func (*EntitlementMutation) SetConfig ¶
func (m *EntitlementMutation) SetConfig(u []uint8)
SetConfig sets the "config" field.
func (*EntitlementMutation) SetCreatedAt ¶
func (m *EntitlementMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*EntitlementMutation) SetCurrentUsagePeriodEnd ¶
func (m *EntitlementMutation) SetCurrentUsagePeriodEnd(t time.Time)
SetCurrentUsagePeriodEnd sets the "current_usage_period_end" field.
func (*EntitlementMutation) SetCurrentUsagePeriodStart ¶
func (m *EntitlementMutation) SetCurrentUsagePeriodStart(t time.Time)
SetCurrentUsagePeriodStart sets the "current_usage_period_start" field.
func (*EntitlementMutation) SetDeletedAt ¶
func (m *EntitlementMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*EntitlementMutation) SetEntitlementType ¶
func (m *EntitlementMutation) SetEntitlementType(et entitlement.EntitlementType)
SetEntitlementType sets the "entitlement_type" field.
func (*EntitlementMutation) SetFeatureID ¶
func (m *EntitlementMutation) SetFeatureID(s string)
SetFeatureID sets the "feature_id" field.
func (*EntitlementMutation) SetFeatureKey ¶
func (m *EntitlementMutation) SetFeatureKey(s string)
SetFeatureKey sets the "feature_key" field.
func (*EntitlementMutation) SetField ¶
func (m *EntitlementMutation) 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 (*EntitlementMutation) SetID ¶
func (m *EntitlementMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Entitlement entities.
func (*EntitlementMutation) SetIsSoftLimit ¶
func (m *EntitlementMutation) SetIsSoftLimit(b bool)
SetIsSoftLimit sets the "is_soft_limit" field.
func (*EntitlementMutation) SetIssueAfterReset ¶
func (m *EntitlementMutation) SetIssueAfterReset(f float64)
SetIssueAfterReset sets the "issue_after_reset" field.
func (*EntitlementMutation) SetIssueAfterResetPriority ¶
func (m *EntitlementMutation) SetIssueAfterResetPriority(u uint8)
SetIssueAfterResetPriority sets the "issue_after_reset_priority" field.
func (*EntitlementMutation) SetMeasureUsageFrom ¶
func (m *EntitlementMutation) SetMeasureUsageFrom(t time.Time)
SetMeasureUsageFrom sets the "measure_usage_from" field.
func (*EntitlementMutation) SetMetadata ¶
func (m *EntitlementMutation) SetMetadata(value map[string]string)
SetMetadata sets the "metadata" field.
func (*EntitlementMutation) SetNamespace ¶
func (m *EntitlementMutation) SetNamespace(s string)
SetNamespace sets the "namespace" field.
func (*EntitlementMutation) SetOp ¶
func (m *EntitlementMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*EntitlementMutation) SetPreserveOverageAtReset ¶
func (m *EntitlementMutation) SetPreserveOverageAtReset(b bool)
SetPreserveOverageAtReset sets the "preserve_overage_at_reset" field.
func (*EntitlementMutation) SetSubjectKey ¶
func (m *EntitlementMutation) SetSubjectKey(s string)
SetSubjectKey sets the "subject_key" field.
func (*EntitlementMutation) SetUpdatedAt ¶
func (m *EntitlementMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*EntitlementMutation) SetUsagePeriodAnchor ¶
func (m *EntitlementMutation) SetUsagePeriodAnchor(t time.Time)
SetUsagePeriodAnchor sets the "usage_period_anchor" field.
func (*EntitlementMutation) SetUsagePeriodInterval ¶
func (m *EntitlementMutation) SetUsagePeriodInterval(epi entitlement.UsagePeriodInterval)
SetUsagePeriodInterval sets the "usage_period_interval" field.
func (*EntitlementMutation) SubjectKey ¶
func (m *EntitlementMutation) SubjectKey() (r string, exists bool)
SubjectKey returns the value of the "subject_key" field in the mutation.
func (EntitlementMutation) Tx ¶
func (m EntitlementMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*EntitlementMutation) Type ¶
func (m *EntitlementMutation) Type() string
Type returns the node type of this mutation (Entitlement).
func (*EntitlementMutation) UpdatedAt ¶
func (m *EntitlementMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*EntitlementMutation) UsagePeriodAnchor ¶
func (m *EntitlementMutation) UsagePeriodAnchor() (r time.Time, exists bool)
UsagePeriodAnchor returns the value of the "usage_period_anchor" field in the mutation.
func (*EntitlementMutation) UsagePeriodAnchorCleared ¶
func (m *EntitlementMutation) UsagePeriodAnchorCleared() bool
UsagePeriodAnchorCleared returns if the "usage_period_anchor" field was cleared in this mutation.
func (*EntitlementMutation) UsagePeriodInterval ¶
func (m *EntitlementMutation) UsagePeriodInterval() (r entitlement.UsagePeriodInterval, exists bool)
UsagePeriodInterval returns the value of the "usage_period_interval" field in the mutation.
func (*EntitlementMutation) UsagePeriodIntervalCleared ¶
func (m *EntitlementMutation) UsagePeriodIntervalCleared() bool
UsagePeriodIntervalCleared returns if the "usage_period_interval" field was cleared in this mutation.
func (*EntitlementMutation) UsageResetCleared ¶
func (m *EntitlementMutation) UsageResetCleared() bool
UsageResetCleared reports if the "usage_reset" edge to the UsageReset entity was cleared.
func (*EntitlementMutation) UsageResetIDs ¶
func (m *EntitlementMutation) UsageResetIDs() (ids []string)
UsageResetIDs returns the "usage_reset" edge IDs in the mutation.
func (*EntitlementMutation) Where ¶
func (m *EntitlementMutation) Where(ps ...predicate.Entitlement)
Where appends a list predicates to the EntitlementMutation builder.
func (*EntitlementMutation) WhereP ¶
func (m *EntitlementMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the EntitlementMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type EntitlementQuery ¶
type EntitlementQuery struct {
// contains filtered or unexported fields
}
EntitlementQuery is the builder for querying Entitlement entities.
func (*EntitlementQuery) Aggregate ¶
func (eq *EntitlementQuery) Aggregate(fns ...AggregateFunc) *EntitlementSelect
Aggregate returns a EntitlementSelect configured with the given aggregations.
func (*EntitlementQuery) All ¶
func (eq *EntitlementQuery) All(ctx context.Context) ([]*Entitlement, error)
All executes the query and returns a list of Entitlements.
func (*EntitlementQuery) AllX ¶
func (eq *EntitlementQuery) AllX(ctx context.Context) []*Entitlement
AllX is like All, but panics if an error occurs.
func (*EntitlementQuery) Clone ¶
func (eq *EntitlementQuery) Clone() *EntitlementQuery
Clone returns a duplicate of the EntitlementQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*EntitlementQuery) Count ¶
func (eq *EntitlementQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*EntitlementQuery) CountX ¶
func (eq *EntitlementQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*EntitlementQuery) ExecContext ¶
func (c *EntitlementQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*EntitlementQuery) Exist ¶
func (eq *EntitlementQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*EntitlementQuery) ExistX ¶
func (eq *EntitlementQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*EntitlementQuery) First ¶
func (eq *EntitlementQuery) First(ctx context.Context) (*Entitlement, error)
First returns the first Entitlement entity from the query. Returns a *NotFoundError when no Entitlement was found.
func (*EntitlementQuery) FirstID ¶
func (eq *EntitlementQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first Entitlement ID from the query. Returns a *NotFoundError when no Entitlement ID was found.
func (*EntitlementQuery) FirstIDX ¶
func (eq *EntitlementQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*EntitlementQuery) FirstX ¶
func (eq *EntitlementQuery) FirstX(ctx context.Context) *Entitlement
FirstX is like First, but panics if an error occurs.
func (*EntitlementQuery) ForShare ¶
func (eq *EntitlementQuery) ForShare(opts ...sql.LockOption) *EntitlementQuery
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 (*EntitlementQuery) ForUpdate ¶
func (eq *EntitlementQuery) ForUpdate(opts ...sql.LockOption) *EntitlementQuery
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 (*EntitlementQuery) GroupBy ¶
func (eq *EntitlementQuery) GroupBy(field string, fields ...string) *EntitlementGroupBy
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 {
Namespace string `json:"namespace,omitempty"`
Count int `json:"count,omitempty"`
}
client.Entitlement.Query().
GroupBy(entitlement.FieldNamespace).
Aggregate(db.Count()).
Scan(ctx, &v)
func (*EntitlementQuery) IDs ¶
func (eq *EntitlementQuery) IDs(ctx context.Context) (ids []string, err error)
IDs executes the query and returns a list of Entitlement IDs.
func (*EntitlementQuery) IDsX ¶
func (eq *EntitlementQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*EntitlementQuery) Limit ¶
func (eq *EntitlementQuery) Limit(limit int) *EntitlementQuery
Limit the number of records to be returned by this query.
func (*EntitlementQuery) Offset ¶
func (eq *EntitlementQuery) Offset(offset int) *EntitlementQuery
Offset to start from.
func (*EntitlementQuery) Only ¶
func (eq *EntitlementQuery) Only(ctx context.Context) (*Entitlement, error)
Only returns a single Entitlement entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Entitlement entity is found. Returns a *NotFoundError when no Entitlement entities are found.
func (*EntitlementQuery) OnlyID ¶
func (eq *EntitlementQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only Entitlement ID in the query. Returns a *NotSingularError when more than one Entitlement ID is found. Returns a *NotFoundError when no entities are found.
func (*EntitlementQuery) OnlyIDX ¶
func (eq *EntitlementQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*EntitlementQuery) OnlyX ¶
func (eq *EntitlementQuery) OnlyX(ctx context.Context) *Entitlement
OnlyX is like Only, but panics if an error occurs.
func (*EntitlementQuery) Order ¶
func (eq *EntitlementQuery) Order(o ...entitlement.OrderOption) *EntitlementQuery
Order specifies how the records should be ordered.
func (*EntitlementQuery) Paginate ¶
func (e *EntitlementQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*Entitlement], error)
Paginate runs the query and returns a paginated response. If page is its 0 value then it will return all the items and populate the response page accordingly.
func (*EntitlementQuery) QueryBalanceSnapshot ¶
func (eq *EntitlementQuery) QueryBalanceSnapshot() *BalanceSnapshotQuery
QueryBalanceSnapshot chains the current query on the "balance_snapshot" edge.
func (*EntitlementQuery) QueryContext ¶
func (c *EntitlementQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*EntitlementQuery) QueryFeature ¶
func (eq *EntitlementQuery) QueryFeature() *FeatureQuery
QueryFeature chains the current query on the "feature" edge.
func (*EntitlementQuery) QueryGrant ¶
func (eq *EntitlementQuery) QueryGrant() *GrantQuery
QueryGrant chains the current query on the "grant" edge.
func (*EntitlementQuery) QueryUsageReset ¶
func (eq *EntitlementQuery) QueryUsageReset() *UsageResetQuery
QueryUsageReset chains the current query on the "usage_reset" edge.
func (*EntitlementQuery) Select ¶
func (eq *EntitlementQuery) Select(fields ...string) *EntitlementSelect
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 {
Namespace string `json:"namespace,omitempty"`
}
client.Entitlement.Query().
Select(entitlement.FieldNamespace).
Scan(ctx, &v)
func (*EntitlementQuery) Unique ¶
func (eq *EntitlementQuery) Unique(unique bool) *EntitlementQuery
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 (*EntitlementQuery) Where ¶
func (eq *EntitlementQuery) Where(ps ...predicate.Entitlement) *EntitlementQuery
Where adds a new predicate for the EntitlementQuery builder.
func (*EntitlementQuery) WithBalanceSnapshot ¶
func (eq *EntitlementQuery) WithBalanceSnapshot(opts ...func(*BalanceSnapshotQuery)) *EntitlementQuery
WithBalanceSnapshot tells the query-builder to eager-load the nodes that are connected to the "balance_snapshot" edge. The optional arguments are used to configure the query builder of the edge.
func (*EntitlementQuery) WithFeature ¶
func (eq *EntitlementQuery) WithFeature(opts ...func(*FeatureQuery)) *EntitlementQuery
WithFeature tells the query-builder to eager-load the nodes that are connected to the "feature" edge. The optional arguments are used to configure the query builder of the edge.
func (*EntitlementQuery) WithGrant ¶
func (eq *EntitlementQuery) WithGrant(opts ...func(*GrantQuery)) *EntitlementQuery
WithGrant tells the query-builder to eager-load the nodes that are connected to the "grant" edge. The optional arguments are used to configure the query builder of the edge.
func (*EntitlementQuery) WithUsageReset ¶
func (eq *EntitlementQuery) WithUsageReset(opts ...func(*UsageResetQuery)) *EntitlementQuery
WithUsageReset tells the query-builder to eager-load the nodes that are connected to the "usage_reset" edge. The optional arguments are used to configure the query builder of the edge.
type EntitlementSelect ¶
type EntitlementSelect struct {
*EntitlementQuery
// contains filtered or unexported fields
}
EntitlementSelect is the builder for selecting fields of Entitlement entities.
func (*EntitlementSelect) Aggregate ¶
func (es *EntitlementSelect) Aggregate(fns ...AggregateFunc) *EntitlementSelect
Aggregate adds the given aggregation functions to the selector query.
func (*EntitlementSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*EntitlementSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (EntitlementSelect) ExecContext ¶
func (c EntitlementSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*EntitlementSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*EntitlementSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*EntitlementSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*EntitlementSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (EntitlementSelect) QueryContext ¶
func (c EntitlementSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*EntitlementSelect) Scan ¶
func (es *EntitlementSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*EntitlementSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type EntitlementUpdate ¶
type EntitlementUpdate struct {
// contains filtered or unexported fields
}
EntitlementUpdate is the builder for updating Entitlement entities.
func (*EntitlementUpdate) AddBalanceSnapshot ¶
func (eu *EntitlementUpdate) AddBalanceSnapshot(b ...*BalanceSnapshot) *EntitlementUpdate
AddBalanceSnapshot adds the "balance_snapshot" edges to the BalanceSnapshot entity.
func (*EntitlementUpdate) AddBalanceSnapshotIDs ¶
func (eu *EntitlementUpdate) AddBalanceSnapshotIDs(ids ...int) *EntitlementUpdate
AddBalanceSnapshotIDs adds the "balance_snapshot" edge to the BalanceSnapshot entity by IDs.
func (*EntitlementUpdate) AddGrant ¶
func (eu *EntitlementUpdate) AddGrant(g ...*Grant) *EntitlementUpdate
AddGrant adds the "grant" edges to the Grant entity.
func (*EntitlementUpdate) AddGrantIDs ¶
func (eu *EntitlementUpdate) AddGrantIDs(ids ...string) *EntitlementUpdate
AddGrantIDs adds the "grant" edge to the Grant entity by IDs.
func (*EntitlementUpdate) AddUsageReset ¶
func (eu *EntitlementUpdate) AddUsageReset(u ...*UsageReset) *EntitlementUpdate
AddUsageReset adds the "usage_reset" edges to the UsageReset entity.
func (*EntitlementUpdate) AddUsageResetIDs ¶
func (eu *EntitlementUpdate) AddUsageResetIDs(ids ...string) *EntitlementUpdate
AddUsageResetIDs adds the "usage_reset" edge to the UsageReset entity by IDs.
func (*EntitlementUpdate) AppendConfig ¶
func (eu *EntitlementUpdate) AppendConfig(u []uint8) *EntitlementUpdate
AppendConfig appends u to the "config" field.
func (*EntitlementUpdate) ClearBalanceSnapshot ¶
func (eu *EntitlementUpdate) ClearBalanceSnapshot() *EntitlementUpdate
ClearBalanceSnapshot clears all "balance_snapshot" edges to the BalanceSnapshot entity.
func (*EntitlementUpdate) ClearConfig ¶
func (eu *EntitlementUpdate) ClearConfig() *EntitlementUpdate
ClearConfig clears the value of the "config" field.
func (*EntitlementUpdate) ClearCurrentUsagePeriodEnd ¶
func (eu *EntitlementUpdate) ClearCurrentUsagePeriodEnd() *EntitlementUpdate
ClearCurrentUsagePeriodEnd clears the value of the "current_usage_period_end" field.
func (*EntitlementUpdate) ClearCurrentUsagePeriodStart ¶
func (eu *EntitlementUpdate) ClearCurrentUsagePeriodStart() *EntitlementUpdate
ClearCurrentUsagePeriodStart clears the value of the "current_usage_period_start" field.
func (*EntitlementUpdate) ClearDeletedAt ¶
func (eu *EntitlementUpdate) ClearDeletedAt() *EntitlementUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*EntitlementUpdate) ClearGrant ¶
func (eu *EntitlementUpdate) ClearGrant() *EntitlementUpdate
ClearGrant clears all "grant" edges to the Grant entity.
func (*EntitlementUpdate) ClearMetadata ¶
func (eu *EntitlementUpdate) ClearMetadata() *EntitlementUpdate
ClearMetadata clears the value of the "metadata" field.
func (*EntitlementUpdate) ClearUsagePeriodAnchor ¶
func (eu *EntitlementUpdate) ClearUsagePeriodAnchor() *EntitlementUpdate
ClearUsagePeriodAnchor clears the value of the "usage_period_anchor" field.
func (*EntitlementUpdate) ClearUsageReset ¶
func (eu *EntitlementUpdate) ClearUsageReset() *EntitlementUpdate
ClearUsageReset clears all "usage_reset" edges to the UsageReset entity.
func (*EntitlementUpdate) Exec ¶
func (eu *EntitlementUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*EntitlementUpdate) ExecContext ¶
func (c *EntitlementUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*EntitlementUpdate) ExecX ¶
func (eu *EntitlementUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*EntitlementUpdate) Mutation ¶
func (eu *EntitlementUpdate) Mutation() *EntitlementMutation
Mutation returns the EntitlementMutation object of the builder.
func (*EntitlementUpdate) QueryContext ¶
func (c *EntitlementUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*EntitlementUpdate) RemoveBalanceSnapshot ¶
func (eu *EntitlementUpdate) RemoveBalanceSnapshot(b ...*BalanceSnapshot) *EntitlementUpdate
RemoveBalanceSnapshot removes "balance_snapshot" edges to BalanceSnapshot entities.
func (*EntitlementUpdate) RemoveBalanceSnapshotIDs ¶
func (eu *EntitlementUpdate) RemoveBalanceSnapshotIDs(ids ...int) *EntitlementUpdate
RemoveBalanceSnapshotIDs removes the "balance_snapshot" edge to BalanceSnapshot entities by IDs.
func (*EntitlementUpdate) RemoveGrant ¶
func (eu *EntitlementUpdate) RemoveGrant(g ...*Grant) *EntitlementUpdate
RemoveGrant removes "grant" edges to Grant entities.
func (*EntitlementUpdate) RemoveGrantIDs ¶
func (eu *EntitlementUpdate) RemoveGrantIDs(ids ...string) *EntitlementUpdate
RemoveGrantIDs removes the "grant" edge to Grant entities by IDs.
func (*EntitlementUpdate) RemoveUsageReset ¶
func (eu *EntitlementUpdate) RemoveUsageReset(u ...*UsageReset) *EntitlementUpdate
RemoveUsageReset removes "usage_reset" edges to UsageReset entities.
func (*EntitlementUpdate) RemoveUsageResetIDs ¶
func (eu *EntitlementUpdate) RemoveUsageResetIDs(ids ...string) *EntitlementUpdate
RemoveUsageResetIDs removes the "usage_reset" edge to UsageReset entities by IDs.
func (*EntitlementUpdate) Save ¶
func (eu *EntitlementUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*EntitlementUpdate) SaveX ¶
func (eu *EntitlementUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*EntitlementUpdate) SetConfig ¶
func (eu *EntitlementUpdate) SetConfig(u []uint8) *EntitlementUpdate
SetConfig sets the "config" field.
func (*EntitlementUpdate) SetCurrentUsagePeriodEnd ¶
func (eu *EntitlementUpdate) SetCurrentUsagePeriodEnd(t time.Time) *EntitlementUpdate
SetCurrentUsagePeriodEnd sets the "current_usage_period_end" field.
func (*EntitlementUpdate) SetCurrentUsagePeriodStart ¶
func (eu *EntitlementUpdate) SetCurrentUsagePeriodStart(t time.Time) *EntitlementUpdate
SetCurrentUsagePeriodStart sets the "current_usage_period_start" field.
func (*EntitlementUpdate) SetDeletedAt ¶
func (eu *EntitlementUpdate) SetDeletedAt(t time.Time) *EntitlementUpdate
SetDeletedAt sets the "deleted_at" field.
func (*EntitlementUpdate) SetMetadata ¶
func (eu *EntitlementUpdate) SetMetadata(m map[string]string) *EntitlementUpdate
SetMetadata sets the "metadata" field.
func (*EntitlementUpdate) SetNillableCurrentUsagePeriodEnd ¶
func (eu *EntitlementUpdate) SetNillableCurrentUsagePeriodEnd(t *time.Time) *EntitlementUpdate
SetNillableCurrentUsagePeriodEnd sets the "current_usage_period_end" field if the given value is not nil.
func (*EntitlementUpdate) SetNillableCurrentUsagePeriodStart ¶
func (eu *EntitlementUpdate) SetNillableCurrentUsagePeriodStart(t *time.Time) *EntitlementUpdate
SetNillableCurrentUsagePeriodStart sets the "current_usage_period_start" field if the given value is not nil.
func (*EntitlementUpdate) SetNillableDeletedAt ¶
func (eu *EntitlementUpdate) SetNillableDeletedAt(t *time.Time) *EntitlementUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*EntitlementUpdate) SetNillableUsagePeriodAnchor ¶
func (eu *EntitlementUpdate) SetNillableUsagePeriodAnchor(t *time.Time) *EntitlementUpdate
SetNillableUsagePeriodAnchor sets the "usage_period_anchor" field if the given value is not nil.
func (*EntitlementUpdate) SetOrClearConfig ¶
func (u *EntitlementUpdate) SetOrClearConfig(value *[]uint8) *EntitlementUpdate
func (*EntitlementUpdate) SetOrClearCurrentUsagePeriodEnd ¶
func (u *EntitlementUpdate) SetOrClearCurrentUsagePeriodEnd(value *time.Time) *EntitlementUpdate
func (*EntitlementUpdate) SetOrClearCurrentUsagePeriodStart ¶
func (u *EntitlementUpdate) SetOrClearCurrentUsagePeriodStart(value *time.Time) *EntitlementUpdate
func (*EntitlementUpdate) SetOrClearDeletedAt ¶
func (u *EntitlementUpdate) SetOrClearDeletedAt(value *time.Time) *EntitlementUpdate
func (*EntitlementUpdate) SetOrClearMetadata ¶
func (u *EntitlementUpdate) SetOrClearMetadata(value *map[string]string) *EntitlementUpdate
func (*EntitlementUpdate) SetOrClearUsagePeriodAnchor ¶
func (u *EntitlementUpdate) SetOrClearUsagePeriodAnchor(value *time.Time) *EntitlementUpdate
func (*EntitlementUpdate) SetUpdatedAt ¶
func (eu *EntitlementUpdate) SetUpdatedAt(t time.Time) *EntitlementUpdate
SetUpdatedAt sets the "updated_at" field.
func (*EntitlementUpdate) SetUsagePeriodAnchor ¶
func (eu *EntitlementUpdate) SetUsagePeriodAnchor(t time.Time) *EntitlementUpdate
SetUsagePeriodAnchor sets the "usage_period_anchor" field.
func (*EntitlementUpdate) Where ¶
func (eu *EntitlementUpdate) Where(ps ...predicate.Entitlement) *EntitlementUpdate
Where appends a list predicates to the EntitlementUpdate builder.
type EntitlementUpdateOne ¶
type EntitlementUpdateOne struct {
// contains filtered or unexported fields
}
EntitlementUpdateOne is the builder for updating a single Entitlement entity.
func (*EntitlementUpdateOne) AddBalanceSnapshot ¶
func (euo *EntitlementUpdateOne) AddBalanceSnapshot(b ...*BalanceSnapshot) *EntitlementUpdateOne
AddBalanceSnapshot adds the "balance_snapshot" edges to the BalanceSnapshot entity.
func (*EntitlementUpdateOne) AddBalanceSnapshotIDs ¶
func (euo *EntitlementUpdateOne) AddBalanceSnapshotIDs(ids ...int) *EntitlementUpdateOne
AddBalanceSnapshotIDs adds the "balance_snapshot" edge to the BalanceSnapshot entity by IDs.
func (*EntitlementUpdateOne) AddGrant ¶
func (euo *EntitlementUpdateOne) AddGrant(g ...*Grant) *EntitlementUpdateOne
AddGrant adds the "grant" edges to the Grant entity.
func (*EntitlementUpdateOne) AddGrantIDs ¶
func (euo *EntitlementUpdateOne) AddGrantIDs(ids ...string) *EntitlementUpdateOne
AddGrantIDs adds the "grant" edge to the Grant entity by IDs.
func (*EntitlementUpdateOne) AddUsageReset ¶
func (euo *EntitlementUpdateOne) AddUsageReset(u ...*UsageReset) *EntitlementUpdateOne
AddUsageReset adds the "usage_reset" edges to the UsageReset entity.
func (*EntitlementUpdateOne) AddUsageResetIDs ¶
func (euo *EntitlementUpdateOne) AddUsageResetIDs(ids ...string) *EntitlementUpdateOne
AddUsageResetIDs adds the "usage_reset" edge to the UsageReset entity by IDs.
func (*EntitlementUpdateOne) AppendConfig ¶
func (euo *EntitlementUpdateOne) AppendConfig(u []uint8) *EntitlementUpdateOne
AppendConfig appends u to the "config" field.
func (*EntitlementUpdateOne) ClearBalanceSnapshot ¶
func (euo *EntitlementUpdateOne) ClearBalanceSnapshot() *EntitlementUpdateOne
ClearBalanceSnapshot clears all "balance_snapshot" edges to the BalanceSnapshot entity.
func (*EntitlementUpdateOne) ClearConfig ¶
func (euo *EntitlementUpdateOne) ClearConfig() *EntitlementUpdateOne
ClearConfig clears the value of the "config" field.
func (*EntitlementUpdateOne) ClearCurrentUsagePeriodEnd ¶
func (euo *EntitlementUpdateOne) ClearCurrentUsagePeriodEnd() *EntitlementUpdateOne
ClearCurrentUsagePeriodEnd clears the value of the "current_usage_period_end" field.
func (*EntitlementUpdateOne) ClearCurrentUsagePeriodStart ¶
func (euo *EntitlementUpdateOne) ClearCurrentUsagePeriodStart() *EntitlementUpdateOne
ClearCurrentUsagePeriodStart clears the value of the "current_usage_period_start" field.
func (*EntitlementUpdateOne) ClearDeletedAt ¶
func (euo *EntitlementUpdateOne) ClearDeletedAt() *EntitlementUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*EntitlementUpdateOne) ClearGrant ¶
func (euo *EntitlementUpdateOne) ClearGrant() *EntitlementUpdateOne
ClearGrant clears all "grant" edges to the Grant entity.
func (*EntitlementUpdateOne) ClearMetadata ¶
func (euo *EntitlementUpdateOne) ClearMetadata() *EntitlementUpdateOne
ClearMetadata clears the value of the "metadata" field.
func (*EntitlementUpdateOne) ClearUsagePeriodAnchor ¶
func (euo *EntitlementUpdateOne) ClearUsagePeriodAnchor() *EntitlementUpdateOne
ClearUsagePeriodAnchor clears the value of the "usage_period_anchor" field.
func (*EntitlementUpdateOne) ClearUsageReset ¶
func (euo *EntitlementUpdateOne) ClearUsageReset() *EntitlementUpdateOne
ClearUsageReset clears all "usage_reset" edges to the UsageReset entity.
func (*EntitlementUpdateOne) Exec ¶
func (euo *EntitlementUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*EntitlementUpdateOne) ExecContext ¶
func (c *EntitlementUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*EntitlementUpdateOne) ExecX ¶
func (euo *EntitlementUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*EntitlementUpdateOne) Mutation ¶
func (euo *EntitlementUpdateOne) Mutation() *EntitlementMutation
Mutation returns the EntitlementMutation object of the builder.
func (*EntitlementUpdateOne) QueryContext ¶
func (c *EntitlementUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*EntitlementUpdateOne) RemoveBalanceSnapshot ¶
func (euo *EntitlementUpdateOne) RemoveBalanceSnapshot(b ...*BalanceSnapshot) *EntitlementUpdateOne
RemoveBalanceSnapshot removes "balance_snapshot" edges to BalanceSnapshot entities.
func (*EntitlementUpdateOne) RemoveBalanceSnapshotIDs ¶
func (euo *EntitlementUpdateOne) RemoveBalanceSnapshotIDs(ids ...int) *EntitlementUpdateOne
RemoveBalanceSnapshotIDs removes the "balance_snapshot" edge to BalanceSnapshot entities by IDs.
func (*EntitlementUpdateOne) RemoveGrant ¶
func (euo *EntitlementUpdateOne) RemoveGrant(g ...*Grant) *EntitlementUpdateOne
RemoveGrant removes "grant" edges to Grant entities.
func (*EntitlementUpdateOne) RemoveGrantIDs ¶
func (euo *EntitlementUpdateOne) RemoveGrantIDs(ids ...string) *EntitlementUpdateOne
RemoveGrantIDs removes the "grant" edge to Grant entities by IDs.
func (*EntitlementUpdateOne) RemoveUsageReset ¶
func (euo *EntitlementUpdateOne) RemoveUsageReset(u ...*UsageReset) *EntitlementUpdateOne
RemoveUsageReset removes "usage_reset" edges to UsageReset entities.
func (*EntitlementUpdateOne) RemoveUsageResetIDs ¶
func (euo *EntitlementUpdateOne) RemoveUsageResetIDs(ids ...string) *EntitlementUpdateOne
RemoveUsageResetIDs removes the "usage_reset" edge to UsageReset entities by IDs.
func (*EntitlementUpdateOne) Save ¶
func (euo *EntitlementUpdateOne) Save(ctx context.Context) (*Entitlement, error)
Save executes the query and returns the updated Entitlement entity.
func (*EntitlementUpdateOne) SaveX ¶
func (euo *EntitlementUpdateOne) SaveX(ctx context.Context) *Entitlement
SaveX is like Save, but panics if an error occurs.
func (*EntitlementUpdateOne) Select ¶
func (euo *EntitlementUpdateOne) Select(field string, fields ...string) *EntitlementUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*EntitlementUpdateOne) SetConfig ¶
func (euo *EntitlementUpdateOne) SetConfig(u []uint8) *EntitlementUpdateOne
SetConfig sets the "config" field.
func (*EntitlementUpdateOne) SetCurrentUsagePeriodEnd ¶
func (euo *EntitlementUpdateOne) SetCurrentUsagePeriodEnd(t time.Time) *EntitlementUpdateOne
SetCurrentUsagePeriodEnd sets the "current_usage_period_end" field.
func (*EntitlementUpdateOne) SetCurrentUsagePeriodStart ¶
func (euo *EntitlementUpdateOne) SetCurrentUsagePeriodStart(t time.Time) *EntitlementUpdateOne
SetCurrentUsagePeriodStart sets the "current_usage_period_start" field.
func (*EntitlementUpdateOne) SetDeletedAt ¶
func (euo *EntitlementUpdateOne) SetDeletedAt(t time.Time) *EntitlementUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*EntitlementUpdateOne) SetMetadata ¶
func (euo *EntitlementUpdateOne) SetMetadata(m map[string]string) *EntitlementUpdateOne
SetMetadata sets the "metadata" field.
func (*EntitlementUpdateOne) SetNillableCurrentUsagePeriodEnd ¶
func (euo *EntitlementUpdateOne) SetNillableCurrentUsagePeriodEnd(t *time.Time) *EntitlementUpdateOne
SetNillableCurrentUsagePeriodEnd sets the "current_usage_period_end" field if the given value is not nil.
func (*EntitlementUpdateOne) SetNillableCurrentUsagePeriodStart ¶
func (euo *EntitlementUpdateOne) SetNillableCurrentUsagePeriodStart(t *time.Time) *EntitlementUpdateOne
SetNillableCurrentUsagePeriodStart sets the "current_usage_period_start" field if the given value is not nil.
func (*EntitlementUpdateOne) SetNillableDeletedAt ¶
func (euo *EntitlementUpdateOne) SetNillableDeletedAt(t *time.Time) *EntitlementUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*EntitlementUpdateOne) SetNillableUsagePeriodAnchor ¶
func (euo *EntitlementUpdateOne) SetNillableUsagePeriodAnchor(t *time.Time) *EntitlementUpdateOne
SetNillableUsagePeriodAnchor sets the "usage_period_anchor" field if the given value is not nil.
func (*EntitlementUpdateOne) SetOrClearConfig ¶
func (u *EntitlementUpdateOne) SetOrClearConfig(value *[]uint8) *EntitlementUpdateOne
func (*EntitlementUpdateOne) SetOrClearCurrentUsagePeriodEnd ¶
func (u *EntitlementUpdateOne) SetOrClearCurrentUsagePeriodEnd(value *time.Time) *EntitlementUpdateOne
func (*EntitlementUpdateOne) SetOrClearCurrentUsagePeriodStart ¶
func (u *EntitlementUpdateOne) SetOrClearCurrentUsagePeriodStart(value *time.Time) *EntitlementUpdateOne
func (*EntitlementUpdateOne) SetOrClearDeletedAt ¶
func (u *EntitlementUpdateOne) SetOrClearDeletedAt(value *time.Time) *EntitlementUpdateOne
func (*EntitlementUpdateOne) SetOrClearMetadata ¶
func (u *EntitlementUpdateOne) SetOrClearMetadata(value *map[string]string) *EntitlementUpdateOne
func (*EntitlementUpdateOne) SetOrClearUsagePeriodAnchor ¶
func (u *EntitlementUpdateOne) SetOrClearUsagePeriodAnchor(value *time.Time) *EntitlementUpdateOne
func (*EntitlementUpdateOne) SetUpdatedAt ¶
func (euo *EntitlementUpdateOne) SetUpdatedAt(t time.Time) *EntitlementUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*EntitlementUpdateOne) SetUsagePeriodAnchor ¶
func (euo *EntitlementUpdateOne) SetUsagePeriodAnchor(t time.Time) *EntitlementUpdateOne
SetUsagePeriodAnchor sets the "usage_period_anchor" field.
func (*EntitlementUpdateOne) Where ¶
func (euo *EntitlementUpdateOne) Where(ps ...predicate.Entitlement) *EntitlementUpdateOne
Where appends a list predicates to the EntitlementUpdate builder.
type EntitlementUpsert ¶
EntitlementUpsert is the "OnConflict" setter.
func (*EntitlementUpsert) ClearConfig ¶
func (u *EntitlementUpsert) ClearConfig() *EntitlementUpsert
ClearConfig clears the value of the "config" field.
func (*EntitlementUpsert) ClearCurrentUsagePeriodEnd ¶
func (u *EntitlementUpsert) ClearCurrentUsagePeriodEnd() *EntitlementUpsert
ClearCurrentUsagePeriodEnd clears the value of the "current_usage_period_end" field.
func (*EntitlementUpsert) ClearCurrentUsagePeriodStart ¶
func (u *EntitlementUpsert) ClearCurrentUsagePeriodStart() *EntitlementUpsert
ClearCurrentUsagePeriodStart clears the value of the "current_usage_period_start" field.
func (*EntitlementUpsert) ClearDeletedAt ¶
func (u *EntitlementUpsert) ClearDeletedAt() *EntitlementUpsert
ClearDeletedAt clears the value of the "deleted_at" field.
func (*EntitlementUpsert) ClearMetadata ¶
func (u *EntitlementUpsert) ClearMetadata() *EntitlementUpsert
ClearMetadata clears the value of the "metadata" field.
func (*EntitlementUpsert) ClearUsagePeriodAnchor ¶
func (u *EntitlementUpsert) ClearUsagePeriodAnchor() *EntitlementUpsert
ClearUsagePeriodAnchor clears the value of the "usage_period_anchor" field.
func (*EntitlementUpsert) SetConfig ¶
func (u *EntitlementUpsert) SetConfig(v []uint8) *EntitlementUpsert
SetConfig sets the "config" field.
func (*EntitlementUpsert) SetCurrentUsagePeriodEnd ¶
func (u *EntitlementUpsert) SetCurrentUsagePeriodEnd(v time.Time) *EntitlementUpsert
SetCurrentUsagePeriodEnd sets the "current_usage_period_end" field.
func (*EntitlementUpsert) SetCurrentUsagePeriodStart ¶
func (u *EntitlementUpsert) SetCurrentUsagePeriodStart(v time.Time) *EntitlementUpsert
SetCurrentUsagePeriodStart sets the "current_usage_period_start" field.
func (*EntitlementUpsert) SetDeletedAt ¶
func (u *EntitlementUpsert) SetDeletedAt(v time.Time) *EntitlementUpsert
SetDeletedAt sets the "deleted_at" field.
func (*EntitlementUpsert) SetMetadata ¶
func (u *EntitlementUpsert) SetMetadata(v map[string]string) *EntitlementUpsert
SetMetadata sets the "metadata" field.
func (*EntitlementUpsert) SetUpdatedAt ¶
func (u *EntitlementUpsert) SetUpdatedAt(v time.Time) *EntitlementUpsert
SetUpdatedAt sets the "updated_at" field.
func (*EntitlementUpsert) SetUsagePeriodAnchor ¶
func (u *EntitlementUpsert) SetUsagePeriodAnchor(v time.Time) *EntitlementUpsert
SetUsagePeriodAnchor sets the "usage_period_anchor" field.
func (*EntitlementUpsert) UpdateConfig ¶
func (u *EntitlementUpsert) UpdateConfig() *EntitlementUpsert
UpdateConfig sets the "config" field to the value that was provided on create.
func (*EntitlementUpsert) UpdateCurrentUsagePeriodEnd ¶
func (u *EntitlementUpsert) UpdateCurrentUsagePeriodEnd() *EntitlementUpsert
UpdateCurrentUsagePeriodEnd sets the "current_usage_period_end" field to the value that was provided on create.
func (*EntitlementUpsert) UpdateCurrentUsagePeriodStart ¶
func (u *EntitlementUpsert) UpdateCurrentUsagePeriodStart() *EntitlementUpsert
UpdateCurrentUsagePeriodStart sets the "current_usage_period_start" field to the value that was provided on create.
func (*EntitlementUpsert) UpdateDeletedAt ¶
func (u *EntitlementUpsert) UpdateDeletedAt() *EntitlementUpsert
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*EntitlementUpsert) UpdateMetadata ¶
func (u *EntitlementUpsert) UpdateMetadata() *EntitlementUpsert
UpdateMetadata sets the "metadata" field to the value that was provided on create.
func (*EntitlementUpsert) UpdateUpdatedAt ¶
func (u *EntitlementUpsert) UpdateUpdatedAt() *EntitlementUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*EntitlementUpsert) UpdateUsagePeriodAnchor ¶
func (u *EntitlementUpsert) UpdateUsagePeriodAnchor() *EntitlementUpsert
UpdateUsagePeriodAnchor sets the "usage_period_anchor" field to the value that was provided on create.
type EntitlementUpsertBulk ¶
type EntitlementUpsertBulk struct {
// contains filtered or unexported fields
}
EntitlementUpsertBulk is the builder for "upsert"-ing a bulk of Entitlement nodes.
func (*EntitlementUpsertBulk) ClearConfig ¶
func (u *EntitlementUpsertBulk) ClearConfig() *EntitlementUpsertBulk
ClearConfig clears the value of the "config" field.
func (*EntitlementUpsertBulk) ClearCurrentUsagePeriodEnd ¶
func (u *EntitlementUpsertBulk) ClearCurrentUsagePeriodEnd() *EntitlementUpsertBulk
ClearCurrentUsagePeriodEnd clears the value of the "current_usage_period_end" field.
func (*EntitlementUpsertBulk) ClearCurrentUsagePeriodStart ¶
func (u *EntitlementUpsertBulk) ClearCurrentUsagePeriodStart() *EntitlementUpsertBulk
ClearCurrentUsagePeriodStart clears the value of the "current_usage_period_start" field.
func (*EntitlementUpsertBulk) ClearDeletedAt ¶
func (u *EntitlementUpsertBulk) ClearDeletedAt() *EntitlementUpsertBulk
ClearDeletedAt clears the value of the "deleted_at" field.
func (*EntitlementUpsertBulk) ClearMetadata ¶
func (u *EntitlementUpsertBulk) ClearMetadata() *EntitlementUpsertBulk
ClearMetadata clears the value of the "metadata" field.
func (*EntitlementUpsertBulk) ClearUsagePeriodAnchor ¶
func (u *EntitlementUpsertBulk) ClearUsagePeriodAnchor() *EntitlementUpsertBulk
ClearUsagePeriodAnchor clears the value of the "usage_period_anchor" field.
func (*EntitlementUpsertBulk) DoNothing ¶
func (u *EntitlementUpsertBulk) DoNothing() *EntitlementUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*EntitlementUpsertBulk) Exec ¶
func (u *EntitlementUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*EntitlementUpsertBulk) ExecX ¶
func (u *EntitlementUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*EntitlementUpsertBulk) Ignore ¶
func (u *EntitlementUpsertBulk) Ignore() *EntitlementUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Entitlement.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*EntitlementUpsertBulk) SetConfig ¶
func (u *EntitlementUpsertBulk) SetConfig(v []uint8) *EntitlementUpsertBulk
SetConfig sets the "config" field.
func (*EntitlementUpsertBulk) SetCurrentUsagePeriodEnd ¶
func (u *EntitlementUpsertBulk) SetCurrentUsagePeriodEnd(v time.Time) *EntitlementUpsertBulk
SetCurrentUsagePeriodEnd sets the "current_usage_period_end" field.
func (*EntitlementUpsertBulk) SetCurrentUsagePeriodStart ¶
func (u *EntitlementUpsertBulk) SetCurrentUsagePeriodStart(v time.Time) *EntitlementUpsertBulk
SetCurrentUsagePeriodStart sets the "current_usage_period_start" field.
func (*EntitlementUpsertBulk) SetDeletedAt ¶
func (u *EntitlementUpsertBulk) SetDeletedAt(v time.Time) *EntitlementUpsertBulk
SetDeletedAt sets the "deleted_at" field.
func (*EntitlementUpsertBulk) SetMetadata ¶
func (u *EntitlementUpsertBulk) SetMetadata(v map[string]string) *EntitlementUpsertBulk
SetMetadata sets the "metadata" field.
func (*EntitlementUpsertBulk) SetUpdatedAt ¶
func (u *EntitlementUpsertBulk) SetUpdatedAt(v time.Time) *EntitlementUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*EntitlementUpsertBulk) SetUsagePeriodAnchor ¶
func (u *EntitlementUpsertBulk) SetUsagePeriodAnchor(v time.Time) *EntitlementUpsertBulk
SetUsagePeriodAnchor sets the "usage_period_anchor" field.
func (*EntitlementUpsertBulk) Update ¶
func (u *EntitlementUpsertBulk) Update(set func(*EntitlementUpsert)) *EntitlementUpsertBulk
Update allows overriding fields `UPDATE` values. See the EntitlementCreateBulk.OnConflict documentation for more info.
func (*EntitlementUpsertBulk) UpdateConfig ¶
func (u *EntitlementUpsertBulk) UpdateConfig() *EntitlementUpsertBulk
UpdateConfig sets the "config" field to the value that was provided on create.
func (*EntitlementUpsertBulk) UpdateCurrentUsagePeriodEnd ¶
func (u *EntitlementUpsertBulk) UpdateCurrentUsagePeriodEnd() *EntitlementUpsertBulk
UpdateCurrentUsagePeriodEnd sets the "current_usage_period_end" field to the value that was provided on create.
func (*EntitlementUpsertBulk) UpdateCurrentUsagePeriodStart ¶
func (u *EntitlementUpsertBulk) UpdateCurrentUsagePeriodStart() *EntitlementUpsertBulk
UpdateCurrentUsagePeriodStart sets the "current_usage_period_start" field to the value that was provided on create.
func (*EntitlementUpsertBulk) UpdateDeletedAt ¶
func (u *EntitlementUpsertBulk) UpdateDeletedAt() *EntitlementUpsertBulk
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*EntitlementUpsertBulk) UpdateMetadata ¶
func (u *EntitlementUpsertBulk) UpdateMetadata() *EntitlementUpsertBulk
UpdateMetadata sets the "metadata" field to the value that was provided on create.
func (*EntitlementUpsertBulk) UpdateNewValues ¶
func (u *EntitlementUpsertBulk) UpdateNewValues() *EntitlementUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.Entitlement.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(entitlement.FieldID)
}),
).
Exec(ctx)
func (*EntitlementUpsertBulk) UpdateUpdatedAt ¶
func (u *EntitlementUpsertBulk) UpdateUpdatedAt() *EntitlementUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*EntitlementUpsertBulk) UpdateUsagePeriodAnchor ¶
func (u *EntitlementUpsertBulk) UpdateUsagePeriodAnchor() *EntitlementUpsertBulk
UpdateUsagePeriodAnchor sets the "usage_period_anchor" field to the value that was provided on create.
type EntitlementUpsertOne ¶
type EntitlementUpsertOne struct {
// contains filtered or unexported fields
}
EntitlementUpsertOne is the builder for "upsert"-ing
one Entitlement node.
func (*EntitlementUpsertOne) ClearConfig ¶
func (u *EntitlementUpsertOne) ClearConfig() *EntitlementUpsertOne
ClearConfig clears the value of the "config" field.
func (*EntitlementUpsertOne) ClearCurrentUsagePeriodEnd ¶
func (u *EntitlementUpsertOne) ClearCurrentUsagePeriodEnd() *EntitlementUpsertOne
ClearCurrentUsagePeriodEnd clears the value of the "current_usage_period_end" field.
func (*EntitlementUpsertOne) ClearCurrentUsagePeriodStart ¶
func (u *EntitlementUpsertOne) ClearCurrentUsagePeriodStart() *EntitlementUpsertOne
ClearCurrentUsagePeriodStart clears the value of the "current_usage_period_start" field.
func (*EntitlementUpsertOne) ClearDeletedAt ¶
func (u *EntitlementUpsertOne) ClearDeletedAt() *EntitlementUpsertOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*EntitlementUpsertOne) ClearMetadata ¶
func (u *EntitlementUpsertOne) ClearMetadata() *EntitlementUpsertOne
ClearMetadata clears the value of the "metadata" field.
func (*EntitlementUpsertOne) ClearUsagePeriodAnchor ¶
func (u *EntitlementUpsertOne) ClearUsagePeriodAnchor() *EntitlementUpsertOne
ClearUsagePeriodAnchor clears the value of the "usage_period_anchor" field.
func (*EntitlementUpsertOne) DoNothing ¶
func (u *EntitlementUpsertOne) DoNothing() *EntitlementUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*EntitlementUpsertOne) Exec ¶
func (u *EntitlementUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*EntitlementUpsertOne) ExecX ¶
func (u *EntitlementUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*EntitlementUpsertOne) ID ¶
func (u *EntitlementUpsertOne) ID(ctx context.Context) (id string, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*EntitlementUpsertOne) IDX ¶
func (u *EntitlementUpsertOne) IDX(ctx context.Context) string
IDX is like ID, but panics if an error occurs.
func (*EntitlementUpsertOne) Ignore ¶
func (u *EntitlementUpsertOne) Ignore() *EntitlementUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Entitlement.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*EntitlementUpsertOne) SetConfig ¶
func (u *EntitlementUpsertOne) SetConfig(v []uint8) *EntitlementUpsertOne
SetConfig sets the "config" field.
func (*EntitlementUpsertOne) SetCurrentUsagePeriodEnd ¶
func (u *EntitlementUpsertOne) SetCurrentUsagePeriodEnd(v time.Time) *EntitlementUpsertOne
SetCurrentUsagePeriodEnd sets the "current_usage_period_end" field.
func (*EntitlementUpsertOne) SetCurrentUsagePeriodStart ¶
func (u *EntitlementUpsertOne) SetCurrentUsagePeriodStart(v time.Time) *EntitlementUpsertOne
SetCurrentUsagePeriodStart sets the "current_usage_period_start" field.
func (*EntitlementUpsertOne) SetDeletedAt ¶
func (u *EntitlementUpsertOne) SetDeletedAt(v time.Time) *EntitlementUpsertOne
SetDeletedAt sets the "deleted_at" field.
func (*EntitlementUpsertOne) SetMetadata ¶
func (u *EntitlementUpsertOne) SetMetadata(v map[string]string) *EntitlementUpsertOne
SetMetadata sets the "metadata" field.
func (*EntitlementUpsertOne) SetUpdatedAt ¶
func (u *EntitlementUpsertOne) SetUpdatedAt(v time.Time) *EntitlementUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*EntitlementUpsertOne) SetUsagePeriodAnchor ¶
func (u *EntitlementUpsertOne) SetUsagePeriodAnchor(v time.Time) *EntitlementUpsertOne
SetUsagePeriodAnchor sets the "usage_period_anchor" field.
func (*EntitlementUpsertOne) Update ¶
func (u *EntitlementUpsertOne) Update(set func(*EntitlementUpsert)) *EntitlementUpsertOne
Update allows overriding fields `UPDATE` values. See the EntitlementCreate.OnConflict documentation for more info.
func (*EntitlementUpsertOne) UpdateConfig ¶
func (u *EntitlementUpsertOne) UpdateConfig() *EntitlementUpsertOne
UpdateConfig sets the "config" field to the value that was provided on create.
func (*EntitlementUpsertOne) UpdateCurrentUsagePeriodEnd ¶
func (u *EntitlementUpsertOne) UpdateCurrentUsagePeriodEnd() *EntitlementUpsertOne
UpdateCurrentUsagePeriodEnd sets the "current_usage_period_end" field to the value that was provided on create.
func (*EntitlementUpsertOne) UpdateCurrentUsagePeriodStart ¶
func (u *EntitlementUpsertOne) UpdateCurrentUsagePeriodStart() *EntitlementUpsertOne
UpdateCurrentUsagePeriodStart sets the "current_usage_period_start" field to the value that was provided on create.
func (*EntitlementUpsertOne) UpdateDeletedAt ¶
func (u *EntitlementUpsertOne) UpdateDeletedAt() *EntitlementUpsertOne
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*EntitlementUpsertOne) UpdateMetadata ¶
func (u *EntitlementUpsertOne) UpdateMetadata() *EntitlementUpsertOne
UpdateMetadata sets the "metadata" field to the value that was provided on create.
func (*EntitlementUpsertOne) UpdateNewValues ¶
func (u *EntitlementUpsertOne) UpdateNewValues() *EntitlementUpsertOne
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.Entitlement.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(entitlement.FieldID)
}),
).
Exec(ctx)
func (*EntitlementUpsertOne) UpdateUpdatedAt ¶
func (u *EntitlementUpsertOne) UpdateUpdatedAt() *EntitlementUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*EntitlementUpsertOne) UpdateUsagePeriodAnchor ¶
func (u *EntitlementUpsertOne) UpdateUsagePeriodAnchor() *EntitlementUpsertOne
UpdateUsagePeriodAnchor sets the "usage_period_anchor" field to the value that was provided on create.
type Entitlements ¶
type Entitlements []*Entitlement
Entitlements is a parsable slice of Entitlement.
type ExposedTxDriver ¶
type ExposedTxDriver struct {
Driver *txDriver
}
ignores hooks and intersectors
func (*ExposedTxDriver) Commit ¶
func (d *ExposedTxDriver) Commit() error
func (*ExposedTxDriver) Release ¶
func (d *ExposedTxDriver) Release(name string) error
func (*ExposedTxDriver) Rollback ¶
func (d *ExposedTxDriver) Rollback() error
func (*ExposedTxDriver) RollbackTo ¶
func (d *ExposedTxDriver) RollbackTo(name string) error
func (*ExposedTxDriver) SavePoint ¶
func (d *ExposedTxDriver) SavePoint(name string) error
type Feature ¶
type Feature struct {
// ID of the ent.
ID string `json:"id,omitempty"`
// CreatedAt holds the value of the "created_at" field.
CreatedAt time.Time `json:"created_at,omitempty"`
// UpdatedAt holds the value of the "updated_at" field.
UpdatedAt time.Time `json:"updated_at,omitempty"`
// DeletedAt holds the value of the "deleted_at" field.
DeletedAt *time.Time `json:"deleted_at,omitempty"`
// Metadata holds the value of the "metadata" field.
Metadata map[string]string `json:"metadata,omitempty"`
// Namespace holds the value of the "namespace" field.
Namespace string `json:"namespace,omitempty"`
// Name holds the value of the "name" field.
Name string `json:"name,omitempty"`
// Key holds the value of the "key" field.
Key string `json:"key,omitempty"`
// MeterSlug holds the value of the "meter_slug" field.
MeterSlug *string `json:"meter_slug,omitempty"`
// MeterGroupByFilters holds the value of the "meter_group_by_filters" field.
MeterGroupByFilters map[string]string `json:"meter_group_by_filters,omitempty"`
// ArchivedAt holds the value of the "archived_at" field.
ArchivedAt *time.Time `json:"archived_at,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the FeatureQuery when eager-loading is set.
Edges FeatureEdges `json:"edges"`
// contains filtered or unexported fields
}
Feature is the model entity for the Feature schema.
func (*Feature) ExecContext ¶
func (c *Feature) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*Feature) QueryContext ¶
func (c *Feature) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*Feature) QueryEntitlement ¶
func (f *Feature) QueryEntitlement() *EntitlementQuery
QueryEntitlement queries the "entitlement" edge of the Feature entity.
func (*Feature) Unwrap ¶
Unwrap unwraps the Feature 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 (*Feature) Update ¶
func (f *Feature) Update() *FeatureUpdateOne
Update returns a builder for updating this Feature. Note that you need to call Feature.Unwrap() before calling this method if this Feature was returned from a transaction, and the transaction was committed or rolled back.
type FeatureClient ¶
type FeatureClient struct {
// contains filtered or unexported fields
}
FeatureClient is a client for the Feature schema.
func NewFeatureClient ¶
func NewFeatureClient(c config) *FeatureClient
NewFeatureClient returns a client for the Feature from the given config.
func (*FeatureClient) Create ¶
func (c *FeatureClient) Create() *FeatureCreate
Create returns a builder for creating a Feature entity.
func (*FeatureClient) CreateBulk ¶
func (c *FeatureClient) CreateBulk(builders ...*FeatureCreate) *FeatureCreateBulk
CreateBulk returns a builder for creating a bulk of Feature entities.
func (*FeatureClient) Delete ¶
func (c *FeatureClient) Delete() *FeatureDelete
Delete returns a delete builder for Feature.
func (*FeatureClient) DeleteOne ¶
func (c *FeatureClient) DeleteOne(f *Feature) *FeatureDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*FeatureClient) DeleteOneID ¶
func (c *FeatureClient) DeleteOneID(id string) *FeatureDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*FeatureClient) ExecContext ¶
func (c *FeatureClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*FeatureClient) GetX ¶
func (c *FeatureClient) GetX(ctx context.Context, id string) *Feature
GetX is like Get, but panics if an error occurs.
func (*FeatureClient) Hooks ¶
func (c *FeatureClient) Hooks() []Hook
Hooks returns the client hooks.
func (*FeatureClient) Intercept ¶
func (c *FeatureClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `feature.Intercept(f(g(h())))`.
func (*FeatureClient) Interceptors ¶
func (c *FeatureClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*FeatureClient) MapCreateBulk ¶
func (c *FeatureClient) MapCreateBulk(slice any, setFunc func(*FeatureCreate, int)) *FeatureCreateBulk
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 (*FeatureClient) Query ¶
func (c *FeatureClient) Query() *FeatureQuery
Query returns a query builder for Feature.
func (*FeatureClient) QueryContext ¶
func (c *FeatureClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*FeatureClient) QueryEntitlement ¶
func (c *FeatureClient) QueryEntitlement(f *Feature) *EntitlementQuery
QueryEntitlement queries the entitlement edge of a Feature.
func (*FeatureClient) Update ¶
func (c *FeatureClient) Update() *FeatureUpdate
Update returns an update builder for Feature.
func (*FeatureClient) UpdateOne ¶
func (c *FeatureClient) UpdateOne(f *Feature) *FeatureUpdateOne
UpdateOne returns an update builder for the given entity.
func (*FeatureClient) UpdateOneID ¶
func (c *FeatureClient) UpdateOneID(id string) *FeatureUpdateOne
UpdateOneID returns an update builder for the given id.
func (*FeatureClient) Use ¶
func (c *FeatureClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `feature.Hooks(f(g(h())))`.
type FeatureCreate ¶
type FeatureCreate struct {
// contains filtered or unexported fields
}
FeatureCreate is the builder for creating a Feature entity.
func (*FeatureCreate) AddEntitlement ¶
func (fc *FeatureCreate) AddEntitlement(e ...*Entitlement) *FeatureCreate
AddEntitlement adds the "entitlement" edges to the Entitlement entity.
func (*FeatureCreate) AddEntitlementIDs ¶
func (fc *FeatureCreate) AddEntitlementIDs(ids ...string) *FeatureCreate
AddEntitlementIDs adds the "entitlement" edge to the Entitlement entity by IDs.
func (*FeatureCreate) Exec ¶
func (fc *FeatureCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*FeatureCreate) ExecContext ¶
func (c *FeatureCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*FeatureCreate) ExecX ¶
func (fc *FeatureCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FeatureCreate) Mutation ¶
func (fc *FeatureCreate) Mutation() *FeatureMutation
Mutation returns the FeatureMutation object of the builder.
func (*FeatureCreate) OnConflict ¶
func (fc *FeatureCreate) OnConflict(opts ...sql.ConflictOption) *FeatureUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Feature.Create().
SetCreatedAt(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.FeatureUpsert) {
SetCreatedAt(v+v).
}).
Exec(ctx)
func (*FeatureCreate) OnConflictColumns ¶
func (fc *FeatureCreate) OnConflictColumns(columns ...string) *FeatureUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Feature.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*FeatureCreate) QueryContext ¶
func (c *FeatureCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*FeatureCreate) Save ¶
func (fc *FeatureCreate) Save(ctx context.Context) (*Feature, error)
Save creates the Feature in the database.
func (*FeatureCreate) SaveX ¶
func (fc *FeatureCreate) SaveX(ctx context.Context) *Feature
SaveX calls Save and panics if Save returns an error.
func (*FeatureCreate) SetArchivedAt ¶
func (fc *FeatureCreate) SetArchivedAt(t time.Time) *FeatureCreate
SetArchivedAt sets the "archived_at" field.
func (*FeatureCreate) SetCreatedAt ¶
func (fc *FeatureCreate) SetCreatedAt(t time.Time) *FeatureCreate
SetCreatedAt sets the "created_at" field.
func (*FeatureCreate) SetDeletedAt ¶
func (fc *FeatureCreate) SetDeletedAt(t time.Time) *FeatureCreate
SetDeletedAt sets the "deleted_at" field.
func (*FeatureCreate) SetID ¶
func (fc *FeatureCreate) SetID(s string) *FeatureCreate
SetID sets the "id" field.
func (*FeatureCreate) SetKey ¶
func (fc *FeatureCreate) SetKey(s string) *FeatureCreate
SetKey sets the "key" field.
func (*FeatureCreate) SetMetadata ¶
func (fc *FeatureCreate) SetMetadata(m map[string]string) *FeatureCreate
SetMetadata sets the "metadata" field.
func (*FeatureCreate) SetMeterGroupByFilters ¶
func (fc *FeatureCreate) SetMeterGroupByFilters(m map[string]string) *FeatureCreate
SetMeterGroupByFilters sets the "meter_group_by_filters" field.
func (*FeatureCreate) SetMeterSlug ¶
func (fc *FeatureCreate) SetMeterSlug(s string) *FeatureCreate
SetMeterSlug sets the "meter_slug" field.
func (*FeatureCreate) SetName ¶
func (fc *FeatureCreate) SetName(s string) *FeatureCreate
SetName sets the "name" field.
func (*FeatureCreate) SetNamespace ¶
func (fc *FeatureCreate) SetNamespace(s string) *FeatureCreate
SetNamespace sets the "namespace" field.
func (*FeatureCreate) SetNillableArchivedAt ¶
func (fc *FeatureCreate) SetNillableArchivedAt(t *time.Time) *FeatureCreate
SetNillableArchivedAt sets the "archived_at" field if the given value is not nil.
func (*FeatureCreate) SetNillableCreatedAt ¶
func (fc *FeatureCreate) SetNillableCreatedAt(t *time.Time) *FeatureCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*FeatureCreate) SetNillableDeletedAt ¶
func (fc *FeatureCreate) SetNillableDeletedAt(t *time.Time) *FeatureCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*FeatureCreate) SetNillableID ¶
func (fc *FeatureCreate) SetNillableID(s *string) *FeatureCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*FeatureCreate) SetNillableMeterSlug ¶
func (fc *FeatureCreate) SetNillableMeterSlug(s *string) *FeatureCreate
SetNillableMeterSlug sets the "meter_slug" field if the given value is not nil.
func (*FeatureCreate) SetNillableUpdatedAt ¶
func (fc *FeatureCreate) SetNillableUpdatedAt(t *time.Time) *FeatureCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*FeatureCreate) SetUpdatedAt ¶
func (fc *FeatureCreate) SetUpdatedAt(t time.Time) *FeatureCreate
SetUpdatedAt sets the "updated_at" field.
type FeatureCreateBulk ¶
type FeatureCreateBulk struct {
// contains filtered or unexported fields
}
FeatureCreateBulk is the builder for creating many Feature entities in bulk.
func (*FeatureCreateBulk) Exec ¶
func (fcb *FeatureCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*FeatureCreateBulk) ExecContext ¶
func (c *FeatureCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*FeatureCreateBulk) ExecX ¶
func (fcb *FeatureCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FeatureCreateBulk) OnConflict ¶
func (fcb *FeatureCreateBulk) OnConflict(opts ...sql.ConflictOption) *FeatureUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Feature.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.FeatureUpsert) {
SetCreatedAt(v+v).
}).
Exec(ctx)
func (*FeatureCreateBulk) OnConflictColumns ¶
func (fcb *FeatureCreateBulk) OnConflictColumns(columns ...string) *FeatureUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Feature.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*FeatureCreateBulk) QueryContext ¶
func (c *FeatureCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
type FeatureDelete ¶
type FeatureDelete struct {
// contains filtered or unexported fields
}
FeatureDelete is the builder for deleting a Feature entity.
func (*FeatureDelete) Exec ¶
func (fd *FeatureDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*FeatureDelete) ExecContext ¶
func (c *FeatureDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*FeatureDelete) ExecX ¶
func (fd *FeatureDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*FeatureDelete) QueryContext ¶
func (c *FeatureDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*FeatureDelete) Where ¶
func (fd *FeatureDelete) Where(ps ...predicate.Feature) *FeatureDelete
Where appends a list predicates to the FeatureDelete builder.
type FeatureDeleteOne ¶
type FeatureDeleteOne struct {
// contains filtered or unexported fields
}
FeatureDeleteOne is the builder for deleting a single Feature entity.
func (*FeatureDeleteOne) Exec ¶
func (fdo *FeatureDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*FeatureDeleteOne) ExecX ¶
func (fdo *FeatureDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FeatureDeleteOne) Where ¶
func (fdo *FeatureDeleteOne) Where(ps ...predicate.Feature) *FeatureDeleteOne
Where appends a list predicates to the FeatureDelete builder.
type FeatureEdges ¶
type FeatureEdges struct {
// Entitlement holds the value of the entitlement edge.
Entitlement []*Entitlement `json:"entitlement,omitempty"`
// contains filtered or unexported fields
}
FeatureEdges holds the relations/edges for other nodes in the graph.
func (FeatureEdges) EntitlementOrErr ¶
func (e FeatureEdges) EntitlementOrErr() ([]*Entitlement, error)
EntitlementOrErr returns the Entitlement value or an error if the edge was not loaded in eager-loading.
type FeatureGroupBy ¶
type FeatureGroupBy struct {
// contains filtered or unexported fields
}
FeatureGroupBy is the group-by builder for Feature entities.
func (*FeatureGroupBy) Aggregate ¶
func (fgb *FeatureGroupBy) Aggregate(fns ...AggregateFunc) *FeatureGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*FeatureGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*FeatureGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*FeatureGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*FeatureGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*FeatureGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*FeatureGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*FeatureGroupBy) Scan ¶
func (fgb *FeatureGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*FeatureGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type FeatureMutation ¶
type FeatureMutation struct {
// contains filtered or unexported fields
}
FeatureMutation represents an operation that mutates the Feature nodes in the graph.
func (*FeatureMutation) AddEntitlementIDs ¶
func (m *FeatureMutation) AddEntitlementIDs(ids ...string)
AddEntitlementIDs adds the "entitlement" edge to the Entitlement entity by ids.
func (*FeatureMutation) AddField ¶
func (m *FeatureMutation) 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 (*FeatureMutation) AddedEdges ¶
func (m *FeatureMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*FeatureMutation) AddedField ¶
func (m *FeatureMutation) 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 (*FeatureMutation) AddedFields ¶
func (m *FeatureMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*FeatureMutation) AddedIDs ¶
func (m *FeatureMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*FeatureMutation) ArchivedAt ¶
func (m *FeatureMutation) ArchivedAt() (r time.Time, exists bool)
ArchivedAt returns the value of the "archived_at" field in the mutation.
func (*FeatureMutation) ArchivedAtCleared ¶
func (m *FeatureMutation) ArchivedAtCleared() bool
ArchivedAtCleared returns if the "archived_at" field was cleared in this mutation.
func (*FeatureMutation) ClearArchivedAt ¶
func (m *FeatureMutation) ClearArchivedAt()
ClearArchivedAt clears the value of the "archived_at" field.
func (*FeatureMutation) ClearDeletedAt ¶
func (m *FeatureMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FeatureMutation) ClearEdge ¶
func (m *FeatureMutation) 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 (*FeatureMutation) ClearEntitlement ¶
func (m *FeatureMutation) ClearEntitlement()
ClearEntitlement clears the "entitlement" edge to the Entitlement entity.
func (*FeatureMutation) ClearField ¶
func (m *FeatureMutation) 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 (*FeatureMutation) ClearMetadata ¶
func (m *FeatureMutation) ClearMetadata()
ClearMetadata clears the value of the "metadata" field.
func (*FeatureMutation) ClearMeterGroupByFilters ¶
func (m *FeatureMutation) ClearMeterGroupByFilters()
ClearMeterGroupByFilters clears the value of the "meter_group_by_filters" field.
func (*FeatureMutation) ClearMeterSlug ¶
func (m *FeatureMutation) ClearMeterSlug()
ClearMeterSlug clears the value of the "meter_slug" field.
func (*FeatureMutation) ClearedEdges ¶
func (m *FeatureMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*FeatureMutation) ClearedFields ¶
func (m *FeatureMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (FeatureMutation) Client ¶
func (m FeatureMutation) 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 (*FeatureMutation) CreatedAt ¶
func (m *FeatureMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*FeatureMutation) DeletedAt ¶
func (m *FeatureMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*FeatureMutation) DeletedAtCleared ¶
func (m *FeatureMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*FeatureMutation) EdgeCleared ¶
func (m *FeatureMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*FeatureMutation) EntitlementCleared ¶
func (m *FeatureMutation) EntitlementCleared() bool
EntitlementCleared reports if the "entitlement" edge to the Entitlement entity was cleared.
func (*FeatureMutation) EntitlementIDs ¶
func (m *FeatureMutation) EntitlementIDs() (ids []string)
EntitlementIDs returns the "entitlement" edge IDs in the mutation.
func (*FeatureMutation) ExecContext ¶
func (c *FeatureMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*FeatureMutation) Field ¶
func (m *FeatureMutation) 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 (*FeatureMutation) FieldCleared ¶
func (m *FeatureMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*FeatureMutation) Fields ¶
func (m *FeatureMutation) 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 (*FeatureMutation) ID ¶
func (m *FeatureMutation) ID() (id string, 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 (*FeatureMutation) IDs ¶
func (m *FeatureMutation) IDs(ctx context.Context) ([]string, error)
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 (*FeatureMutation) Key ¶
func (m *FeatureMutation) Key() (r string, exists bool)
Key returns the value of the "key" field in the mutation.
func (*FeatureMutation) Metadata ¶
func (m *FeatureMutation) Metadata() (r map[string]string, exists bool)
Metadata returns the value of the "metadata" field in the mutation.
func (*FeatureMutation) MetadataCleared ¶
func (m *FeatureMutation) MetadataCleared() bool
MetadataCleared returns if the "metadata" field was cleared in this mutation.
func (*FeatureMutation) MeterGroupByFilters ¶
func (m *FeatureMutation) MeterGroupByFilters() (r map[string]string, exists bool)
MeterGroupByFilters returns the value of the "meter_group_by_filters" field in the mutation.
func (*FeatureMutation) MeterGroupByFiltersCleared ¶
func (m *FeatureMutation) MeterGroupByFiltersCleared() bool
MeterGroupByFiltersCleared returns if the "meter_group_by_filters" field was cleared in this mutation.
func (*FeatureMutation) MeterSlug ¶
func (m *FeatureMutation) MeterSlug() (r string, exists bool)
MeterSlug returns the value of the "meter_slug" field in the mutation.
func (*FeatureMutation) MeterSlugCleared ¶
func (m *FeatureMutation) MeterSlugCleared() bool
MeterSlugCleared returns if the "meter_slug" field was cleared in this mutation.
func (*FeatureMutation) Name ¶
func (m *FeatureMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*FeatureMutation) Namespace ¶
func (m *FeatureMutation) Namespace() (r string, exists bool)
Namespace returns the value of the "namespace" field in the mutation.
func (*FeatureMutation) OldArchivedAt ¶
OldArchivedAt returns the old "archived_at" field's value of the Feature entity. If the Feature 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 (*FeatureMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Feature entity. If the Feature 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 (*FeatureMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the Feature entity. If the Feature 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 (*FeatureMutation) OldField ¶
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 (*FeatureMutation) OldKey ¶
func (m *FeatureMutation) OldKey(ctx context.Context) (v string, err error)
OldKey returns the old "key" field's value of the Feature entity. If the Feature 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 (*FeatureMutation) OldMetadata ¶
OldMetadata returns the old "metadata" field's value of the Feature entity. If the Feature 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 (*FeatureMutation) OldMeterGroupByFilters ¶
func (m *FeatureMutation) OldMeterGroupByFilters(ctx context.Context) (v map[string]string, err error)
OldMeterGroupByFilters returns the old "meter_group_by_filters" field's value of the Feature entity. If the Feature 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 (*FeatureMutation) OldMeterSlug ¶
func (m *FeatureMutation) OldMeterSlug(ctx context.Context) (v *string, err error)
OldMeterSlug returns the old "meter_slug" field's value of the Feature entity. If the Feature 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 (*FeatureMutation) OldName ¶
func (m *FeatureMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the Feature entity. If the Feature 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 (*FeatureMutation) OldNamespace ¶
func (m *FeatureMutation) OldNamespace(ctx context.Context) (v string, err error)
OldNamespace returns the old "namespace" field's value of the Feature entity. If the Feature 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 (*FeatureMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Feature entity. If the Feature 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 (*FeatureMutation) QueryContext ¶
func (c *FeatureMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*FeatureMutation) RemoveEntitlementIDs ¶
func (m *FeatureMutation) RemoveEntitlementIDs(ids ...string)
RemoveEntitlementIDs removes the "entitlement" edge to the Entitlement entity by IDs.
func (*FeatureMutation) RemovedEdges ¶
func (m *FeatureMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*FeatureMutation) RemovedEntitlementIDs ¶
func (m *FeatureMutation) RemovedEntitlementIDs() (ids []string)
RemovedEntitlement returns the removed IDs of the "entitlement" edge to the Entitlement entity.
func (*FeatureMutation) RemovedIDs ¶
func (m *FeatureMutation) 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 (*FeatureMutation) ResetArchivedAt ¶
func (m *FeatureMutation) ResetArchivedAt()
ResetArchivedAt resets all changes to the "archived_at" field.
func (*FeatureMutation) ResetCreatedAt ¶
func (m *FeatureMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*FeatureMutation) ResetDeletedAt ¶
func (m *FeatureMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*FeatureMutation) ResetEdge ¶
func (m *FeatureMutation) 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 (*FeatureMutation) ResetEntitlement ¶
func (m *FeatureMutation) ResetEntitlement()
ResetEntitlement resets all changes to the "entitlement" edge.
func (*FeatureMutation) ResetField ¶
func (m *FeatureMutation) 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 (*FeatureMutation) ResetKey ¶
func (m *FeatureMutation) ResetKey()
ResetKey resets all changes to the "key" field.
func (*FeatureMutation) ResetMetadata ¶
func (m *FeatureMutation) ResetMetadata()
ResetMetadata resets all changes to the "metadata" field.
func (*FeatureMutation) ResetMeterGroupByFilters ¶
func (m *FeatureMutation) ResetMeterGroupByFilters()
ResetMeterGroupByFilters resets all changes to the "meter_group_by_filters" field.
func (*FeatureMutation) ResetMeterSlug ¶
func (m *FeatureMutation) ResetMeterSlug()
ResetMeterSlug resets all changes to the "meter_slug" field.
func (*FeatureMutation) ResetName ¶
func (m *FeatureMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*FeatureMutation) ResetNamespace ¶
func (m *FeatureMutation) ResetNamespace()
ResetNamespace resets all changes to the "namespace" field.
func (*FeatureMutation) ResetUpdatedAt ¶
func (m *FeatureMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*FeatureMutation) SetArchivedAt ¶
func (m *FeatureMutation) SetArchivedAt(t time.Time)
SetArchivedAt sets the "archived_at" field.
func (*FeatureMutation) SetCreatedAt ¶
func (m *FeatureMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*FeatureMutation) SetDeletedAt ¶
func (m *FeatureMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*FeatureMutation) SetField ¶
func (m *FeatureMutation) 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 (*FeatureMutation) SetID ¶
func (m *FeatureMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Feature entities.
func (*FeatureMutation) SetKey ¶
func (m *FeatureMutation) SetKey(s string)
SetKey sets the "key" field.
func (*FeatureMutation) SetMetadata ¶
func (m *FeatureMutation) SetMetadata(value map[string]string)
SetMetadata sets the "metadata" field.
func (*FeatureMutation) SetMeterGroupByFilters ¶
func (m *FeatureMutation) SetMeterGroupByFilters(value map[string]string)
SetMeterGroupByFilters sets the "meter_group_by_filters" field.
func (*FeatureMutation) SetMeterSlug ¶
func (m *FeatureMutation) SetMeterSlug(s string)
SetMeterSlug sets the "meter_slug" field.
func (*FeatureMutation) SetName ¶
func (m *FeatureMutation) SetName(s string)
SetName sets the "name" field.
func (*FeatureMutation) SetNamespace ¶
func (m *FeatureMutation) SetNamespace(s string)
SetNamespace sets the "namespace" field.
func (*FeatureMutation) SetOp ¶
func (m *FeatureMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*FeatureMutation) SetUpdatedAt ¶
func (m *FeatureMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (FeatureMutation) Tx ¶
func (m FeatureMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*FeatureMutation) Type ¶
func (m *FeatureMutation) Type() string
Type returns the node type of this mutation (Feature).
func (*FeatureMutation) UpdatedAt ¶
func (m *FeatureMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*FeatureMutation) Where ¶
func (m *FeatureMutation) Where(ps ...predicate.Feature)
Where appends a list predicates to the FeatureMutation builder.
func (*FeatureMutation) WhereP ¶
func (m *FeatureMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the FeatureMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type FeatureQuery ¶
type FeatureQuery struct {
// contains filtered or unexported fields
}
FeatureQuery is the builder for querying Feature entities.
func (*FeatureQuery) Aggregate ¶
func (fq *FeatureQuery) Aggregate(fns ...AggregateFunc) *FeatureSelect
Aggregate returns a FeatureSelect configured with the given aggregations.
func (*FeatureQuery) All ¶
func (fq *FeatureQuery) All(ctx context.Context) ([]*Feature, error)
All executes the query and returns a list of Features.
func (*FeatureQuery) AllX ¶
func (fq *FeatureQuery) AllX(ctx context.Context) []*Feature
AllX is like All, but panics if an error occurs.
func (*FeatureQuery) Clone ¶
func (fq *FeatureQuery) Clone() *FeatureQuery
Clone returns a duplicate of the FeatureQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*FeatureQuery) Count ¶
func (fq *FeatureQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*FeatureQuery) CountX ¶
func (fq *FeatureQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*FeatureQuery) ExecContext ¶
func (c *FeatureQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*FeatureQuery) Exist ¶
func (fq *FeatureQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*FeatureQuery) ExistX ¶
func (fq *FeatureQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*FeatureQuery) First ¶
func (fq *FeatureQuery) First(ctx context.Context) (*Feature, error)
First returns the first Feature entity from the query. Returns a *NotFoundError when no Feature was found.
func (*FeatureQuery) FirstID ¶
func (fq *FeatureQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first Feature ID from the query. Returns a *NotFoundError when no Feature ID was found.
func (*FeatureQuery) FirstIDX ¶
func (fq *FeatureQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*FeatureQuery) FirstX ¶
func (fq *FeatureQuery) FirstX(ctx context.Context) *Feature
FirstX is like First, but panics if an error occurs.
func (*FeatureQuery) ForShare ¶
func (fq *FeatureQuery) ForShare(opts ...sql.LockOption) *FeatureQuery
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 (*FeatureQuery) ForUpdate ¶
func (fq *FeatureQuery) ForUpdate(opts ...sql.LockOption) *FeatureQuery
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 (*FeatureQuery) GroupBy ¶
func (fq *FeatureQuery) GroupBy(field string, fields ...string) *FeatureGroupBy
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 {
CreatedAt time.Time `json:"created_at,omitempty"`
Count int `json:"count,omitempty"`
}
client.Feature.Query().
GroupBy(feature.FieldCreatedAt).
Aggregate(db.Count()).
Scan(ctx, &v)
func (*FeatureQuery) IDs ¶
func (fq *FeatureQuery) IDs(ctx context.Context) (ids []string, err error)
IDs executes the query and returns a list of Feature IDs.
func (*FeatureQuery) IDsX ¶
func (fq *FeatureQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*FeatureQuery) Limit ¶
func (fq *FeatureQuery) Limit(limit int) *FeatureQuery
Limit the number of records to be returned by this query.
func (*FeatureQuery) Offset ¶
func (fq *FeatureQuery) Offset(offset int) *FeatureQuery
Offset to start from.
func (*FeatureQuery) Only ¶
func (fq *FeatureQuery) Only(ctx context.Context) (*Feature, error)
Only returns a single Feature entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Feature entity is found. Returns a *NotFoundError when no Feature entities are found.
func (*FeatureQuery) OnlyID ¶
func (fq *FeatureQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only Feature ID in the query. Returns a *NotSingularError when more than one Feature ID is found. Returns a *NotFoundError when no entities are found.
func (*FeatureQuery) OnlyIDX ¶
func (fq *FeatureQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*FeatureQuery) OnlyX ¶
func (fq *FeatureQuery) OnlyX(ctx context.Context) *Feature
OnlyX is like Only, but panics if an error occurs.
func (*FeatureQuery) Order ¶
func (fq *FeatureQuery) Order(o ...feature.OrderOption) *FeatureQuery
Order specifies how the records should be ordered.
func (*FeatureQuery) Paginate ¶
func (f *FeatureQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*Feature], error)
Paginate runs the query and returns a paginated response. If page is its 0 value then it will return all the items and populate the response page accordingly.
func (*FeatureQuery) QueryContext ¶
func (c *FeatureQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*FeatureQuery) QueryEntitlement ¶
func (fq *FeatureQuery) QueryEntitlement() *EntitlementQuery
QueryEntitlement chains the current query on the "entitlement" edge.
func (*FeatureQuery) Select ¶
func (fq *FeatureQuery) Select(fields ...string) *FeatureSelect
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 {
CreatedAt time.Time `json:"created_at,omitempty"`
}
client.Feature.Query().
Select(feature.FieldCreatedAt).
Scan(ctx, &v)
func (*FeatureQuery) Unique ¶
func (fq *FeatureQuery) Unique(unique bool) *FeatureQuery
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 (*FeatureQuery) Where ¶
func (fq *FeatureQuery) Where(ps ...predicate.Feature) *FeatureQuery
Where adds a new predicate for the FeatureQuery builder.
func (*FeatureQuery) WithEntitlement ¶
func (fq *FeatureQuery) WithEntitlement(opts ...func(*EntitlementQuery)) *FeatureQuery
WithEntitlement tells the query-builder to eager-load the nodes that are connected to the "entitlement" edge. The optional arguments are used to configure the query builder of the edge.
type FeatureSelect ¶
type FeatureSelect struct {
*FeatureQuery
// contains filtered or unexported fields
}
FeatureSelect is the builder for selecting fields of Feature entities.
func (*FeatureSelect) Aggregate ¶
func (fs *FeatureSelect) Aggregate(fns ...AggregateFunc) *FeatureSelect
Aggregate adds the given aggregation functions to the selector query.
func (*FeatureSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*FeatureSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (FeatureSelect) ExecContext ¶
func (c FeatureSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*FeatureSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*FeatureSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*FeatureSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*FeatureSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (FeatureSelect) QueryContext ¶
func (c FeatureSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*FeatureSelect) Scan ¶
func (fs *FeatureSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*FeatureSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type FeatureUpdate ¶
type FeatureUpdate struct {
// contains filtered or unexported fields
}
FeatureUpdate is the builder for updating Feature entities.
func (*FeatureUpdate) AddEntitlement ¶
func (fu *FeatureUpdate) AddEntitlement(e ...*Entitlement) *FeatureUpdate
AddEntitlement adds the "entitlement" edges to the Entitlement entity.
func (*FeatureUpdate) AddEntitlementIDs ¶
func (fu *FeatureUpdate) AddEntitlementIDs(ids ...string) *FeatureUpdate
AddEntitlementIDs adds the "entitlement" edge to the Entitlement entity by IDs.
func (*FeatureUpdate) ClearArchivedAt ¶
func (fu *FeatureUpdate) ClearArchivedAt() *FeatureUpdate
ClearArchivedAt clears the value of the "archived_at" field.
func (*FeatureUpdate) ClearDeletedAt ¶
func (fu *FeatureUpdate) ClearDeletedAt() *FeatureUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FeatureUpdate) ClearEntitlement ¶
func (fu *FeatureUpdate) ClearEntitlement() *FeatureUpdate
ClearEntitlement clears all "entitlement" edges to the Entitlement entity.
func (*FeatureUpdate) ClearMetadata ¶
func (fu *FeatureUpdate) ClearMetadata() *FeatureUpdate
ClearMetadata clears the value of the "metadata" field.
func (*FeatureUpdate) ClearMeterGroupByFilters ¶
func (fu *FeatureUpdate) ClearMeterGroupByFilters() *FeatureUpdate
ClearMeterGroupByFilters clears the value of the "meter_group_by_filters" field.
func (*FeatureUpdate) Exec ¶
func (fu *FeatureUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*FeatureUpdate) ExecContext ¶
func (c *FeatureUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*FeatureUpdate) ExecX ¶
func (fu *FeatureUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FeatureUpdate) Mutation ¶
func (fu *FeatureUpdate) Mutation() *FeatureMutation
Mutation returns the FeatureMutation object of the builder.
func (*FeatureUpdate) QueryContext ¶
func (c *FeatureUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*FeatureUpdate) RemoveEntitlement ¶
func (fu *FeatureUpdate) RemoveEntitlement(e ...*Entitlement) *FeatureUpdate
RemoveEntitlement removes "entitlement" edges to Entitlement entities.
func (*FeatureUpdate) RemoveEntitlementIDs ¶
func (fu *FeatureUpdate) RemoveEntitlementIDs(ids ...string) *FeatureUpdate
RemoveEntitlementIDs removes the "entitlement" edge to Entitlement entities by IDs.
func (*FeatureUpdate) Save ¶
func (fu *FeatureUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*FeatureUpdate) SaveX ¶
func (fu *FeatureUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*FeatureUpdate) SetArchivedAt ¶
func (fu *FeatureUpdate) SetArchivedAt(t time.Time) *FeatureUpdate
SetArchivedAt sets the "archived_at" field.
func (*FeatureUpdate) SetDeletedAt ¶
func (fu *FeatureUpdate) SetDeletedAt(t time.Time) *FeatureUpdate
SetDeletedAt sets the "deleted_at" field.
func (*FeatureUpdate) SetMetadata ¶
func (fu *FeatureUpdate) SetMetadata(m map[string]string) *FeatureUpdate
SetMetadata sets the "metadata" field.
func (*FeatureUpdate) SetMeterGroupByFilters ¶
func (fu *FeatureUpdate) SetMeterGroupByFilters(m map[string]string) *FeatureUpdate
SetMeterGroupByFilters sets the "meter_group_by_filters" field.
func (*FeatureUpdate) SetName ¶
func (fu *FeatureUpdate) SetName(s string) *FeatureUpdate
SetName sets the "name" field.
func (*FeatureUpdate) SetNillableArchivedAt ¶
func (fu *FeatureUpdate) SetNillableArchivedAt(t *time.Time) *FeatureUpdate
SetNillableArchivedAt sets the "archived_at" field if the given value is not nil.
func (*FeatureUpdate) SetNillableDeletedAt ¶
func (fu *FeatureUpdate) SetNillableDeletedAt(t *time.Time) *FeatureUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*FeatureUpdate) SetNillableName ¶
func (fu *FeatureUpdate) SetNillableName(s *string) *FeatureUpdate
SetNillableName sets the "name" field if the given value is not nil.
func (*FeatureUpdate) SetOrClearArchivedAt ¶
func (u *FeatureUpdate) SetOrClearArchivedAt(value *time.Time) *FeatureUpdate
func (*FeatureUpdate) SetOrClearDeletedAt ¶
func (u *FeatureUpdate) SetOrClearDeletedAt(value *time.Time) *FeatureUpdate
func (*FeatureUpdate) SetOrClearMetadata ¶
func (u *FeatureUpdate) SetOrClearMetadata(value *map[string]string) *FeatureUpdate
func (*FeatureUpdate) SetOrClearMeterGroupByFilters ¶
func (u *FeatureUpdate) SetOrClearMeterGroupByFilters(value *map[string]string) *FeatureUpdate
func (*FeatureUpdate) SetUpdatedAt ¶
func (fu *FeatureUpdate) SetUpdatedAt(t time.Time) *FeatureUpdate
SetUpdatedAt sets the "updated_at" field.
func (*FeatureUpdate) Where ¶
func (fu *FeatureUpdate) Where(ps ...predicate.Feature) *FeatureUpdate
Where appends a list predicates to the FeatureUpdate builder.
type FeatureUpdateOne ¶
type FeatureUpdateOne struct {
// contains filtered or unexported fields
}
FeatureUpdateOne is the builder for updating a single Feature entity.
func (*FeatureUpdateOne) AddEntitlement ¶
func (fuo *FeatureUpdateOne) AddEntitlement(e ...*Entitlement) *FeatureUpdateOne
AddEntitlement adds the "entitlement" edges to the Entitlement entity.
func (*FeatureUpdateOne) AddEntitlementIDs ¶
func (fuo *FeatureUpdateOne) AddEntitlementIDs(ids ...string) *FeatureUpdateOne
AddEntitlementIDs adds the "entitlement" edge to the Entitlement entity by IDs.
func (*FeatureUpdateOne) ClearArchivedAt ¶
func (fuo *FeatureUpdateOne) ClearArchivedAt() *FeatureUpdateOne
ClearArchivedAt clears the value of the "archived_at" field.
func (*FeatureUpdateOne) ClearDeletedAt ¶
func (fuo *FeatureUpdateOne) ClearDeletedAt() *FeatureUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FeatureUpdateOne) ClearEntitlement ¶
func (fuo *FeatureUpdateOne) ClearEntitlement() *FeatureUpdateOne
ClearEntitlement clears all "entitlement" edges to the Entitlement entity.
func (*FeatureUpdateOne) ClearMetadata ¶
func (fuo *FeatureUpdateOne) ClearMetadata() *FeatureUpdateOne
ClearMetadata clears the value of the "metadata" field.
func (*FeatureUpdateOne) ClearMeterGroupByFilters ¶
func (fuo *FeatureUpdateOne) ClearMeterGroupByFilters() *FeatureUpdateOne
ClearMeterGroupByFilters clears the value of the "meter_group_by_filters" field.
func (*FeatureUpdateOne) Exec ¶
func (fuo *FeatureUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*FeatureUpdateOne) ExecContext ¶
func (c *FeatureUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*FeatureUpdateOne) ExecX ¶
func (fuo *FeatureUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FeatureUpdateOne) Mutation ¶
func (fuo *FeatureUpdateOne) Mutation() *FeatureMutation
Mutation returns the FeatureMutation object of the builder.
func (*FeatureUpdateOne) QueryContext ¶
func (c *FeatureUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*FeatureUpdateOne) RemoveEntitlement ¶
func (fuo *FeatureUpdateOne) RemoveEntitlement(e ...*Entitlement) *FeatureUpdateOne
RemoveEntitlement removes "entitlement" edges to Entitlement entities.
func (*FeatureUpdateOne) RemoveEntitlementIDs ¶
func (fuo *FeatureUpdateOne) RemoveEntitlementIDs(ids ...string) *FeatureUpdateOne
RemoveEntitlementIDs removes the "entitlement" edge to Entitlement entities by IDs.
func (*FeatureUpdateOne) Save ¶
func (fuo *FeatureUpdateOne) Save(ctx context.Context) (*Feature, error)
Save executes the query and returns the updated Feature entity.
func (*FeatureUpdateOne) SaveX ¶
func (fuo *FeatureUpdateOne) SaveX(ctx context.Context) *Feature
SaveX is like Save, but panics if an error occurs.
func (*FeatureUpdateOne) Select ¶
func (fuo *FeatureUpdateOne) Select(field string, fields ...string) *FeatureUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*FeatureUpdateOne) SetArchivedAt ¶
func (fuo *FeatureUpdateOne) SetArchivedAt(t time.Time) *FeatureUpdateOne
SetArchivedAt sets the "archived_at" field.
func (*FeatureUpdateOne) SetDeletedAt ¶
func (fuo *FeatureUpdateOne) SetDeletedAt(t time.Time) *FeatureUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*FeatureUpdateOne) SetMetadata ¶
func (fuo *FeatureUpdateOne) SetMetadata(m map[string]string) *FeatureUpdateOne
SetMetadata sets the "metadata" field.
func (*FeatureUpdateOne) SetMeterGroupByFilters ¶
func (fuo *FeatureUpdateOne) SetMeterGroupByFilters(m map[string]string) *FeatureUpdateOne
SetMeterGroupByFilters sets the "meter_group_by_filters" field.
func (*FeatureUpdateOne) SetName ¶
func (fuo *FeatureUpdateOne) SetName(s string) *FeatureUpdateOne
SetName sets the "name" field.
func (*FeatureUpdateOne) SetNillableArchivedAt ¶
func (fuo *FeatureUpdateOne) SetNillableArchivedAt(t *time.Time) *FeatureUpdateOne
SetNillableArchivedAt sets the "archived_at" field if the given value is not nil.
func (*FeatureUpdateOne) SetNillableDeletedAt ¶
func (fuo *FeatureUpdateOne) SetNillableDeletedAt(t *time.Time) *FeatureUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*FeatureUpdateOne) SetNillableName ¶
func (fuo *FeatureUpdateOne) SetNillableName(s *string) *FeatureUpdateOne
SetNillableName sets the "name" field if the given value is not nil.
func (*FeatureUpdateOne) SetOrClearArchivedAt ¶
func (u *FeatureUpdateOne) SetOrClearArchivedAt(value *time.Time) *FeatureUpdateOne
func (*FeatureUpdateOne) SetOrClearDeletedAt ¶
func (u *FeatureUpdateOne) SetOrClearDeletedAt(value *time.Time) *FeatureUpdateOne
func (*FeatureUpdateOne) SetOrClearMetadata ¶
func (u *FeatureUpdateOne) SetOrClearMetadata(value *map[string]string) *FeatureUpdateOne
func (*FeatureUpdateOne) SetOrClearMeterGroupByFilters ¶
func (u *FeatureUpdateOne) SetOrClearMeterGroupByFilters(value *map[string]string) *FeatureUpdateOne
func (*FeatureUpdateOne) SetUpdatedAt ¶
func (fuo *FeatureUpdateOne) SetUpdatedAt(t time.Time) *FeatureUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*FeatureUpdateOne) Where ¶
func (fuo *FeatureUpdateOne) Where(ps ...predicate.Feature) *FeatureUpdateOne
Where appends a list predicates to the FeatureUpdate builder.
type FeatureUpsert ¶
FeatureUpsert is the "OnConflict" setter.
func (*FeatureUpsert) ClearArchivedAt ¶
func (u *FeatureUpsert) ClearArchivedAt() *FeatureUpsert
ClearArchivedAt clears the value of the "archived_at" field.
func (*FeatureUpsert) ClearDeletedAt ¶
func (u *FeatureUpsert) ClearDeletedAt() *FeatureUpsert
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FeatureUpsert) ClearMetadata ¶
func (u *FeatureUpsert) ClearMetadata() *FeatureUpsert
ClearMetadata clears the value of the "metadata" field.
func (*FeatureUpsert) ClearMeterGroupByFilters ¶
func (u *FeatureUpsert) ClearMeterGroupByFilters() *FeatureUpsert
ClearMeterGroupByFilters clears the value of the "meter_group_by_filters" field.
func (*FeatureUpsert) SetArchivedAt ¶
func (u *FeatureUpsert) SetArchivedAt(v time.Time) *FeatureUpsert
SetArchivedAt sets the "archived_at" field.
func (*FeatureUpsert) SetDeletedAt ¶
func (u *FeatureUpsert) SetDeletedAt(v time.Time) *FeatureUpsert
SetDeletedAt sets the "deleted_at" field.
func (*FeatureUpsert) SetMetadata ¶
func (u *FeatureUpsert) SetMetadata(v map[string]string) *FeatureUpsert
SetMetadata sets the "metadata" field.
func (*FeatureUpsert) SetMeterGroupByFilters ¶
func (u *FeatureUpsert) SetMeterGroupByFilters(v map[string]string) *FeatureUpsert
SetMeterGroupByFilters sets the "meter_group_by_filters" field.
func (*FeatureUpsert) SetName ¶
func (u *FeatureUpsert) SetName(v string) *FeatureUpsert
SetName sets the "name" field.
func (*FeatureUpsert) SetUpdatedAt ¶
func (u *FeatureUpsert) SetUpdatedAt(v time.Time) *FeatureUpsert
SetUpdatedAt sets the "updated_at" field.
func (*FeatureUpsert) UpdateArchivedAt ¶
func (u *FeatureUpsert) UpdateArchivedAt() *FeatureUpsert
UpdateArchivedAt sets the "archived_at" field to the value that was provided on create.
func (*FeatureUpsert) UpdateDeletedAt ¶
func (u *FeatureUpsert) UpdateDeletedAt() *FeatureUpsert
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*FeatureUpsert) UpdateMetadata ¶
func (u *FeatureUpsert) UpdateMetadata() *FeatureUpsert
UpdateMetadata sets the "metadata" field to the value that was provided on create.
func (*FeatureUpsert) UpdateMeterGroupByFilters ¶
func (u *FeatureUpsert) UpdateMeterGroupByFilters() *FeatureUpsert
UpdateMeterGroupByFilters sets the "meter_group_by_filters" field to the value that was provided on create.
func (*FeatureUpsert) UpdateName ¶
func (u *FeatureUpsert) UpdateName() *FeatureUpsert
UpdateName sets the "name" field to the value that was provided on create.
func (*FeatureUpsert) UpdateUpdatedAt ¶
func (u *FeatureUpsert) UpdateUpdatedAt() *FeatureUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type FeatureUpsertBulk ¶
type FeatureUpsertBulk struct {
// contains filtered or unexported fields
}
FeatureUpsertBulk is the builder for "upsert"-ing a bulk of Feature nodes.
func (*FeatureUpsertBulk) ClearArchivedAt ¶
func (u *FeatureUpsertBulk) ClearArchivedAt() *FeatureUpsertBulk
ClearArchivedAt clears the value of the "archived_at" field.
func (*FeatureUpsertBulk) ClearDeletedAt ¶
func (u *FeatureUpsertBulk) ClearDeletedAt() *FeatureUpsertBulk
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FeatureUpsertBulk) ClearMetadata ¶
func (u *FeatureUpsertBulk) ClearMetadata() *FeatureUpsertBulk
ClearMetadata clears the value of the "metadata" field.
func (*FeatureUpsertBulk) ClearMeterGroupByFilters ¶
func (u *FeatureUpsertBulk) ClearMeterGroupByFilters() *FeatureUpsertBulk
ClearMeterGroupByFilters clears the value of the "meter_group_by_filters" field.
func (*FeatureUpsertBulk) DoNothing ¶
func (u *FeatureUpsertBulk) DoNothing() *FeatureUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*FeatureUpsertBulk) Exec ¶
func (u *FeatureUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*FeatureUpsertBulk) ExecX ¶
func (u *FeatureUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FeatureUpsertBulk) Ignore ¶
func (u *FeatureUpsertBulk) Ignore() *FeatureUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Feature.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*FeatureUpsertBulk) SetArchivedAt ¶
func (u *FeatureUpsertBulk) SetArchivedAt(v time.Time) *FeatureUpsertBulk
SetArchivedAt sets the "archived_at" field.
func (*FeatureUpsertBulk) SetDeletedAt ¶
func (u *FeatureUpsertBulk) SetDeletedAt(v time.Time) *FeatureUpsertBulk
SetDeletedAt sets the "deleted_at" field.
func (*FeatureUpsertBulk) SetMetadata ¶
func (u *FeatureUpsertBulk) SetMetadata(v map[string]string) *FeatureUpsertBulk
SetMetadata sets the "metadata" field.
func (*FeatureUpsertBulk) SetMeterGroupByFilters ¶
func (u *FeatureUpsertBulk) SetMeterGroupByFilters(v map[string]string) *FeatureUpsertBulk
SetMeterGroupByFilters sets the "meter_group_by_filters" field.
func (*FeatureUpsertBulk) SetName ¶
func (u *FeatureUpsertBulk) SetName(v string) *FeatureUpsertBulk
SetName sets the "name" field.
func (*FeatureUpsertBulk) SetUpdatedAt ¶
func (u *FeatureUpsertBulk) SetUpdatedAt(v time.Time) *FeatureUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*FeatureUpsertBulk) Update ¶
func (u *FeatureUpsertBulk) Update(set func(*FeatureUpsert)) *FeatureUpsertBulk
Update allows overriding fields `UPDATE` values. See the FeatureCreateBulk.OnConflict documentation for more info.
func (*FeatureUpsertBulk) UpdateArchivedAt ¶
func (u *FeatureUpsertBulk) UpdateArchivedAt() *FeatureUpsertBulk
UpdateArchivedAt sets the "archived_at" field to the value that was provided on create.
func (*FeatureUpsertBulk) UpdateDeletedAt ¶
func (u *FeatureUpsertBulk) UpdateDeletedAt() *FeatureUpsertBulk
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*FeatureUpsertBulk) UpdateMetadata ¶
func (u *FeatureUpsertBulk) UpdateMetadata() *FeatureUpsertBulk
UpdateMetadata sets the "metadata" field to the value that was provided on create.
func (*FeatureUpsertBulk) UpdateMeterGroupByFilters ¶
func (u *FeatureUpsertBulk) UpdateMeterGroupByFilters() *FeatureUpsertBulk
UpdateMeterGroupByFilters sets the "meter_group_by_filters" field to the value that was provided on create.
func (*FeatureUpsertBulk) UpdateName ¶
func (u *FeatureUpsertBulk) UpdateName() *FeatureUpsertBulk
UpdateName sets the "name" field to the value that was provided on create.
func (*FeatureUpsertBulk) UpdateNewValues ¶
func (u *FeatureUpsertBulk) UpdateNewValues() *FeatureUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.Feature.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(feature.FieldID)
}),
).
Exec(ctx)
func (*FeatureUpsertBulk) UpdateUpdatedAt ¶
func (u *FeatureUpsertBulk) UpdateUpdatedAt() *FeatureUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type FeatureUpsertOne ¶
type FeatureUpsertOne struct {
// contains filtered or unexported fields
}
FeatureUpsertOne is the builder for "upsert"-ing
one Feature node.
func (*FeatureUpsertOne) ClearArchivedAt ¶
func (u *FeatureUpsertOne) ClearArchivedAt() *FeatureUpsertOne
ClearArchivedAt clears the value of the "archived_at" field.
func (*FeatureUpsertOne) ClearDeletedAt ¶
func (u *FeatureUpsertOne) ClearDeletedAt() *FeatureUpsertOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*FeatureUpsertOne) ClearMetadata ¶
func (u *FeatureUpsertOne) ClearMetadata() *FeatureUpsertOne
ClearMetadata clears the value of the "metadata" field.
func (*FeatureUpsertOne) ClearMeterGroupByFilters ¶
func (u *FeatureUpsertOne) ClearMeterGroupByFilters() *FeatureUpsertOne
ClearMeterGroupByFilters clears the value of the "meter_group_by_filters" field.
func (*FeatureUpsertOne) DoNothing ¶
func (u *FeatureUpsertOne) DoNothing() *FeatureUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*FeatureUpsertOne) Exec ¶
func (u *FeatureUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*FeatureUpsertOne) ExecX ¶
func (u *FeatureUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FeatureUpsertOne) ID ¶
func (u *FeatureUpsertOne) ID(ctx context.Context) (id string, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*FeatureUpsertOne) IDX ¶
func (u *FeatureUpsertOne) IDX(ctx context.Context) string
IDX is like ID, but panics if an error occurs.
func (*FeatureUpsertOne) Ignore ¶
func (u *FeatureUpsertOne) Ignore() *FeatureUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Feature.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*FeatureUpsertOne) SetArchivedAt ¶
func (u *FeatureUpsertOne) SetArchivedAt(v time.Time) *FeatureUpsertOne
SetArchivedAt sets the "archived_at" field.
func (*FeatureUpsertOne) SetDeletedAt ¶
func (u *FeatureUpsertOne) SetDeletedAt(v time.Time) *FeatureUpsertOne
SetDeletedAt sets the "deleted_at" field.
func (*FeatureUpsertOne) SetMetadata ¶
func (u *FeatureUpsertOne) SetMetadata(v map[string]string) *FeatureUpsertOne
SetMetadata sets the "metadata" field.
func (*FeatureUpsertOne) SetMeterGroupByFilters ¶
func (u *FeatureUpsertOne) SetMeterGroupByFilters(v map[string]string) *FeatureUpsertOne
SetMeterGroupByFilters sets the "meter_group_by_filters" field.
func (*FeatureUpsertOne) SetName ¶
func (u *FeatureUpsertOne) SetName(v string) *FeatureUpsertOne
SetName sets the "name" field.
func (*FeatureUpsertOne) SetUpdatedAt ¶
func (u *FeatureUpsertOne) SetUpdatedAt(v time.Time) *FeatureUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*FeatureUpsertOne) Update ¶
func (u *FeatureUpsertOne) Update(set func(*FeatureUpsert)) *FeatureUpsertOne
Update allows overriding fields `UPDATE` values. See the FeatureCreate.OnConflict documentation for more info.
func (*FeatureUpsertOne) UpdateArchivedAt ¶
func (u *FeatureUpsertOne) UpdateArchivedAt() *FeatureUpsertOne
UpdateArchivedAt sets the "archived_at" field to the value that was provided on create.
func (*FeatureUpsertOne) UpdateDeletedAt ¶
func (u *FeatureUpsertOne) UpdateDeletedAt() *FeatureUpsertOne
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*FeatureUpsertOne) UpdateMetadata ¶
func (u *FeatureUpsertOne) UpdateMetadata() *FeatureUpsertOne
UpdateMetadata sets the "metadata" field to the value that was provided on create.
func (*FeatureUpsertOne) UpdateMeterGroupByFilters ¶
func (u *FeatureUpsertOne) UpdateMeterGroupByFilters() *FeatureUpsertOne
UpdateMeterGroupByFilters sets the "meter_group_by_filters" field to the value that was provided on create.
func (*FeatureUpsertOne) UpdateName ¶
func (u *FeatureUpsertOne) UpdateName() *FeatureUpsertOne
UpdateName sets the "name" field to the value that was provided on create.
func (*FeatureUpsertOne) UpdateNewValues ¶
func (u *FeatureUpsertOne) UpdateNewValues() *FeatureUpsertOne
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.Feature.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(feature.FieldID)
}),
).
Exec(ctx)
func (*FeatureUpsertOne) UpdateUpdatedAt ¶
func (u *FeatureUpsertOne) UpdateUpdatedAt() *FeatureUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type Grant ¶
type Grant struct {
// ID of the ent.
ID string `json:"id,omitempty"`
// Namespace holds the value of the "namespace" field.
Namespace string `json:"namespace,omitempty"`
// Metadata holds the value of the "metadata" field.
Metadata map[string]string `json:"metadata,omitempty"`
// CreatedAt holds the value of the "created_at" field.
CreatedAt time.Time `json:"created_at,omitempty"`
// UpdatedAt holds the value of the "updated_at" field.
UpdatedAt time.Time `json:"updated_at,omitempty"`
// DeletedAt holds the value of the "deleted_at" field.
DeletedAt *time.Time `json:"deleted_at,omitempty"`
// OwnerID holds the value of the "owner_id" field.
OwnerID string `json:"owner_id,omitempty"`
// Amount holds the value of the "amount" field.
Amount float64 `json:"amount,omitempty"`
// Priority holds the value of the "priority" field.
Priority uint8 `json:"priority,omitempty"`
// EffectiveAt holds the value of the "effective_at" field.
EffectiveAt time.Time `json:"effective_at,omitempty"`
// Expiration holds the value of the "expiration" field.
Expiration grant.ExpirationPeriod `json:"expiration,omitempty"`
// ExpiresAt holds the value of the "expires_at" field.
ExpiresAt time.Time `json:"expires_at,omitempty"`
// VoidedAt holds the value of the "voided_at" field.
VoidedAt *time.Time `json:"voided_at,omitempty"`
// ResetMaxRollover holds the value of the "reset_max_rollover" field.
ResetMaxRollover float64 `json:"reset_max_rollover,omitempty"`
// ResetMinRollover holds the value of the "reset_min_rollover" field.
ResetMinRollover float64 `json:"reset_min_rollover,omitempty"`
// RecurrencePeriod holds the value of the "recurrence_period" field.
RecurrencePeriod *recurrence.RecurrenceInterval `json:"recurrence_period,omitempty"`
// RecurrenceAnchor holds the value of the "recurrence_anchor" field.
RecurrenceAnchor *time.Time `json:"recurrence_anchor,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the GrantQuery when eager-loading is set.
Edges GrantEdges `json:"edges"`
// contains filtered or unexported fields
}
Grant is the model entity for the Grant schema.
func (*Grant) ExecContext ¶
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*Grant) QueryContext ¶
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*Grant) QueryEntitlement ¶
func (gr *Grant) QueryEntitlement() *EntitlementQuery
QueryEntitlement queries the "entitlement" edge of the Grant entity.
func (*Grant) Unwrap ¶
Unwrap unwraps the Grant 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 (*Grant) Update ¶
func (gr *Grant) Update() *GrantUpdateOne
Update returns a builder for updating this Grant. Note that you need to call Grant.Unwrap() before calling this method if this Grant was returned from a transaction, and the transaction was committed or rolled back.
type GrantClient ¶
type GrantClient struct {
// contains filtered or unexported fields
}
GrantClient is a client for the Grant schema.
func NewGrantClient ¶
func NewGrantClient(c config) *GrantClient
NewGrantClient returns a client for the Grant from the given config.
func (*GrantClient) Create ¶
func (c *GrantClient) Create() *GrantCreate
Create returns a builder for creating a Grant entity.
func (*GrantClient) CreateBulk ¶
func (c *GrantClient) CreateBulk(builders ...*GrantCreate) *GrantCreateBulk
CreateBulk returns a builder for creating a bulk of Grant entities.
func (*GrantClient) Delete ¶
func (c *GrantClient) Delete() *GrantDelete
Delete returns a delete builder for Grant.
func (*GrantClient) DeleteOne ¶
func (c *GrantClient) DeleteOne(gr *Grant) *GrantDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*GrantClient) DeleteOneID ¶
func (c *GrantClient) DeleteOneID(id string) *GrantDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*GrantClient) ExecContext ¶
func (c *GrantClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*GrantClient) GetX ¶
func (c *GrantClient) GetX(ctx context.Context, id string) *Grant
GetX is like Get, but panics if an error occurs.
func (*GrantClient) Intercept ¶
func (c *GrantClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `dbgrant.Intercept(f(g(h())))`.
func (*GrantClient) Interceptors ¶
func (c *GrantClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*GrantClient) MapCreateBulk ¶
func (c *GrantClient) MapCreateBulk(slice any, setFunc func(*GrantCreate, int)) *GrantCreateBulk
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 (*GrantClient) Query ¶
func (c *GrantClient) Query() *GrantQuery
Query returns a query builder for Grant.
func (*GrantClient) QueryContext ¶
func (c *GrantClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*GrantClient) QueryEntitlement ¶
func (c *GrantClient) QueryEntitlement(gr *Grant) *EntitlementQuery
QueryEntitlement queries the entitlement edge of a Grant.
func (*GrantClient) Update ¶
func (c *GrantClient) Update() *GrantUpdate
Update returns an update builder for Grant.
func (*GrantClient) UpdateOne ¶
func (c *GrantClient) UpdateOne(gr *Grant) *GrantUpdateOne
UpdateOne returns an update builder for the given entity.
func (*GrantClient) UpdateOneID ¶
func (c *GrantClient) UpdateOneID(id string) *GrantUpdateOne
UpdateOneID returns an update builder for the given id.
func (*GrantClient) Use ¶
func (c *GrantClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `dbgrant.Hooks(f(g(h())))`.
type GrantCreate ¶
type GrantCreate struct {
// contains filtered or unexported fields
}
GrantCreate is the builder for creating a Grant entity.
func (*GrantCreate) Exec ¶
func (gc *GrantCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*GrantCreate) ExecContext ¶
func (c *GrantCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*GrantCreate) ExecX ¶
func (gc *GrantCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*GrantCreate) Mutation ¶
func (gc *GrantCreate) Mutation() *GrantMutation
Mutation returns the GrantMutation object of the builder.
func (*GrantCreate) OnConflict ¶
func (gc *GrantCreate) OnConflict(opts ...sql.ConflictOption) *GrantUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Grant.Create().
SetNamespace(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.GrantUpsert) {
SetNamespace(v+v).
}).
Exec(ctx)
func (*GrantCreate) OnConflictColumns ¶
func (gc *GrantCreate) OnConflictColumns(columns ...string) *GrantUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Grant.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*GrantCreate) QueryContext ¶
func (c *GrantCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*GrantCreate) Save ¶
func (gc *GrantCreate) Save(ctx context.Context) (*Grant, error)
Save creates the Grant in the database.
func (*GrantCreate) SaveX ¶
func (gc *GrantCreate) SaveX(ctx context.Context) *Grant
SaveX calls Save and panics if Save returns an error.
func (*GrantCreate) SetAmount ¶
func (gc *GrantCreate) SetAmount(f float64) *GrantCreate
SetAmount sets the "amount" field.
func (*GrantCreate) SetCreatedAt ¶
func (gc *GrantCreate) SetCreatedAt(t time.Time) *GrantCreate
SetCreatedAt sets the "created_at" field.
func (*GrantCreate) SetDeletedAt ¶
func (gc *GrantCreate) SetDeletedAt(t time.Time) *GrantCreate
SetDeletedAt sets the "deleted_at" field.
func (*GrantCreate) SetEffectiveAt ¶
func (gc *GrantCreate) SetEffectiveAt(t time.Time) *GrantCreate
SetEffectiveAt sets the "effective_at" field.
func (*GrantCreate) SetEntitlement ¶
func (gc *GrantCreate) SetEntitlement(e *Entitlement) *GrantCreate
SetEntitlement sets the "entitlement" edge to the Entitlement entity.
func (*GrantCreate) SetEntitlementID ¶
func (gc *GrantCreate) SetEntitlementID(id string) *GrantCreate
SetEntitlementID sets the "entitlement" edge to the Entitlement entity by ID.
func (*GrantCreate) SetExpiration ¶
func (gc *GrantCreate) SetExpiration(gp grant.ExpirationPeriod) *GrantCreate
SetExpiration sets the "expiration" field.
func (*GrantCreate) SetExpiresAt ¶
func (gc *GrantCreate) SetExpiresAt(t time.Time) *GrantCreate
SetExpiresAt sets the "expires_at" field.
func (*GrantCreate) SetID ¶
func (gc *GrantCreate) SetID(s string) *GrantCreate
SetID sets the "id" field.
func (*GrantCreate) SetMetadata ¶
func (gc *GrantCreate) SetMetadata(m map[string]string) *GrantCreate
SetMetadata sets the "metadata" field.
func (*GrantCreate) SetNamespace ¶
func (gc *GrantCreate) SetNamespace(s string) *GrantCreate
SetNamespace sets the "namespace" field.
func (*GrantCreate) SetNillableCreatedAt ¶
func (gc *GrantCreate) SetNillableCreatedAt(t *time.Time) *GrantCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*GrantCreate) SetNillableDeletedAt ¶
func (gc *GrantCreate) SetNillableDeletedAt(t *time.Time) *GrantCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*GrantCreate) SetNillableID ¶
func (gc *GrantCreate) SetNillableID(s *string) *GrantCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*GrantCreate) SetNillablePriority ¶
func (gc *GrantCreate) SetNillablePriority(u *uint8) *GrantCreate
SetNillablePriority sets the "priority" field if the given value is not nil.
func (*GrantCreate) SetNillableRecurrenceAnchor ¶
func (gc *GrantCreate) SetNillableRecurrenceAnchor(t *time.Time) *GrantCreate
SetNillableRecurrenceAnchor sets the "recurrence_anchor" field if the given value is not nil.
func (*GrantCreate) SetNillableRecurrencePeriod ¶
func (gc *GrantCreate) SetNillableRecurrencePeriod(ri *recurrence.RecurrenceInterval) *GrantCreate
SetNillableRecurrencePeriod sets the "recurrence_period" field if the given value is not nil.
func (*GrantCreate) SetNillableUpdatedAt ¶
func (gc *GrantCreate) SetNillableUpdatedAt(t *time.Time) *GrantCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*GrantCreate) SetNillableVoidedAt ¶
func (gc *GrantCreate) SetNillableVoidedAt(t *time.Time) *GrantCreate
SetNillableVoidedAt sets the "voided_at" field if the given value is not nil.
func (*GrantCreate) SetOwnerID ¶
func (gc *GrantCreate) SetOwnerID(s string) *GrantCreate
SetOwnerID sets the "owner_id" field.
func (*GrantCreate) SetPriority ¶
func (gc *GrantCreate) SetPriority(u uint8) *GrantCreate
SetPriority sets the "priority" field.
func (*GrantCreate) SetRecurrenceAnchor ¶
func (gc *GrantCreate) SetRecurrenceAnchor(t time.Time) *GrantCreate
SetRecurrenceAnchor sets the "recurrence_anchor" field.
func (*GrantCreate) SetRecurrencePeriod ¶
func (gc *GrantCreate) SetRecurrencePeriod(ri recurrence.RecurrenceInterval) *GrantCreate
SetRecurrencePeriod sets the "recurrence_period" field.
func (*GrantCreate) SetResetMaxRollover ¶
func (gc *GrantCreate) SetResetMaxRollover(f float64) *GrantCreate
SetResetMaxRollover sets the "reset_max_rollover" field.
func (*GrantCreate) SetResetMinRollover ¶
func (gc *GrantCreate) SetResetMinRollover(f float64) *GrantCreate
SetResetMinRollover sets the "reset_min_rollover" field.
func (*GrantCreate) SetUpdatedAt ¶
func (gc *GrantCreate) SetUpdatedAt(t time.Time) *GrantCreate
SetUpdatedAt sets the "updated_at" field.
func (*GrantCreate) SetVoidedAt ¶
func (gc *GrantCreate) SetVoidedAt(t time.Time) *GrantCreate
SetVoidedAt sets the "voided_at" field.
type GrantCreateBulk ¶
type GrantCreateBulk struct {
// contains filtered or unexported fields
}
GrantCreateBulk is the builder for creating many Grant entities in bulk.
func (*GrantCreateBulk) Exec ¶
func (gcb *GrantCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*GrantCreateBulk) ExecContext ¶
func (c *GrantCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*GrantCreateBulk) ExecX ¶
func (gcb *GrantCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*GrantCreateBulk) OnConflict ¶
func (gcb *GrantCreateBulk) OnConflict(opts ...sql.ConflictOption) *GrantUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Grant.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.GrantUpsert) {
SetNamespace(v+v).
}).
Exec(ctx)
func (*GrantCreateBulk) OnConflictColumns ¶
func (gcb *GrantCreateBulk) OnConflictColumns(columns ...string) *GrantUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Grant.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*GrantCreateBulk) QueryContext ¶
func (c *GrantCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
type GrantDelete ¶
type GrantDelete struct {
// contains filtered or unexported fields
}
GrantDelete is the builder for deleting a Grant entity.
func (*GrantDelete) Exec ¶
func (gd *GrantDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*GrantDelete) ExecContext ¶
func (c *GrantDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*GrantDelete) ExecX ¶
func (gd *GrantDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*GrantDelete) QueryContext ¶
func (c *GrantDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*GrantDelete) Where ¶
func (gd *GrantDelete) Where(ps ...predicate.Grant) *GrantDelete
Where appends a list predicates to the GrantDelete builder.
type GrantDeleteOne ¶
type GrantDeleteOne struct {
// contains filtered or unexported fields
}
GrantDeleteOne is the builder for deleting a single Grant entity.
func (*GrantDeleteOne) Exec ¶
func (gdo *GrantDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*GrantDeleteOne) ExecX ¶
func (gdo *GrantDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*GrantDeleteOne) Where ¶
func (gdo *GrantDeleteOne) Where(ps ...predicate.Grant) *GrantDeleteOne
Where appends a list predicates to the GrantDelete builder.
type GrantEdges ¶
type GrantEdges struct {
// Entitlement holds the value of the entitlement edge.
Entitlement *Entitlement `json:"entitlement,omitempty"`
// contains filtered or unexported fields
}
GrantEdges holds the relations/edges for other nodes in the graph.
func (GrantEdges) EntitlementOrErr ¶
func (e GrantEdges) EntitlementOrErr() (*Entitlement, error)
EntitlementOrErr returns the Entitlement value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type GrantGroupBy ¶
type GrantGroupBy struct {
// contains filtered or unexported fields
}
GrantGroupBy is the group-by builder for Grant entities.
func (*GrantGroupBy) Aggregate ¶
func (ggb *GrantGroupBy) Aggregate(fns ...AggregateFunc) *GrantGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*GrantGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*GrantGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*GrantGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*GrantGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*GrantGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*GrantGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*GrantGroupBy) Scan ¶
func (ggb *GrantGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*GrantGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type GrantMutation ¶
type GrantMutation struct {
// contains filtered or unexported fields
}
GrantMutation represents an operation that mutates the Grant nodes in the graph.
func (*GrantMutation) AddAmount ¶
func (m *GrantMutation) AddAmount(f float64)
AddAmount adds f to the "amount" field.
func (*GrantMutation) AddField ¶
func (m *GrantMutation) 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 (*GrantMutation) AddPriority ¶
func (m *GrantMutation) AddPriority(u int8)
AddPriority adds u to the "priority" field.
func (*GrantMutation) AddResetMaxRollover ¶
func (m *GrantMutation) AddResetMaxRollover(f float64)
AddResetMaxRollover adds f to the "reset_max_rollover" field.
func (*GrantMutation) AddResetMinRollover ¶
func (m *GrantMutation) AddResetMinRollover(f float64)
AddResetMinRollover adds f to the "reset_min_rollover" field.
func (*GrantMutation) AddedAmount ¶
func (m *GrantMutation) AddedAmount() (r float64, exists bool)
AddedAmount returns the value that was added to the "amount" field in this mutation.
func (*GrantMutation) AddedEdges ¶
func (m *GrantMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*GrantMutation) AddedField ¶
func (m *GrantMutation) 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 (*GrantMutation) AddedFields ¶
func (m *GrantMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*GrantMutation) AddedIDs ¶
func (m *GrantMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*GrantMutation) AddedPriority ¶
func (m *GrantMutation) AddedPriority() (r int8, exists bool)
AddedPriority returns the value that was added to the "priority" field in this mutation.
func (*GrantMutation) AddedResetMaxRollover ¶
func (m *GrantMutation) AddedResetMaxRollover() (r float64, exists bool)
AddedResetMaxRollover returns the value that was added to the "reset_max_rollover" field in this mutation.
func (*GrantMutation) AddedResetMinRollover ¶
func (m *GrantMutation) AddedResetMinRollover() (r float64, exists bool)
AddedResetMinRollover returns the value that was added to the "reset_min_rollover" field in this mutation.
func (*GrantMutation) Amount ¶
func (m *GrantMutation) Amount() (r float64, exists bool)
Amount returns the value of the "amount" field in the mutation.
func (*GrantMutation) ClearDeletedAt ¶
func (m *GrantMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*GrantMutation) ClearEdge ¶
func (m *GrantMutation) 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 (*GrantMutation) ClearEntitlement ¶
func (m *GrantMutation) ClearEntitlement()
ClearEntitlement clears the "entitlement" edge to the Entitlement entity.
func (*GrantMutation) ClearField ¶
func (m *GrantMutation) 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 (*GrantMutation) ClearMetadata ¶
func (m *GrantMutation) ClearMetadata()
ClearMetadata clears the value of the "metadata" field.
func (*GrantMutation) ClearRecurrenceAnchor ¶
func (m *GrantMutation) ClearRecurrenceAnchor()
ClearRecurrenceAnchor clears the value of the "recurrence_anchor" field.
func (*GrantMutation) ClearRecurrencePeriod ¶
func (m *GrantMutation) ClearRecurrencePeriod()
ClearRecurrencePeriod clears the value of the "recurrence_period" field.
func (*GrantMutation) ClearVoidedAt ¶
func (m *GrantMutation) ClearVoidedAt()
ClearVoidedAt clears the value of the "voided_at" field.
func (*GrantMutation) ClearedEdges ¶
func (m *GrantMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*GrantMutation) ClearedFields ¶
func (m *GrantMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (GrantMutation) Client ¶
func (m GrantMutation) 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 (*GrantMutation) CreatedAt ¶
func (m *GrantMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*GrantMutation) DeletedAt ¶
func (m *GrantMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*GrantMutation) DeletedAtCleared ¶
func (m *GrantMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*GrantMutation) EdgeCleared ¶
func (m *GrantMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*GrantMutation) EffectiveAt ¶
func (m *GrantMutation) EffectiveAt() (r time.Time, exists bool)
EffectiveAt returns the value of the "effective_at" field in the mutation.
func (*GrantMutation) EntitlementCleared ¶
func (m *GrantMutation) EntitlementCleared() bool
EntitlementCleared reports if the "entitlement" edge to the Entitlement entity was cleared.
func (*GrantMutation) EntitlementID ¶
func (m *GrantMutation) EntitlementID() (id string, exists bool)
EntitlementID returns the "entitlement" edge ID in the mutation.
func (*GrantMutation) EntitlementIDs ¶
func (m *GrantMutation) EntitlementIDs() (ids []string)
EntitlementIDs returns the "entitlement" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use EntitlementID instead. It exists only for internal usage by the builders.
func (*GrantMutation) ExecContext ¶
func (c *GrantMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*GrantMutation) Expiration ¶
func (m *GrantMutation) Expiration() (r grant.ExpirationPeriod, exists bool)
Expiration returns the value of the "expiration" field in the mutation.
func (*GrantMutation) ExpiresAt ¶
func (m *GrantMutation) ExpiresAt() (r time.Time, exists bool)
ExpiresAt returns the value of the "expires_at" field in the mutation.
func (*GrantMutation) Field ¶
func (m *GrantMutation) 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 (*GrantMutation) FieldCleared ¶
func (m *GrantMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*GrantMutation) Fields ¶
func (m *GrantMutation) 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 (*GrantMutation) ID ¶
func (m *GrantMutation) ID() (id string, 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 (*GrantMutation) IDs ¶
func (m *GrantMutation) IDs(ctx context.Context) ([]string, error)
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 (*GrantMutation) Metadata ¶
func (m *GrantMutation) Metadata() (r map[string]string, exists bool)
Metadata returns the value of the "metadata" field in the mutation.
func (*GrantMutation) MetadataCleared ¶
func (m *GrantMutation) MetadataCleared() bool
MetadataCleared returns if the "metadata" field was cleared in this mutation.
func (*GrantMutation) Namespace ¶
func (m *GrantMutation) Namespace() (r string, exists bool)
Namespace returns the value of the "namespace" field in the mutation.
func (*GrantMutation) OldAmount ¶
func (m *GrantMutation) OldAmount(ctx context.Context) (v float64, err error)
OldAmount returns the old "amount" field's value of the Grant entity. If the Grant 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 (*GrantMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Grant entity. If the Grant 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 (*GrantMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the Grant entity. If the Grant 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 (*GrantMutation) OldEffectiveAt ¶
OldEffectiveAt returns the old "effective_at" field's value of the Grant entity. If the Grant 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 (*GrantMutation) OldExpiration ¶
func (m *GrantMutation) OldExpiration(ctx context.Context) (v grant.ExpirationPeriod, err error)
OldExpiration returns the old "expiration" field's value of the Grant entity. If the Grant 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 (*GrantMutation) OldExpiresAt ¶
OldExpiresAt returns the old "expires_at" field's value of the Grant entity. If the Grant 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 (*GrantMutation) OldField ¶
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 (*GrantMutation) OldMetadata ¶
OldMetadata returns the old "metadata" field's value of the Grant entity. If the Grant 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 (*GrantMutation) OldNamespace ¶
func (m *GrantMutation) OldNamespace(ctx context.Context) (v string, err error)
OldNamespace returns the old "namespace" field's value of the Grant entity. If the Grant 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 (*GrantMutation) OldOwnerID ¶
func (m *GrantMutation) OldOwnerID(ctx context.Context) (v string, err error)
OldOwnerID returns the old "owner_id" field's value of the Grant entity. If the Grant 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 (*GrantMutation) OldPriority ¶
func (m *GrantMutation) OldPriority(ctx context.Context) (v uint8, err error)
OldPriority returns the old "priority" field's value of the Grant entity. If the Grant 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 (*GrantMutation) OldRecurrenceAnchor ¶
OldRecurrenceAnchor returns the old "recurrence_anchor" field's value of the Grant entity. If the Grant 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 (*GrantMutation) OldRecurrencePeriod ¶
func (m *GrantMutation) OldRecurrencePeriod(ctx context.Context) (v *recurrence.RecurrenceInterval, err error)
OldRecurrencePeriod returns the old "recurrence_period" field's value of the Grant entity. If the Grant 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 (*GrantMutation) OldResetMaxRollover ¶
func (m *GrantMutation) OldResetMaxRollover(ctx context.Context) (v float64, err error)
OldResetMaxRollover returns the old "reset_max_rollover" field's value of the Grant entity. If the Grant 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 (*GrantMutation) OldResetMinRollover ¶
func (m *GrantMutation) OldResetMinRollover(ctx context.Context) (v float64, err error)
OldResetMinRollover returns the old "reset_min_rollover" field's value of the Grant entity. If the Grant 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 (*GrantMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Grant entity. If the Grant 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 (*GrantMutation) OldVoidedAt ¶
OldVoidedAt returns the old "voided_at" field's value of the Grant entity. If the Grant 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 (*GrantMutation) OwnerID ¶
func (m *GrantMutation) OwnerID() (r string, exists bool)
OwnerID returns the value of the "owner_id" field in the mutation.
func (*GrantMutation) Priority ¶
func (m *GrantMutation) Priority() (r uint8, exists bool)
Priority returns the value of the "priority" field in the mutation.
func (*GrantMutation) QueryContext ¶
func (c *GrantMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*GrantMutation) RecurrenceAnchor ¶
func (m *GrantMutation) RecurrenceAnchor() (r time.Time, exists bool)
RecurrenceAnchor returns the value of the "recurrence_anchor" field in the mutation.
func (*GrantMutation) RecurrenceAnchorCleared ¶
func (m *GrantMutation) RecurrenceAnchorCleared() bool
RecurrenceAnchorCleared returns if the "recurrence_anchor" field was cleared in this mutation.
func (*GrantMutation) RecurrencePeriod ¶
func (m *GrantMutation) RecurrencePeriod() (r recurrence.RecurrenceInterval, exists bool)
RecurrencePeriod returns the value of the "recurrence_period" field in the mutation.
func (*GrantMutation) RecurrencePeriodCleared ¶
func (m *GrantMutation) RecurrencePeriodCleared() bool
RecurrencePeriodCleared returns if the "recurrence_period" field was cleared in this mutation.
func (*GrantMutation) RemovedEdges ¶
func (m *GrantMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*GrantMutation) RemovedIDs ¶
func (m *GrantMutation) 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 (*GrantMutation) ResetAmount ¶
func (m *GrantMutation) ResetAmount()
ResetAmount resets all changes to the "amount" field.
func (*GrantMutation) ResetCreatedAt ¶
func (m *GrantMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*GrantMutation) ResetDeletedAt ¶
func (m *GrantMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*GrantMutation) ResetEdge ¶
func (m *GrantMutation) 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 (*GrantMutation) ResetEffectiveAt ¶
func (m *GrantMutation) ResetEffectiveAt()
ResetEffectiveAt resets all changes to the "effective_at" field.
func (*GrantMutation) ResetEntitlement ¶
func (m *GrantMutation) ResetEntitlement()
ResetEntitlement resets all changes to the "entitlement" edge.
func (*GrantMutation) ResetExpiration ¶
func (m *GrantMutation) ResetExpiration()
ResetExpiration resets all changes to the "expiration" field.
func (*GrantMutation) ResetExpiresAt ¶
func (m *GrantMutation) ResetExpiresAt()
ResetExpiresAt resets all changes to the "expires_at" field.
func (*GrantMutation) ResetField ¶
func (m *GrantMutation) 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 (*GrantMutation) ResetMaxRollover ¶
func (m *GrantMutation) ResetMaxRollover() (r float64, exists bool)
ResetMaxRollover returns the value of the "reset_max_rollover" field in the mutation.
func (*GrantMutation) ResetMetadata ¶
func (m *GrantMutation) ResetMetadata()
ResetMetadata resets all changes to the "metadata" field.
func (*GrantMutation) ResetMinRollover ¶
func (m *GrantMutation) ResetMinRollover() (r float64, exists bool)
ResetMinRollover returns the value of the "reset_min_rollover" field in the mutation.
func (*GrantMutation) ResetNamespace ¶
func (m *GrantMutation) ResetNamespace()
ResetNamespace resets all changes to the "namespace" field.
func (*GrantMutation) ResetOwnerID ¶
func (m *GrantMutation) ResetOwnerID()
ResetOwnerID resets all changes to the "owner_id" field.
func (*GrantMutation) ResetPriority ¶
func (m *GrantMutation) ResetPriority()
ResetPriority resets all changes to the "priority" field.
func (*GrantMutation) ResetRecurrenceAnchor ¶
func (m *GrantMutation) ResetRecurrenceAnchor()
ResetRecurrenceAnchor resets all changes to the "recurrence_anchor" field.
func (*GrantMutation) ResetRecurrencePeriod ¶
func (m *GrantMutation) ResetRecurrencePeriod()
ResetRecurrencePeriod resets all changes to the "recurrence_period" field.
func (*GrantMutation) ResetResetMaxRollover ¶
func (m *GrantMutation) ResetResetMaxRollover()
ResetResetMaxRollover resets all changes to the "reset_max_rollover" field.
func (*GrantMutation) ResetResetMinRollover ¶
func (m *GrantMutation) ResetResetMinRollover()
ResetResetMinRollover resets all changes to the "reset_min_rollover" field.
func (*GrantMutation) ResetUpdatedAt ¶
func (m *GrantMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*GrantMutation) ResetVoidedAt ¶
func (m *GrantMutation) ResetVoidedAt()
ResetVoidedAt resets all changes to the "voided_at" field.
func (*GrantMutation) SetAmount ¶
func (m *GrantMutation) SetAmount(f float64)
SetAmount sets the "amount" field.
func (*GrantMutation) SetCreatedAt ¶
func (m *GrantMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*GrantMutation) SetDeletedAt ¶
func (m *GrantMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*GrantMutation) SetEffectiveAt ¶
func (m *GrantMutation) SetEffectiveAt(t time.Time)
SetEffectiveAt sets the "effective_at" field.
func (*GrantMutation) SetEntitlementID ¶
func (m *GrantMutation) SetEntitlementID(id string)
SetEntitlementID sets the "entitlement" edge to the Entitlement entity by id.
func (*GrantMutation) SetExpiration ¶
func (m *GrantMutation) SetExpiration(gp grant.ExpirationPeriod)
SetExpiration sets the "expiration" field.
func (*GrantMutation) SetExpiresAt ¶
func (m *GrantMutation) SetExpiresAt(t time.Time)
SetExpiresAt sets the "expires_at" field.
func (*GrantMutation) SetField ¶
func (m *GrantMutation) 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 (*GrantMutation) SetID ¶
func (m *GrantMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Grant entities.
func (*GrantMutation) SetMetadata ¶
func (m *GrantMutation) SetMetadata(value map[string]string)
SetMetadata sets the "metadata" field.
func (*GrantMutation) SetNamespace ¶
func (m *GrantMutation) SetNamespace(s string)
SetNamespace sets the "namespace" field.
func (*GrantMutation) SetOp ¶
func (m *GrantMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*GrantMutation) SetOwnerID ¶
func (m *GrantMutation) SetOwnerID(s string)
SetOwnerID sets the "owner_id" field.
func (*GrantMutation) SetPriority ¶
func (m *GrantMutation) SetPriority(u uint8)
SetPriority sets the "priority" field.
func (*GrantMutation) SetRecurrenceAnchor ¶
func (m *GrantMutation) SetRecurrenceAnchor(t time.Time)
SetRecurrenceAnchor sets the "recurrence_anchor" field.
func (*GrantMutation) SetRecurrencePeriod ¶
func (m *GrantMutation) SetRecurrencePeriod(ri recurrence.RecurrenceInterval)
SetRecurrencePeriod sets the "recurrence_period" field.
func (*GrantMutation) SetResetMaxRollover ¶
func (m *GrantMutation) SetResetMaxRollover(f float64)
SetResetMaxRollover sets the "reset_max_rollover" field.
func (*GrantMutation) SetResetMinRollover ¶
func (m *GrantMutation) SetResetMinRollover(f float64)
SetResetMinRollover sets the "reset_min_rollover" field.
func (*GrantMutation) SetUpdatedAt ¶
func (m *GrantMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*GrantMutation) SetVoidedAt ¶
func (m *GrantMutation) SetVoidedAt(t time.Time)
SetVoidedAt sets the "voided_at" field.
func (GrantMutation) Tx ¶
func (m GrantMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*GrantMutation) Type ¶
func (m *GrantMutation) Type() string
Type returns the node type of this mutation (Grant).
func (*GrantMutation) UpdatedAt ¶
func (m *GrantMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*GrantMutation) VoidedAt ¶
func (m *GrantMutation) VoidedAt() (r time.Time, exists bool)
VoidedAt returns the value of the "voided_at" field in the mutation.
func (*GrantMutation) VoidedAtCleared ¶
func (m *GrantMutation) VoidedAtCleared() bool
VoidedAtCleared returns if the "voided_at" field was cleared in this mutation.
func (*GrantMutation) Where ¶
func (m *GrantMutation) Where(ps ...predicate.Grant)
Where appends a list predicates to the GrantMutation builder.
func (*GrantMutation) WhereP ¶
func (m *GrantMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the GrantMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type GrantQuery ¶
type GrantQuery struct {
// contains filtered or unexported fields
}
GrantQuery is the builder for querying Grant entities.
func (*GrantQuery) Aggregate ¶
func (gq *GrantQuery) Aggregate(fns ...AggregateFunc) *GrantSelect
Aggregate returns a GrantSelect configured with the given aggregations.
func (*GrantQuery) All ¶
func (gq *GrantQuery) All(ctx context.Context) ([]*Grant, error)
All executes the query and returns a list of Grants.
func (*GrantQuery) AllX ¶
func (gq *GrantQuery) AllX(ctx context.Context) []*Grant
AllX is like All, but panics if an error occurs.
func (*GrantQuery) Clone ¶
func (gq *GrantQuery) Clone() *GrantQuery
Clone returns a duplicate of the GrantQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*GrantQuery) Count ¶
func (gq *GrantQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*GrantQuery) CountX ¶
func (gq *GrantQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*GrantQuery) ExecContext ¶
func (c *GrantQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*GrantQuery) Exist ¶
func (gq *GrantQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*GrantQuery) ExistX ¶
func (gq *GrantQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*GrantQuery) First ¶
func (gq *GrantQuery) First(ctx context.Context) (*Grant, error)
First returns the first Grant entity from the query. Returns a *NotFoundError when no Grant was found.
func (*GrantQuery) FirstID ¶
func (gq *GrantQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first Grant ID from the query. Returns a *NotFoundError when no Grant ID was found.
func (*GrantQuery) FirstIDX ¶
func (gq *GrantQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*GrantQuery) FirstX ¶
func (gq *GrantQuery) FirstX(ctx context.Context) *Grant
FirstX is like First, but panics if an error occurs.
func (*GrantQuery) ForShare ¶
func (gq *GrantQuery) ForShare(opts ...sql.LockOption) *GrantQuery
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 (*GrantQuery) ForUpdate ¶
func (gq *GrantQuery) ForUpdate(opts ...sql.LockOption) *GrantQuery
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 (*GrantQuery) GroupBy ¶
func (gq *GrantQuery) GroupBy(field string, fields ...string) *GrantGroupBy
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 {
Namespace string `json:"namespace,omitempty"`
Count int `json:"count,omitempty"`
}
client.Grant.Query().
GroupBy(dbgrant.FieldNamespace).
Aggregate(db.Count()).
Scan(ctx, &v)
func (*GrantQuery) IDs ¶
func (gq *GrantQuery) IDs(ctx context.Context) (ids []string, err error)
IDs executes the query and returns a list of Grant IDs.
func (*GrantQuery) IDsX ¶
func (gq *GrantQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*GrantQuery) Limit ¶
func (gq *GrantQuery) Limit(limit int) *GrantQuery
Limit the number of records to be returned by this query.
func (*GrantQuery) Offset ¶
func (gq *GrantQuery) Offset(offset int) *GrantQuery
Offset to start from.
func (*GrantQuery) Only ¶
func (gq *GrantQuery) Only(ctx context.Context) (*Grant, error)
Only returns a single Grant entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Grant entity is found. Returns a *NotFoundError when no Grant entities are found.
func (*GrantQuery) OnlyID ¶
func (gq *GrantQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only Grant ID in the query. Returns a *NotSingularError when more than one Grant ID is found. Returns a *NotFoundError when no entities are found.
func (*GrantQuery) OnlyIDX ¶
func (gq *GrantQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*GrantQuery) OnlyX ¶
func (gq *GrantQuery) OnlyX(ctx context.Context) *Grant
OnlyX is like Only, but panics if an error occurs.
func (*GrantQuery) Order ¶
func (gq *GrantQuery) Order(o ...dbgrant.OrderOption) *GrantQuery
Order specifies how the records should be ordered.
func (*GrantQuery) Paginate ¶
func (gr *GrantQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*Grant], error)
Paginate runs the query and returns a paginated response. If page is its 0 value then it will return all the items and populate the response page accordingly.
func (*GrantQuery) QueryContext ¶
func (c *GrantQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*GrantQuery) QueryEntitlement ¶
func (gq *GrantQuery) QueryEntitlement() *EntitlementQuery
QueryEntitlement chains the current query on the "entitlement" edge.
func (*GrantQuery) Select ¶
func (gq *GrantQuery) Select(fields ...string) *GrantSelect
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 {
Namespace string `json:"namespace,omitempty"`
}
client.Grant.Query().
Select(dbgrant.FieldNamespace).
Scan(ctx, &v)
func (*GrantQuery) Unique ¶
func (gq *GrantQuery) Unique(unique bool) *GrantQuery
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 (*GrantQuery) Where ¶
func (gq *GrantQuery) Where(ps ...predicate.Grant) *GrantQuery
Where adds a new predicate for the GrantQuery builder.
func (*GrantQuery) WithEntitlement ¶
func (gq *GrantQuery) WithEntitlement(opts ...func(*EntitlementQuery)) *GrantQuery
WithEntitlement tells the query-builder to eager-load the nodes that are connected to the "entitlement" edge. The optional arguments are used to configure the query builder of the edge.
type GrantSelect ¶
type GrantSelect struct {
*GrantQuery
// contains filtered or unexported fields
}
GrantSelect is the builder for selecting fields of Grant entities.
func (*GrantSelect) Aggregate ¶
func (gs *GrantSelect) Aggregate(fns ...AggregateFunc) *GrantSelect
Aggregate adds the given aggregation functions to the selector query.
func (*GrantSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*GrantSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (GrantSelect) ExecContext ¶
func (c GrantSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*GrantSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*GrantSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*GrantSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*GrantSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (GrantSelect) QueryContext ¶
func (c GrantSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*GrantSelect) Scan ¶
func (gs *GrantSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*GrantSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type GrantUpdate ¶
type GrantUpdate struct {
// contains filtered or unexported fields
}
GrantUpdate is the builder for updating Grant entities.
func (*GrantUpdate) ClearDeletedAt ¶
func (gu *GrantUpdate) ClearDeletedAt() *GrantUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*GrantUpdate) ClearMetadata ¶
func (gu *GrantUpdate) ClearMetadata() *GrantUpdate
ClearMetadata clears the value of the "metadata" field.
func (*GrantUpdate) ClearVoidedAt ¶
func (gu *GrantUpdate) ClearVoidedAt() *GrantUpdate
ClearVoidedAt clears the value of the "voided_at" field.
func (*GrantUpdate) Exec ¶
func (gu *GrantUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*GrantUpdate) ExecContext ¶
func (c *GrantUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*GrantUpdate) ExecX ¶
func (gu *GrantUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*GrantUpdate) Mutation ¶
func (gu *GrantUpdate) Mutation() *GrantMutation
Mutation returns the GrantMutation object of the builder.
func (*GrantUpdate) QueryContext ¶
func (c *GrantUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*GrantUpdate) Save ¶
func (gu *GrantUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*GrantUpdate) SaveX ¶
func (gu *GrantUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*GrantUpdate) SetDeletedAt ¶
func (gu *GrantUpdate) SetDeletedAt(t time.Time) *GrantUpdate
SetDeletedAt sets the "deleted_at" field.
func (*GrantUpdate) SetMetadata ¶
func (gu *GrantUpdate) SetMetadata(m map[string]string) *GrantUpdate
SetMetadata sets the "metadata" field.
func (*GrantUpdate) SetNillableDeletedAt ¶
func (gu *GrantUpdate) SetNillableDeletedAt(t *time.Time) *GrantUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*GrantUpdate) SetNillableVoidedAt ¶
func (gu *GrantUpdate) SetNillableVoidedAt(t *time.Time) *GrantUpdate
SetNillableVoidedAt sets the "voided_at" field if the given value is not nil.
func (*GrantUpdate) SetOrClearDeletedAt ¶
func (u *GrantUpdate) SetOrClearDeletedAt(value *time.Time) *GrantUpdate
func (*GrantUpdate) SetOrClearMetadata ¶
func (u *GrantUpdate) SetOrClearMetadata(value *map[string]string) *GrantUpdate
func (*GrantUpdate) SetOrClearVoidedAt ¶
func (u *GrantUpdate) SetOrClearVoidedAt(value *time.Time) *GrantUpdate
func (*GrantUpdate) SetUpdatedAt ¶
func (gu *GrantUpdate) SetUpdatedAt(t time.Time) *GrantUpdate
SetUpdatedAt sets the "updated_at" field.
func (*GrantUpdate) SetVoidedAt ¶
func (gu *GrantUpdate) SetVoidedAt(t time.Time) *GrantUpdate
SetVoidedAt sets the "voided_at" field.
func (*GrantUpdate) Where ¶
func (gu *GrantUpdate) Where(ps ...predicate.Grant) *GrantUpdate
Where appends a list predicates to the GrantUpdate builder.
type GrantUpdateOne ¶
type GrantUpdateOne struct {
// contains filtered or unexported fields
}
GrantUpdateOne is the builder for updating a single Grant entity.
func (*GrantUpdateOne) ClearDeletedAt ¶
func (guo *GrantUpdateOne) ClearDeletedAt() *GrantUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*GrantUpdateOne) ClearMetadata ¶
func (guo *GrantUpdateOne) ClearMetadata() *GrantUpdateOne
ClearMetadata clears the value of the "metadata" field.
func (*GrantUpdateOne) ClearVoidedAt ¶
func (guo *GrantUpdateOne) ClearVoidedAt() *GrantUpdateOne
ClearVoidedAt clears the value of the "voided_at" field.
func (*GrantUpdateOne) Exec ¶
func (guo *GrantUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*GrantUpdateOne) ExecContext ¶
func (c *GrantUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*GrantUpdateOne) ExecX ¶
func (guo *GrantUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*GrantUpdateOne) Mutation ¶
func (guo *GrantUpdateOne) Mutation() *GrantMutation
Mutation returns the GrantMutation object of the builder.
func (*GrantUpdateOne) QueryContext ¶
func (c *GrantUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*GrantUpdateOne) Save ¶
func (guo *GrantUpdateOne) Save(ctx context.Context) (*Grant, error)
Save executes the query and returns the updated Grant entity.
func (*GrantUpdateOne) SaveX ¶
func (guo *GrantUpdateOne) SaveX(ctx context.Context) *Grant
SaveX is like Save, but panics if an error occurs.
func (*GrantUpdateOne) Select ¶
func (guo *GrantUpdateOne) Select(field string, fields ...string) *GrantUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*GrantUpdateOne) SetDeletedAt ¶
func (guo *GrantUpdateOne) SetDeletedAt(t time.Time) *GrantUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*GrantUpdateOne) SetMetadata ¶
func (guo *GrantUpdateOne) SetMetadata(m map[string]string) *GrantUpdateOne
SetMetadata sets the "metadata" field.
func (*GrantUpdateOne) SetNillableDeletedAt ¶
func (guo *GrantUpdateOne) SetNillableDeletedAt(t *time.Time) *GrantUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*GrantUpdateOne) SetNillableVoidedAt ¶
func (guo *GrantUpdateOne) SetNillableVoidedAt(t *time.Time) *GrantUpdateOne
SetNillableVoidedAt sets the "voided_at" field if the given value is not nil.
func (*GrantUpdateOne) SetOrClearDeletedAt ¶
func (u *GrantUpdateOne) SetOrClearDeletedAt(value *time.Time) *GrantUpdateOne
func (*GrantUpdateOne) SetOrClearMetadata ¶
func (u *GrantUpdateOne) SetOrClearMetadata(value *map[string]string) *GrantUpdateOne
func (*GrantUpdateOne) SetOrClearVoidedAt ¶
func (u *GrantUpdateOne) SetOrClearVoidedAt(value *time.Time) *GrantUpdateOne
func (*GrantUpdateOne) SetUpdatedAt ¶
func (guo *GrantUpdateOne) SetUpdatedAt(t time.Time) *GrantUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*GrantUpdateOne) SetVoidedAt ¶
func (guo *GrantUpdateOne) SetVoidedAt(t time.Time) *GrantUpdateOne
SetVoidedAt sets the "voided_at" field.
func (*GrantUpdateOne) Where ¶
func (guo *GrantUpdateOne) Where(ps ...predicate.Grant) *GrantUpdateOne
Where appends a list predicates to the GrantUpdate builder.
type GrantUpsert ¶
GrantUpsert is the "OnConflict" setter.
func (*GrantUpsert) ClearDeletedAt ¶
func (u *GrantUpsert) ClearDeletedAt() *GrantUpsert
ClearDeletedAt clears the value of the "deleted_at" field.
func (*GrantUpsert) ClearMetadata ¶
func (u *GrantUpsert) ClearMetadata() *GrantUpsert
ClearMetadata clears the value of the "metadata" field.
func (*GrantUpsert) ClearVoidedAt ¶
func (u *GrantUpsert) ClearVoidedAt() *GrantUpsert
ClearVoidedAt clears the value of the "voided_at" field.
func (*GrantUpsert) SetDeletedAt ¶
func (u *GrantUpsert) SetDeletedAt(v time.Time) *GrantUpsert
SetDeletedAt sets the "deleted_at" field.
func (*GrantUpsert) SetMetadata ¶
func (u *GrantUpsert) SetMetadata(v map[string]string) *GrantUpsert
SetMetadata sets the "metadata" field.
func (*GrantUpsert) SetUpdatedAt ¶
func (u *GrantUpsert) SetUpdatedAt(v time.Time) *GrantUpsert
SetUpdatedAt sets the "updated_at" field.
func (*GrantUpsert) SetVoidedAt ¶
func (u *GrantUpsert) SetVoidedAt(v time.Time) *GrantUpsert
SetVoidedAt sets the "voided_at" field.
func (*GrantUpsert) UpdateDeletedAt ¶
func (u *GrantUpsert) UpdateDeletedAt() *GrantUpsert
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*GrantUpsert) UpdateMetadata ¶
func (u *GrantUpsert) UpdateMetadata() *GrantUpsert
UpdateMetadata sets the "metadata" field to the value that was provided on create.
func (*GrantUpsert) UpdateUpdatedAt ¶
func (u *GrantUpsert) UpdateUpdatedAt() *GrantUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*GrantUpsert) UpdateVoidedAt ¶
func (u *GrantUpsert) UpdateVoidedAt() *GrantUpsert
UpdateVoidedAt sets the "voided_at" field to the value that was provided on create.
type GrantUpsertBulk ¶
type GrantUpsertBulk struct {
// contains filtered or unexported fields
}
GrantUpsertBulk is the builder for "upsert"-ing a bulk of Grant nodes.
func (*GrantUpsertBulk) ClearDeletedAt ¶
func (u *GrantUpsertBulk) ClearDeletedAt() *GrantUpsertBulk
ClearDeletedAt clears the value of the "deleted_at" field.
func (*GrantUpsertBulk) ClearMetadata ¶
func (u *GrantUpsertBulk) ClearMetadata() *GrantUpsertBulk
ClearMetadata clears the value of the "metadata" field.
func (*GrantUpsertBulk) ClearVoidedAt ¶
func (u *GrantUpsertBulk) ClearVoidedAt() *GrantUpsertBulk
ClearVoidedAt clears the value of the "voided_at" field.
func (*GrantUpsertBulk) DoNothing ¶
func (u *GrantUpsertBulk) DoNothing() *GrantUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*GrantUpsertBulk) Exec ¶
func (u *GrantUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*GrantUpsertBulk) ExecX ¶
func (u *GrantUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*GrantUpsertBulk) Ignore ¶
func (u *GrantUpsertBulk) Ignore() *GrantUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Grant.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*GrantUpsertBulk) SetDeletedAt ¶
func (u *GrantUpsertBulk) SetDeletedAt(v time.Time) *GrantUpsertBulk
SetDeletedAt sets the "deleted_at" field.
func (*GrantUpsertBulk) SetMetadata ¶
func (u *GrantUpsertBulk) SetMetadata(v map[string]string) *GrantUpsertBulk
SetMetadata sets the "metadata" field.
func (*GrantUpsertBulk) SetUpdatedAt ¶
func (u *GrantUpsertBulk) SetUpdatedAt(v time.Time) *GrantUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*GrantUpsertBulk) SetVoidedAt ¶
func (u *GrantUpsertBulk) SetVoidedAt(v time.Time) *GrantUpsertBulk
SetVoidedAt sets the "voided_at" field.
func (*GrantUpsertBulk) Update ¶
func (u *GrantUpsertBulk) Update(set func(*GrantUpsert)) *GrantUpsertBulk
Update allows overriding fields `UPDATE` values. See the GrantCreateBulk.OnConflict documentation for more info.
func (*GrantUpsertBulk) UpdateDeletedAt ¶
func (u *GrantUpsertBulk) UpdateDeletedAt() *GrantUpsertBulk
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*GrantUpsertBulk) UpdateMetadata ¶
func (u *GrantUpsertBulk) UpdateMetadata() *GrantUpsertBulk
UpdateMetadata sets the "metadata" field to the value that was provided on create.
func (*GrantUpsertBulk) UpdateNewValues ¶
func (u *GrantUpsertBulk) UpdateNewValues() *GrantUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.Grant.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(dbgrant.FieldID)
}),
).
Exec(ctx)
func (*GrantUpsertBulk) UpdateUpdatedAt ¶
func (u *GrantUpsertBulk) UpdateUpdatedAt() *GrantUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*GrantUpsertBulk) UpdateVoidedAt ¶
func (u *GrantUpsertBulk) UpdateVoidedAt() *GrantUpsertBulk
UpdateVoidedAt sets the "voided_at" field to the value that was provided on create.
type GrantUpsertOne ¶
type GrantUpsertOne struct {
// contains filtered or unexported fields
}
GrantUpsertOne is the builder for "upsert"-ing
one Grant node.
func (*GrantUpsertOne) ClearDeletedAt ¶
func (u *GrantUpsertOne) ClearDeletedAt() *GrantUpsertOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*GrantUpsertOne) ClearMetadata ¶
func (u *GrantUpsertOne) ClearMetadata() *GrantUpsertOne
ClearMetadata clears the value of the "metadata" field.
func (*GrantUpsertOne) ClearVoidedAt ¶
func (u *GrantUpsertOne) ClearVoidedAt() *GrantUpsertOne
ClearVoidedAt clears the value of the "voided_at" field.
func (*GrantUpsertOne) DoNothing ¶
func (u *GrantUpsertOne) DoNothing() *GrantUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*GrantUpsertOne) Exec ¶
func (u *GrantUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*GrantUpsertOne) ExecX ¶
func (u *GrantUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*GrantUpsertOne) ID ¶
func (u *GrantUpsertOne) ID(ctx context.Context) (id string, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*GrantUpsertOne) IDX ¶
func (u *GrantUpsertOne) IDX(ctx context.Context) string
IDX is like ID, but panics if an error occurs.
func (*GrantUpsertOne) Ignore ¶
func (u *GrantUpsertOne) Ignore() *GrantUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Grant.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*GrantUpsertOne) SetDeletedAt ¶
func (u *GrantUpsertOne) SetDeletedAt(v time.Time) *GrantUpsertOne
SetDeletedAt sets the "deleted_at" field.
func (*GrantUpsertOne) SetMetadata ¶
func (u *GrantUpsertOne) SetMetadata(v map[string]string) *GrantUpsertOne
SetMetadata sets the "metadata" field.
func (*GrantUpsertOne) SetUpdatedAt ¶
func (u *GrantUpsertOne) SetUpdatedAt(v time.Time) *GrantUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*GrantUpsertOne) SetVoidedAt ¶
func (u *GrantUpsertOne) SetVoidedAt(v time.Time) *GrantUpsertOne
SetVoidedAt sets the "voided_at" field.
func (*GrantUpsertOne) Update ¶
func (u *GrantUpsertOne) Update(set func(*GrantUpsert)) *GrantUpsertOne
Update allows overriding fields `UPDATE` values. See the GrantCreate.OnConflict documentation for more info.
func (*GrantUpsertOne) UpdateDeletedAt ¶
func (u *GrantUpsertOne) UpdateDeletedAt() *GrantUpsertOne
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*GrantUpsertOne) UpdateMetadata ¶
func (u *GrantUpsertOne) UpdateMetadata() *GrantUpsertOne
UpdateMetadata sets the "metadata" field to the value that was provided on create.
func (*GrantUpsertOne) UpdateNewValues ¶
func (u *GrantUpsertOne) UpdateNewValues() *GrantUpsertOne
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.Grant.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(dbgrant.FieldID)
}),
).
Exec(ctx)
func (*GrantUpsertOne) UpdateUpdatedAt ¶
func (u *GrantUpsertOne) UpdateUpdatedAt() *GrantUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*GrantUpsertOne) UpdateVoidedAt ¶
func (u *GrantUpsertOne) UpdateVoidedAt() *GrantUpsertOne
UpdateVoidedAt sets the "voided_at" field to the value that was provided on create.
type InterceptFunc ¶
type InterceptFunc = ent.InterceptFunc
ent aliases to avoid import conflicts in user's code.
type Interceptor ¶
type Interceptor = ent.Interceptor
ent aliases to avoid import conflicts in user's code.
type MutateFunc ¶
type MutateFunc = ent.MutateFunc
ent aliases to avoid import conflicts in user's code.
type NotFoundError ¶
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 (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
Error implements the error interface.
type NotLoadedError ¶
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 ¶
func (e *NotLoadedError) Error() string
Error implements the error interface.
type NotSingularError ¶
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 ¶
func (e *NotSingularError) Error() string
Error implements the error interface.
type NotificationChannel ¶
type NotificationChannel struct {
// ID of the ent.
ID string `json:"id,omitempty"`
// Namespace holds the value of the "namespace" field.
Namespace string `json:"namespace,omitempty"`
// CreatedAt holds the value of the "created_at" field.
CreatedAt time.Time `json:"created_at,omitempty"`
// UpdatedAt holds the value of the "updated_at" field.
UpdatedAt time.Time `json:"updated_at,omitempty"`
// DeletedAt holds the value of the "deleted_at" field.
DeletedAt *time.Time `json:"deleted_at,omitempty"`
// Type holds the value of the "type" field.
Type notification.ChannelType `json:"type,omitempty"`
// Name holds the value of the "name" field.
Name string `json:"name,omitempty"`
// Disabled holds the value of the "disabled" field.
Disabled bool `json:"disabled,omitempty"`
// Config holds the value of the "config" field.
Config notification.ChannelConfig `json:"config,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the NotificationChannelQuery when eager-loading is set.
Edges NotificationChannelEdges `json:"edges"`
// contains filtered or unexported fields
}
NotificationChannel is the model entity for the NotificationChannel schema.
func (*NotificationChannel) ExecContext ¶
func (c *NotificationChannel) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationChannel) QueryContext ¶
func (c *NotificationChannel) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationChannel) QueryRules ¶
func (nc *NotificationChannel) QueryRules() *NotificationRuleQuery
QueryRules queries the "rules" edge of the NotificationChannel entity.
func (*NotificationChannel) String ¶
func (nc *NotificationChannel) String() string
String implements the fmt.Stringer.
func (*NotificationChannel) Unwrap ¶
func (nc *NotificationChannel) Unwrap() *NotificationChannel
Unwrap unwraps the NotificationChannel 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 (*NotificationChannel) Update ¶
func (nc *NotificationChannel) Update() *NotificationChannelUpdateOne
Update returns a builder for updating this NotificationChannel. Note that you need to call NotificationChannel.Unwrap() before calling this method if this NotificationChannel was returned from a transaction, and the transaction was committed or rolled back.
type NotificationChannelClient ¶
type NotificationChannelClient struct {
// contains filtered or unexported fields
}
NotificationChannelClient is a client for the NotificationChannel schema.
func NewNotificationChannelClient ¶
func NewNotificationChannelClient(c config) *NotificationChannelClient
NewNotificationChannelClient returns a client for the NotificationChannel from the given config.
func (*NotificationChannelClient) Create ¶
func (c *NotificationChannelClient) Create() *NotificationChannelCreate
Create returns a builder for creating a NotificationChannel entity.
func (*NotificationChannelClient) CreateBulk ¶
func (c *NotificationChannelClient) CreateBulk(builders ...*NotificationChannelCreate) *NotificationChannelCreateBulk
CreateBulk returns a builder for creating a bulk of NotificationChannel entities.
func (*NotificationChannelClient) Delete ¶
func (c *NotificationChannelClient) Delete() *NotificationChannelDelete
Delete returns a delete builder for NotificationChannel.
func (*NotificationChannelClient) DeleteOne ¶
func (c *NotificationChannelClient) DeleteOne(nc *NotificationChannel) *NotificationChannelDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*NotificationChannelClient) DeleteOneID ¶
func (c *NotificationChannelClient) DeleteOneID(id string) *NotificationChannelDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*NotificationChannelClient) ExecContext ¶
func (c *NotificationChannelClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationChannelClient) Get ¶
func (c *NotificationChannelClient) Get(ctx context.Context, id string) (*NotificationChannel, error)
Get returns a NotificationChannel entity by its id.
func (*NotificationChannelClient) GetX ¶
func (c *NotificationChannelClient) GetX(ctx context.Context, id string) *NotificationChannel
GetX is like Get, but panics if an error occurs.
func (*NotificationChannelClient) Hooks ¶
func (c *NotificationChannelClient) Hooks() []Hook
Hooks returns the client hooks.
func (*NotificationChannelClient) Intercept ¶
func (c *NotificationChannelClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `notificationchannel.Intercept(f(g(h())))`.
func (*NotificationChannelClient) Interceptors ¶
func (c *NotificationChannelClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*NotificationChannelClient) MapCreateBulk ¶
func (c *NotificationChannelClient) MapCreateBulk(slice any, setFunc func(*NotificationChannelCreate, int)) *NotificationChannelCreateBulk
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 (*NotificationChannelClient) Query ¶
func (c *NotificationChannelClient) Query() *NotificationChannelQuery
Query returns a query builder for NotificationChannel.
func (*NotificationChannelClient) QueryContext ¶
func (c *NotificationChannelClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationChannelClient) QueryRules ¶
func (c *NotificationChannelClient) QueryRules(nc *NotificationChannel) *NotificationRuleQuery
QueryRules queries the rules edge of a NotificationChannel.
func (*NotificationChannelClient) Update ¶
func (c *NotificationChannelClient) Update() *NotificationChannelUpdate
Update returns an update builder for NotificationChannel.
func (*NotificationChannelClient) UpdateOne ¶
func (c *NotificationChannelClient) UpdateOne(nc *NotificationChannel) *NotificationChannelUpdateOne
UpdateOne returns an update builder for the given entity.
func (*NotificationChannelClient) UpdateOneID ¶
func (c *NotificationChannelClient) UpdateOneID(id string) *NotificationChannelUpdateOne
UpdateOneID returns an update builder for the given id.
func (*NotificationChannelClient) Use ¶
func (c *NotificationChannelClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `notificationchannel.Hooks(f(g(h())))`.
type NotificationChannelCreate ¶
type NotificationChannelCreate struct {
// contains filtered or unexported fields
}
NotificationChannelCreate is the builder for creating a NotificationChannel entity.
func (*NotificationChannelCreate) AddRuleIDs ¶
func (ncc *NotificationChannelCreate) AddRuleIDs(ids ...string) *NotificationChannelCreate
AddRuleIDs adds the "rules" edge to the NotificationRule entity by IDs.
func (*NotificationChannelCreate) AddRules ¶
func (ncc *NotificationChannelCreate) AddRules(n ...*NotificationRule) *NotificationChannelCreate
AddRules adds the "rules" edges to the NotificationRule entity.
func (*NotificationChannelCreate) Exec ¶
func (ncc *NotificationChannelCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*NotificationChannelCreate) ExecContext ¶
func (c *NotificationChannelCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationChannelCreate) ExecX ¶
func (ncc *NotificationChannelCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NotificationChannelCreate) Mutation ¶
func (ncc *NotificationChannelCreate) Mutation() *NotificationChannelMutation
Mutation returns the NotificationChannelMutation object of the builder.
func (*NotificationChannelCreate) OnConflict ¶
func (ncc *NotificationChannelCreate) OnConflict(opts ...sql.ConflictOption) *NotificationChannelUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.NotificationChannel.Create().
SetNamespace(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.NotificationChannelUpsert) {
SetNamespace(v+v).
}).
Exec(ctx)
func (*NotificationChannelCreate) OnConflictColumns ¶
func (ncc *NotificationChannelCreate) OnConflictColumns(columns ...string) *NotificationChannelUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.NotificationChannel.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*NotificationChannelCreate) QueryContext ¶
func (c *NotificationChannelCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationChannelCreate) Save ¶
func (ncc *NotificationChannelCreate) Save(ctx context.Context) (*NotificationChannel, error)
Save creates the NotificationChannel in the database.
func (*NotificationChannelCreate) SaveX ¶
func (ncc *NotificationChannelCreate) SaveX(ctx context.Context) *NotificationChannel
SaveX calls Save and panics if Save returns an error.
func (*NotificationChannelCreate) SetConfig ¶
func (ncc *NotificationChannelCreate) SetConfig(nc notification.ChannelConfig) *NotificationChannelCreate
SetConfig sets the "config" field.
func (*NotificationChannelCreate) SetCreatedAt ¶
func (ncc *NotificationChannelCreate) SetCreatedAt(t time.Time) *NotificationChannelCreate
SetCreatedAt sets the "created_at" field.
func (*NotificationChannelCreate) SetDeletedAt ¶
func (ncc *NotificationChannelCreate) SetDeletedAt(t time.Time) *NotificationChannelCreate
SetDeletedAt sets the "deleted_at" field.
func (*NotificationChannelCreate) SetDisabled ¶
func (ncc *NotificationChannelCreate) SetDisabled(b bool) *NotificationChannelCreate
SetDisabled sets the "disabled" field.
func (*NotificationChannelCreate) SetID ¶
func (ncc *NotificationChannelCreate) SetID(s string) *NotificationChannelCreate
SetID sets the "id" field.
func (*NotificationChannelCreate) SetName ¶
func (ncc *NotificationChannelCreate) SetName(s string) *NotificationChannelCreate
SetName sets the "name" field.
func (*NotificationChannelCreate) SetNamespace ¶
func (ncc *NotificationChannelCreate) SetNamespace(s string) *NotificationChannelCreate
SetNamespace sets the "namespace" field.
func (*NotificationChannelCreate) SetNillableCreatedAt ¶
func (ncc *NotificationChannelCreate) SetNillableCreatedAt(t *time.Time) *NotificationChannelCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*NotificationChannelCreate) SetNillableDeletedAt ¶
func (ncc *NotificationChannelCreate) SetNillableDeletedAt(t *time.Time) *NotificationChannelCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*NotificationChannelCreate) SetNillableDisabled ¶
func (ncc *NotificationChannelCreate) SetNillableDisabled(b *bool) *NotificationChannelCreate
SetNillableDisabled sets the "disabled" field if the given value is not nil.
func (*NotificationChannelCreate) SetNillableID ¶
func (ncc *NotificationChannelCreate) SetNillableID(s *string) *NotificationChannelCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*NotificationChannelCreate) SetNillableUpdatedAt ¶
func (ncc *NotificationChannelCreate) SetNillableUpdatedAt(t *time.Time) *NotificationChannelCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*NotificationChannelCreate) SetType ¶
func (ncc *NotificationChannelCreate) SetType(nt notification.ChannelType) *NotificationChannelCreate
SetType sets the "type" field.
func (*NotificationChannelCreate) SetUpdatedAt ¶
func (ncc *NotificationChannelCreate) SetUpdatedAt(t time.Time) *NotificationChannelCreate
SetUpdatedAt sets the "updated_at" field.
type NotificationChannelCreateBulk ¶
type NotificationChannelCreateBulk struct {
// contains filtered or unexported fields
}
NotificationChannelCreateBulk is the builder for creating many NotificationChannel entities in bulk.
func (*NotificationChannelCreateBulk) Exec ¶
func (nccb *NotificationChannelCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*NotificationChannelCreateBulk) ExecContext ¶
func (c *NotificationChannelCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationChannelCreateBulk) ExecX ¶
func (nccb *NotificationChannelCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NotificationChannelCreateBulk) OnConflict ¶
func (nccb *NotificationChannelCreateBulk) OnConflict(opts ...sql.ConflictOption) *NotificationChannelUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.NotificationChannel.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.NotificationChannelUpsert) {
SetNamespace(v+v).
}).
Exec(ctx)
func (*NotificationChannelCreateBulk) OnConflictColumns ¶
func (nccb *NotificationChannelCreateBulk) OnConflictColumns(columns ...string) *NotificationChannelUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.NotificationChannel.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*NotificationChannelCreateBulk) QueryContext ¶
func (c *NotificationChannelCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationChannelCreateBulk) Save ¶
func (nccb *NotificationChannelCreateBulk) Save(ctx context.Context) ([]*NotificationChannel, error)
Save creates the NotificationChannel entities in the database.
func (*NotificationChannelCreateBulk) SaveX ¶
func (nccb *NotificationChannelCreateBulk) SaveX(ctx context.Context) []*NotificationChannel
SaveX is like Save, but panics if an error occurs.
type NotificationChannelDelete ¶
type NotificationChannelDelete struct {
// contains filtered or unexported fields
}
NotificationChannelDelete is the builder for deleting a NotificationChannel entity.
func (*NotificationChannelDelete) Exec ¶
func (ncd *NotificationChannelDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*NotificationChannelDelete) ExecContext ¶
func (c *NotificationChannelDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationChannelDelete) ExecX ¶
func (ncd *NotificationChannelDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*NotificationChannelDelete) QueryContext ¶
func (c *NotificationChannelDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationChannelDelete) Where ¶
func (ncd *NotificationChannelDelete) Where(ps ...predicate.NotificationChannel) *NotificationChannelDelete
Where appends a list predicates to the NotificationChannelDelete builder.
type NotificationChannelDeleteOne ¶
type NotificationChannelDeleteOne struct {
// contains filtered or unexported fields
}
NotificationChannelDeleteOne is the builder for deleting a single NotificationChannel entity.
func (*NotificationChannelDeleteOne) Exec ¶
func (ncdo *NotificationChannelDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*NotificationChannelDeleteOne) ExecX ¶
func (ncdo *NotificationChannelDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NotificationChannelDeleteOne) Where ¶
func (ncdo *NotificationChannelDeleteOne) Where(ps ...predicate.NotificationChannel) *NotificationChannelDeleteOne
Where appends a list predicates to the NotificationChannelDelete builder.
type NotificationChannelEdges ¶
type NotificationChannelEdges struct {
// Rules holds the value of the rules edge.
Rules []*NotificationRule `json:"rules,omitempty"`
// contains filtered or unexported fields
}
NotificationChannelEdges holds the relations/edges for other nodes in the graph.
func (NotificationChannelEdges) RulesOrErr ¶
func (e NotificationChannelEdges) RulesOrErr() ([]*NotificationRule, error)
RulesOrErr returns the Rules value or an error if the edge was not loaded in eager-loading.
type NotificationChannelGroupBy ¶
type NotificationChannelGroupBy struct {
// contains filtered or unexported fields
}
NotificationChannelGroupBy is the group-by builder for NotificationChannel entities.
func (*NotificationChannelGroupBy) Aggregate ¶
func (ncgb *NotificationChannelGroupBy) Aggregate(fns ...AggregateFunc) *NotificationChannelGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*NotificationChannelGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*NotificationChannelGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*NotificationChannelGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*NotificationChannelGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*NotificationChannelGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*NotificationChannelGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*NotificationChannelGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*NotificationChannelGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*NotificationChannelGroupBy) Scan ¶
func (ncgb *NotificationChannelGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*NotificationChannelGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type NotificationChannelMutation ¶
type NotificationChannelMutation struct {
// contains filtered or unexported fields
}
NotificationChannelMutation represents an operation that mutates the NotificationChannel nodes in the graph.
func (*NotificationChannelMutation) AddField ¶
func (m *NotificationChannelMutation) 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 (*NotificationChannelMutation) AddRuleIDs ¶
func (m *NotificationChannelMutation) AddRuleIDs(ids ...string)
AddRuleIDs adds the "rules" edge to the NotificationRule entity by ids.
func (*NotificationChannelMutation) AddedEdges ¶
func (m *NotificationChannelMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*NotificationChannelMutation) AddedField ¶
func (m *NotificationChannelMutation) 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 (*NotificationChannelMutation) AddedFields ¶
func (m *NotificationChannelMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*NotificationChannelMutation) AddedIDs ¶
func (m *NotificationChannelMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*NotificationChannelMutation) ClearDeletedAt ¶
func (m *NotificationChannelMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*NotificationChannelMutation) ClearDisabled ¶
func (m *NotificationChannelMutation) ClearDisabled()
ClearDisabled clears the value of the "disabled" field.
func (*NotificationChannelMutation) ClearEdge ¶
func (m *NotificationChannelMutation) 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 (*NotificationChannelMutation) ClearField ¶
func (m *NotificationChannelMutation) 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 (*NotificationChannelMutation) ClearRules ¶
func (m *NotificationChannelMutation) ClearRules()
ClearRules clears the "rules" edge to the NotificationRule entity.
func (*NotificationChannelMutation) ClearedEdges ¶
func (m *NotificationChannelMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*NotificationChannelMutation) ClearedFields ¶
func (m *NotificationChannelMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (NotificationChannelMutation) Client ¶
func (m NotificationChannelMutation) 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 (*NotificationChannelMutation) Config ¶
func (m *NotificationChannelMutation) Config() (r notification.ChannelConfig, exists bool)
Config returns the value of the "config" field in the mutation.
func (*NotificationChannelMutation) CreatedAt ¶
func (m *NotificationChannelMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*NotificationChannelMutation) DeletedAt ¶
func (m *NotificationChannelMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*NotificationChannelMutation) DeletedAtCleared ¶
func (m *NotificationChannelMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*NotificationChannelMutation) Disabled ¶
func (m *NotificationChannelMutation) Disabled() (r bool, exists bool)
Disabled returns the value of the "disabled" field in the mutation.
func (*NotificationChannelMutation) DisabledCleared ¶
func (m *NotificationChannelMutation) DisabledCleared() bool
DisabledCleared returns if the "disabled" field was cleared in this mutation.
func (*NotificationChannelMutation) EdgeCleared ¶
func (m *NotificationChannelMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*NotificationChannelMutation) ExecContext ¶
func (c *NotificationChannelMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationChannelMutation) Field ¶
func (m *NotificationChannelMutation) 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 (*NotificationChannelMutation) FieldCleared ¶
func (m *NotificationChannelMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*NotificationChannelMutation) Fields ¶
func (m *NotificationChannelMutation) 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 (*NotificationChannelMutation) GetType ¶
func (m *NotificationChannelMutation) GetType() (r notification.ChannelType, exists bool)
GetType returns the value of the "type" field in the mutation.
func (*NotificationChannelMutation) ID ¶
func (m *NotificationChannelMutation) ID() (id string, 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 (*NotificationChannelMutation) IDs ¶
func (m *NotificationChannelMutation) IDs(ctx context.Context) ([]string, error)
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 (*NotificationChannelMutation) Name ¶
func (m *NotificationChannelMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*NotificationChannelMutation) Namespace ¶
func (m *NotificationChannelMutation) Namespace() (r string, exists bool)
Namespace returns the value of the "namespace" field in the mutation.
func (*NotificationChannelMutation) OldConfig ¶
func (m *NotificationChannelMutation) OldConfig(ctx context.Context) (v notification.ChannelConfig, err error)
OldConfig returns the old "config" field's value of the NotificationChannel entity. If the NotificationChannel 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 (*NotificationChannelMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the NotificationChannel entity. If the NotificationChannel 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 (*NotificationChannelMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the NotificationChannel entity. If the NotificationChannel 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 (*NotificationChannelMutation) OldDisabled ¶
func (m *NotificationChannelMutation) OldDisabled(ctx context.Context) (v bool, err error)
OldDisabled returns the old "disabled" field's value of the NotificationChannel entity. If the NotificationChannel 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 (*NotificationChannelMutation) OldField ¶
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 (*NotificationChannelMutation) OldName ¶
func (m *NotificationChannelMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the NotificationChannel entity. If the NotificationChannel 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 (*NotificationChannelMutation) OldNamespace ¶
func (m *NotificationChannelMutation) OldNamespace(ctx context.Context) (v string, err error)
OldNamespace returns the old "namespace" field's value of the NotificationChannel entity. If the NotificationChannel 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 (*NotificationChannelMutation) OldType ¶
func (m *NotificationChannelMutation) OldType(ctx context.Context) (v notification.ChannelType, err error)
OldType returns the old "type" field's value of the NotificationChannel entity. If the NotificationChannel 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 (*NotificationChannelMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the NotificationChannel entity. If the NotificationChannel 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 (*NotificationChannelMutation) Op ¶
func (m *NotificationChannelMutation) Op() Op
Op returns the operation name.
func (*NotificationChannelMutation) QueryContext ¶
func (c *NotificationChannelMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationChannelMutation) RemoveRuleIDs ¶
func (m *NotificationChannelMutation) RemoveRuleIDs(ids ...string)
RemoveRuleIDs removes the "rules" edge to the NotificationRule entity by IDs.
func (*NotificationChannelMutation) RemovedEdges ¶
func (m *NotificationChannelMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*NotificationChannelMutation) RemovedIDs ¶
func (m *NotificationChannelMutation) 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 (*NotificationChannelMutation) RemovedRulesIDs ¶
func (m *NotificationChannelMutation) RemovedRulesIDs() (ids []string)
RemovedRules returns the removed IDs of the "rules" edge to the NotificationRule entity.
func (*NotificationChannelMutation) ResetConfig ¶
func (m *NotificationChannelMutation) ResetConfig()
ResetConfig resets all changes to the "config" field.
func (*NotificationChannelMutation) ResetCreatedAt ¶
func (m *NotificationChannelMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*NotificationChannelMutation) ResetDeletedAt ¶
func (m *NotificationChannelMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*NotificationChannelMutation) ResetDisabled ¶
func (m *NotificationChannelMutation) ResetDisabled()
ResetDisabled resets all changes to the "disabled" field.
func (*NotificationChannelMutation) ResetEdge ¶
func (m *NotificationChannelMutation) 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 (*NotificationChannelMutation) ResetField ¶
func (m *NotificationChannelMutation) 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 (*NotificationChannelMutation) ResetName ¶
func (m *NotificationChannelMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*NotificationChannelMutation) ResetNamespace ¶
func (m *NotificationChannelMutation) ResetNamespace()
ResetNamespace resets all changes to the "namespace" field.
func (*NotificationChannelMutation) ResetRules ¶
func (m *NotificationChannelMutation) ResetRules()
ResetRules resets all changes to the "rules" edge.
func (*NotificationChannelMutation) ResetType ¶
func (m *NotificationChannelMutation) ResetType()
ResetType resets all changes to the "type" field.
func (*NotificationChannelMutation) ResetUpdatedAt ¶
func (m *NotificationChannelMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*NotificationChannelMutation) RulesCleared ¶
func (m *NotificationChannelMutation) RulesCleared() bool
RulesCleared reports if the "rules" edge to the NotificationRule entity was cleared.
func (*NotificationChannelMutation) RulesIDs ¶
func (m *NotificationChannelMutation) RulesIDs() (ids []string)
RulesIDs returns the "rules" edge IDs in the mutation.
func (*NotificationChannelMutation) SetConfig ¶
func (m *NotificationChannelMutation) SetConfig(nc notification.ChannelConfig)
SetConfig sets the "config" field.
func (*NotificationChannelMutation) SetCreatedAt ¶
func (m *NotificationChannelMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*NotificationChannelMutation) SetDeletedAt ¶
func (m *NotificationChannelMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*NotificationChannelMutation) SetDisabled ¶
func (m *NotificationChannelMutation) SetDisabled(b bool)
SetDisabled sets the "disabled" field.
func (*NotificationChannelMutation) SetField ¶
func (m *NotificationChannelMutation) 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 (*NotificationChannelMutation) SetID ¶
func (m *NotificationChannelMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of NotificationChannel entities.
func (*NotificationChannelMutation) SetName ¶
func (m *NotificationChannelMutation) SetName(s string)
SetName sets the "name" field.
func (*NotificationChannelMutation) SetNamespace ¶
func (m *NotificationChannelMutation) SetNamespace(s string)
SetNamespace sets the "namespace" field.
func (*NotificationChannelMutation) SetOp ¶
func (m *NotificationChannelMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*NotificationChannelMutation) SetType ¶
func (m *NotificationChannelMutation) SetType(nt notification.ChannelType)
SetType sets the "type" field.
func (*NotificationChannelMutation) SetUpdatedAt ¶
func (m *NotificationChannelMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (NotificationChannelMutation) Tx ¶
func (m NotificationChannelMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*NotificationChannelMutation) Type ¶
func (m *NotificationChannelMutation) Type() string
Type returns the node type of this mutation (NotificationChannel).
func (*NotificationChannelMutation) UpdatedAt ¶
func (m *NotificationChannelMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*NotificationChannelMutation) Where ¶
func (m *NotificationChannelMutation) Where(ps ...predicate.NotificationChannel)
Where appends a list predicates to the NotificationChannelMutation builder.
func (*NotificationChannelMutation) WhereP ¶
func (m *NotificationChannelMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the NotificationChannelMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type NotificationChannelQuery ¶
type NotificationChannelQuery struct {
// contains filtered or unexported fields
}
NotificationChannelQuery is the builder for querying NotificationChannel entities.
func (*NotificationChannelQuery) Aggregate ¶
func (ncq *NotificationChannelQuery) Aggregate(fns ...AggregateFunc) *NotificationChannelSelect
Aggregate returns a NotificationChannelSelect configured with the given aggregations.
func (*NotificationChannelQuery) All ¶
func (ncq *NotificationChannelQuery) All(ctx context.Context) ([]*NotificationChannel, error)
All executes the query and returns a list of NotificationChannels.
func (*NotificationChannelQuery) AllX ¶
func (ncq *NotificationChannelQuery) AllX(ctx context.Context) []*NotificationChannel
AllX is like All, but panics if an error occurs.
func (*NotificationChannelQuery) Clone ¶
func (ncq *NotificationChannelQuery) Clone() *NotificationChannelQuery
Clone returns a duplicate of the NotificationChannelQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*NotificationChannelQuery) Count ¶
func (ncq *NotificationChannelQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*NotificationChannelQuery) CountX ¶
func (ncq *NotificationChannelQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*NotificationChannelQuery) ExecContext ¶
func (c *NotificationChannelQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationChannelQuery) Exist ¶
func (ncq *NotificationChannelQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*NotificationChannelQuery) ExistX ¶
func (ncq *NotificationChannelQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*NotificationChannelQuery) First ¶
func (ncq *NotificationChannelQuery) First(ctx context.Context) (*NotificationChannel, error)
First returns the first NotificationChannel entity from the query. Returns a *NotFoundError when no NotificationChannel was found.
func (*NotificationChannelQuery) FirstID ¶
func (ncq *NotificationChannelQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first NotificationChannel ID from the query. Returns a *NotFoundError when no NotificationChannel ID was found.
func (*NotificationChannelQuery) FirstIDX ¶
func (ncq *NotificationChannelQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*NotificationChannelQuery) FirstX ¶
func (ncq *NotificationChannelQuery) FirstX(ctx context.Context) *NotificationChannel
FirstX is like First, but panics if an error occurs.
func (*NotificationChannelQuery) ForShare ¶
func (ncq *NotificationChannelQuery) ForShare(opts ...sql.LockOption) *NotificationChannelQuery
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 (*NotificationChannelQuery) ForUpdate ¶
func (ncq *NotificationChannelQuery) ForUpdate(opts ...sql.LockOption) *NotificationChannelQuery
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 (*NotificationChannelQuery) GroupBy ¶
func (ncq *NotificationChannelQuery) GroupBy(field string, fields ...string) *NotificationChannelGroupBy
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 {
Namespace string `json:"namespace,omitempty"`
Count int `json:"count,omitempty"`
}
client.NotificationChannel.Query().
GroupBy(notificationchannel.FieldNamespace).
Aggregate(db.Count()).
Scan(ctx, &v)
func (*NotificationChannelQuery) IDs ¶
func (ncq *NotificationChannelQuery) IDs(ctx context.Context) (ids []string, err error)
IDs executes the query and returns a list of NotificationChannel IDs.
func (*NotificationChannelQuery) IDsX ¶
func (ncq *NotificationChannelQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*NotificationChannelQuery) Limit ¶
func (ncq *NotificationChannelQuery) Limit(limit int) *NotificationChannelQuery
Limit the number of records to be returned by this query.
func (*NotificationChannelQuery) Offset ¶
func (ncq *NotificationChannelQuery) Offset(offset int) *NotificationChannelQuery
Offset to start from.
func (*NotificationChannelQuery) Only ¶
func (ncq *NotificationChannelQuery) Only(ctx context.Context) (*NotificationChannel, error)
Only returns a single NotificationChannel entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one NotificationChannel entity is found. Returns a *NotFoundError when no NotificationChannel entities are found.
func (*NotificationChannelQuery) OnlyID ¶
func (ncq *NotificationChannelQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only NotificationChannel ID in the query. Returns a *NotSingularError when more than one NotificationChannel ID is found. Returns a *NotFoundError when no entities are found.
func (*NotificationChannelQuery) OnlyIDX ¶
func (ncq *NotificationChannelQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*NotificationChannelQuery) OnlyX ¶
func (ncq *NotificationChannelQuery) OnlyX(ctx context.Context) *NotificationChannel
OnlyX is like Only, but panics if an error occurs.
func (*NotificationChannelQuery) Order ¶
func (ncq *NotificationChannelQuery) Order(o ...notificationchannel.OrderOption) *NotificationChannelQuery
Order specifies how the records should be ordered.
func (*NotificationChannelQuery) Paginate ¶
func (nc *NotificationChannelQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*NotificationChannel], error)
Paginate runs the query and returns a paginated response. If page is its 0 value then it will return all the items and populate the response page accordingly.
func (*NotificationChannelQuery) QueryContext ¶
func (c *NotificationChannelQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationChannelQuery) QueryRules ¶
func (ncq *NotificationChannelQuery) QueryRules() *NotificationRuleQuery
QueryRules chains the current query on the "rules" edge.
func (*NotificationChannelQuery) Select ¶
func (ncq *NotificationChannelQuery) Select(fields ...string) *NotificationChannelSelect
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 {
Namespace string `json:"namespace,omitempty"`
}
client.NotificationChannel.Query().
Select(notificationchannel.FieldNamespace).
Scan(ctx, &v)
func (*NotificationChannelQuery) Unique ¶
func (ncq *NotificationChannelQuery) Unique(unique bool) *NotificationChannelQuery
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 (*NotificationChannelQuery) Where ¶
func (ncq *NotificationChannelQuery) Where(ps ...predicate.NotificationChannel) *NotificationChannelQuery
Where adds a new predicate for the NotificationChannelQuery builder.
func (*NotificationChannelQuery) WithRules ¶
func (ncq *NotificationChannelQuery) WithRules(opts ...func(*NotificationRuleQuery)) *NotificationChannelQuery
WithRules tells the query-builder to eager-load the nodes that are connected to the "rules" edge. The optional arguments are used to configure the query builder of the edge.
type NotificationChannelSelect ¶
type NotificationChannelSelect struct {
*NotificationChannelQuery
// contains filtered or unexported fields
}
NotificationChannelSelect is the builder for selecting fields of NotificationChannel entities.
func (*NotificationChannelSelect) Aggregate ¶
func (ncs *NotificationChannelSelect) Aggregate(fns ...AggregateFunc) *NotificationChannelSelect
Aggregate adds the given aggregation functions to the selector query.
func (*NotificationChannelSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*NotificationChannelSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (NotificationChannelSelect) ExecContext ¶
func (c NotificationChannelSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationChannelSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*NotificationChannelSelect) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*NotificationChannelSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*NotificationChannelSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*NotificationChannelSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*NotificationChannelSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (NotificationChannelSelect) QueryContext ¶
func (c NotificationChannelSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationChannelSelect) Scan ¶
func (ncs *NotificationChannelSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*NotificationChannelSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type NotificationChannelUpdate ¶
type NotificationChannelUpdate struct {
// contains filtered or unexported fields
}
NotificationChannelUpdate is the builder for updating NotificationChannel entities.
func (*NotificationChannelUpdate) AddRuleIDs ¶
func (ncu *NotificationChannelUpdate) AddRuleIDs(ids ...string) *NotificationChannelUpdate
AddRuleIDs adds the "rules" edge to the NotificationRule entity by IDs.
func (*NotificationChannelUpdate) AddRules ¶
func (ncu *NotificationChannelUpdate) AddRules(n ...*NotificationRule) *NotificationChannelUpdate
AddRules adds the "rules" edges to the NotificationRule entity.
func (*NotificationChannelUpdate) ClearDeletedAt ¶
func (ncu *NotificationChannelUpdate) ClearDeletedAt() *NotificationChannelUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*NotificationChannelUpdate) ClearDisabled ¶
func (ncu *NotificationChannelUpdate) ClearDisabled() *NotificationChannelUpdate
ClearDisabled clears the value of the "disabled" field.
func (*NotificationChannelUpdate) ClearRules ¶
func (ncu *NotificationChannelUpdate) ClearRules() *NotificationChannelUpdate
ClearRules clears all "rules" edges to the NotificationRule entity.
func (*NotificationChannelUpdate) Exec ¶
func (ncu *NotificationChannelUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*NotificationChannelUpdate) ExecContext ¶
func (c *NotificationChannelUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationChannelUpdate) ExecX ¶
func (ncu *NotificationChannelUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NotificationChannelUpdate) Mutation ¶
func (ncu *NotificationChannelUpdate) Mutation() *NotificationChannelMutation
Mutation returns the NotificationChannelMutation object of the builder.
func (*NotificationChannelUpdate) QueryContext ¶
func (c *NotificationChannelUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationChannelUpdate) RemoveRuleIDs ¶
func (ncu *NotificationChannelUpdate) RemoveRuleIDs(ids ...string) *NotificationChannelUpdate
RemoveRuleIDs removes the "rules" edge to NotificationRule entities by IDs.
func (*NotificationChannelUpdate) RemoveRules ¶
func (ncu *NotificationChannelUpdate) RemoveRules(n ...*NotificationRule) *NotificationChannelUpdate
RemoveRules removes "rules" edges to NotificationRule entities.
func (*NotificationChannelUpdate) Save ¶
func (ncu *NotificationChannelUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*NotificationChannelUpdate) SaveX ¶
func (ncu *NotificationChannelUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*NotificationChannelUpdate) SetConfig ¶
func (ncu *NotificationChannelUpdate) SetConfig(nc notification.ChannelConfig) *NotificationChannelUpdate
SetConfig sets the "config" field.
func (*NotificationChannelUpdate) SetDeletedAt ¶
func (ncu *NotificationChannelUpdate) SetDeletedAt(t time.Time) *NotificationChannelUpdate
SetDeletedAt sets the "deleted_at" field.
func (*NotificationChannelUpdate) SetDisabled ¶
func (ncu *NotificationChannelUpdate) SetDisabled(b bool) *NotificationChannelUpdate
SetDisabled sets the "disabled" field.
func (*NotificationChannelUpdate) SetName ¶
func (ncu *NotificationChannelUpdate) SetName(s string) *NotificationChannelUpdate
SetName sets the "name" field.
func (*NotificationChannelUpdate) SetNillableConfig ¶
func (ncu *NotificationChannelUpdate) SetNillableConfig(nc *notification.ChannelConfig) *NotificationChannelUpdate
SetNillableConfig sets the "config" field if the given value is not nil.
func (*NotificationChannelUpdate) SetNillableDeletedAt ¶
func (ncu *NotificationChannelUpdate) SetNillableDeletedAt(t *time.Time) *NotificationChannelUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*NotificationChannelUpdate) SetNillableDisabled ¶
func (ncu *NotificationChannelUpdate) SetNillableDisabled(b *bool) *NotificationChannelUpdate
SetNillableDisabled sets the "disabled" field if the given value is not nil.
func (*NotificationChannelUpdate) SetNillableName ¶
func (ncu *NotificationChannelUpdate) SetNillableName(s *string) *NotificationChannelUpdate
SetNillableName sets the "name" field if the given value is not nil.
func (*NotificationChannelUpdate) SetOrClearDeletedAt ¶
func (u *NotificationChannelUpdate) SetOrClearDeletedAt(value *time.Time) *NotificationChannelUpdate
func (*NotificationChannelUpdate) SetOrClearDisabled ¶
func (u *NotificationChannelUpdate) SetOrClearDisabled(value *bool) *NotificationChannelUpdate
func (*NotificationChannelUpdate) SetUpdatedAt ¶
func (ncu *NotificationChannelUpdate) SetUpdatedAt(t time.Time) *NotificationChannelUpdate
SetUpdatedAt sets the "updated_at" field.
func (*NotificationChannelUpdate) Where ¶
func (ncu *NotificationChannelUpdate) Where(ps ...predicate.NotificationChannel) *NotificationChannelUpdate
Where appends a list predicates to the NotificationChannelUpdate builder.
type NotificationChannelUpdateOne ¶
type NotificationChannelUpdateOne struct {
// contains filtered or unexported fields
}
NotificationChannelUpdateOne is the builder for updating a single NotificationChannel entity.
func (*NotificationChannelUpdateOne) AddRuleIDs ¶
func (ncuo *NotificationChannelUpdateOne) AddRuleIDs(ids ...string) *NotificationChannelUpdateOne
AddRuleIDs adds the "rules" edge to the NotificationRule entity by IDs.
func (*NotificationChannelUpdateOne) AddRules ¶
func (ncuo *NotificationChannelUpdateOne) AddRules(n ...*NotificationRule) *NotificationChannelUpdateOne
AddRules adds the "rules" edges to the NotificationRule entity.
func (*NotificationChannelUpdateOne) ClearDeletedAt ¶
func (ncuo *NotificationChannelUpdateOne) ClearDeletedAt() *NotificationChannelUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*NotificationChannelUpdateOne) ClearDisabled ¶
func (ncuo *NotificationChannelUpdateOne) ClearDisabled() *NotificationChannelUpdateOne
ClearDisabled clears the value of the "disabled" field.
func (*NotificationChannelUpdateOne) ClearRules ¶
func (ncuo *NotificationChannelUpdateOne) ClearRules() *NotificationChannelUpdateOne
ClearRules clears all "rules" edges to the NotificationRule entity.
func (*NotificationChannelUpdateOne) Exec ¶
func (ncuo *NotificationChannelUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*NotificationChannelUpdateOne) ExecContext ¶
func (c *NotificationChannelUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationChannelUpdateOne) ExecX ¶
func (ncuo *NotificationChannelUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NotificationChannelUpdateOne) Mutation ¶
func (ncuo *NotificationChannelUpdateOne) Mutation() *NotificationChannelMutation
Mutation returns the NotificationChannelMutation object of the builder.
func (*NotificationChannelUpdateOne) QueryContext ¶
func (c *NotificationChannelUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationChannelUpdateOne) RemoveRuleIDs ¶
func (ncuo *NotificationChannelUpdateOne) RemoveRuleIDs(ids ...string) *NotificationChannelUpdateOne
RemoveRuleIDs removes the "rules" edge to NotificationRule entities by IDs.
func (*NotificationChannelUpdateOne) RemoveRules ¶
func (ncuo *NotificationChannelUpdateOne) RemoveRules(n ...*NotificationRule) *NotificationChannelUpdateOne
RemoveRules removes "rules" edges to NotificationRule entities.
func (*NotificationChannelUpdateOne) Save ¶
func (ncuo *NotificationChannelUpdateOne) Save(ctx context.Context) (*NotificationChannel, error)
Save executes the query and returns the updated NotificationChannel entity.
func (*NotificationChannelUpdateOne) SaveX ¶
func (ncuo *NotificationChannelUpdateOne) SaveX(ctx context.Context) *NotificationChannel
SaveX is like Save, but panics if an error occurs.
func (*NotificationChannelUpdateOne) Select ¶
func (ncuo *NotificationChannelUpdateOne) Select(field string, fields ...string) *NotificationChannelUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*NotificationChannelUpdateOne) SetConfig ¶
func (ncuo *NotificationChannelUpdateOne) SetConfig(nc notification.ChannelConfig) *NotificationChannelUpdateOne
SetConfig sets the "config" field.
func (*NotificationChannelUpdateOne) SetDeletedAt ¶
func (ncuo *NotificationChannelUpdateOne) SetDeletedAt(t time.Time) *NotificationChannelUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*NotificationChannelUpdateOne) SetDisabled ¶
func (ncuo *NotificationChannelUpdateOne) SetDisabled(b bool) *NotificationChannelUpdateOne
SetDisabled sets the "disabled" field.
func (*NotificationChannelUpdateOne) SetName ¶
func (ncuo *NotificationChannelUpdateOne) SetName(s string) *NotificationChannelUpdateOne
SetName sets the "name" field.
func (*NotificationChannelUpdateOne) SetNillableConfig ¶
func (ncuo *NotificationChannelUpdateOne) SetNillableConfig(nc *notification.ChannelConfig) *NotificationChannelUpdateOne
SetNillableConfig sets the "config" field if the given value is not nil.
func (*NotificationChannelUpdateOne) SetNillableDeletedAt ¶
func (ncuo *NotificationChannelUpdateOne) SetNillableDeletedAt(t *time.Time) *NotificationChannelUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*NotificationChannelUpdateOne) SetNillableDisabled ¶
func (ncuo *NotificationChannelUpdateOne) SetNillableDisabled(b *bool) *NotificationChannelUpdateOne
SetNillableDisabled sets the "disabled" field if the given value is not nil.
func (*NotificationChannelUpdateOne) SetNillableName ¶
func (ncuo *NotificationChannelUpdateOne) SetNillableName(s *string) *NotificationChannelUpdateOne
SetNillableName sets the "name" field if the given value is not nil.
func (*NotificationChannelUpdateOne) SetOrClearDeletedAt ¶
func (u *NotificationChannelUpdateOne) SetOrClearDeletedAt(value *time.Time) *NotificationChannelUpdateOne
func (*NotificationChannelUpdateOne) SetOrClearDisabled ¶
func (u *NotificationChannelUpdateOne) SetOrClearDisabled(value *bool) *NotificationChannelUpdateOne
func (*NotificationChannelUpdateOne) SetUpdatedAt ¶
func (ncuo *NotificationChannelUpdateOne) SetUpdatedAt(t time.Time) *NotificationChannelUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*NotificationChannelUpdateOne) Where ¶
func (ncuo *NotificationChannelUpdateOne) Where(ps ...predicate.NotificationChannel) *NotificationChannelUpdateOne
Where appends a list predicates to the NotificationChannelUpdate builder.
type NotificationChannelUpsert ¶
NotificationChannelUpsert is the "OnConflict" setter.
func (*NotificationChannelUpsert) ClearDeletedAt ¶
func (u *NotificationChannelUpsert) ClearDeletedAt() *NotificationChannelUpsert
ClearDeletedAt clears the value of the "deleted_at" field.
func (*NotificationChannelUpsert) ClearDisabled ¶
func (u *NotificationChannelUpsert) ClearDisabled() *NotificationChannelUpsert
ClearDisabled clears the value of the "disabled" field.
func (*NotificationChannelUpsert) SetConfig ¶
func (u *NotificationChannelUpsert) SetConfig(v notification.ChannelConfig) *NotificationChannelUpsert
SetConfig sets the "config" field.
func (*NotificationChannelUpsert) SetDeletedAt ¶
func (u *NotificationChannelUpsert) SetDeletedAt(v time.Time) *NotificationChannelUpsert
SetDeletedAt sets the "deleted_at" field.
func (*NotificationChannelUpsert) SetDisabled ¶
func (u *NotificationChannelUpsert) SetDisabled(v bool) *NotificationChannelUpsert
SetDisabled sets the "disabled" field.
func (*NotificationChannelUpsert) SetName ¶
func (u *NotificationChannelUpsert) SetName(v string) *NotificationChannelUpsert
SetName sets the "name" field.
func (*NotificationChannelUpsert) SetUpdatedAt ¶
func (u *NotificationChannelUpsert) SetUpdatedAt(v time.Time) *NotificationChannelUpsert
SetUpdatedAt sets the "updated_at" field.
func (*NotificationChannelUpsert) UpdateConfig ¶
func (u *NotificationChannelUpsert) UpdateConfig() *NotificationChannelUpsert
UpdateConfig sets the "config" field to the value that was provided on create.
func (*NotificationChannelUpsert) UpdateDeletedAt ¶
func (u *NotificationChannelUpsert) UpdateDeletedAt() *NotificationChannelUpsert
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*NotificationChannelUpsert) UpdateDisabled ¶
func (u *NotificationChannelUpsert) UpdateDisabled() *NotificationChannelUpsert
UpdateDisabled sets the "disabled" field to the value that was provided on create.
func (*NotificationChannelUpsert) UpdateName ¶
func (u *NotificationChannelUpsert) UpdateName() *NotificationChannelUpsert
UpdateName sets the "name" field to the value that was provided on create.
func (*NotificationChannelUpsert) UpdateUpdatedAt ¶
func (u *NotificationChannelUpsert) UpdateUpdatedAt() *NotificationChannelUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type NotificationChannelUpsertBulk ¶
type NotificationChannelUpsertBulk struct {
// contains filtered or unexported fields
}
NotificationChannelUpsertBulk is the builder for "upsert"-ing a bulk of NotificationChannel nodes.
func (*NotificationChannelUpsertBulk) ClearDeletedAt ¶
func (u *NotificationChannelUpsertBulk) ClearDeletedAt() *NotificationChannelUpsertBulk
ClearDeletedAt clears the value of the "deleted_at" field.
func (*NotificationChannelUpsertBulk) ClearDisabled ¶
func (u *NotificationChannelUpsertBulk) ClearDisabled() *NotificationChannelUpsertBulk
ClearDisabled clears the value of the "disabled" field.
func (*NotificationChannelUpsertBulk) DoNothing ¶
func (u *NotificationChannelUpsertBulk) DoNothing() *NotificationChannelUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*NotificationChannelUpsertBulk) Exec ¶
func (u *NotificationChannelUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*NotificationChannelUpsertBulk) ExecX ¶
func (u *NotificationChannelUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NotificationChannelUpsertBulk) Ignore ¶
func (u *NotificationChannelUpsertBulk) Ignore() *NotificationChannelUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.NotificationChannel.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*NotificationChannelUpsertBulk) SetConfig ¶
func (u *NotificationChannelUpsertBulk) SetConfig(v notification.ChannelConfig) *NotificationChannelUpsertBulk
SetConfig sets the "config" field.
func (*NotificationChannelUpsertBulk) SetDeletedAt ¶
func (u *NotificationChannelUpsertBulk) SetDeletedAt(v time.Time) *NotificationChannelUpsertBulk
SetDeletedAt sets the "deleted_at" field.
func (*NotificationChannelUpsertBulk) SetDisabled ¶
func (u *NotificationChannelUpsertBulk) SetDisabled(v bool) *NotificationChannelUpsertBulk
SetDisabled sets the "disabled" field.
func (*NotificationChannelUpsertBulk) SetName ¶
func (u *NotificationChannelUpsertBulk) SetName(v string) *NotificationChannelUpsertBulk
SetName sets the "name" field.
func (*NotificationChannelUpsertBulk) SetUpdatedAt ¶
func (u *NotificationChannelUpsertBulk) SetUpdatedAt(v time.Time) *NotificationChannelUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*NotificationChannelUpsertBulk) Update ¶
func (u *NotificationChannelUpsertBulk) Update(set func(*NotificationChannelUpsert)) *NotificationChannelUpsertBulk
Update allows overriding fields `UPDATE` values. See the NotificationChannelCreateBulk.OnConflict documentation for more info.
func (*NotificationChannelUpsertBulk) UpdateConfig ¶
func (u *NotificationChannelUpsertBulk) UpdateConfig() *NotificationChannelUpsertBulk
UpdateConfig sets the "config" field to the value that was provided on create.
func (*NotificationChannelUpsertBulk) UpdateDeletedAt ¶
func (u *NotificationChannelUpsertBulk) UpdateDeletedAt() *NotificationChannelUpsertBulk
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*NotificationChannelUpsertBulk) UpdateDisabled ¶
func (u *NotificationChannelUpsertBulk) UpdateDisabled() *NotificationChannelUpsertBulk
UpdateDisabled sets the "disabled" field to the value that was provided on create.
func (*NotificationChannelUpsertBulk) UpdateName ¶
func (u *NotificationChannelUpsertBulk) UpdateName() *NotificationChannelUpsertBulk
UpdateName sets the "name" field to the value that was provided on create.
func (*NotificationChannelUpsertBulk) UpdateNewValues ¶
func (u *NotificationChannelUpsertBulk) UpdateNewValues() *NotificationChannelUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.NotificationChannel.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(notificationchannel.FieldID)
}),
).
Exec(ctx)
func (*NotificationChannelUpsertBulk) UpdateUpdatedAt ¶
func (u *NotificationChannelUpsertBulk) UpdateUpdatedAt() *NotificationChannelUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type NotificationChannelUpsertOne ¶
type NotificationChannelUpsertOne struct {
// contains filtered or unexported fields
}
NotificationChannelUpsertOne is the builder for "upsert"-ing
one NotificationChannel node.
func (*NotificationChannelUpsertOne) ClearDeletedAt ¶
func (u *NotificationChannelUpsertOne) ClearDeletedAt() *NotificationChannelUpsertOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*NotificationChannelUpsertOne) ClearDisabled ¶
func (u *NotificationChannelUpsertOne) ClearDisabled() *NotificationChannelUpsertOne
ClearDisabled clears the value of the "disabled" field.
func (*NotificationChannelUpsertOne) DoNothing ¶
func (u *NotificationChannelUpsertOne) DoNothing() *NotificationChannelUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*NotificationChannelUpsertOne) Exec ¶
func (u *NotificationChannelUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*NotificationChannelUpsertOne) ExecX ¶
func (u *NotificationChannelUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NotificationChannelUpsertOne) ID ¶
func (u *NotificationChannelUpsertOne) ID(ctx context.Context) (id string, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*NotificationChannelUpsertOne) IDX ¶
func (u *NotificationChannelUpsertOne) IDX(ctx context.Context) string
IDX is like ID, but panics if an error occurs.
func (*NotificationChannelUpsertOne) Ignore ¶
func (u *NotificationChannelUpsertOne) Ignore() *NotificationChannelUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.NotificationChannel.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*NotificationChannelUpsertOne) SetConfig ¶
func (u *NotificationChannelUpsertOne) SetConfig(v notification.ChannelConfig) *NotificationChannelUpsertOne
SetConfig sets the "config" field.
func (*NotificationChannelUpsertOne) SetDeletedAt ¶
func (u *NotificationChannelUpsertOne) SetDeletedAt(v time.Time) *NotificationChannelUpsertOne
SetDeletedAt sets the "deleted_at" field.
func (*NotificationChannelUpsertOne) SetDisabled ¶
func (u *NotificationChannelUpsertOne) SetDisabled(v bool) *NotificationChannelUpsertOne
SetDisabled sets the "disabled" field.
func (*NotificationChannelUpsertOne) SetName ¶
func (u *NotificationChannelUpsertOne) SetName(v string) *NotificationChannelUpsertOne
SetName sets the "name" field.
func (*NotificationChannelUpsertOne) SetUpdatedAt ¶
func (u *NotificationChannelUpsertOne) SetUpdatedAt(v time.Time) *NotificationChannelUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*NotificationChannelUpsertOne) Update ¶
func (u *NotificationChannelUpsertOne) Update(set func(*NotificationChannelUpsert)) *NotificationChannelUpsertOne
Update allows overriding fields `UPDATE` values. See the NotificationChannelCreate.OnConflict documentation for more info.
func (*NotificationChannelUpsertOne) UpdateConfig ¶
func (u *NotificationChannelUpsertOne) UpdateConfig() *NotificationChannelUpsertOne
UpdateConfig sets the "config" field to the value that was provided on create.
func (*NotificationChannelUpsertOne) UpdateDeletedAt ¶
func (u *NotificationChannelUpsertOne) UpdateDeletedAt() *NotificationChannelUpsertOne
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*NotificationChannelUpsertOne) UpdateDisabled ¶
func (u *NotificationChannelUpsertOne) UpdateDisabled() *NotificationChannelUpsertOne
UpdateDisabled sets the "disabled" field to the value that was provided on create.
func (*NotificationChannelUpsertOne) UpdateName ¶
func (u *NotificationChannelUpsertOne) UpdateName() *NotificationChannelUpsertOne
UpdateName sets the "name" field to the value that was provided on create.
func (*NotificationChannelUpsertOne) UpdateNewValues ¶
func (u *NotificationChannelUpsertOne) UpdateNewValues() *NotificationChannelUpsertOne
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.NotificationChannel.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(notificationchannel.FieldID)
}),
).
Exec(ctx)
func (*NotificationChannelUpsertOne) UpdateUpdatedAt ¶
func (u *NotificationChannelUpsertOne) UpdateUpdatedAt() *NotificationChannelUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type NotificationChannels ¶
type NotificationChannels []*NotificationChannel
NotificationChannels is a parsable slice of NotificationChannel.
type NotificationEvent ¶
type NotificationEvent struct {
// ID of the ent.
ID string `json:"id,omitempty"`
// Namespace holds the value of the "namespace" field.
Namespace string `json:"namespace,omitempty"`
// CreatedAt holds the value of the "created_at" field.
CreatedAt time.Time `json:"created_at,omitempty"`
// The event type the rule associated with
Type notification.EventType `json:"type,omitempty"`
// RuleID holds the value of the "rule_id" field.
RuleID string `json:"rule_id,omitempty"`
// Payload holds the value of the "payload" field.
Payload string `json:"payload,omitempty"`
// Annotations holds the value of the "annotations" field.
Annotations map[string]interface{} `json:"annotations,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the NotificationEventQuery when eager-loading is set.
Edges NotificationEventEdges `json:"edges"`
// contains filtered or unexported fields
}
NotificationEvent is the model entity for the NotificationEvent schema.
func (*NotificationEvent) ExecContext ¶
func (c *NotificationEvent) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationEvent) QueryContext ¶
func (c *NotificationEvent) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationEvent) QueryDeliveryStatuses ¶
func (ne *NotificationEvent) QueryDeliveryStatuses() *NotificationEventDeliveryStatusQuery
QueryDeliveryStatuses queries the "delivery_statuses" edge of the NotificationEvent entity.
func (*NotificationEvent) QueryRules ¶
func (ne *NotificationEvent) QueryRules() *NotificationRuleQuery
QueryRules queries the "rules" edge of the NotificationEvent entity.
func (*NotificationEvent) String ¶
func (ne *NotificationEvent) String() string
String implements the fmt.Stringer.
func (*NotificationEvent) Unwrap ¶
func (ne *NotificationEvent) Unwrap() *NotificationEvent
Unwrap unwraps the NotificationEvent 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 (*NotificationEvent) Update ¶
func (ne *NotificationEvent) Update() *NotificationEventUpdateOne
Update returns a builder for updating this NotificationEvent. Note that you need to call NotificationEvent.Unwrap() before calling this method if this NotificationEvent was returned from a transaction, and the transaction was committed or rolled back.
type NotificationEventClient ¶
type NotificationEventClient struct {
// contains filtered or unexported fields
}
NotificationEventClient is a client for the NotificationEvent schema.
func NewNotificationEventClient ¶
func NewNotificationEventClient(c config) *NotificationEventClient
NewNotificationEventClient returns a client for the NotificationEvent from the given config.
func (*NotificationEventClient) Create ¶
func (c *NotificationEventClient) Create() *NotificationEventCreate
Create returns a builder for creating a NotificationEvent entity.
func (*NotificationEventClient) CreateBulk ¶
func (c *NotificationEventClient) CreateBulk(builders ...*NotificationEventCreate) *NotificationEventCreateBulk
CreateBulk returns a builder for creating a bulk of NotificationEvent entities.
func (*NotificationEventClient) Delete ¶
func (c *NotificationEventClient) Delete() *NotificationEventDelete
Delete returns a delete builder for NotificationEvent.
func (*NotificationEventClient) DeleteOne ¶
func (c *NotificationEventClient) DeleteOne(ne *NotificationEvent) *NotificationEventDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*NotificationEventClient) DeleteOneID ¶
func (c *NotificationEventClient) DeleteOneID(id string) *NotificationEventDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*NotificationEventClient) ExecContext ¶
func (c *NotificationEventClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationEventClient) Get ¶
func (c *NotificationEventClient) Get(ctx context.Context, id string) (*NotificationEvent, error)
Get returns a NotificationEvent entity by its id.
func (*NotificationEventClient) GetX ¶
func (c *NotificationEventClient) GetX(ctx context.Context, id string) *NotificationEvent
GetX is like Get, but panics if an error occurs.
func (*NotificationEventClient) Hooks ¶
func (c *NotificationEventClient) Hooks() []Hook
Hooks returns the client hooks.
func (*NotificationEventClient) Intercept ¶
func (c *NotificationEventClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `notificationevent.Intercept(f(g(h())))`.
func (*NotificationEventClient) Interceptors ¶
func (c *NotificationEventClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*NotificationEventClient) MapCreateBulk ¶
func (c *NotificationEventClient) MapCreateBulk(slice any, setFunc func(*NotificationEventCreate, int)) *NotificationEventCreateBulk
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 (*NotificationEventClient) Query ¶
func (c *NotificationEventClient) Query() *NotificationEventQuery
Query returns a query builder for NotificationEvent.
func (*NotificationEventClient) QueryContext ¶
func (c *NotificationEventClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationEventClient) QueryDeliveryStatuses ¶
func (c *NotificationEventClient) QueryDeliveryStatuses(ne *NotificationEvent) *NotificationEventDeliveryStatusQuery
QueryDeliveryStatuses queries the delivery_statuses edge of a NotificationEvent.
func (*NotificationEventClient) QueryRules ¶
func (c *NotificationEventClient) QueryRules(ne *NotificationEvent) *NotificationRuleQuery
QueryRules queries the rules edge of a NotificationEvent.
func (*NotificationEventClient) Update ¶
func (c *NotificationEventClient) Update() *NotificationEventUpdate
Update returns an update builder for NotificationEvent.
func (*NotificationEventClient) UpdateOne ¶
func (c *NotificationEventClient) UpdateOne(ne *NotificationEvent) *NotificationEventUpdateOne
UpdateOne returns an update builder for the given entity.
func (*NotificationEventClient) UpdateOneID ¶
func (c *NotificationEventClient) UpdateOneID(id string) *NotificationEventUpdateOne
UpdateOneID returns an update builder for the given id.
func (*NotificationEventClient) Use ¶
func (c *NotificationEventClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `notificationevent.Hooks(f(g(h())))`.
type NotificationEventCreate ¶
type NotificationEventCreate struct {
// contains filtered or unexported fields
}
NotificationEventCreate is the builder for creating a NotificationEvent entity.
func (*NotificationEventCreate) AddDeliveryStatusIDs ¶
func (nec *NotificationEventCreate) AddDeliveryStatusIDs(ids ...string) *NotificationEventCreate
AddDeliveryStatusIDs adds the "delivery_statuses" edge to the NotificationEventDeliveryStatus entity by IDs.
func (*NotificationEventCreate) AddDeliveryStatuses ¶
func (nec *NotificationEventCreate) AddDeliveryStatuses(n ...*NotificationEventDeliveryStatus) *NotificationEventCreate
AddDeliveryStatuses adds the "delivery_statuses" edges to the NotificationEventDeliveryStatus entity.
func (*NotificationEventCreate) Exec ¶
func (nec *NotificationEventCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*NotificationEventCreate) ExecContext ¶
func (c *NotificationEventCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationEventCreate) ExecX ¶
func (nec *NotificationEventCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NotificationEventCreate) Mutation ¶
func (nec *NotificationEventCreate) Mutation() *NotificationEventMutation
Mutation returns the NotificationEventMutation object of the builder.
func (*NotificationEventCreate) OnConflict ¶
func (nec *NotificationEventCreate) OnConflict(opts ...sql.ConflictOption) *NotificationEventUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.NotificationEvent.Create().
SetNamespace(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.NotificationEventUpsert) {
SetNamespace(v+v).
}).
Exec(ctx)
func (*NotificationEventCreate) OnConflictColumns ¶
func (nec *NotificationEventCreate) OnConflictColumns(columns ...string) *NotificationEventUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.NotificationEvent.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*NotificationEventCreate) QueryContext ¶
func (c *NotificationEventCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationEventCreate) Save ¶
func (nec *NotificationEventCreate) Save(ctx context.Context) (*NotificationEvent, error)
Save creates the NotificationEvent in the database.
func (*NotificationEventCreate) SaveX ¶
func (nec *NotificationEventCreate) SaveX(ctx context.Context) *NotificationEvent
SaveX calls Save and panics if Save returns an error.
func (*NotificationEventCreate) SetAnnotations ¶
func (nec *NotificationEventCreate) SetAnnotations(m map[string]interface{}) *NotificationEventCreate
SetAnnotations sets the "annotations" field.
func (*NotificationEventCreate) SetCreatedAt ¶
func (nec *NotificationEventCreate) SetCreatedAt(t time.Time) *NotificationEventCreate
SetCreatedAt sets the "created_at" field.
func (*NotificationEventCreate) SetID ¶
func (nec *NotificationEventCreate) SetID(s string) *NotificationEventCreate
SetID sets the "id" field.
func (*NotificationEventCreate) SetNamespace ¶
func (nec *NotificationEventCreate) SetNamespace(s string) *NotificationEventCreate
SetNamespace sets the "namespace" field.
func (*NotificationEventCreate) SetNillableCreatedAt ¶
func (nec *NotificationEventCreate) SetNillableCreatedAt(t *time.Time) *NotificationEventCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*NotificationEventCreate) SetNillableID ¶
func (nec *NotificationEventCreate) SetNillableID(s *string) *NotificationEventCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*NotificationEventCreate) SetPayload ¶
func (nec *NotificationEventCreate) SetPayload(s string) *NotificationEventCreate
SetPayload sets the "payload" field.
func (*NotificationEventCreate) SetRuleID ¶
func (nec *NotificationEventCreate) SetRuleID(s string) *NotificationEventCreate
SetRuleID sets the "rule_id" field.
func (*NotificationEventCreate) SetRules ¶
func (nec *NotificationEventCreate) SetRules(n *NotificationRule) *NotificationEventCreate
SetRules sets the "rules" edge to the NotificationRule entity.
func (*NotificationEventCreate) SetRulesID ¶
func (nec *NotificationEventCreate) SetRulesID(id string) *NotificationEventCreate
SetRulesID sets the "rules" edge to the NotificationRule entity by ID.
func (*NotificationEventCreate) SetType ¶
func (nec *NotificationEventCreate) SetType(nt notification.EventType) *NotificationEventCreate
SetType sets the "type" field.
type NotificationEventCreateBulk ¶
type NotificationEventCreateBulk struct {
// contains filtered or unexported fields
}
NotificationEventCreateBulk is the builder for creating many NotificationEvent entities in bulk.
func (*NotificationEventCreateBulk) Exec ¶
func (necb *NotificationEventCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*NotificationEventCreateBulk) ExecContext ¶
func (c *NotificationEventCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationEventCreateBulk) ExecX ¶
func (necb *NotificationEventCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NotificationEventCreateBulk) OnConflict ¶
func (necb *NotificationEventCreateBulk) OnConflict(opts ...sql.ConflictOption) *NotificationEventUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.NotificationEvent.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.NotificationEventUpsert) {
SetNamespace(v+v).
}).
Exec(ctx)
func (*NotificationEventCreateBulk) OnConflictColumns ¶
func (necb *NotificationEventCreateBulk) OnConflictColumns(columns ...string) *NotificationEventUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.NotificationEvent.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*NotificationEventCreateBulk) QueryContext ¶
func (c *NotificationEventCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationEventCreateBulk) Save ¶
func (necb *NotificationEventCreateBulk) Save(ctx context.Context) ([]*NotificationEvent, error)
Save creates the NotificationEvent entities in the database.
func (*NotificationEventCreateBulk) SaveX ¶
func (necb *NotificationEventCreateBulk) SaveX(ctx context.Context) []*NotificationEvent
SaveX is like Save, but panics if an error occurs.
type NotificationEventDelete ¶
type NotificationEventDelete struct {
// contains filtered or unexported fields
}
NotificationEventDelete is the builder for deleting a NotificationEvent entity.
func (*NotificationEventDelete) Exec ¶
func (ned *NotificationEventDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*NotificationEventDelete) ExecContext ¶
func (c *NotificationEventDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationEventDelete) ExecX ¶
func (ned *NotificationEventDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*NotificationEventDelete) QueryContext ¶
func (c *NotificationEventDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationEventDelete) Where ¶
func (ned *NotificationEventDelete) Where(ps ...predicate.NotificationEvent) *NotificationEventDelete
Where appends a list predicates to the NotificationEventDelete builder.
type NotificationEventDeleteOne ¶
type NotificationEventDeleteOne struct {
// contains filtered or unexported fields
}
NotificationEventDeleteOne is the builder for deleting a single NotificationEvent entity.
func (*NotificationEventDeleteOne) Exec ¶
func (nedo *NotificationEventDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*NotificationEventDeleteOne) ExecX ¶
func (nedo *NotificationEventDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NotificationEventDeleteOne) Where ¶
func (nedo *NotificationEventDeleteOne) Where(ps ...predicate.NotificationEvent) *NotificationEventDeleteOne
Where appends a list predicates to the NotificationEventDelete builder.
type NotificationEventDeliveryStatus ¶
type NotificationEventDeliveryStatus struct {
// ID of the ent.
ID string `json:"id,omitempty"`
// Namespace holds the value of the "namespace" field.
Namespace string `json:"namespace,omitempty"`
// CreatedAt holds the value of the "created_at" field.
CreatedAt time.Time `json:"created_at,omitempty"`
// UpdatedAt holds the value of the "updated_at" field.
UpdatedAt time.Time `json:"updated_at,omitempty"`
// EventID holds the value of the "event_id" field.
EventID string `json:"event_id,omitempty"`
// ChannelID holds the value of the "channel_id" field.
ChannelID string `json:"channel_id,omitempty"`
// State holds the value of the "state" field.
State notification.EventDeliveryStatusState `json:"state,omitempty"`
// Reason holds the value of the "reason" field.
Reason string `json:"reason,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the NotificationEventDeliveryStatusQuery when eager-loading is set.
Edges NotificationEventDeliveryStatusEdges `json:"edges"`
// contains filtered or unexported fields
}
NotificationEventDeliveryStatus is the model entity for the NotificationEventDeliveryStatus schema.
func (*NotificationEventDeliveryStatus) ExecContext ¶
func (c *NotificationEventDeliveryStatus) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationEventDeliveryStatus) QueryContext ¶
func (c *NotificationEventDeliveryStatus) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationEventDeliveryStatus) QueryEvents ¶
func (neds *NotificationEventDeliveryStatus) QueryEvents() *NotificationEventQuery
QueryEvents queries the "events" edge of the NotificationEventDeliveryStatus entity.
func (*NotificationEventDeliveryStatus) String ¶
func (neds *NotificationEventDeliveryStatus) String() string
String implements the fmt.Stringer.
func (*NotificationEventDeliveryStatus) Unwrap ¶
func (neds *NotificationEventDeliveryStatus) Unwrap() *NotificationEventDeliveryStatus
Unwrap unwraps the NotificationEventDeliveryStatus 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 (*NotificationEventDeliveryStatus) Update ¶
func (neds *NotificationEventDeliveryStatus) Update() *NotificationEventDeliveryStatusUpdateOne
Update returns a builder for updating this NotificationEventDeliveryStatus. Note that you need to call NotificationEventDeliveryStatus.Unwrap() before calling this method if this NotificationEventDeliveryStatus was returned from a transaction, and the transaction was committed or rolled back.
func (*NotificationEventDeliveryStatus) Value ¶
func (neds *NotificationEventDeliveryStatus) Value(name string) (ent.Value, error)
Value returns the ent.Value that was dynamically selected and assigned to the NotificationEventDeliveryStatus. This includes values selected through modifiers, order, etc.
type NotificationEventDeliveryStatusClient ¶
type NotificationEventDeliveryStatusClient struct {
// contains filtered or unexported fields
}
NotificationEventDeliveryStatusClient is a client for the NotificationEventDeliveryStatus schema.
func NewNotificationEventDeliveryStatusClient ¶
func NewNotificationEventDeliveryStatusClient(c config) *NotificationEventDeliveryStatusClient
NewNotificationEventDeliveryStatusClient returns a client for the NotificationEventDeliveryStatus from the given config.
func (*NotificationEventDeliveryStatusClient) Create ¶
func (c *NotificationEventDeliveryStatusClient) Create() *NotificationEventDeliveryStatusCreate
Create returns a builder for creating a NotificationEventDeliveryStatus entity.
func (*NotificationEventDeliveryStatusClient) CreateBulk ¶
func (c *NotificationEventDeliveryStatusClient) CreateBulk(builders ...*NotificationEventDeliveryStatusCreate) *NotificationEventDeliveryStatusCreateBulk
CreateBulk returns a builder for creating a bulk of NotificationEventDeliveryStatus entities.
func (*NotificationEventDeliveryStatusClient) Delete ¶
func (c *NotificationEventDeliveryStatusClient) Delete() *NotificationEventDeliveryStatusDelete
Delete returns a delete builder for NotificationEventDeliveryStatus.
func (*NotificationEventDeliveryStatusClient) DeleteOne ¶
func (c *NotificationEventDeliveryStatusClient) DeleteOne(neds *NotificationEventDeliveryStatus) *NotificationEventDeliveryStatusDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*NotificationEventDeliveryStatusClient) DeleteOneID ¶
func (c *NotificationEventDeliveryStatusClient) DeleteOneID(id string) *NotificationEventDeliveryStatusDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*NotificationEventDeliveryStatusClient) ExecContext ¶
func (c *NotificationEventDeliveryStatusClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationEventDeliveryStatusClient) Get ¶
func (c *NotificationEventDeliveryStatusClient) Get(ctx context.Context, id string) (*NotificationEventDeliveryStatus, error)
Get returns a NotificationEventDeliveryStatus entity by its id.
func (*NotificationEventDeliveryStatusClient) GetX ¶
func (c *NotificationEventDeliveryStatusClient) GetX(ctx context.Context, id string) *NotificationEventDeliveryStatus
GetX is like Get, but panics if an error occurs.
func (*NotificationEventDeliveryStatusClient) Hooks ¶
func (c *NotificationEventDeliveryStatusClient) Hooks() []Hook
Hooks returns the client hooks.
func (*NotificationEventDeliveryStatusClient) Intercept ¶
func (c *NotificationEventDeliveryStatusClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `notificationeventdeliverystatus.Intercept(f(g(h())))`.
func (*NotificationEventDeliveryStatusClient) Interceptors ¶
func (c *NotificationEventDeliveryStatusClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*NotificationEventDeliveryStatusClient) MapCreateBulk ¶
func (c *NotificationEventDeliveryStatusClient) MapCreateBulk(slice any, setFunc func(*NotificationEventDeliveryStatusCreate, int)) *NotificationEventDeliveryStatusCreateBulk
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 (*NotificationEventDeliveryStatusClient) Query ¶
func (c *NotificationEventDeliveryStatusClient) Query() *NotificationEventDeliveryStatusQuery
Query returns a query builder for NotificationEventDeliveryStatus.
func (*NotificationEventDeliveryStatusClient) QueryContext ¶
func (c *NotificationEventDeliveryStatusClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationEventDeliveryStatusClient) QueryEvents ¶
func (c *NotificationEventDeliveryStatusClient) QueryEvents(neds *NotificationEventDeliveryStatus) *NotificationEventQuery
QueryEvents queries the events edge of a NotificationEventDeliveryStatus.
func (*NotificationEventDeliveryStatusClient) Update ¶
func (c *NotificationEventDeliveryStatusClient) Update() *NotificationEventDeliveryStatusUpdate
Update returns an update builder for NotificationEventDeliveryStatus.
func (*NotificationEventDeliveryStatusClient) UpdateOne ¶
func (c *NotificationEventDeliveryStatusClient) UpdateOne(neds *NotificationEventDeliveryStatus) *NotificationEventDeliveryStatusUpdateOne
UpdateOne returns an update builder for the given entity.
func (*NotificationEventDeliveryStatusClient) UpdateOneID ¶
func (c *NotificationEventDeliveryStatusClient) UpdateOneID(id string) *NotificationEventDeliveryStatusUpdateOne
UpdateOneID returns an update builder for the given id.
func (*NotificationEventDeliveryStatusClient) Use ¶
func (c *NotificationEventDeliveryStatusClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `notificationeventdeliverystatus.Hooks(f(g(h())))`.
type NotificationEventDeliveryStatusCreate ¶
type NotificationEventDeliveryStatusCreate struct {
// contains filtered or unexported fields
}
NotificationEventDeliveryStatusCreate is the builder for creating a NotificationEventDeliveryStatus entity.
func (*NotificationEventDeliveryStatusCreate) AddEventIDs ¶
func (nedsc *NotificationEventDeliveryStatusCreate) AddEventIDs(ids ...string) *NotificationEventDeliveryStatusCreate
AddEventIDs adds the "events" edge to the NotificationEvent entity by IDs.
func (*NotificationEventDeliveryStatusCreate) AddEvents ¶
func (nedsc *NotificationEventDeliveryStatusCreate) AddEvents(n ...*NotificationEvent) *NotificationEventDeliveryStatusCreate
AddEvents adds the "events" edges to the NotificationEvent entity.
func (*NotificationEventDeliveryStatusCreate) Exec ¶
func (nedsc *NotificationEventDeliveryStatusCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*NotificationEventDeliveryStatusCreate) ExecContext ¶
func (c *NotificationEventDeliveryStatusCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationEventDeliveryStatusCreate) ExecX ¶
func (nedsc *NotificationEventDeliveryStatusCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NotificationEventDeliveryStatusCreate) Mutation ¶
func (nedsc *NotificationEventDeliveryStatusCreate) Mutation() *NotificationEventDeliveryStatusMutation
Mutation returns the NotificationEventDeliveryStatusMutation object of the builder.
func (*NotificationEventDeliveryStatusCreate) OnConflict ¶
func (nedsc *NotificationEventDeliveryStatusCreate) OnConflict(opts ...sql.ConflictOption) *NotificationEventDeliveryStatusUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.NotificationEventDeliveryStatus.Create().
SetNamespace(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.NotificationEventDeliveryStatusUpsert) {
SetNamespace(v+v).
}).
Exec(ctx)
func (*NotificationEventDeliveryStatusCreate) OnConflictColumns ¶
func (nedsc *NotificationEventDeliveryStatusCreate) OnConflictColumns(columns ...string) *NotificationEventDeliveryStatusUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.NotificationEventDeliveryStatus.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*NotificationEventDeliveryStatusCreate) QueryContext ¶
func (c *NotificationEventDeliveryStatusCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationEventDeliveryStatusCreate) Save ¶
func (nedsc *NotificationEventDeliveryStatusCreate) Save(ctx context.Context) (*NotificationEventDeliveryStatus, error)
Save creates the NotificationEventDeliveryStatus in the database.
func (*NotificationEventDeliveryStatusCreate) SaveX ¶
func (nedsc *NotificationEventDeliveryStatusCreate) SaveX(ctx context.Context) *NotificationEventDeliveryStatus
SaveX calls Save and panics if Save returns an error.
func (*NotificationEventDeliveryStatusCreate) SetChannelID ¶
func (nedsc *NotificationEventDeliveryStatusCreate) SetChannelID(s string) *NotificationEventDeliveryStatusCreate
SetChannelID sets the "channel_id" field.
func (*NotificationEventDeliveryStatusCreate) SetCreatedAt ¶
func (nedsc *NotificationEventDeliveryStatusCreate) SetCreatedAt(t time.Time) *NotificationEventDeliveryStatusCreate
SetCreatedAt sets the "created_at" field.
func (*NotificationEventDeliveryStatusCreate) SetEventID ¶
func (nedsc *NotificationEventDeliveryStatusCreate) SetEventID(s string) *NotificationEventDeliveryStatusCreate
SetEventID sets the "event_id" field.
func (*NotificationEventDeliveryStatusCreate) SetID ¶
func (nedsc *NotificationEventDeliveryStatusCreate) SetID(s string) *NotificationEventDeliveryStatusCreate
SetID sets the "id" field.
func (*NotificationEventDeliveryStatusCreate) SetNamespace ¶
func (nedsc *NotificationEventDeliveryStatusCreate) SetNamespace(s string) *NotificationEventDeliveryStatusCreate
SetNamespace sets the "namespace" field.
func (*NotificationEventDeliveryStatusCreate) SetNillableCreatedAt ¶
func (nedsc *NotificationEventDeliveryStatusCreate) SetNillableCreatedAt(t *time.Time) *NotificationEventDeliveryStatusCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*NotificationEventDeliveryStatusCreate) SetNillableID ¶
func (nedsc *NotificationEventDeliveryStatusCreate) SetNillableID(s *string) *NotificationEventDeliveryStatusCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*NotificationEventDeliveryStatusCreate) SetNillableReason ¶
func (nedsc *NotificationEventDeliveryStatusCreate) SetNillableReason(s *string) *NotificationEventDeliveryStatusCreate
SetNillableReason sets the "reason" field if the given value is not nil.
func (*NotificationEventDeliveryStatusCreate) SetNillableState ¶
func (nedsc *NotificationEventDeliveryStatusCreate) SetNillableState(ndss *notification.EventDeliveryStatusState) *NotificationEventDeliveryStatusCreate
SetNillableState sets the "state" field if the given value is not nil.
func (*NotificationEventDeliveryStatusCreate) SetNillableUpdatedAt ¶
func (nedsc *NotificationEventDeliveryStatusCreate) SetNillableUpdatedAt(t *time.Time) *NotificationEventDeliveryStatusCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*NotificationEventDeliveryStatusCreate) SetReason ¶
func (nedsc *NotificationEventDeliveryStatusCreate) SetReason(s string) *NotificationEventDeliveryStatusCreate
SetReason sets the "reason" field.
func (*NotificationEventDeliveryStatusCreate) SetState ¶
func (nedsc *NotificationEventDeliveryStatusCreate) SetState(ndss notification.EventDeliveryStatusState) *NotificationEventDeliveryStatusCreate
SetState sets the "state" field.
func (*NotificationEventDeliveryStatusCreate) SetUpdatedAt ¶
func (nedsc *NotificationEventDeliveryStatusCreate) SetUpdatedAt(t time.Time) *NotificationEventDeliveryStatusCreate
SetUpdatedAt sets the "updated_at" field.
type NotificationEventDeliveryStatusCreateBulk ¶
type NotificationEventDeliveryStatusCreateBulk struct {
// contains filtered or unexported fields
}
NotificationEventDeliveryStatusCreateBulk is the builder for creating many NotificationEventDeliveryStatus entities in bulk.
func (*NotificationEventDeliveryStatusCreateBulk) Exec ¶
func (nedscb *NotificationEventDeliveryStatusCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*NotificationEventDeliveryStatusCreateBulk) ExecContext ¶
func (c *NotificationEventDeliveryStatusCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationEventDeliveryStatusCreateBulk) ExecX ¶
func (nedscb *NotificationEventDeliveryStatusCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NotificationEventDeliveryStatusCreateBulk) OnConflict ¶
func (nedscb *NotificationEventDeliveryStatusCreateBulk) OnConflict(opts ...sql.ConflictOption) *NotificationEventDeliveryStatusUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.NotificationEventDeliveryStatus.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.NotificationEventDeliveryStatusUpsert) {
SetNamespace(v+v).
}).
Exec(ctx)
func (*NotificationEventDeliveryStatusCreateBulk) OnConflictColumns ¶
func (nedscb *NotificationEventDeliveryStatusCreateBulk) OnConflictColumns(columns ...string) *NotificationEventDeliveryStatusUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.NotificationEventDeliveryStatus.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*NotificationEventDeliveryStatusCreateBulk) QueryContext ¶
func (c *NotificationEventDeliveryStatusCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationEventDeliveryStatusCreateBulk) Save ¶
func (nedscb *NotificationEventDeliveryStatusCreateBulk) Save(ctx context.Context) ([]*NotificationEventDeliveryStatus, error)
Save creates the NotificationEventDeliveryStatus entities in the database.
func (*NotificationEventDeliveryStatusCreateBulk) SaveX ¶
func (nedscb *NotificationEventDeliveryStatusCreateBulk) SaveX(ctx context.Context) []*NotificationEventDeliveryStatus
SaveX is like Save, but panics if an error occurs.
type NotificationEventDeliveryStatusDelete ¶
type NotificationEventDeliveryStatusDelete struct {
// contains filtered or unexported fields
}
NotificationEventDeliveryStatusDelete is the builder for deleting a NotificationEventDeliveryStatus entity.
func (*NotificationEventDeliveryStatusDelete) Exec ¶
func (nedsd *NotificationEventDeliveryStatusDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*NotificationEventDeliveryStatusDelete) ExecContext ¶
func (c *NotificationEventDeliveryStatusDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationEventDeliveryStatusDelete) ExecX ¶
func (nedsd *NotificationEventDeliveryStatusDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*NotificationEventDeliveryStatusDelete) QueryContext ¶
func (c *NotificationEventDeliveryStatusDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationEventDeliveryStatusDelete) Where ¶
func (nedsd *NotificationEventDeliveryStatusDelete) Where(ps ...predicate.NotificationEventDeliveryStatus) *NotificationEventDeliveryStatusDelete
Where appends a list predicates to the NotificationEventDeliveryStatusDelete builder.
type NotificationEventDeliveryStatusDeleteOne ¶
type NotificationEventDeliveryStatusDeleteOne struct {
// contains filtered or unexported fields
}
NotificationEventDeliveryStatusDeleteOne is the builder for deleting a single NotificationEventDeliveryStatus entity.
func (*NotificationEventDeliveryStatusDeleteOne) Exec ¶
func (nedsdo *NotificationEventDeliveryStatusDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*NotificationEventDeliveryStatusDeleteOne) ExecX ¶
func (nedsdo *NotificationEventDeliveryStatusDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NotificationEventDeliveryStatusDeleteOne) Where ¶
func (nedsdo *NotificationEventDeliveryStatusDeleteOne) Where(ps ...predicate.NotificationEventDeliveryStatus) *NotificationEventDeliveryStatusDeleteOne
Where appends a list predicates to the NotificationEventDeliveryStatusDelete builder.
type NotificationEventDeliveryStatusEdges ¶
type NotificationEventDeliveryStatusEdges struct {
// Events holds the value of the events edge.
Events []*NotificationEvent `json:"events,omitempty"`
// contains filtered or unexported fields
}
NotificationEventDeliveryStatusEdges holds the relations/edges for other nodes in the graph.
func (NotificationEventDeliveryStatusEdges) EventsOrErr ¶
func (e NotificationEventDeliveryStatusEdges) EventsOrErr() ([]*NotificationEvent, error)
EventsOrErr returns the Events value or an error if the edge was not loaded in eager-loading.
type NotificationEventDeliveryStatusGroupBy ¶
type NotificationEventDeliveryStatusGroupBy struct {
// contains filtered or unexported fields
}
NotificationEventDeliveryStatusGroupBy is the group-by builder for NotificationEventDeliveryStatus entities.
func (*NotificationEventDeliveryStatusGroupBy) Aggregate ¶
func (nedsgb *NotificationEventDeliveryStatusGroupBy) Aggregate(fns ...AggregateFunc) *NotificationEventDeliveryStatusGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*NotificationEventDeliveryStatusGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*NotificationEventDeliveryStatusGroupBy) BoolX ¶
BoolX is like Bool, but panics if an error occurs.
func (*NotificationEventDeliveryStatusGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*NotificationEventDeliveryStatusGroupBy) BoolsX ¶
BoolsX is like Bools, but panics if an error occurs.
func (*NotificationEventDeliveryStatusGroupBy) Float64 ¶
func (s *NotificationEventDeliveryStatusGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*NotificationEventDeliveryStatusGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*NotificationEventDeliveryStatusGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*NotificationEventDeliveryStatusGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*NotificationEventDeliveryStatusGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*NotificationEventDeliveryStatusGroupBy) IntX ¶
IntX is like Int, but panics if an error occurs.
func (*NotificationEventDeliveryStatusGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*NotificationEventDeliveryStatusGroupBy) IntsX ¶
IntsX is like Ints, but panics if an error occurs.
func (*NotificationEventDeliveryStatusGroupBy) Scan ¶
func (nedsgb *NotificationEventDeliveryStatusGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*NotificationEventDeliveryStatusGroupBy) ScanX ¶
ScanX is like Scan, but panics if an error occurs.
func (*NotificationEventDeliveryStatusGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*NotificationEventDeliveryStatusGroupBy) StringX ¶
StringX is like String, but panics if an error occurs.
type NotificationEventDeliveryStatusMutation ¶
type NotificationEventDeliveryStatusMutation struct {
// contains filtered or unexported fields
}
NotificationEventDeliveryStatusMutation represents an operation that mutates the NotificationEventDeliveryStatus nodes in the graph.
func (*NotificationEventDeliveryStatusMutation) AddEventIDs ¶
func (m *NotificationEventDeliveryStatusMutation) AddEventIDs(ids ...string)
AddEventIDs adds the "events" edge to the NotificationEvent entity by ids.
func (*NotificationEventDeliveryStatusMutation) AddField ¶
func (m *NotificationEventDeliveryStatusMutation) 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 (*NotificationEventDeliveryStatusMutation) AddedEdges ¶
func (m *NotificationEventDeliveryStatusMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*NotificationEventDeliveryStatusMutation) AddedField ¶
func (m *NotificationEventDeliveryStatusMutation) 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 (*NotificationEventDeliveryStatusMutation) AddedFields ¶
func (m *NotificationEventDeliveryStatusMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*NotificationEventDeliveryStatusMutation) AddedIDs ¶
func (m *NotificationEventDeliveryStatusMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*NotificationEventDeliveryStatusMutation) ChannelID ¶
func (m *NotificationEventDeliveryStatusMutation) ChannelID() (r string, exists bool)
ChannelID returns the value of the "channel_id" field in the mutation.
func (*NotificationEventDeliveryStatusMutation) ClearEdge ¶
func (m *NotificationEventDeliveryStatusMutation) 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 (*NotificationEventDeliveryStatusMutation) ClearEvents ¶
func (m *NotificationEventDeliveryStatusMutation) ClearEvents()
ClearEvents clears the "events" edge to the NotificationEvent entity.
func (*NotificationEventDeliveryStatusMutation) ClearField ¶
func (m *NotificationEventDeliveryStatusMutation) 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 (*NotificationEventDeliveryStatusMutation) ClearReason ¶
func (m *NotificationEventDeliveryStatusMutation) ClearReason()
ClearReason clears the value of the "reason" field.
func (*NotificationEventDeliveryStatusMutation) ClearedEdges ¶
func (m *NotificationEventDeliveryStatusMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*NotificationEventDeliveryStatusMutation) ClearedFields ¶
func (m *NotificationEventDeliveryStatusMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (NotificationEventDeliveryStatusMutation) Client ¶
func (m NotificationEventDeliveryStatusMutation) 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 (*NotificationEventDeliveryStatusMutation) CreatedAt ¶
func (m *NotificationEventDeliveryStatusMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*NotificationEventDeliveryStatusMutation) EdgeCleared ¶
func (m *NotificationEventDeliveryStatusMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*NotificationEventDeliveryStatusMutation) EventID ¶
func (m *NotificationEventDeliveryStatusMutation) EventID() (r string, exists bool)
EventID returns the value of the "event_id" field in the mutation.
func (*NotificationEventDeliveryStatusMutation) EventsCleared ¶
func (m *NotificationEventDeliveryStatusMutation) EventsCleared() bool
EventsCleared reports if the "events" edge to the NotificationEvent entity was cleared.
func (*NotificationEventDeliveryStatusMutation) EventsIDs ¶
func (m *NotificationEventDeliveryStatusMutation) EventsIDs() (ids []string)
EventsIDs returns the "events" edge IDs in the mutation.
func (*NotificationEventDeliveryStatusMutation) ExecContext ¶
func (c *NotificationEventDeliveryStatusMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationEventDeliveryStatusMutation) Field ¶
func (m *NotificationEventDeliveryStatusMutation) 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 (*NotificationEventDeliveryStatusMutation) FieldCleared ¶
func (m *NotificationEventDeliveryStatusMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*NotificationEventDeliveryStatusMutation) Fields ¶
func (m *NotificationEventDeliveryStatusMutation) 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 (*NotificationEventDeliveryStatusMutation) ID ¶
func (m *NotificationEventDeliveryStatusMutation) ID() (id string, 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 (*NotificationEventDeliveryStatusMutation) IDs ¶
func (m *NotificationEventDeliveryStatusMutation) IDs(ctx context.Context) ([]string, error)
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 (*NotificationEventDeliveryStatusMutation) Namespace ¶
func (m *NotificationEventDeliveryStatusMutation) Namespace() (r string, exists bool)
Namespace returns the value of the "namespace" field in the mutation.
func (*NotificationEventDeliveryStatusMutation) OldChannelID ¶
func (m *NotificationEventDeliveryStatusMutation) OldChannelID(ctx context.Context) (v string, err error)
OldChannelID returns the old "channel_id" field's value of the NotificationEventDeliveryStatus entity. If the NotificationEventDeliveryStatus 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 (*NotificationEventDeliveryStatusMutation) OldCreatedAt ¶
func (m *NotificationEventDeliveryStatusMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
OldCreatedAt returns the old "created_at" field's value of the NotificationEventDeliveryStatus entity. If the NotificationEventDeliveryStatus 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 (*NotificationEventDeliveryStatusMutation) OldEventID ¶
func (m *NotificationEventDeliveryStatusMutation) OldEventID(ctx context.Context) (v string, err error)
OldEventID returns the old "event_id" field's value of the NotificationEventDeliveryStatus entity. If the NotificationEventDeliveryStatus 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 (*NotificationEventDeliveryStatusMutation) OldField ¶
func (m *NotificationEventDeliveryStatusMutation) OldField(ctx context.Context, name string) (ent.Value, error)
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 (*NotificationEventDeliveryStatusMutation) OldNamespace ¶
func (m *NotificationEventDeliveryStatusMutation) OldNamespace(ctx context.Context) (v string, err error)
OldNamespace returns the old "namespace" field's value of the NotificationEventDeliveryStatus entity. If the NotificationEventDeliveryStatus 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 (*NotificationEventDeliveryStatusMutation) OldReason ¶
func (m *NotificationEventDeliveryStatusMutation) OldReason(ctx context.Context) (v string, err error)
OldReason returns the old "reason" field's value of the NotificationEventDeliveryStatus entity. If the NotificationEventDeliveryStatus 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 (*NotificationEventDeliveryStatusMutation) OldState ¶
func (m *NotificationEventDeliveryStatusMutation) OldState(ctx context.Context) (v notification.EventDeliveryStatusState, err error)
OldState returns the old "state" field's value of the NotificationEventDeliveryStatus entity. If the NotificationEventDeliveryStatus 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 (*NotificationEventDeliveryStatusMutation) OldUpdatedAt ¶
func (m *NotificationEventDeliveryStatusMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
OldUpdatedAt returns the old "updated_at" field's value of the NotificationEventDeliveryStatus entity. If the NotificationEventDeliveryStatus 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 (*NotificationEventDeliveryStatusMutation) Op ¶
func (m *NotificationEventDeliveryStatusMutation) Op() Op
Op returns the operation name.
func (*NotificationEventDeliveryStatusMutation) QueryContext ¶
func (c *NotificationEventDeliveryStatusMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationEventDeliveryStatusMutation) Reason ¶
func (m *NotificationEventDeliveryStatusMutation) Reason() (r string, exists bool)
Reason returns the value of the "reason" field in the mutation.
func (*NotificationEventDeliveryStatusMutation) ReasonCleared ¶
func (m *NotificationEventDeliveryStatusMutation) ReasonCleared() bool
ReasonCleared returns if the "reason" field was cleared in this mutation.
func (*NotificationEventDeliveryStatusMutation) RemoveEventIDs ¶
func (m *NotificationEventDeliveryStatusMutation) RemoveEventIDs(ids ...string)
RemoveEventIDs removes the "events" edge to the NotificationEvent entity by IDs.
func (*NotificationEventDeliveryStatusMutation) RemovedEdges ¶
func (m *NotificationEventDeliveryStatusMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*NotificationEventDeliveryStatusMutation) RemovedEventsIDs ¶
func (m *NotificationEventDeliveryStatusMutation) RemovedEventsIDs() (ids []string)
RemovedEvents returns the removed IDs of the "events" edge to the NotificationEvent entity.
func (*NotificationEventDeliveryStatusMutation) RemovedIDs ¶
func (m *NotificationEventDeliveryStatusMutation) 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 (*NotificationEventDeliveryStatusMutation) ResetChannelID ¶
func (m *NotificationEventDeliveryStatusMutation) ResetChannelID()
ResetChannelID resets all changes to the "channel_id" field.
func (*NotificationEventDeliveryStatusMutation) ResetCreatedAt ¶
func (m *NotificationEventDeliveryStatusMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*NotificationEventDeliveryStatusMutation) ResetEdge ¶
func (m *NotificationEventDeliveryStatusMutation) 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 (*NotificationEventDeliveryStatusMutation) ResetEventID ¶
func (m *NotificationEventDeliveryStatusMutation) ResetEventID()
ResetEventID resets all changes to the "event_id" field.
func (*NotificationEventDeliveryStatusMutation) ResetEvents ¶
func (m *NotificationEventDeliveryStatusMutation) ResetEvents()
ResetEvents resets all changes to the "events" edge.
func (*NotificationEventDeliveryStatusMutation) ResetField ¶
func (m *NotificationEventDeliveryStatusMutation) 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 (*NotificationEventDeliveryStatusMutation) ResetNamespace ¶
func (m *NotificationEventDeliveryStatusMutation) ResetNamespace()
ResetNamespace resets all changes to the "namespace" field.
func (*NotificationEventDeliveryStatusMutation) ResetReason ¶
func (m *NotificationEventDeliveryStatusMutation) ResetReason()
ResetReason resets all changes to the "reason" field.
func (*NotificationEventDeliveryStatusMutation) ResetState ¶
func (m *NotificationEventDeliveryStatusMutation) ResetState()
ResetState resets all changes to the "state" field.
func (*NotificationEventDeliveryStatusMutation) ResetUpdatedAt ¶
func (m *NotificationEventDeliveryStatusMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*NotificationEventDeliveryStatusMutation) SetChannelID ¶
func (m *NotificationEventDeliveryStatusMutation) SetChannelID(s string)
SetChannelID sets the "channel_id" field.
func (*NotificationEventDeliveryStatusMutation) SetCreatedAt ¶
func (m *NotificationEventDeliveryStatusMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*NotificationEventDeliveryStatusMutation) SetEventID ¶
func (m *NotificationEventDeliveryStatusMutation) SetEventID(s string)
SetEventID sets the "event_id" field.
func (*NotificationEventDeliveryStatusMutation) SetField ¶
func (m *NotificationEventDeliveryStatusMutation) 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 (*NotificationEventDeliveryStatusMutation) SetID ¶
func (m *NotificationEventDeliveryStatusMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of NotificationEventDeliveryStatus entities.
func (*NotificationEventDeliveryStatusMutation) SetNamespace ¶
func (m *NotificationEventDeliveryStatusMutation) SetNamespace(s string)
SetNamespace sets the "namespace" field.
func (*NotificationEventDeliveryStatusMutation) SetOp ¶
func (m *NotificationEventDeliveryStatusMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*NotificationEventDeliveryStatusMutation) SetReason ¶
func (m *NotificationEventDeliveryStatusMutation) SetReason(s string)
SetReason sets the "reason" field.
func (*NotificationEventDeliveryStatusMutation) SetState ¶
func (m *NotificationEventDeliveryStatusMutation) SetState(ndss notification.EventDeliveryStatusState)
SetState sets the "state" field.
func (*NotificationEventDeliveryStatusMutation) SetUpdatedAt ¶
func (m *NotificationEventDeliveryStatusMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*NotificationEventDeliveryStatusMutation) State ¶
func (m *NotificationEventDeliveryStatusMutation) State() (r notification.EventDeliveryStatusState, exists bool)
State returns the value of the "state" field in the mutation.
func (NotificationEventDeliveryStatusMutation) Tx ¶
func (m NotificationEventDeliveryStatusMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*NotificationEventDeliveryStatusMutation) Type ¶
func (m *NotificationEventDeliveryStatusMutation) Type() string
Type returns the node type of this mutation (NotificationEventDeliveryStatus).
func (*NotificationEventDeliveryStatusMutation) UpdatedAt ¶
func (m *NotificationEventDeliveryStatusMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*NotificationEventDeliveryStatusMutation) Where ¶
func (m *NotificationEventDeliveryStatusMutation) Where(ps ...predicate.NotificationEventDeliveryStatus)
Where appends a list predicates to the NotificationEventDeliveryStatusMutation builder.
func (*NotificationEventDeliveryStatusMutation) WhereP ¶
func (m *NotificationEventDeliveryStatusMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the NotificationEventDeliveryStatusMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type NotificationEventDeliveryStatusQuery ¶
type NotificationEventDeliveryStatusQuery struct {
// contains filtered or unexported fields
}
NotificationEventDeliveryStatusQuery is the builder for querying NotificationEventDeliveryStatus entities.
func (*NotificationEventDeliveryStatusQuery) Aggregate ¶
func (nedsq *NotificationEventDeliveryStatusQuery) Aggregate(fns ...AggregateFunc) *NotificationEventDeliveryStatusSelect
Aggregate returns a NotificationEventDeliveryStatusSelect configured with the given aggregations.
func (*NotificationEventDeliveryStatusQuery) All ¶
func (nedsq *NotificationEventDeliveryStatusQuery) All(ctx context.Context) ([]*NotificationEventDeliveryStatus, error)
All executes the query and returns a list of NotificationEventDeliveryStatusSlice.
func (*NotificationEventDeliveryStatusQuery) AllX ¶
func (nedsq *NotificationEventDeliveryStatusQuery) AllX(ctx context.Context) []*NotificationEventDeliveryStatus
AllX is like All, but panics if an error occurs.
func (*NotificationEventDeliveryStatusQuery) Clone ¶
func (nedsq *NotificationEventDeliveryStatusQuery) Clone() *NotificationEventDeliveryStatusQuery
Clone returns a duplicate of the NotificationEventDeliveryStatusQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*NotificationEventDeliveryStatusQuery) Count ¶
func (nedsq *NotificationEventDeliveryStatusQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*NotificationEventDeliveryStatusQuery) CountX ¶
func (nedsq *NotificationEventDeliveryStatusQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*NotificationEventDeliveryStatusQuery) ExecContext ¶
func (c *NotificationEventDeliveryStatusQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationEventDeliveryStatusQuery) Exist ¶
func (nedsq *NotificationEventDeliveryStatusQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*NotificationEventDeliveryStatusQuery) ExistX ¶
func (nedsq *NotificationEventDeliveryStatusQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*NotificationEventDeliveryStatusQuery) First ¶
func (nedsq *NotificationEventDeliveryStatusQuery) First(ctx context.Context) (*NotificationEventDeliveryStatus, error)
First returns the first NotificationEventDeliveryStatus entity from the query. Returns a *NotFoundError when no NotificationEventDeliveryStatus was found.
func (*NotificationEventDeliveryStatusQuery) FirstID ¶
func (nedsq *NotificationEventDeliveryStatusQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first NotificationEventDeliveryStatus ID from the query. Returns a *NotFoundError when no NotificationEventDeliveryStatus ID was found.
func (*NotificationEventDeliveryStatusQuery) FirstIDX ¶
func (nedsq *NotificationEventDeliveryStatusQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*NotificationEventDeliveryStatusQuery) FirstX ¶
func (nedsq *NotificationEventDeliveryStatusQuery) FirstX(ctx context.Context) *NotificationEventDeliveryStatus
FirstX is like First, but panics if an error occurs.
func (*NotificationEventDeliveryStatusQuery) ForShare ¶
func (nedsq *NotificationEventDeliveryStatusQuery) ForShare(opts ...sql.LockOption) *NotificationEventDeliveryStatusQuery
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 (*NotificationEventDeliveryStatusQuery) ForUpdate ¶
func (nedsq *NotificationEventDeliveryStatusQuery) ForUpdate(opts ...sql.LockOption) *NotificationEventDeliveryStatusQuery
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 (*NotificationEventDeliveryStatusQuery) GroupBy ¶
func (nedsq *NotificationEventDeliveryStatusQuery) GroupBy(field string, fields ...string) *NotificationEventDeliveryStatusGroupBy
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 {
Namespace string `json:"namespace,omitempty"`
Count int `json:"count,omitempty"`
}
client.NotificationEventDeliveryStatus.Query().
GroupBy(notificationeventdeliverystatus.FieldNamespace).
Aggregate(db.Count()).
Scan(ctx, &v)
func (*NotificationEventDeliveryStatusQuery) IDs ¶
func (nedsq *NotificationEventDeliveryStatusQuery) IDs(ctx context.Context) (ids []string, err error)
IDs executes the query and returns a list of NotificationEventDeliveryStatus IDs.
func (*NotificationEventDeliveryStatusQuery) IDsX ¶
func (nedsq *NotificationEventDeliveryStatusQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*NotificationEventDeliveryStatusQuery) Limit ¶
func (nedsq *NotificationEventDeliveryStatusQuery) Limit(limit int) *NotificationEventDeliveryStatusQuery
Limit the number of records to be returned by this query.
func (*NotificationEventDeliveryStatusQuery) Offset ¶
func (nedsq *NotificationEventDeliveryStatusQuery) Offset(offset int) *NotificationEventDeliveryStatusQuery
Offset to start from.
func (*NotificationEventDeliveryStatusQuery) Only ¶
func (nedsq *NotificationEventDeliveryStatusQuery) Only(ctx context.Context) (*NotificationEventDeliveryStatus, error)
Only returns a single NotificationEventDeliveryStatus entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one NotificationEventDeliveryStatus entity is found. Returns a *NotFoundError when no NotificationEventDeliveryStatus entities are found.
func (*NotificationEventDeliveryStatusQuery) OnlyID ¶
func (nedsq *NotificationEventDeliveryStatusQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only NotificationEventDeliveryStatus ID in the query. Returns a *NotSingularError when more than one NotificationEventDeliveryStatus ID is found. Returns a *NotFoundError when no entities are found.
func (*NotificationEventDeliveryStatusQuery) OnlyIDX ¶
func (nedsq *NotificationEventDeliveryStatusQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*NotificationEventDeliveryStatusQuery) OnlyX ¶
func (nedsq *NotificationEventDeliveryStatusQuery) OnlyX(ctx context.Context) *NotificationEventDeliveryStatus
OnlyX is like Only, but panics if an error occurs.
func (*NotificationEventDeliveryStatusQuery) Order ¶
func (nedsq *NotificationEventDeliveryStatusQuery) Order(o ...notificationeventdeliverystatus.OrderOption) *NotificationEventDeliveryStatusQuery
Order specifies how the records should be ordered.
func (*NotificationEventDeliveryStatusQuery) Paginate ¶
func (neds *NotificationEventDeliveryStatusQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*NotificationEventDeliveryStatus], error)
Paginate runs the query and returns a paginated response. If page is its 0 value then it will return all the items and populate the response page accordingly.
func (*NotificationEventDeliveryStatusQuery) QueryContext ¶
func (c *NotificationEventDeliveryStatusQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationEventDeliveryStatusQuery) QueryEvents ¶
func (nedsq *NotificationEventDeliveryStatusQuery) QueryEvents() *NotificationEventQuery
QueryEvents chains the current query on the "events" edge.
func (*NotificationEventDeliveryStatusQuery) Select ¶
func (nedsq *NotificationEventDeliveryStatusQuery) Select(fields ...string) *NotificationEventDeliveryStatusSelect
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 {
Namespace string `json:"namespace,omitempty"`
}
client.NotificationEventDeliveryStatus.Query().
Select(notificationeventdeliverystatus.FieldNamespace).
Scan(ctx, &v)
func (*NotificationEventDeliveryStatusQuery) Unique ¶
func (nedsq *NotificationEventDeliveryStatusQuery) Unique(unique bool) *NotificationEventDeliveryStatusQuery
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 (*NotificationEventDeliveryStatusQuery) Where ¶
func (nedsq *NotificationEventDeliveryStatusQuery) Where(ps ...predicate.NotificationEventDeliveryStatus) *NotificationEventDeliveryStatusQuery
Where adds a new predicate for the NotificationEventDeliveryStatusQuery builder.
func (*NotificationEventDeliveryStatusQuery) WithEvents ¶
func (nedsq *NotificationEventDeliveryStatusQuery) WithEvents(opts ...func(*NotificationEventQuery)) *NotificationEventDeliveryStatusQuery
WithEvents tells the query-builder to eager-load the nodes that are connected to the "events" edge. The optional arguments are used to configure the query builder of the edge.
type NotificationEventDeliveryStatusSelect ¶
type NotificationEventDeliveryStatusSelect struct {
*NotificationEventDeliveryStatusQuery
// contains filtered or unexported fields
}
NotificationEventDeliveryStatusSelect is the builder for selecting fields of NotificationEventDeliveryStatus entities.
func (*NotificationEventDeliveryStatusSelect) Aggregate ¶
func (nedss *NotificationEventDeliveryStatusSelect) Aggregate(fns ...AggregateFunc) *NotificationEventDeliveryStatusSelect
Aggregate adds the given aggregation functions to the selector query.
func (*NotificationEventDeliveryStatusSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*NotificationEventDeliveryStatusSelect) BoolX ¶
BoolX is like Bool, but panics if an error occurs.
func (*NotificationEventDeliveryStatusSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*NotificationEventDeliveryStatusSelect) BoolsX ¶
BoolsX is like Bools, but panics if an error occurs.
func (NotificationEventDeliveryStatusSelect) ExecContext ¶
func (c NotificationEventDeliveryStatusSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationEventDeliveryStatusSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*NotificationEventDeliveryStatusSelect) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*NotificationEventDeliveryStatusSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*NotificationEventDeliveryStatusSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*NotificationEventDeliveryStatusSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*NotificationEventDeliveryStatusSelect) IntX ¶
IntX is like Int, but panics if an error occurs.
func (*NotificationEventDeliveryStatusSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*NotificationEventDeliveryStatusSelect) IntsX ¶
IntsX is like Ints, but panics if an error occurs.
func (NotificationEventDeliveryStatusSelect) QueryContext ¶
func (c NotificationEventDeliveryStatusSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationEventDeliveryStatusSelect) Scan ¶
func (nedss *NotificationEventDeliveryStatusSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*NotificationEventDeliveryStatusSelect) ScanX ¶
ScanX is like Scan, but panics if an error occurs.
func (*NotificationEventDeliveryStatusSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*NotificationEventDeliveryStatusSelect) StringX ¶
StringX is like String, but panics if an error occurs.
type NotificationEventDeliveryStatusSlice ¶
type NotificationEventDeliveryStatusSlice []*NotificationEventDeliveryStatus
NotificationEventDeliveryStatusSlice is a parsable slice of NotificationEventDeliveryStatus.
type NotificationEventDeliveryStatusUpdate ¶
type NotificationEventDeliveryStatusUpdate struct {
// contains filtered or unexported fields
}
NotificationEventDeliveryStatusUpdate is the builder for updating NotificationEventDeliveryStatus entities.
func (*NotificationEventDeliveryStatusUpdate) AddEventIDs ¶
func (nedsu *NotificationEventDeliveryStatusUpdate) AddEventIDs(ids ...string) *NotificationEventDeliveryStatusUpdate
AddEventIDs adds the "events" edge to the NotificationEvent entity by IDs.
func (*NotificationEventDeliveryStatusUpdate) AddEvents ¶
func (nedsu *NotificationEventDeliveryStatusUpdate) AddEvents(n ...*NotificationEvent) *NotificationEventDeliveryStatusUpdate
AddEvents adds the "events" edges to the NotificationEvent entity.
func (*NotificationEventDeliveryStatusUpdate) ClearEvents ¶
func (nedsu *NotificationEventDeliveryStatusUpdate) ClearEvents() *NotificationEventDeliveryStatusUpdate
ClearEvents clears all "events" edges to the NotificationEvent entity.
func (*NotificationEventDeliveryStatusUpdate) ClearReason ¶
func (nedsu *NotificationEventDeliveryStatusUpdate) ClearReason() *NotificationEventDeliveryStatusUpdate
ClearReason clears the value of the "reason" field.
func (*NotificationEventDeliveryStatusUpdate) Exec ¶
func (nedsu *NotificationEventDeliveryStatusUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*NotificationEventDeliveryStatusUpdate) ExecContext ¶
func (c *NotificationEventDeliveryStatusUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationEventDeliveryStatusUpdate) ExecX ¶
func (nedsu *NotificationEventDeliveryStatusUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NotificationEventDeliveryStatusUpdate) Mutation ¶
func (nedsu *NotificationEventDeliveryStatusUpdate) Mutation() *NotificationEventDeliveryStatusMutation
Mutation returns the NotificationEventDeliveryStatusMutation object of the builder.
func (*NotificationEventDeliveryStatusUpdate) QueryContext ¶
func (c *NotificationEventDeliveryStatusUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationEventDeliveryStatusUpdate) RemoveEventIDs ¶
func (nedsu *NotificationEventDeliveryStatusUpdate) RemoveEventIDs(ids ...string) *NotificationEventDeliveryStatusUpdate
RemoveEventIDs removes the "events" edge to NotificationEvent entities by IDs.
func (*NotificationEventDeliveryStatusUpdate) RemoveEvents ¶
func (nedsu *NotificationEventDeliveryStatusUpdate) RemoveEvents(n ...*NotificationEvent) *NotificationEventDeliveryStatusUpdate
RemoveEvents removes "events" edges to NotificationEvent entities.
func (*NotificationEventDeliveryStatusUpdate) Save ¶
func (nedsu *NotificationEventDeliveryStatusUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*NotificationEventDeliveryStatusUpdate) SaveX ¶
func (nedsu *NotificationEventDeliveryStatusUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*NotificationEventDeliveryStatusUpdate) SetNillableReason ¶
func (nedsu *NotificationEventDeliveryStatusUpdate) SetNillableReason(s *string) *NotificationEventDeliveryStatusUpdate
SetNillableReason sets the "reason" field if the given value is not nil.
func (*NotificationEventDeliveryStatusUpdate) SetNillableState ¶
func (nedsu *NotificationEventDeliveryStatusUpdate) SetNillableState(ndss *notification.EventDeliveryStatusState) *NotificationEventDeliveryStatusUpdate
SetNillableState sets the "state" field if the given value is not nil.
func (*NotificationEventDeliveryStatusUpdate) SetOrClearReason ¶
func (u *NotificationEventDeliveryStatusUpdate) SetOrClearReason(value *string) *NotificationEventDeliveryStatusUpdate
func (*NotificationEventDeliveryStatusUpdate) SetReason ¶
func (nedsu *NotificationEventDeliveryStatusUpdate) SetReason(s string) *NotificationEventDeliveryStatusUpdate
SetReason sets the "reason" field.
func (*NotificationEventDeliveryStatusUpdate) SetState ¶
func (nedsu *NotificationEventDeliveryStatusUpdate) SetState(ndss notification.EventDeliveryStatusState) *NotificationEventDeliveryStatusUpdate
SetState sets the "state" field.
func (*NotificationEventDeliveryStatusUpdate) SetUpdatedAt ¶
func (nedsu *NotificationEventDeliveryStatusUpdate) SetUpdatedAt(t time.Time) *NotificationEventDeliveryStatusUpdate
SetUpdatedAt sets the "updated_at" field.
func (*NotificationEventDeliveryStatusUpdate) Where ¶
func (nedsu *NotificationEventDeliveryStatusUpdate) Where(ps ...predicate.NotificationEventDeliveryStatus) *NotificationEventDeliveryStatusUpdate
Where appends a list predicates to the NotificationEventDeliveryStatusUpdate builder.
type NotificationEventDeliveryStatusUpdateOne ¶
type NotificationEventDeliveryStatusUpdateOne struct {
// contains filtered or unexported fields
}
NotificationEventDeliveryStatusUpdateOne is the builder for updating a single NotificationEventDeliveryStatus entity.
func (*NotificationEventDeliveryStatusUpdateOne) AddEventIDs ¶
func (nedsuo *NotificationEventDeliveryStatusUpdateOne) AddEventIDs(ids ...string) *NotificationEventDeliveryStatusUpdateOne
AddEventIDs adds the "events" edge to the NotificationEvent entity by IDs.
func (*NotificationEventDeliveryStatusUpdateOne) AddEvents ¶
func (nedsuo *NotificationEventDeliveryStatusUpdateOne) AddEvents(n ...*NotificationEvent) *NotificationEventDeliveryStatusUpdateOne
AddEvents adds the "events" edges to the NotificationEvent entity.
func (*NotificationEventDeliveryStatusUpdateOne) ClearEvents ¶
func (nedsuo *NotificationEventDeliveryStatusUpdateOne) ClearEvents() *NotificationEventDeliveryStatusUpdateOne
ClearEvents clears all "events" edges to the NotificationEvent entity.
func (*NotificationEventDeliveryStatusUpdateOne) ClearReason ¶
func (nedsuo *NotificationEventDeliveryStatusUpdateOne) ClearReason() *NotificationEventDeliveryStatusUpdateOne
ClearReason clears the value of the "reason" field.
func (*NotificationEventDeliveryStatusUpdateOne) Exec ¶
func (nedsuo *NotificationEventDeliveryStatusUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*NotificationEventDeliveryStatusUpdateOne) ExecContext ¶
func (c *NotificationEventDeliveryStatusUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationEventDeliveryStatusUpdateOne) ExecX ¶
func (nedsuo *NotificationEventDeliveryStatusUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NotificationEventDeliveryStatusUpdateOne) Mutation ¶
func (nedsuo *NotificationEventDeliveryStatusUpdateOne) Mutation() *NotificationEventDeliveryStatusMutation
Mutation returns the NotificationEventDeliveryStatusMutation object of the builder.
func (*NotificationEventDeliveryStatusUpdateOne) QueryContext ¶
func (c *NotificationEventDeliveryStatusUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationEventDeliveryStatusUpdateOne) RemoveEventIDs ¶
func (nedsuo *NotificationEventDeliveryStatusUpdateOne) RemoveEventIDs(ids ...string) *NotificationEventDeliveryStatusUpdateOne
RemoveEventIDs removes the "events" edge to NotificationEvent entities by IDs.
func (*NotificationEventDeliveryStatusUpdateOne) RemoveEvents ¶
func (nedsuo *NotificationEventDeliveryStatusUpdateOne) RemoveEvents(n ...*NotificationEvent) *NotificationEventDeliveryStatusUpdateOne
RemoveEvents removes "events" edges to NotificationEvent entities.
func (*NotificationEventDeliveryStatusUpdateOne) Save ¶
func (nedsuo *NotificationEventDeliveryStatusUpdateOne) Save(ctx context.Context) (*NotificationEventDeliveryStatus, error)
Save executes the query and returns the updated NotificationEventDeliveryStatus entity.
func (*NotificationEventDeliveryStatusUpdateOne) SaveX ¶
func (nedsuo *NotificationEventDeliveryStatusUpdateOne) SaveX(ctx context.Context) *NotificationEventDeliveryStatus
SaveX is like Save, but panics if an error occurs.
func (*NotificationEventDeliveryStatusUpdateOne) Select ¶
func (nedsuo *NotificationEventDeliveryStatusUpdateOne) Select(field string, fields ...string) *NotificationEventDeliveryStatusUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*NotificationEventDeliveryStatusUpdateOne) SetNillableReason ¶
func (nedsuo *NotificationEventDeliveryStatusUpdateOne) SetNillableReason(s *string) *NotificationEventDeliveryStatusUpdateOne
SetNillableReason sets the "reason" field if the given value is not nil.
func (*NotificationEventDeliveryStatusUpdateOne) SetNillableState ¶
func (nedsuo *NotificationEventDeliveryStatusUpdateOne) SetNillableState(ndss *notification.EventDeliveryStatusState) *NotificationEventDeliveryStatusUpdateOne
SetNillableState sets the "state" field if the given value is not nil.
func (*NotificationEventDeliveryStatusUpdateOne) SetOrClearReason ¶
func (u *NotificationEventDeliveryStatusUpdateOne) SetOrClearReason(value *string) *NotificationEventDeliveryStatusUpdateOne
func (*NotificationEventDeliveryStatusUpdateOne) SetReason ¶
func (nedsuo *NotificationEventDeliveryStatusUpdateOne) SetReason(s string) *NotificationEventDeliveryStatusUpdateOne
SetReason sets the "reason" field.
func (*NotificationEventDeliveryStatusUpdateOne) SetState ¶
func (nedsuo *NotificationEventDeliveryStatusUpdateOne) SetState(ndss notification.EventDeliveryStatusState) *NotificationEventDeliveryStatusUpdateOne
SetState sets the "state" field.
func (*NotificationEventDeliveryStatusUpdateOne) SetUpdatedAt ¶
func (nedsuo *NotificationEventDeliveryStatusUpdateOne) SetUpdatedAt(t time.Time) *NotificationEventDeliveryStatusUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*NotificationEventDeliveryStatusUpdateOne) Where ¶
func (nedsuo *NotificationEventDeliveryStatusUpdateOne) Where(ps ...predicate.NotificationEventDeliveryStatus) *NotificationEventDeliveryStatusUpdateOne
Where appends a list predicates to the NotificationEventDeliveryStatusUpdate builder.
type NotificationEventDeliveryStatusUpsert ¶
NotificationEventDeliveryStatusUpsert is the "OnConflict" setter.
func (*NotificationEventDeliveryStatusUpsert) ClearReason ¶
func (u *NotificationEventDeliveryStatusUpsert) ClearReason() *NotificationEventDeliveryStatusUpsert
ClearReason clears the value of the "reason" field.
func (*NotificationEventDeliveryStatusUpsert) SetReason ¶
func (u *NotificationEventDeliveryStatusUpsert) SetReason(v string) *NotificationEventDeliveryStatusUpsert
SetReason sets the "reason" field.
func (*NotificationEventDeliveryStatusUpsert) SetState ¶
func (u *NotificationEventDeliveryStatusUpsert) SetState(v notification.EventDeliveryStatusState) *NotificationEventDeliveryStatusUpsert
SetState sets the "state" field.
func (*NotificationEventDeliveryStatusUpsert) SetUpdatedAt ¶
func (u *NotificationEventDeliveryStatusUpsert) SetUpdatedAt(v time.Time) *NotificationEventDeliveryStatusUpsert
SetUpdatedAt sets the "updated_at" field.
func (*NotificationEventDeliveryStatusUpsert) UpdateReason ¶
func (u *NotificationEventDeliveryStatusUpsert) UpdateReason() *NotificationEventDeliveryStatusUpsert
UpdateReason sets the "reason" field to the value that was provided on create.
func (*NotificationEventDeliveryStatusUpsert) UpdateState ¶
func (u *NotificationEventDeliveryStatusUpsert) UpdateState() *NotificationEventDeliveryStatusUpsert
UpdateState sets the "state" field to the value that was provided on create.
func (*NotificationEventDeliveryStatusUpsert) UpdateUpdatedAt ¶
func (u *NotificationEventDeliveryStatusUpsert) UpdateUpdatedAt() *NotificationEventDeliveryStatusUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type NotificationEventDeliveryStatusUpsertBulk ¶
type NotificationEventDeliveryStatusUpsertBulk struct {
// contains filtered or unexported fields
}
NotificationEventDeliveryStatusUpsertBulk is the builder for "upsert"-ing a bulk of NotificationEventDeliveryStatus nodes.
func (*NotificationEventDeliveryStatusUpsertBulk) ClearReason ¶
func (u *NotificationEventDeliveryStatusUpsertBulk) ClearReason() *NotificationEventDeliveryStatusUpsertBulk
ClearReason clears the value of the "reason" field.
func (*NotificationEventDeliveryStatusUpsertBulk) DoNothing ¶
func (u *NotificationEventDeliveryStatusUpsertBulk) DoNothing() *NotificationEventDeliveryStatusUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*NotificationEventDeliveryStatusUpsertBulk) Exec ¶
func (u *NotificationEventDeliveryStatusUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*NotificationEventDeliveryStatusUpsertBulk) ExecX ¶
func (u *NotificationEventDeliveryStatusUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NotificationEventDeliveryStatusUpsertBulk) Ignore ¶
func (u *NotificationEventDeliveryStatusUpsertBulk) Ignore() *NotificationEventDeliveryStatusUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.NotificationEventDeliveryStatus.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*NotificationEventDeliveryStatusUpsertBulk) SetReason ¶
func (u *NotificationEventDeliveryStatusUpsertBulk) SetReason(v string) *NotificationEventDeliveryStatusUpsertBulk
SetReason sets the "reason" field.
func (*NotificationEventDeliveryStatusUpsertBulk) SetState ¶
func (u *NotificationEventDeliveryStatusUpsertBulk) SetState(v notification.EventDeliveryStatusState) *NotificationEventDeliveryStatusUpsertBulk
SetState sets the "state" field.
func (*NotificationEventDeliveryStatusUpsertBulk) SetUpdatedAt ¶
func (u *NotificationEventDeliveryStatusUpsertBulk) SetUpdatedAt(v time.Time) *NotificationEventDeliveryStatusUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*NotificationEventDeliveryStatusUpsertBulk) Update ¶
func (u *NotificationEventDeliveryStatusUpsertBulk) Update(set func(*NotificationEventDeliveryStatusUpsert)) *NotificationEventDeliveryStatusUpsertBulk
Update allows overriding fields `UPDATE` values. See the NotificationEventDeliveryStatusCreateBulk.OnConflict documentation for more info.
func (*NotificationEventDeliveryStatusUpsertBulk) UpdateNewValues ¶
func (u *NotificationEventDeliveryStatusUpsertBulk) UpdateNewValues() *NotificationEventDeliveryStatusUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.NotificationEventDeliveryStatus.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(notificationeventdeliverystatus.FieldID)
}),
).
Exec(ctx)
func (*NotificationEventDeliveryStatusUpsertBulk) UpdateReason ¶
func (u *NotificationEventDeliveryStatusUpsertBulk) UpdateReason() *NotificationEventDeliveryStatusUpsertBulk
UpdateReason sets the "reason" field to the value that was provided on create.
func (*NotificationEventDeliveryStatusUpsertBulk) UpdateState ¶
func (u *NotificationEventDeliveryStatusUpsertBulk) UpdateState() *NotificationEventDeliveryStatusUpsertBulk
UpdateState sets the "state" field to the value that was provided on create.
func (*NotificationEventDeliveryStatusUpsertBulk) UpdateUpdatedAt ¶
func (u *NotificationEventDeliveryStatusUpsertBulk) UpdateUpdatedAt() *NotificationEventDeliveryStatusUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type NotificationEventDeliveryStatusUpsertOne ¶
type NotificationEventDeliveryStatusUpsertOne struct {
// contains filtered or unexported fields
}
NotificationEventDeliveryStatusUpsertOne is the builder for "upsert"-ing
one NotificationEventDeliveryStatus node.
func (*NotificationEventDeliveryStatusUpsertOne) ClearReason ¶
func (u *NotificationEventDeliveryStatusUpsertOne) ClearReason() *NotificationEventDeliveryStatusUpsertOne
ClearReason clears the value of the "reason" field.
func (*NotificationEventDeliveryStatusUpsertOne) DoNothing ¶
func (u *NotificationEventDeliveryStatusUpsertOne) DoNothing() *NotificationEventDeliveryStatusUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*NotificationEventDeliveryStatusUpsertOne) Exec ¶
func (u *NotificationEventDeliveryStatusUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*NotificationEventDeliveryStatusUpsertOne) ExecX ¶
func (u *NotificationEventDeliveryStatusUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NotificationEventDeliveryStatusUpsertOne) ID ¶
func (u *NotificationEventDeliveryStatusUpsertOne) ID(ctx context.Context) (id string, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*NotificationEventDeliveryStatusUpsertOne) IDX ¶
func (u *NotificationEventDeliveryStatusUpsertOne) IDX(ctx context.Context) string
IDX is like ID, but panics if an error occurs.
func (*NotificationEventDeliveryStatusUpsertOne) Ignore ¶
func (u *NotificationEventDeliveryStatusUpsertOne) Ignore() *NotificationEventDeliveryStatusUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.NotificationEventDeliveryStatus.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*NotificationEventDeliveryStatusUpsertOne) SetReason ¶
func (u *NotificationEventDeliveryStatusUpsertOne) SetReason(v string) *NotificationEventDeliveryStatusUpsertOne
SetReason sets the "reason" field.
func (*NotificationEventDeliveryStatusUpsertOne) SetState ¶
func (u *NotificationEventDeliveryStatusUpsertOne) SetState(v notification.EventDeliveryStatusState) *NotificationEventDeliveryStatusUpsertOne
SetState sets the "state" field.
func (*NotificationEventDeliveryStatusUpsertOne) SetUpdatedAt ¶
func (u *NotificationEventDeliveryStatusUpsertOne) SetUpdatedAt(v time.Time) *NotificationEventDeliveryStatusUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*NotificationEventDeliveryStatusUpsertOne) Update ¶
func (u *NotificationEventDeliveryStatusUpsertOne) Update(set func(*NotificationEventDeliveryStatusUpsert)) *NotificationEventDeliveryStatusUpsertOne
Update allows overriding fields `UPDATE` values. See the NotificationEventDeliveryStatusCreate.OnConflict documentation for more info.
func (*NotificationEventDeliveryStatusUpsertOne) UpdateNewValues ¶
func (u *NotificationEventDeliveryStatusUpsertOne) UpdateNewValues() *NotificationEventDeliveryStatusUpsertOne
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.NotificationEventDeliveryStatus.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(notificationeventdeliverystatus.FieldID)
}),
).
Exec(ctx)
func (*NotificationEventDeliveryStatusUpsertOne) UpdateReason ¶
func (u *NotificationEventDeliveryStatusUpsertOne) UpdateReason() *NotificationEventDeliveryStatusUpsertOne
UpdateReason sets the "reason" field to the value that was provided on create.
func (*NotificationEventDeliveryStatusUpsertOne) UpdateState ¶
func (u *NotificationEventDeliveryStatusUpsertOne) UpdateState() *NotificationEventDeliveryStatusUpsertOne
UpdateState sets the "state" field to the value that was provided on create.
func (*NotificationEventDeliveryStatusUpsertOne) UpdateUpdatedAt ¶
func (u *NotificationEventDeliveryStatusUpsertOne) UpdateUpdatedAt() *NotificationEventDeliveryStatusUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type NotificationEventEdges ¶
type NotificationEventEdges struct {
// DeliveryStatuses holds the value of the delivery_statuses edge.
DeliveryStatuses []*NotificationEventDeliveryStatus `json:"delivery_statuses,omitempty"`
// Rules holds the value of the rules edge.
Rules *NotificationRule `json:"rules,omitempty"`
// contains filtered or unexported fields
}
NotificationEventEdges holds the relations/edges for other nodes in the graph.
func (NotificationEventEdges) DeliveryStatusesOrErr ¶
func (e NotificationEventEdges) DeliveryStatusesOrErr() ([]*NotificationEventDeliveryStatus, error)
DeliveryStatusesOrErr returns the DeliveryStatuses value or an error if the edge was not loaded in eager-loading.
func (NotificationEventEdges) RulesOrErr ¶
func (e NotificationEventEdges) RulesOrErr() (*NotificationRule, error)
RulesOrErr returns the Rules value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type NotificationEventGroupBy ¶
type NotificationEventGroupBy struct {
// contains filtered or unexported fields
}
NotificationEventGroupBy is the group-by builder for NotificationEvent entities.
func (*NotificationEventGroupBy) Aggregate ¶
func (negb *NotificationEventGroupBy) Aggregate(fns ...AggregateFunc) *NotificationEventGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*NotificationEventGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*NotificationEventGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*NotificationEventGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*NotificationEventGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*NotificationEventGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*NotificationEventGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*NotificationEventGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*NotificationEventGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*NotificationEventGroupBy) Scan ¶
func (negb *NotificationEventGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*NotificationEventGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type NotificationEventMutation ¶
type NotificationEventMutation struct {
// contains filtered or unexported fields
}
NotificationEventMutation represents an operation that mutates the NotificationEvent nodes in the graph.
func (*NotificationEventMutation) AddDeliveryStatusIDs ¶
func (m *NotificationEventMutation) AddDeliveryStatusIDs(ids ...string)
AddDeliveryStatusIDs adds the "delivery_statuses" edge to the NotificationEventDeliveryStatus entity by ids.
func (*NotificationEventMutation) AddField ¶
func (m *NotificationEventMutation) 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 (*NotificationEventMutation) AddedEdges ¶
func (m *NotificationEventMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*NotificationEventMutation) AddedField ¶
func (m *NotificationEventMutation) 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 (*NotificationEventMutation) AddedFields ¶
func (m *NotificationEventMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*NotificationEventMutation) AddedIDs ¶
func (m *NotificationEventMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*NotificationEventMutation) Annotations ¶
func (m *NotificationEventMutation) Annotations() (r map[string]interface{}, exists bool)
Annotations returns the value of the "annotations" field in the mutation.
func (*NotificationEventMutation) AnnotationsCleared ¶
func (m *NotificationEventMutation) AnnotationsCleared() bool
AnnotationsCleared returns if the "annotations" field was cleared in this mutation.
func (*NotificationEventMutation) ClearAnnotations ¶
func (m *NotificationEventMutation) ClearAnnotations()
ClearAnnotations clears the value of the "annotations" field.
func (*NotificationEventMutation) ClearDeliveryStatuses ¶
func (m *NotificationEventMutation) ClearDeliveryStatuses()
ClearDeliveryStatuses clears the "delivery_statuses" edge to the NotificationEventDeliveryStatus entity.
func (*NotificationEventMutation) ClearEdge ¶
func (m *NotificationEventMutation) 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 (*NotificationEventMutation) ClearField ¶
func (m *NotificationEventMutation) 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 (*NotificationEventMutation) ClearRules ¶
func (m *NotificationEventMutation) ClearRules()
ClearRules clears the "rules" edge to the NotificationRule entity.
func (*NotificationEventMutation) ClearedEdges ¶
func (m *NotificationEventMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*NotificationEventMutation) ClearedFields ¶
func (m *NotificationEventMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (NotificationEventMutation) Client ¶
func (m NotificationEventMutation) 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 (*NotificationEventMutation) CreatedAt ¶
func (m *NotificationEventMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*NotificationEventMutation) DeliveryStatusesCleared ¶
func (m *NotificationEventMutation) DeliveryStatusesCleared() bool
DeliveryStatusesCleared reports if the "delivery_statuses" edge to the NotificationEventDeliveryStatus entity was cleared.
func (*NotificationEventMutation) DeliveryStatusesIDs ¶
func (m *NotificationEventMutation) DeliveryStatusesIDs() (ids []string)
DeliveryStatusesIDs returns the "delivery_statuses" edge IDs in the mutation.
func (*NotificationEventMutation) EdgeCleared ¶
func (m *NotificationEventMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*NotificationEventMutation) ExecContext ¶
func (c *NotificationEventMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationEventMutation) Field ¶
func (m *NotificationEventMutation) 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 (*NotificationEventMutation) FieldCleared ¶
func (m *NotificationEventMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*NotificationEventMutation) Fields ¶
func (m *NotificationEventMutation) 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 (*NotificationEventMutation) GetType ¶
func (m *NotificationEventMutation) GetType() (r notification.EventType, exists bool)
GetType returns the value of the "type" field in the mutation.
func (*NotificationEventMutation) ID ¶
func (m *NotificationEventMutation) ID() (id string, 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 (*NotificationEventMutation) IDs ¶
func (m *NotificationEventMutation) IDs(ctx context.Context) ([]string, error)
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 (*NotificationEventMutation) Namespace ¶
func (m *NotificationEventMutation) Namespace() (r string, exists bool)
Namespace returns the value of the "namespace" field in the mutation.
func (*NotificationEventMutation) OldAnnotations ¶
func (m *NotificationEventMutation) OldAnnotations(ctx context.Context) (v map[string]interface{}, err error)
OldAnnotations returns the old "annotations" field's value of the NotificationEvent entity. If the NotificationEvent 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 (*NotificationEventMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the NotificationEvent entity. If the NotificationEvent 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 (*NotificationEventMutation) OldField ¶
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 (*NotificationEventMutation) OldNamespace ¶
func (m *NotificationEventMutation) OldNamespace(ctx context.Context) (v string, err error)
OldNamespace returns the old "namespace" field's value of the NotificationEvent entity. If the NotificationEvent 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 (*NotificationEventMutation) OldPayload ¶
func (m *NotificationEventMutation) OldPayload(ctx context.Context) (v string, err error)
OldPayload returns the old "payload" field's value of the NotificationEvent entity. If the NotificationEvent 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 (*NotificationEventMutation) OldRuleID ¶
func (m *NotificationEventMutation) OldRuleID(ctx context.Context) (v string, err error)
OldRuleID returns the old "rule_id" field's value of the NotificationEvent entity. If the NotificationEvent 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 (*NotificationEventMutation) OldType ¶
func (m *NotificationEventMutation) OldType(ctx context.Context) (v notification.EventType, err error)
OldType returns the old "type" field's value of the NotificationEvent entity. If the NotificationEvent 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 (*NotificationEventMutation) Op ¶
func (m *NotificationEventMutation) Op() Op
Op returns the operation name.
func (*NotificationEventMutation) Payload ¶
func (m *NotificationEventMutation) Payload() (r string, exists bool)
Payload returns the value of the "payload" field in the mutation.
func (*NotificationEventMutation) QueryContext ¶
func (c *NotificationEventMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationEventMutation) RemoveDeliveryStatusIDs ¶
func (m *NotificationEventMutation) RemoveDeliveryStatusIDs(ids ...string)
RemoveDeliveryStatusIDs removes the "delivery_statuses" edge to the NotificationEventDeliveryStatus entity by IDs.
func (*NotificationEventMutation) RemovedDeliveryStatusesIDs ¶
func (m *NotificationEventMutation) RemovedDeliveryStatusesIDs() (ids []string)
RemovedDeliveryStatuses returns the removed IDs of the "delivery_statuses" edge to the NotificationEventDeliveryStatus entity.
func (*NotificationEventMutation) RemovedEdges ¶
func (m *NotificationEventMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*NotificationEventMutation) RemovedIDs ¶
func (m *NotificationEventMutation) 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 (*NotificationEventMutation) ResetAnnotations ¶
func (m *NotificationEventMutation) ResetAnnotations()
ResetAnnotations resets all changes to the "annotations" field.
func (*NotificationEventMutation) ResetCreatedAt ¶
func (m *NotificationEventMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*NotificationEventMutation) ResetDeliveryStatuses ¶
func (m *NotificationEventMutation) ResetDeliveryStatuses()
ResetDeliveryStatuses resets all changes to the "delivery_statuses" edge.
func (*NotificationEventMutation) ResetEdge ¶
func (m *NotificationEventMutation) 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 (*NotificationEventMutation) ResetField ¶
func (m *NotificationEventMutation) 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 (*NotificationEventMutation) ResetNamespace ¶
func (m *NotificationEventMutation) ResetNamespace()
ResetNamespace resets all changes to the "namespace" field.
func (*NotificationEventMutation) ResetPayload ¶
func (m *NotificationEventMutation) ResetPayload()
ResetPayload resets all changes to the "payload" field.
func (*NotificationEventMutation) ResetRuleID ¶
func (m *NotificationEventMutation) ResetRuleID()
ResetRuleID resets all changes to the "rule_id" field.
func (*NotificationEventMutation) ResetRules ¶
func (m *NotificationEventMutation) ResetRules()
ResetRules resets all changes to the "rules" edge.
func (*NotificationEventMutation) ResetType ¶
func (m *NotificationEventMutation) ResetType()
ResetType resets all changes to the "type" field.
func (*NotificationEventMutation) RuleID ¶
func (m *NotificationEventMutation) RuleID() (r string, exists bool)
RuleID returns the value of the "rule_id" field in the mutation.
func (*NotificationEventMutation) RulesCleared ¶
func (m *NotificationEventMutation) RulesCleared() bool
RulesCleared reports if the "rules" edge to the NotificationRule entity was cleared.
func (*NotificationEventMutation) RulesID ¶
func (m *NotificationEventMutation) RulesID() (id string, exists bool)
RulesID returns the "rules" edge ID in the mutation.
func (*NotificationEventMutation) RulesIDs ¶
func (m *NotificationEventMutation) RulesIDs() (ids []string)
RulesIDs returns the "rules" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use RulesID instead. It exists only for internal usage by the builders.
func (*NotificationEventMutation) SetAnnotations ¶
func (m *NotificationEventMutation) SetAnnotations(value map[string]interface{})
SetAnnotations sets the "annotations" field.
func (*NotificationEventMutation) SetCreatedAt ¶
func (m *NotificationEventMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*NotificationEventMutation) SetField ¶
func (m *NotificationEventMutation) 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 (*NotificationEventMutation) SetID ¶
func (m *NotificationEventMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of NotificationEvent entities.
func (*NotificationEventMutation) SetNamespace ¶
func (m *NotificationEventMutation) SetNamespace(s string)
SetNamespace sets the "namespace" field.
func (*NotificationEventMutation) SetOp ¶
func (m *NotificationEventMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*NotificationEventMutation) SetPayload ¶
func (m *NotificationEventMutation) SetPayload(s string)
SetPayload sets the "payload" field.
func (*NotificationEventMutation) SetRuleID ¶
func (m *NotificationEventMutation) SetRuleID(s string)
SetRuleID sets the "rule_id" field.
func (*NotificationEventMutation) SetRulesID ¶
func (m *NotificationEventMutation) SetRulesID(id string)
SetRulesID sets the "rules" edge to the NotificationRule entity by id.
func (*NotificationEventMutation) SetType ¶
func (m *NotificationEventMutation) SetType(nt notification.EventType)
SetType sets the "type" field.
func (NotificationEventMutation) Tx ¶
func (m NotificationEventMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*NotificationEventMutation) Type ¶
func (m *NotificationEventMutation) Type() string
Type returns the node type of this mutation (NotificationEvent).
func (*NotificationEventMutation) Where ¶
func (m *NotificationEventMutation) Where(ps ...predicate.NotificationEvent)
Where appends a list predicates to the NotificationEventMutation builder.
func (*NotificationEventMutation) WhereP ¶
func (m *NotificationEventMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the NotificationEventMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type NotificationEventQuery ¶
type NotificationEventQuery struct {
// contains filtered or unexported fields
}
NotificationEventQuery is the builder for querying NotificationEvent entities.
func (*NotificationEventQuery) Aggregate ¶
func (neq *NotificationEventQuery) Aggregate(fns ...AggregateFunc) *NotificationEventSelect
Aggregate returns a NotificationEventSelect configured with the given aggregations.
func (*NotificationEventQuery) All ¶
func (neq *NotificationEventQuery) All(ctx context.Context) ([]*NotificationEvent, error)
All executes the query and returns a list of NotificationEvents.
func (*NotificationEventQuery) AllX ¶
func (neq *NotificationEventQuery) AllX(ctx context.Context) []*NotificationEvent
AllX is like All, but panics if an error occurs.
func (*NotificationEventQuery) Clone ¶
func (neq *NotificationEventQuery) Clone() *NotificationEventQuery
Clone returns a duplicate of the NotificationEventQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*NotificationEventQuery) Count ¶
func (neq *NotificationEventQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*NotificationEventQuery) CountX ¶
func (neq *NotificationEventQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*NotificationEventQuery) ExecContext ¶
func (c *NotificationEventQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationEventQuery) Exist ¶
func (neq *NotificationEventQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*NotificationEventQuery) ExistX ¶
func (neq *NotificationEventQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*NotificationEventQuery) First ¶
func (neq *NotificationEventQuery) First(ctx context.Context) (*NotificationEvent, error)
First returns the first NotificationEvent entity from the query. Returns a *NotFoundError when no NotificationEvent was found.
func (*NotificationEventQuery) FirstID ¶
func (neq *NotificationEventQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first NotificationEvent ID from the query. Returns a *NotFoundError when no NotificationEvent ID was found.
func (*NotificationEventQuery) FirstIDX ¶
func (neq *NotificationEventQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*NotificationEventQuery) FirstX ¶
func (neq *NotificationEventQuery) FirstX(ctx context.Context) *NotificationEvent
FirstX is like First, but panics if an error occurs.
func (*NotificationEventQuery) ForShare ¶
func (neq *NotificationEventQuery) ForShare(opts ...sql.LockOption) *NotificationEventQuery
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 (*NotificationEventQuery) ForUpdate ¶
func (neq *NotificationEventQuery) ForUpdate(opts ...sql.LockOption) *NotificationEventQuery
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 (*NotificationEventQuery) GroupBy ¶
func (neq *NotificationEventQuery) GroupBy(field string, fields ...string) *NotificationEventGroupBy
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 {
Namespace string `json:"namespace,omitempty"`
Count int `json:"count,omitempty"`
}
client.NotificationEvent.Query().
GroupBy(notificationevent.FieldNamespace).
Aggregate(db.Count()).
Scan(ctx, &v)
func (*NotificationEventQuery) IDs ¶
func (neq *NotificationEventQuery) IDs(ctx context.Context) (ids []string, err error)
IDs executes the query and returns a list of NotificationEvent IDs.
func (*NotificationEventQuery) IDsX ¶
func (neq *NotificationEventQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*NotificationEventQuery) Limit ¶
func (neq *NotificationEventQuery) Limit(limit int) *NotificationEventQuery
Limit the number of records to be returned by this query.
func (*NotificationEventQuery) Offset ¶
func (neq *NotificationEventQuery) Offset(offset int) *NotificationEventQuery
Offset to start from.
func (*NotificationEventQuery) Only ¶
func (neq *NotificationEventQuery) Only(ctx context.Context) (*NotificationEvent, error)
Only returns a single NotificationEvent entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one NotificationEvent entity is found. Returns a *NotFoundError when no NotificationEvent entities are found.
func (*NotificationEventQuery) OnlyID ¶
func (neq *NotificationEventQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only NotificationEvent ID in the query. Returns a *NotSingularError when more than one NotificationEvent ID is found. Returns a *NotFoundError when no entities are found.
func (*NotificationEventQuery) OnlyIDX ¶
func (neq *NotificationEventQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*NotificationEventQuery) OnlyX ¶
func (neq *NotificationEventQuery) OnlyX(ctx context.Context) *NotificationEvent
OnlyX is like Only, but panics if an error occurs.
func (*NotificationEventQuery) Order ¶
func (neq *NotificationEventQuery) Order(o ...notificationevent.OrderOption) *NotificationEventQuery
Order specifies how the records should be ordered.
func (*NotificationEventQuery) Paginate ¶
func (ne *NotificationEventQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*NotificationEvent], error)
Paginate runs the query and returns a paginated response. If page is its 0 value then it will return all the items and populate the response page accordingly.
func (*NotificationEventQuery) QueryContext ¶
func (c *NotificationEventQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationEventQuery) QueryDeliveryStatuses ¶
func (neq *NotificationEventQuery) QueryDeliveryStatuses() *NotificationEventDeliveryStatusQuery
QueryDeliveryStatuses chains the current query on the "delivery_statuses" edge.
func (*NotificationEventQuery) QueryRules ¶
func (neq *NotificationEventQuery) QueryRules() *NotificationRuleQuery
QueryRules chains the current query on the "rules" edge.
func (*NotificationEventQuery) Select ¶
func (neq *NotificationEventQuery) Select(fields ...string) *NotificationEventSelect
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 {
Namespace string `json:"namespace,omitempty"`
}
client.NotificationEvent.Query().
Select(notificationevent.FieldNamespace).
Scan(ctx, &v)
func (*NotificationEventQuery) Unique ¶
func (neq *NotificationEventQuery) Unique(unique bool) *NotificationEventQuery
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 (*NotificationEventQuery) Where ¶
func (neq *NotificationEventQuery) Where(ps ...predicate.NotificationEvent) *NotificationEventQuery
Where adds a new predicate for the NotificationEventQuery builder.
func (*NotificationEventQuery) WithDeliveryStatuses ¶
func (neq *NotificationEventQuery) WithDeliveryStatuses(opts ...func(*NotificationEventDeliveryStatusQuery)) *NotificationEventQuery
WithDeliveryStatuses tells the query-builder to eager-load the nodes that are connected to the "delivery_statuses" edge. The optional arguments are used to configure the query builder of the edge.
func (*NotificationEventQuery) WithRules ¶
func (neq *NotificationEventQuery) WithRules(opts ...func(*NotificationRuleQuery)) *NotificationEventQuery
WithRules tells the query-builder to eager-load the nodes that are connected to the "rules" edge. The optional arguments are used to configure the query builder of the edge.
type NotificationEventSelect ¶
type NotificationEventSelect struct {
*NotificationEventQuery
// contains filtered or unexported fields
}
NotificationEventSelect is the builder for selecting fields of NotificationEvent entities.
func (*NotificationEventSelect) Aggregate ¶
func (nes *NotificationEventSelect) Aggregate(fns ...AggregateFunc) *NotificationEventSelect
Aggregate adds the given aggregation functions to the selector query.
func (*NotificationEventSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*NotificationEventSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (NotificationEventSelect) ExecContext ¶
func (c NotificationEventSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationEventSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*NotificationEventSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*NotificationEventSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*NotificationEventSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*NotificationEventSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (NotificationEventSelect) QueryContext ¶
func (c NotificationEventSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationEventSelect) Scan ¶
func (nes *NotificationEventSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*NotificationEventSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type NotificationEventUpdate ¶
type NotificationEventUpdate struct {
// contains filtered or unexported fields
}
NotificationEventUpdate is the builder for updating NotificationEvent entities.
func (*NotificationEventUpdate) AddDeliveryStatusIDs ¶
func (neu *NotificationEventUpdate) AddDeliveryStatusIDs(ids ...string) *NotificationEventUpdate
AddDeliveryStatusIDs adds the "delivery_statuses" edge to the NotificationEventDeliveryStatus entity by IDs.
func (*NotificationEventUpdate) AddDeliveryStatuses ¶
func (neu *NotificationEventUpdate) AddDeliveryStatuses(n ...*NotificationEventDeliveryStatus) *NotificationEventUpdate
AddDeliveryStatuses adds the "delivery_statuses" edges to the NotificationEventDeliveryStatus entity.
func (*NotificationEventUpdate) ClearAnnotations ¶
func (neu *NotificationEventUpdate) ClearAnnotations() *NotificationEventUpdate
ClearAnnotations clears the value of the "annotations" field.
func (*NotificationEventUpdate) ClearDeliveryStatuses ¶
func (neu *NotificationEventUpdate) ClearDeliveryStatuses() *NotificationEventUpdate
ClearDeliveryStatuses clears all "delivery_statuses" edges to the NotificationEventDeliveryStatus entity.
func (*NotificationEventUpdate) Exec ¶
func (neu *NotificationEventUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*NotificationEventUpdate) ExecContext ¶
func (c *NotificationEventUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationEventUpdate) ExecX ¶
func (neu *NotificationEventUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NotificationEventUpdate) Mutation ¶
func (neu *NotificationEventUpdate) Mutation() *NotificationEventMutation
Mutation returns the NotificationEventMutation object of the builder.
func (*NotificationEventUpdate) QueryContext ¶
func (c *NotificationEventUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationEventUpdate) RemoveDeliveryStatusIDs ¶
func (neu *NotificationEventUpdate) RemoveDeliveryStatusIDs(ids ...string) *NotificationEventUpdate
RemoveDeliveryStatusIDs removes the "delivery_statuses" edge to NotificationEventDeliveryStatus entities by IDs.
func (*NotificationEventUpdate) RemoveDeliveryStatuses ¶
func (neu *NotificationEventUpdate) RemoveDeliveryStatuses(n ...*NotificationEventDeliveryStatus) *NotificationEventUpdate
RemoveDeliveryStatuses removes "delivery_statuses" edges to NotificationEventDeliveryStatus entities.
func (*NotificationEventUpdate) Save ¶
func (neu *NotificationEventUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*NotificationEventUpdate) SaveX ¶
func (neu *NotificationEventUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*NotificationEventUpdate) SetAnnotations ¶
func (neu *NotificationEventUpdate) SetAnnotations(m map[string]interface{}) *NotificationEventUpdate
SetAnnotations sets the "annotations" field.
func (*NotificationEventUpdate) SetNillablePayload ¶
func (neu *NotificationEventUpdate) SetNillablePayload(s *string) *NotificationEventUpdate
SetNillablePayload sets the "payload" field if the given value is not nil.
func (*NotificationEventUpdate) SetOrClearAnnotations ¶
func (u *NotificationEventUpdate) SetOrClearAnnotations(value *map[string]interface{}) *NotificationEventUpdate
func (*NotificationEventUpdate) SetPayload ¶
func (neu *NotificationEventUpdate) SetPayload(s string) *NotificationEventUpdate
SetPayload sets the "payload" field.
func (*NotificationEventUpdate) Where ¶
func (neu *NotificationEventUpdate) Where(ps ...predicate.NotificationEvent) *NotificationEventUpdate
Where appends a list predicates to the NotificationEventUpdate builder.
type NotificationEventUpdateOne ¶
type NotificationEventUpdateOne struct {
// contains filtered or unexported fields
}
NotificationEventUpdateOne is the builder for updating a single NotificationEvent entity.
func (*NotificationEventUpdateOne) AddDeliveryStatusIDs ¶
func (neuo *NotificationEventUpdateOne) AddDeliveryStatusIDs(ids ...string) *NotificationEventUpdateOne
AddDeliveryStatusIDs adds the "delivery_statuses" edge to the NotificationEventDeliveryStatus entity by IDs.
func (*NotificationEventUpdateOne) AddDeliveryStatuses ¶
func (neuo *NotificationEventUpdateOne) AddDeliveryStatuses(n ...*NotificationEventDeliveryStatus) *NotificationEventUpdateOne
AddDeliveryStatuses adds the "delivery_statuses" edges to the NotificationEventDeliveryStatus entity.
func (*NotificationEventUpdateOne) ClearAnnotations ¶
func (neuo *NotificationEventUpdateOne) ClearAnnotations() *NotificationEventUpdateOne
ClearAnnotations clears the value of the "annotations" field.
func (*NotificationEventUpdateOne) ClearDeliveryStatuses ¶
func (neuo *NotificationEventUpdateOne) ClearDeliveryStatuses() *NotificationEventUpdateOne
ClearDeliveryStatuses clears all "delivery_statuses" edges to the NotificationEventDeliveryStatus entity.
func (*NotificationEventUpdateOne) Exec ¶
func (neuo *NotificationEventUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*NotificationEventUpdateOne) ExecContext ¶
func (c *NotificationEventUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationEventUpdateOne) ExecX ¶
func (neuo *NotificationEventUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NotificationEventUpdateOne) Mutation ¶
func (neuo *NotificationEventUpdateOne) Mutation() *NotificationEventMutation
Mutation returns the NotificationEventMutation object of the builder.
func (*NotificationEventUpdateOne) QueryContext ¶
func (c *NotificationEventUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationEventUpdateOne) RemoveDeliveryStatusIDs ¶
func (neuo *NotificationEventUpdateOne) RemoveDeliveryStatusIDs(ids ...string) *NotificationEventUpdateOne
RemoveDeliveryStatusIDs removes the "delivery_statuses" edge to NotificationEventDeliveryStatus entities by IDs.
func (*NotificationEventUpdateOne) RemoveDeliveryStatuses ¶
func (neuo *NotificationEventUpdateOne) RemoveDeliveryStatuses(n ...*NotificationEventDeliveryStatus) *NotificationEventUpdateOne
RemoveDeliveryStatuses removes "delivery_statuses" edges to NotificationEventDeliveryStatus entities.
func (*NotificationEventUpdateOne) Save ¶
func (neuo *NotificationEventUpdateOne) Save(ctx context.Context) (*NotificationEvent, error)
Save executes the query and returns the updated NotificationEvent entity.
func (*NotificationEventUpdateOne) SaveX ¶
func (neuo *NotificationEventUpdateOne) SaveX(ctx context.Context) *NotificationEvent
SaveX is like Save, but panics if an error occurs.
func (*NotificationEventUpdateOne) Select ¶
func (neuo *NotificationEventUpdateOne) Select(field string, fields ...string) *NotificationEventUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*NotificationEventUpdateOne) SetAnnotations ¶
func (neuo *NotificationEventUpdateOne) SetAnnotations(m map[string]interface{}) *NotificationEventUpdateOne
SetAnnotations sets the "annotations" field.
func (*NotificationEventUpdateOne) SetNillablePayload ¶
func (neuo *NotificationEventUpdateOne) SetNillablePayload(s *string) *NotificationEventUpdateOne
SetNillablePayload sets the "payload" field if the given value is not nil.
func (*NotificationEventUpdateOne) SetOrClearAnnotations ¶
func (u *NotificationEventUpdateOne) SetOrClearAnnotations(value *map[string]interface{}) *NotificationEventUpdateOne
func (*NotificationEventUpdateOne) SetPayload ¶
func (neuo *NotificationEventUpdateOne) SetPayload(s string) *NotificationEventUpdateOne
SetPayload sets the "payload" field.
func (*NotificationEventUpdateOne) Where ¶
func (neuo *NotificationEventUpdateOne) Where(ps ...predicate.NotificationEvent) *NotificationEventUpdateOne
Where appends a list predicates to the NotificationEventUpdate builder.
type NotificationEventUpsert ¶
NotificationEventUpsert is the "OnConflict" setter.
func (*NotificationEventUpsert) ClearAnnotations ¶
func (u *NotificationEventUpsert) ClearAnnotations() *NotificationEventUpsert
ClearAnnotations clears the value of the "annotations" field.
func (*NotificationEventUpsert) SetAnnotations ¶
func (u *NotificationEventUpsert) SetAnnotations(v map[string]interface{}) *NotificationEventUpsert
SetAnnotations sets the "annotations" field.
func (*NotificationEventUpsert) SetPayload ¶
func (u *NotificationEventUpsert) SetPayload(v string) *NotificationEventUpsert
SetPayload sets the "payload" field.
func (*NotificationEventUpsert) UpdateAnnotations ¶
func (u *NotificationEventUpsert) UpdateAnnotations() *NotificationEventUpsert
UpdateAnnotations sets the "annotations" field to the value that was provided on create.
func (*NotificationEventUpsert) UpdatePayload ¶
func (u *NotificationEventUpsert) UpdatePayload() *NotificationEventUpsert
UpdatePayload sets the "payload" field to the value that was provided on create.
type NotificationEventUpsertBulk ¶
type NotificationEventUpsertBulk struct {
// contains filtered or unexported fields
}
NotificationEventUpsertBulk is the builder for "upsert"-ing a bulk of NotificationEvent nodes.
func (*NotificationEventUpsertBulk) ClearAnnotations ¶
func (u *NotificationEventUpsertBulk) ClearAnnotations() *NotificationEventUpsertBulk
ClearAnnotations clears the value of the "annotations" field.
func (*NotificationEventUpsertBulk) DoNothing ¶
func (u *NotificationEventUpsertBulk) DoNothing() *NotificationEventUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*NotificationEventUpsertBulk) Exec ¶
func (u *NotificationEventUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*NotificationEventUpsertBulk) ExecX ¶
func (u *NotificationEventUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NotificationEventUpsertBulk) Ignore ¶
func (u *NotificationEventUpsertBulk) Ignore() *NotificationEventUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.NotificationEvent.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*NotificationEventUpsertBulk) SetAnnotations ¶
func (u *NotificationEventUpsertBulk) SetAnnotations(v map[string]interface{}) *NotificationEventUpsertBulk
SetAnnotations sets the "annotations" field.
func (*NotificationEventUpsertBulk) SetPayload ¶
func (u *NotificationEventUpsertBulk) SetPayload(v string) *NotificationEventUpsertBulk
SetPayload sets the "payload" field.
func (*NotificationEventUpsertBulk) Update ¶
func (u *NotificationEventUpsertBulk) Update(set func(*NotificationEventUpsert)) *NotificationEventUpsertBulk
Update allows overriding fields `UPDATE` values. See the NotificationEventCreateBulk.OnConflict documentation for more info.
func (*NotificationEventUpsertBulk) UpdateAnnotations ¶
func (u *NotificationEventUpsertBulk) UpdateAnnotations() *NotificationEventUpsertBulk
UpdateAnnotations sets the "annotations" field to the value that was provided on create.
func (*NotificationEventUpsertBulk) UpdateNewValues ¶
func (u *NotificationEventUpsertBulk) UpdateNewValues() *NotificationEventUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.NotificationEvent.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(notificationevent.FieldID)
}),
).
Exec(ctx)
func (*NotificationEventUpsertBulk) UpdatePayload ¶
func (u *NotificationEventUpsertBulk) UpdatePayload() *NotificationEventUpsertBulk
UpdatePayload sets the "payload" field to the value that was provided on create.
type NotificationEventUpsertOne ¶
type NotificationEventUpsertOne struct {
// contains filtered or unexported fields
}
NotificationEventUpsertOne is the builder for "upsert"-ing
one NotificationEvent node.
func (*NotificationEventUpsertOne) ClearAnnotations ¶
func (u *NotificationEventUpsertOne) ClearAnnotations() *NotificationEventUpsertOne
ClearAnnotations clears the value of the "annotations" field.
func (*NotificationEventUpsertOne) DoNothing ¶
func (u *NotificationEventUpsertOne) DoNothing() *NotificationEventUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*NotificationEventUpsertOne) Exec ¶
func (u *NotificationEventUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*NotificationEventUpsertOne) ExecX ¶
func (u *NotificationEventUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NotificationEventUpsertOne) ID ¶
func (u *NotificationEventUpsertOne) ID(ctx context.Context) (id string, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*NotificationEventUpsertOne) IDX ¶
func (u *NotificationEventUpsertOne) IDX(ctx context.Context) string
IDX is like ID, but panics if an error occurs.
func (*NotificationEventUpsertOne) Ignore ¶
func (u *NotificationEventUpsertOne) Ignore() *NotificationEventUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.NotificationEvent.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*NotificationEventUpsertOne) SetAnnotations ¶
func (u *NotificationEventUpsertOne) SetAnnotations(v map[string]interface{}) *NotificationEventUpsertOne
SetAnnotations sets the "annotations" field.
func (*NotificationEventUpsertOne) SetPayload ¶
func (u *NotificationEventUpsertOne) SetPayload(v string) *NotificationEventUpsertOne
SetPayload sets the "payload" field.
func (*NotificationEventUpsertOne) Update ¶
func (u *NotificationEventUpsertOne) Update(set func(*NotificationEventUpsert)) *NotificationEventUpsertOne
Update allows overriding fields `UPDATE` values. See the NotificationEventCreate.OnConflict documentation for more info.
func (*NotificationEventUpsertOne) UpdateAnnotations ¶
func (u *NotificationEventUpsertOne) UpdateAnnotations() *NotificationEventUpsertOne
UpdateAnnotations sets the "annotations" field to the value that was provided on create.
func (*NotificationEventUpsertOne) UpdateNewValues ¶
func (u *NotificationEventUpsertOne) UpdateNewValues() *NotificationEventUpsertOne
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.NotificationEvent.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(notificationevent.FieldID)
}),
).
Exec(ctx)
func (*NotificationEventUpsertOne) UpdatePayload ¶
func (u *NotificationEventUpsertOne) UpdatePayload() *NotificationEventUpsertOne
UpdatePayload sets the "payload" field to the value that was provided on create.
type NotificationEvents ¶
type NotificationEvents []*NotificationEvent
NotificationEvents is a parsable slice of NotificationEvent.
type NotificationRule ¶
type NotificationRule struct {
// ID of the ent.
ID string `json:"id,omitempty"`
// Namespace holds the value of the "namespace" field.
Namespace string `json:"namespace,omitempty"`
// CreatedAt holds the value of the "created_at" field.
CreatedAt time.Time `json:"created_at,omitempty"`
// UpdatedAt holds the value of the "updated_at" field.
UpdatedAt time.Time `json:"updated_at,omitempty"`
// DeletedAt holds the value of the "deleted_at" field.
DeletedAt *time.Time `json:"deleted_at,omitempty"`
// The event type the rule associated with
Type notification.RuleType `json:"type,omitempty"`
// The name of the rule
Name string `json:"name,omitempty"`
// Whether the rule is disabled or not
Disabled bool `json:"disabled,omitempty"`
// Config holds the value of the "config" field.
Config notification.RuleConfig `json:"config,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the NotificationRuleQuery when eager-loading is set.
Edges NotificationRuleEdges `json:"edges"`
// contains filtered or unexported fields
}
NotificationRule is the model entity for the NotificationRule schema.
func (*NotificationRule) ExecContext ¶
func (c *NotificationRule) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationRule) QueryChannels ¶
func (nr *NotificationRule) QueryChannels() *NotificationChannelQuery
QueryChannels queries the "channels" edge of the NotificationRule entity.
func (*NotificationRule) QueryContext ¶
func (c *NotificationRule) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationRule) QueryEvents ¶
func (nr *NotificationRule) QueryEvents() *NotificationEventQuery
QueryEvents queries the "events" edge of the NotificationRule entity.
func (*NotificationRule) String ¶
func (nr *NotificationRule) String() string
String implements the fmt.Stringer.
func (*NotificationRule) Unwrap ¶
func (nr *NotificationRule) Unwrap() *NotificationRule
Unwrap unwraps the NotificationRule 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 (*NotificationRule) Update ¶
func (nr *NotificationRule) Update() *NotificationRuleUpdateOne
Update returns a builder for updating this NotificationRule. Note that you need to call NotificationRule.Unwrap() before calling this method if this NotificationRule was returned from a transaction, and the transaction was committed or rolled back.
type NotificationRuleClient ¶
type NotificationRuleClient struct {
// contains filtered or unexported fields
}
NotificationRuleClient is a client for the NotificationRule schema.
func NewNotificationRuleClient ¶
func NewNotificationRuleClient(c config) *NotificationRuleClient
NewNotificationRuleClient returns a client for the NotificationRule from the given config.
func (*NotificationRuleClient) Create ¶
func (c *NotificationRuleClient) Create() *NotificationRuleCreate
Create returns a builder for creating a NotificationRule entity.
func (*NotificationRuleClient) CreateBulk ¶
func (c *NotificationRuleClient) CreateBulk(builders ...*NotificationRuleCreate) *NotificationRuleCreateBulk
CreateBulk returns a builder for creating a bulk of NotificationRule entities.
func (*NotificationRuleClient) Delete ¶
func (c *NotificationRuleClient) Delete() *NotificationRuleDelete
Delete returns a delete builder for NotificationRule.
func (*NotificationRuleClient) DeleteOne ¶
func (c *NotificationRuleClient) DeleteOne(nr *NotificationRule) *NotificationRuleDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*NotificationRuleClient) DeleteOneID ¶
func (c *NotificationRuleClient) DeleteOneID(id string) *NotificationRuleDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*NotificationRuleClient) ExecContext ¶
func (c *NotificationRuleClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationRuleClient) Get ¶
func (c *NotificationRuleClient) Get(ctx context.Context, id string) (*NotificationRule, error)
Get returns a NotificationRule entity by its id.
func (*NotificationRuleClient) GetX ¶
func (c *NotificationRuleClient) GetX(ctx context.Context, id string) *NotificationRule
GetX is like Get, but panics if an error occurs.
func (*NotificationRuleClient) Hooks ¶
func (c *NotificationRuleClient) Hooks() []Hook
Hooks returns the client hooks.
func (*NotificationRuleClient) Intercept ¶
func (c *NotificationRuleClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `notificationrule.Intercept(f(g(h())))`.
func (*NotificationRuleClient) Interceptors ¶
func (c *NotificationRuleClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*NotificationRuleClient) MapCreateBulk ¶
func (c *NotificationRuleClient) MapCreateBulk(slice any, setFunc func(*NotificationRuleCreate, int)) *NotificationRuleCreateBulk
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 (*NotificationRuleClient) Query ¶
func (c *NotificationRuleClient) Query() *NotificationRuleQuery
Query returns a query builder for NotificationRule.
func (*NotificationRuleClient) QueryChannels ¶
func (c *NotificationRuleClient) QueryChannels(nr *NotificationRule) *NotificationChannelQuery
QueryChannels queries the channels edge of a NotificationRule.
func (*NotificationRuleClient) QueryContext ¶
func (c *NotificationRuleClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationRuleClient) QueryEvents ¶
func (c *NotificationRuleClient) QueryEvents(nr *NotificationRule) *NotificationEventQuery
QueryEvents queries the events edge of a NotificationRule.
func (*NotificationRuleClient) Update ¶
func (c *NotificationRuleClient) Update() *NotificationRuleUpdate
Update returns an update builder for NotificationRule.
func (*NotificationRuleClient) UpdateOne ¶
func (c *NotificationRuleClient) UpdateOne(nr *NotificationRule) *NotificationRuleUpdateOne
UpdateOne returns an update builder for the given entity.
func (*NotificationRuleClient) UpdateOneID ¶
func (c *NotificationRuleClient) UpdateOneID(id string) *NotificationRuleUpdateOne
UpdateOneID returns an update builder for the given id.
func (*NotificationRuleClient) Use ¶
func (c *NotificationRuleClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `notificationrule.Hooks(f(g(h())))`.
type NotificationRuleCreate ¶
type NotificationRuleCreate struct {
// contains filtered or unexported fields
}
NotificationRuleCreate is the builder for creating a NotificationRule entity.
func (*NotificationRuleCreate) AddChannelIDs ¶
func (nrc *NotificationRuleCreate) AddChannelIDs(ids ...string) *NotificationRuleCreate
AddChannelIDs adds the "channels" edge to the NotificationChannel entity by IDs.
func (*NotificationRuleCreate) AddChannels ¶
func (nrc *NotificationRuleCreate) AddChannels(n ...*NotificationChannel) *NotificationRuleCreate
AddChannels adds the "channels" edges to the NotificationChannel entity.
func (*NotificationRuleCreate) AddEventIDs ¶
func (nrc *NotificationRuleCreate) AddEventIDs(ids ...string) *NotificationRuleCreate
AddEventIDs adds the "events" edge to the NotificationEvent entity by IDs.
func (*NotificationRuleCreate) AddEvents ¶
func (nrc *NotificationRuleCreate) AddEvents(n ...*NotificationEvent) *NotificationRuleCreate
AddEvents adds the "events" edges to the NotificationEvent entity.
func (*NotificationRuleCreate) Exec ¶
func (nrc *NotificationRuleCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*NotificationRuleCreate) ExecContext ¶
func (c *NotificationRuleCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationRuleCreate) ExecX ¶
func (nrc *NotificationRuleCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NotificationRuleCreate) Mutation ¶
func (nrc *NotificationRuleCreate) Mutation() *NotificationRuleMutation
Mutation returns the NotificationRuleMutation object of the builder.
func (*NotificationRuleCreate) OnConflict ¶
func (nrc *NotificationRuleCreate) OnConflict(opts ...sql.ConflictOption) *NotificationRuleUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.NotificationRule.Create().
SetNamespace(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.NotificationRuleUpsert) {
SetNamespace(v+v).
}).
Exec(ctx)
func (*NotificationRuleCreate) OnConflictColumns ¶
func (nrc *NotificationRuleCreate) OnConflictColumns(columns ...string) *NotificationRuleUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.NotificationRule.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*NotificationRuleCreate) QueryContext ¶
func (c *NotificationRuleCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationRuleCreate) Save ¶
func (nrc *NotificationRuleCreate) Save(ctx context.Context) (*NotificationRule, error)
Save creates the NotificationRule in the database.
func (*NotificationRuleCreate) SaveX ¶
func (nrc *NotificationRuleCreate) SaveX(ctx context.Context) *NotificationRule
SaveX calls Save and panics if Save returns an error.
func (*NotificationRuleCreate) SetConfig ¶
func (nrc *NotificationRuleCreate) SetConfig(nc notification.RuleConfig) *NotificationRuleCreate
SetConfig sets the "config" field.
func (*NotificationRuleCreate) SetCreatedAt ¶
func (nrc *NotificationRuleCreate) SetCreatedAt(t time.Time) *NotificationRuleCreate
SetCreatedAt sets the "created_at" field.
func (*NotificationRuleCreate) SetDeletedAt ¶
func (nrc *NotificationRuleCreate) SetDeletedAt(t time.Time) *NotificationRuleCreate
SetDeletedAt sets the "deleted_at" field.
func (*NotificationRuleCreate) SetDisabled ¶
func (nrc *NotificationRuleCreate) SetDisabled(b bool) *NotificationRuleCreate
SetDisabled sets the "disabled" field.
func (*NotificationRuleCreate) SetID ¶
func (nrc *NotificationRuleCreate) SetID(s string) *NotificationRuleCreate
SetID sets the "id" field.
func (*NotificationRuleCreate) SetName ¶
func (nrc *NotificationRuleCreate) SetName(s string) *NotificationRuleCreate
SetName sets the "name" field.
func (*NotificationRuleCreate) SetNamespace ¶
func (nrc *NotificationRuleCreate) SetNamespace(s string) *NotificationRuleCreate
SetNamespace sets the "namespace" field.
func (*NotificationRuleCreate) SetNillableCreatedAt ¶
func (nrc *NotificationRuleCreate) SetNillableCreatedAt(t *time.Time) *NotificationRuleCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*NotificationRuleCreate) SetNillableDeletedAt ¶
func (nrc *NotificationRuleCreate) SetNillableDeletedAt(t *time.Time) *NotificationRuleCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*NotificationRuleCreate) SetNillableDisabled ¶
func (nrc *NotificationRuleCreate) SetNillableDisabled(b *bool) *NotificationRuleCreate
SetNillableDisabled sets the "disabled" field if the given value is not nil.
func (*NotificationRuleCreate) SetNillableID ¶
func (nrc *NotificationRuleCreate) SetNillableID(s *string) *NotificationRuleCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*NotificationRuleCreate) SetNillableUpdatedAt ¶
func (nrc *NotificationRuleCreate) SetNillableUpdatedAt(t *time.Time) *NotificationRuleCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*NotificationRuleCreate) SetType ¶
func (nrc *NotificationRuleCreate) SetType(nt notification.RuleType) *NotificationRuleCreate
SetType sets the "type" field.
func (*NotificationRuleCreate) SetUpdatedAt ¶
func (nrc *NotificationRuleCreate) SetUpdatedAt(t time.Time) *NotificationRuleCreate
SetUpdatedAt sets the "updated_at" field.
type NotificationRuleCreateBulk ¶
type NotificationRuleCreateBulk struct {
// contains filtered or unexported fields
}
NotificationRuleCreateBulk is the builder for creating many NotificationRule entities in bulk.
func (*NotificationRuleCreateBulk) Exec ¶
func (nrcb *NotificationRuleCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*NotificationRuleCreateBulk) ExecContext ¶
func (c *NotificationRuleCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationRuleCreateBulk) ExecX ¶
func (nrcb *NotificationRuleCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NotificationRuleCreateBulk) OnConflict ¶
func (nrcb *NotificationRuleCreateBulk) OnConflict(opts ...sql.ConflictOption) *NotificationRuleUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.NotificationRule.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.NotificationRuleUpsert) {
SetNamespace(v+v).
}).
Exec(ctx)
func (*NotificationRuleCreateBulk) OnConflictColumns ¶
func (nrcb *NotificationRuleCreateBulk) OnConflictColumns(columns ...string) *NotificationRuleUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.NotificationRule.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*NotificationRuleCreateBulk) QueryContext ¶
func (c *NotificationRuleCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationRuleCreateBulk) Save ¶
func (nrcb *NotificationRuleCreateBulk) Save(ctx context.Context) ([]*NotificationRule, error)
Save creates the NotificationRule entities in the database.
func (*NotificationRuleCreateBulk) SaveX ¶
func (nrcb *NotificationRuleCreateBulk) SaveX(ctx context.Context) []*NotificationRule
SaveX is like Save, but panics if an error occurs.
type NotificationRuleDelete ¶
type NotificationRuleDelete struct {
// contains filtered or unexported fields
}
NotificationRuleDelete is the builder for deleting a NotificationRule entity.
func (*NotificationRuleDelete) Exec ¶
func (nrd *NotificationRuleDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*NotificationRuleDelete) ExecContext ¶
func (c *NotificationRuleDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationRuleDelete) ExecX ¶
func (nrd *NotificationRuleDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*NotificationRuleDelete) QueryContext ¶
func (c *NotificationRuleDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationRuleDelete) Where ¶
func (nrd *NotificationRuleDelete) Where(ps ...predicate.NotificationRule) *NotificationRuleDelete
Where appends a list predicates to the NotificationRuleDelete builder.
type NotificationRuleDeleteOne ¶
type NotificationRuleDeleteOne struct {
// contains filtered or unexported fields
}
NotificationRuleDeleteOne is the builder for deleting a single NotificationRule entity.
func (*NotificationRuleDeleteOne) Exec ¶
func (nrdo *NotificationRuleDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*NotificationRuleDeleteOne) ExecX ¶
func (nrdo *NotificationRuleDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NotificationRuleDeleteOne) Where ¶
func (nrdo *NotificationRuleDeleteOne) Where(ps ...predicate.NotificationRule) *NotificationRuleDeleteOne
Where appends a list predicates to the NotificationRuleDelete builder.
type NotificationRuleEdges ¶
type NotificationRuleEdges struct {
// Channels holds the value of the channels edge.
Channels []*NotificationChannel `json:"channels,omitempty"`
// Events holds the value of the events edge.
Events []*NotificationEvent `json:"events,omitempty"`
// contains filtered or unexported fields
}
NotificationRuleEdges holds the relations/edges for other nodes in the graph.
func (NotificationRuleEdges) ChannelsOrErr ¶
func (e NotificationRuleEdges) ChannelsOrErr() ([]*NotificationChannel, error)
ChannelsOrErr returns the Channels value or an error if the edge was not loaded in eager-loading.
func (NotificationRuleEdges) EventsOrErr ¶
func (e NotificationRuleEdges) EventsOrErr() ([]*NotificationEvent, error)
EventsOrErr returns the Events value or an error if the edge was not loaded in eager-loading.
type NotificationRuleGroupBy ¶
type NotificationRuleGroupBy struct {
// contains filtered or unexported fields
}
NotificationRuleGroupBy is the group-by builder for NotificationRule entities.
func (*NotificationRuleGroupBy) Aggregate ¶
func (nrgb *NotificationRuleGroupBy) Aggregate(fns ...AggregateFunc) *NotificationRuleGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*NotificationRuleGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*NotificationRuleGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*NotificationRuleGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*NotificationRuleGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*NotificationRuleGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*NotificationRuleGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*NotificationRuleGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*NotificationRuleGroupBy) Scan ¶
func (nrgb *NotificationRuleGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*NotificationRuleGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type NotificationRuleMutation ¶
type NotificationRuleMutation struct {
// contains filtered or unexported fields
}
NotificationRuleMutation represents an operation that mutates the NotificationRule nodes in the graph.
func (*NotificationRuleMutation) AddChannelIDs ¶
func (m *NotificationRuleMutation) AddChannelIDs(ids ...string)
AddChannelIDs adds the "channels" edge to the NotificationChannel entity by ids.
func (*NotificationRuleMutation) AddEventIDs ¶
func (m *NotificationRuleMutation) AddEventIDs(ids ...string)
AddEventIDs adds the "events" edge to the NotificationEvent entity by ids.
func (*NotificationRuleMutation) AddField ¶
func (m *NotificationRuleMutation) 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 (*NotificationRuleMutation) AddedEdges ¶
func (m *NotificationRuleMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*NotificationRuleMutation) AddedField ¶
func (m *NotificationRuleMutation) 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 (*NotificationRuleMutation) AddedFields ¶
func (m *NotificationRuleMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*NotificationRuleMutation) AddedIDs ¶
func (m *NotificationRuleMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*NotificationRuleMutation) ChannelsCleared ¶
func (m *NotificationRuleMutation) ChannelsCleared() bool
ChannelsCleared reports if the "channels" edge to the NotificationChannel entity was cleared.
func (*NotificationRuleMutation) ChannelsIDs ¶
func (m *NotificationRuleMutation) ChannelsIDs() (ids []string)
ChannelsIDs returns the "channels" edge IDs in the mutation.
func (*NotificationRuleMutation) ClearChannels ¶
func (m *NotificationRuleMutation) ClearChannels()
ClearChannels clears the "channels" edge to the NotificationChannel entity.
func (*NotificationRuleMutation) ClearDeletedAt ¶
func (m *NotificationRuleMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*NotificationRuleMutation) ClearDisabled ¶
func (m *NotificationRuleMutation) ClearDisabled()
ClearDisabled clears the value of the "disabled" field.
func (*NotificationRuleMutation) ClearEdge ¶
func (m *NotificationRuleMutation) 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 (*NotificationRuleMutation) ClearEvents ¶
func (m *NotificationRuleMutation) ClearEvents()
ClearEvents clears the "events" edge to the NotificationEvent entity.
func (*NotificationRuleMutation) ClearField ¶
func (m *NotificationRuleMutation) 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 (*NotificationRuleMutation) ClearedEdges ¶
func (m *NotificationRuleMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*NotificationRuleMutation) ClearedFields ¶
func (m *NotificationRuleMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (NotificationRuleMutation) Client ¶
func (m NotificationRuleMutation) 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 (*NotificationRuleMutation) Config ¶
func (m *NotificationRuleMutation) Config() (r notification.RuleConfig, exists bool)
Config returns the value of the "config" field in the mutation.
func (*NotificationRuleMutation) CreatedAt ¶
func (m *NotificationRuleMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*NotificationRuleMutation) DeletedAt ¶
func (m *NotificationRuleMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*NotificationRuleMutation) DeletedAtCleared ¶
func (m *NotificationRuleMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*NotificationRuleMutation) Disabled ¶
func (m *NotificationRuleMutation) Disabled() (r bool, exists bool)
Disabled returns the value of the "disabled" field in the mutation.
func (*NotificationRuleMutation) DisabledCleared ¶
func (m *NotificationRuleMutation) DisabledCleared() bool
DisabledCleared returns if the "disabled" field was cleared in this mutation.
func (*NotificationRuleMutation) EdgeCleared ¶
func (m *NotificationRuleMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*NotificationRuleMutation) EventsCleared ¶
func (m *NotificationRuleMutation) EventsCleared() bool
EventsCleared reports if the "events" edge to the NotificationEvent entity was cleared.
func (*NotificationRuleMutation) EventsIDs ¶
func (m *NotificationRuleMutation) EventsIDs() (ids []string)
EventsIDs returns the "events" edge IDs in the mutation.
func (*NotificationRuleMutation) ExecContext ¶
func (c *NotificationRuleMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationRuleMutation) Field ¶
func (m *NotificationRuleMutation) 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 (*NotificationRuleMutation) FieldCleared ¶
func (m *NotificationRuleMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*NotificationRuleMutation) Fields ¶
func (m *NotificationRuleMutation) 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 (*NotificationRuleMutation) GetType ¶
func (m *NotificationRuleMutation) GetType() (r notification.RuleType, exists bool)
GetType returns the value of the "type" field in the mutation.
func (*NotificationRuleMutation) ID ¶
func (m *NotificationRuleMutation) ID() (id string, 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 (*NotificationRuleMutation) IDs ¶
func (m *NotificationRuleMutation) IDs(ctx context.Context) ([]string, error)
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 (*NotificationRuleMutation) Name ¶
func (m *NotificationRuleMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*NotificationRuleMutation) Namespace ¶
func (m *NotificationRuleMutation) Namespace() (r string, exists bool)
Namespace returns the value of the "namespace" field in the mutation.
func (*NotificationRuleMutation) OldConfig ¶
func (m *NotificationRuleMutation) OldConfig(ctx context.Context) (v notification.RuleConfig, err error)
OldConfig returns the old "config" field's value of the NotificationRule entity. If the NotificationRule 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 (*NotificationRuleMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the NotificationRule entity. If the NotificationRule 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 (*NotificationRuleMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the NotificationRule entity. If the NotificationRule 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 (*NotificationRuleMutation) OldDisabled ¶
func (m *NotificationRuleMutation) OldDisabled(ctx context.Context) (v bool, err error)
OldDisabled returns the old "disabled" field's value of the NotificationRule entity. If the NotificationRule 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 (*NotificationRuleMutation) OldField ¶
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 (*NotificationRuleMutation) OldName ¶
func (m *NotificationRuleMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the NotificationRule entity. If the NotificationRule 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 (*NotificationRuleMutation) OldNamespace ¶
func (m *NotificationRuleMutation) OldNamespace(ctx context.Context) (v string, err error)
OldNamespace returns the old "namespace" field's value of the NotificationRule entity. If the NotificationRule 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 (*NotificationRuleMutation) OldType ¶
func (m *NotificationRuleMutation) OldType(ctx context.Context) (v notification.RuleType, err error)
OldType returns the old "type" field's value of the NotificationRule entity. If the NotificationRule 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 (*NotificationRuleMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the NotificationRule entity. If the NotificationRule 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 (*NotificationRuleMutation) Op ¶
func (m *NotificationRuleMutation) Op() Op
Op returns the operation name.
func (*NotificationRuleMutation) QueryContext ¶
func (c *NotificationRuleMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationRuleMutation) RemoveChannelIDs ¶
func (m *NotificationRuleMutation) RemoveChannelIDs(ids ...string)
RemoveChannelIDs removes the "channels" edge to the NotificationChannel entity by IDs.
func (*NotificationRuleMutation) RemoveEventIDs ¶
func (m *NotificationRuleMutation) RemoveEventIDs(ids ...string)
RemoveEventIDs removes the "events" edge to the NotificationEvent entity by IDs.
func (*NotificationRuleMutation) RemovedChannelsIDs ¶
func (m *NotificationRuleMutation) RemovedChannelsIDs() (ids []string)
RemovedChannels returns the removed IDs of the "channels" edge to the NotificationChannel entity.
func (*NotificationRuleMutation) RemovedEdges ¶
func (m *NotificationRuleMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*NotificationRuleMutation) RemovedEventsIDs ¶
func (m *NotificationRuleMutation) RemovedEventsIDs() (ids []string)
RemovedEvents returns the removed IDs of the "events" edge to the NotificationEvent entity.
func (*NotificationRuleMutation) RemovedIDs ¶
func (m *NotificationRuleMutation) 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 (*NotificationRuleMutation) ResetChannels ¶
func (m *NotificationRuleMutation) ResetChannels()
ResetChannels resets all changes to the "channels" edge.
func (*NotificationRuleMutation) ResetConfig ¶
func (m *NotificationRuleMutation) ResetConfig()
ResetConfig resets all changes to the "config" field.
func (*NotificationRuleMutation) ResetCreatedAt ¶
func (m *NotificationRuleMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*NotificationRuleMutation) ResetDeletedAt ¶
func (m *NotificationRuleMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*NotificationRuleMutation) ResetDisabled ¶
func (m *NotificationRuleMutation) ResetDisabled()
ResetDisabled resets all changes to the "disabled" field.
func (*NotificationRuleMutation) ResetEdge ¶
func (m *NotificationRuleMutation) 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 (*NotificationRuleMutation) ResetEvents ¶
func (m *NotificationRuleMutation) ResetEvents()
ResetEvents resets all changes to the "events" edge.
func (*NotificationRuleMutation) ResetField ¶
func (m *NotificationRuleMutation) 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 (*NotificationRuleMutation) ResetName ¶
func (m *NotificationRuleMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*NotificationRuleMutation) ResetNamespace ¶
func (m *NotificationRuleMutation) ResetNamespace()
ResetNamespace resets all changes to the "namespace" field.
func (*NotificationRuleMutation) ResetType ¶
func (m *NotificationRuleMutation) ResetType()
ResetType resets all changes to the "type" field.
func (*NotificationRuleMutation) ResetUpdatedAt ¶
func (m *NotificationRuleMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*NotificationRuleMutation) SetConfig ¶
func (m *NotificationRuleMutation) SetConfig(nc notification.RuleConfig)
SetConfig sets the "config" field.
func (*NotificationRuleMutation) SetCreatedAt ¶
func (m *NotificationRuleMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*NotificationRuleMutation) SetDeletedAt ¶
func (m *NotificationRuleMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*NotificationRuleMutation) SetDisabled ¶
func (m *NotificationRuleMutation) SetDisabled(b bool)
SetDisabled sets the "disabled" field.
func (*NotificationRuleMutation) SetField ¶
func (m *NotificationRuleMutation) 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 (*NotificationRuleMutation) SetID ¶
func (m *NotificationRuleMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of NotificationRule entities.
func (*NotificationRuleMutation) SetName ¶
func (m *NotificationRuleMutation) SetName(s string)
SetName sets the "name" field.
func (*NotificationRuleMutation) SetNamespace ¶
func (m *NotificationRuleMutation) SetNamespace(s string)
SetNamespace sets the "namespace" field.
func (*NotificationRuleMutation) SetOp ¶
func (m *NotificationRuleMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*NotificationRuleMutation) SetType ¶
func (m *NotificationRuleMutation) SetType(nt notification.RuleType)
SetType sets the "type" field.
func (*NotificationRuleMutation) SetUpdatedAt ¶
func (m *NotificationRuleMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (NotificationRuleMutation) Tx ¶
func (m NotificationRuleMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*NotificationRuleMutation) Type ¶
func (m *NotificationRuleMutation) Type() string
Type returns the node type of this mutation (NotificationRule).
func (*NotificationRuleMutation) UpdatedAt ¶
func (m *NotificationRuleMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*NotificationRuleMutation) Where ¶
func (m *NotificationRuleMutation) Where(ps ...predicate.NotificationRule)
Where appends a list predicates to the NotificationRuleMutation builder.
func (*NotificationRuleMutation) WhereP ¶
func (m *NotificationRuleMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the NotificationRuleMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type NotificationRuleQuery ¶
type NotificationRuleQuery struct {
// contains filtered or unexported fields
}
NotificationRuleQuery is the builder for querying NotificationRule entities.
func (*NotificationRuleQuery) Aggregate ¶
func (nrq *NotificationRuleQuery) Aggregate(fns ...AggregateFunc) *NotificationRuleSelect
Aggregate returns a NotificationRuleSelect configured with the given aggregations.
func (*NotificationRuleQuery) All ¶
func (nrq *NotificationRuleQuery) All(ctx context.Context) ([]*NotificationRule, error)
All executes the query and returns a list of NotificationRules.
func (*NotificationRuleQuery) AllX ¶
func (nrq *NotificationRuleQuery) AllX(ctx context.Context) []*NotificationRule
AllX is like All, but panics if an error occurs.
func (*NotificationRuleQuery) Clone ¶
func (nrq *NotificationRuleQuery) Clone() *NotificationRuleQuery
Clone returns a duplicate of the NotificationRuleQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*NotificationRuleQuery) Count ¶
func (nrq *NotificationRuleQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*NotificationRuleQuery) CountX ¶
func (nrq *NotificationRuleQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*NotificationRuleQuery) ExecContext ¶
func (c *NotificationRuleQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationRuleQuery) Exist ¶
func (nrq *NotificationRuleQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*NotificationRuleQuery) ExistX ¶
func (nrq *NotificationRuleQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*NotificationRuleQuery) First ¶
func (nrq *NotificationRuleQuery) First(ctx context.Context) (*NotificationRule, error)
First returns the first NotificationRule entity from the query. Returns a *NotFoundError when no NotificationRule was found.
func (*NotificationRuleQuery) FirstID ¶
func (nrq *NotificationRuleQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first NotificationRule ID from the query. Returns a *NotFoundError when no NotificationRule ID was found.
func (*NotificationRuleQuery) FirstIDX ¶
func (nrq *NotificationRuleQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*NotificationRuleQuery) FirstX ¶
func (nrq *NotificationRuleQuery) FirstX(ctx context.Context) *NotificationRule
FirstX is like First, but panics if an error occurs.
func (*NotificationRuleQuery) ForShare ¶
func (nrq *NotificationRuleQuery) ForShare(opts ...sql.LockOption) *NotificationRuleQuery
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 (*NotificationRuleQuery) ForUpdate ¶
func (nrq *NotificationRuleQuery) ForUpdate(opts ...sql.LockOption) *NotificationRuleQuery
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 (*NotificationRuleQuery) GroupBy ¶
func (nrq *NotificationRuleQuery) GroupBy(field string, fields ...string) *NotificationRuleGroupBy
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 {
Namespace string `json:"namespace,omitempty"`
Count int `json:"count,omitempty"`
}
client.NotificationRule.Query().
GroupBy(notificationrule.FieldNamespace).
Aggregate(db.Count()).
Scan(ctx, &v)
func (*NotificationRuleQuery) IDs ¶
func (nrq *NotificationRuleQuery) IDs(ctx context.Context) (ids []string, err error)
IDs executes the query and returns a list of NotificationRule IDs.
func (*NotificationRuleQuery) IDsX ¶
func (nrq *NotificationRuleQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*NotificationRuleQuery) Limit ¶
func (nrq *NotificationRuleQuery) Limit(limit int) *NotificationRuleQuery
Limit the number of records to be returned by this query.
func (*NotificationRuleQuery) Offset ¶
func (nrq *NotificationRuleQuery) Offset(offset int) *NotificationRuleQuery
Offset to start from.
func (*NotificationRuleQuery) Only ¶
func (nrq *NotificationRuleQuery) Only(ctx context.Context) (*NotificationRule, error)
Only returns a single NotificationRule entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one NotificationRule entity is found. Returns a *NotFoundError when no NotificationRule entities are found.
func (*NotificationRuleQuery) OnlyID ¶
func (nrq *NotificationRuleQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only NotificationRule ID in the query. Returns a *NotSingularError when more than one NotificationRule ID is found. Returns a *NotFoundError when no entities are found.
func (*NotificationRuleQuery) OnlyIDX ¶
func (nrq *NotificationRuleQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*NotificationRuleQuery) OnlyX ¶
func (nrq *NotificationRuleQuery) OnlyX(ctx context.Context) *NotificationRule
OnlyX is like Only, but panics if an error occurs.
func (*NotificationRuleQuery) Order ¶
func (nrq *NotificationRuleQuery) Order(o ...notificationrule.OrderOption) *NotificationRuleQuery
Order specifies how the records should be ordered.
func (*NotificationRuleQuery) Paginate ¶
func (nr *NotificationRuleQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*NotificationRule], error)
Paginate runs the query and returns a paginated response. If page is its 0 value then it will return all the items and populate the response page accordingly.
func (*NotificationRuleQuery) QueryChannels ¶
func (nrq *NotificationRuleQuery) QueryChannels() *NotificationChannelQuery
QueryChannels chains the current query on the "channels" edge.
func (*NotificationRuleQuery) QueryContext ¶
func (c *NotificationRuleQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationRuleQuery) QueryEvents ¶
func (nrq *NotificationRuleQuery) QueryEvents() *NotificationEventQuery
QueryEvents chains the current query on the "events" edge.
func (*NotificationRuleQuery) Select ¶
func (nrq *NotificationRuleQuery) Select(fields ...string) *NotificationRuleSelect
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 {
Namespace string `json:"namespace,omitempty"`
}
client.NotificationRule.Query().
Select(notificationrule.FieldNamespace).
Scan(ctx, &v)
func (*NotificationRuleQuery) Unique ¶
func (nrq *NotificationRuleQuery) Unique(unique bool) *NotificationRuleQuery
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 (*NotificationRuleQuery) Where ¶
func (nrq *NotificationRuleQuery) Where(ps ...predicate.NotificationRule) *NotificationRuleQuery
Where adds a new predicate for the NotificationRuleQuery builder.
func (*NotificationRuleQuery) WithChannels ¶
func (nrq *NotificationRuleQuery) WithChannels(opts ...func(*NotificationChannelQuery)) *NotificationRuleQuery
WithChannels tells the query-builder to eager-load the nodes that are connected to the "channels" edge. The optional arguments are used to configure the query builder of the edge.
func (*NotificationRuleQuery) WithEvents ¶
func (nrq *NotificationRuleQuery) WithEvents(opts ...func(*NotificationEventQuery)) *NotificationRuleQuery
WithEvents tells the query-builder to eager-load the nodes that are connected to the "events" edge. The optional arguments are used to configure the query builder of the edge.
type NotificationRuleSelect ¶
type NotificationRuleSelect struct {
*NotificationRuleQuery
// contains filtered or unexported fields
}
NotificationRuleSelect is the builder for selecting fields of NotificationRule entities.
func (*NotificationRuleSelect) Aggregate ¶
func (nrs *NotificationRuleSelect) Aggregate(fns ...AggregateFunc) *NotificationRuleSelect
Aggregate adds the given aggregation functions to the selector query.
func (*NotificationRuleSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*NotificationRuleSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (NotificationRuleSelect) ExecContext ¶
func (c NotificationRuleSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationRuleSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*NotificationRuleSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*NotificationRuleSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*NotificationRuleSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*NotificationRuleSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (NotificationRuleSelect) QueryContext ¶
func (c NotificationRuleSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationRuleSelect) Scan ¶
func (nrs *NotificationRuleSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*NotificationRuleSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type NotificationRuleUpdate ¶
type NotificationRuleUpdate struct {
// contains filtered or unexported fields
}
NotificationRuleUpdate is the builder for updating NotificationRule entities.
func (*NotificationRuleUpdate) AddChannelIDs ¶
func (nru *NotificationRuleUpdate) AddChannelIDs(ids ...string) *NotificationRuleUpdate
AddChannelIDs adds the "channels" edge to the NotificationChannel entity by IDs.
func (*NotificationRuleUpdate) AddChannels ¶
func (nru *NotificationRuleUpdate) AddChannels(n ...*NotificationChannel) *NotificationRuleUpdate
AddChannels adds the "channels" edges to the NotificationChannel entity.
func (*NotificationRuleUpdate) AddEventIDs ¶
func (nru *NotificationRuleUpdate) AddEventIDs(ids ...string) *NotificationRuleUpdate
AddEventIDs adds the "events" edge to the NotificationEvent entity by IDs.
func (*NotificationRuleUpdate) AddEvents ¶
func (nru *NotificationRuleUpdate) AddEvents(n ...*NotificationEvent) *NotificationRuleUpdate
AddEvents adds the "events" edges to the NotificationEvent entity.
func (*NotificationRuleUpdate) ClearChannels ¶
func (nru *NotificationRuleUpdate) ClearChannels() *NotificationRuleUpdate
ClearChannels clears all "channels" edges to the NotificationChannel entity.
func (*NotificationRuleUpdate) ClearDeletedAt ¶
func (nru *NotificationRuleUpdate) ClearDeletedAt() *NotificationRuleUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*NotificationRuleUpdate) ClearDisabled ¶
func (nru *NotificationRuleUpdate) ClearDisabled() *NotificationRuleUpdate
ClearDisabled clears the value of the "disabled" field.
func (*NotificationRuleUpdate) ClearEvents ¶
func (nru *NotificationRuleUpdate) ClearEvents() *NotificationRuleUpdate
ClearEvents clears all "events" edges to the NotificationEvent entity.
func (*NotificationRuleUpdate) Exec ¶
func (nru *NotificationRuleUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*NotificationRuleUpdate) ExecContext ¶
func (c *NotificationRuleUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationRuleUpdate) ExecX ¶
func (nru *NotificationRuleUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NotificationRuleUpdate) Mutation ¶
func (nru *NotificationRuleUpdate) Mutation() *NotificationRuleMutation
Mutation returns the NotificationRuleMutation object of the builder.
func (*NotificationRuleUpdate) QueryContext ¶
func (c *NotificationRuleUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationRuleUpdate) RemoveChannelIDs ¶
func (nru *NotificationRuleUpdate) RemoveChannelIDs(ids ...string) *NotificationRuleUpdate
RemoveChannelIDs removes the "channels" edge to NotificationChannel entities by IDs.
func (*NotificationRuleUpdate) RemoveChannels ¶
func (nru *NotificationRuleUpdate) RemoveChannels(n ...*NotificationChannel) *NotificationRuleUpdate
RemoveChannels removes "channels" edges to NotificationChannel entities.
func (*NotificationRuleUpdate) RemoveEventIDs ¶
func (nru *NotificationRuleUpdate) RemoveEventIDs(ids ...string) *NotificationRuleUpdate
RemoveEventIDs removes the "events" edge to NotificationEvent entities by IDs.
func (*NotificationRuleUpdate) RemoveEvents ¶
func (nru *NotificationRuleUpdate) RemoveEvents(n ...*NotificationEvent) *NotificationRuleUpdate
RemoveEvents removes "events" edges to NotificationEvent entities.
func (*NotificationRuleUpdate) Save ¶
func (nru *NotificationRuleUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*NotificationRuleUpdate) SaveX ¶
func (nru *NotificationRuleUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*NotificationRuleUpdate) SetConfig ¶
func (nru *NotificationRuleUpdate) SetConfig(nc notification.RuleConfig) *NotificationRuleUpdate
SetConfig sets the "config" field.
func (*NotificationRuleUpdate) SetDeletedAt ¶
func (nru *NotificationRuleUpdate) SetDeletedAt(t time.Time) *NotificationRuleUpdate
SetDeletedAt sets the "deleted_at" field.
func (*NotificationRuleUpdate) SetDisabled ¶
func (nru *NotificationRuleUpdate) SetDisabled(b bool) *NotificationRuleUpdate
SetDisabled sets the "disabled" field.
func (*NotificationRuleUpdate) SetName ¶
func (nru *NotificationRuleUpdate) SetName(s string) *NotificationRuleUpdate
SetName sets the "name" field.
func (*NotificationRuleUpdate) SetNillableConfig ¶
func (nru *NotificationRuleUpdate) SetNillableConfig(nc *notification.RuleConfig) *NotificationRuleUpdate
SetNillableConfig sets the "config" field if the given value is not nil.
func (*NotificationRuleUpdate) SetNillableDeletedAt ¶
func (nru *NotificationRuleUpdate) SetNillableDeletedAt(t *time.Time) *NotificationRuleUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*NotificationRuleUpdate) SetNillableDisabled ¶
func (nru *NotificationRuleUpdate) SetNillableDisabled(b *bool) *NotificationRuleUpdate
SetNillableDisabled sets the "disabled" field if the given value is not nil.
func (*NotificationRuleUpdate) SetNillableName ¶
func (nru *NotificationRuleUpdate) SetNillableName(s *string) *NotificationRuleUpdate
SetNillableName sets the "name" field if the given value is not nil.
func (*NotificationRuleUpdate) SetOrClearDeletedAt ¶
func (u *NotificationRuleUpdate) SetOrClearDeletedAt(value *time.Time) *NotificationRuleUpdate
func (*NotificationRuleUpdate) SetOrClearDisabled ¶
func (u *NotificationRuleUpdate) SetOrClearDisabled(value *bool) *NotificationRuleUpdate
func (*NotificationRuleUpdate) SetUpdatedAt ¶
func (nru *NotificationRuleUpdate) SetUpdatedAt(t time.Time) *NotificationRuleUpdate
SetUpdatedAt sets the "updated_at" field.
func (*NotificationRuleUpdate) Where ¶
func (nru *NotificationRuleUpdate) Where(ps ...predicate.NotificationRule) *NotificationRuleUpdate
Where appends a list predicates to the NotificationRuleUpdate builder.
type NotificationRuleUpdateOne ¶
type NotificationRuleUpdateOne struct {
// contains filtered or unexported fields
}
NotificationRuleUpdateOne is the builder for updating a single NotificationRule entity.
func (*NotificationRuleUpdateOne) AddChannelIDs ¶
func (nruo *NotificationRuleUpdateOne) AddChannelIDs(ids ...string) *NotificationRuleUpdateOne
AddChannelIDs adds the "channels" edge to the NotificationChannel entity by IDs.
func (*NotificationRuleUpdateOne) AddChannels ¶
func (nruo *NotificationRuleUpdateOne) AddChannels(n ...*NotificationChannel) *NotificationRuleUpdateOne
AddChannels adds the "channels" edges to the NotificationChannel entity.
func (*NotificationRuleUpdateOne) AddEventIDs ¶
func (nruo *NotificationRuleUpdateOne) AddEventIDs(ids ...string) *NotificationRuleUpdateOne
AddEventIDs adds the "events" edge to the NotificationEvent entity by IDs.
func (*NotificationRuleUpdateOne) AddEvents ¶
func (nruo *NotificationRuleUpdateOne) AddEvents(n ...*NotificationEvent) *NotificationRuleUpdateOne
AddEvents adds the "events" edges to the NotificationEvent entity.
func (*NotificationRuleUpdateOne) ClearChannels ¶
func (nruo *NotificationRuleUpdateOne) ClearChannels() *NotificationRuleUpdateOne
ClearChannels clears all "channels" edges to the NotificationChannel entity.
func (*NotificationRuleUpdateOne) ClearDeletedAt ¶
func (nruo *NotificationRuleUpdateOne) ClearDeletedAt() *NotificationRuleUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*NotificationRuleUpdateOne) ClearDisabled ¶
func (nruo *NotificationRuleUpdateOne) ClearDisabled() *NotificationRuleUpdateOne
ClearDisabled clears the value of the "disabled" field.
func (*NotificationRuleUpdateOne) ClearEvents ¶
func (nruo *NotificationRuleUpdateOne) ClearEvents() *NotificationRuleUpdateOne
ClearEvents clears all "events" edges to the NotificationEvent entity.
func (*NotificationRuleUpdateOne) Exec ¶
func (nruo *NotificationRuleUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*NotificationRuleUpdateOne) ExecContext ¶
func (c *NotificationRuleUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*NotificationRuleUpdateOne) ExecX ¶
func (nruo *NotificationRuleUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NotificationRuleUpdateOne) Mutation ¶
func (nruo *NotificationRuleUpdateOne) Mutation() *NotificationRuleMutation
Mutation returns the NotificationRuleMutation object of the builder.
func (*NotificationRuleUpdateOne) QueryContext ¶
func (c *NotificationRuleUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*NotificationRuleUpdateOne) RemoveChannelIDs ¶
func (nruo *NotificationRuleUpdateOne) RemoveChannelIDs(ids ...string) *NotificationRuleUpdateOne
RemoveChannelIDs removes the "channels" edge to NotificationChannel entities by IDs.
func (*NotificationRuleUpdateOne) RemoveChannels ¶
func (nruo *NotificationRuleUpdateOne) RemoveChannels(n ...*NotificationChannel) *NotificationRuleUpdateOne
RemoveChannels removes "channels" edges to NotificationChannel entities.
func (*NotificationRuleUpdateOne) RemoveEventIDs ¶
func (nruo *NotificationRuleUpdateOne) RemoveEventIDs(ids ...string) *NotificationRuleUpdateOne
RemoveEventIDs removes the "events" edge to NotificationEvent entities by IDs.
func (*NotificationRuleUpdateOne) RemoveEvents ¶
func (nruo *NotificationRuleUpdateOne) RemoveEvents(n ...*NotificationEvent) *NotificationRuleUpdateOne
RemoveEvents removes "events" edges to NotificationEvent entities.
func (*NotificationRuleUpdateOne) Save ¶
func (nruo *NotificationRuleUpdateOne) Save(ctx context.Context) (*NotificationRule, error)
Save executes the query and returns the updated NotificationRule entity.
func (*NotificationRuleUpdateOne) SaveX ¶
func (nruo *NotificationRuleUpdateOne) SaveX(ctx context.Context) *NotificationRule
SaveX is like Save, but panics if an error occurs.
func (*NotificationRuleUpdateOne) Select ¶
func (nruo *NotificationRuleUpdateOne) Select(field string, fields ...string) *NotificationRuleUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*NotificationRuleUpdateOne) SetConfig ¶
func (nruo *NotificationRuleUpdateOne) SetConfig(nc notification.RuleConfig) *NotificationRuleUpdateOne
SetConfig sets the "config" field.
func (*NotificationRuleUpdateOne) SetDeletedAt ¶
func (nruo *NotificationRuleUpdateOne) SetDeletedAt(t time.Time) *NotificationRuleUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*NotificationRuleUpdateOne) SetDisabled ¶
func (nruo *NotificationRuleUpdateOne) SetDisabled(b bool) *NotificationRuleUpdateOne
SetDisabled sets the "disabled" field.
func (*NotificationRuleUpdateOne) SetName ¶
func (nruo *NotificationRuleUpdateOne) SetName(s string) *NotificationRuleUpdateOne
SetName sets the "name" field.
func (*NotificationRuleUpdateOne) SetNillableConfig ¶
func (nruo *NotificationRuleUpdateOne) SetNillableConfig(nc *notification.RuleConfig) *NotificationRuleUpdateOne
SetNillableConfig sets the "config" field if the given value is not nil.
func (*NotificationRuleUpdateOne) SetNillableDeletedAt ¶
func (nruo *NotificationRuleUpdateOne) SetNillableDeletedAt(t *time.Time) *NotificationRuleUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*NotificationRuleUpdateOne) SetNillableDisabled ¶
func (nruo *NotificationRuleUpdateOne) SetNillableDisabled(b *bool) *NotificationRuleUpdateOne
SetNillableDisabled sets the "disabled" field if the given value is not nil.
func (*NotificationRuleUpdateOne) SetNillableName ¶
func (nruo *NotificationRuleUpdateOne) SetNillableName(s *string) *NotificationRuleUpdateOne
SetNillableName sets the "name" field if the given value is not nil.
func (*NotificationRuleUpdateOne) SetOrClearDeletedAt ¶
func (u *NotificationRuleUpdateOne) SetOrClearDeletedAt(value *time.Time) *NotificationRuleUpdateOne
func (*NotificationRuleUpdateOne) SetOrClearDisabled ¶
func (u *NotificationRuleUpdateOne) SetOrClearDisabled(value *bool) *NotificationRuleUpdateOne
func (*NotificationRuleUpdateOne) SetUpdatedAt ¶
func (nruo *NotificationRuleUpdateOne) SetUpdatedAt(t time.Time) *NotificationRuleUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*NotificationRuleUpdateOne) Where ¶
func (nruo *NotificationRuleUpdateOne) Where(ps ...predicate.NotificationRule) *NotificationRuleUpdateOne
Where appends a list predicates to the NotificationRuleUpdate builder.
type NotificationRuleUpsert ¶
NotificationRuleUpsert is the "OnConflict" setter.
func (*NotificationRuleUpsert) ClearDeletedAt ¶
func (u *NotificationRuleUpsert) ClearDeletedAt() *NotificationRuleUpsert
ClearDeletedAt clears the value of the "deleted_at" field.
func (*NotificationRuleUpsert) ClearDisabled ¶
func (u *NotificationRuleUpsert) ClearDisabled() *NotificationRuleUpsert
ClearDisabled clears the value of the "disabled" field.
func (*NotificationRuleUpsert) SetConfig ¶
func (u *NotificationRuleUpsert) SetConfig(v notification.RuleConfig) *NotificationRuleUpsert
SetConfig sets the "config" field.
func (*NotificationRuleUpsert) SetDeletedAt ¶
func (u *NotificationRuleUpsert) SetDeletedAt(v time.Time) *NotificationRuleUpsert
SetDeletedAt sets the "deleted_at" field.
func (*NotificationRuleUpsert) SetDisabled ¶
func (u *NotificationRuleUpsert) SetDisabled(v bool) *NotificationRuleUpsert
SetDisabled sets the "disabled" field.
func (*NotificationRuleUpsert) SetName ¶
func (u *NotificationRuleUpsert) SetName(v string) *NotificationRuleUpsert
SetName sets the "name" field.
func (*NotificationRuleUpsert) SetUpdatedAt ¶
func (u *NotificationRuleUpsert) SetUpdatedAt(v time.Time) *NotificationRuleUpsert
SetUpdatedAt sets the "updated_at" field.
func (*NotificationRuleUpsert) UpdateConfig ¶
func (u *NotificationRuleUpsert) UpdateConfig() *NotificationRuleUpsert
UpdateConfig sets the "config" field to the value that was provided on create.
func (*NotificationRuleUpsert) UpdateDeletedAt ¶
func (u *NotificationRuleUpsert) UpdateDeletedAt() *NotificationRuleUpsert
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*NotificationRuleUpsert) UpdateDisabled ¶
func (u *NotificationRuleUpsert) UpdateDisabled() *NotificationRuleUpsert
UpdateDisabled sets the "disabled" field to the value that was provided on create.
func (*NotificationRuleUpsert) UpdateName ¶
func (u *NotificationRuleUpsert) UpdateName() *NotificationRuleUpsert
UpdateName sets the "name" field to the value that was provided on create.
func (*NotificationRuleUpsert) UpdateUpdatedAt ¶
func (u *NotificationRuleUpsert) UpdateUpdatedAt() *NotificationRuleUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type NotificationRuleUpsertBulk ¶
type NotificationRuleUpsertBulk struct {
// contains filtered or unexported fields
}
NotificationRuleUpsertBulk is the builder for "upsert"-ing a bulk of NotificationRule nodes.
func (*NotificationRuleUpsertBulk) ClearDeletedAt ¶
func (u *NotificationRuleUpsertBulk) ClearDeletedAt() *NotificationRuleUpsertBulk
ClearDeletedAt clears the value of the "deleted_at" field.
func (*NotificationRuleUpsertBulk) ClearDisabled ¶
func (u *NotificationRuleUpsertBulk) ClearDisabled() *NotificationRuleUpsertBulk
ClearDisabled clears the value of the "disabled" field.
func (*NotificationRuleUpsertBulk) DoNothing ¶
func (u *NotificationRuleUpsertBulk) DoNothing() *NotificationRuleUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*NotificationRuleUpsertBulk) Exec ¶
func (u *NotificationRuleUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*NotificationRuleUpsertBulk) ExecX ¶
func (u *NotificationRuleUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NotificationRuleUpsertBulk) Ignore ¶
func (u *NotificationRuleUpsertBulk) Ignore() *NotificationRuleUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.NotificationRule.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*NotificationRuleUpsertBulk) SetConfig ¶
func (u *NotificationRuleUpsertBulk) SetConfig(v notification.RuleConfig) *NotificationRuleUpsertBulk
SetConfig sets the "config" field.
func (*NotificationRuleUpsertBulk) SetDeletedAt ¶
func (u *NotificationRuleUpsertBulk) SetDeletedAt(v time.Time) *NotificationRuleUpsertBulk
SetDeletedAt sets the "deleted_at" field.
func (*NotificationRuleUpsertBulk) SetDisabled ¶
func (u *NotificationRuleUpsertBulk) SetDisabled(v bool) *NotificationRuleUpsertBulk
SetDisabled sets the "disabled" field.
func (*NotificationRuleUpsertBulk) SetName ¶
func (u *NotificationRuleUpsertBulk) SetName(v string) *NotificationRuleUpsertBulk
SetName sets the "name" field.
func (*NotificationRuleUpsertBulk) SetUpdatedAt ¶
func (u *NotificationRuleUpsertBulk) SetUpdatedAt(v time.Time) *NotificationRuleUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*NotificationRuleUpsertBulk) Update ¶
func (u *NotificationRuleUpsertBulk) Update(set func(*NotificationRuleUpsert)) *NotificationRuleUpsertBulk
Update allows overriding fields `UPDATE` values. See the NotificationRuleCreateBulk.OnConflict documentation for more info.
func (*NotificationRuleUpsertBulk) UpdateConfig ¶
func (u *NotificationRuleUpsertBulk) UpdateConfig() *NotificationRuleUpsertBulk
UpdateConfig sets the "config" field to the value that was provided on create.
func (*NotificationRuleUpsertBulk) UpdateDeletedAt ¶
func (u *NotificationRuleUpsertBulk) UpdateDeletedAt() *NotificationRuleUpsertBulk
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*NotificationRuleUpsertBulk) UpdateDisabled ¶
func (u *NotificationRuleUpsertBulk) UpdateDisabled() *NotificationRuleUpsertBulk
UpdateDisabled sets the "disabled" field to the value that was provided on create.
func (*NotificationRuleUpsertBulk) UpdateName ¶
func (u *NotificationRuleUpsertBulk) UpdateName() *NotificationRuleUpsertBulk
UpdateName sets the "name" field to the value that was provided on create.
func (*NotificationRuleUpsertBulk) UpdateNewValues ¶
func (u *NotificationRuleUpsertBulk) UpdateNewValues() *NotificationRuleUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.NotificationRule.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(notificationrule.FieldID)
}),
).
Exec(ctx)
func (*NotificationRuleUpsertBulk) UpdateUpdatedAt ¶
func (u *NotificationRuleUpsertBulk) UpdateUpdatedAt() *NotificationRuleUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type NotificationRuleUpsertOne ¶
type NotificationRuleUpsertOne struct {
// contains filtered or unexported fields
}
NotificationRuleUpsertOne is the builder for "upsert"-ing
one NotificationRule node.
func (*NotificationRuleUpsertOne) ClearDeletedAt ¶
func (u *NotificationRuleUpsertOne) ClearDeletedAt() *NotificationRuleUpsertOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*NotificationRuleUpsertOne) ClearDisabled ¶
func (u *NotificationRuleUpsertOne) ClearDisabled() *NotificationRuleUpsertOne
ClearDisabled clears the value of the "disabled" field.
func (*NotificationRuleUpsertOne) DoNothing ¶
func (u *NotificationRuleUpsertOne) DoNothing() *NotificationRuleUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*NotificationRuleUpsertOne) Exec ¶
func (u *NotificationRuleUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*NotificationRuleUpsertOne) ExecX ¶
func (u *NotificationRuleUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*NotificationRuleUpsertOne) ID ¶
func (u *NotificationRuleUpsertOne) ID(ctx context.Context) (id string, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*NotificationRuleUpsertOne) IDX ¶
func (u *NotificationRuleUpsertOne) IDX(ctx context.Context) string
IDX is like ID, but panics if an error occurs.
func (*NotificationRuleUpsertOne) Ignore ¶
func (u *NotificationRuleUpsertOne) Ignore() *NotificationRuleUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.NotificationRule.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*NotificationRuleUpsertOne) SetConfig ¶
func (u *NotificationRuleUpsertOne) SetConfig(v notification.RuleConfig) *NotificationRuleUpsertOne
SetConfig sets the "config" field.
func (*NotificationRuleUpsertOne) SetDeletedAt ¶
func (u *NotificationRuleUpsertOne) SetDeletedAt(v time.Time) *NotificationRuleUpsertOne
SetDeletedAt sets the "deleted_at" field.
func (*NotificationRuleUpsertOne) SetDisabled ¶
func (u *NotificationRuleUpsertOne) SetDisabled(v bool) *NotificationRuleUpsertOne
SetDisabled sets the "disabled" field.
func (*NotificationRuleUpsertOne) SetName ¶
func (u *NotificationRuleUpsertOne) SetName(v string) *NotificationRuleUpsertOne
SetName sets the "name" field.
func (*NotificationRuleUpsertOne) SetUpdatedAt ¶
func (u *NotificationRuleUpsertOne) SetUpdatedAt(v time.Time) *NotificationRuleUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*NotificationRuleUpsertOne) Update ¶
func (u *NotificationRuleUpsertOne) Update(set func(*NotificationRuleUpsert)) *NotificationRuleUpsertOne
Update allows overriding fields `UPDATE` values. See the NotificationRuleCreate.OnConflict documentation for more info.
func (*NotificationRuleUpsertOne) UpdateConfig ¶
func (u *NotificationRuleUpsertOne) UpdateConfig() *NotificationRuleUpsertOne
UpdateConfig sets the "config" field to the value that was provided on create.
func (*NotificationRuleUpsertOne) UpdateDeletedAt ¶
func (u *NotificationRuleUpsertOne) UpdateDeletedAt() *NotificationRuleUpsertOne
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*NotificationRuleUpsertOne) UpdateDisabled ¶
func (u *NotificationRuleUpsertOne) UpdateDisabled() *NotificationRuleUpsertOne
UpdateDisabled sets the "disabled" field to the value that was provided on create.
func (*NotificationRuleUpsertOne) UpdateName ¶
func (u *NotificationRuleUpsertOne) UpdateName() *NotificationRuleUpsertOne
UpdateName sets the "name" field to the value that was provided on create.
func (*NotificationRuleUpsertOne) UpdateNewValues ¶
func (u *NotificationRuleUpsertOne) UpdateNewValues() *NotificationRuleUpsertOne
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.NotificationRule.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(notificationrule.FieldID)
}),
).
Exec(ctx)
func (*NotificationRuleUpsertOne) UpdateUpdatedAt ¶
func (u *NotificationRuleUpsertOne) UpdateUpdatedAt() *NotificationRuleUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type NotificationRules ¶
type NotificationRules []*NotificationRule
NotificationRules is a parsable slice of NotificationRule.
type OrderFunc ¶
OrderFunc applies an ordering on the sql selector. Deprecated: Use Asc/Desc functions or the package builders instead.
type QuerierFunc ¶
type QuerierFunc = ent.QuerierFunc
ent aliases to avoid import conflicts in user's code.
type QueryContext ¶
type QueryContext = ent.QueryContext
ent aliases to avoid import conflicts in user's code.
type RollbackFunc ¶
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 ¶
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 ¶
Rollbacker is the interface that wraps the Rollback method.
type TraverseFunc ¶
type TraverseFunc = ent.TraverseFunc
ent aliases to avoid import conflicts in user's code.
type Tx ¶
type Tx struct {
// BalanceSnapshot is the client for interacting with the BalanceSnapshot builders.
BalanceSnapshot *BalanceSnapshotClient
// BillingCustomerOverride is the client for interacting with the BillingCustomerOverride builders.
BillingCustomerOverride *BillingCustomerOverrideClient
// BillingInvoice is the client for interacting with the BillingInvoice builders.
BillingInvoice *BillingInvoiceClient
// BillingInvoiceItem is the client for interacting with the BillingInvoiceItem builders.
BillingInvoiceItem *BillingInvoiceItemClient
// BillingProfile is the client for interacting with the BillingProfile builders.
BillingProfile *BillingProfileClient
// BillingWorkflowConfig is the client for interacting with the BillingWorkflowConfig builders.
BillingWorkflowConfig *BillingWorkflowConfigClient
// Customer is the client for interacting with the Customer builders.
Customer *CustomerClient
// CustomerSubjects is the client for interacting with the CustomerSubjects builders.
CustomerSubjects *CustomerSubjectsClient
// Entitlement is the client for interacting with the Entitlement builders.
Entitlement *EntitlementClient
// Feature is the client for interacting with the Feature builders.
Feature *FeatureClient
// Grant is the client for interacting with the Grant builders.
Grant *GrantClient
// NotificationChannel is the client for interacting with the NotificationChannel builders.
NotificationChannel *NotificationChannelClient
// NotificationEvent is the client for interacting with the NotificationEvent builders.
NotificationEvent *NotificationEventClient
// NotificationEventDeliveryStatus is the client for interacting with the NotificationEventDeliveryStatus builders.
NotificationEventDeliveryStatus *NotificationEventDeliveryStatusClient
// NotificationRule is the client for interacting with the NotificationRule builders.
NotificationRule *NotificationRuleClient
// UsageReset is the client for interacting with the UsageReset builders.
UsageReset *UsageResetClient
// contains filtered or unexported fields
}
Tx is a transactional client that is created by calling Client.Tx().
func NewTxClientFromRawConfig ¶
func NewTxClientFromRawConfig(ctx context.Context, cfg entutils.RawEntConfig) *Tx
NewTxClientFromConfig creates a new transactional client from a (hijacked) configuration.
func TxFromContext ¶
TxFromContext returns a Tx stored inside a context, or nil if there isn't one.
func (*Tx) ExecContext ¶
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*Tx) OnRollback ¶
func (tx *Tx) OnRollback(f RollbackHook)
OnRollback adds a hook to call on rollback.
func (*Tx) QueryContext ¶
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
type UsageReset ¶
type UsageReset struct {
// ID of the ent.
ID string `json:"id,omitempty"`
// Namespace holds the value of the "namespace" field.
Namespace string `json:"namespace,omitempty"`
// CreatedAt holds the value of the "created_at" field.
CreatedAt time.Time `json:"created_at,omitempty"`
// UpdatedAt holds the value of the "updated_at" field.
UpdatedAt time.Time `json:"updated_at,omitempty"`
// DeletedAt holds the value of the "deleted_at" field.
DeletedAt *time.Time `json:"deleted_at,omitempty"`
// EntitlementID holds the value of the "entitlement_id" field.
EntitlementID string `json:"entitlement_id,omitempty"`
// ResetTime holds the value of the "reset_time" field.
ResetTime time.Time `json:"reset_time,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the UsageResetQuery when eager-loading is set.
Edges UsageResetEdges `json:"edges"`
// contains filtered or unexported fields
}
UsageReset is the model entity for the UsageReset schema.
func (*UsageReset) ExecContext ¶
func (c *UsageReset) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*UsageReset) QueryContext ¶
func (c *UsageReset) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*UsageReset) QueryEntitlement ¶
func (ur *UsageReset) QueryEntitlement() *EntitlementQuery
QueryEntitlement queries the "entitlement" edge of the UsageReset entity.
func (*UsageReset) String ¶
func (ur *UsageReset) String() string
String implements the fmt.Stringer.
func (*UsageReset) Unwrap ¶
func (ur *UsageReset) Unwrap() *UsageReset
Unwrap unwraps the UsageReset 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 (*UsageReset) Update ¶
func (ur *UsageReset) Update() *UsageResetUpdateOne
Update returns a builder for updating this UsageReset. Note that you need to call UsageReset.Unwrap() before calling this method if this UsageReset was returned from a transaction, and the transaction was committed or rolled back.
type UsageResetClient ¶
type UsageResetClient struct {
// contains filtered or unexported fields
}
UsageResetClient is a client for the UsageReset schema.
func NewUsageResetClient ¶
func NewUsageResetClient(c config) *UsageResetClient
NewUsageResetClient returns a client for the UsageReset from the given config.
func (*UsageResetClient) Create ¶
func (c *UsageResetClient) Create() *UsageResetCreate
Create returns a builder for creating a UsageReset entity.
func (*UsageResetClient) CreateBulk ¶
func (c *UsageResetClient) CreateBulk(builders ...*UsageResetCreate) *UsageResetCreateBulk
CreateBulk returns a builder for creating a bulk of UsageReset entities.
func (*UsageResetClient) Delete ¶
func (c *UsageResetClient) Delete() *UsageResetDelete
Delete returns a delete builder for UsageReset.
func (*UsageResetClient) DeleteOne ¶
func (c *UsageResetClient) DeleteOne(ur *UsageReset) *UsageResetDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*UsageResetClient) DeleteOneID ¶
func (c *UsageResetClient) DeleteOneID(id string) *UsageResetDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*UsageResetClient) ExecContext ¶
func (c *UsageResetClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*UsageResetClient) Get ¶
func (c *UsageResetClient) Get(ctx context.Context, id string) (*UsageReset, error)
Get returns a UsageReset entity by its id.
func (*UsageResetClient) GetX ¶
func (c *UsageResetClient) GetX(ctx context.Context, id string) *UsageReset
GetX is like Get, but panics if an error occurs.
func (*UsageResetClient) Hooks ¶
func (c *UsageResetClient) Hooks() []Hook
Hooks returns the client hooks.
func (*UsageResetClient) Intercept ¶
func (c *UsageResetClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `usagereset.Intercept(f(g(h())))`.
func (*UsageResetClient) Interceptors ¶
func (c *UsageResetClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*UsageResetClient) MapCreateBulk ¶
func (c *UsageResetClient) MapCreateBulk(slice any, setFunc func(*UsageResetCreate, int)) *UsageResetCreateBulk
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 (*UsageResetClient) Query ¶
func (c *UsageResetClient) Query() *UsageResetQuery
Query returns a query builder for UsageReset.
func (*UsageResetClient) QueryContext ¶
func (c *UsageResetClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*UsageResetClient) QueryEntitlement ¶
func (c *UsageResetClient) QueryEntitlement(ur *UsageReset) *EntitlementQuery
QueryEntitlement queries the entitlement edge of a UsageReset.
func (*UsageResetClient) Update ¶
func (c *UsageResetClient) Update() *UsageResetUpdate
Update returns an update builder for UsageReset.
func (*UsageResetClient) UpdateOne ¶
func (c *UsageResetClient) UpdateOne(ur *UsageReset) *UsageResetUpdateOne
UpdateOne returns an update builder for the given entity.
func (*UsageResetClient) UpdateOneID ¶
func (c *UsageResetClient) UpdateOneID(id string) *UsageResetUpdateOne
UpdateOneID returns an update builder for the given id.
func (*UsageResetClient) Use ¶
func (c *UsageResetClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `usagereset.Hooks(f(g(h())))`.
type UsageResetCreate ¶
type UsageResetCreate struct {
// contains filtered or unexported fields
}
UsageResetCreate is the builder for creating a UsageReset entity.
func (*UsageResetCreate) Exec ¶
func (urc *UsageResetCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*UsageResetCreate) ExecContext ¶
func (c *UsageResetCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*UsageResetCreate) ExecX ¶
func (urc *UsageResetCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UsageResetCreate) Mutation ¶
func (urc *UsageResetCreate) Mutation() *UsageResetMutation
Mutation returns the UsageResetMutation object of the builder.
func (*UsageResetCreate) OnConflict ¶
func (urc *UsageResetCreate) OnConflict(opts ...sql.ConflictOption) *UsageResetUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.UsageReset.Create().
SetNamespace(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.UsageResetUpsert) {
SetNamespace(v+v).
}).
Exec(ctx)
func (*UsageResetCreate) OnConflictColumns ¶
func (urc *UsageResetCreate) OnConflictColumns(columns ...string) *UsageResetUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.UsageReset.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*UsageResetCreate) QueryContext ¶
func (c *UsageResetCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*UsageResetCreate) Save ¶
func (urc *UsageResetCreate) Save(ctx context.Context) (*UsageReset, error)
Save creates the UsageReset in the database.
func (*UsageResetCreate) SaveX ¶
func (urc *UsageResetCreate) SaveX(ctx context.Context) *UsageReset
SaveX calls Save and panics if Save returns an error.
func (*UsageResetCreate) SetCreatedAt ¶
func (urc *UsageResetCreate) SetCreatedAt(t time.Time) *UsageResetCreate
SetCreatedAt sets the "created_at" field.
func (*UsageResetCreate) SetDeletedAt ¶
func (urc *UsageResetCreate) SetDeletedAt(t time.Time) *UsageResetCreate
SetDeletedAt sets the "deleted_at" field.
func (*UsageResetCreate) SetEntitlement ¶
func (urc *UsageResetCreate) SetEntitlement(e *Entitlement) *UsageResetCreate
SetEntitlement sets the "entitlement" edge to the Entitlement entity.
func (*UsageResetCreate) SetEntitlementID ¶
func (urc *UsageResetCreate) SetEntitlementID(s string) *UsageResetCreate
SetEntitlementID sets the "entitlement_id" field.
func (*UsageResetCreate) SetID ¶
func (urc *UsageResetCreate) SetID(s string) *UsageResetCreate
SetID sets the "id" field.
func (*UsageResetCreate) SetNamespace ¶
func (urc *UsageResetCreate) SetNamespace(s string) *UsageResetCreate
SetNamespace sets the "namespace" field.
func (*UsageResetCreate) SetNillableCreatedAt ¶
func (urc *UsageResetCreate) SetNillableCreatedAt(t *time.Time) *UsageResetCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*UsageResetCreate) SetNillableDeletedAt ¶
func (urc *UsageResetCreate) SetNillableDeletedAt(t *time.Time) *UsageResetCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*UsageResetCreate) SetNillableID ¶
func (urc *UsageResetCreate) SetNillableID(s *string) *UsageResetCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*UsageResetCreate) SetNillableUpdatedAt ¶
func (urc *UsageResetCreate) SetNillableUpdatedAt(t *time.Time) *UsageResetCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*UsageResetCreate) SetResetTime ¶
func (urc *UsageResetCreate) SetResetTime(t time.Time) *UsageResetCreate
SetResetTime sets the "reset_time" field.
func (*UsageResetCreate) SetUpdatedAt ¶
func (urc *UsageResetCreate) SetUpdatedAt(t time.Time) *UsageResetCreate
SetUpdatedAt sets the "updated_at" field.
type UsageResetCreateBulk ¶
type UsageResetCreateBulk struct {
// contains filtered or unexported fields
}
UsageResetCreateBulk is the builder for creating many UsageReset entities in bulk.
func (*UsageResetCreateBulk) Exec ¶
func (urcb *UsageResetCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*UsageResetCreateBulk) ExecContext ¶
func (c *UsageResetCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*UsageResetCreateBulk) ExecX ¶
func (urcb *UsageResetCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UsageResetCreateBulk) OnConflict ¶
func (urcb *UsageResetCreateBulk) OnConflict(opts ...sql.ConflictOption) *UsageResetUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.UsageReset.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.UsageResetUpsert) {
SetNamespace(v+v).
}).
Exec(ctx)
func (*UsageResetCreateBulk) OnConflictColumns ¶
func (urcb *UsageResetCreateBulk) OnConflictColumns(columns ...string) *UsageResetUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.UsageReset.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*UsageResetCreateBulk) QueryContext ¶
func (c *UsageResetCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*UsageResetCreateBulk) Save ¶
func (urcb *UsageResetCreateBulk) Save(ctx context.Context) ([]*UsageReset, error)
Save creates the UsageReset entities in the database.
func (*UsageResetCreateBulk) SaveX ¶
func (urcb *UsageResetCreateBulk) SaveX(ctx context.Context) []*UsageReset
SaveX is like Save, but panics if an error occurs.
type UsageResetDelete ¶
type UsageResetDelete struct {
// contains filtered or unexported fields
}
UsageResetDelete is the builder for deleting a UsageReset entity.
func (*UsageResetDelete) Exec ¶
func (urd *UsageResetDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*UsageResetDelete) ExecContext ¶
func (c *UsageResetDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*UsageResetDelete) ExecX ¶
func (urd *UsageResetDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*UsageResetDelete) QueryContext ¶
func (c *UsageResetDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*UsageResetDelete) Where ¶
func (urd *UsageResetDelete) Where(ps ...predicate.UsageReset) *UsageResetDelete
Where appends a list predicates to the UsageResetDelete builder.
type UsageResetDeleteOne ¶
type UsageResetDeleteOne struct {
// contains filtered or unexported fields
}
UsageResetDeleteOne is the builder for deleting a single UsageReset entity.
func (*UsageResetDeleteOne) Exec ¶
func (urdo *UsageResetDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*UsageResetDeleteOne) ExecX ¶
func (urdo *UsageResetDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UsageResetDeleteOne) Where ¶
func (urdo *UsageResetDeleteOne) Where(ps ...predicate.UsageReset) *UsageResetDeleteOne
Where appends a list predicates to the UsageResetDelete builder.
type UsageResetEdges ¶
type UsageResetEdges struct {
// Entitlement holds the value of the entitlement edge.
Entitlement *Entitlement `json:"entitlement,omitempty"`
// contains filtered or unexported fields
}
UsageResetEdges holds the relations/edges for other nodes in the graph.
func (UsageResetEdges) EntitlementOrErr ¶
func (e UsageResetEdges) EntitlementOrErr() (*Entitlement, error)
EntitlementOrErr returns the Entitlement value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type UsageResetGroupBy ¶
type UsageResetGroupBy struct {
// contains filtered or unexported fields
}
UsageResetGroupBy is the group-by builder for UsageReset entities.
func (*UsageResetGroupBy) Aggregate ¶
func (urgb *UsageResetGroupBy) Aggregate(fns ...AggregateFunc) *UsageResetGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*UsageResetGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*UsageResetGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*UsageResetGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*UsageResetGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*UsageResetGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*UsageResetGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*UsageResetGroupBy) Scan ¶
func (urgb *UsageResetGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*UsageResetGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type UsageResetMutation ¶
type UsageResetMutation struct {
// contains filtered or unexported fields
}
UsageResetMutation represents an operation that mutates the UsageReset nodes in the graph.
func (*UsageResetMutation) AddField ¶
func (m *UsageResetMutation) 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 (*UsageResetMutation) AddedEdges ¶
func (m *UsageResetMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*UsageResetMutation) AddedField ¶
func (m *UsageResetMutation) 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 (*UsageResetMutation) AddedFields ¶
func (m *UsageResetMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*UsageResetMutation) AddedIDs ¶
func (m *UsageResetMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*UsageResetMutation) ClearDeletedAt ¶
func (m *UsageResetMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*UsageResetMutation) ClearEdge ¶
func (m *UsageResetMutation) 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 (*UsageResetMutation) ClearEntitlement ¶
func (m *UsageResetMutation) ClearEntitlement()
ClearEntitlement clears the "entitlement" edge to the Entitlement entity.
func (*UsageResetMutation) ClearField ¶
func (m *UsageResetMutation) 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 (*UsageResetMutation) ClearedEdges ¶
func (m *UsageResetMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*UsageResetMutation) ClearedFields ¶
func (m *UsageResetMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (UsageResetMutation) Client ¶
func (m UsageResetMutation) 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 (*UsageResetMutation) CreatedAt ¶
func (m *UsageResetMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*UsageResetMutation) DeletedAt ¶
func (m *UsageResetMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*UsageResetMutation) DeletedAtCleared ¶
func (m *UsageResetMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*UsageResetMutation) EdgeCleared ¶
func (m *UsageResetMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*UsageResetMutation) EntitlementCleared ¶
func (m *UsageResetMutation) EntitlementCleared() bool
EntitlementCleared reports if the "entitlement" edge to the Entitlement entity was cleared.
func (*UsageResetMutation) EntitlementID ¶
func (m *UsageResetMutation) EntitlementID() (r string, exists bool)
EntitlementID returns the value of the "entitlement_id" field in the mutation.
func (*UsageResetMutation) EntitlementIDs ¶
func (m *UsageResetMutation) EntitlementIDs() (ids []string)
EntitlementIDs returns the "entitlement" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use EntitlementID instead. It exists only for internal usage by the builders.
func (*UsageResetMutation) ExecContext ¶
func (c *UsageResetMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*UsageResetMutation) Field ¶
func (m *UsageResetMutation) 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 (*UsageResetMutation) FieldCleared ¶
func (m *UsageResetMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*UsageResetMutation) Fields ¶
func (m *UsageResetMutation) 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 (*UsageResetMutation) ID ¶
func (m *UsageResetMutation) ID() (id string, 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 (*UsageResetMutation) IDs ¶
func (m *UsageResetMutation) IDs(ctx context.Context) ([]string, error)
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 (*UsageResetMutation) Namespace ¶
func (m *UsageResetMutation) Namespace() (r string, exists bool)
Namespace returns the value of the "namespace" field in the mutation.
func (*UsageResetMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the UsageReset entity. If the UsageReset 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 (*UsageResetMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the UsageReset entity. If the UsageReset 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 (*UsageResetMutation) OldEntitlementID ¶
func (m *UsageResetMutation) OldEntitlementID(ctx context.Context) (v string, err error)
OldEntitlementID returns the old "entitlement_id" field's value of the UsageReset entity. If the UsageReset 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 (*UsageResetMutation) OldField ¶
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 (*UsageResetMutation) OldNamespace ¶
func (m *UsageResetMutation) OldNamespace(ctx context.Context) (v string, err error)
OldNamespace returns the old "namespace" field's value of the UsageReset entity. If the UsageReset 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 (*UsageResetMutation) OldResetTime ¶
OldResetTime returns the old "reset_time" field's value of the UsageReset entity. If the UsageReset 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 (*UsageResetMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the UsageReset entity. If the UsageReset 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 (*UsageResetMutation) QueryContext ¶
func (c *UsageResetMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*UsageResetMutation) RemovedEdges ¶
func (m *UsageResetMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*UsageResetMutation) RemovedIDs ¶
func (m *UsageResetMutation) 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 (*UsageResetMutation) ResetCreatedAt ¶
func (m *UsageResetMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*UsageResetMutation) ResetDeletedAt ¶
func (m *UsageResetMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*UsageResetMutation) ResetEdge ¶
func (m *UsageResetMutation) 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 (*UsageResetMutation) ResetEntitlement ¶
func (m *UsageResetMutation) ResetEntitlement()
ResetEntitlement resets all changes to the "entitlement" edge.
func (*UsageResetMutation) ResetEntitlementID ¶
func (m *UsageResetMutation) ResetEntitlementID()
ResetEntitlementID resets all changes to the "entitlement_id" field.
func (*UsageResetMutation) ResetField ¶
func (m *UsageResetMutation) 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 (*UsageResetMutation) ResetNamespace ¶
func (m *UsageResetMutation) ResetNamespace()
ResetNamespace resets all changes to the "namespace" field.
func (*UsageResetMutation) ResetResetTime ¶
func (m *UsageResetMutation) ResetResetTime()
ResetResetTime resets all changes to the "reset_time" field.
func (*UsageResetMutation) ResetTime ¶
func (m *UsageResetMutation) ResetTime() (r time.Time, exists bool)
ResetTime returns the value of the "reset_time" field in the mutation.
func (*UsageResetMutation) ResetUpdatedAt ¶
func (m *UsageResetMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*UsageResetMutation) SetCreatedAt ¶
func (m *UsageResetMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*UsageResetMutation) SetDeletedAt ¶
func (m *UsageResetMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*UsageResetMutation) SetEntitlementID ¶
func (m *UsageResetMutation) SetEntitlementID(s string)
SetEntitlementID sets the "entitlement_id" field.
func (*UsageResetMutation) SetField ¶
func (m *UsageResetMutation) 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 (*UsageResetMutation) SetID ¶
func (m *UsageResetMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of UsageReset entities.
func (*UsageResetMutation) SetNamespace ¶
func (m *UsageResetMutation) SetNamespace(s string)
SetNamespace sets the "namespace" field.
func (*UsageResetMutation) SetOp ¶
func (m *UsageResetMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*UsageResetMutation) SetResetTime ¶
func (m *UsageResetMutation) SetResetTime(t time.Time)
SetResetTime sets the "reset_time" field.
func (*UsageResetMutation) SetUpdatedAt ¶
func (m *UsageResetMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (UsageResetMutation) Tx ¶
func (m UsageResetMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*UsageResetMutation) Type ¶
func (m *UsageResetMutation) Type() string
Type returns the node type of this mutation (UsageReset).
func (*UsageResetMutation) UpdatedAt ¶
func (m *UsageResetMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*UsageResetMutation) Where ¶
func (m *UsageResetMutation) Where(ps ...predicate.UsageReset)
Where appends a list predicates to the UsageResetMutation builder.
func (*UsageResetMutation) WhereP ¶
func (m *UsageResetMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the UsageResetMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type UsageResetQuery ¶
type UsageResetQuery struct {
// contains filtered or unexported fields
}
UsageResetQuery is the builder for querying UsageReset entities.
func (*UsageResetQuery) Aggregate ¶
func (urq *UsageResetQuery) Aggregate(fns ...AggregateFunc) *UsageResetSelect
Aggregate returns a UsageResetSelect configured with the given aggregations.
func (*UsageResetQuery) All ¶
func (urq *UsageResetQuery) All(ctx context.Context) ([]*UsageReset, error)
All executes the query and returns a list of UsageResets.
func (*UsageResetQuery) AllX ¶
func (urq *UsageResetQuery) AllX(ctx context.Context) []*UsageReset
AllX is like All, but panics if an error occurs.
func (*UsageResetQuery) Clone ¶
func (urq *UsageResetQuery) Clone() *UsageResetQuery
Clone returns a duplicate of the UsageResetQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*UsageResetQuery) Count ¶
func (urq *UsageResetQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*UsageResetQuery) CountX ¶
func (urq *UsageResetQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*UsageResetQuery) ExecContext ¶
func (c *UsageResetQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*UsageResetQuery) Exist ¶
func (urq *UsageResetQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*UsageResetQuery) ExistX ¶
func (urq *UsageResetQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*UsageResetQuery) First ¶
func (urq *UsageResetQuery) First(ctx context.Context) (*UsageReset, error)
First returns the first UsageReset entity from the query. Returns a *NotFoundError when no UsageReset was found.
func (*UsageResetQuery) FirstID ¶
func (urq *UsageResetQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first UsageReset ID from the query. Returns a *NotFoundError when no UsageReset ID was found.
func (*UsageResetQuery) FirstIDX ¶
func (urq *UsageResetQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*UsageResetQuery) FirstX ¶
func (urq *UsageResetQuery) FirstX(ctx context.Context) *UsageReset
FirstX is like First, but panics if an error occurs.
func (*UsageResetQuery) ForShare ¶
func (urq *UsageResetQuery) ForShare(opts ...sql.LockOption) *UsageResetQuery
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 (*UsageResetQuery) ForUpdate ¶
func (urq *UsageResetQuery) ForUpdate(opts ...sql.LockOption) *UsageResetQuery
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 (*UsageResetQuery) GroupBy ¶
func (urq *UsageResetQuery) GroupBy(field string, fields ...string) *UsageResetGroupBy
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 {
Namespace string `json:"namespace,omitempty"`
Count int `json:"count,omitempty"`
}
client.UsageReset.Query().
GroupBy(usagereset.FieldNamespace).
Aggregate(db.Count()).
Scan(ctx, &v)
func (*UsageResetQuery) IDs ¶
func (urq *UsageResetQuery) IDs(ctx context.Context) (ids []string, err error)
IDs executes the query and returns a list of UsageReset IDs.
func (*UsageResetQuery) IDsX ¶
func (urq *UsageResetQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*UsageResetQuery) Limit ¶
func (urq *UsageResetQuery) Limit(limit int) *UsageResetQuery
Limit the number of records to be returned by this query.
func (*UsageResetQuery) Offset ¶
func (urq *UsageResetQuery) Offset(offset int) *UsageResetQuery
Offset to start from.
func (*UsageResetQuery) Only ¶
func (urq *UsageResetQuery) Only(ctx context.Context) (*UsageReset, error)
Only returns a single UsageReset entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one UsageReset entity is found. Returns a *NotFoundError when no UsageReset entities are found.
func (*UsageResetQuery) OnlyID ¶
func (urq *UsageResetQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only UsageReset ID in the query. Returns a *NotSingularError when more than one UsageReset ID is found. Returns a *NotFoundError when no entities are found.
func (*UsageResetQuery) OnlyIDX ¶
func (urq *UsageResetQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*UsageResetQuery) OnlyX ¶
func (urq *UsageResetQuery) OnlyX(ctx context.Context) *UsageReset
OnlyX is like Only, but panics if an error occurs.
func (*UsageResetQuery) Order ¶
func (urq *UsageResetQuery) Order(o ...usagereset.OrderOption) *UsageResetQuery
Order specifies how the records should be ordered.
func (*UsageResetQuery) Paginate ¶
func (ur *UsageResetQuery) Paginate(ctx context.Context, page pagination.Page) (pagination.PagedResponse[*UsageReset], error)
Paginate runs the query and returns a paginated response. If page is its 0 value then it will return all the items and populate the response page accordingly.
func (*UsageResetQuery) QueryContext ¶
func (c *UsageResetQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*UsageResetQuery) QueryEntitlement ¶
func (urq *UsageResetQuery) QueryEntitlement() *EntitlementQuery
QueryEntitlement chains the current query on the "entitlement" edge.
func (*UsageResetQuery) Select ¶
func (urq *UsageResetQuery) Select(fields ...string) *UsageResetSelect
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 {
Namespace string `json:"namespace,omitempty"`
}
client.UsageReset.Query().
Select(usagereset.FieldNamespace).
Scan(ctx, &v)
func (*UsageResetQuery) Unique ¶
func (urq *UsageResetQuery) Unique(unique bool) *UsageResetQuery
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 (*UsageResetQuery) Where ¶
func (urq *UsageResetQuery) Where(ps ...predicate.UsageReset) *UsageResetQuery
Where adds a new predicate for the UsageResetQuery builder.
func (*UsageResetQuery) WithEntitlement ¶
func (urq *UsageResetQuery) WithEntitlement(opts ...func(*EntitlementQuery)) *UsageResetQuery
WithEntitlement tells the query-builder to eager-load the nodes that are connected to the "entitlement" edge. The optional arguments are used to configure the query builder of the edge.
type UsageResetSelect ¶
type UsageResetSelect struct {
*UsageResetQuery
// contains filtered or unexported fields
}
UsageResetSelect is the builder for selecting fields of UsageReset entities.
func (*UsageResetSelect) Aggregate ¶
func (urs *UsageResetSelect) Aggregate(fns ...AggregateFunc) *UsageResetSelect
Aggregate adds the given aggregation functions to the selector query.
func (*UsageResetSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*UsageResetSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (UsageResetSelect) ExecContext ¶
func (c UsageResetSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*UsageResetSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*UsageResetSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*UsageResetSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*UsageResetSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (UsageResetSelect) QueryContext ¶
func (c UsageResetSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*UsageResetSelect) Scan ¶
func (urs *UsageResetSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*UsageResetSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type UsageResetUpdate ¶
type UsageResetUpdate struct {
// contains filtered or unexported fields
}
UsageResetUpdate is the builder for updating UsageReset entities.
func (*UsageResetUpdate) ClearDeletedAt ¶
func (uru *UsageResetUpdate) ClearDeletedAt() *UsageResetUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*UsageResetUpdate) Exec ¶
func (uru *UsageResetUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*UsageResetUpdate) ExecContext ¶
func (c *UsageResetUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*UsageResetUpdate) ExecX ¶
func (uru *UsageResetUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UsageResetUpdate) Mutation ¶
func (uru *UsageResetUpdate) Mutation() *UsageResetMutation
Mutation returns the UsageResetMutation object of the builder.
func (*UsageResetUpdate) QueryContext ¶
func (c *UsageResetUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*UsageResetUpdate) Save ¶
func (uru *UsageResetUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*UsageResetUpdate) SaveX ¶
func (uru *UsageResetUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*UsageResetUpdate) SetDeletedAt ¶
func (uru *UsageResetUpdate) SetDeletedAt(t time.Time) *UsageResetUpdate
SetDeletedAt sets the "deleted_at" field.
func (*UsageResetUpdate) SetNillableDeletedAt ¶
func (uru *UsageResetUpdate) SetNillableDeletedAt(t *time.Time) *UsageResetUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*UsageResetUpdate) SetOrClearDeletedAt ¶
func (u *UsageResetUpdate) SetOrClearDeletedAt(value *time.Time) *UsageResetUpdate
func (*UsageResetUpdate) SetUpdatedAt ¶
func (uru *UsageResetUpdate) SetUpdatedAt(t time.Time) *UsageResetUpdate
SetUpdatedAt sets the "updated_at" field.
func (*UsageResetUpdate) Where ¶
func (uru *UsageResetUpdate) Where(ps ...predicate.UsageReset) *UsageResetUpdate
Where appends a list predicates to the UsageResetUpdate builder.
type UsageResetUpdateOne ¶
type UsageResetUpdateOne struct {
// contains filtered or unexported fields
}
UsageResetUpdateOne is the builder for updating a single UsageReset entity.
func (*UsageResetUpdateOne) ClearDeletedAt ¶
func (uruo *UsageResetUpdateOne) ClearDeletedAt() *UsageResetUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*UsageResetUpdateOne) Exec ¶
func (uruo *UsageResetUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*UsageResetUpdateOne) ExecContext ¶
func (c *UsageResetUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
ExecContext allows calling the underlying ExecContext method of the driver if it is supported by it. See, database/sql#DB.ExecContext for more information.
func (*UsageResetUpdateOne) ExecX ¶
func (uruo *UsageResetUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UsageResetUpdateOne) Mutation ¶
func (uruo *UsageResetUpdateOne) Mutation() *UsageResetMutation
Mutation returns the UsageResetMutation object of the builder.
func (*UsageResetUpdateOne) QueryContext ¶
func (c *UsageResetUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*UsageResetUpdateOne) Save ¶
func (uruo *UsageResetUpdateOne) Save(ctx context.Context) (*UsageReset, error)
Save executes the query and returns the updated UsageReset entity.
func (*UsageResetUpdateOne) SaveX ¶
func (uruo *UsageResetUpdateOne) SaveX(ctx context.Context) *UsageReset
SaveX is like Save, but panics if an error occurs.
func (*UsageResetUpdateOne) Select ¶
func (uruo *UsageResetUpdateOne) Select(field string, fields ...string) *UsageResetUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*UsageResetUpdateOne) SetDeletedAt ¶
func (uruo *UsageResetUpdateOne) SetDeletedAt(t time.Time) *UsageResetUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*UsageResetUpdateOne) SetNillableDeletedAt ¶
func (uruo *UsageResetUpdateOne) SetNillableDeletedAt(t *time.Time) *UsageResetUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*UsageResetUpdateOne) SetOrClearDeletedAt ¶
func (u *UsageResetUpdateOne) SetOrClearDeletedAt(value *time.Time) *UsageResetUpdateOne
func (*UsageResetUpdateOne) SetUpdatedAt ¶
func (uruo *UsageResetUpdateOne) SetUpdatedAt(t time.Time) *UsageResetUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*UsageResetUpdateOne) Where ¶
func (uruo *UsageResetUpdateOne) Where(ps ...predicate.UsageReset) *UsageResetUpdateOne
Where appends a list predicates to the UsageResetUpdate builder.
type UsageResetUpsert ¶
UsageResetUpsert is the "OnConflict" setter.
func (*UsageResetUpsert) ClearDeletedAt ¶
func (u *UsageResetUpsert) ClearDeletedAt() *UsageResetUpsert
ClearDeletedAt clears the value of the "deleted_at" field.
func (*UsageResetUpsert) SetDeletedAt ¶
func (u *UsageResetUpsert) SetDeletedAt(v time.Time) *UsageResetUpsert
SetDeletedAt sets the "deleted_at" field.
func (*UsageResetUpsert) SetUpdatedAt ¶
func (u *UsageResetUpsert) SetUpdatedAt(v time.Time) *UsageResetUpsert
SetUpdatedAt sets the "updated_at" field.
func (*UsageResetUpsert) UpdateDeletedAt ¶
func (u *UsageResetUpsert) UpdateDeletedAt() *UsageResetUpsert
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*UsageResetUpsert) UpdateUpdatedAt ¶
func (u *UsageResetUpsert) UpdateUpdatedAt() *UsageResetUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type UsageResetUpsertBulk ¶
type UsageResetUpsertBulk struct {
// contains filtered or unexported fields
}
UsageResetUpsertBulk is the builder for "upsert"-ing a bulk of UsageReset nodes.
func (*UsageResetUpsertBulk) ClearDeletedAt ¶
func (u *UsageResetUpsertBulk) ClearDeletedAt() *UsageResetUpsertBulk
ClearDeletedAt clears the value of the "deleted_at" field.
func (*UsageResetUpsertBulk) DoNothing ¶
func (u *UsageResetUpsertBulk) DoNothing() *UsageResetUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*UsageResetUpsertBulk) Exec ¶
func (u *UsageResetUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*UsageResetUpsertBulk) ExecX ¶
func (u *UsageResetUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UsageResetUpsertBulk) Ignore ¶
func (u *UsageResetUpsertBulk) Ignore() *UsageResetUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.UsageReset.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*UsageResetUpsertBulk) SetDeletedAt ¶
func (u *UsageResetUpsertBulk) SetDeletedAt(v time.Time) *UsageResetUpsertBulk
SetDeletedAt sets the "deleted_at" field.
func (*UsageResetUpsertBulk) SetUpdatedAt ¶
func (u *UsageResetUpsertBulk) SetUpdatedAt(v time.Time) *UsageResetUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*UsageResetUpsertBulk) Update ¶
func (u *UsageResetUpsertBulk) Update(set func(*UsageResetUpsert)) *UsageResetUpsertBulk
Update allows overriding fields `UPDATE` values. See the UsageResetCreateBulk.OnConflict documentation for more info.
func (*UsageResetUpsertBulk) UpdateDeletedAt ¶
func (u *UsageResetUpsertBulk) UpdateDeletedAt() *UsageResetUpsertBulk
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*UsageResetUpsertBulk) UpdateNewValues ¶
func (u *UsageResetUpsertBulk) UpdateNewValues() *UsageResetUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.UsageReset.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(usagereset.FieldID)
}),
).
Exec(ctx)
func (*UsageResetUpsertBulk) UpdateUpdatedAt ¶
func (u *UsageResetUpsertBulk) UpdateUpdatedAt() *UsageResetUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type UsageResetUpsertOne ¶
type UsageResetUpsertOne struct {
// contains filtered or unexported fields
}
UsageResetUpsertOne is the builder for "upsert"-ing
one UsageReset node.
func (*UsageResetUpsertOne) ClearDeletedAt ¶
func (u *UsageResetUpsertOne) ClearDeletedAt() *UsageResetUpsertOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*UsageResetUpsertOne) DoNothing ¶
func (u *UsageResetUpsertOne) DoNothing() *UsageResetUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*UsageResetUpsertOne) Exec ¶
func (u *UsageResetUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*UsageResetUpsertOne) ExecX ¶
func (u *UsageResetUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UsageResetUpsertOne) ID ¶
func (u *UsageResetUpsertOne) ID(ctx context.Context) (id string, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*UsageResetUpsertOne) IDX ¶
func (u *UsageResetUpsertOne) IDX(ctx context.Context) string
IDX is like ID, but panics if an error occurs.
func (*UsageResetUpsertOne) Ignore ¶
func (u *UsageResetUpsertOne) Ignore() *UsageResetUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.UsageReset.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*UsageResetUpsertOne) SetDeletedAt ¶
func (u *UsageResetUpsertOne) SetDeletedAt(v time.Time) *UsageResetUpsertOne
SetDeletedAt sets the "deleted_at" field.
func (*UsageResetUpsertOne) SetUpdatedAt ¶
func (u *UsageResetUpsertOne) SetUpdatedAt(v time.Time) *UsageResetUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*UsageResetUpsertOne) Update ¶
func (u *UsageResetUpsertOne) Update(set func(*UsageResetUpsert)) *UsageResetUpsertOne
Update allows overriding fields `UPDATE` values. See the UsageResetCreate.OnConflict documentation for more info.
func (*UsageResetUpsertOne) UpdateDeletedAt ¶
func (u *UsageResetUpsertOne) UpdateDeletedAt() *UsageResetUpsertOne
UpdateDeletedAt sets the "deleted_at" field to the value that was provided on create.
func (*UsageResetUpsertOne) UpdateNewValues ¶
func (u *UsageResetUpsertOne) UpdateNewValues() *UsageResetUpsertOne
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.UsageReset.Create().
OnConflict(
sql.ResolveWithNewValues(),
sql.ResolveWith(func(u *sql.UpdateSet) {
u.SetIgnore(usagereset.FieldID)
}),
).
Exec(ctx)
func (*UsageResetUpsertOne) UpdateUpdatedAt ¶
func (u *UsageResetUpsertOne) UpdateUpdatedAt() *UsageResetUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type ValidationError ¶
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 ¶
func (e *ValidationError) Error() string
Error implements the error interface.
func (*ValidationError) Unwrap ¶
func (e *ValidationError) Unwrap() error
Unwrap implements the errors.Wrapper interface.
Source Files
¶
- balancesnapshot.go
- balancesnapshot_create.go
- balancesnapshot_delete.go
- balancesnapshot_query.go
- balancesnapshot_update.go
- billingcustomeroverride.go
- billingcustomeroverride_create.go
- billingcustomeroverride_delete.go
- billingcustomeroverride_query.go
- billingcustomeroverride_update.go
- billinginvoice.go
- billinginvoice_create.go
- billinginvoice_delete.go
- billinginvoice_query.go
- billinginvoice_update.go
- billinginvoiceitem.go
- billinginvoiceitem_create.go
- billinginvoiceitem_delete.go
- billinginvoiceitem_query.go
- billinginvoiceitem_update.go
- billingprofile.go
- billingprofile_create.go
- billingprofile_delete.go
- billingprofile_query.go
- billingprofile_update.go
- billingworkflowconfig.go
- billingworkflowconfig_create.go
- billingworkflowconfig_delete.go
- billingworkflowconfig_query.go
- billingworkflowconfig_update.go
- client.go
- customer.go
- customer_create.go
- customer_delete.go
- customer_query.go
- customer_update.go
- customersubjects.go
- customersubjects_create.go
- customersubjects_delete.go
- customersubjects_query.go
- customersubjects_update.go
- ent.go
- entitlement.go
- entitlement_create.go
- entitlement_delete.go
- entitlement_query.go
- entitlement_update.go
- expose.go
- feature.go
- feature_create.go
- feature_delete.go
- feature_query.go
- feature_update.go
- grant.go
- grant_create.go
- grant_delete.go
- grant_query.go
- grant_update.go
- mutation.go
- notificationchannel.go
- notificationchannel_create.go
- notificationchannel_delete.go
- notificationchannel_query.go
- notificationchannel_update.go
- notificationevent.go
- notificationevent_create.go
- notificationevent_delete.go
- notificationevent_query.go
- notificationevent_update.go
- notificationeventdeliverystatus.go
- notificationeventdeliverystatus_create.go
- notificationeventdeliverystatus_delete.go
- notificationeventdeliverystatus_query.go
- notificationeventdeliverystatus_update.go
- notificationrule.go
- notificationrule_create.go
- notificationrule_delete.go
- notificationrule_query.go
- notificationrule_update.go
- paginate.go
- runtime.go
- setorclear.go
- tx.go
- usagereset.go
- usagereset_create.go
- usagereset_delete.go
- usagereset_query.go
- usagereset_update.go