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 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) 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 DeviceDuration
- func (c *DeviceDuration) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *DeviceDuration) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dd *DeviceDuration) String() string
- func (dd *DeviceDuration) Unwrap() *DeviceDuration
- func (dd *DeviceDuration) Update() *DeviceDurationUpdateOne
- func (dd *DeviceDuration) Value(name string) (ent.Value, error)
- type DeviceDurationClient
- func (c *DeviceDurationClient) Create() *DeviceDurationCreate
- func (c *DeviceDurationClient) CreateBulk(builders ...*DeviceDurationCreate) *DeviceDurationCreateBulk
- func (c *DeviceDurationClient) Delete() *DeviceDurationDelete
- func (c *DeviceDurationClient) DeleteOne(dd *DeviceDuration) *DeviceDurationDeleteOne
- func (c *DeviceDurationClient) DeleteOneID(id uint64) *DeviceDurationDeleteOne
- func (c *DeviceDurationClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *DeviceDurationClient) Get(ctx context.Context, id uint64) (*DeviceDuration, error)
- func (c *DeviceDurationClient) GetX(ctx context.Context, id uint64) *DeviceDuration
- func (c *DeviceDurationClient) Hooks() []Hook
- func (c *DeviceDurationClient) Intercept(interceptors ...Interceptor)
- func (c *DeviceDurationClient) Interceptors() []Interceptor
- func (c *DeviceDurationClient) MapCreateBulk(slice any, setFunc func(*DeviceDurationCreate, int)) *DeviceDurationCreateBulk
- func (c *DeviceDurationClient) Query() *DeviceDurationQuery
- func (c *DeviceDurationClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *DeviceDurationClient) Update() *DeviceDurationUpdate
- func (c *DeviceDurationClient) UpdateOne(dd *DeviceDuration) *DeviceDurationUpdateOne
- func (c *DeviceDurationClient) UpdateOneID(id uint64) *DeviceDurationUpdateOne
- func (c *DeviceDurationClient) Use(hooks ...Hook)
- type DeviceDurationCreate
- func (ddc *DeviceDurationCreate) Exec(ctx context.Context) error
- func (c *DeviceDurationCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ddc *DeviceDurationCreate) ExecX(ctx context.Context)
- func (ddc *DeviceDurationCreate) Mutation() *DeviceDurationMutation
- func (ddc *DeviceDurationCreate) OnConflict(opts ...sql.ConflictOption) *DeviceDurationUpsertOne
- func (ddc *DeviceDurationCreate) OnConflictColumns(columns ...string) *DeviceDurationUpsertOne
- func (c *DeviceDurationCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ddc *DeviceDurationCreate) Save(ctx context.Context) (*DeviceDuration, error)
- func (ddc *DeviceDurationCreate) SaveX(ctx context.Context) *DeviceDuration
- func (ddc *DeviceDurationCreate) SetCreatedAt(t time.Time) *DeviceDurationCreate
- func (ddc *DeviceDurationCreate) SetDate(s string) *DeviceDurationCreate
- func (ddc *DeviceDurationCreate) SetDayJson(s string) *DeviceDurationCreate
- func (ddc *DeviceDurationCreate) SetDeviceName(s string) *DeviceDurationCreate
- func (ddc *DeviceDurationCreate) SetEbutton(i int32) *DeviceDurationCreate
- func (ddc *DeviceDurationCreate) SetID(u uint64) *DeviceDurationCreate
- func (ddc *DeviceDurationCreate) SetIotID(s string) *DeviceDurationCreate
- func (ddc *DeviceDurationCreate) SetNillableCreatedAt(t *time.Time) *DeviceDurationCreate
- func (ddc *DeviceDurationCreate) SetNillableDate(s *string) *DeviceDurationCreate
- func (ddc *DeviceDurationCreate) SetNillableDayJson(s *string) *DeviceDurationCreate
- func (ddc *DeviceDurationCreate) SetNillableEbutton(i *int32) *DeviceDurationCreate
- func (ddc *DeviceDurationCreate) SetNillablePreparation(i *int32) *DeviceDurationCreate
- func (ddc *DeviceDurationCreate) SetNillableSort(u *uint32) *DeviceDurationCreate
- func (ddc *DeviceDurationCreate) SetNillableStandBy(i *int32) *DeviceDurationCreate
- func (ddc *DeviceDurationCreate) SetNillableStatus(u *uint8) *DeviceDurationCreate
- func (ddc *DeviceDurationCreate) SetNillableUpdatedAt(t *time.Time) *DeviceDurationCreate
- func (ddc *DeviceDurationCreate) SetNillableWaiting(i *int32) *DeviceDurationCreate
- func (ddc *DeviceDurationCreate) SetNillableWashing(i *int32) *DeviceDurationCreate
- func (ddc *DeviceDurationCreate) SetNillableWashingCold(i *int32) *DeviceDurationCreate
- func (dd *DeviceDurationCreate) SetNotNilDate(value *string) *DeviceDurationCreate
- func (dd *DeviceDurationCreate) SetNotNilDayJson(value *string) *DeviceDurationCreate
- func (dd *DeviceDurationCreate) SetNotNilDeviceName(value *string) *DeviceDurationCreate
- func (dd *DeviceDurationCreate) SetNotNilEbutton(value *int32) *DeviceDurationCreate
- func (dd *DeviceDurationCreate) SetNotNilIotID(value *string) *DeviceDurationCreate
- func (dd *DeviceDurationCreate) SetNotNilPreparation(value *int32) *DeviceDurationCreate
- func (dd *DeviceDurationCreate) SetNotNilProductKey(value *string) *DeviceDurationCreate
- func (dd *DeviceDurationCreate) SetNotNilSort(value *uint32) *DeviceDurationCreate
- func (dd *DeviceDurationCreate) SetNotNilStandBy(value *int32) *DeviceDurationCreate
- func (dd *DeviceDurationCreate) SetNotNilStatus(value *uint8) *DeviceDurationCreate
- func (dd *DeviceDurationCreate) SetNotNilUpdatedAt(value *time.Time) *DeviceDurationCreate
- func (dd *DeviceDurationCreate) SetNotNilWaiting(value *int32) *DeviceDurationCreate
- func (dd *DeviceDurationCreate) SetNotNilWashing(value *int32) *DeviceDurationCreate
- func (dd *DeviceDurationCreate) SetNotNilWashingCold(value *int32) *DeviceDurationCreate
- func (ddc *DeviceDurationCreate) SetPreparation(i int32) *DeviceDurationCreate
- func (ddc *DeviceDurationCreate) SetProductKey(s string) *DeviceDurationCreate
- func (ddc *DeviceDurationCreate) SetSort(u uint32) *DeviceDurationCreate
- func (ddc *DeviceDurationCreate) SetStandBy(i int32) *DeviceDurationCreate
- func (ddc *DeviceDurationCreate) SetStatus(u uint8) *DeviceDurationCreate
- func (ddc *DeviceDurationCreate) SetUpdatedAt(t time.Time) *DeviceDurationCreate
- func (ddc *DeviceDurationCreate) SetWaiting(i int32) *DeviceDurationCreate
- func (ddc *DeviceDurationCreate) SetWashing(i int32) *DeviceDurationCreate
- func (ddc *DeviceDurationCreate) SetWashingCold(i int32) *DeviceDurationCreate
- func (ddc *DeviceDurationCreate) TableName(s string) *DeviceDurationCreate
- type DeviceDurationCreateBulk
- func (ddcb *DeviceDurationCreateBulk) Exec(ctx context.Context) error
- func (c *DeviceDurationCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ddcb *DeviceDurationCreateBulk) ExecX(ctx context.Context)
- func (ddcb *DeviceDurationCreateBulk) OnConflict(opts ...sql.ConflictOption) *DeviceDurationUpsertBulk
- func (ddcb *DeviceDurationCreateBulk) OnConflictColumns(columns ...string) *DeviceDurationUpsertBulk
- func (c *DeviceDurationCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ddcb *DeviceDurationCreateBulk) Save(ctx context.Context) ([]*DeviceDuration, error)
- func (ddcb *DeviceDurationCreateBulk) SaveX(ctx context.Context) []*DeviceDuration
- type DeviceDurationDelete
- func (ddd *DeviceDurationDelete) Exec(ctx context.Context) (int, error)
- func (c *DeviceDurationDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ddd *DeviceDurationDelete) ExecX(ctx context.Context) int
- func (c *DeviceDurationDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ddd *DeviceDurationDelete) Where(ps ...predicate.DeviceDuration) *DeviceDurationDelete
- type DeviceDurationDeleteOne
- type DeviceDurationElephant
- func (c *DeviceDurationElephant) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *DeviceDurationElephant) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dde *DeviceDurationElephant) String() string
- func (dde *DeviceDurationElephant) Unwrap() *DeviceDurationElephant
- func (dde *DeviceDurationElephant) Update() *DeviceDurationElephantUpdateOne
- func (dde *DeviceDurationElephant) Value(name string) (ent.Value, error)
- type DeviceDurationElephantClient
- func (c *DeviceDurationElephantClient) Create() *DeviceDurationElephantCreate
- func (c *DeviceDurationElephantClient) CreateBulk(builders ...*DeviceDurationElephantCreate) *DeviceDurationElephantCreateBulk
- func (c *DeviceDurationElephantClient) Delete() *DeviceDurationElephantDelete
- func (c *DeviceDurationElephantClient) DeleteOne(dde *DeviceDurationElephant) *DeviceDurationElephantDeleteOne
- func (c *DeviceDurationElephantClient) DeleteOneID(id uint64) *DeviceDurationElephantDeleteOne
- func (c *DeviceDurationElephantClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *DeviceDurationElephantClient) Get(ctx context.Context, id uint64) (*DeviceDurationElephant, error)
- func (c *DeviceDurationElephantClient) GetX(ctx context.Context, id uint64) *DeviceDurationElephant
- func (c *DeviceDurationElephantClient) Hooks() []Hook
- func (c *DeviceDurationElephantClient) Intercept(interceptors ...Interceptor)
- func (c *DeviceDurationElephantClient) Interceptors() []Interceptor
- func (c *DeviceDurationElephantClient) MapCreateBulk(slice any, setFunc func(*DeviceDurationElephantCreate, int)) *DeviceDurationElephantCreateBulk
- func (c *DeviceDurationElephantClient) Query() *DeviceDurationElephantQuery
- func (c *DeviceDurationElephantClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *DeviceDurationElephantClient) Update() *DeviceDurationElephantUpdate
- func (c *DeviceDurationElephantClient) UpdateOne(dde *DeviceDurationElephant) *DeviceDurationElephantUpdateOne
- func (c *DeviceDurationElephantClient) UpdateOneID(id uint64) *DeviceDurationElephantUpdateOne
- func (c *DeviceDurationElephantClient) Use(hooks ...Hook)
- type DeviceDurationElephantCreate
- func (ddec *DeviceDurationElephantCreate) Exec(ctx context.Context) error
- func (c *DeviceDurationElephantCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ddec *DeviceDurationElephantCreate) ExecX(ctx context.Context)
- func (ddec *DeviceDurationElephantCreate) Mutation() *DeviceDurationElephantMutation
- func (ddec *DeviceDurationElephantCreate) OnConflict(opts ...sql.ConflictOption) *DeviceDurationElephantUpsertOne
- func (ddec *DeviceDurationElephantCreate) OnConflictColumns(columns ...string) *DeviceDurationElephantUpsertOne
- func (c *DeviceDurationElephantCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ddec *DeviceDurationElephantCreate) Save(ctx context.Context) (*DeviceDurationElephant, error)
- func (ddec *DeviceDurationElephantCreate) SaveX(ctx context.Context) *DeviceDurationElephant
- func (ddec *DeviceDurationElephantCreate) SetConnected(i int32) *DeviceDurationElephantCreate
- func (ddec *DeviceDurationElephantCreate) SetCreatedAt(t time.Time) *DeviceDurationElephantCreate
- func (ddec *DeviceDurationElephantCreate) SetDate(s string) *DeviceDurationElephantCreate
- func (ddec *DeviceDurationElephantCreate) SetDayJson(s string) *DeviceDurationElephantCreate
- func (ddec *DeviceDurationElephantCreate) SetDeviceName(s string) *DeviceDurationElephantCreate
- func (ddec *DeviceDurationElephantCreate) SetEbutton(i int32) *DeviceDurationElephantCreate
- func (ddec *DeviceDurationElephantCreate) SetID(u uint64) *DeviceDurationElephantCreate
- func (ddec *DeviceDurationElephantCreate) SetIotID(s string) *DeviceDurationElephantCreate
- func (ddec *DeviceDurationElephantCreate) SetNillableConnected(i *int32) *DeviceDurationElephantCreate
- func (ddec *DeviceDurationElephantCreate) SetNillableCreatedAt(t *time.Time) *DeviceDurationElephantCreate
- func (ddec *DeviceDurationElephantCreate) SetNillableDate(s *string) *DeviceDurationElephantCreate
- func (ddec *DeviceDurationElephantCreate) SetNillableDayJson(s *string) *DeviceDurationElephantCreate
- func (ddec *DeviceDurationElephantCreate) SetNillableEbutton(i *int32) *DeviceDurationElephantCreate
- func (ddec *DeviceDurationElephantCreate) SetNillableRunning(i *int32) *DeviceDurationElephantCreate
- func (ddec *DeviceDurationElephantCreate) SetNillableSort(u *uint32) *DeviceDurationElephantCreate
- func (ddec *DeviceDurationElephantCreate) SetNillableStatus(u *uint8) *DeviceDurationElephantCreate
- func (ddec *DeviceDurationElephantCreate) SetNillableUpdatedAt(t *time.Time) *DeviceDurationElephantCreate
- func (dde *DeviceDurationElephantCreate) SetNotNilConnected(value *int32) *DeviceDurationElephantCreate
- func (dde *DeviceDurationElephantCreate) SetNotNilDate(value *string) *DeviceDurationElephantCreate
- func (dde *DeviceDurationElephantCreate) SetNotNilDayJson(value *string) *DeviceDurationElephantCreate
- func (dde *DeviceDurationElephantCreate) SetNotNilDeviceName(value *string) *DeviceDurationElephantCreate
- func (dde *DeviceDurationElephantCreate) SetNotNilEbutton(value *int32) *DeviceDurationElephantCreate
- func (dde *DeviceDurationElephantCreate) SetNotNilIotID(value *string) *DeviceDurationElephantCreate
- func (dde *DeviceDurationElephantCreate) SetNotNilProductKey(value *string) *DeviceDurationElephantCreate
- func (dde *DeviceDurationElephantCreate) SetNotNilRunning(value *int32) *DeviceDurationElephantCreate
- func (dde *DeviceDurationElephantCreate) SetNotNilSort(value *uint32) *DeviceDurationElephantCreate
- func (dde *DeviceDurationElephantCreate) SetNotNilStatus(value *uint8) *DeviceDurationElephantCreate
- func (dde *DeviceDurationElephantCreate) SetNotNilUpdatedAt(value *time.Time) *DeviceDurationElephantCreate
- func (ddec *DeviceDurationElephantCreate) SetProductKey(s string) *DeviceDurationElephantCreate
- func (ddec *DeviceDurationElephantCreate) SetRunning(i int32) *DeviceDurationElephantCreate
- func (ddec *DeviceDurationElephantCreate) SetSort(u uint32) *DeviceDurationElephantCreate
- func (ddec *DeviceDurationElephantCreate) SetStatus(u uint8) *DeviceDurationElephantCreate
- func (ddec *DeviceDurationElephantCreate) SetUpdatedAt(t time.Time) *DeviceDurationElephantCreate
- func (ddec *DeviceDurationElephantCreate) TableName(s string) *DeviceDurationElephantCreate
- type DeviceDurationElephantCreateBulk
- func (ddecb *DeviceDurationElephantCreateBulk) Exec(ctx context.Context) error
- func (c *DeviceDurationElephantCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ddecb *DeviceDurationElephantCreateBulk) ExecX(ctx context.Context)
- func (ddecb *DeviceDurationElephantCreateBulk) OnConflict(opts ...sql.ConflictOption) *DeviceDurationElephantUpsertBulk
- func (ddecb *DeviceDurationElephantCreateBulk) OnConflictColumns(columns ...string) *DeviceDurationElephantUpsertBulk
- func (c *DeviceDurationElephantCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ddecb *DeviceDurationElephantCreateBulk) Save(ctx context.Context) ([]*DeviceDurationElephant, error)
- func (ddecb *DeviceDurationElephantCreateBulk) SaveX(ctx context.Context) []*DeviceDurationElephant
- type DeviceDurationElephantDelete
- func (dded *DeviceDurationElephantDelete) Exec(ctx context.Context) (int, error)
- func (c *DeviceDurationElephantDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dded *DeviceDurationElephantDelete) ExecX(ctx context.Context) int
- func (c *DeviceDurationElephantDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dded *DeviceDurationElephantDelete) Where(ps ...predicate.DeviceDurationElephant) *DeviceDurationElephantDelete
- type DeviceDurationElephantDeleteOne
- type DeviceDurationElephantGroupBy
- func (ddegb *DeviceDurationElephantGroupBy) Aggregate(fns ...AggregateFunc) *DeviceDurationElephantGroupBy
- func (s *DeviceDurationElephantGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *DeviceDurationElephantGroupBy) BoolX(ctx context.Context) bool
- func (s *DeviceDurationElephantGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *DeviceDurationElephantGroupBy) BoolsX(ctx context.Context) []bool
- func (s *DeviceDurationElephantGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *DeviceDurationElephantGroupBy) Float64X(ctx context.Context) float64
- func (s *DeviceDurationElephantGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *DeviceDurationElephantGroupBy) Float64sX(ctx context.Context) []float64
- func (s *DeviceDurationElephantGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *DeviceDurationElephantGroupBy) IntX(ctx context.Context) int
- func (s *DeviceDurationElephantGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *DeviceDurationElephantGroupBy) IntsX(ctx context.Context) []int
- func (ddegb *DeviceDurationElephantGroupBy) Scan(ctx context.Context, v any) error
- func (s *DeviceDurationElephantGroupBy) ScanX(ctx context.Context, v any)
- func (s *DeviceDurationElephantGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *DeviceDurationElephantGroupBy) StringX(ctx context.Context) string
- func (s *DeviceDurationElephantGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *DeviceDurationElephantGroupBy) StringsX(ctx context.Context) []string
- type DeviceDurationElephantMutation
- func (m *DeviceDurationElephantMutation) AddConnected(i int32)
- func (m *DeviceDurationElephantMutation) AddEbutton(i int32)
- func (m *DeviceDurationElephantMutation) AddField(name string, value ent.Value) error
- func (m *DeviceDurationElephantMutation) AddRunning(i int32)
- func (m *DeviceDurationElephantMutation) AddSort(u int32)
- func (m *DeviceDurationElephantMutation) AddStatus(u int8)
- func (m *DeviceDurationElephantMutation) AddedConnected() (r int32, exists bool)
- func (m *DeviceDurationElephantMutation) AddedEbutton() (r int32, exists bool)
- func (m *DeviceDurationElephantMutation) AddedEdges() []string
- func (m *DeviceDurationElephantMutation) AddedField(name string) (ent.Value, bool)
- func (m *DeviceDurationElephantMutation) AddedFields() []string
- func (m *DeviceDurationElephantMutation) AddedIDs(name string) []ent.Value
- func (m *DeviceDurationElephantMutation) AddedRunning() (r int32, exists bool)
- func (m *DeviceDurationElephantMutation) AddedSort() (r int32, exists bool)
- func (m *DeviceDurationElephantMutation) AddedStatus() (r int8, exists bool)
- func (m *DeviceDurationElephantMutation) ClearConnected()
- func (m *DeviceDurationElephantMutation) ClearDate()
- func (m *DeviceDurationElephantMutation) ClearDayJson()
- func (m *DeviceDurationElephantMutation) ClearEbutton()
- func (m *DeviceDurationElephantMutation) ClearEdge(name string) error
- func (m *DeviceDurationElephantMutation) ClearField(name string) error
- func (m *DeviceDurationElephantMutation) ClearRunning()
- func (m *DeviceDurationElephantMutation) ClearStatus()
- func (m *DeviceDurationElephantMutation) ClearedEdges() []string
- func (m *DeviceDurationElephantMutation) ClearedFields() []string
- func (m DeviceDurationElephantMutation) Client() *Client
- func (m *DeviceDurationElephantMutation) Connected() (r int32, exists bool)
- func (m *DeviceDurationElephantMutation) ConnectedCleared() bool
- func (m *DeviceDurationElephantMutation) CreatedAt() (r time.Time, exists bool)
- func (m *DeviceDurationElephantMutation) Date() (r string, exists bool)
- func (m *DeviceDurationElephantMutation) DateCleared() bool
- func (m *DeviceDurationElephantMutation) DayJson() (r string, exists bool)
- func (m *DeviceDurationElephantMutation) DayJsonCleared() bool
- func (m *DeviceDurationElephantMutation) DeviceName() (r string, exists bool)
- func (m *DeviceDurationElephantMutation) Ebutton() (r int32, exists bool)
- func (m *DeviceDurationElephantMutation) EbuttonCleared() bool
- func (m *DeviceDurationElephantMutation) EdgeCleared(name string) bool
- func (c *DeviceDurationElephantMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *DeviceDurationElephantMutation) Field(name string) (ent.Value, bool)
- func (m *DeviceDurationElephantMutation) FieldCleared(name string) bool
- func (m *DeviceDurationElephantMutation) Fields() []string
- func (m *DeviceDurationElephantMutation) ID() (id uint64, exists bool)
- func (m *DeviceDurationElephantMutation) IDs(ctx context.Context) ([]uint64, error)
- func (m *DeviceDurationElephantMutation) IotID() (r string, exists bool)
- func (m *DeviceDurationElephantMutation) OldConnected(ctx context.Context) (v int32, err error)
- func (m *DeviceDurationElephantMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *DeviceDurationElephantMutation) OldDate(ctx context.Context) (v string, err error)
- func (m *DeviceDurationElephantMutation) OldDayJson(ctx context.Context) (v string, err error)
- func (m *DeviceDurationElephantMutation) OldDeviceName(ctx context.Context) (v string, err error)
- func (m *DeviceDurationElephantMutation) OldEbutton(ctx context.Context) (v int32, err error)
- func (m *DeviceDurationElephantMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *DeviceDurationElephantMutation) OldIotID(ctx context.Context) (v string, err error)
- func (m *DeviceDurationElephantMutation) OldProductKey(ctx context.Context) (v string, err error)
- func (m *DeviceDurationElephantMutation) OldRunning(ctx context.Context) (v int32, err error)
- func (m *DeviceDurationElephantMutation) OldSort(ctx context.Context) (v uint32, err error)
- func (m *DeviceDurationElephantMutation) OldStatus(ctx context.Context) (v uint8, err error)
- func (m *DeviceDurationElephantMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *DeviceDurationElephantMutation) Op() Op
- func (m *DeviceDurationElephantMutation) ProductKey() (r string, exists bool)
- func (c *DeviceDurationElephantMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *DeviceDurationElephantMutation) RemovedEdges() []string
- func (m *DeviceDurationElephantMutation) RemovedIDs(name string) []ent.Value
- func (m *DeviceDurationElephantMutation) ResetConnected()
- func (m *DeviceDurationElephantMutation) ResetCreatedAt()
- func (m *DeviceDurationElephantMutation) ResetDate()
- func (m *DeviceDurationElephantMutation) ResetDayJson()
- func (m *DeviceDurationElephantMutation) ResetDeviceName()
- func (m *DeviceDurationElephantMutation) ResetEbutton()
- func (m *DeviceDurationElephantMutation) ResetEdge(name string) error
- func (m *DeviceDurationElephantMutation) ResetField(name string) error
- func (m *DeviceDurationElephantMutation) ResetIotID()
- func (m *DeviceDurationElephantMutation) ResetProductKey()
- func (m *DeviceDurationElephantMutation) ResetRunning()
- func (m *DeviceDurationElephantMutation) ResetSort()
- func (m *DeviceDurationElephantMutation) ResetStatus()
- func (m *DeviceDurationElephantMutation) ResetUpdatedAt()
- func (m *DeviceDurationElephantMutation) Running() (r int32, exists bool)
- func (m *DeviceDurationElephantMutation) RunningCleared() bool
- func (m *DeviceDurationElephantMutation) SetConnected(i int32)
- func (m *DeviceDurationElephantMutation) SetCreatedAt(t time.Time)
- func (m *DeviceDurationElephantMutation) SetDate(s string)
- func (m *DeviceDurationElephantMutation) SetDayJson(s string)
- func (m *DeviceDurationElephantMutation) SetDeviceName(s string)
- func (m *DeviceDurationElephantMutation) SetEbutton(i int32)
- func (m *DeviceDurationElephantMutation) SetField(name string, value ent.Value) error
- func (m *DeviceDurationElephantMutation) SetID(id uint64)
- func (m *DeviceDurationElephantMutation) SetIotID(s string)
- func (m *DeviceDurationElephantMutation) SetOp(op Op)
- func (m *DeviceDurationElephantMutation) SetProductKey(s string)
- func (m *DeviceDurationElephantMutation) SetRunning(i int32)
- func (m *DeviceDurationElephantMutation) SetSort(u uint32)
- func (m *DeviceDurationElephantMutation) SetStatus(u uint8)
- func (m *DeviceDurationElephantMutation) SetUpdatedAt(t time.Time)
- func (m *DeviceDurationElephantMutation) Sort() (r uint32, exists bool)
- func (m *DeviceDurationElephantMutation) Status() (r uint8, exists bool)
- func (m *DeviceDurationElephantMutation) StatusCleared() bool
- func (m DeviceDurationElephantMutation) Tx() (*Tx, error)
- func (m *DeviceDurationElephantMutation) Type() string
- func (m *DeviceDurationElephantMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *DeviceDurationElephantMutation) Where(ps ...predicate.DeviceDurationElephant)
- func (m *DeviceDurationElephantMutation) WhereP(ps ...func(*sql.Selector))
- type DeviceDurationElephantPageList
- type DeviceDurationElephantPager
- type DeviceDurationElephantPaginateOption
- type DeviceDurationElephantQuery
- func (ddeq *DeviceDurationElephantQuery) Aggregate(fns ...AggregateFunc) *DeviceDurationElephantSelect
- func (ddeq *DeviceDurationElephantQuery) All(ctx context.Context) ([]*DeviceDurationElephant, error)
- func (ddeq *DeviceDurationElephantQuery) AllX(ctx context.Context) []*DeviceDurationElephant
- func (ddeq *DeviceDurationElephantQuery) Clone() *DeviceDurationElephantQuery
- func (ddeq *DeviceDurationElephantQuery) Count(ctx context.Context) (int, error)
- func (ddeq *DeviceDurationElephantQuery) CountX(ctx context.Context) int
- func (c *DeviceDurationElephantQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ddeq *DeviceDurationElephantQuery) Exist(ctx context.Context) (bool, error)
- func (ddeq *DeviceDurationElephantQuery) ExistX(ctx context.Context) bool
- func (ddeq *DeviceDurationElephantQuery) First(ctx context.Context) (*DeviceDurationElephant, error)
- func (ddeq *DeviceDurationElephantQuery) FirstID(ctx context.Context) (id uint64, err error)
- func (ddeq *DeviceDurationElephantQuery) FirstIDX(ctx context.Context) uint64
- func (ddeq *DeviceDurationElephantQuery) FirstX(ctx context.Context) *DeviceDurationElephant
- func (ddeq *DeviceDurationElephantQuery) GroupBy(field string, fields ...string) *DeviceDurationElephantGroupBy
- func (ddeq *DeviceDurationElephantQuery) IDs(ctx context.Context) (ids []uint64, err error)
- func (ddeq *DeviceDurationElephantQuery) IDsX(ctx context.Context) []uint64
- func (ddeq *DeviceDurationElephantQuery) Limit(limit int) *DeviceDurationElephantQuery
- func (ddeq *DeviceDurationElephantQuery) Modify(modifiers ...func(s *sql.Selector)) *DeviceDurationElephantSelect
- func (ddeq *DeviceDurationElephantQuery) Offset(offset int) *DeviceDurationElephantQuery
- func (ddeq *DeviceDurationElephantQuery) Only(ctx context.Context) (*DeviceDurationElephant, error)
- func (ddeq *DeviceDurationElephantQuery) OnlyID(ctx context.Context) (id uint64, err error)
- func (ddeq *DeviceDurationElephantQuery) OnlyIDX(ctx context.Context) uint64
- func (ddeq *DeviceDurationElephantQuery) OnlyX(ctx context.Context) *DeviceDurationElephant
- func (ddeq *DeviceDurationElephantQuery) Order(o ...devicedurationelephant.OrderOption) *DeviceDurationElephantQuery
- func (dde *DeviceDurationElephantQuery) Page(ctx context.Context, pageNum uint64, pageSize uint64, ...) (*DeviceDurationElephantPageList, error)
- func (c *DeviceDurationElephantQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ddeq *DeviceDurationElephantQuery) Select(fields ...string) *DeviceDurationElephantSelect
- func (ddeq *DeviceDurationElephantQuery) Unique(unique bool) *DeviceDurationElephantQuery
- func (ddeq *DeviceDurationElephantQuery) Where(ps ...predicate.DeviceDurationElephant) *DeviceDurationElephantQuery
- type DeviceDurationElephantSelect
- func (ddes *DeviceDurationElephantSelect) Aggregate(fns ...AggregateFunc) *DeviceDurationElephantSelect
- func (s *DeviceDurationElephantSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *DeviceDurationElephantSelect) BoolX(ctx context.Context) bool
- func (s *DeviceDurationElephantSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *DeviceDurationElephantSelect) BoolsX(ctx context.Context) []bool
- func (c DeviceDurationElephantSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *DeviceDurationElephantSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *DeviceDurationElephantSelect) Float64X(ctx context.Context) float64
- func (s *DeviceDurationElephantSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *DeviceDurationElephantSelect) Float64sX(ctx context.Context) []float64
- func (s *DeviceDurationElephantSelect) Int(ctx context.Context) (_ int, err error)
- func (s *DeviceDurationElephantSelect) IntX(ctx context.Context) int
- func (s *DeviceDurationElephantSelect) Ints(ctx context.Context) ([]int, error)
- func (s *DeviceDurationElephantSelect) IntsX(ctx context.Context) []int
- func (ddes *DeviceDurationElephantSelect) Modify(modifiers ...func(s *sql.Selector)) *DeviceDurationElephantSelect
- func (c DeviceDurationElephantSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ddes *DeviceDurationElephantSelect) Scan(ctx context.Context, v any) error
- func (s *DeviceDurationElephantSelect) ScanX(ctx context.Context, v any)
- func (s *DeviceDurationElephantSelect) String(ctx context.Context) (_ string, err error)
- func (s *DeviceDurationElephantSelect) StringX(ctx context.Context) string
- func (s *DeviceDurationElephantSelect) Strings(ctx context.Context) ([]string, error)
- func (s *DeviceDurationElephantSelect) StringsX(ctx context.Context) []string
- type DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) AddConnected(i int32) *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) AddEbutton(i int32) *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) AddRunning(i int32) *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) AddSort(u int32) *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) AddStatus(u int8) *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) ClearConnected() *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) ClearDate() *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) ClearDayJson() *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) ClearEbutton() *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) ClearRunning() *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) ClearStatus() *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) Exec(ctx context.Context) error
- func (c *DeviceDurationElephantUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ddeu *DeviceDurationElephantUpdate) ExecX(ctx context.Context)
- func (ddeu *DeviceDurationElephantUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) Mutation() *DeviceDurationElephantMutation
- func (c *DeviceDurationElephantUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ddeu *DeviceDurationElephantUpdate) Save(ctx context.Context) (int, error)
- func (ddeu *DeviceDurationElephantUpdate) SaveX(ctx context.Context) int
- func (ddeu *DeviceDurationElephantUpdate) SetConnected(i int32) *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) SetDate(s string) *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) SetDayJson(s string) *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) SetDeviceName(s string) *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) SetEbutton(i int32) *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) SetIotID(s string) *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) SetNillableConnected(i *int32) *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) SetNillableDate(s *string) *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) SetNillableDayJson(s *string) *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) SetNillableDeviceName(s *string) *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) SetNillableEbutton(i *int32) *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) SetNillableIotID(s *string) *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) SetNillableProductKey(s *string) *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) SetNillableRunning(i *int32) *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) SetNillableSort(u *uint32) *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) SetNillableStatus(u *uint8) *DeviceDurationElephantUpdate
- func (dde *DeviceDurationElephantUpdate) SetNotNilConnected(value *int32) *DeviceDurationElephantUpdate
- func (dde *DeviceDurationElephantUpdate) SetNotNilDate(value *string) *DeviceDurationElephantUpdate
- func (dde *DeviceDurationElephantUpdate) SetNotNilDayJson(value *string) *DeviceDurationElephantUpdate
- func (dde *DeviceDurationElephantUpdate) SetNotNilDeviceName(value *string) *DeviceDurationElephantUpdate
- func (dde *DeviceDurationElephantUpdate) SetNotNilEbutton(value *int32) *DeviceDurationElephantUpdate
- func (dde *DeviceDurationElephantUpdate) SetNotNilIotID(value *string) *DeviceDurationElephantUpdate
- func (dde *DeviceDurationElephantUpdate) SetNotNilProductKey(value *string) *DeviceDurationElephantUpdate
- func (dde *DeviceDurationElephantUpdate) SetNotNilRunning(value *int32) *DeviceDurationElephantUpdate
- func (dde *DeviceDurationElephantUpdate) SetNotNilSort(value *uint32) *DeviceDurationElephantUpdate
- func (dde *DeviceDurationElephantUpdate) SetNotNilStatus(value *uint8) *DeviceDurationElephantUpdate
- func (dde *DeviceDurationElephantUpdate) SetNotNilUpdatedAt(value *time.Time) *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) SetProductKey(s string) *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) SetRunning(i int32) *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) SetSort(u uint32) *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) SetStatus(u uint8) *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) SetUpdatedAt(t time.Time) *DeviceDurationElephantUpdate
- func (ddeu *DeviceDurationElephantUpdate) Where(ps ...predicate.DeviceDurationElephant) *DeviceDurationElephantUpdate
- type DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) AddConnected(i int32) *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) AddEbutton(i int32) *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) AddRunning(i int32) *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) AddSort(u int32) *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) AddStatus(u int8) *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) ClearConnected() *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) ClearDate() *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) ClearDayJson() *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) ClearEbutton() *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) ClearRunning() *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) ClearStatus() *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) Exec(ctx context.Context) error
- func (c *DeviceDurationElephantUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ddeuo *DeviceDurationElephantUpdateOne) ExecX(ctx context.Context)
- func (ddeuo *DeviceDurationElephantUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) Mutation() *DeviceDurationElephantMutation
- func (c *DeviceDurationElephantUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ddeuo *DeviceDurationElephantUpdateOne) Save(ctx context.Context) (*DeviceDurationElephant, error)
- func (ddeuo *DeviceDurationElephantUpdateOne) SaveX(ctx context.Context) *DeviceDurationElephant
- func (ddeuo *DeviceDurationElephantUpdateOne) Select(field string, fields ...string) *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) SetConnected(i int32) *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) SetDate(s string) *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) SetDayJson(s string) *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) SetDeviceName(s string) *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) SetEbutton(i int32) *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) SetIotID(s string) *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) SetNillableConnected(i *int32) *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) SetNillableDate(s *string) *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) SetNillableDayJson(s *string) *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) SetNillableDeviceName(s *string) *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) SetNillableEbutton(i *int32) *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) SetNillableIotID(s *string) *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) SetNillableProductKey(s *string) *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) SetNillableRunning(i *int32) *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) SetNillableSort(u *uint32) *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) SetNillableStatus(u *uint8) *DeviceDurationElephantUpdateOne
- func (dde *DeviceDurationElephantUpdateOne) SetNotNilConnected(value *int32) *DeviceDurationElephantUpdateOne
- func (dde *DeviceDurationElephantUpdateOne) SetNotNilDate(value *string) *DeviceDurationElephantUpdateOne
- func (dde *DeviceDurationElephantUpdateOne) SetNotNilDayJson(value *string) *DeviceDurationElephantUpdateOne
- func (dde *DeviceDurationElephantUpdateOne) SetNotNilDeviceName(value *string) *DeviceDurationElephantUpdateOne
- func (dde *DeviceDurationElephantUpdateOne) SetNotNilEbutton(value *int32) *DeviceDurationElephantUpdateOne
- func (dde *DeviceDurationElephantUpdateOne) SetNotNilIotID(value *string) *DeviceDurationElephantUpdateOne
- func (dde *DeviceDurationElephantUpdateOne) SetNotNilProductKey(value *string) *DeviceDurationElephantUpdateOne
- func (dde *DeviceDurationElephantUpdateOne) SetNotNilRunning(value *int32) *DeviceDurationElephantUpdateOne
- func (dde *DeviceDurationElephantUpdateOne) SetNotNilSort(value *uint32) *DeviceDurationElephantUpdateOne
- func (dde *DeviceDurationElephantUpdateOne) SetNotNilStatus(value *uint8) *DeviceDurationElephantUpdateOne
- func (dde *DeviceDurationElephantUpdateOne) SetNotNilUpdatedAt(value *time.Time) *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) SetProductKey(s string) *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) SetRunning(i int32) *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) SetSort(u uint32) *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) SetStatus(u uint8) *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) SetUpdatedAt(t time.Time) *DeviceDurationElephantUpdateOne
- func (ddeuo *DeviceDurationElephantUpdateOne) Where(ps ...predicate.DeviceDurationElephant) *DeviceDurationElephantUpdateOne
- type DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) AddConnected(v int32) *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) AddEbutton(v int32) *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) AddRunning(v int32) *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) AddSort(v uint32) *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) AddStatus(v uint8) *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) ClearConnected() *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) ClearDate() *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) ClearDayJson() *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) ClearEbutton() *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) ClearRunning() *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) ClearStatus() *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) SetConnected(v int32) *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) SetDate(v string) *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) SetDayJson(v string) *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) SetDeviceName(v string) *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) SetEbutton(v int32) *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) SetIotID(v string) *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) SetProductKey(v string) *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) SetRunning(v int32) *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) SetSort(v uint32) *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) SetStatus(v uint8) *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) SetUpdatedAt(v time.Time) *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) UpdateConnected() *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) UpdateDate() *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) UpdateDayJson() *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) UpdateDeviceName() *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) UpdateEbutton() *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) UpdateIotID() *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) UpdateProductKey() *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) UpdateRunning() *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) UpdateSort() *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) UpdateStatus() *DeviceDurationElephantUpsert
- func (u *DeviceDurationElephantUpsert) UpdateUpdatedAt() *DeviceDurationElephantUpsert
- type DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) AddConnected(v int32) *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) AddEbutton(v int32) *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) AddRunning(v int32) *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) AddSort(v uint32) *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) AddStatus(v uint8) *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) ClearConnected() *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) ClearDate() *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) ClearDayJson() *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) ClearEbutton() *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) ClearRunning() *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) ClearStatus() *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) DoNothing() *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) Exec(ctx context.Context) error
- func (u *DeviceDurationElephantUpsertBulk) ExecX(ctx context.Context)
- func (u *DeviceDurationElephantUpsertBulk) Ignore() *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) SetConnected(v int32) *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) SetDate(v string) *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) SetDayJson(v string) *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) SetDeviceName(v string) *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) SetEbutton(v int32) *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) SetIotID(v string) *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) SetProductKey(v string) *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) SetRunning(v int32) *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) SetSort(v uint32) *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) SetStatus(v uint8) *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) SetUpdatedAt(v time.Time) *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) Update(set func(*DeviceDurationElephantUpsert)) *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) UpdateConnected() *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) UpdateDate() *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) UpdateDayJson() *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) UpdateDeviceName() *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) UpdateEbutton() *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) UpdateIotID() *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) UpdateNewValues() *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) UpdateProductKey() *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) UpdateRunning() *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) UpdateSort() *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) UpdateStatus() *DeviceDurationElephantUpsertBulk
- func (u *DeviceDurationElephantUpsertBulk) UpdateUpdatedAt() *DeviceDurationElephantUpsertBulk
- type DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) AddConnected(v int32) *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) AddEbutton(v int32) *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) AddRunning(v int32) *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) AddSort(v uint32) *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) AddStatus(v uint8) *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) ClearConnected() *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) ClearDate() *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) ClearDayJson() *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) ClearEbutton() *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) ClearRunning() *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) ClearStatus() *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) DoNothing() *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) Exec(ctx context.Context) error
- func (u *DeviceDurationElephantUpsertOne) ExecX(ctx context.Context)
- func (u *DeviceDurationElephantUpsertOne) ID(ctx context.Context) (id uint64, err error)
- func (u *DeviceDurationElephantUpsertOne) IDX(ctx context.Context) uint64
- func (u *DeviceDurationElephantUpsertOne) Ignore() *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) SetConnected(v int32) *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) SetDate(v string) *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) SetDayJson(v string) *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) SetDeviceName(v string) *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) SetEbutton(v int32) *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) SetIotID(v string) *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) SetProductKey(v string) *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) SetRunning(v int32) *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) SetSort(v uint32) *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) SetStatus(v uint8) *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) SetUpdatedAt(v time.Time) *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) Update(set func(*DeviceDurationElephantUpsert)) *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) UpdateConnected() *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) UpdateDate() *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) UpdateDayJson() *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) UpdateDeviceName() *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) UpdateEbutton() *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) UpdateIotID() *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) UpdateNewValues() *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) UpdateProductKey() *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) UpdateRunning() *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) UpdateSort() *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) UpdateStatus() *DeviceDurationElephantUpsertOne
- func (u *DeviceDurationElephantUpsertOne) UpdateUpdatedAt() *DeviceDurationElephantUpsertOne
- type DeviceDurationElephants
- type DeviceDurationGroupBy
- func (ddgb *DeviceDurationGroupBy) Aggregate(fns ...AggregateFunc) *DeviceDurationGroupBy
- func (s *DeviceDurationGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *DeviceDurationGroupBy) BoolX(ctx context.Context) bool
- func (s *DeviceDurationGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *DeviceDurationGroupBy) BoolsX(ctx context.Context) []bool
- func (s *DeviceDurationGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *DeviceDurationGroupBy) Float64X(ctx context.Context) float64
- func (s *DeviceDurationGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *DeviceDurationGroupBy) Float64sX(ctx context.Context) []float64
- func (s *DeviceDurationGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *DeviceDurationGroupBy) IntX(ctx context.Context) int
- func (s *DeviceDurationGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *DeviceDurationGroupBy) IntsX(ctx context.Context) []int
- func (ddgb *DeviceDurationGroupBy) Scan(ctx context.Context, v any) error
- func (s *DeviceDurationGroupBy) ScanX(ctx context.Context, v any)
- func (s *DeviceDurationGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *DeviceDurationGroupBy) StringX(ctx context.Context) string
- func (s *DeviceDurationGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *DeviceDurationGroupBy) StringsX(ctx context.Context) []string
- type DeviceDurationMutation
- func (m *DeviceDurationMutation) AddEbutton(i int32)
- func (m *DeviceDurationMutation) AddField(name string, value ent.Value) error
- func (m *DeviceDurationMutation) AddPreparation(i int32)
- func (m *DeviceDurationMutation) AddSort(u int32)
- func (m *DeviceDurationMutation) AddStandBy(i int32)
- func (m *DeviceDurationMutation) AddStatus(u int8)
- func (m *DeviceDurationMutation) AddWaiting(i int32)
- func (m *DeviceDurationMutation) AddWashing(i int32)
- func (m *DeviceDurationMutation) AddWashingCold(i int32)
- func (m *DeviceDurationMutation) AddedEbutton() (r int32, exists bool)
- func (m *DeviceDurationMutation) AddedEdges() []string
- func (m *DeviceDurationMutation) AddedField(name string) (ent.Value, bool)
- func (m *DeviceDurationMutation) AddedFields() []string
- func (m *DeviceDurationMutation) AddedIDs(name string) []ent.Value
- func (m *DeviceDurationMutation) AddedPreparation() (r int32, exists bool)
- func (m *DeviceDurationMutation) AddedSort() (r int32, exists bool)
- func (m *DeviceDurationMutation) AddedStandBy() (r int32, exists bool)
- func (m *DeviceDurationMutation) AddedStatus() (r int8, exists bool)
- func (m *DeviceDurationMutation) AddedWaiting() (r int32, exists bool)
- func (m *DeviceDurationMutation) AddedWashing() (r int32, exists bool)
- func (m *DeviceDurationMutation) AddedWashingCold() (r int32, exists bool)
- func (m *DeviceDurationMutation) ClearDate()
- func (m *DeviceDurationMutation) ClearDayJson()
- func (m *DeviceDurationMutation) ClearEbutton()
- func (m *DeviceDurationMutation) ClearEdge(name string) error
- func (m *DeviceDurationMutation) ClearField(name string) error
- func (m *DeviceDurationMutation) ClearPreparation()
- func (m *DeviceDurationMutation) ClearStandBy()
- func (m *DeviceDurationMutation) ClearStatus()
- func (m *DeviceDurationMutation) ClearWaiting()
- func (m *DeviceDurationMutation) ClearWashing()
- func (m *DeviceDurationMutation) ClearWashingCold()
- func (m *DeviceDurationMutation) ClearedEdges() []string
- func (m *DeviceDurationMutation) ClearedFields() []string
- func (m DeviceDurationMutation) Client() *Client
- func (m *DeviceDurationMutation) CreatedAt() (r time.Time, exists bool)
- func (m *DeviceDurationMutation) Date() (r string, exists bool)
- func (m *DeviceDurationMutation) DateCleared() bool
- func (m *DeviceDurationMutation) DayJson() (r string, exists bool)
- func (m *DeviceDurationMutation) DayJsonCleared() bool
- func (m *DeviceDurationMutation) DeviceName() (r string, exists bool)
- func (m *DeviceDurationMutation) Ebutton() (r int32, exists bool)
- func (m *DeviceDurationMutation) EbuttonCleared() bool
- func (m *DeviceDurationMutation) EdgeCleared(name string) bool
- func (c *DeviceDurationMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *DeviceDurationMutation) Field(name string) (ent.Value, bool)
- func (m *DeviceDurationMutation) FieldCleared(name string) bool
- func (m *DeviceDurationMutation) Fields() []string
- func (m *DeviceDurationMutation) ID() (id uint64, exists bool)
- func (m *DeviceDurationMutation) IDs(ctx context.Context) ([]uint64, error)
- func (m *DeviceDurationMutation) IotID() (r string, exists bool)
- func (m *DeviceDurationMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *DeviceDurationMutation) OldDate(ctx context.Context) (v string, err error)
- func (m *DeviceDurationMutation) OldDayJson(ctx context.Context) (v string, err error)
- func (m *DeviceDurationMutation) OldDeviceName(ctx context.Context) (v string, err error)
- func (m *DeviceDurationMutation) OldEbutton(ctx context.Context) (v int32, err error)
- func (m *DeviceDurationMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *DeviceDurationMutation) OldIotID(ctx context.Context) (v string, err error)
- func (m *DeviceDurationMutation) OldPreparation(ctx context.Context) (v int32, err error)
- func (m *DeviceDurationMutation) OldProductKey(ctx context.Context) (v string, err error)
- func (m *DeviceDurationMutation) OldSort(ctx context.Context) (v uint32, err error)
- func (m *DeviceDurationMutation) OldStandBy(ctx context.Context) (v int32, err error)
- func (m *DeviceDurationMutation) OldStatus(ctx context.Context) (v uint8, err error)
- func (m *DeviceDurationMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *DeviceDurationMutation) OldWaiting(ctx context.Context) (v int32, err error)
- func (m *DeviceDurationMutation) OldWashing(ctx context.Context) (v int32, err error)
- func (m *DeviceDurationMutation) OldWashingCold(ctx context.Context) (v int32, err error)
- func (m *DeviceDurationMutation) Op() Op
- func (m *DeviceDurationMutation) Preparation() (r int32, exists bool)
- func (m *DeviceDurationMutation) PreparationCleared() bool
- func (m *DeviceDurationMutation) ProductKey() (r string, exists bool)
- func (c *DeviceDurationMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *DeviceDurationMutation) RemovedEdges() []string
- func (m *DeviceDurationMutation) RemovedIDs(name string) []ent.Value
- func (m *DeviceDurationMutation) ResetCreatedAt()
- func (m *DeviceDurationMutation) ResetDate()
- func (m *DeviceDurationMutation) ResetDayJson()
- func (m *DeviceDurationMutation) ResetDeviceName()
- func (m *DeviceDurationMutation) ResetEbutton()
- func (m *DeviceDurationMutation) ResetEdge(name string) error
- func (m *DeviceDurationMutation) ResetField(name string) error
- func (m *DeviceDurationMutation) ResetIotID()
- func (m *DeviceDurationMutation) ResetPreparation()
- func (m *DeviceDurationMutation) ResetProductKey()
- func (m *DeviceDurationMutation) ResetSort()
- func (m *DeviceDurationMutation) ResetStandBy()
- func (m *DeviceDurationMutation) ResetStatus()
- func (m *DeviceDurationMutation) ResetUpdatedAt()
- func (m *DeviceDurationMutation) ResetWaiting()
- func (m *DeviceDurationMutation) ResetWashing()
- func (m *DeviceDurationMutation) ResetWashingCold()
- func (m *DeviceDurationMutation) SetCreatedAt(t time.Time)
- func (m *DeviceDurationMutation) SetDate(s string)
- func (m *DeviceDurationMutation) SetDayJson(s string)
- func (m *DeviceDurationMutation) SetDeviceName(s string)
- func (m *DeviceDurationMutation) SetEbutton(i int32)
- func (m *DeviceDurationMutation) SetField(name string, value ent.Value) error
- func (m *DeviceDurationMutation) SetID(id uint64)
- func (m *DeviceDurationMutation) SetIotID(s string)
- func (m *DeviceDurationMutation) SetOp(op Op)
- func (m *DeviceDurationMutation) SetPreparation(i int32)
- func (m *DeviceDurationMutation) SetProductKey(s string)
- func (m *DeviceDurationMutation) SetSort(u uint32)
- func (m *DeviceDurationMutation) SetStandBy(i int32)
- func (m *DeviceDurationMutation) SetStatus(u uint8)
- func (m *DeviceDurationMutation) SetUpdatedAt(t time.Time)
- func (m *DeviceDurationMutation) SetWaiting(i int32)
- func (m *DeviceDurationMutation) SetWashing(i int32)
- func (m *DeviceDurationMutation) SetWashingCold(i int32)
- func (m *DeviceDurationMutation) Sort() (r uint32, exists bool)
- func (m *DeviceDurationMutation) StandBy() (r int32, exists bool)
- func (m *DeviceDurationMutation) StandByCleared() bool
- func (m *DeviceDurationMutation) Status() (r uint8, exists bool)
- func (m *DeviceDurationMutation) StatusCleared() bool
- func (m DeviceDurationMutation) Tx() (*Tx, error)
- func (m *DeviceDurationMutation) Type() string
- func (m *DeviceDurationMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *DeviceDurationMutation) Waiting() (r int32, exists bool)
- func (m *DeviceDurationMutation) WaitingCleared() bool
- func (m *DeviceDurationMutation) Washing() (r int32, exists bool)
- func (m *DeviceDurationMutation) WashingCleared() bool
- func (m *DeviceDurationMutation) WashingCold() (r int32, exists bool)
- func (m *DeviceDurationMutation) WashingColdCleared() bool
- func (m *DeviceDurationMutation) Where(ps ...predicate.DeviceDuration)
- func (m *DeviceDurationMutation) WhereP(ps ...func(*sql.Selector))
- type DeviceDurationPageList
- type DeviceDurationPager
- type DeviceDurationPaginateOption
- type DeviceDurationQuery
- func (ddq *DeviceDurationQuery) Aggregate(fns ...AggregateFunc) *DeviceDurationSelect
- func (ddq *DeviceDurationQuery) All(ctx context.Context) ([]*DeviceDuration, error)
- func (ddq *DeviceDurationQuery) AllX(ctx context.Context) []*DeviceDuration
- func (ddq *DeviceDurationQuery) Clone() *DeviceDurationQuery
- func (ddq *DeviceDurationQuery) Count(ctx context.Context) (int, error)
- func (ddq *DeviceDurationQuery) CountX(ctx context.Context) int
- func (c *DeviceDurationQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ddq *DeviceDurationQuery) Exist(ctx context.Context) (bool, error)
- func (ddq *DeviceDurationQuery) ExistX(ctx context.Context) bool
- func (ddq *DeviceDurationQuery) First(ctx context.Context) (*DeviceDuration, error)
- func (ddq *DeviceDurationQuery) FirstID(ctx context.Context) (id uint64, err error)
- func (ddq *DeviceDurationQuery) FirstIDX(ctx context.Context) uint64
- func (ddq *DeviceDurationQuery) FirstX(ctx context.Context) *DeviceDuration
- func (ddq *DeviceDurationQuery) GroupBy(field string, fields ...string) *DeviceDurationGroupBy
- func (ddq *DeviceDurationQuery) IDs(ctx context.Context) (ids []uint64, err error)
- func (ddq *DeviceDurationQuery) IDsX(ctx context.Context) []uint64
- func (ddq *DeviceDurationQuery) Limit(limit int) *DeviceDurationQuery
- func (ddq *DeviceDurationQuery) Modify(modifiers ...func(s *sql.Selector)) *DeviceDurationSelect
- func (ddq *DeviceDurationQuery) Offset(offset int) *DeviceDurationQuery
- func (ddq *DeviceDurationQuery) Only(ctx context.Context) (*DeviceDuration, error)
- func (ddq *DeviceDurationQuery) OnlyID(ctx context.Context) (id uint64, err error)
- func (ddq *DeviceDurationQuery) OnlyIDX(ctx context.Context) uint64
- func (ddq *DeviceDurationQuery) OnlyX(ctx context.Context) *DeviceDuration
- func (ddq *DeviceDurationQuery) Order(o ...deviceduration.OrderOption) *DeviceDurationQuery
- func (dd *DeviceDurationQuery) Page(ctx context.Context, pageNum uint64, pageSize uint64, ...) (*DeviceDurationPageList, error)
- func (c *DeviceDurationQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ddq *DeviceDurationQuery) Select(fields ...string) *DeviceDurationSelect
- func (ddq *DeviceDurationQuery) Unique(unique bool) *DeviceDurationQuery
- func (ddq *DeviceDurationQuery) Where(ps ...predicate.DeviceDuration) *DeviceDurationQuery
- type DeviceDurationSelect
- func (dds *DeviceDurationSelect) Aggregate(fns ...AggregateFunc) *DeviceDurationSelect
- func (s *DeviceDurationSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *DeviceDurationSelect) BoolX(ctx context.Context) bool
- func (s *DeviceDurationSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *DeviceDurationSelect) BoolsX(ctx context.Context) []bool
- func (c DeviceDurationSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *DeviceDurationSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *DeviceDurationSelect) Float64X(ctx context.Context) float64
- func (s *DeviceDurationSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *DeviceDurationSelect) Float64sX(ctx context.Context) []float64
- func (s *DeviceDurationSelect) Int(ctx context.Context) (_ int, err error)
- func (s *DeviceDurationSelect) IntX(ctx context.Context) int
- func (s *DeviceDurationSelect) Ints(ctx context.Context) ([]int, error)
- func (s *DeviceDurationSelect) IntsX(ctx context.Context) []int
- func (dds *DeviceDurationSelect) Modify(modifiers ...func(s *sql.Selector)) *DeviceDurationSelect
- func (c DeviceDurationSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dds *DeviceDurationSelect) Scan(ctx context.Context, v any) error
- func (s *DeviceDurationSelect) ScanX(ctx context.Context, v any)
- func (s *DeviceDurationSelect) String(ctx context.Context) (_ string, err error)
- func (s *DeviceDurationSelect) StringX(ctx context.Context) string
- func (s *DeviceDurationSelect) Strings(ctx context.Context) ([]string, error)
- func (s *DeviceDurationSelect) StringsX(ctx context.Context) []string
- type DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) AddEbutton(i int32) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) AddPreparation(i int32) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) AddSort(u int32) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) AddStandBy(i int32) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) AddStatus(u int8) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) AddWaiting(i int32) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) AddWashing(i int32) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) AddWashingCold(i int32) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) ClearDate() *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) ClearDayJson() *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) ClearEbutton() *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) ClearPreparation() *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) ClearStandBy() *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) ClearStatus() *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) ClearWaiting() *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) ClearWashing() *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) ClearWashingCold() *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) Exec(ctx context.Context) error
- func (c *DeviceDurationUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ddu *DeviceDurationUpdate) ExecX(ctx context.Context)
- func (ddu *DeviceDurationUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) Mutation() *DeviceDurationMutation
- func (c *DeviceDurationUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ddu *DeviceDurationUpdate) Save(ctx context.Context) (int, error)
- func (ddu *DeviceDurationUpdate) SaveX(ctx context.Context) int
- func (ddu *DeviceDurationUpdate) SetDate(s string) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) SetDayJson(s string) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) SetDeviceName(s string) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) SetEbutton(i int32) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) SetIotID(s string) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) SetNillableDate(s *string) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) SetNillableDayJson(s *string) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) SetNillableDeviceName(s *string) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) SetNillableEbutton(i *int32) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) SetNillableIotID(s *string) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) SetNillablePreparation(i *int32) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) SetNillableProductKey(s *string) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) SetNillableSort(u *uint32) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) SetNillableStandBy(i *int32) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) SetNillableStatus(u *uint8) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) SetNillableWaiting(i *int32) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) SetNillableWashing(i *int32) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) SetNillableWashingCold(i *int32) *DeviceDurationUpdate
- func (dd *DeviceDurationUpdate) SetNotNilDate(value *string) *DeviceDurationUpdate
- func (dd *DeviceDurationUpdate) SetNotNilDayJson(value *string) *DeviceDurationUpdate
- func (dd *DeviceDurationUpdate) SetNotNilDeviceName(value *string) *DeviceDurationUpdate
- func (dd *DeviceDurationUpdate) SetNotNilEbutton(value *int32) *DeviceDurationUpdate
- func (dd *DeviceDurationUpdate) SetNotNilIotID(value *string) *DeviceDurationUpdate
- func (dd *DeviceDurationUpdate) SetNotNilPreparation(value *int32) *DeviceDurationUpdate
- func (dd *DeviceDurationUpdate) SetNotNilProductKey(value *string) *DeviceDurationUpdate
- func (dd *DeviceDurationUpdate) SetNotNilSort(value *uint32) *DeviceDurationUpdate
- func (dd *DeviceDurationUpdate) SetNotNilStandBy(value *int32) *DeviceDurationUpdate
- func (dd *DeviceDurationUpdate) SetNotNilStatus(value *uint8) *DeviceDurationUpdate
- func (dd *DeviceDurationUpdate) SetNotNilUpdatedAt(value *time.Time) *DeviceDurationUpdate
- func (dd *DeviceDurationUpdate) SetNotNilWaiting(value *int32) *DeviceDurationUpdate
- func (dd *DeviceDurationUpdate) SetNotNilWashing(value *int32) *DeviceDurationUpdate
- func (dd *DeviceDurationUpdate) SetNotNilWashingCold(value *int32) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) SetPreparation(i int32) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) SetProductKey(s string) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) SetSort(u uint32) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) SetStandBy(i int32) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) SetStatus(u uint8) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) SetUpdatedAt(t time.Time) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) SetWaiting(i int32) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) SetWashing(i int32) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) SetWashingCold(i int32) *DeviceDurationUpdate
- func (ddu *DeviceDurationUpdate) Where(ps ...predicate.DeviceDuration) *DeviceDurationUpdate
- type DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) AddEbutton(i int32) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) AddPreparation(i int32) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) AddSort(u int32) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) AddStandBy(i int32) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) AddStatus(u int8) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) AddWaiting(i int32) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) AddWashing(i int32) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) AddWashingCold(i int32) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) ClearDate() *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) ClearDayJson() *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) ClearEbutton() *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) ClearPreparation() *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) ClearStandBy() *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) ClearStatus() *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) ClearWaiting() *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) ClearWashing() *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) ClearWashingCold() *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) Exec(ctx context.Context) error
- func (c *DeviceDurationUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dduo *DeviceDurationUpdateOne) ExecX(ctx context.Context)
- func (dduo *DeviceDurationUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) Mutation() *DeviceDurationMutation
- func (c *DeviceDurationUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dduo *DeviceDurationUpdateOne) Save(ctx context.Context) (*DeviceDuration, error)
- func (dduo *DeviceDurationUpdateOne) SaveX(ctx context.Context) *DeviceDuration
- func (dduo *DeviceDurationUpdateOne) Select(field string, fields ...string) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) SetDate(s string) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) SetDayJson(s string) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) SetDeviceName(s string) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) SetEbutton(i int32) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) SetIotID(s string) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) SetNillableDate(s *string) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) SetNillableDayJson(s *string) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) SetNillableDeviceName(s *string) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) SetNillableEbutton(i *int32) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) SetNillableIotID(s *string) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) SetNillablePreparation(i *int32) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) SetNillableProductKey(s *string) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) SetNillableSort(u *uint32) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) SetNillableStandBy(i *int32) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) SetNillableStatus(u *uint8) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) SetNillableWaiting(i *int32) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) SetNillableWashing(i *int32) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) SetNillableWashingCold(i *int32) *DeviceDurationUpdateOne
- func (dd *DeviceDurationUpdateOne) SetNotNilDate(value *string) *DeviceDurationUpdateOne
- func (dd *DeviceDurationUpdateOne) SetNotNilDayJson(value *string) *DeviceDurationUpdateOne
- func (dd *DeviceDurationUpdateOne) SetNotNilDeviceName(value *string) *DeviceDurationUpdateOne
- func (dd *DeviceDurationUpdateOne) SetNotNilEbutton(value *int32) *DeviceDurationUpdateOne
- func (dd *DeviceDurationUpdateOne) SetNotNilIotID(value *string) *DeviceDurationUpdateOne
- func (dd *DeviceDurationUpdateOne) SetNotNilPreparation(value *int32) *DeviceDurationUpdateOne
- func (dd *DeviceDurationUpdateOne) SetNotNilProductKey(value *string) *DeviceDurationUpdateOne
- func (dd *DeviceDurationUpdateOne) SetNotNilSort(value *uint32) *DeviceDurationUpdateOne
- func (dd *DeviceDurationUpdateOne) SetNotNilStandBy(value *int32) *DeviceDurationUpdateOne
- func (dd *DeviceDurationUpdateOne) SetNotNilStatus(value *uint8) *DeviceDurationUpdateOne
- func (dd *DeviceDurationUpdateOne) SetNotNilUpdatedAt(value *time.Time) *DeviceDurationUpdateOne
- func (dd *DeviceDurationUpdateOne) SetNotNilWaiting(value *int32) *DeviceDurationUpdateOne
- func (dd *DeviceDurationUpdateOne) SetNotNilWashing(value *int32) *DeviceDurationUpdateOne
- func (dd *DeviceDurationUpdateOne) SetNotNilWashingCold(value *int32) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) SetPreparation(i int32) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) SetProductKey(s string) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) SetSort(u uint32) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) SetStandBy(i int32) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) SetStatus(u uint8) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) SetUpdatedAt(t time.Time) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) SetWaiting(i int32) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) SetWashing(i int32) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) SetWashingCold(i int32) *DeviceDurationUpdateOne
- func (dduo *DeviceDurationUpdateOne) Where(ps ...predicate.DeviceDuration) *DeviceDurationUpdateOne
- type DeviceDurationUpsert
- func (u *DeviceDurationUpsert) AddEbutton(v int32) *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) AddPreparation(v int32) *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) AddSort(v uint32) *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) AddStandBy(v int32) *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) AddStatus(v uint8) *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) AddWaiting(v int32) *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) AddWashing(v int32) *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) AddWashingCold(v int32) *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) ClearDate() *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) ClearDayJson() *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) ClearEbutton() *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) ClearPreparation() *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) ClearStandBy() *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) ClearStatus() *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) ClearWaiting() *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) ClearWashing() *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) ClearWashingCold() *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) SetDate(v string) *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) SetDayJson(v string) *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) SetDeviceName(v string) *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) SetEbutton(v int32) *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) SetIotID(v string) *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) SetPreparation(v int32) *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) SetProductKey(v string) *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) SetSort(v uint32) *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) SetStandBy(v int32) *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) SetStatus(v uint8) *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) SetUpdatedAt(v time.Time) *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) SetWaiting(v int32) *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) SetWashing(v int32) *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) SetWashingCold(v int32) *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) UpdateDate() *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) UpdateDayJson() *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) UpdateDeviceName() *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) UpdateEbutton() *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) UpdateIotID() *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) UpdatePreparation() *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) UpdateProductKey() *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) UpdateSort() *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) UpdateStandBy() *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) UpdateStatus() *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) UpdateUpdatedAt() *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) UpdateWaiting() *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) UpdateWashing() *DeviceDurationUpsert
- func (u *DeviceDurationUpsert) UpdateWashingCold() *DeviceDurationUpsert
- type DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) AddEbutton(v int32) *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) AddPreparation(v int32) *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) AddSort(v uint32) *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) AddStandBy(v int32) *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) AddStatus(v uint8) *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) AddWaiting(v int32) *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) AddWashing(v int32) *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) AddWashingCold(v int32) *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) ClearDate() *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) ClearDayJson() *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) ClearEbutton() *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) ClearPreparation() *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) ClearStandBy() *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) ClearStatus() *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) ClearWaiting() *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) ClearWashing() *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) ClearWashingCold() *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) DoNothing() *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) Exec(ctx context.Context) error
- func (u *DeviceDurationUpsertBulk) ExecX(ctx context.Context)
- func (u *DeviceDurationUpsertBulk) Ignore() *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) SetDate(v string) *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) SetDayJson(v string) *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) SetDeviceName(v string) *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) SetEbutton(v int32) *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) SetIotID(v string) *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) SetPreparation(v int32) *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) SetProductKey(v string) *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) SetSort(v uint32) *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) SetStandBy(v int32) *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) SetStatus(v uint8) *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) SetUpdatedAt(v time.Time) *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) SetWaiting(v int32) *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) SetWashing(v int32) *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) SetWashingCold(v int32) *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) Update(set func(*DeviceDurationUpsert)) *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) UpdateDate() *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) UpdateDayJson() *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) UpdateDeviceName() *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) UpdateEbutton() *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) UpdateIotID() *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) UpdateNewValues() *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) UpdatePreparation() *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) UpdateProductKey() *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) UpdateSort() *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) UpdateStandBy() *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) UpdateStatus() *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) UpdateUpdatedAt() *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) UpdateWaiting() *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) UpdateWashing() *DeviceDurationUpsertBulk
- func (u *DeviceDurationUpsertBulk) UpdateWashingCold() *DeviceDurationUpsertBulk
- type DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) AddEbutton(v int32) *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) AddPreparation(v int32) *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) AddSort(v uint32) *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) AddStandBy(v int32) *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) AddStatus(v uint8) *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) AddWaiting(v int32) *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) AddWashing(v int32) *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) AddWashingCold(v int32) *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) ClearDate() *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) ClearDayJson() *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) ClearEbutton() *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) ClearPreparation() *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) ClearStandBy() *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) ClearStatus() *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) ClearWaiting() *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) ClearWashing() *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) ClearWashingCold() *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) DoNothing() *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) Exec(ctx context.Context) error
- func (u *DeviceDurationUpsertOne) ExecX(ctx context.Context)
- func (u *DeviceDurationUpsertOne) ID(ctx context.Context) (id uint64, err error)
- func (u *DeviceDurationUpsertOne) IDX(ctx context.Context) uint64
- func (u *DeviceDurationUpsertOne) Ignore() *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) SetDate(v string) *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) SetDayJson(v string) *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) SetDeviceName(v string) *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) SetEbutton(v int32) *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) SetIotID(v string) *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) SetPreparation(v int32) *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) SetProductKey(v string) *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) SetSort(v uint32) *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) SetStandBy(v int32) *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) SetStatus(v uint8) *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) SetUpdatedAt(v time.Time) *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) SetWaiting(v int32) *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) SetWashing(v int32) *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) SetWashingCold(v int32) *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) Update(set func(*DeviceDurationUpsert)) *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) UpdateDate() *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) UpdateDayJson() *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) UpdateDeviceName() *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) UpdateEbutton() *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) UpdateIotID() *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) UpdateNewValues() *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) UpdatePreparation() *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) UpdateProductKey() *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) UpdateSort() *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) UpdateStandBy() *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) UpdateStatus() *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) UpdateUpdatedAt() *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) UpdateWaiting() *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) UpdateWashing() *DeviceDurationUpsertOne
- func (u *DeviceDurationUpsertOne) UpdateWashingCold() *DeviceDurationUpsertOne
- type DeviceDurations
- type DeviceEvent
- func (c *DeviceEvent) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *DeviceEvent) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (de *DeviceEvent) String() string
- func (de *DeviceEvent) Unwrap() *DeviceEvent
- func (de *DeviceEvent) Update() *DeviceEventUpdateOne
- func (de *DeviceEvent) Value(name string) (ent.Value, error)
- type DeviceEventClient
- func (c *DeviceEventClient) Create() *DeviceEventCreate
- func (c *DeviceEventClient) CreateBulk(builders ...*DeviceEventCreate) *DeviceEventCreateBulk
- func (c *DeviceEventClient) Delete() *DeviceEventDelete
- func (c *DeviceEventClient) DeleteOne(de *DeviceEvent) *DeviceEventDeleteOne
- func (c *DeviceEventClient) DeleteOneID(id uint64) *DeviceEventDeleteOne
- func (c *DeviceEventClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *DeviceEventClient) Get(ctx context.Context, id uint64) (*DeviceEvent, error)
- func (c *DeviceEventClient) GetX(ctx context.Context, id uint64) *DeviceEvent
- func (c *DeviceEventClient) Hooks() []Hook
- func (c *DeviceEventClient) Intercept(interceptors ...Interceptor)
- func (c *DeviceEventClient) Interceptors() []Interceptor
- func (c *DeviceEventClient) MapCreateBulk(slice any, setFunc func(*DeviceEventCreate, int)) *DeviceEventCreateBulk
- func (c *DeviceEventClient) Query() *DeviceEventQuery
- func (c *DeviceEventClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *DeviceEventClient) Update() *DeviceEventUpdate
- func (c *DeviceEventClient) UpdateOne(de *DeviceEvent) *DeviceEventUpdateOne
- func (c *DeviceEventClient) UpdateOneID(id uint64) *DeviceEventUpdateOne
- func (c *DeviceEventClient) Use(hooks ...Hook)
- type DeviceEventCreate
- func (dec *DeviceEventCreate) Exec(ctx context.Context) error
- func (c *DeviceEventCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dec *DeviceEventCreate) ExecX(ctx context.Context)
- func (dec *DeviceEventCreate) Mutation() *DeviceEventMutation
- func (dec *DeviceEventCreate) OnConflict(opts ...sql.ConflictOption) *DeviceEventUpsertOne
- func (dec *DeviceEventCreate) OnConflictColumns(columns ...string) *DeviceEventUpsertOne
- func (c *DeviceEventCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dec *DeviceEventCreate) Save(ctx context.Context) (*DeviceEvent, error)
- func (dec *DeviceEventCreate) SaveX(ctx context.Context) *DeviceEvent
- func (dec *DeviceEventCreate) SetCreatedAt(t time.Time) *DeviceEventCreate
- func (dec *DeviceEventCreate) SetEventType(s string) *DeviceEventCreate
- func (dec *DeviceEventCreate) SetID(u uint64) *DeviceEventCreate
- func (dec *DeviceEventCreate) SetIdentifier(s string) *DeviceEventCreate
- func (dec *DeviceEventCreate) SetIotID(s string) *DeviceEventCreate
- func (dec *DeviceEventCreate) SetName(s string) *DeviceEventCreate
- func (dec *DeviceEventCreate) SetNillableCreatedAt(t *time.Time) *DeviceEventCreate
- func (dec *DeviceEventCreate) SetNillableEventType(s *string) *DeviceEventCreate
- func (dec *DeviceEventCreate) SetNillableOutputData(s *string) *DeviceEventCreate
- func (dec *DeviceEventCreate) SetNillableSort(u *uint32) *DeviceEventCreate
- func (dec *DeviceEventCreate) SetNillableStatus(u *uint8) *DeviceEventCreate
- func (dec *DeviceEventCreate) SetNillableUpdatedAt(t *time.Time) *DeviceEventCreate
- func (de *DeviceEventCreate) SetNotNilEventType(value *string) *DeviceEventCreate
- func (de *DeviceEventCreate) SetNotNilIdentifier(value *string) *DeviceEventCreate
- func (de *DeviceEventCreate) SetNotNilIotID(value *string) *DeviceEventCreate
- func (de *DeviceEventCreate) SetNotNilName(value *string) *DeviceEventCreate
- func (de *DeviceEventCreate) SetNotNilOutputData(value *string) *DeviceEventCreate
- func (de *DeviceEventCreate) SetNotNilSort(value *uint32) *DeviceEventCreate
- func (de *DeviceEventCreate) SetNotNilStatus(value *uint8) *DeviceEventCreate
- func (de *DeviceEventCreate) SetNotNilTime(value *string) *DeviceEventCreate
- func (de *DeviceEventCreate) SetNotNilUpdatedAt(value *time.Time) *DeviceEventCreate
- func (dec *DeviceEventCreate) SetOutputData(s string) *DeviceEventCreate
- func (dec *DeviceEventCreate) SetSort(u uint32) *DeviceEventCreate
- func (dec *DeviceEventCreate) SetStatus(u uint8) *DeviceEventCreate
- func (dec *DeviceEventCreate) SetTime(s string) *DeviceEventCreate
- func (dec *DeviceEventCreate) SetUpdatedAt(t time.Time) *DeviceEventCreate
- func (dec *DeviceEventCreate) TableName(s string) *DeviceEventCreate
- type DeviceEventCreateBulk
- func (decb *DeviceEventCreateBulk) Exec(ctx context.Context) error
- func (c *DeviceEventCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (decb *DeviceEventCreateBulk) ExecX(ctx context.Context)
- func (decb *DeviceEventCreateBulk) OnConflict(opts ...sql.ConflictOption) *DeviceEventUpsertBulk
- func (decb *DeviceEventCreateBulk) OnConflictColumns(columns ...string) *DeviceEventUpsertBulk
- func (c *DeviceEventCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (decb *DeviceEventCreateBulk) Save(ctx context.Context) ([]*DeviceEvent, error)
- func (decb *DeviceEventCreateBulk) SaveX(ctx context.Context) []*DeviceEvent
- type DeviceEventDelete
- func (ded *DeviceEventDelete) Exec(ctx context.Context) (int, error)
- func (c *DeviceEventDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ded *DeviceEventDelete) ExecX(ctx context.Context) int
- func (c *DeviceEventDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ded *DeviceEventDelete) Where(ps ...predicate.DeviceEvent) *DeviceEventDelete
- type DeviceEventDeleteOne
- type DeviceEventGroupBy
- func (degb *DeviceEventGroupBy) Aggregate(fns ...AggregateFunc) *DeviceEventGroupBy
- func (s *DeviceEventGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *DeviceEventGroupBy) BoolX(ctx context.Context) bool
- func (s *DeviceEventGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *DeviceEventGroupBy) BoolsX(ctx context.Context) []bool
- func (s *DeviceEventGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *DeviceEventGroupBy) Float64X(ctx context.Context) float64
- func (s *DeviceEventGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *DeviceEventGroupBy) Float64sX(ctx context.Context) []float64
- func (s *DeviceEventGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *DeviceEventGroupBy) IntX(ctx context.Context) int
- func (s *DeviceEventGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *DeviceEventGroupBy) IntsX(ctx context.Context) []int
- func (degb *DeviceEventGroupBy) Scan(ctx context.Context, v any) error
- func (s *DeviceEventGroupBy) ScanX(ctx context.Context, v any)
- func (s *DeviceEventGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *DeviceEventGroupBy) StringX(ctx context.Context) string
- func (s *DeviceEventGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *DeviceEventGroupBy) StringsX(ctx context.Context) []string
- type DeviceEventMutation
- func (m *DeviceEventMutation) AddField(name string, value ent.Value) error
- func (m *DeviceEventMutation) AddSort(u int32)
- func (m *DeviceEventMutation) AddStatus(u int8)
- func (m *DeviceEventMutation) AddedEdges() []string
- func (m *DeviceEventMutation) AddedField(name string) (ent.Value, bool)
- func (m *DeviceEventMutation) AddedFields() []string
- func (m *DeviceEventMutation) AddedIDs(name string) []ent.Value
- func (m *DeviceEventMutation) AddedSort() (r int32, exists bool)
- func (m *DeviceEventMutation) AddedStatus() (r int8, exists bool)
- func (m *DeviceEventMutation) ClearEdge(name string) error
- func (m *DeviceEventMutation) ClearEventType()
- func (m *DeviceEventMutation) ClearField(name string) error
- func (m *DeviceEventMutation) ClearOutputData()
- func (m *DeviceEventMutation) ClearStatus()
- func (m *DeviceEventMutation) ClearedEdges() []string
- func (m *DeviceEventMutation) ClearedFields() []string
- func (m DeviceEventMutation) Client() *Client
- func (m *DeviceEventMutation) CreatedAt() (r time.Time, exists bool)
- func (m *DeviceEventMutation) EdgeCleared(name string) bool
- func (m *DeviceEventMutation) EventType() (r string, exists bool)
- func (m *DeviceEventMutation) EventTypeCleared() bool
- func (c *DeviceEventMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *DeviceEventMutation) Field(name string) (ent.Value, bool)
- func (m *DeviceEventMutation) FieldCleared(name string) bool
- func (m *DeviceEventMutation) Fields() []string
- func (m *DeviceEventMutation) ID() (id uint64, exists bool)
- func (m *DeviceEventMutation) IDs(ctx context.Context) ([]uint64, error)
- func (m *DeviceEventMutation) Identifier() (r string, exists bool)
- func (m *DeviceEventMutation) IotID() (r string, exists bool)
- func (m *DeviceEventMutation) Name() (r string, exists bool)
- func (m *DeviceEventMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *DeviceEventMutation) OldEventType(ctx context.Context) (v string, err error)
- func (m *DeviceEventMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *DeviceEventMutation) OldIdentifier(ctx context.Context) (v string, err error)
- func (m *DeviceEventMutation) OldIotID(ctx context.Context) (v string, err error)
- func (m *DeviceEventMutation) OldName(ctx context.Context) (v string, err error)
- func (m *DeviceEventMutation) OldOutputData(ctx context.Context) (v string, err error)
- func (m *DeviceEventMutation) OldSort(ctx context.Context) (v uint32, err error)
- func (m *DeviceEventMutation) OldStatus(ctx context.Context) (v uint8, err error)
- func (m *DeviceEventMutation) OldTime(ctx context.Context) (v string, err error)
- func (m *DeviceEventMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *DeviceEventMutation) Op() Op
- func (m *DeviceEventMutation) OutputData() (r string, exists bool)
- func (m *DeviceEventMutation) OutputDataCleared() bool
- func (c *DeviceEventMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *DeviceEventMutation) RemovedEdges() []string
- func (m *DeviceEventMutation) RemovedIDs(name string) []ent.Value
- func (m *DeviceEventMutation) ResetCreatedAt()
- func (m *DeviceEventMutation) ResetEdge(name string) error
- func (m *DeviceEventMutation) ResetEventType()
- func (m *DeviceEventMutation) ResetField(name string) error
- func (m *DeviceEventMutation) ResetIdentifier()
- func (m *DeviceEventMutation) ResetIotID()
- func (m *DeviceEventMutation) ResetName()
- func (m *DeviceEventMutation) ResetOutputData()
- func (m *DeviceEventMutation) ResetSort()
- func (m *DeviceEventMutation) ResetStatus()
- func (m *DeviceEventMutation) ResetTime()
- func (m *DeviceEventMutation) ResetUpdatedAt()
- func (m *DeviceEventMutation) SetCreatedAt(t time.Time)
- func (m *DeviceEventMutation) SetEventType(s string)
- func (m *DeviceEventMutation) SetField(name string, value ent.Value) error
- func (m *DeviceEventMutation) SetID(id uint64)
- func (m *DeviceEventMutation) SetIdentifier(s string)
- func (m *DeviceEventMutation) SetIotID(s string)
- func (m *DeviceEventMutation) SetName(s string)
- func (m *DeviceEventMutation) SetOp(op Op)
- func (m *DeviceEventMutation) SetOutputData(s string)
- func (m *DeviceEventMutation) SetSort(u uint32)
- func (m *DeviceEventMutation) SetStatus(u uint8)
- func (m *DeviceEventMutation) SetTime(s string)
- func (m *DeviceEventMutation) SetUpdatedAt(t time.Time)
- func (m *DeviceEventMutation) Sort() (r uint32, exists bool)
- func (m *DeviceEventMutation) Status() (r uint8, exists bool)
- func (m *DeviceEventMutation) StatusCleared() bool
- func (m *DeviceEventMutation) Time() (r string, exists bool)
- func (m DeviceEventMutation) Tx() (*Tx, error)
- func (m *DeviceEventMutation) Type() string
- func (m *DeviceEventMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *DeviceEventMutation) Where(ps ...predicate.DeviceEvent)
- func (m *DeviceEventMutation) WhereP(ps ...func(*sql.Selector))
- type DeviceEventPageList
- type DeviceEventPager
- type DeviceEventPaginateOption
- type DeviceEventQuery
- func (deq *DeviceEventQuery) Aggregate(fns ...AggregateFunc) *DeviceEventSelect
- func (deq *DeviceEventQuery) All(ctx context.Context) ([]*DeviceEvent, error)
- func (deq *DeviceEventQuery) AllX(ctx context.Context) []*DeviceEvent
- func (deq *DeviceEventQuery) Clone() *DeviceEventQuery
- func (deq *DeviceEventQuery) Count(ctx context.Context) (int, error)
- func (deq *DeviceEventQuery) CountX(ctx context.Context) int
- func (c *DeviceEventQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (deq *DeviceEventQuery) Exist(ctx context.Context) (bool, error)
- func (deq *DeviceEventQuery) ExistX(ctx context.Context) bool
- func (deq *DeviceEventQuery) First(ctx context.Context) (*DeviceEvent, error)
- func (deq *DeviceEventQuery) FirstID(ctx context.Context) (id uint64, err error)
- func (deq *DeviceEventQuery) FirstIDX(ctx context.Context) uint64
- func (deq *DeviceEventQuery) FirstX(ctx context.Context) *DeviceEvent
- func (deq *DeviceEventQuery) GroupBy(field string, fields ...string) *DeviceEventGroupBy
- func (deq *DeviceEventQuery) IDs(ctx context.Context) (ids []uint64, err error)
- func (deq *DeviceEventQuery) IDsX(ctx context.Context) []uint64
- func (deq *DeviceEventQuery) Limit(limit int) *DeviceEventQuery
- func (deq *DeviceEventQuery) Modify(modifiers ...func(s *sql.Selector)) *DeviceEventSelect
- func (deq *DeviceEventQuery) Offset(offset int) *DeviceEventQuery
- func (deq *DeviceEventQuery) Only(ctx context.Context) (*DeviceEvent, error)
- func (deq *DeviceEventQuery) OnlyID(ctx context.Context) (id uint64, err error)
- func (deq *DeviceEventQuery) OnlyIDX(ctx context.Context) uint64
- func (deq *DeviceEventQuery) OnlyX(ctx context.Context) *DeviceEvent
- func (deq *DeviceEventQuery) Order(o ...deviceevent.OrderOption) *DeviceEventQuery
- func (de *DeviceEventQuery) Page(ctx context.Context, pageNum uint64, pageSize uint64, ...) (*DeviceEventPageList, error)
- func (c *DeviceEventQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (deq *DeviceEventQuery) Select(fields ...string) *DeviceEventSelect
- func (deq *DeviceEventQuery) Unique(unique bool) *DeviceEventQuery
- func (deq *DeviceEventQuery) Where(ps ...predicate.DeviceEvent) *DeviceEventQuery
- type DeviceEventSelect
- func (des *DeviceEventSelect) Aggregate(fns ...AggregateFunc) *DeviceEventSelect
- func (s *DeviceEventSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *DeviceEventSelect) BoolX(ctx context.Context) bool
- func (s *DeviceEventSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *DeviceEventSelect) BoolsX(ctx context.Context) []bool
- func (c DeviceEventSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *DeviceEventSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *DeviceEventSelect) Float64X(ctx context.Context) float64
- func (s *DeviceEventSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *DeviceEventSelect) Float64sX(ctx context.Context) []float64
- func (s *DeviceEventSelect) Int(ctx context.Context) (_ int, err error)
- func (s *DeviceEventSelect) IntX(ctx context.Context) int
- func (s *DeviceEventSelect) Ints(ctx context.Context) ([]int, error)
- func (s *DeviceEventSelect) IntsX(ctx context.Context) []int
- func (des *DeviceEventSelect) Modify(modifiers ...func(s *sql.Selector)) *DeviceEventSelect
- func (c DeviceEventSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (des *DeviceEventSelect) Scan(ctx context.Context, v any) error
- func (s *DeviceEventSelect) ScanX(ctx context.Context, v any)
- func (s *DeviceEventSelect) String(ctx context.Context) (_ string, err error)
- func (s *DeviceEventSelect) StringX(ctx context.Context) string
- func (s *DeviceEventSelect) Strings(ctx context.Context) ([]string, error)
- func (s *DeviceEventSelect) StringsX(ctx context.Context) []string
- type DeviceEventUpdate
- func (deu *DeviceEventUpdate) AddSort(u int32) *DeviceEventUpdate
- func (deu *DeviceEventUpdate) AddStatus(u int8) *DeviceEventUpdate
- func (deu *DeviceEventUpdate) ClearEventType() *DeviceEventUpdate
- func (deu *DeviceEventUpdate) ClearOutputData() *DeviceEventUpdate
- func (deu *DeviceEventUpdate) ClearStatus() *DeviceEventUpdate
- func (deu *DeviceEventUpdate) Exec(ctx context.Context) error
- func (c *DeviceEventUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (deu *DeviceEventUpdate) ExecX(ctx context.Context)
- func (deu *DeviceEventUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceEventUpdate
- func (deu *DeviceEventUpdate) Mutation() *DeviceEventMutation
- func (c *DeviceEventUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (deu *DeviceEventUpdate) Save(ctx context.Context) (int, error)
- func (deu *DeviceEventUpdate) SaveX(ctx context.Context) int
- func (deu *DeviceEventUpdate) SetEventType(s string) *DeviceEventUpdate
- func (deu *DeviceEventUpdate) SetIdentifier(s string) *DeviceEventUpdate
- func (deu *DeviceEventUpdate) SetIotID(s string) *DeviceEventUpdate
- func (deu *DeviceEventUpdate) SetName(s string) *DeviceEventUpdate
- func (deu *DeviceEventUpdate) SetNillableEventType(s *string) *DeviceEventUpdate
- func (deu *DeviceEventUpdate) SetNillableIdentifier(s *string) *DeviceEventUpdate
- func (deu *DeviceEventUpdate) SetNillableIotID(s *string) *DeviceEventUpdate
- func (deu *DeviceEventUpdate) SetNillableName(s *string) *DeviceEventUpdate
- func (deu *DeviceEventUpdate) SetNillableOutputData(s *string) *DeviceEventUpdate
- func (deu *DeviceEventUpdate) SetNillableSort(u *uint32) *DeviceEventUpdate
- func (deu *DeviceEventUpdate) SetNillableStatus(u *uint8) *DeviceEventUpdate
- func (deu *DeviceEventUpdate) SetNillableTime(s *string) *DeviceEventUpdate
- func (de *DeviceEventUpdate) SetNotNilEventType(value *string) *DeviceEventUpdate
- func (de *DeviceEventUpdate) SetNotNilIdentifier(value *string) *DeviceEventUpdate
- func (de *DeviceEventUpdate) SetNotNilIotID(value *string) *DeviceEventUpdate
- func (de *DeviceEventUpdate) SetNotNilName(value *string) *DeviceEventUpdate
- func (de *DeviceEventUpdate) SetNotNilOutputData(value *string) *DeviceEventUpdate
- func (de *DeviceEventUpdate) SetNotNilSort(value *uint32) *DeviceEventUpdate
- func (de *DeviceEventUpdate) SetNotNilStatus(value *uint8) *DeviceEventUpdate
- func (de *DeviceEventUpdate) SetNotNilTime(value *string) *DeviceEventUpdate
- func (de *DeviceEventUpdate) SetNotNilUpdatedAt(value *time.Time) *DeviceEventUpdate
- func (deu *DeviceEventUpdate) SetOutputData(s string) *DeviceEventUpdate
- func (deu *DeviceEventUpdate) SetSort(u uint32) *DeviceEventUpdate
- func (deu *DeviceEventUpdate) SetStatus(u uint8) *DeviceEventUpdate
- func (deu *DeviceEventUpdate) SetTime(s string) *DeviceEventUpdate
- func (deu *DeviceEventUpdate) SetUpdatedAt(t time.Time) *DeviceEventUpdate
- func (deu *DeviceEventUpdate) Where(ps ...predicate.DeviceEvent) *DeviceEventUpdate
- type DeviceEventUpdateOne
- func (deuo *DeviceEventUpdateOne) AddSort(u int32) *DeviceEventUpdateOne
- func (deuo *DeviceEventUpdateOne) AddStatus(u int8) *DeviceEventUpdateOne
- func (deuo *DeviceEventUpdateOne) ClearEventType() *DeviceEventUpdateOne
- func (deuo *DeviceEventUpdateOne) ClearOutputData() *DeviceEventUpdateOne
- func (deuo *DeviceEventUpdateOne) ClearStatus() *DeviceEventUpdateOne
- func (deuo *DeviceEventUpdateOne) Exec(ctx context.Context) error
- func (c *DeviceEventUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (deuo *DeviceEventUpdateOne) ExecX(ctx context.Context)
- func (deuo *DeviceEventUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceEventUpdateOne
- func (deuo *DeviceEventUpdateOne) Mutation() *DeviceEventMutation
- func (c *DeviceEventUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (deuo *DeviceEventUpdateOne) Save(ctx context.Context) (*DeviceEvent, error)
- func (deuo *DeviceEventUpdateOne) SaveX(ctx context.Context) *DeviceEvent
- func (deuo *DeviceEventUpdateOne) Select(field string, fields ...string) *DeviceEventUpdateOne
- func (deuo *DeviceEventUpdateOne) SetEventType(s string) *DeviceEventUpdateOne
- func (deuo *DeviceEventUpdateOne) SetIdentifier(s string) *DeviceEventUpdateOne
- func (deuo *DeviceEventUpdateOne) SetIotID(s string) *DeviceEventUpdateOne
- func (deuo *DeviceEventUpdateOne) SetName(s string) *DeviceEventUpdateOne
- func (deuo *DeviceEventUpdateOne) SetNillableEventType(s *string) *DeviceEventUpdateOne
- func (deuo *DeviceEventUpdateOne) SetNillableIdentifier(s *string) *DeviceEventUpdateOne
- func (deuo *DeviceEventUpdateOne) SetNillableIotID(s *string) *DeviceEventUpdateOne
- func (deuo *DeviceEventUpdateOne) SetNillableName(s *string) *DeviceEventUpdateOne
- func (deuo *DeviceEventUpdateOne) SetNillableOutputData(s *string) *DeviceEventUpdateOne
- func (deuo *DeviceEventUpdateOne) SetNillableSort(u *uint32) *DeviceEventUpdateOne
- func (deuo *DeviceEventUpdateOne) SetNillableStatus(u *uint8) *DeviceEventUpdateOne
- func (deuo *DeviceEventUpdateOne) SetNillableTime(s *string) *DeviceEventUpdateOne
- func (de *DeviceEventUpdateOne) SetNotNilEventType(value *string) *DeviceEventUpdateOne
- func (de *DeviceEventUpdateOne) SetNotNilIdentifier(value *string) *DeviceEventUpdateOne
- func (de *DeviceEventUpdateOne) SetNotNilIotID(value *string) *DeviceEventUpdateOne
- func (de *DeviceEventUpdateOne) SetNotNilName(value *string) *DeviceEventUpdateOne
- func (de *DeviceEventUpdateOne) SetNotNilOutputData(value *string) *DeviceEventUpdateOne
- func (de *DeviceEventUpdateOne) SetNotNilSort(value *uint32) *DeviceEventUpdateOne
- func (de *DeviceEventUpdateOne) SetNotNilStatus(value *uint8) *DeviceEventUpdateOne
- func (de *DeviceEventUpdateOne) SetNotNilTime(value *string) *DeviceEventUpdateOne
- func (de *DeviceEventUpdateOne) SetNotNilUpdatedAt(value *time.Time) *DeviceEventUpdateOne
- func (deuo *DeviceEventUpdateOne) SetOutputData(s string) *DeviceEventUpdateOne
- func (deuo *DeviceEventUpdateOne) SetSort(u uint32) *DeviceEventUpdateOne
- func (deuo *DeviceEventUpdateOne) SetStatus(u uint8) *DeviceEventUpdateOne
- func (deuo *DeviceEventUpdateOne) SetTime(s string) *DeviceEventUpdateOne
- func (deuo *DeviceEventUpdateOne) SetUpdatedAt(t time.Time) *DeviceEventUpdateOne
- func (deuo *DeviceEventUpdateOne) Where(ps ...predicate.DeviceEvent) *DeviceEventUpdateOne
- type DeviceEventUpsert
- func (u *DeviceEventUpsert) AddSort(v uint32) *DeviceEventUpsert
- func (u *DeviceEventUpsert) AddStatus(v uint8) *DeviceEventUpsert
- func (u *DeviceEventUpsert) ClearEventType() *DeviceEventUpsert
- func (u *DeviceEventUpsert) ClearOutputData() *DeviceEventUpsert
- func (u *DeviceEventUpsert) ClearStatus() *DeviceEventUpsert
- func (u *DeviceEventUpsert) SetEventType(v string) *DeviceEventUpsert
- func (u *DeviceEventUpsert) SetIdentifier(v string) *DeviceEventUpsert
- func (u *DeviceEventUpsert) SetIotID(v string) *DeviceEventUpsert
- func (u *DeviceEventUpsert) SetName(v string) *DeviceEventUpsert
- func (u *DeviceEventUpsert) SetOutputData(v string) *DeviceEventUpsert
- func (u *DeviceEventUpsert) SetSort(v uint32) *DeviceEventUpsert
- func (u *DeviceEventUpsert) SetStatus(v uint8) *DeviceEventUpsert
- func (u *DeviceEventUpsert) SetTime(v string) *DeviceEventUpsert
- func (u *DeviceEventUpsert) SetUpdatedAt(v time.Time) *DeviceEventUpsert
- func (u *DeviceEventUpsert) UpdateEventType() *DeviceEventUpsert
- func (u *DeviceEventUpsert) UpdateIdentifier() *DeviceEventUpsert
- func (u *DeviceEventUpsert) UpdateIotID() *DeviceEventUpsert
- func (u *DeviceEventUpsert) UpdateName() *DeviceEventUpsert
- func (u *DeviceEventUpsert) UpdateOutputData() *DeviceEventUpsert
- func (u *DeviceEventUpsert) UpdateSort() *DeviceEventUpsert
- func (u *DeviceEventUpsert) UpdateStatus() *DeviceEventUpsert
- func (u *DeviceEventUpsert) UpdateTime() *DeviceEventUpsert
- func (u *DeviceEventUpsert) UpdateUpdatedAt() *DeviceEventUpsert
- type DeviceEventUpsertBulk
- func (u *DeviceEventUpsertBulk) AddSort(v uint32) *DeviceEventUpsertBulk
- func (u *DeviceEventUpsertBulk) AddStatus(v uint8) *DeviceEventUpsertBulk
- func (u *DeviceEventUpsertBulk) ClearEventType() *DeviceEventUpsertBulk
- func (u *DeviceEventUpsertBulk) ClearOutputData() *DeviceEventUpsertBulk
- func (u *DeviceEventUpsertBulk) ClearStatus() *DeviceEventUpsertBulk
- func (u *DeviceEventUpsertBulk) DoNothing() *DeviceEventUpsertBulk
- func (u *DeviceEventUpsertBulk) Exec(ctx context.Context) error
- func (u *DeviceEventUpsertBulk) ExecX(ctx context.Context)
- func (u *DeviceEventUpsertBulk) Ignore() *DeviceEventUpsertBulk
- func (u *DeviceEventUpsertBulk) SetEventType(v string) *DeviceEventUpsertBulk
- func (u *DeviceEventUpsertBulk) SetIdentifier(v string) *DeviceEventUpsertBulk
- func (u *DeviceEventUpsertBulk) SetIotID(v string) *DeviceEventUpsertBulk
- func (u *DeviceEventUpsertBulk) SetName(v string) *DeviceEventUpsertBulk
- func (u *DeviceEventUpsertBulk) SetOutputData(v string) *DeviceEventUpsertBulk
- func (u *DeviceEventUpsertBulk) SetSort(v uint32) *DeviceEventUpsertBulk
- func (u *DeviceEventUpsertBulk) SetStatus(v uint8) *DeviceEventUpsertBulk
- func (u *DeviceEventUpsertBulk) SetTime(v string) *DeviceEventUpsertBulk
- func (u *DeviceEventUpsertBulk) SetUpdatedAt(v time.Time) *DeviceEventUpsertBulk
- func (u *DeviceEventUpsertBulk) Update(set func(*DeviceEventUpsert)) *DeviceEventUpsertBulk
- func (u *DeviceEventUpsertBulk) UpdateEventType() *DeviceEventUpsertBulk
- func (u *DeviceEventUpsertBulk) UpdateIdentifier() *DeviceEventUpsertBulk
- func (u *DeviceEventUpsertBulk) UpdateIotID() *DeviceEventUpsertBulk
- func (u *DeviceEventUpsertBulk) UpdateName() *DeviceEventUpsertBulk
- func (u *DeviceEventUpsertBulk) UpdateNewValues() *DeviceEventUpsertBulk
- func (u *DeviceEventUpsertBulk) UpdateOutputData() *DeviceEventUpsertBulk
- func (u *DeviceEventUpsertBulk) UpdateSort() *DeviceEventUpsertBulk
- func (u *DeviceEventUpsertBulk) UpdateStatus() *DeviceEventUpsertBulk
- func (u *DeviceEventUpsertBulk) UpdateTime() *DeviceEventUpsertBulk
- func (u *DeviceEventUpsertBulk) UpdateUpdatedAt() *DeviceEventUpsertBulk
- type DeviceEventUpsertOne
- func (u *DeviceEventUpsertOne) AddSort(v uint32) *DeviceEventUpsertOne
- func (u *DeviceEventUpsertOne) AddStatus(v uint8) *DeviceEventUpsertOne
- func (u *DeviceEventUpsertOne) ClearEventType() *DeviceEventUpsertOne
- func (u *DeviceEventUpsertOne) ClearOutputData() *DeviceEventUpsertOne
- func (u *DeviceEventUpsertOne) ClearStatus() *DeviceEventUpsertOne
- func (u *DeviceEventUpsertOne) DoNothing() *DeviceEventUpsertOne
- func (u *DeviceEventUpsertOne) Exec(ctx context.Context) error
- func (u *DeviceEventUpsertOne) ExecX(ctx context.Context)
- func (u *DeviceEventUpsertOne) ID(ctx context.Context) (id uint64, err error)
- func (u *DeviceEventUpsertOne) IDX(ctx context.Context) uint64
- func (u *DeviceEventUpsertOne) Ignore() *DeviceEventUpsertOne
- func (u *DeviceEventUpsertOne) SetEventType(v string) *DeviceEventUpsertOne
- func (u *DeviceEventUpsertOne) SetIdentifier(v string) *DeviceEventUpsertOne
- func (u *DeviceEventUpsertOne) SetIotID(v string) *DeviceEventUpsertOne
- func (u *DeviceEventUpsertOne) SetName(v string) *DeviceEventUpsertOne
- func (u *DeviceEventUpsertOne) SetOutputData(v string) *DeviceEventUpsertOne
- func (u *DeviceEventUpsertOne) SetSort(v uint32) *DeviceEventUpsertOne
- func (u *DeviceEventUpsertOne) SetStatus(v uint8) *DeviceEventUpsertOne
- func (u *DeviceEventUpsertOne) SetTime(v string) *DeviceEventUpsertOne
- func (u *DeviceEventUpsertOne) SetUpdatedAt(v time.Time) *DeviceEventUpsertOne
- func (u *DeviceEventUpsertOne) Update(set func(*DeviceEventUpsert)) *DeviceEventUpsertOne
- func (u *DeviceEventUpsertOne) UpdateEventType() *DeviceEventUpsertOne
- func (u *DeviceEventUpsertOne) UpdateIdentifier() *DeviceEventUpsertOne
- func (u *DeviceEventUpsertOne) UpdateIotID() *DeviceEventUpsertOne
- func (u *DeviceEventUpsertOne) UpdateName() *DeviceEventUpsertOne
- func (u *DeviceEventUpsertOne) UpdateNewValues() *DeviceEventUpsertOne
- func (u *DeviceEventUpsertOne) UpdateOutputData() *DeviceEventUpsertOne
- func (u *DeviceEventUpsertOne) UpdateSort() *DeviceEventUpsertOne
- func (u *DeviceEventUpsertOne) UpdateStatus() *DeviceEventUpsertOne
- func (u *DeviceEventUpsertOne) UpdateTime() *DeviceEventUpsertOne
- func (u *DeviceEventUpsertOne) UpdateUpdatedAt() *DeviceEventUpsertOne
- type DeviceEvents
- type DeviceKpi
- func (c *DeviceKpi) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *DeviceKpi) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dk *DeviceKpi) String() string
- func (dk *DeviceKpi) Unwrap() *DeviceKpi
- func (dk *DeviceKpi) Update() *DeviceKpiUpdateOne
- func (dk *DeviceKpi) Value(name string) (ent.Value, error)
- type DeviceKpiClient
- func (c *DeviceKpiClient) Create() *DeviceKpiCreate
- func (c *DeviceKpiClient) CreateBulk(builders ...*DeviceKpiCreate) *DeviceKpiCreateBulk
- func (c *DeviceKpiClient) Delete() *DeviceKpiDelete
- func (c *DeviceKpiClient) DeleteOne(dk *DeviceKpi) *DeviceKpiDeleteOne
- func (c *DeviceKpiClient) DeleteOneID(id uint64) *DeviceKpiDeleteOne
- func (c *DeviceKpiClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *DeviceKpiClient) Get(ctx context.Context, id uint64) (*DeviceKpi, error)
- func (c *DeviceKpiClient) GetX(ctx context.Context, id uint64) *DeviceKpi
- func (c *DeviceKpiClient) Hooks() []Hook
- func (c *DeviceKpiClient) Intercept(interceptors ...Interceptor)
- func (c *DeviceKpiClient) Interceptors() []Interceptor
- func (c *DeviceKpiClient) MapCreateBulk(slice any, setFunc func(*DeviceKpiCreate, int)) *DeviceKpiCreateBulk
- func (c *DeviceKpiClient) Query() *DeviceKpiQuery
- func (c *DeviceKpiClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *DeviceKpiClient) Update() *DeviceKpiUpdate
- func (c *DeviceKpiClient) UpdateOne(dk *DeviceKpi) *DeviceKpiUpdateOne
- func (c *DeviceKpiClient) UpdateOneID(id uint64) *DeviceKpiUpdateOne
- func (c *DeviceKpiClient) Use(hooks ...Hook)
- type DeviceKpiCreate
- func (dkc *DeviceKpiCreate) Exec(ctx context.Context) error
- func (c *DeviceKpiCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dkc *DeviceKpiCreate) ExecX(ctx context.Context)
- func (dkc *DeviceKpiCreate) Mutation() *DeviceKpiMutation
- func (dkc *DeviceKpiCreate) OnConflict(opts ...sql.ConflictOption) *DeviceKpiUpsertOne
- func (dkc *DeviceKpiCreate) OnConflictColumns(columns ...string) *DeviceKpiUpsertOne
- func (c *DeviceKpiCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dkc *DeviceKpiCreate) Save(ctx context.Context) (*DeviceKpi, error)
- func (dkc *DeviceKpiCreate) SaveX(ctx context.Context) *DeviceKpi
- func (dkc *DeviceKpiCreate) SetA(f float64) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetB(f float64) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetCreatedAt(t time.Time) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetCurrentDay1(i int64) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetCurrentDay28(i int64) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetCurrentDay7(i int64) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetDeviceName(s string) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetID(u uint64) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetIotID(s string) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetKpi(f float64) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetMonthKpi(f float64) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetNillableA(f *float64) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetNillableB(f *float64) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetNillableCreatedAt(t *time.Time) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetNillableCurrentDay1(i *int64) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetNillableCurrentDay28(i *int64) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetNillableCurrentDay7(i *int64) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetNillableKpi(f *float64) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetNillableMonthKpi(f *float64) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetNillableSort(u *uint32) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetNillableStatus(u *uint8) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetNillableUpdatedAt(t *time.Time) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetNillableWeekKpi(f *float64) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetNillableX(f *float64) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetNillableY(f *float64) *DeviceKpiCreate
- func (dk *DeviceKpiCreate) SetNotNilA(value *float64) *DeviceKpiCreate
- func (dk *DeviceKpiCreate) SetNotNilB(value *float64) *DeviceKpiCreate
- func (dk *DeviceKpiCreate) SetNotNilCurrentDay1(value *int64) *DeviceKpiCreate
- func (dk *DeviceKpiCreate) SetNotNilCurrentDay28(value *int64) *DeviceKpiCreate
- func (dk *DeviceKpiCreate) SetNotNilCurrentDay7(value *int64) *DeviceKpiCreate
- func (dk *DeviceKpiCreate) SetNotNilDeviceName(value *string) *DeviceKpiCreate
- func (dk *DeviceKpiCreate) SetNotNilIotID(value *string) *DeviceKpiCreate
- func (dk *DeviceKpiCreate) SetNotNilKpi(value *float64) *DeviceKpiCreate
- func (dk *DeviceKpiCreate) SetNotNilMonthKpi(value *float64) *DeviceKpiCreate
- func (dk *DeviceKpiCreate) SetNotNilProductKey(value *string) *DeviceKpiCreate
- func (dk *DeviceKpiCreate) SetNotNilSort(value *uint32) *DeviceKpiCreate
- func (dk *DeviceKpiCreate) SetNotNilStatus(value *uint8) *DeviceKpiCreate
- func (dk *DeviceKpiCreate) SetNotNilUpdatedAt(value *time.Time) *DeviceKpiCreate
- func (dk *DeviceKpiCreate) SetNotNilWeekKpi(value *float64) *DeviceKpiCreate
- func (dk *DeviceKpiCreate) SetNotNilX(value *float64) *DeviceKpiCreate
- func (dk *DeviceKpiCreate) SetNotNilY(value *float64) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetProductKey(s string) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetSort(u uint32) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetStatus(u uint8) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetUpdatedAt(t time.Time) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetWeekKpi(f float64) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetX(f float64) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) SetY(f float64) *DeviceKpiCreate
- func (dkc *DeviceKpiCreate) TableName(s string) *DeviceKpiCreate
- type DeviceKpiCreateBulk
- func (dkcb *DeviceKpiCreateBulk) Exec(ctx context.Context) error
- func (c *DeviceKpiCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dkcb *DeviceKpiCreateBulk) ExecX(ctx context.Context)
- func (dkcb *DeviceKpiCreateBulk) OnConflict(opts ...sql.ConflictOption) *DeviceKpiUpsertBulk
- func (dkcb *DeviceKpiCreateBulk) OnConflictColumns(columns ...string) *DeviceKpiUpsertBulk
- func (c *DeviceKpiCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dkcb *DeviceKpiCreateBulk) Save(ctx context.Context) ([]*DeviceKpi, error)
- func (dkcb *DeviceKpiCreateBulk) SaveX(ctx context.Context) []*DeviceKpi
- type DeviceKpiDelete
- func (dkd *DeviceKpiDelete) Exec(ctx context.Context) (int, error)
- func (c *DeviceKpiDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dkd *DeviceKpiDelete) ExecX(ctx context.Context) int
- func (c *DeviceKpiDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dkd *DeviceKpiDelete) Where(ps ...predicate.DeviceKpi) *DeviceKpiDelete
- type DeviceKpiDeleteOne
- type DeviceKpiGroupBy
- func (dkgb *DeviceKpiGroupBy) Aggregate(fns ...AggregateFunc) *DeviceKpiGroupBy
- func (s *DeviceKpiGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *DeviceKpiGroupBy) BoolX(ctx context.Context) bool
- func (s *DeviceKpiGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *DeviceKpiGroupBy) BoolsX(ctx context.Context) []bool
- func (s *DeviceKpiGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *DeviceKpiGroupBy) Float64X(ctx context.Context) float64
- func (s *DeviceKpiGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *DeviceKpiGroupBy) Float64sX(ctx context.Context) []float64
- func (s *DeviceKpiGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *DeviceKpiGroupBy) IntX(ctx context.Context) int
- func (s *DeviceKpiGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *DeviceKpiGroupBy) IntsX(ctx context.Context) []int
- func (dkgb *DeviceKpiGroupBy) Scan(ctx context.Context, v any) error
- func (s *DeviceKpiGroupBy) ScanX(ctx context.Context, v any)
- func (s *DeviceKpiGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *DeviceKpiGroupBy) StringX(ctx context.Context) string
- func (s *DeviceKpiGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *DeviceKpiGroupBy) StringsX(ctx context.Context) []string
- type DeviceKpiMutation
- func (m *DeviceKpiMutation) A() (r float64, exists bool)
- func (m *DeviceKpiMutation) ACleared() bool
- func (m *DeviceKpiMutation) AddA(f float64)
- func (m *DeviceKpiMutation) AddB(f float64)
- func (m *DeviceKpiMutation) AddCurrentDay1(i int64)
- func (m *DeviceKpiMutation) AddCurrentDay28(i int64)
- func (m *DeviceKpiMutation) AddCurrentDay7(i int64)
- func (m *DeviceKpiMutation) AddField(name string, value ent.Value) error
- func (m *DeviceKpiMutation) AddKpi(f float64)
- func (m *DeviceKpiMutation) AddMonthKpi(f float64)
- func (m *DeviceKpiMutation) AddSort(u int32)
- func (m *DeviceKpiMutation) AddStatus(u int8)
- func (m *DeviceKpiMutation) AddWeekKpi(f float64)
- func (m *DeviceKpiMutation) AddX(f float64)
- func (m *DeviceKpiMutation) AddY(f float64)
- func (m *DeviceKpiMutation) AddedA() (r float64, exists bool)
- func (m *DeviceKpiMutation) AddedB() (r float64, exists bool)
- func (m *DeviceKpiMutation) AddedCurrentDay1() (r int64, exists bool)
- func (m *DeviceKpiMutation) AddedCurrentDay28() (r int64, exists bool)
- func (m *DeviceKpiMutation) AddedCurrentDay7() (r int64, exists bool)
- func (m *DeviceKpiMutation) AddedEdges() []string
- func (m *DeviceKpiMutation) AddedField(name string) (ent.Value, bool)
- func (m *DeviceKpiMutation) AddedFields() []string
- func (m *DeviceKpiMutation) AddedIDs(name string) []ent.Value
- func (m *DeviceKpiMutation) AddedKpi() (r float64, exists bool)
- func (m *DeviceKpiMutation) AddedMonthKpi() (r float64, exists bool)
- func (m *DeviceKpiMutation) AddedSort() (r int32, exists bool)
- func (m *DeviceKpiMutation) AddedStatus() (r int8, exists bool)
- func (m *DeviceKpiMutation) AddedWeekKpi() (r float64, exists bool)
- func (m *DeviceKpiMutation) AddedX() (r float64, exists bool)
- func (m *DeviceKpiMutation) AddedY() (r float64, exists bool)
- func (m *DeviceKpiMutation) B() (r float64, exists bool)
- func (m *DeviceKpiMutation) BCleared() bool
- func (m *DeviceKpiMutation) ClearA()
- func (m *DeviceKpiMutation) ClearB()
- func (m *DeviceKpiMutation) ClearCurrentDay1()
- func (m *DeviceKpiMutation) ClearCurrentDay28()
- func (m *DeviceKpiMutation) ClearCurrentDay7()
- func (m *DeviceKpiMutation) ClearEdge(name string) error
- func (m *DeviceKpiMutation) ClearField(name string) error
- func (m *DeviceKpiMutation) ClearKpi()
- func (m *DeviceKpiMutation) ClearMonthKpi()
- func (m *DeviceKpiMutation) ClearStatus()
- func (m *DeviceKpiMutation) ClearWeekKpi()
- func (m *DeviceKpiMutation) ClearX()
- func (m *DeviceKpiMutation) ClearY()
- func (m *DeviceKpiMutation) ClearedEdges() []string
- func (m *DeviceKpiMutation) ClearedFields() []string
- func (m DeviceKpiMutation) Client() *Client
- func (m *DeviceKpiMutation) CreatedAt() (r time.Time, exists bool)
- func (m *DeviceKpiMutation) CurrentDay1() (r int64, exists bool)
- func (m *DeviceKpiMutation) CurrentDay1Cleared() bool
- func (m *DeviceKpiMutation) CurrentDay28() (r int64, exists bool)
- func (m *DeviceKpiMutation) CurrentDay28Cleared() bool
- func (m *DeviceKpiMutation) CurrentDay7() (r int64, exists bool)
- func (m *DeviceKpiMutation) CurrentDay7Cleared() bool
- func (m *DeviceKpiMutation) DeviceName() (r string, exists bool)
- func (m *DeviceKpiMutation) EdgeCleared(name string) bool
- func (c *DeviceKpiMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *DeviceKpiMutation) Field(name string) (ent.Value, bool)
- func (m *DeviceKpiMutation) FieldCleared(name string) bool
- func (m *DeviceKpiMutation) Fields() []string
- func (m *DeviceKpiMutation) ID() (id uint64, exists bool)
- func (m *DeviceKpiMutation) IDs(ctx context.Context) ([]uint64, error)
- func (m *DeviceKpiMutation) IotID() (r string, exists bool)
- func (m *DeviceKpiMutation) Kpi() (r float64, exists bool)
- func (m *DeviceKpiMutation) KpiCleared() bool
- func (m *DeviceKpiMutation) MonthKpi() (r float64, exists bool)
- func (m *DeviceKpiMutation) MonthKpiCleared() bool
- func (m *DeviceKpiMutation) OldA(ctx context.Context) (v float64, err error)
- func (m *DeviceKpiMutation) OldB(ctx context.Context) (v float64, err error)
- func (m *DeviceKpiMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *DeviceKpiMutation) OldCurrentDay1(ctx context.Context) (v int64, err error)
- func (m *DeviceKpiMutation) OldCurrentDay28(ctx context.Context) (v int64, err error)
- func (m *DeviceKpiMutation) OldCurrentDay7(ctx context.Context) (v int64, err error)
- func (m *DeviceKpiMutation) OldDeviceName(ctx context.Context) (v string, err error)
- func (m *DeviceKpiMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *DeviceKpiMutation) OldIotID(ctx context.Context) (v string, err error)
- func (m *DeviceKpiMutation) OldKpi(ctx context.Context) (v float64, err error)
- func (m *DeviceKpiMutation) OldMonthKpi(ctx context.Context) (v float64, err error)
- func (m *DeviceKpiMutation) OldProductKey(ctx context.Context) (v string, err error)
- func (m *DeviceKpiMutation) OldSort(ctx context.Context) (v uint32, err error)
- func (m *DeviceKpiMutation) OldStatus(ctx context.Context) (v uint8, err error)
- func (m *DeviceKpiMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *DeviceKpiMutation) OldWeekKpi(ctx context.Context) (v float64, err error)
- func (m *DeviceKpiMutation) OldX(ctx context.Context) (v float64, err error)
- func (m *DeviceKpiMutation) OldY(ctx context.Context) (v float64, err error)
- func (m *DeviceKpiMutation) Op() Op
- func (m *DeviceKpiMutation) ProductKey() (r string, exists bool)
- func (c *DeviceKpiMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *DeviceKpiMutation) RemovedEdges() []string
- func (m *DeviceKpiMutation) RemovedIDs(name string) []ent.Value
- func (m *DeviceKpiMutation) ResetA()
- func (m *DeviceKpiMutation) ResetB()
- func (m *DeviceKpiMutation) ResetCreatedAt()
- func (m *DeviceKpiMutation) ResetCurrentDay1()
- func (m *DeviceKpiMutation) ResetCurrentDay28()
- func (m *DeviceKpiMutation) ResetCurrentDay7()
- func (m *DeviceKpiMutation) ResetDeviceName()
- func (m *DeviceKpiMutation) ResetEdge(name string) error
- func (m *DeviceKpiMutation) ResetField(name string) error
- func (m *DeviceKpiMutation) ResetIotID()
- func (m *DeviceKpiMutation) ResetKpi()
- func (m *DeviceKpiMutation) ResetMonthKpi()
- func (m *DeviceKpiMutation) ResetProductKey()
- func (m *DeviceKpiMutation) ResetSort()
- func (m *DeviceKpiMutation) ResetStatus()
- func (m *DeviceKpiMutation) ResetUpdatedAt()
- func (m *DeviceKpiMutation) ResetWeekKpi()
- func (m *DeviceKpiMutation) ResetX()
- func (m *DeviceKpiMutation) ResetY()
- func (m *DeviceKpiMutation) SetA(f float64)
- func (m *DeviceKpiMutation) SetB(f float64)
- func (m *DeviceKpiMutation) SetCreatedAt(t time.Time)
- func (m *DeviceKpiMutation) SetCurrentDay1(i int64)
- func (m *DeviceKpiMutation) SetCurrentDay28(i int64)
- func (m *DeviceKpiMutation) SetCurrentDay7(i int64)
- func (m *DeviceKpiMutation) SetDeviceName(s string)
- func (m *DeviceKpiMutation) SetField(name string, value ent.Value) error
- func (m *DeviceKpiMutation) SetID(id uint64)
- func (m *DeviceKpiMutation) SetIotID(s string)
- func (m *DeviceKpiMutation) SetKpi(f float64)
- func (m *DeviceKpiMutation) SetMonthKpi(f float64)
- func (m *DeviceKpiMutation) SetOp(op Op)
- func (m *DeviceKpiMutation) SetProductKey(s string)
- func (m *DeviceKpiMutation) SetSort(u uint32)
- func (m *DeviceKpiMutation) SetStatus(u uint8)
- func (m *DeviceKpiMutation) SetUpdatedAt(t time.Time)
- func (m *DeviceKpiMutation) SetWeekKpi(f float64)
- func (m *DeviceKpiMutation) SetX(f float64)
- func (m *DeviceKpiMutation) SetY(f float64)
- func (m *DeviceKpiMutation) Sort() (r uint32, exists bool)
- func (m *DeviceKpiMutation) Status() (r uint8, exists bool)
- func (m *DeviceKpiMutation) StatusCleared() bool
- func (m DeviceKpiMutation) Tx() (*Tx, error)
- func (m *DeviceKpiMutation) Type() string
- func (m *DeviceKpiMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *DeviceKpiMutation) WeekKpi() (r float64, exists bool)
- func (m *DeviceKpiMutation) WeekKpiCleared() bool
- func (m *DeviceKpiMutation) Where(ps ...predicate.DeviceKpi)
- func (m *DeviceKpiMutation) WhereP(ps ...func(*sql.Selector))
- func (m *DeviceKpiMutation) X() (r float64, exists bool)
- func (m *DeviceKpiMutation) XCleared() bool
- func (m *DeviceKpiMutation) Y() (r float64, exists bool)
- func (m *DeviceKpiMutation) YCleared() bool
- type DeviceKpiPageList
- type DeviceKpiPager
- type DeviceKpiPaginateOption
- type DeviceKpiQuery
- func (dkq *DeviceKpiQuery) Aggregate(fns ...AggregateFunc) *DeviceKpiSelect
- func (dkq *DeviceKpiQuery) All(ctx context.Context) ([]*DeviceKpi, error)
- func (dkq *DeviceKpiQuery) AllX(ctx context.Context) []*DeviceKpi
- func (dkq *DeviceKpiQuery) Clone() *DeviceKpiQuery
- func (dkq *DeviceKpiQuery) Count(ctx context.Context) (int, error)
- func (dkq *DeviceKpiQuery) CountX(ctx context.Context) int
- func (c *DeviceKpiQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dkq *DeviceKpiQuery) Exist(ctx context.Context) (bool, error)
- func (dkq *DeviceKpiQuery) ExistX(ctx context.Context) bool
- func (dkq *DeviceKpiQuery) First(ctx context.Context) (*DeviceKpi, error)
- func (dkq *DeviceKpiQuery) FirstID(ctx context.Context) (id uint64, err error)
- func (dkq *DeviceKpiQuery) FirstIDX(ctx context.Context) uint64
- func (dkq *DeviceKpiQuery) FirstX(ctx context.Context) *DeviceKpi
- func (dkq *DeviceKpiQuery) GroupBy(field string, fields ...string) *DeviceKpiGroupBy
- func (dkq *DeviceKpiQuery) IDs(ctx context.Context) (ids []uint64, err error)
- func (dkq *DeviceKpiQuery) IDsX(ctx context.Context) []uint64
- func (dkq *DeviceKpiQuery) Limit(limit int) *DeviceKpiQuery
- func (dkq *DeviceKpiQuery) Modify(modifiers ...func(s *sql.Selector)) *DeviceKpiSelect
- func (dkq *DeviceKpiQuery) Offset(offset int) *DeviceKpiQuery
- func (dkq *DeviceKpiQuery) Only(ctx context.Context) (*DeviceKpi, error)
- func (dkq *DeviceKpiQuery) OnlyID(ctx context.Context) (id uint64, err error)
- func (dkq *DeviceKpiQuery) OnlyIDX(ctx context.Context) uint64
- func (dkq *DeviceKpiQuery) OnlyX(ctx context.Context) *DeviceKpi
- func (dkq *DeviceKpiQuery) Order(o ...devicekpi.OrderOption) *DeviceKpiQuery
- func (dk *DeviceKpiQuery) Page(ctx context.Context, pageNum uint64, pageSize uint64, ...) (*DeviceKpiPageList, error)
- func (c *DeviceKpiQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dkq *DeviceKpiQuery) Select(fields ...string) *DeviceKpiSelect
- func (dkq *DeviceKpiQuery) Unique(unique bool) *DeviceKpiQuery
- func (dkq *DeviceKpiQuery) Where(ps ...predicate.DeviceKpi) *DeviceKpiQuery
- type DeviceKpiSelect
- func (dks *DeviceKpiSelect) Aggregate(fns ...AggregateFunc) *DeviceKpiSelect
- func (s *DeviceKpiSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *DeviceKpiSelect) BoolX(ctx context.Context) bool
- func (s *DeviceKpiSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *DeviceKpiSelect) BoolsX(ctx context.Context) []bool
- func (c DeviceKpiSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *DeviceKpiSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *DeviceKpiSelect) Float64X(ctx context.Context) float64
- func (s *DeviceKpiSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *DeviceKpiSelect) Float64sX(ctx context.Context) []float64
- func (s *DeviceKpiSelect) Int(ctx context.Context) (_ int, err error)
- func (s *DeviceKpiSelect) IntX(ctx context.Context) int
- func (s *DeviceKpiSelect) Ints(ctx context.Context) ([]int, error)
- func (s *DeviceKpiSelect) IntsX(ctx context.Context) []int
- func (dks *DeviceKpiSelect) Modify(modifiers ...func(s *sql.Selector)) *DeviceKpiSelect
- func (c DeviceKpiSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dks *DeviceKpiSelect) Scan(ctx context.Context, v any) error
- func (s *DeviceKpiSelect) ScanX(ctx context.Context, v any)
- func (s *DeviceKpiSelect) String(ctx context.Context) (_ string, err error)
- func (s *DeviceKpiSelect) StringX(ctx context.Context) string
- func (s *DeviceKpiSelect) Strings(ctx context.Context) ([]string, error)
- func (s *DeviceKpiSelect) StringsX(ctx context.Context) []string
- type DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) AddA(f float64) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) AddB(f float64) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) AddCurrentDay1(i int64) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) AddCurrentDay28(i int64) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) AddCurrentDay7(i int64) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) AddKpi(f float64) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) AddMonthKpi(f float64) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) AddSort(u int32) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) AddStatus(u int8) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) AddWeekKpi(f float64) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) AddX(f float64) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) AddY(f float64) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) ClearA() *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) ClearB() *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) ClearCurrentDay1() *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) ClearCurrentDay28() *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) ClearCurrentDay7() *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) ClearKpi() *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) ClearMonthKpi() *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) ClearStatus() *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) ClearWeekKpi() *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) ClearX() *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) ClearY() *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) Exec(ctx context.Context) error
- func (c *DeviceKpiUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dku *DeviceKpiUpdate) ExecX(ctx context.Context)
- func (dku *DeviceKpiUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) Mutation() *DeviceKpiMutation
- func (c *DeviceKpiUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dku *DeviceKpiUpdate) Save(ctx context.Context) (int, error)
- func (dku *DeviceKpiUpdate) SaveX(ctx context.Context) int
- func (dku *DeviceKpiUpdate) SetA(f float64) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) SetB(f float64) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) SetCurrentDay1(i int64) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) SetCurrentDay28(i int64) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) SetCurrentDay7(i int64) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) SetDeviceName(s string) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) SetIotID(s string) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) SetKpi(f float64) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) SetMonthKpi(f float64) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) SetNillableA(f *float64) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) SetNillableB(f *float64) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) SetNillableCurrentDay1(i *int64) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) SetNillableCurrentDay28(i *int64) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) SetNillableCurrentDay7(i *int64) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) SetNillableDeviceName(s *string) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) SetNillableIotID(s *string) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) SetNillableKpi(f *float64) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) SetNillableMonthKpi(f *float64) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) SetNillableProductKey(s *string) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) SetNillableSort(u *uint32) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) SetNillableStatus(u *uint8) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) SetNillableWeekKpi(f *float64) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) SetNillableX(f *float64) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) SetNillableY(f *float64) *DeviceKpiUpdate
- func (dk *DeviceKpiUpdate) SetNotNilA(value *float64) *DeviceKpiUpdate
- func (dk *DeviceKpiUpdate) SetNotNilB(value *float64) *DeviceKpiUpdate
- func (dk *DeviceKpiUpdate) SetNotNilCurrentDay1(value *int64) *DeviceKpiUpdate
- func (dk *DeviceKpiUpdate) SetNotNilCurrentDay28(value *int64) *DeviceKpiUpdate
- func (dk *DeviceKpiUpdate) SetNotNilCurrentDay7(value *int64) *DeviceKpiUpdate
- func (dk *DeviceKpiUpdate) SetNotNilDeviceName(value *string) *DeviceKpiUpdate
- func (dk *DeviceKpiUpdate) SetNotNilIotID(value *string) *DeviceKpiUpdate
- func (dk *DeviceKpiUpdate) SetNotNilKpi(value *float64) *DeviceKpiUpdate
- func (dk *DeviceKpiUpdate) SetNotNilMonthKpi(value *float64) *DeviceKpiUpdate
- func (dk *DeviceKpiUpdate) SetNotNilProductKey(value *string) *DeviceKpiUpdate
- func (dk *DeviceKpiUpdate) SetNotNilSort(value *uint32) *DeviceKpiUpdate
- func (dk *DeviceKpiUpdate) SetNotNilStatus(value *uint8) *DeviceKpiUpdate
- func (dk *DeviceKpiUpdate) SetNotNilUpdatedAt(value *time.Time) *DeviceKpiUpdate
- func (dk *DeviceKpiUpdate) SetNotNilWeekKpi(value *float64) *DeviceKpiUpdate
- func (dk *DeviceKpiUpdate) SetNotNilX(value *float64) *DeviceKpiUpdate
- func (dk *DeviceKpiUpdate) SetNotNilY(value *float64) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) SetProductKey(s string) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) SetSort(u uint32) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) SetStatus(u uint8) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) SetUpdatedAt(t time.Time) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) SetWeekKpi(f float64) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) SetX(f float64) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) SetY(f float64) *DeviceKpiUpdate
- func (dku *DeviceKpiUpdate) Where(ps ...predicate.DeviceKpi) *DeviceKpiUpdate
- type DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) AddA(f float64) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) AddB(f float64) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) AddCurrentDay1(i int64) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) AddCurrentDay28(i int64) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) AddCurrentDay7(i int64) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) AddKpi(f float64) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) AddMonthKpi(f float64) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) AddSort(u int32) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) AddStatus(u int8) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) AddWeekKpi(f float64) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) AddX(f float64) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) AddY(f float64) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) ClearA() *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) ClearB() *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) ClearCurrentDay1() *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) ClearCurrentDay28() *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) ClearCurrentDay7() *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) ClearKpi() *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) ClearMonthKpi() *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) ClearStatus() *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) ClearWeekKpi() *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) ClearX() *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) ClearY() *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) Exec(ctx context.Context) error
- func (c *DeviceKpiUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dkuo *DeviceKpiUpdateOne) ExecX(ctx context.Context)
- func (dkuo *DeviceKpiUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) Mutation() *DeviceKpiMutation
- func (c *DeviceKpiUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dkuo *DeviceKpiUpdateOne) Save(ctx context.Context) (*DeviceKpi, error)
- func (dkuo *DeviceKpiUpdateOne) SaveX(ctx context.Context) *DeviceKpi
- func (dkuo *DeviceKpiUpdateOne) Select(field string, fields ...string) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetA(f float64) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetB(f float64) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetCurrentDay1(i int64) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetCurrentDay28(i int64) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetCurrentDay7(i int64) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetDeviceName(s string) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetIotID(s string) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetKpi(f float64) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetMonthKpi(f float64) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetNillableA(f *float64) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetNillableB(f *float64) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetNillableCurrentDay1(i *int64) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetNillableCurrentDay28(i *int64) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetNillableCurrentDay7(i *int64) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetNillableDeviceName(s *string) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetNillableIotID(s *string) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetNillableKpi(f *float64) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetNillableMonthKpi(f *float64) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetNillableProductKey(s *string) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetNillableSort(u *uint32) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetNillableStatus(u *uint8) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetNillableWeekKpi(f *float64) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetNillableX(f *float64) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetNillableY(f *float64) *DeviceKpiUpdateOne
- func (dk *DeviceKpiUpdateOne) SetNotNilA(value *float64) *DeviceKpiUpdateOne
- func (dk *DeviceKpiUpdateOne) SetNotNilB(value *float64) *DeviceKpiUpdateOne
- func (dk *DeviceKpiUpdateOne) SetNotNilCurrentDay1(value *int64) *DeviceKpiUpdateOne
- func (dk *DeviceKpiUpdateOne) SetNotNilCurrentDay28(value *int64) *DeviceKpiUpdateOne
- func (dk *DeviceKpiUpdateOne) SetNotNilCurrentDay7(value *int64) *DeviceKpiUpdateOne
- func (dk *DeviceKpiUpdateOne) SetNotNilDeviceName(value *string) *DeviceKpiUpdateOne
- func (dk *DeviceKpiUpdateOne) SetNotNilIotID(value *string) *DeviceKpiUpdateOne
- func (dk *DeviceKpiUpdateOne) SetNotNilKpi(value *float64) *DeviceKpiUpdateOne
- func (dk *DeviceKpiUpdateOne) SetNotNilMonthKpi(value *float64) *DeviceKpiUpdateOne
- func (dk *DeviceKpiUpdateOne) SetNotNilProductKey(value *string) *DeviceKpiUpdateOne
- func (dk *DeviceKpiUpdateOne) SetNotNilSort(value *uint32) *DeviceKpiUpdateOne
- func (dk *DeviceKpiUpdateOne) SetNotNilStatus(value *uint8) *DeviceKpiUpdateOne
- func (dk *DeviceKpiUpdateOne) SetNotNilUpdatedAt(value *time.Time) *DeviceKpiUpdateOne
- func (dk *DeviceKpiUpdateOne) SetNotNilWeekKpi(value *float64) *DeviceKpiUpdateOne
- func (dk *DeviceKpiUpdateOne) SetNotNilX(value *float64) *DeviceKpiUpdateOne
- func (dk *DeviceKpiUpdateOne) SetNotNilY(value *float64) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetProductKey(s string) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetSort(u uint32) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetStatus(u uint8) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetUpdatedAt(t time.Time) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetWeekKpi(f float64) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetX(f float64) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) SetY(f float64) *DeviceKpiUpdateOne
- func (dkuo *DeviceKpiUpdateOne) Where(ps ...predicate.DeviceKpi) *DeviceKpiUpdateOne
- type DeviceKpiUpsert
- func (u *DeviceKpiUpsert) AddA(v float64) *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) AddB(v float64) *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) AddCurrentDay1(v int64) *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) AddCurrentDay28(v int64) *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) AddCurrentDay7(v int64) *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) AddKpi(v float64) *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) AddMonthKpi(v float64) *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) AddSort(v uint32) *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) AddStatus(v uint8) *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) AddWeekKpi(v float64) *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) AddX(v float64) *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) AddY(v float64) *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) ClearA() *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) ClearB() *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) ClearCurrentDay1() *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) ClearCurrentDay28() *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) ClearCurrentDay7() *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) ClearKpi() *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) ClearMonthKpi() *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) ClearStatus() *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) ClearWeekKpi() *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) ClearX() *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) ClearY() *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) SetA(v float64) *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) SetB(v float64) *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) SetCurrentDay1(v int64) *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) SetCurrentDay28(v int64) *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) SetCurrentDay7(v int64) *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) SetDeviceName(v string) *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) SetIotID(v string) *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) SetKpi(v float64) *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) SetMonthKpi(v float64) *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) SetProductKey(v string) *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) SetSort(v uint32) *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) SetStatus(v uint8) *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) SetUpdatedAt(v time.Time) *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) SetWeekKpi(v float64) *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) SetX(v float64) *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) SetY(v float64) *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) UpdateA() *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) UpdateB() *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) UpdateCurrentDay1() *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) UpdateCurrentDay28() *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) UpdateCurrentDay7() *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) UpdateDeviceName() *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) UpdateIotID() *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) UpdateKpi() *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) UpdateMonthKpi() *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) UpdateProductKey() *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) UpdateSort() *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) UpdateStatus() *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) UpdateUpdatedAt() *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) UpdateWeekKpi() *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) UpdateX() *DeviceKpiUpsert
- func (u *DeviceKpiUpsert) UpdateY() *DeviceKpiUpsert
- type DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) AddA(v float64) *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) AddB(v float64) *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) AddCurrentDay1(v int64) *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) AddCurrentDay28(v int64) *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) AddCurrentDay7(v int64) *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) AddKpi(v float64) *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) AddMonthKpi(v float64) *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) AddSort(v uint32) *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) AddStatus(v uint8) *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) AddWeekKpi(v float64) *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) AddX(v float64) *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) AddY(v float64) *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) ClearA() *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) ClearB() *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) ClearCurrentDay1() *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) ClearCurrentDay28() *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) ClearCurrentDay7() *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) ClearKpi() *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) ClearMonthKpi() *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) ClearStatus() *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) ClearWeekKpi() *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) ClearX() *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) ClearY() *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) DoNothing() *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) Exec(ctx context.Context) error
- func (u *DeviceKpiUpsertBulk) ExecX(ctx context.Context)
- func (u *DeviceKpiUpsertBulk) Ignore() *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) SetA(v float64) *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) SetB(v float64) *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) SetCurrentDay1(v int64) *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) SetCurrentDay28(v int64) *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) SetCurrentDay7(v int64) *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) SetDeviceName(v string) *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) SetIotID(v string) *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) SetKpi(v float64) *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) SetMonthKpi(v float64) *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) SetProductKey(v string) *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) SetSort(v uint32) *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) SetStatus(v uint8) *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) SetUpdatedAt(v time.Time) *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) SetWeekKpi(v float64) *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) SetX(v float64) *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) SetY(v float64) *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) Update(set func(*DeviceKpiUpsert)) *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) UpdateA() *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) UpdateB() *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) UpdateCurrentDay1() *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) UpdateCurrentDay28() *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) UpdateCurrentDay7() *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) UpdateDeviceName() *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) UpdateIotID() *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) UpdateKpi() *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) UpdateMonthKpi() *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) UpdateNewValues() *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) UpdateProductKey() *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) UpdateSort() *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) UpdateStatus() *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) UpdateUpdatedAt() *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) UpdateWeekKpi() *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) UpdateX() *DeviceKpiUpsertBulk
- func (u *DeviceKpiUpsertBulk) UpdateY() *DeviceKpiUpsertBulk
- type DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) AddA(v float64) *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) AddB(v float64) *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) AddCurrentDay1(v int64) *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) AddCurrentDay28(v int64) *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) AddCurrentDay7(v int64) *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) AddKpi(v float64) *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) AddMonthKpi(v float64) *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) AddSort(v uint32) *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) AddStatus(v uint8) *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) AddWeekKpi(v float64) *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) AddX(v float64) *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) AddY(v float64) *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) ClearA() *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) ClearB() *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) ClearCurrentDay1() *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) ClearCurrentDay28() *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) ClearCurrentDay7() *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) ClearKpi() *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) ClearMonthKpi() *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) ClearStatus() *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) ClearWeekKpi() *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) ClearX() *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) ClearY() *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) DoNothing() *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) Exec(ctx context.Context) error
- func (u *DeviceKpiUpsertOne) ExecX(ctx context.Context)
- func (u *DeviceKpiUpsertOne) ID(ctx context.Context) (id uint64, err error)
- func (u *DeviceKpiUpsertOne) IDX(ctx context.Context) uint64
- func (u *DeviceKpiUpsertOne) Ignore() *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) SetA(v float64) *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) SetB(v float64) *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) SetCurrentDay1(v int64) *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) SetCurrentDay28(v int64) *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) SetCurrentDay7(v int64) *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) SetDeviceName(v string) *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) SetIotID(v string) *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) SetKpi(v float64) *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) SetMonthKpi(v float64) *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) SetProductKey(v string) *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) SetSort(v uint32) *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) SetStatus(v uint8) *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) SetUpdatedAt(v time.Time) *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) SetWeekKpi(v float64) *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) SetX(v float64) *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) SetY(v float64) *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) Update(set func(*DeviceKpiUpsert)) *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) UpdateA() *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) UpdateB() *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) UpdateCurrentDay1() *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) UpdateCurrentDay28() *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) UpdateCurrentDay7() *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) UpdateDeviceName() *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) UpdateIotID() *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) UpdateKpi() *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) UpdateMonthKpi() *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) UpdateNewValues() *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) UpdateProductKey() *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) UpdateSort() *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) UpdateStatus() *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) UpdateUpdatedAt() *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) UpdateWeekKpi() *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) UpdateX() *DeviceKpiUpsertOne
- func (u *DeviceKpiUpsertOne) UpdateY() *DeviceKpiUpsertOne
- type DeviceKpis
- type DeviceOfflineTime
- func (c *DeviceOfflineTime) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *DeviceOfflineTime) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dot *DeviceOfflineTime) String() string
- func (dot *DeviceOfflineTime) Unwrap() *DeviceOfflineTime
- func (dot *DeviceOfflineTime) Update() *DeviceOfflineTimeUpdateOne
- func (dot *DeviceOfflineTime) Value(name string) (ent.Value, error)
- type DeviceOfflineTimeClient
- func (c *DeviceOfflineTimeClient) Create() *DeviceOfflineTimeCreate
- func (c *DeviceOfflineTimeClient) CreateBulk(builders ...*DeviceOfflineTimeCreate) *DeviceOfflineTimeCreateBulk
- func (c *DeviceOfflineTimeClient) Delete() *DeviceOfflineTimeDelete
- func (c *DeviceOfflineTimeClient) DeleteOne(dot *DeviceOfflineTime) *DeviceOfflineTimeDeleteOne
- func (c *DeviceOfflineTimeClient) DeleteOneID(id uint64) *DeviceOfflineTimeDeleteOne
- func (c *DeviceOfflineTimeClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *DeviceOfflineTimeClient) Get(ctx context.Context, id uint64) (*DeviceOfflineTime, error)
- func (c *DeviceOfflineTimeClient) GetX(ctx context.Context, id uint64) *DeviceOfflineTime
- func (c *DeviceOfflineTimeClient) Hooks() []Hook
- func (c *DeviceOfflineTimeClient) Intercept(interceptors ...Interceptor)
- func (c *DeviceOfflineTimeClient) Interceptors() []Interceptor
- func (c *DeviceOfflineTimeClient) MapCreateBulk(slice any, setFunc func(*DeviceOfflineTimeCreate, int)) *DeviceOfflineTimeCreateBulk
- func (c *DeviceOfflineTimeClient) Query() *DeviceOfflineTimeQuery
- func (c *DeviceOfflineTimeClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *DeviceOfflineTimeClient) Update() *DeviceOfflineTimeUpdate
- func (c *DeviceOfflineTimeClient) UpdateOne(dot *DeviceOfflineTime) *DeviceOfflineTimeUpdateOne
- func (c *DeviceOfflineTimeClient) UpdateOneID(id uint64) *DeviceOfflineTimeUpdateOne
- func (c *DeviceOfflineTimeClient) Use(hooks ...Hook)
- type DeviceOfflineTimeCreate
- func (dotc *DeviceOfflineTimeCreate) Exec(ctx context.Context) error
- func (c *DeviceOfflineTimeCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dotc *DeviceOfflineTimeCreate) ExecX(ctx context.Context)
- func (dotc *DeviceOfflineTimeCreate) Mutation() *DeviceOfflineTimeMutation
- func (dotc *DeviceOfflineTimeCreate) OnConflict(opts ...sql.ConflictOption) *DeviceOfflineTimeUpsertOne
- func (dotc *DeviceOfflineTimeCreate) OnConflictColumns(columns ...string) *DeviceOfflineTimeUpsertOne
- func (c *DeviceOfflineTimeCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dotc *DeviceOfflineTimeCreate) Save(ctx context.Context) (*DeviceOfflineTime, error)
- func (dotc *DeviceOfflineTimeCreate) SaveX(ctx context.Context) *DeviceOfflineTime
- func (dotc *DeviceOfflineTimeCreate) SetCreatedAt(t time.Time) *DeviceOfflineTimeCreate
- func (dotc *DeviceOfflineTimeCreate) SetDeviceName(s string) *DeviceOfflineTimeCreate
- func (dotc *DeviceOfflineTimeCreate) SetID(u uint64) *DeviceOfflineTimeCreate
- func (dotc *DeviceOfflineTimeCreate) SetIotID(s string) *DeviceOfflineTimeCreate
- func (dotc *DeviceOfflineTimeCreate) SetNillableCreatedAt(t *time.Time) *DeviceOfflineTimeCreate
- func (dotc *DeviceOfflineTimeCreate) SetNillableSort(u *uint32) *DeviceOfflineTimeCreate
- func (dotc *DeviceOfflineTimeCreate) SetNillableStatus(u *uint8) *DeviceOfflineTimeCreate
- func (dotc *DeviceOfflineTimeCreate) SetNillableTime(s *string) *DeviceOfflineTimeCreate
- func (dotc *DeviceOfflineTimeCreate) SetNillableUpdatedAt(t *time.Time) *DeviceOfflineTimeCreate
- func (dot *DeviceOfflineTimeCreate) SetNotNilDeviceName(value *string) *DeviceOfflineTimeCreate
- func (dot *DeviceOfflineTimeCreate) SetNotNilIotID(value *string) *DeviceOfflineTimeCreate
- func (dot *DeviceOfflineTimeCreate) SetNotNilProductKey(value *string) *DeviceOfflineTimeCreate
- func (dot *DeviceOfflineTimeCreate) SetNotNilSort(value *uint32) *DeviceOfflineTimeCreate
- func (dot *DeviceOfflineTimeCreate) SetNotNilStatus(value *uint8) *DeviceOfflineTimeCreate
- func (dot *DeviceOfflineTimeCreate) SetNotNilTime(value *string) *DeviceOfflineTimeCreate
- func (dot *DeviceOfflineTimeCreate) SetNotNilUpdatedAt(value *time.Time) *DeviceOfflineTimeCreate
- func (dotc *DeviceOfflineTimeCreate) SetProductKey(s string) *DeviceOfflineTimeCreate
- func (dotc *DeviceOfflineTimeCreate) SetSort(u uint32) *DeviceOfflineTimeCreate
- func (dotc *DeviceOfflineTimeCreate) SetStatus(u uint8) *DeviceOfflineTimeCreate
- func (dotc *DeviceOfflineTimeCreate) SetTime(s string) *DeviceOfflineTimeCreate
- func (dotc *DeviceOfflineTimeCreate) SetUpdatedAt(t time.Time) *DeviceOfflineTimeCreate
- func (dotc *DeviceOfflineTimeCreate) TableName(s string) *DeviceOfflineTimeCreate
- type DeviceOfflineTimeCreateBulk
- func (dotcb *DeviceOfflineTimeCreateBulk) Exec(ctx context.Context) error
- func (c *DeviceOfflineTimeCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dotcb *DeviceOfflineTimeCreateBulk) ExecX(ctx context.Context)
- func (dotcb *DeviceOfflineTimeCreateBulk) OnConflict(opts ...sql.ConflictOption) *DeviceOfflineTimeUpsertBulk
- func (dotcb *DeviceOfflineTimeCreateBulk) OnConflictColumns(columns ...string) *DeviceOfflineTimeUpsertBulk
- func (c *DeviceOfflineTimeCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dotcb *DeviceOfflineTimeCreateBulk) Save(ctx context.Context) ([]*DeviceOfflineTime, error)
- func (dotcb *DeviceOfflineTimeCreateBulk) SaveX(ctx context.Context) []*DeviceOfflineTime
- type DeviceOfflineTimeDelete
- func (dotd *DeviceOfflineTimeDelete) Exec(ctx context.Context) (int, error)
- func (c *DeviceOfflineTimeDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dotd *DeviceOfflineTimeDelete) ExecX(ctx context.Context) int
- func (c *DeviceOfflineTimeDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dotd *DeviceOfflineTimeDelete) Where(ps ...predicate.DeviceOfflineTime) *DeviceOfflineTimeDelete
- type DeviceOfflineTimeDeleteOne
- type DeviceOfflineTimeGroupBy
- func (dotgb *DeviceOfflineTimeGroupBy) Aggregate(fns ...AggregateFunc) *DeviceOfflineTimeGroupBy
- func (s *DeviceOfflineTimeGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *DeviceOfflineTimeGroupBy) BoolX(ctx context.Context) bool
- func (s *DeviceOfflineTimeGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *DeviceOfflineTimeGroupBy) BoolsX(ctx context.Context) []bool
- func (s *DeviceOfflineTimeGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *DeviceOfflineTimeGroupBy) Float64X(ctx context.Context) float64
- func (s *DeviceOfflineTimeGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *DeviceOfflineTimeGroupBy) Float64sX(ctx context.Context) []float64
- func (s *DeviceOfflineTimeGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *DeviceOfflineTimeGroupBy) IntX(ctx context.Context) int
- func (s *DeviceOfflineTimeGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *DeviceOfflineTimeGroupBy) IntsX(ctx context.Context) []int
- func (dotgb *DeviceOfflineTimeGroupBy) Scan(ctx context.Context, v any) error
- func (s *DeviceOfflineTimeGroupBy) ScanX(ctx context.Context, v any)
- func (s *DeviceOfflineTimeGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *DeviceOfflineTimeGroupBy) StringX(ctx context.Context) string
- func (s *DeviceOfflineTimeGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *DeviceOfflineTimeGroupBy) StringsX(ctx context.Context) []string
- type DeviceOfflineTimeMutation
- func (m *DeviceOfflineTimeMutation) AddField(name string, value ent.Value) error
- func (m *DeviceOfflineTimeMutation) AddSort(u int32)
- func (m *DeviceOfflineTimeMutation) AddStatus(u int8)
- func (m *DeviceOfflineTimeMutation) AddedEdges() []string
- func (m *DeviceOfflineTimeMutation) AddedField(name string) (ent.Value, bool)
- func (m *DeviceOfflineTimeMutation) AddedFields() []string
- func (m *DeviceOfflineTimeMutation) AddedIDs(name string) []ent.Value
- func (m *DeviceOfflineTimeMutation) AddedSort() (r int32, exists bool)
- func (m *DeviceOfflineTimeMutation) AddedStatus() (r int8, exists bool)
- func (m *DeviceOfflineTimeMutation) ClearEdge(name string) error
- func (m *DeviceOfflineTimeMutation) ClearField(name string) error
- func (m *DeviceOfflineTimeMutation) ClearStatus()
- func (m *DeviceOfflineTimeMutation) ClearTime()
- func (m *DeviceOfflineTimeMutation) ClearedEdges() []string
- func (m *DeviceOfflineTimeMutation) ClearedFields() []string
- func (m DeviceOfflineTimeMutation) Client() *Client
- func (m *DeviceOfflineTimeMutation) CreatedAt() (r time.Time, exists bool)
- func (m *DeviceOfflineTimeMutation) DeviceName() (r string, exists bool)
- func (m *DeviceOfflineTimeMutation) EdgeCleared(name string) bool
- func (c *DeviceOfflineTimeMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *DeviceOfflineTimeMutation) Field(name string) (ent.Value, bool)
- func (m *DeviceOfflineTimeMutation) FieldCleared(name string) bool
- func (m *DeviceOfflineTimeMutation) Fields() []string
- func (m *DeviceOfflineTimeMutation) ID() (id uint64, exists bool)
- func (m *DeviceOfflineTimeMutation) IDs(ctx context.Context) ([]uint64, error)
- func (m *DeviceOfflineTimeMutation) IotID() (r string, exists bool)
- func (m *DeviceOfflineTimeMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *DeviceOfflineTimeMutation) OldDeviceName(ctx context.Context) (v string, err error)
- func (m *DeviceOfflineTimeMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *DeviceOfflineTimeMutation) OldIotID(ctx context.Context) (v string, err error)
- func (m *DeviceOfflineTimeMutation) OldProductKey(ctx context.Context) (v string, err error)
- func (m *DeviceOfflineTimeMutation) OldSort(ctx context.Context) (v uint32, err error)
- func (m *DeviceOfflineTimeMutation) OldStatus(ctx context.Context) (v uint8, err error)
- func (m *DeviceOfflineTimeMutation) OldTime(ctx context.Context) (v string, err error)
- func (m *DeviceOfflineTimeMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *DeviceOfflineTimeMutation) Op() Op
- func (m *DeviceOfflineTimeMutation) ProductKey() (r string, exists bool)
- func (c *DeviceOfflineTimeMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *DeviceOfflineTimeMutation) RemovedEdges() []string
- func (m *DeviceOfflineTimeMutation) RemovedIDs(name string) []ent.Value
- func (m *DeviceOfflineTimeMutation) ResetCreatedAt()
- func (m *DeviceOfflineTimeMutation) ResetDeviceName()
- func (m *DeviceOfflineTimeMutation) ResetEdge(name string) error
- func (m *DeviceOfflineTimeMutation) ResetField(name string) error
- func (m *DeviceOfflineTimeMutation) ResetIotID()
- func (m *DeviceOfflineTimeMutation) ResetProductKey()
- func (m *DeviceOfflineTimeMutation) ResetSort()
- func (m *DeviceOfflineTimeMutation) ResetStatus()
- func (m *DeviceOfflineTimeMutation) ResetTime()
- func (m *DeviceOfflineTimeMutation) ResetUpdatedAt()
- func (m *DeviceOfflineTimeMutation) SetCreatedAt(t time.Time)
- func (m *DeviceOfflineTimeMutation) SetDeviceName(s string)
- func (m *DeviceOfflineTimeMutation) SetField(name string, value ent.Value) error
- func (m *DeviceOfflineTimeMutation) SetID(id uint64)
- func (m *DeviceOfflineTimeMutation) SetIotID(s string)
- func (m *DeviceOfflineTimeMutation) SetOp(op Op)
- func (m *DeviceOfflineTimeMutation) SetProductKey(s string)
- func (m *DeviceOfflineTimeMutation) SetSort(u uint32)
- func (m *DeviceOfflineTimeMutation) SetStatus(u uint8)
- func (m *DeviceOfflineTimeMutation) SetTime(s string)
- func (m *DeviceOfflineTimeMutation) SetUpdatedAt(t time.Time)
- func (m *DeviceOfflineTimeMutation) Sort() (r uint32, exists bool)
- func (m *DeviceOfflineTimeMutation) Status() (r uint8, exists bool)
- func (m *DeviceOfflineTimeMutation) StatusCleared() bool
- func (m *DeviceOfflineTimeMutation) Time() (r string, exists bool)
- func (m *DeviceOfflineTimeMutation) TimeCleared() bool
- func (m DeviceOfflineTimeMutation) Tx() (*Tx, error)
- func (m *DeviceOfflineTimeMutation) Type() string
- func (m *DeviceOfflineTimeMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *DeviceOfflineTimeMutation) Where(ps ...predicate.DeviceOfflineTime)
- func (m *DeviceOfflineTimeMutation) WhereP(ps ...func(*sql.Selector))
- type DeviceOfflineTimePageList
- type DeviceOfflineTimePager
- type DeviceOfflineTimePaginateOption
- type DeviceOfflineTimeQuery
- func (dotq *DeviceOfflineTimeQuery) Aggregate(fns ...AggregateFunc) *DeviceOfflineTimeSelect
- func (dotq *DeviceOfflineTimeQuery) All(ctx context.Context) ([]*DeviceOfflineTime, error)
- func (dotq *DeviceOfflineTimeQuery) AllX(ctx context.Context) []*DeviceOfflineTime
- func (dotq *DeviceOfflineTimeQuery) Clone() *DeviceOfflineTimeQuery
- func (dotq *DeviceOfflineTimeQuery) Count(ctx context.Context) (int, error)
- func (dotq *DeviceOfflineTimeQuery) CountX(ctx context.Context) int
- func (c *DeviceOfflineTimeQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dotq *DeviceOfflineTimeQuery) Exist(ctx context.Context) (bool, error)
- func (dotq *DeviceOfflineTimeQuery) ExistX(ctx context.Context) bool
- func (dotq *DeviceOfflineTimeQuery) First(ctx context.Context) (*DeviceOfflineTime, error)
- func (dotq *DeviceOfflineTimeQuery) FirstID(ctx context.Context) (id uint64, err error)
- func (dotq *DeviceOfflineTimeQuery) FirstIDX(ctx context.Context) uint64
- func (dotq *DeviceOfflineTimeQuery) FirstX(ctx context.Context) *DeviceOfflineTime
- func (dotq *DeviceOfflineTimeQuery) GroupBy(field string, fields ...string) *DeviceOfflineTimeGroupBy
- func (dotq *DeviceOfflineTimeQuery) IDs(ctx context.Context) (ids []uint64, err error)
- func (dotq *DeviceOfflineTimeQuery) IDsX(ctx context.Context) []uint64
- func (dotq *DeviceOfflineTimeQuery) Limit(limit int) *DeviceOfflineTimeQuery
- func (dotq *DeviceOfflineTimeQuery) Modify(modifiers ...func(s *sql.Selector)) *DeviceOfflineTimeSelect
- func (dotq *DeviceOfflineTimeQuery) Offset(offset int) *DeviceOfflineTimeQuery
- func (dotq *DeviceOfflineTimeQuery) Only(ctx context.Context) (*DeviceOfflineTime, error)
- func (dotq *DeviceOfflineTimeQuery) OnlyID(ctx context.Context) (id uint64, err error)
- func (dotq *DeviceOfflineTimeQuery) OnlyIDX(ctx context.Context) uint64
- func (dotq *DeviceOfflineTimeQuery) OnlyX(ctx context.Context) *DeviceOfflineTime
- func (dotq *DeviceOfflineTimeQuery) Order(o ...deviceofflinetime.OrderOption) *DeviceOfflineTimeQuery
- func (dot *DeviceOfflineTimeQuery) Page(ctx context.Context, pageNum uint64, pageSize uint64, ...) (*DeviceOfflineTimePageList, error)
- func (c *DeviceOfflineTimeQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dotq *DeviceOfflineTimeQuery) Select(fields ...string) *DeviceOfflineTimeSelect
- func (dotq *DeviceOfflineTimeQuery) Unique(unique bool) *DeviceOfflineTimeQuery
- func (dotq *DeviceOfflineTimeQuery) Where(ps ...predicate.DeviceOfflineTime) *DeviceOfflineTimeQuery
- type DeviceOfflineTimeSelect
- func (dots *DeviceOfflineTimeSelect) Aggregate(fns ...AggregateFunc) *DeviceOfflineTimeSelect
- func (s *DeviceOfflineTimeSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *DeviceOfflineTimeSelect) BoolX(ctx context.Context) bool
- func (s *DeviceOfflineTimeSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *DeviceOfflineTimeSelect) BoolsX(ctx context.Context) []bool
- func (c DeviceOfflineTimeSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *DeviceOfflineTimeSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *DeviceOfflineTimeSelect) Float64X(ctx context.Context) float64
- func (s *DeviceOfflineTimeSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *DeviceOfflineTimeSelect) Float64sX(ctx context.Context) []float64
- func (s *DeviceOfflineTimeSelect) Int(ctx context.Context) (_ int, err error)
- func (s *DeviceOfflineTimeSelect) IntX(ctx context.Context) int
- func (s *DeviceOfflineTimeSelect) Ints(ctx context.Context) ([]int, error)
- func (s *DeviceOfflineTimeSelect) IntsX(ctx context.Context) []int
- func (dots *DeviceOfflineTimeSelect) Modify(modifiers ...func(s *sql.Selector)) *DeviceOfflineTimeSelect
- func (c DeviceOfflineTimeSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dots *DeviceOfflineTimeSelect) Scan(ctx context.Context, v any) error
- func (s *DeviceOfflineTimeSelect) ScanX(ctx context.Context, v any)
- func (s *DeviceOfflineTimeSelect) String(ctx context.Context) (_ string, err error)
- func (s *DeviceOfflineTimeSelect) StringX(ctx context.Context) string
- func (s *DeviceOfflineTimeSelect) Strings(ctx context.Context) ([]string, error)
- func (s *DeviceOfflineTimeSelect) StringsX(ctx context.Context) []string
- type DeviceOfflineTimeUpdate
- func (dotu *DeviceOfflineTimeUpdate) AddSort(u int32) *DeviceOfflineTimeUpdate
- func (dotu *DeviceOfflineTimeUpdate) AddStatus(u int8) *DeviceOfflineTimeUpdate
- func (dotu *DeviceOfflineTimeUpdate) ClearStatus() *DeviceOfflineTimeUpdate
- func (dotu *DeviceOfflineTimeUpdate) ClearTime() *DeviceOfflineTimeUpdate
- func (dotu *DeviceOfflineTimeUpdate) Exec(ctx context.Context) error
- func (c *DeviceOfflineTimeUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dotu *DeviceOfflineTimeUpdate) ExecX(ctx context.Context)
- func (dotu *DeviceOfflineTimeUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceOfflineTimeUpdate
- func (dotu *DeviceOfflineTimeUpdate) Mutation() *DeviceOfflineTimeMutation
- func (c *DeviceOfflineTimeUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dotu *DeviceOfflineTimeUpdate) Save(ctx context.Context) (int, error)
- func (dotu *DeviceOfflineTimeUpdate) SaveX(ctx context.Context) int
- func (dotu *DeviceOfflineTimeUpdate) SetDeviceName(s string) *DeviceOfflineTimeUpdate
- func (dotu *DeviceOfflineTimeUpdate) SetIotID(s string) *DeviceOfflineTimeUpdate
- func (dotu *DeviceOfflineTimeUpdate) SetNillableDeviceName(s *string) *DeviceOfflineTimeUpdate
- func (dotu *DeviceOfflineTimeUpdate) SetNillableIotID(s *string) *DeviceOfflineTimeUpdate
- func (dotu *DeviceOfflineTimeUpdate) SetNillableProductKey(s *string) *DeviceOfflineTimeUpdate
- func (dotu *DeviceOfflineTimeUpdate) SetNillableSort(u *uint32) *DeviceOfflineTimeUpdate
- func (dotu *DeviceOfflineTimeUpdate) SetNillableStatus(u *uint8) *DeviceOfflineTimeUpdate
- func (dotu *DeviceOfflineTimeUpdate) SetNillableTime(s *string) *DeviceOfflineTimeUpdate
- func (dot *DeviceOfflineTimeUpdate) SetNotNilDeviceName(value *string) *DeviceOfflineTimeUpdate
- func (dot *DeviceOfflineTimeUpdate) SetNotNilIotID(value *string) *DeviceOfflineTimeUpdate
- func (dot *DeviceOfflineTimeUpdate) SetNotNilProductKey(value *string) *DeviceOfflineTimeUpdate
- func (dot *DeviceOfflineTimeUpdate) SetNotNilSort(value *uint32) *DeviceOfflineTimeUpdate
- func (dot *DeviceOfflineTimeUpdate) SetNotNilStatus(value *uint8) *DeviceOfflineTimeUpdate
- func (dot *DeviceOfflineTimeUpdate) SetNotNilTime(value *string) *DeviceOfflineTimeUpdate
- func (dot *DeviceOfflineTimeUpdate) SetNotNilUpdatedAt(value *time.Time) *DeviceOfflineTimeUpdate
- func (dotu *DeviceOfflineTimeUpdate) SetProductKey(s string) *DeviceOfflineTimeUpdate
- func (dotu *DeviceOfflineTimeUpdate) SetSort(u uint32) *DeviceOfflineTimeUpdate
- func (dotu *DeviceOfflineTimeUpdate) SetStatus(u uint8) *DeviceOfflineTimeUpdate
- func (dotu *DeviceOfflineTimeUpdate) SetTime(s string) *DeviceOfflineTimeUpdate
- func (dotu *DeviceOfflineTimeUpdate) SetUpdatedAt(t time.Time) *DeviceOfflineTimeUpdate
- func (dotu *DeviceOfflineTimeUpdate) Where(ps ...predicate.DeviceOfflineTime) *DeviceOfflineTimeUpdate
- type DeviceOfflineTimeUpdateOne
- func (dotuo *DeviceOfflineTimeUpdateOne) AddSort(u int32) *DeviceOfflineTimeUpdateOne
- func (dotuo *DeviceOfflineTimeUpdateOne) AddStatus(u int8) *DeviceOfflineTimeUpdateOne
- func (dotuo *DeviceOfflineTimeUpdateOne) ClearStatus() *DeviceOfflineTimeUpdateOne
- func (dotuo *DeviceOfflineTimeUpdateOne) ClearTime() *DeviceOfflineTimeUpdateOne
- func (dotuo *DeviceOfflineTimeUpdateOne) Exec(ctx context.Context) error
- func (c *DeviceOfflineTimeUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dotuo *DeviceOfflineTimeUpdateOne) ExecX(ctx context.Context)
- func (dotuo *DeviceOfflineTimeUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceOfflineTimeUpdateOne
- func (dotuo *DeviceOfflineTimeUpdateOne) Mutation() *DeviceOfflineTimeMutation
- func (c *DeviceOfflineTimeUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dotuo *DeviceOfflineTimeUpdateOne) Save(ctx context.Context) (*DeviceOfflineTime, error)
- func (dotuo *DeviceOfflineTimeUpdateOne) SaveX(ctx context.Context) *DeviceOfflineTime
- func (dotuo *DeviceOfflineTimeUpdateOne) Select(field string, fields ...string) *DeviceOfflineTimeUpdateOne
- func (dotuo *DeviceOfflineTimeUpdateOne) SetDeviceName(s string) *DeviceOfflineTimeUpdateOne
- func (dotuo *DeviceOfflineTimeUpdateOne) SetIotID(s string) *DeviceOfflineTimeUpdateOne
- func (dotuo *DeviceOfflineTimeUpdateOne) SetNillableDeviceName(s *string) *DeviceOfflineTimeUpdateOne
- func (dotuo *DeviceOfflineTimeUpdateOne) SetNillableIotID(s *string) *DeviceOfflineTimeUpdateOne
- func (dotuo *DeviceOfflineTimeUpdateOne) SetNillableProductKey(s *string) *DeviceOfflineTimeUpdateOne
- func (dotuo *DeviceOfflineTimeUpdateOne) SetNillableSort(u *uint32) *DeviceOfflineTimeUpdateOne
- func (dotuo *DeviceOfflineTimeUpdateOne) SetNillableStatus(u *uint8) *DeviceOfflineTimeUpdateOne
- func (dotuo *DeviceOfflineTimeUpdateOne) SetNillableTime(s *string) *DeviceOfflineTimeUpdateOne
- func (dot *DeviceOfflineTimeUpdateOne) SetNotNilDeviceName(value *string) *DeviceOfflineTimeUpdateOne
- func (dot *DeviceOfflineTimeUpdateOne) SetNotNilIotID(value *string) *DeviceOfflineTimeUpdateOne
- func (dot *DeviceOfflineTimeUpdateOne) SetNotNilProductKey(value *string) *DeviceOfflineTimeUpdateOne
- func (dot *DeviceOfflineTimeUpdateOne) SetNotNilSort(value *uint32) *DeviceOfflineTimeUpdateOne
- func (dot *DeviceOfflineTimeUpdateOne) SetNotNilStatus(value *uint8) *DeviceOfflineTimeUpdateOne
- func (dot *DeviceOfflineTimeUpdateOne) SetNotNilTime(value *string) *DeviceOfflineTimeUpdateOne
- func (dot *DeviceOfflineTimeUpdateOne) SetNotNilUpdatedAt(value *time.Time) *DeviceOfflineTimeUpdateOne
- func (dotuo *DeviceOfflineTimeUpdateOne) SetProductKey(s string) *DeviceOfflineTimeUpdateOne
- func (dotuo *DeviceOfflineTimeUpdateOne) SetSort(u uint32) *DeviceOfflineTimeUpdateOne
- func (dotuo *DeviceOfflineTimeUpdateOne) SetStatus(u uint8) *DeviceOfflineTimeUpdateOne
- func (dotuo *DeviceOfflineTimeUpdateOne) SetTime(s string) *DeviceOfflineTimeUpdateOne
- func (dotuo *DeviceOfflineTimeUpdateOne) SetUpdatedAt(t time.Time) *DeviceOfflineTimeUpdateOne
- func (dotuo *DeviceOfflineTimeUpdateOne) Where(ps ...predicate.DeviceOfflineTime) *DeviceOfflineTimeUpdateOne
- type DeviceOfflineTimeUpsert
- func (u *DeviceOfflineTimeUpsert) AddSort(v uint32) *DeviceOfflineTimeUpsert
- func (u *DeviceOfflineTimeUpsert) AddStatus(v uint8) *DeviceOfflineTimeUpsert
- func (u *DeviceOfflineTimeUpsert) ClearStatus() *DeviceOfflineTimeUpsert
- func (u *DeviceOfflineTimeUpsert) ClearTime() *DeviceOfflineTimeUpsert
- func (u *DeviceOfflineTimeUpsert) SetDeviceName(v string) *DeviceOfflineTimeUpsert
- func (u *DeviceOfflineTimeUpsert) SetIotID(v string) *DeviceOfflineTimeUpsert
- func (u *DeviceOfflineTimeUpsert) SetProductKey(v string) *DeviceOfflineTimeUpsert
- func (u *DeviceOfflineTimeUpsert) SetSort(v uint32) *DeviceOfflineTimeUpsert
- func (u *DeviceOfflineTimeUpsert) SetStatus(v uint8) *DeviceOfflineTimeUpsert
- func (u *DeviceOfflineTimeUpsert) SetTime(v string) *DeviceOfflineTimeUpsert
- func (u *DeviceOfflineTimeUpsert) SetUpdatedAt(v time.Time) *DeviceOfflineTimeUpsert
- func (u *DeviceOfflineTimeUpsert) UpdateDeviceName() *DeviceOfflineTimeUpsert
- func (u *DeviceOfflineTimeUpsert) UpdateIotID() *DeviceOfflineTimeUpsert
- func (u *DeviceOfflineTimeUpsert) UpdateProductKey() *DeviceOfflineTimeUpsert
- func (u *DeviceOfflineTimeUpsert) UpdateSort() *DeviceOfflineTimeUpsert
- func (u *DeviceOfflineTimeUpsert) UpdateStatus() *DeviceOfflineTimeUpsert
- func (u *DeviceOfflineTimeUpsert) UpdateTime() *DeviceOfflineTimeUpsert
- func (u *DeviceOfflineTimeUpsert) UpdateUpdatedAt() *DeviceOfflineTimeUpsert
- type DeviceOfflineTimeUpsertBulk
- func (u *DeviceOfflineTimeUpsertBulk) AddSort(v uint32) *DeviceOfflineTimeUpsertBulk
- func (u *DeviceOfflineTimeUpsertBulk) AddStatus(v uint8) *DeviceOfflineTimeUpsertBulk
- func (u *DeviceOfflineTimeUpsertBulk) ClearStatus() *DeviceOfflineTimeUpsertBulk
- func (u *DeviceOfflineTimeUpsertBulk) ClearTime() *DeviceOfflineTimeUpsertBulk
- func (u *DeviceOfflineTimeUpsertBulk) DoNothing() *DeviceOfflineTimeUpsertBulk
- func (u *DeviceOfflineTimeUpsertBulk) Exec(ctx context.Context) error
- func (u *DeviceOfflineTimeUpsertBulk) ExecX(ctx context.Context)
- func (u *DeviceOfflineTimeUpsertBulk) Ignore() *DeviceOfflineTimeUpsertBulk
- func (u *DeviceOfflineTimeUpsertBulk) SetDeviceName(v string) *DeviceOfflineTimeUpsertBulk
- func (u *DeviceOfflineTimeUpsertBulk) SetIotID(v string) *DeviceOfflineTimeUpsertBulk
- func (u *DeviceOfflineTimeUpsertBulk) SetProductKey(v string) *DeviceOfflineTimeUpsertBulk
- func (u *DeviceOfflineTimeUpsertBulk) SetSort(v uint32) *DeviceOfflineTimeUpsertBulk
- func (u *DeviceOfflineTimeUpsertBulk) SetStatus(v uint8) *DeviceOfflineTimeUpsertBulk
- func (u *DeviceOfflineTimeUpsertBulk) SetTime(v string) *DeviceOfflineTimeUpsertBulk
- func (u *DeviceOfflineTimeUpsertBulk) SetUpdatedAt(v time.Time) *DeviceOfflineTimeUpsertBulk
- func (u *DeviceOfflineTimeUpsertBulk) Update(set func(*DeviceOfflineTimeUpsert)) *DeviceOfflineTimeUpsertBulk
- func (u *DeviceOfflineTimeUpsertBulk) UpdateDeviceName() *DeviceOfflineTimeUpsertBulk
- func (u *DeviceOfflineTimeUpsertBulk) UpdateIotID() *DeviceOfflineTimeUpsertBulk
- func (u *DeviceOfflineTimeUpsertBulk) UpdateNewValues() *DeviceOfflineTimeUpsertBulk
- func (u *DeviceOfflineTimeUpsertBulk) UpdateProductKey() *DeviceOfflineTimeUpsertBulk
- func (u *DeviceOfflineTimeUpsertBulk) UpdateSort() *DeviceOfflineTimeUpsertBulk
- func (u *DeviceOfflineTimeUpsertBulk) UpdateStatus() *DeviceOfflineTimeUpsertBulk
- func (u *DeviceOfflineTimeUpsertBulk) UpdateTime() *DeviceOfflineTimeUpsertBulk
- func (u *DeviceOfflineTimeUpsertBulk) UpdateUpdatedAt() *DeviceOfflineTimeUpsertBulk
- type DeviceOfflineTimeUpsertOne
- func (u *DeviceOfflineTimeUpsertOne) AddSort(v uint32) *DeviceOfflineTimeUpsertOne
- func (u *DeviceOfflineTimeUpsertOne) AddStatus(v uint8) *DeviceOfflineTimeUpsertOne
- func (u *DeviceOfflineTimeUpsertOne) ClearStatus() *DeviceOfflineTimeUpsertOne
- func (u *DeviceOfflineTimeUpsertOne) ClearTime() *DeviceOfflineTimeUpsertOne
- func (u *DeviceOfflineTimeUpsertOne) DoNothing() *DeviceOfflineTimeUpsertOne
- func (u *DeviceOfflineTimeUpsertOne) Exec(ctx context.Context) error
- func (u *DeviceOfflineTimeUpsertOne) ExecX(ctx context.Context)
- func (u *DeviceOfflineTimeUpsertOne) ID(ctx context.Context) (id uint64, err error)
- func (u *DeviceOfflineTimeUpsertOne) IDX(ctx context.Context) uint64
- func (u *DeviceOfflineTimeUpsertOne) Ignore() *DeviceOfflineTimeUpsertOne
- func (u *DeviceOfflineTimeUpsertOne) SetDeviceName(v string) *DeviceOfflineTimeUpsertOne
- func (u *DeviceOfflineTimeUpsertOne) SetIotID(v string) *DeviceOfflineTimeUpsertOne
- func (u *DeviceOfflineTimeUpsertOne) SetProductKey(v string) *DeviceOfflineTimeUpsertOne
- func (u *DeviceOfflineTimeUpsertOne) SetSort(v uint32) *DeviceOfflineTimeUpsertOne
- func (u *DeviceOfflineTimeUpsertOne) SetStatus(v uint8) *DeviceOfflineTimeUpsertOne
- func (u *DeviceOfflineTimeUpsertOne) SetTime(v string) *DeviceOfflineTimeUpsertOne
- func (u *DeviceOfflineTimeUpsertOne) SetUpdatedAt(v time.Time) *DeviceOfflineTimeUpsertOne
- func (u *DeviceOfflineTimeUpsertOne) Update(set func(*DeviceOfflineTimeUpsert)) *DeviceOfflineTimeUpsertOne
- func (u *DeviceOfflineTimeUpsertOne) UpdateDeviceName() *DeviceOfflineTimeUpsertOne
- func (u *DeviceOfflineTimeUpsertOne) UpdateIotID() *DeviceOfflineTimeUpsertOne
- func (u *DeviceOfflineTimeUpsertOne) UpdateNewValues() *DeviceOfflineTimeUpsertOne
- func (u *DeviceOfflineTimeUpsertOne) UpdateProductKey() *DeviceOfflineTimeUpsertOne
- func (u *DeviceOfflineTimeUpsertOne) UpdateSort() *DeviceOfflineTimeUpsertOne
- func (u *DeviceOfflineTimeUpsertOne) UpdateStatus() *DeviceOfflineTimeUpsertOne
- func (u *DeviceOfflineTimeUpsertOne) UpdateTime() *DeviceOfflineTimeUpsertOne
- func (u *DeviceOfflineTimeUpsertOne) UpdateUpdatedAt() *DeviceOfflineTimeUpsertOne
- type DeviceOfflineTimes
- type DeviceOnTimeDailies
- type DeviceOnTimeDaily
- func (c *DeviceOnTimeDaily) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dotd *DeviceOnTimeDaily) GetValue(name string) (ent.Value, error)
- func (c *DeviceOnTimeDaily) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dotd *DeviceOnTimeDaily) String() string
- func (dotd *DeviceOnTimeDaily) Unwrap() *DeviceOnTimeDaily
- func (dotd *DeviceOnTimeDaily) Update() *DeviceOnTimeDailyUpdateOne
- type DeviceOnTimeDailyClient
- func (c *DeviceOnTimeDailyClient) Create() *DeviceOnTimeDailyCreate
- func (c *DeviceOnTimeDailyClient) CreateBulk(builders ...*DeviceOnTimeDailyCreate) *DeviceOnTimeDailyCreateBulk
- func (c *DeviceOnTimeDailyClient) Delete() *DeviceOnTimeDailyDelete
- func (c *DeviceOnTimeDailyClient) DeleteOne(dotd *DeviceOnTimeDaily) *DeviceOnTimeDailyDeleteOne
- func (c *DeviceOnTimeDailyClient) DeleteOneID(id uint64) *DeviceOnTimeDailyDeleteOne
- func (c *DeviceOnTimeDailyClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *DeviceOnTimeDailyClient) Get(ctx context.Context, id uint64) (*DeviceOnTimeDaily, error)
- func (c *DeviceOnTimeDailyClient) GetX(ctx context.Context, id uint64) *DeviceOnTimeDaily
- func (c *DeviceOnTimeDailyClient) Hooks() []Hook
- func (c *DeviceOnTimeDailyClient) Intercept(interceptors ...Interceptor)
- func (c *DeviceOnTimeDailyClient) Interceptors() []Interceptor
- func (c *DeviceOnTimeDailyClient) MapCreateBulk(slice any, setFunc func(*DeviceOnTimeDailyCreate, int)) *DeviceOnTimeDailyCreateBulk
- func (c *DeviceOnTimeDailyClient) Query() *DeviceOnTimeDailyQuery
- func (c *DeviceOnTimeDailyClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *DeviceOnTimeDailyClient) Update() *DeviceOnTimeDailyUpdate
- func (c *DeviceOnTimeDailyClient) UpdateOne(dotd *DeviceOnTimeDaily) *DeviceOnTimeDailyUpdateOne
- func (c *DeviceOnTimeDailyClient) UpdateOneID(id uint64) *DeviceOnTimeDailyUpdateOne
- func (c *DeviceOnTimeDailyClient) Use(hooks ...Hook)
- type DeviceOnTimeDailyCreate
- func (dotdc *DeviceOnTimeDailyCreate) Exec(ctx context.Context) error
- func (c *DeviceOnTimeDailyCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dotdc *DeviceOnTimeDailyCreate) ExecX(ctx context.Context)
- func (dotdc *DeviceOnTimeDailyCreate) Mutation() *DeviceOnTimeDailyMutation
- func (dotdc *DeviceOnTimeDailyCreate) OnConflict(opts ...sql.ConflictOption) *DeviceOnTimeDailyUpsertOne
- func (dotdc *DeviceOnTimeDailyCreate) OnConflictColumns(columns ...string) *DeviceOnTimeDailyUpsertOne
- func (c *DeviceOnTimeDailyCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dotdc *DeviceOnTimeDailyCreate) Save(ctx context.Context) (*DeviceOnTimeDaily, error)
- func (dotdc *DeviceOnTimeDailyCreate) SaveX(ctx context.Context) *DeviceOnTimeDaily
- func (dotdc *DeviceOnTimeDailyCreate) SetCreatedAt(t time.Time) *DeviceOnTimeDailyCreate
- func (dotdc *DeviceOnTimeDailyCreate) SetDeviceName(s string) *DeviceOnTimeDailyCreate
- func (dotdc *DeviceOnTimeDailyCreate) SetID(u uint64) *DeviceOnTimeDailyCreate
- func (dotdc *DeviceOnTimeDailyCreate) SetIotID(s string) *DeviceOnTimeDailyCreate
- func (dotdc *DeviceOnTimeDailyCreate) SetNillableCreatedAt(t *time.Time) *DeviceOnTimeDailyCreate
- func (dotdc *DeviceOnTimeDailyCreate) SetNillableSort(u *uint32) *DeviceOnTimeDailyCreate
- func (dotdc *DeviceOnTimeDailyCreate) SetNillableStatus(u *uint8) *DeviceOnTimeDailyCreate
- func (dotdc *DeviceOnTimeDailyCreate) SetNillableTime(s *string) *DeviceOnTimeDailyCreate
- func (dotdc *DeviceOnTimeDailyCreate) SetNillableUpdatedAt(t *time.Time) *DeviceOnTimeDailyCreate
- func (dotdc *DeviceOnTimeDailyCreate) SetNillableValue(s *string) *DeviceOnTimeDailyCreate
- func (dotd *DeviceOnTimeDailyCreate) SetNotNilDeviceName(value *string) *DeviceOnTimeDailyCreate
- func (dotd *DeviceOnTimeDailyCreate) SetNotNilIotID(value *string) *DeviceOnTimeDailyCreate
- func (dotd *DeviceOnTimeDailyCreate) SetNotNilProductKey(value *string) *DeviceOnTimeDailyCreate
- func (dotd *DeviceOnTimeDailyCreate) SetNotNilSort(value *uint32) *DeviceOnTimeDailyCreate
- func (dotd *DeviceOnTimeDailyCreate) SetNotNilStatus(value *uint8) *DeviceOnTimeDailyCreate
- func (dotd *DeviceOnTimeDailyCreate) SetNotNilTime(value *string) *DeviceOnTimeDailyCreate
- func (dotd *DeviceOnTimeDailyCreate) SetNotNilUpdatedAt(value *time.Time) *DeviceOnTimeDailyCreate
- func (dotd *DeviceOnTimeDailyCreate) SetNotNilValue(value *string) *DeviceOnTimeDailyCreate
- func (dotdc *DeviceOnTimeDailyCreate) SetProductKey(s string) *DeviceOnTimeDailyCreate
- func (dotdc *DeviceOnTimeDailyCreate) SetSort(u uint32) *DeviceOnTimeDailyCreate
- func (dotdc *DeviceOnTimeDailyCreate) SetStatus(u uint8) *DeviceOnTimeDailyCreate
- func (dotdc *DeviceOnTimeDailyCreate) SetTime(s string) *DeviceOnTimeDailyCreate
- func (dotdc *DeviceOnTimeDailyCreate) SetUpdatedAt(t time.Time) *DeviceOnTimeDailyCreate
- func (dotdc *DeviceOnTimeDailyCreate) SetValue(s string) *DeviceOnTimeDailyCreate
- func (dotdc *DeviceOnTimeDailyCreate) TableName(s string) *DeviceOnTimeDailyCreate
- type DeviceOnTimeDailyCreateBulk
- func (dotdcb *DeviceOnTimeDailyCreateBulk) Exec(ctx context.Context) error
- func (c *DeviceOnTimeDailyCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dotdcb *DeviceOnTimeDailyCreateBulk) ExecX(ctx context.Context)
- func (dotdcb *DeviceOnTimeDailyCreateBulk) OnConflict(opts ...sql.ConflictOption) *DeviceOnTimeDailyUpsertBulk
- func (dotdcb *DeviceOnTimeDailyCreateBulk) OnConflictColumns(columns ...string) *DeviceOnTimeDailyUpsertBulk
- func (c *DeviceOnTimeDailyCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dotdcb *DeviceOnTimeDailyCreateBulk) Save(ctx context.Context) ([]*DeviceOnTimeDaily, error)
- func (dotdcb *DeviceOnTimeDailyCreateBulk) SaveX(ctx context.Context) []*DeviceOnTimeDaily
- type DeviceOnTimeDailyDelete
- func (dotdd *DeviceOnTimeDailyDelete) Exec(ctx context.Context) (int, error)
- func (c *DeviceOnTimeDailyDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dotdd *DeviceOnTimeDailyDelete) ExecX(ctx context.Context) int
- func (c *DeviceOnTimeDailyDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dotdd *DeviceOnTimeDailyDelete) Where(ps ...predicate.DeviceOnTimeDaily) *DeviceOnTimeDailyDelete
- type DeviceOnTimeDailyDeleteOne
- type DeviceOnTimeDailyGroupBy
- func (dotdgb *DeviceOnTimeDailyGroupBy) Aggregate(fns ...AggregateFunc) *DeviceOnTimeDailyGroupBy
- func (s *DeviceOnTimeDailyGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *DeviceOnTimeDailyGroupBy) BoolX(ctx context.Context) bool
- func (s *DeviceOnTimeDailyGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *DeviceOnTimeDailyGroupBy) BoolsX(ctx context.Context) []bool
- func (s *DeviceOnTimeDailyGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *DeviceOnTimeDailyGroupBy) Float64X(ctx context.Context) float64
- func (s *DeviceOnTimeDailyGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *DeviceOnTimeDailyGroupBy) Float64sX(ctx context.Context) []float64
- func (s *DeviceOnTimeDailyGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *DeviceOnTimeDailyGroupBy) IntX(ctx context.Context) int
- func (s *DeviceOnTimeDailyGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *DeviceOnTimeDailyGroupBy) IntsX(ctx context.Context) []int
- func (dotdgb *DeviceOnTimeDailyGroupBy) Scan(ctx context.Context, v any) error
- func (s *DeviceOnTimeDailyGroupBy) ScanX(ctx context.Context, v any)
- func (s *DeviceOnTimeDailyGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *DeviceOnTimeDailyGroupBy) StringX(ctx context.Context) string
- func (s *DeviceOnTimeDailyGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *DeviceOnTimeDailyGroupBy) StringsX(ctx context.Context) []string
- type DeviceOnTimeDailyMutation
- func (m *DeviceOnTimeDailyMutation) AddField(name string, value ent.Value) error
- func (m *DeviceOnTimeDailyMutation) AddSort(u int32)
- func (m *DeviceOnTimeDailyMutation) AddStatus(u int8)
- func (m *DeviceOnTimeDailyMutation) AddedEdges() []string
- func (m *DeviceOnTimeDailyMutation) AddedField(name string) (ent.Value, bool)
- func (m *DeviceOnTimeDailyMutation) AddedFields() []string
- func (m *DeviceOnTimeDailyMutation) AddedIDs(name string) []ent.Value
- func (m *DeviceOnTimeDailyMutation) AddedSort() (r int32, exists bool)
- func (m *DeviceOnTimeDailyMutation) AddedStatus() (r int8, exists bool)
- func (m *DeviceOnTimeDailyMutation) ClearEdge(name string) error
- func (m *DeviceOnTimeDailyMutation) ClearField(name string) error
- func (m *DeviceOnTimeDailyMutation) ClearStatus()
- func (m *DeviceOnTimeDailyMutation) ClearTime()
- func (m *DeviceOnTimeDailyMutation) ClearValue()
- func (m *DeviceOnTimeDailyMutation) ClearedEdges() []string
- func (m *DeviceOnTimeDailyMutation) ClearedFields() []string
- func (m DeviceOnTimeDailyMutation) Client() *Client
- func (m *DeviceOnTimeDailyMutation) CreatedAt() (r time.Time, exists bool)
- func (m *DeviceOnTimeDailyMutation) DeviceName() (r string, exists bool)
- func (m *DeviceOnTimeDailyMutation) EdgeCleared(name string) bool
- func (c *DeviceOnTimeDailyMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *DeviceOnTimeDailyMutation) Field(name string) (ent.Value, bool)
- func (m *DeviceOnTimeDailyMutation) FieldCleared(name string) bool
- func (m *DeviceOnTimeDailyMutation) Fields() []string
- func (m *DeviceOnTimeDailyMutation) ID() (id uint64, exists bool)
- func (m *DeviceOnTimeDailyMutation) IDs(ctx context.Context) ([]uint64, error)
- func (m *DeviceOnTimeDailyMutation) IotID() (r string, exists bool)
- func (m *DeviceOnTimeDailyMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *DeviceOnTimeDailyMutation) OldDeviceName(ctx context.Context) (v string, err error)
- func (m *DeviceOnTimeDailyMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *DeviceOnTimeDailyMutation) OldIotID(ctx context.Context) (v string, err error)
- func (m *DeviceOnTimeDailyMutation) OldProductKey(ctx context.Context) (v string, err error)
- func (m *DeviceOnTimeDailyMutation) OldSort(ctx context.Context) (v uint32, err error)
- func (m *DeviceOnTimeDailyMutation) OldStatus(ctx context.Context) (v uint8, err error)
- func (m *DeviceOnTimeDailyMutation) OldTime(ctx context.Context) (v string, err error)
- func (m *DeviceOnTimeDailyMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *DeviceOnTimeDailyMutation) OldValue(ctx context.Context) (v string, err error)
- func (m *DeviceOnTimeDailyMutation) Op() Op
- func (m *DeviceOnTimeDailyMutation) ProductKey() (r string, exists bool)
- func (c *DeviceOnTimeDailyMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *DeviceOnTimeDailyMutation) RemovedEdges() []string
- func (m *DeviceOnTimeDailyMutation) RemovedIDs(name string) []ent.Value
- func (m *DeviceOnTimeDailyMutation) ResetCreatedAt()
- func (m *DeviceOnTimeDailyMutation) ResetDeviceName()
- func (m *DeviceOnTimeDailyMutation) ResetEdge(name string) error
- func (m *DeviceOnTimeDailyMutation) ResetField(name string) error
- func (m *DeviceOnTimeDailyMutation) ResetIotID()
- func (m *DeviceOnTimeDailyMutation) ResetProductKey()
- func (m *DeviceOnTimeDailyMutation) ResetSort()
- func (m *DeviceOnTimeDailyMutation) ResetStatus()
- func (m *DeviceOnTimeDailyMutation) ResetTime()
- func (m *DeviceOnTimeDailyMutation) ResetUpdatedAt()
- func (m *DeviceOnTimeDailyMutation) ResetValue()
- func (m *DeviceOnTimeDailyMutation) SetCreatedAt(t time.Time)
- func (m *DeviceOnTimeDailyMutation) SetDeviceName(s string)
- func (m *DeviceOnTimeDailyMutation) SetField(name string, value ent.Value) error
- func (m *DeviceOnTimeDailyMutation) SetID(id uint64)
- func (m *DeviceOnTimeDailyMutation) SetIotID(s string)
- func (m *DeviceOnTimeDailyMutation) SetOp(op Op)
- func (m *DeviceOnTimeDailyMutation) SetProductKey(s string)
- func (m *DeviceOnTimeDailyMutation) SetSort(u uint32)
- func (m *DeviceOnTimeDailyMutation) SetStatus(u uint8)
- func (m *DeviceOnTimeDailyMutation) SetTime(s string)
- func (m *DeviceOnTimeDailyMutation) SetUpdatedAt(t time.Time)
- func (m *DeviceOnTimeDailyMutation) SetValue(s string)
- func (m *DeviceOnTimeDailyMutation) Sort() (r uint32, exists bool)
- func (m *DeviceOnTimeDailyMutation) Status() (r uint8, exists bool)
- func (m *DeviceOnTimeDailyMutation) StatusCleared() bool
- func (m *DeviceOnTimeDailyMutation) Time() (r string, exists bool)
- func (m *DeviceOnTimeDailyMutation) TimeCleared() bool
- func (m DeviceOnTimeDailyMutation) Tx() (*Tx, error)
- func (m *DeviceOnTimeDailyMutation) Type() string
- func (m *DeviceOnTimeDailyMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *DeviceOnTimeDailyMutation) Value() (r string, exists bool)
- func (m *DeviceOnTimeDailyMutation) ValueCleared() bool
- func (m *DeviceOnTimeDailyMutation) Where(ps ...predicate.DeviceOnTimeDaily)
- func (m *DeviceOnTimeDailyMutation) WhereP(ps ...func(*sql.Selector))
- type DeviceOnTimeDailyPageList
- type DeviceOnTimeDailyPager
- type DeviceOnTimeDailyPaginateOption
- type DeviceOnTimeDailyQuery
- func (dotdq *DeviceOnTimeDailyQuery) Aggregate(fns ...AggregateFunc) *DeviceOnTimeDailySelect
- func (dotdq *DeviceOnTimeDailyQuery) All(ctx context.Context) ([]*DeviceOnTimeDaily, error)
- func (dotdq *DeviceOnTimeDailyQuery) AllX(ctx context.Context) []*DeviceOnTimeDaily
- func (dotdq *DeviceOnTimeDailyQuery) Clone() *DeviceOnTimeDailyQuery
- func (dotdq *DeviceOnTimeDailyQuery) Count(ctx context.Context) (int, error)
- func (dotdq *DeviceOnTimeDailyQuery) CountX(ctx context.Context) int
- func (c *DeviceOnTimeDailyQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dotdq *DeviceOnTimeDailyQuery) Exist(ctx context.Context) (bool, error)
- func (dotdq *DeviceOnTimeDailyQuery) ExistX(ctx context.Context) bool
- func (dotdq *DeviceOnTimeDailyQuery) First(ctx context.Context) (*DeviceOnTimeDaily, error)
- func (dotdq *DeviceOnTimeDailyQuery) FirstID(ctx context.Context) (id uint64, err error)
- func (dotdq *DeviceOnTimeDailyQuery) FirstIDX(ctx context.Context) uint64
- func (dotdq *DeviceOnTimeDailyQuery) FirstX(ctx context.Context) *DeviceOnTimeDaily
- func (dotdq *DeviceOnTimeDailyQuery) GroupBy(field string, fields ...string) *DeviceOnTimeDailyGroupBy
- func (dotdq *DeviceOnTimeDailyQuery) IDs(ctx context.Context) (ids []uint64, err error)
- func (dotdq *DeviceOnTimeDailyQuery) IDsX(ctx context.Context) []uint64
- func (dotdq *DeviceOnTimeDailyQuery) Limit(limit int) *DeviceOnTimeDailyQuery
- func (dotdq *DeviceOnTimeDailyQuery) Modify(modifiers ...func(s *sql.Selector)) *DeviceOnTimeDailySelect
- func (dotdq *DeviceOnTimeDailyQuery) Offset(offset int) *DeviceOnTimeDailyQuery
- func (dotdq *DeviceOnTimeDailyQuery) Only(ctx context.Context) (*DeviceOnTimeDaily, error)
- func (dotdq *DeviceOnTimeDailyQuery) OnlyID(ctx context.Context) (id uint64, err error)
- func (dotdq *DeviceOnTimeDailyQuery) OnlyIDX(ctx context.Context) uint64
- func (dotdq *DeviceOnTimeDailyQuery) OnlyX(ctx context.Context) *DeviceOnTimeDaily
- func (dotdq *DeviceOnTimeDailyQuery) Order(o ...deviceontimedaily.OrderOption) *DeviceOnTimeDailyQuery
- func (dotd *DeviceOnTimeDailyQuery) Page(ctx context.Context, pageNum uint64, pageSize uint64, ...) (*DeviceOnTimeDailyPageList, error)
- func (c *DeviceOnTimeDailyQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dotdq *DeviceOnTimeDailyQuery) Select(fields ...string) *DeviceOnTimeDailySelect
- func (dotdq *DeviceOnTimeDailyQuery) Unique(unique bool) *DeviceOnTimeDailyQuery
- func (dotdq *DeviceOnTimeDailyQuery) Where(ps ...predicate.DeviceOnTimeDaily) *DeviceOnTimeDailyQuery
- type DeviceOnTimeDailySelect
- func (dotds *DeviceOnTimeDailySelect) Aggregate(fns ...AggregateFunc) *DeviceOnTimeDailySelect
- func (s *DeviceOnTimeDailySelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *DeviceOnTimeDailySelect) BoolX(ctx context.Context) bool
- func (s *DeviceOnTimeDailySelect) Bools(ctx context.Context) ([]bool, error)
- func (s *DeviceOnTimeDailySelect) BoolsX(ctx context.Context) []bool
- func (c DeviceOnTimeDailySelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *DeviceOnTimeDailySelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *DeviceOnTimeDailySelect) Float64X(ctx context.Context) float64
- func (s *DeviceOnTimeDailySelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *DeviceOnTimeDailySelect) Float64sX(ctx context.Context) []float64
- func (s *DeviceOnTimeDailySelect) Int(ctx context.Context) (_ int, err error)
- func (s *DeviceOnTimeDailySelect) IntX(ctx context.Context) int
- func (s *DeviceOnTimeDailySelect) Ints(ctx context.Context) ([]int, error)
- func (s *DeviceOnTimeDailySelect) IntsX(ctx context.Context) []int
- func (dotds *DeviceOnTimeDailySelect) Modify(modifiers ...func(s *sql.Selector)) *DeviceOnTimeDailySelect
- func (c DeviceOnTimeDailySelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dotds *DeviceOnTimeDailySelect) Scan(ctx context.Context, v any) error
- func (s *DeviceOnTimeDailySelect) ScanX(ctx context.Context, v any)
- func (s *DeviceOnTimeDailySelect) String(ctx context.Context) (_ string, err error)
- func (s *DeviceOnTimeDailySelect) StringX(ctx context.Context) string
- func (s *DeviceOnTimeDailySelect) Strings(ctx context.Context) ([]string, error)
- func (s *DeviceOnTimeDailySelect) StringsX(ctx context.Context) []string
- type DeviceOnTimeDailyUpdate
- func (dotdu *DeviceOnTimeDailyUpdate) AddSort(u int32) *DeviceOnTimeDailyUpdate
- func (dotdu *DeviceOnTimeDailyUpdate) AddStatus(u int8) *DeviceOnTimeDailyUpdate
- func (dotdu *DeviceOnTimeDailyUpdate) ClearStatus() *DeviceOnTimeDailyUpdate
- func (dotdu *DeviceOnTimeDailyUpdate) ClearTime() *DeviceOnTimeDailyUpdate
- func (dotdu *DeviceOnTimeDailyUpdate) ClearValue() *DeviceOnTimeDailyUpdate
- func (dotdu *DeviceOnTimeDailyUpdate) Exec(ctx context.Context) error
- func (c *DeviceOnTimeDailyUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dotdu *DeviceOnTimeDailyUpdate) ExecX(ctx context.Context)
- func (dotdu *DeviceOnTimeDailyUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceOnTimeDailyUpdate
- func (dotdu *DeviceOnTimeDailyUpdate) Mutation() *DeviceOnTimeDailyMutation
- func (c *DeviceOnTimeDailyUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dotdu *DeviceOnTimeDailyUpdate) Save(ctx context.Context) (int, error)
- func (dotdu *DeviceOnTimeDailyUpdate) SaveX(ctx context.Context) int
- func (dotdu *DeviceOnTimeDailyUpdate) SetDeviceName(s string) *DeviceOnTimeDailyUpdate
- func (dotdu *DeviceOnTimeDailyUpdate) SetIotID(s string) *DeviceOnTimeDailyUpdate
- func (dotdu *DeviceOnTimeDailyUpdate) SetNillableDeviceName(s *string) *DeviceOnTimeDailyUpdate
- func (dotdu *DeviceOnTimeDailyUpdate) SetNillableIotID(s *string) *DeviceOnTimeDailyUpdate
- func (dotdu *DeviceOnTimeDailyUpdate) SetNillableProductKey(s *string) *DeviceOnTimeDailyUpdate
- func (dotdu *DeviceOnTimeDailyUpdate) SetNillableSort(u *uint32) *DeviceOnTimeDailyUpdate
- func (dotdu *DeviceOnTimeDailyUpdate) SetNillableStatus(u *uint8) *DeviceOnTimeDailyUpdate
- func (dotdu *DeviceOnTimeDailyUpdate) SetNillableTime(s *string) *DeviceOnTimeDailyUpdate
- func (dotdu *DeviceOnTimeDailyUpdate) SetNillableValue(s *string) *DeviceOnTimeDailyUpdate
- func (dotd *DeviceOnTimeDailyUpdate) SetNotNilDeviceName(value *string) *DeviceOnTimeDailyUpdate
- func (dotd *DeviceOnTimeDailyUpdate) SetNotNilIotID(value *string) *DeviceOnTimeDailyUpdate
- func (dotd *DeviceOnTimeDailyUpdate) SetNotNilProductKey(value *string) *DeviceOnTimeDailyUpdate
- func (dotd *DeviceOnTimeDailyUpdate) SetNotNilSort(value *uint32) *DeviceOnTimeDailyUpdate
- func (dotd *DeviceOnTimeDailyUpdate) SetNotNilStatus(value *uint8) *DeviceOnTimeDailyUpdate
- func (dotd *DeviceOnTimeDailyUpdate) SetNotNilTime(value *string) *DeviceOnTimeDailyUpdate
- func (dotd *DeviceOnTimeDailyUpdate) SetNotNilUpdatedAt(value *time.Time) *DeviceOnTimeDailyUpdate
- func (dotd *DeviceOnTimeDailyUpdate) SetNotNilValue(value *string) *DeviceOnTimeDailyUpdate
- func (dotdu *DeviceOnTimeDailyUpdate) SetProductKey(s string) *DeviceOnTimeDailyUpdate
- func (dotdu *DeviceOnTimeDailyUpdate) SetSort(u uint32) *DeviceOnTimeDailyUpdate
- func (dotdu *DeviceOnTimeDailyUpdate) SetStatus(u uint8) *DeviceOnTimeDailyUpdate
- func (dotdu *DeviceOnTimeDailyUpdate) SetTime(s string) *DeviceOnTimeDailyUpdate
- func (dotdu *DeviceOnTimeDailyUpdate) SetUpdatedAt(t time.Time) *DeviceOnTimeDailyUpdate
- func (dotdu *DeviceOnTimeDailyUpdate) SetValue(s string) *DeviceOnTimeDailyUpdate
- func (dotdu *DeviceOnTimeDailyUpdate) Where(ps ...predicate.DeviceOnTimeDaily) *DeviceOnTimeDailyUpdate
- type DeviceOnTimeDailyUpdateOne
- func (dotduo *DeviceOnTimeDailyUpdateOne) AddSort(u int32) *DeviceOnTimeDailyUpdateOne
- func (dotduo *DeviceOnTimeDailyUpdateOne) AddStatus(u int8) *DeviceOnTimeDailyUpdateOne
- func (dotduo *DeviceOnTimeDailyUpdateOne) ClearStatus() *DeviceOnTimeDailyUpdateOne
- func (dotduo *DeviceOnTimeDailyUpdateOne) ClearTime() *DeviceOnTimeDailyUpdateOne
- func (dotduo *DeviceOnTimeDailyUpdateOne) ClearValue() *DeviceOnTimeDailyUpdateOne
- func (dotduo *DeviceOnTimeDailyUpdateOne) Exec(ctx context.Context) error
- func (c *DeviceOnTimeDailyUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dotduo *DeviceOnTimeDailyUpdateOne) ExecX(ctx context.Context)
- func (dotduo *DeviceOnTimeDailyUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceOnTimeDailyUpdateOne
- func (dotduo *DeviceOnTimeDailyUpdateOne) Mutation() *DeviceOnTimeDailyMutation
- func (c *DeviceOnTimeDailyUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dotduo *DeviceOnTimeDailyUpdateOne) Save(ctx context.Context) (*DeviceOnTimeDaily, error)
- func (dotduo *DeviceOnTimeDailyUpdateOne) SaveX(ctx context.Context) *DeviceOnTimeDaily
- func (dotduo *DeviceOnTimeDailyUpdateOne) Select(field string, fields ...string) *DeviceOnTimeDailyUpdateOne
- func (dotduo *DeviceOnTimeDailyUpdateOne) SetDeviceName(s string) *DeviceOnTimeDailyUpdateOne
- func (dotduo *DeviceOnTimeDailyUpdateOne) SetIotID(s string) *DeviceOnTimeDailyUpdateOne
- func (dotduo *DeviceOnTimeDailyUpdateOne) SetNillableDeviceName(s *string) *DeviceOnTimeDailyUpdateOne
- func (dotduo *DeviceOnTimeDailyUpdateOne) SetNillableIotID(s *string) *DeviceOnTimeDailyUpdateOne
- func (dotduo *DeviceOnTimeDailyUpdateOne) SetNillableProductKey(s *string) *DeviceOnTimeDailyUpdateOne
- func (dotduo *DeviceOnTimeDailyUpdateOne) SetNillableSort(u *uint32) *DeviceOnTimeDailyUpdateOne
- func (dotduo *DeviceOnTimeDailyUpdateOne) SetNillableStatus(u *uint8) *DeviceOnTimeDailyUpdateOne
- func (dotduo *DeviceOnTimeDailyUpdateOne) SetNillableTime(s *string) *DeviceOnTimeDailyUpdateOne
- func (dotduo *DeviceOnTimeDailyUpdateOne) SetNillableValue(s *string) *DeviceOnTimeDailyUpdateOne
- func (dotd *DeviceOnTimeDailyUpdateOne) SetNotNilDeviceName(value *string) *DeviceOnTimeDailyUpdateOne
- func (dotd *DeviceOnTimeDailyUpdateOne) SetNotNilIotID(value *string) *DeviceOnTimeDailyUpdateOne
- func (dotd *DeviceOnTimeDailyUpdateOne) SetNotNilProductKey(value *string) *DeviceOnTimeDailyUpdateOne
- func (dotd *DeviceOnTimeDailyUpdateOne) SetNotNilSort(value *uint32) *DeviceOnTimeDailyUpdateOne
- func (dotd *DeviceOnTimeDailyUpdateOne) SetNotNilStatus(value *uint8) *DeviceOnTimeDailyUpdateOne
- func (dotd *DeviceOnTimeDailyUpdateOne) SetNotNilTime(value *string) *DeviceOnTimeDailyUpdateOne
- func (dotd *DeviceOnTimeDailyUpdateOne) SetNotNilUpdatedAt(value *time.Time) *DeviceOnTimeDailyUpdateOne
- func (dotd *DeviceOnTimeDailyUpdateOne) SetNotNilValue(value *string) *DeviceOnTimeDailyUpdateOne
- func (dotduo *DeviceOnTimeDailyUpdateOne) SetProductKey(s string) *DeviceOnTimeDailyUpdateOne
- func (dotduo *DeviceOnTimeDailyUpdateOne) SetSort(u uint32) *DeviceOnTimeDailyUpdateOne
- func (dotduo *DeviceOnTimeDailyUpdateOne) SetStatus(u uint8) *DeviceOnTimeDailyUpdateOne
- func (dotduo *DeviceOnTimeDailyUpdateOne) SetTime(s string) *DeviceOnTimeDailyUpdateOne
- func (dotduo *DeviceOnTimeDailyUpdateOne) SetUpdatedAt(t time.Time) *DeviceOnTimeDailyUpdateOne
- func (dotduo *DeviceOnTimeDailyUpdateOne) SetValue(s string) *DeviceOnTimeDailyUpdateOne
- func (dotduo *DeviceOnTimeDailyUpdateOne) Where(ps ...predicate.DeviceOnTimeDaily) *DeviceOnTimeDailyUpdateOne
- type DeviceOnTimeDailyUpsert
- func (u *DeviceOnTimeDailyUpsert) AddSort(v uint32) *DeviceOnTimeDailyUpsert
- func (u *DeviceOnTimeDailyUpsert) AddStatus(v uint8) *DeviceOnTimeDailyUpsert
- func (u *DeviceOnTimeDailyUpsert) ClearStatus() *DeviceOnTimeDailyUpsert
- func (u *DeviceOnTimeDailyUpsert) ClearTime() *DeviceOnTimeDailyUpsert
- func (u *DeviceOnTimeDailyUpsert) ClearValue() *DeviceOnTimeDailyUpsert
- func (u *DeviceOnTimeDailyUpsert) SetDeviceName(v string) *DeviceOnTimeDailyUpsert
- func (u *DeviceOnTimeDailyUpsert) SetIotID(v string) *DeviceOnTimeDailyUpsert
- func (u *DeviceOnTimeDailyUpsert) SetProductKey(v string) *DeviceOnTimeDailyUpsert
- func (u *DeviceOnTimeDailyUpsert) SetSort(v uint32) *DeviceOnTimeDailyUpsert
- func (u *DeviceOnTimeDailyUpsert) SetStatus(v uint8) *DeviceOnTimeDailyUpsert
- func (u *DeviceOnTimeDailyUpsert) SetTime(v string) *DeviceOnTimeDailyUpsert
- func (u *DeviceOnTimeDailyUpsert) SetUpdatedAt(v time.Time) *DeviceOnTimeDailyUpsert
- func (u *DeviceOnTimeDailyUpsert) SetValue(v string) *DeviceOnTimeDailyUpsert
- func (u *DeviceOnTimeDailyUpsert) UpdateDeviceName() *DeviceOnTimeDailyUpsert
- func (u *DeviceOnTimeDailyUpsert) UpdateIotID() *DeviceOnTimeDailyUpsert
- func (u *DeviceOnTimeDailyUpsert) UpdateProductKey() *DeviceOnTimeDailyUpsert
- func (u *DeviceOnTimeDailyUpsert) UpdateSort() *DeviceOnTimeDailyUpsert
- func (u *DeviceOnTimeDailyUpsert) UpdateStatus() *DeviceOnTimeDailyUpsert
- func (u *DeviceOnTimeDailyUpsert) UpdateTime() *DeviceOnTimeDailyUpsert
- func (u *DeviceOnTimeDailyUpsert) UpdateUpdatedAt() *DeviceOnTimeDailyUpsert
- func (u *DeviceOnTimeDailyUpsert) UpdateValue() *DeviceOnTimeDailyUpsert
- type DeviceOnTimeDailyUpsertBulk
- func (u *DeviceOnTimeDailyUpsertBulk) AddSort(v uint32) *DeviceOnTimeDailyUpsertBulk
- func (u *DeviceOnTimeDailyUpsertBulk) AddStatus(v uint8) *DeviceOnTimeDailyUpsertBulk
- func (u *DeviceOnTimeDailyUpsertBulk) ClearStatus() *DeviceOnTimeDailyUpsertBulk
- func (u *DeviceOnTimeDailyUpsertBulk) ClearTime() *DeviceOnTimeDailyUpsertBulk
- func (u *DeviceOnTimeDailyUpsertBulk) ClearValue() *DeviceOnTimeDailyUpsertBulk
- func (u *DeviceOnTimeDailyUpsertBulk) DoNothing() *DeviceOnTimeDailyUpsertBulk
- func (u *DeviceOnTimeDailyUpsertBulk) Exec(ctx context.Context) error
- func (u *DeviceOnTimeDailyUpsertBulk) ExecX(ctx context.Context)
- func (u *DeviceOnTimeDailyUpsertBulk) Ignore() *DeviceOnTimeDailyUpsertBulk
- func (u *DeviceOnTimeDailyUpsertBulk) SetDeviceName(v string) *DeviceOnTimeDailyUpsertBulk
- func (u *DeviceOnTimeDailyUpsertBulk) SetIotID(v string) *DeviceOnTimeDailyUpsertBulk
- func (u *DeviceOnTimeDailyUpsertBulk) SetProductKey(v string) *DeviceOnTimeDailyUpsertBulk
- func (u *DeviceOnTimeDailyUpsertBulk) SetSort(v uint32) *DeviceOnTimeDailyUpsertBulk
- func (u *DeviceOnTimeDailyUpsertBulk) SetStatus(v uint8) *DeviceOnTimeDailyUpsertBulk
- func (u *DeviceOnTimeDailyUpsertBulk) SetTime(v string) *DeviceOnTimeDailyUpsertBulk
- func (u *DeviceOnTimeDailyUpsertBulk) SetUpdatedAt(v time.Time) *DeviceOnTimeDailyUpsertBulk
- func (u *DeviceOnTimeDailyUpsertBulk) SetValue(v string) *DeviceOnTimeDailyUpsertBulk
- func (u *DeviceOnTimeDailyUpsertBulk) Update(set func(*DeviceOnTimeDailyUpsert)) *DeviceOnTimeDailyUpsertBulk
- func (u *DeviceOnTimeDailyUpsertBulk) UpdateDeviceName() *DeviceOnTimeDailyUpsertBulk
- func (u *DeviceOnTimeDailyUpsertBulk) UpdateIotID() *DeviceOnTimeDailyUpsertBulk
- func (u *DeviceOnTimeDailyUpsertBulk) UpdateNewValues() *DeviceOnTimeDailyUpsertBulk
- func (u *DeviceOnTimeDailyUpsertBulk) UpdateProductKey() *DeviceOnTimeDailyUpsertBulk
- func (u *DeviceOnTimeDailyUpsertBulk) UpdateSort() *DeviceOnTimeDailyUpsertBulk
- func (u *DeviceOnTimeDailyUpsertBulk) UpdateStatus() *DeviceOnTimeDailyUpsertBulk
- func (u *DeviceOnTimeDailyUpsertBulk) UpdateTime() *DeviceOnTimeDailyUpsertBulk
- func (u *DeviceOnTimeDailyUpsertBulk) UpdateUpdatedAt() *DeviceOnTimeDailyUpsertBulk
- func (u *DeviceOnTimeDailyUpsertBulk) UpdateValue() *DeviceOnTimeDailyUpsertBulk
- type DeviceOnTimeDailyUpsertOne
- func (u *DeviceOnTimeDailyUpsertOne) AddSort(v uint32) *DeviceOnTimeDailyUpsertOne
- func (u *DeviceOnTimeDailyUpsertOne) AddStatus(v uint8) *DeviceOnTimeDailyUpsertOne
- func (u *DeviceOnTimeDailyUpsertOne) ClearStatus() *DeviceOnTimeDailyUpsertOne
- func (u *DeviceOnTimeDailyUpsertOne) ClearTime() *DeviceOnTimeDailyUpsertOne
- func (u *DeviceOnTimeDailyUpsertOne) ClearValue() *DeviceOnTimeDailyUpsertOne
- func (u *DeviceOnTimeDailyUpsertOne) DoNothing() *DeviceOnTimeDailyUpsertOne
- func (u *DeviceOnTimeDailyUpsertOne) Exec(ctx context.Context) error
- func (u *DeviceOnTimeDailyUpsertOne) ExecX(ctx context.Context)
- func (u *DeviceOnTimeDailyUpsertOne) ID(ctx context.Context) (id uint64, err error)
- func (u *DeviceOnTimeDailyUpsertOne) IDX(ctx context.Context) uint64
- func (u *DeviceOnTimeDailyUpsertOne) Ignore() *DeviceOnTimeDailyUpsertOne
- func (u *DeviceOnTimeDailyUpsertOne) SetDeviceName(v string) *DeviceOnTimeDailyUpsertOne
- func (u *DeviceOnTimeDailyUpsertOne) SetIotID(v string) *DeviceOnTimeDailyUpsertOne
- func (u *DeviceOnTimeDailyUpsertOne) SetProductKey(v string) *DeviceOnTimeDailyUpsertOne
- func (u *DeviceOnTimeDailyUpsertOne) SetSort(v uint32) *DeviceOnTimeDailyUpsertOne
- func (u *DeviceOnTimeDailyUpsertOne) SetStatus(v uint8) *DeviceOnTimeDailyUpsertOne
- func (u *DeviceOnTimeDailyUpsertOne) SetTime(v string) *DeviceOnTimeDailyUpsertOne
- func (u *DeviceOnTimeDailyUpsertOne) SetUpdatedAt(v time.Time) *DeviceOnTimeDailyUpsertOne
- func (u *DeviceOnTimeDailyUpsertOne) SetValue(v string) *DeviceOnTimeDailyUpsertOne
- func (u *DeviceOnTimeDailyUpsertOne) Update(set func(*DeviceOnTimeDailyUpsert)) *DeviceOnTimeDailyUpsertOne
- func (u *DeviceOnTimeDailyUpsertOne) UpdateDeviceName() *DeviceOnTimeDailyUpsertOne
- func (u *DeviceOnTimeDailyUpsertOne) UpdateIotID() *DeviceOnTimeDailyUpsertOne
- func (u *DeviceOnTimeDailyUpsertOne) UpdateNewValues() *DeviceOnTimeDailyUpsertOne
- func (u *DeviceOnTimeDailyUpsertOne) UpdateProductKey() *DeviceOnTimeDailyUpsertOne
- func (u *DeviceOnTimeDailyUpsertOne) UpdateSort() *DeviceOnTimeDailyUpsertOne
- func (u *DeviceOnTimeDailyUpsertOne) UpdateStatus() *DeviceOnTimeDailyUpsertOne
- func (u *DeviceOnTimeDailyUpsertOne) UpdateTime() *DeviceOnTimeDailyUpsertOne
- func (u *DeviceOnTimeDailyUpsertOne) UpdateUpdatedAt() *DeviceOnTimeDailyUpsertOne
- func (u *DeviceOnTimeDailyUpsertOne) UpdateValue() *DeviceOnTimeDailyUpsertOne
- type DeviceOnlineTime
- func (c *DeviceOnlineTime) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *DeviceOnlineTime) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dot *DeviceOnlineTime) String() string
- func (dot *DeviceOnlineTime) Unwrap() *DeviceOnlineTime
- func (dot *DeviceOnlineTime) Update() *DeviceOnlineTimeUpdateOne
- func (dot *DeviceOnlineTime) Value(name string) (ent.Value, error)
- type DeviceOnlineTimeClient
- func (c *DeviceOnlineTimeClient) Create() *DeviceOnlineTimeCreate
- func (c *DeviceOnlineTimeClient) CreateBulk(builders ...*DeviceOnlineTimeCreate) *DeviceOnlineTimeCreateBulk
- func (c *DeviceOnlineTimeClient) Delete() *DeviceOnlineTimeDelete
- func (c *DeviceOnlineTimeClient) DeleteOne(dot *DeviceOnlineTime) *DeviceOnlineTimeDeleteOne
- func (c *DeviceOnlineTimeClient) DeleteOneID(id uint64) *DeviceOnlineTimeDeleteOne
- func (c *DeviceOnlineTimeClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *DeviceOnlineTimeClient) Get(ctx context.Context, id uint64) (*DeviceOnlineTime, error)
- func (c *DeviceOnlineTimeClient) GetX(ctx context.Context, id uint64) *DeviceOnlineTime
- func (c *DeviceOnlineTimeClient) Hooks() []Hook
- func (c *DeviceOnlineTimeClient) Intercept(interceptors ...Interceptor)
- func (c *DeviceOnlineTimeClient) Interceptors() []Interceptor
- func (c *DeviceOnlineTimeClient) MapCreateBulk(slice any, setFunc func(*DeviceOnlineTimeCreate, int)) *DeviceOnlineTimeCreateBulk
- func (c *DeviceOnlineTimeClient) Query() *DeviceOnlineTimeQuery
- func (c *DeviceOnlineTimeClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *DeviceOnlineTimeClient) Update() *DeviceOnlineTimeUpdate
- func (c *DeviceOnlineTimeClient) UpdateOne(dot *DeviceOnlineTime) *DeviceOnlineTimeUpdateOne
- func (c *DeviceOnlineTimeClient) UpdateOneID(id uint64) *DeviceOnlineTimeUpdateOne
- func (c *DeviceOnlineTimeClient) Use(hooks ...Hook)
- type DeviceOnlineTimeCreate
- func (dotc *DeviceOnlineTimeCreate) Exec(ctx context.Context) error
- func (c *DeviceOnlineTimeCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dotc *DeviceOnlineTimeCreate) ExecX(ctx context.Context)
- func (dotc *DeviceOnlineTimeCreate) Mutation() *DeviceOnlineTimeMutation
- func (dotc *DeviceOnlineTimeCreate) OnConflict(opts ...sql.ConflictOption) *DeviceOnlineTimeUpsertOne
- func (dotc *DeviceOnlineTimeCreate) OnConflictColumns(columns ...string) *DeviceOnlineTimeUpsertOne
- func (c *DeviceOnlineTimeCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dotc *DeviceOnlineTimeCreate) Save(ctx context.Context) (*DeviceOnlineTime, error)
- func (dotc *DeviceOnlineTimeCreate) SaveX(ctx context.Context) *DeviceOnlineTime
- func (dotc *DeviceOnlineTimeCreate) SetCreatedAt(t time.Time) *DeviceOnlineTimeCreate
- func (dotc *DeviceOnlineTimeCreate) SetDeviceName(s string) *DeviceOnlineTimeCreate
- func (dotc *DeviceOnlineTimeCreate) SetGmtOnline(s string) *DeviceOnlineTimeCreate
- func (dotc *DeviceOnlineTimeCreate) SetID(u uint64) *DeviceOnlineTimeCreate
- func (dotc *DeviceOnlineTimeCreate) SetIotID(s string) *DeviceOnlineTimeCreate
- func (dotc *DeviceOnlineTimeCreate) SetNillableCreatedAt(t *time.Time) *DeviceOnlineTimeCreate
- func (dotc *DeviceOnlineTimeCreate) SetNillableGmtOnline(s *string) *DeviceOnlineTimeCreate
- func (dotc *DeviceOnlineTimeCreate) SetNillableSort(u *uint32) *DeviceOnlineTimeCreate
- func (dotc *DeviceOnlineTimeCreate) SetNillableStatus(u *uint8) *DeviceOnlineTimeCreate
- func (dotc *DeviceOnlineTimeCreate) SetNillableUpdatedAt(t *time.Time) *DeviceOnlineTimeCreate
- func (dot *DeviceOnlineTimeCreate) SetNotNilDeviceName(value *string) *DeviceOnlineTimeCreate
- func (dot *DeviceOnlineTimeCreate) SetNotNilGmtOnline(value *string) *DeviceOnlineTimeCreate
- func (dot *DeviceOnlineTimeCreate) SetNotNilIotID(value *string) *DeviceOnlineTimeCreate
- func (dot *DeviceOnlineTimeCreate) SetNotNilProductKey(value *string) *DeviceOnlineTimeCreate
- func (dot *DeviceOnlineTimeCreate) SetNotNilSort(value *uint32) *DeviceOnlineTimeCreate
- func (dot *DeviceOnlineTimeCreate) SetNotNilStatus(value *uint8) *DeviceOnlineTimeCreate
- func (dot *DeviceOnlineTimeCreate) SetNotNilUpdatedAt(value *time.Time) *DeviceOnlineTimeCreate
- func (dotc *DeviceOnlineTimeCreate) SetProductKey(s string) *DeviceOnlineTimeCreate
- func (dotc *DeviceOnlineTimeCreate) SetSort(u uint32) *DeviceOnlineTimeCreate
- func (dotc *DeviceOnlineTimeCreate) SetStatus(u uint8) *DeviceOnlineTimeCreate
- func (dotc *DeviceOnlineTimeCreate) SetUpdatedAt(t time.Time) *DeviceOnlineTimeCreate
- func (dotc *DeviceOnlineTimeCreate) TableName(s string) *DeviceOnlineTimeCreate
- type DeviceOnlineTimeCreateBulk
- func (dotcb *DeviceOnlineTimeCreateBulk) Exec(ctx context.Context) error
- func (c *DeviceOnlineTimeCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dotcb *DeviceOnlineTimeCreateBulk) ExecX(ctx context.Context)
- func (dotcb *DeviceOnlineTimeCreateBulk) OnConflict(opts ...sql.ConflictOption) *DeviceOnlineTimeUpsertBulk
- func (dotcb *DeviceOnlineTimeCreateBulk) OnConflictColumns(columns ...string) *DeviceOnlineTimeUpsertBulk
- func (c *DeviceOnlineTimeCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dotcb *DeviceOnlineTimeCreateBulk) Save(ctx context.Context) ([]*DeviceOnlineTime, error)
- func (dotcb *DeviceOnlineTimeCreateBulk) SaveX(ctx context.Context) []*DeviceOnlineTime
- type DeviceOnlineTimeDelete
- func (dotd *DeviceOnlineTimeDelete) Exec(ctx context.Context) (int, error)
- func (c *DeviceOnlineTimeDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dotd *DeviceOnlineTimeDelete) ExecX(ctx context.Context) int
- func (c *DeviceOnlineTimeDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dotd *DeviceOnlineTimeDelete) Where(ps ...predicate.DeviceOnlineTime) *DeviceOnlineTimeDelete
- type DeviceOnlineTimeDeleteOne
- type DeviceOnlineTimeGroupBy
- func (dotgb *DeviceOnlineTimeGroupBy) Aggregate(fns ...AggregateFunc) *DeviceOnlineTimeGroupBy
- func (s *DeviceOnlineTimeGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *DeviceOnlineTimeGroupBy) BoolX(ctx context.Context) bool
- func (s *DeviceOnlineTimeGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *DeviceOnlineTimeGroupBy) BoolsX(ctx context.Context) []bool
- func (s *DeviceOnlineTimeGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *DeviceOnlineTimeGroupBy) Float64X(ctx context.Context) float64
- func (s *DeviceOnlineTimeGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *DeviceOnlineTimeGroupBy) Float64sX(ctx context.Context) []float64
- func (s *DeviceOnlineTimeGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *DeviceOnlineTimeGroupBy) IntX(ctx context.Context) int
- func (s *DeviceOnlineTimeGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *DeviceOnlineTimeGroupBy) IntsX(ctx context.Context) []int
- func (dotgb *DeviceOnlineTimeGroupBy) Scan(ctx context.Context, v any) error
- func (s *DeviceOnlineTimeGroupBy) ScanX(ctx context.Context, v any)
- func (s *DeviceOnlineTimeGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *DeviceOnlineTimeGroupBy) StringX(ctx context.Context) string
- func (s *DeviceOnlineTimeGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *DeviceOnlineTimeGroupBy) StringsX(ctx context.Context) []string
- type DeviceOnlineTimeMutation
- func (m *DeviceOnlineTimeMutation) AddField(name string, value ent.Value) error
- func (m *DeviceOnlineTimeMutation) AddSort(u int32)
- func (m *DeviceOnlineTimeMutation) AddStatus(u int8)
- func (m *DeviceOnlineTimeMutation) AddedEdges() []string
- func (m *DeviceOnlineTimeMutation) AddedField(name string) (ent.Value, bool)
- func (m *DeviceOnlineTimeMutation) AddedFields() []string
- func (m *DeviceOnlineTimeMutation) AddedIDs(name string) []ent.Value
- func (m *DeviceOnlineTimeMutation) AddedSort() (r int32, exists bool)
- func (m *DeviceOnlineTimeMutation) AddedStatus() (r int8, exists bool)
- func (m *DeviceOnlineTimeMutation) ClearEdge(name string) error
- func (m *DeviceOnlineTimeMutation) ClearField(name string) error
- func (m *DeviceOnlineTimeMutation) ClearGmtOnline()
- func (m *DeviceOnlineTimeMutation) ClearStatus()
- func (m *DeviceOnlineTimeMutation) ClearedEdges() []string
- func (m *DeviceOnlineTimeMutation) ClearedFields() []string
- func (m DeviceOnlineTimeMutation) Client() *Client
- func (m *DeviceOnlineTimeMutation) CreatedAt() (r time.Time, exists bool)
- func (m *DeviceOnlineTimeMutation) DeviceName() (r string, exists bool)
- func (m *DeviceOnlineTimeMutation) EdgeCleared(name string) bool
- func (c *DeviceOnlineTimeMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *DeviceOnlineTimeMutation) Field(name string) (ent.Value, bool)
- func (m *DeviceOnlineTimeMutation) FieldCleared(name string) bool
- func (m *DeviceOnlineTimeMutation) Fields() []string
- func (m *DeviceOnlineTimeMutation) GmtOnline() (r string, exists bool)
- func (m *DeviceOnlineTimeMutation) GmtOnlineCleared() bool
- func (m *DeviceOnlineTimeMutation) ID() (id uint64, exists bool)
- func (m *DeviceOnlineTimeMutation) IDs(ctx context.Context) ([]uint64, error)
- func (m *DeviceOnlineTimeMutation) IotID() (r string, exists bool)
- func (m *DeviceOnlineTimeMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *DeviceOnlineTimeMutation) OldDeviceName(ctx context.Context) (v string, err error)
- func (m *DeviceOnlineTimeMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *DeviceOnlineTimeMutation) OldGmtOnline(ctx context.Context) (v string, err error)
- func (m *DeviceOnlineTimeMutation) OldIotID(ctx context.Context) (v string, err error)
- func (m *DeviceOnlineTimeMutation) OldProductKey(ctx context.Context) (v string, err error)
- func (m *DeviceOnlineTimeMutation) OldSort(ctx context.Context) (v uint32, err error)
- func (m *DeviceOnlineTimeMutation) OldStatus(ctx context.Context) (v uint8, err error)
- func (m *DeviceOnlineTimeMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *DeviceOnlineTimeMutation) Op() Op
- func (m *DeviceOnlineTimeMutation) ProductKey() (r string, exists bool)
- func (c *DeviceOnlineTimeMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *DeviceOnlineTimeMutation) RemovedEdges() []string
- func (m *DeviceOnlineTimeMutation) RemovedIDs(name string) []ent.Value
- func (m *DeviceOnlineTimeMutation) ResetCreatedAt()
- func (m *DeviceOnlineTimeMutation) ResetDeviceName()
- func (m *DeviceOnlineTimeMutation) ResetEdge(name string) error
- func (m *DeviceOnlineTimeMutation) ResetField(name string) error
- func (m *DeviceOnlineTimeMutation) ResetGmtOnline()
- func (m *DeviceOnlineTimeMutation) ResetIotID()
- func (m *DeviceOnlineTimeMutation) ResetProductKey()
- func (m *DeviceOnlineTimeMutation) ResetSort()
- func (m *DeviceOnlineTimeMutation) ResetStatus()
- func (m *DeviceOnlineTimeMutation) ResetUpdatedAt()
- func (m *DeviceOnlineTimeMutation) SetCreatedAt(t time.Time)
- func (m *DeviceOnlineTimeMutation) SetDeviceName(s string)
- func (m *DeviceOnlineTimeMutation) SetField(name string, value ent.Value) error
- func (m *DeviceOnlineTimeMutation) SetGmtOnline(s string)
- func (m *DeviceOnlineTimeMutation) SetID(id uint64)
- func (m *DeviceOnlineTimeMutation) SetIotID(s string)
- func (m *DeviceOnlineTimeMutation) SetOp(op Op)
- func (m *DeviceOnlineTimeMutation) SetProductKey(s string)
- func (m *DeviceOnlineTimeMutation) SetSort(u uint32)
- func (m *DeviceOnlineTimeMutation) SetStatus(u uint8)
- func (m *DeviceOnlineTimeMutation) SetUpdatedAt(t time.Time)
- func (m *DeviceOnlineTimeMutation) Sort() (r uint32, exists bool)
- func (m *DeviceOnlineTimeMutation) Status() (r uint8, exists bool)
- func (m *DeviceOnlineTimeMutation) StatusCleared() bool
- func (m DeviceOnlineTimeMutation) Tx() (*Tx, error)
- func (m *DeviceOnlineTimeMutation) Type() string
- func (m *DeviceOnlineTimeMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *DeviceOnlineTimeMutation) Where(ps ...predicate.DeviceOnlineTime)
- func (m *DeviceOnlineTimeMutation) WhereP(ps ...func(*sql.Selector))
- type DeviceOnlineTimePageList
- type DeviceOnlineTimePager
- type DeviceOnlineTimePaginateOption
- type DeviceOnlineTimeQuery
- func (dotq *DeviceOnlineTimeQuery) Aggregate(fns ...AggregateFunc) *DeviceOnlineTimeSelect
- func (dotq *DeviceOnlineTimeQuery) All(ctx context.Context) ([]*DeviceOnlineTime, error)
- func (dotq *DeviceOnlineTimeQuery) AllX(ctx context.Context) []*DeviceOnlineTime
- func (dotq *DeviceOnlineTimeQuery) Clone() *DeviceOnlineTimeQuery
- func (dotq *DeviceOnlineTimeQuery) Count(ctx context.Context) (int, error)
- func (dotq *DeviceOnlineTimeQuery) CountX(ctx context.Context) int
- func (c *DeviceOnlineTimeQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dotq *DeviceOnlineTimeQuery) Exist(ctx context.Context) (bool, error)
- func (dotq *DeviceOnlineTimeQuery) ExistX(ctx context.Context) bool
- func (dotq *DeviceOnlineTimeQuery) First(ctx context.Context) (*DeviceOnlineTime, error)
- func (dotq *DeviceOnlineTimeQuery) FirstID(ctx context.Context) (id uint64, err error)
- func (dotq *DeviceOnlineTimeQuery) FirstIDX(ctx context.Context) uint64
- func (dotq *DeviceOnlineTimeQuery) FirstX(ctx context.Context) *DeviceOnlineTime
- func (dotq *DeviceOnlineTimeQuery) GroupBy(field string, fields ...string) *DeviceOnlineTimeGroupBy
- func (dotq *DeviceOnlineTimeQuery) IDs(ctx context.Context) (ids []uint64, err error)
- func (dotq *DeviceOnlineTimeQuery) IDsX(ctx context.Context) []uint64
- func (dotq *DeviceOnlineTimeQuery) Limit(limit int) *DeviceOnlineTimeQuery
- func (dotq *DeviceOnlineTimeQuery) Modify(modifiers ...func(s *sql.Selector)) *DeviceOnlineTimeSelect
- func (dotq *DeviceOnlineTimeQuery) Offset(offset int) *DeviceOnlineTimeQuery
- func (dotq *DeviceOnlineTimeQuery) Only(ctx context.Context) (*DeviceOnlineTime, error)
- func (dotq *DeviceOnlineTimeQuery) OnlyID(ctx context.Context) (id uint64, err error)
- func (dotq *DeviceOnlineTimeQuery) OnlyIDX(ctx context.Context) uint64
- func (dotq *DeviceOnlineTimeQuery) OnlyX(ctx context.Context) *DeviceOnlineTime
- func (dotq *DeviceOnlineTimeQuery) Order(o ...deviceonlinetime.OrderOption) *DeviceOnlineTimeQuery
- func (dot *DeviceOnlineTimeQuery) Page(ctx context.Context, pageNum uint64, pageSize uint64, ...) (*DeviceOnlineTimePageList, error)
- func (c *DeviceOnlineTimeQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dotq *DeviceOnlineTimeQuery) Select(fields ...string) *DeviceOnlineTimeSelect
- func (dotq *DeviceOnlineTimeQuery) Unique(unique bool) *DeviceOnlineTimeQuery
- func (dotq *DeviceOnlineTimeQuery) Where(ps ...predicate.DeviceOnlineTime) *DeviceOnlineTimeQuery
- type DeviceOnlineTimeSelect
- func (dots *DeviceOnlineTimeSelect) Aggregate(fns ...AggregateFunc) *DeviceOnlineTimeSelect
- func (s *DeviceOnlineTimeSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *DeviceOnlineTimeSelect) BoolX(ctx context.Context) bool
- func (s *DeviceOnlineTimeSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *DeviceOnlineTimeSelect) BoolsX(ctx context.Context) []bool
- func (c DeviceOnlineTimeSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *DeviceOnlineTimeSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *DeviceOnlineTimeSelect) Float64X(ctx context.Context) float64
- func (s *DeviceOnlineTimeSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *DeviceOnlineTimeSelect) Float64sX(ctx context.Context) []float64
- func (s *DeviceOnlineTimeSelect) Int(ctx context.Context) (_ int, err error)
- func (s *DeviceOnlineTimeSelect) IntX(ctx context.Context) int
- func (s *DeviceOnlineTimeSelect) Ints(ctx context.Context) ([]int, error)
- func (s *DeviceOnlineTimeSelect) IntsX(ctx context.Context) []int
- func (dots *DeviceOnlineTimeSelect) Modify(modifiers ...func(s *sql.Selector)) *DeviceOnlineTimeSelect
- func (c DeviceOnlineTimeSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dots *DeviceOnlineTimeSelect) Scan(ctx context.Context, v any) error
- func (s *DeviceOnlineTimeSelect) ScanX(ctx context.Context, v any)
- func (s *DeviceOnlineTimeSelect) String(ctx context.Context) (_ string, err error)
- func (s *DeviceOnlineTimeSelect) StringX(ctx context.Context) string
- func (s *DeviceOnlineTimeSelect) Strings(ctx context.Context) ([]string, error)
- func (s *DeviceOnlineTimeSelect) StringsX(ctx context.Context) []string
- type DeviceOnlineTimeUpdate
- func (dotu *DeviceOnlineTimeUpdate) AddSort(u int32) *DeviceOnlineTimeUpdate
- func (dotu *DeviceOnlineTimeUpdate) AddStatus(u int8) *DeviceOnlineTimeUpdate
- func (dotu *DeviceOnlineTimeUpdate) ClearGmtOnline() *DeviceOnlineTimeUpdate
- func (dotu *DeviceOnlineTimeUpdate) ClearStatus() *DeviceOnlineTimeUpdate
- func (dotu *DeviceOnlineTimeUpdate) Exec(ctx context.Context) error
- func (c *DeviceOnlineTimeUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dotu *DeviceOnlineTimeUpdate) ExecX(ctx context.Context)
- func (dotu *DeviceOnlineTimeUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceOnlineTimeUpdate
- func (dotu *DeviceOnlineTimeUpdate) Mutation() *DeviceOnlineTimeMutation
- func (c *DeviceOnlineTimeUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dotu *DeviceOnlineTimeUpdate) Save(ctx context.Context) (int, error)
- func (dotu *DeviceOnlineTimeUpdate) SaveX(ctx context.Context) int
- func (dotu *DeviceOnlineTimeUpdate) SetDeviceName(s string) *DeviceOnlineTimeUpdate
- func (dotu *DeviceOnlineTimeUpdate) SetGmtOnline(s string) *DeviceOnlineTimeUpdate
- func (dotu *DeviceOnlineTimeUpdate) SetIotID(s string) *DeviceOnlineTimeUpdate
- func (dotu *DeviceOnlineTimeUpdate) SetNillableDeviceName(s *string) *DeviceOnlineTimeUpdate
- func (dotu *DeviceOnlineTimeUpdate) SetNillableGmtOnline(s *string) *DeviceOnlineTimeUpdate
- func (dotu *DeviceOnlineTimeUpdate) SetNillableIotID(s *string) *DeviceOnlineTimeUpdate
- func (dotu *DeviceOnlineTimeUpdate) SetNillableProductKey(s *string) *DeviceOnlineTimeUpdate
- func (dotu *DeviceOnlineTimeUpdate) SetNillableSort(u *uint32) *DeviceOnlineTimeUpdate
- func (dotu *DeviceOnlineTimeUpdate) SetNillableStatus(u *uint8) *DeviceOnlineTimeUpdate
- func (dot *DeviceOnlineTimeUpdate) SetNotNilDeviceName(value *string) *DeviceOnlineTimeUpdate
- func (dot *DeviceOnlineTimeUpdate) SetNotNilGmtOnline(value *string) *DeviceOnlineTimeUpdate
- func (dot *DeviceOnlineTimeUpdate) SetNotNilIotID(value *string) *DeviceOnlineTimeUpdate
- func (dot *DeviceOnlineTimeUpdate) SetNotNilProductKey(value *string) *DeviceOnlineTimeUpdate
- func (dot *DeviceOnlineTimeUpdate) SetNotNilSort(value *uint32) *DeviceOnlineTimeUpdate
- func (dot *DeviceOnlineTimeUpdate) SetNotNilStatus(value *uint8) *DeviceOnlineTimeUpdate
- func (dot *DeviceOnlineTimeUpdate) SetNotNilUpdatedAt(value *time.Time) *DeviceOnlineTimeUpdate
- func (dotu *DeviceOnlineTimeUpdate) SetProductKey(s string) *DeviceOnlineTimeUpdate
- func (dotu *DeviceOnlineTimeUpdate) SetSort(u uint32) *DeviceOnlineTimeUpdate
- func (dotu *DeviceOnlineTimeUpdate) SetStatus(u uint8) *DeviceOnlineTimeUpdate
- func (dotu *DeviceOnlineTimeUpdate) SetUpdatedAt(t time.Time) *DeviceOnlineTimeUpdate
- func (dotu *DeviceOnlineTimeUpdate) Where(ps ...predicate.DeviceOnlineTime) *DeviceOnlineTimeUpdate
- type DeviceOnlineTimeUpdateOne
- func (dotuo *DeviceOnlineTimeUpdateOne) AddSort(u int32) *DeviceOnlineTimeUpdateOne
- func (dotuo *DeviceOnlineTimeUpdateOne) AddStatus(u int8) *DeviceOnlineTimeUpdateOne
- func (dotuo *DeviceOnlineTimeUpdateOne) ClearGmtOnline() *DeviceOnlineTimeUpdateOne
- func (dotuo *DeviceOnlineTimeUpdateOne) ClearStatus() *DeviceOnlineTimeUpdateOne
- func (dotuo *DeviceOnlineTimeUpdateOne) Exec(ctx context.Context) error
- func (c *DeviceOnlineTimeUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dotuo *DeviceOnlineTimeUpdateOne) ExecX(ctx context.Context)
- func (dotuo *DeviceOnlineTimeUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceOnlineTimeUpdateOne
- func (dotuo *DeviceOnlineTimeUpdateOne) Mutation() *DeviceOnlineTimeMutation
- func (c *DeviceOnlineTimeUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dotuo *DeviceOnlineTimeUpdateOne) Save(ctx context.Context) (*DeviceOnlineTime, error)
- func (dotuo *DeviceOnlineTimeUpdateOne) SaveX(ctx context.Context) *DeviceOnlineTime
- func (dotuo *DeviceOnlineTimeUpdateOne) Select(field string, fields ...string) *DeviceOnlineTimeUpdateOne
- func (dotuo *DeviceOnlineTimeUpdateOne) SetDeviceName(s string) *DeviceOnlineTimeUpdateOne
- func (dotuo *DeviceOnlineTimeUpdateOne) SetGmtOnline(s string) *DeviceOnlineTimeUpdateOne
- func (dotuo *DeviceOnlineTimeUpdateOne) SetIotID(s string) *DeviceOnlineTimeUpdateOne
- func (dotuo *DeviceOnlineTimeUpdateOne) SetNillableDeviceName(s *string) *DeviceOnlineTimeUpdateOne
- func (dotuo *DeviceOnlineTimeUpdateOne) SetNillableGmtOnline(s *string) *DeviceOnlineTimeUpdateOne
- func (dotuo *DeviceOnlineTimeUpdateOne) SetNillableIotID(s *string) *DeviceOnlineTimeUpdateOne
- func (dotuo *DeviceOnlineTimeUpdateOne) SetNillableProductKey(s *string) *DeviceOnlineTimeUpdateOne
- func (dotuo *DeviceOnlineTimeUpdateOne) SetNillableSort(u *uint32) *DeviceOnlineTimeUpdateOne
- func (dotuo *DeviceOnlineTimeUpdateOne) SetNillableStatus(u *uint8) *DeviceOnlineTimeUpdateOne
- func (dot *DeviceOnlineTimeUpdateOne) SetNotNilDeviceName(value *string) *DeviceOnlineTimeUpdateOne
- func (dot *DeviceOnlineTimeUpdateOne) SetNotNilGmtOnline(value *string) *DeviceOnlineTimeUpdateOne
- func (dot *DeviceOnlineTimeUpdateOne) SetNotNilIotID(value *string) *DeviceOnlineTimeUpdateOne
- func (dot *DeviceOnlineTimeUpdateOne) SetNotNilProductKey(value *string) *DeviceOnlineTimeUpdateOne
- func (dot *DeviceOnlineTimeUpdateOne) SetNotNilSort(value *uint32) *DeviceOnlineTimeUpdateOne
- func (dot *DeviceOnlineTimeUpdateOne) SetNotNilStatus(value *uint8) *DeviceOnlineTimeUpdateOne
- func (dot *DeviceOnlineTimeUpdateOne) SetNotNilUpdatedAt(value *time.Time) *DeviceOnlineTimeUpdateOne
- func (dotuo *DeviceOnlineTimeUpdateOne) SetProductKey(s string) *DeviceOnlineTimeUpdateOne
- func (dotuo *DeviceOnlineTimeUpdateOne) SetSort(u uint32) *DeviceOnlineTimeUpdateOne
- func (dotuo *DeviceOnlineTimeUpdateOne) SetStatus(u uint8) *DeviceOnlineTimeUpdateOne
- func (dotuo *DeviceOnlineTimeUpdateOne) SetUpdatedAt(t time.Time) *DeviceOnlineTimeUpdateOne
- func (dotuo *DeviceOnlineTimeUpdateOne) Where(ps ...predicate.DeviceOnlineTime) *DeviceOnlineTimeUpdateOne
- type DeviceOnlineTimeUpsert
- func (u *DeviceOnlineTimeUpsert) AddSort(v uint32) *DeviceOnlineTimeUpsert
- func (u *DeviceOnlineTimeUpsert) AddStatus(v uint8) *DeviceOnlineTimeUpsert
- func (u *DeviceOnlineTimeUpsert) ClearGmtOnline() *DeviceOnlineTimeUpsert
- func (u *DeviceOnlineTimeUpsert) ClearStatus() *DeviceOnlineTimeUpsert
- func (u *DeviceOnlineTimeUpsert) SetDeviceName(v string) *DeviceOnlineTimeUpsert
- func (u *DeviceOnlineTimeUpsert) SetGmtOnline(v string) *DeviceOnlineTimeUpsert
- func (u *DeviceOnlineTimeUpsert) SetIotID(v string) *DeviceOnlineTimeUpsert
- func (u *DeviceOnlineTimeUpsert) SetProductKey(v string) *DeviceOnlineTimeUpsert
- func (u *DeviceOnlineTimeUpsert) SetSort(v uint32) *DeviceOnlineTimeUpsert
- func (u *DeviceOnlineTimeUpsert) SetStatus(v uint8) *DeviceOnlineTimeUpsert
- func (u *DeviceOnlineTimeUpsert) SetUpdatedAt(v time.Time) *DeviceOnlineTimeUpsert
- func (u *DeviceOnlineTimeUpsert) UpdateDeviceName() *DeviceOnlineTimeUpsert
- func (u *DeviceOnlineTimeUpsert) UpdateGmtOnline() *DeviceOnlineTimeUpsert
- func (u *DeviceOnlineTimeUpsert) UpdateIotID() *DeviceOnlineTimeUpsert
- func (u *DeviceOnlineTimeUpsert) UpdateProductKey() *DeviceOnlineTimeUpsert
- func (u *DeviceOnlineTimeUpsert) UpdateSort() *DeviceOnlineTimeUpsert
- func (u *DeviceOnlineTimeUpsert) UpdateStatus() *DeviceOnlineTimeUpsert
- func (u *DeviceOnlineTimeUpsert) UpdateUpdatedAt() *DeviceOnlineTimeUpsert
- type DeviceOnlineTimeUpsertBulk
- func (u *DeviceOnlineTimeUpsertBulk) AddSort(v uint32) *DeviceOnlineTimeUpsertBulk
- func (u *DeviceOnlineTimeUpsertBulk) AddStatus(v uint8) *DeviceOnlineTimeUpsertBulk
- func (u *DeviceOnlineTimeUpsertBulk) ClearGmtOnline() *DeviceOnlineTimeUpsertBulk
- func (u *DeviceOnlineTimeUpsertBulk) ClearStatus() *DeviceOnlineTimeUpsertBulk
- func (u *DeviceOnlineTimeUpsertBulk) DoNothing() *DeviceOnlineTimeUpsertBulk
- func (u *DeviceOnlineTimeUpsertBulk) Exec(ctx context.Context) error
- func (u *DeviceOnlineTimeUpsertBulk) ExecX(ctx context.Context)
- func (u *DeviceOnlineTimeUpsertBulk) Ignore() *DeviceOnlineTimeUpsertBulk
- func (u *DeviceOnlineTimeUpsertBulk) SetDeviceName(v string) *DeviceOnlineTimeUpsertBulk
- func (u *DeviceOnlineTimeUpsertBulk) SetGmtOnline(v string) *DeviceOnlineTimeUpsertBulk
- func (u *DeviceOnlineTimeUpsertBulk) SetIotID(v string) *DeviceOnlineTimeUpsertBulk
- func (u *DeviceOnlineTimeUpsertBulk) SetProductKey(v string) *DeviceOnlineTimeUpsertBulk
- func (u *DeviceOnlineTimeUpsertBulk) SetSort(v uint32) *DeviceOnlineTimeUpsertBulk
- func (u *DeviceOnlineTimeUpsertBulk) SetStatus(v uint8) *DeviceOnlineTimeUpsertBulk
- func (u *DeviceOnlineTimeUpsertBulk) SetUpdatedAt(v time.Time) *DeviceOnlineTimeUpsertBulk
- func (u *DeviceOnlineTimeUpsertBulk) Update(set func(*DeviceOnlineTimeUpsert)) *DeviceOnlineTimeUpsertBulk
- func (u *DeviceOnlineTimeUpsertBulk) UpdateDeviceName() *DeviceOnlineTimeUpsertBulk
- func (u *DeviceOnlineTimeUpsertBulk) UpdateGmtOnline() *DeviceOnlineTimeUpsertBulk
- func (u *DeviceOnlineTimeUpsertBulk) UpdateIotID() *DeviceOnlineTimeUpsertBulk
- func (u *DeviceOnlineTimeUpsertBulk) UpdateNewValues() *DeviceOnlineTimeUpsertBulk
- func (u *DeviceOnlineTimeUpsertBulk) UpdateProductKey() *DeviceOnlineTimeUpsertBulk
- func (u *DeviceOnlineTimeUpsertBulk) UpdateSort() *DeviceOnlineTimeUpsertBulk
- func (u *DeviceOnlineTimeUpsertBulk) UpdateStatus() *DeviceOnlineTimeUpsertBulk
- func (u *DeviceOnlineTimeUpsertBulk) UpdateUpdatedAt() *DeviceOnlineTimeUpsertBulk
- type DeviceOnlineTimeUpsertOne
- func (u *DeviceOnlineTimeUpsertOne) AddSort(v uint32) *DeviceOnlineTimeUpsertOne
- func (u *DeviceOnlineTimeUpsertOne) AddStatus(v uint8) *DeviceOnlineTimeUpsertOne
- func (u *DeviceOnlineTimeUpsertOne) ClearGmtOnline() *DeviceOnlineTimeUpsertOne
- func (u *DeviceOnlineTimeUpsertOne) ClearStatus() *DeviceOnlineTimeUpsertOne
- func (u *DeviceOnlineTimeUpsertOne) DoNothing() *DeviceOnlineTimeUpsertOne
- func (u *DeviceOnlineTimeUpsertOne) Exec(ctx context.Context) error
- func (u *DeviceOnlineTimeUpsertOne) ExecX(ctx context.Context)
- func (u *DeviceOnlineTimeUpsertOne) ID(ctx context.Context) (id uint64, err error)
- func (u *DeviceOnlineTimeUpsertOne) IDX(ctx context.Context) uint64
- func (u *DeviceOnlineTimeUpsertOne) Ignore() *DeviceOnlineTimeUpsertOne
- func (u *DeviceOnlineTimeUpsertOne) SetDeviceName(v string) *DeviceOnlineTimeUpsertOne
- func (u *DeviceOnlineTimeUpsertOne) SetGmtOnline(v string) *DeviceOnlineTimeUpsertOne
- func (u *DeviceOnlineTimeUpsertOne) SetIotID(v string) *DeviceOnlineTimeUpsertOne
- func (u *DeviceOnlineTimeUpsertOne) SetProductKey(v string) *DeviceOnlineTimeUpsertOne
- func (u *DeviceOnlineTimeUpsertOne) SetSort(v uint32) *DeviceOnlineTimeUpsertOne
- func (u *DeviceOnlineTimeUpsertOne) SetStatus(v uint8) *DeviceOnlineTimeUpsertOne
- func (u *DeviceOnlineTimeUpsertOne) SetUpdatedAt(v time.Time) *DeviceOnlineTimeUpsertOne
- func (u *DeviceOnlineTimeUpsertOne) Update(set func(*DeviceOnlineTimeUpsert)) *DeviceOnlineTimeUpsertOne
- func (u *DeviceOnlineTimeUpsertOne) UpdateDeviceName() *DeviceOnlineTimeUpsertOne
- func (u *DeviceOnlineTimeUpsertOne) UpdateGmtOnline() *DeviceOnlineTimeUpsertOne
- func (u *DeviceOnlineTimeUpsertOne) UpdateIotID() *DeviceOnlineTimeUpsertOne
- func (u *DeviceOnlineTimeUpsertOne) UpdateNewValues() *DeviceOnlineTimeUpsertOne
- func (u *DeviceOnlineTimeUpsertOne) UpdateProductKey() *DeviceOnlineTimeUpsertOne
- func (u *DeviceOnlineTimeUpsertOne) UpdateSort() *DeviceOnlineTimeUpsertOne
- func (u *DeviceOnlineTimeUpsertOne) UpdateStatus() *DeviceOnlineTimeUpsertOne
- func (u *DeviceOnlineTimeUpsertOne) UpdateUpdatedAt() *DeviceOnlineTimeUpsertOne
- type DeviceOnlineTimes
- type DeviceUpsterCycle
- func (c *DeviceUpsterCycle) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *DeviceUpsterCycle) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (duc *DeviceUpsterCycle) String() string
- func (duc *DeviceUpsterCycle) Unwrap() *DeviceUpsterCycle
- func (duc *DeviceUpsterCycle) Update() *DeviceUpsterCycleUpdateOne
- func (duc *DeviceUpsterCycle) Value(name string) (ent.Value, error)
- type DeviceUpsterCycleClient
- func (c *DeviceUpsterCycleClient) Create() *DeviceUpsterCycleCreate
- func (c *DeviceUpsterCycleClient) CreateBulk(builders ...*DeviceUpsterCycleCreate) *DeviceUpsterCycleCreateBulk
- func (c *DeviceUpsterCycleClient) Delete() *DeviceUpsterCycleDelete
- func (c *DeviceUpsterCycleClient) DeleteOne(duc *DeviceUpsterCycle) *DeviceUpsterCycleDeleteOne
- func (c *DeviceUpsterCycleClient) DeleteOneID(id uint64) *DeviceUpsterCycleDeleteOne
- func (c *DeviceUpsterCycleClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *DeviceUpsterCycleClient) Get(ctx context.Context, id uint64) (*DeviceUpsterCycle, error)
- func (c *DeviceUpsterCycleClient) GetX(ctx context.Context, id uint64) *DeviceUpsterCycle
- func (c *DeviceUpsterCycleClient) Hooks() []Hook
- func (c *DeviceUpsterCycleClient) Intercept(interceptors ...Interceptor)
- func (c *DeviceUpsterCycleClient) Interceptors() []Interceptor
- func (c *DeviceUpsterCycleClient) MapCreateBulk(slice any, setFunc func(*DeviceUpsterCycleCreate, int)) *DeviceUpsterCycleCreateBulk
- func (c *DeviceUpsterCycleClient) Query() *DeviceUpsterCycleQuery
- func (c *DeviceUpsterCycleClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *DeviceUpsterCycleClient) Update() *DeviceUpsterCycleUpdate
- func (c *DeviceUpsterCycleClient) UpdateOne(duc *DeviceUpsterCycle) *DeviceUpsterCycleUpdateOne
- func (c *DeviceUpsterCycleClient) UpdateOneID(id uint64) *DeviceUpsterCycleUpdateOne
- func (c *DeviceUpsterCycleClient) Use(hooks ...Hook)
- type DeviceUpsterCycleCreate
- func (ducc *DeviceUpsterCycleCreate) Exec(ctx context.Context) error
- func (c *DeviceUpsterCycleCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ducc *DeviceUpsterCycleCreate) ExecX(ctx context.Context)
- func (ducc *DeviceUpsterCycleCreate) Mutation() *DeviceUpsterCycleMutation
- func (ducc *DeviceUpsterCycleCreate) OnConflict(opts ...sql.ConflictOption) *DeviceUpsterCycleUpsertOne
- func (ducc *DeviceUpsterCycleCreate) OnConflictColumns(columns ...string) *DeviceUpsterCycleUpsertOne
- func (c *DeviceUpsterCycleCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ducc *DeviceUpsterCycleCreate) Save(ctx context.Context) (*DeviceUpsterCycle, error)
- func (ducc *DeviceUpsterCycleCreate) SaveX(ctx context.Context) *DeviceUpsterCycle
- func (ducc *DeviceUpsterCycleCreate) SetCreatedAt(t time.Time) *DeviceUpsterCycleCreate
- func (ducc *DeviceUpsterCycleCreate) SetDeviceName(s string) *DeviceUpsterCycleCreate
- func (ducc *DeviceUpsterCycleCreate) SetID(u uint64) *DeviceUpsterCycleCreate
- func (ducc *DeviceUpsterCycleCreate) SetIotID(s string) *DeviceUpsterCycleCreate
- func (ducc *DeviceUpsterCycleCreate) SetNillableCreatedAt(t *time.Time) *DeviceUpsterCycleCreate
- func (ducc *DeviceUpsterCycleCreate) SetNillableNumber1(i *int32) *DeviceUpsterCycleCreate
- func (ducc *DeviceUpsterCycleCreate) SetNillableNumber2(i *int32) *DeviceUpsterCycleCreate
- func (ducc *DeviceUpsterCycleCreate) SetNillableNumber3(i *int32) *DeviceUpsterCycleCreate
- func (ducc *DeviceUpsterCycleCreate) SetNillableNumberCycles(i *int32) *DeviceUpsterCycleCreate
- func (ducc *DeviceUpsterCycleCreate) SetNillableNumberRegeneration(i *int32) *DeviceUpsterCycleCreate
- func (ducc *DeviceUpsterCycleCreate) SetNillableNumberRinsingCycles(i *int32) *DeviceUpsterCycleCreate
- func (ducc *DeviceUpsterCycleCreate) SetNillableSort(u *uint32) *DeviceUpsterCycleCreate
- func (ducc *DeviceUpsterCycleCreate) SetNillableStatus(u *uint8) *DeviceUpsterCycleCreate
- func (ducc *DeviceUpsterCycleCreate) SetNillableTimestamp(s *string) *DeviceUpsterCycleCreate
- func (ducc *DeviceUpsterCycleCreate) SetNillableTotalOperationTime(i *int32) *DeviceUpsterCycleCreate
- func (ducc *DeviceUpsterCycleCreate) SetNillableUpdatedAt(t *time.Time) *DeviceUpsterCycleCreate
- func (duc *DeviceUpsterCycleCreate) SetNotNilDeviceName(value *string) *DeviceUpsterCycleCreate
- func (duc *DeviceUpsterCycleCreate) SetNotNilIotID(value *string) *DeviceUpsterCycleCreate
- func (duc *DeviceUpsterCycleCreate) SetNotNilNumber1(value *int32) *DeviceUpsterCycleCreate
- func (duc *DeviceUpsterCycleCreate) SetNotNilNumber2(value *int32) *DeviceUpsterCycleCreate
- func (duc *DeviceUpsterCycleCreate) SetNotNilNumber3(value *int32) *DeviceUpsterCycleCreate
- func (duc *DeviceUpsterCycleCreate) SetNotNilNumberCycles(value *int32) *DeviceUpsterCycleCreate
- func (duc *DeviceUpsterCycleCreate) SetNotNilNumberRegeneration(value *int32) *DeviceUpsterCycleCreate
- func (duc *DeviceUpsterCycleCreate) SetNotNilNumberRinsingCycles(value *int32) *DeviceUpsterCycleCreate
- func (duc *DeviceUpsterCycleCreate) SetNotNilProductKey(value *string) *DeviceUpsterCycleCreate
- func (duc *DeviceUpsterCycleCreate) SetNotNilSort(value *uint32) *DeviceUpsterCycleCreate
- func (duc *DeviceUpsterCycleCreate) SetNotNilStatus(value *uint8) *DeviceUpsterCycleCreate
- func (duc *DeviceUpsterCycleCreate) SetNotNilTimestamp(value *string) *DeviceUpsterCycleCreate
- func (duc *DeviceUpsterCycleCreate) SetNotNilTotalOperationTime(value *int32) *DeviceUpsterCycleCreate
- func (duc *DeviceUpsterCycleCreate) SetNotNilUpdatedAt(value *time.Time) *DeviceUpsterCycleCreate
- func (ducc *DeviceUpsterCycleCreate) SetNumber1(i int32) *DeviceUpsterCycleCreate
- func (ducc *DeviceUpsterCycleCreate) SetNumber2(i int32) *DeviceUpsterCycleCreate
- func (ducc *DeviceUpsterCycleCreate) SetNumber3(i int32) *DeviceUpsterCycleCreate
- func (ducc *DeviceUpsterCycleCreate) SetNumberCycles(i int32) *DeviceUpsterCycleCreate
- func (ducc *DeviceUpsterCycleCreate) SetNumberRegeneration(i int32) *DeviceUpsterCycleCreate
- func (ducc *DeviceUpsterCycleCreate) SetNumberRinsingCycles(i int32) *DeviceUpsterCycleCreate
- func (ducc *DeviceUpsterCycleCreate) SetProductKey(s string) *DeviceUpsterCycleCreate
- func (ducc *DeviceUpsterCycleCreate) SetSort(u uint32) *DeviceUpsterCycleCreate
- func (ducc *DeviceUpsterCycleCreate) SetStatus(u uint8) *DeviceUpsterCycleCreate
- func (ducc *DeviceUpsterCycleCreate) SetTimestamp(s string) *DeviceUpsterCycleCreate
- func (ducc *DeviceUpsterCycleCreate) SetTotalOperationTime(i int32) *DeviceUpsterCycleCreate
- func (ducc *DeviceUpsterCycleCreate) SetUpdatedAt(t time.Time) *DeviceUpsterCycleCreate
- func (ducc *DeviceUpsterCycleCreate) TableName(s string) *DeviceUpsterCycleCreate
- type DeviceUpsterCycleCreateBulk
- func (duccb *DeviceUpsterCycleCreateBulk) Exec(ctx context.Context) error
- func (c *DeviceUpsterCycleCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (duccb *DeviceUpsterCycleCreateBulk) ExecX(ctx context.Context)
- func (duccb *DeviceUpsterCycleCreateBulk) OnConflict(opts ...sql.ConflictOption) *DeviceUpsterCycleUpsertBulk
- func (duccb *DeviceUpsterCycleCreateBulk) OnConflictColumns(columns ...string) *DeviceUpsterCycleUpsertBulk
- func (c *DeviceUpsterCycleCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (duccb *DeviceUpsterCycleCreateBulk) Save(ctx context.Context) ([]*DeviceUpsterCycle, error)
- func (duccb *DeviceUpsterCycleCreateBulk) SaveX(ctx context.Context) []*DeviceUpsterCycle
- type DeviceUpsterCycleDelete
- func (ducd *DeviceUpsterCycleDelete) Exec(ctx context.Context) (int, error)
- func (c *DeviceUpsterCycleDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ducd *DeviceUpsterCycleDelete) ExecX(ctx context.Context) int
- func (c *DeviceUpsterCycleDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ducd *DeviceUpsterCycleDelete) Where(ps ...predicate.DeviceUpsterCycle) *DeviceUpsterCycleDelete
- type DeviceUpsterCycleDeleteOne
- type DeviceUpsterCycleGroupBy
- func (ducgb *DeviceUpsterCycleGroupBy) Aggregate(fns ...AggregateFunc) *DeviceUpsterCycleGroupBy
- func (s *DeviceUpsterCycleGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *DeviceUpsterCycleGroupBy) BoolX(ctx context.Context) bool
- func (s *DeviceUpsterCycleGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *DeviceUpsterCycleGroupBy) BoolsX(ctx context.Context) []bool
- func (s *DeviceUpsterCycleGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *DeviceUpsterCycleGroupBy) Float64X(ctx context.Context) float64
- func (s *DeviceUpsterCycleGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *DeviceUpsterCycleGroupBy) Float64sX(ctx context.Context) []float64
- func (s *DeviceUpsterCycleGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *DeviceUpsterCycleGroupBy) IntX(ctx context.Context) int
- func (s *DeviceUpsterCycleGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *DeviceUpsterCycleGroupBy) IntsX(ctx context.Context) []int
- func (ducgb *DeviceUpsterCycleGroupBy) Scan(ctx context.Context, v any) error
- func (s *DeviceUpsterCycleGroupBy) ScanX(ctx context.Context, v any)
- func (s *DeviceUpsterCycleGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *DeviceUpsterCycleGroupBy) StringX(ctx context.Context) string
- func (s *DeviceUpsterCycleGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *DeviceUpsterCycleGroupBy) StringsX(ctx context.Context) []string
- type DeviceUpsterCycleMutation
- func (m *DeviceUpsterCycleMutation) AddField(name string, value ent.Value) error
- func (m *DeviceUpsterCycleMutation) AddNumber1(i int32)
- func (m *DeviceUpsterCycleMutation) AddNumber2(i int32)
- func (m *DeviceUpsterCycleMutation) AddNumber3(i int32)
- func (m *DeviceUpsterCycleMutation) AddNumberCycles(i int32)
- func (m *DeviceUpsterCycleMutation) AddNumberRegeneration(i int32)
- func (m *DeviceUpsterCycleMutation) AddNumberRinsingCycles(i int32)
- func (m *DeviceUpsterCycleMutation) AddSort(u int32)
- func (m *DeviceUpsterCycleMutation) AddStatus(u int8)
- func (m *DeviceUpsterCycleMutation) AddTotalOperationTime(i int32)
- func (m *DeviceUpsterCycleMutation) AddedEdges() []string
- func (m *DeviceUpsterCycleMutation) AddedField(name string) (ent.Value, bool)
- func (m *DeviceUpsterCycleMutation) AddedFields() []string
- func (m *DeviceUpsterCycleMutation) AddedIDs(name string) []ent.Value
- func (m *DeviceUpsterCycleMutation) AddedNumber1() (r int32, exists bool)
- func (m *DeviceUpsterCycleMutation) AddedNumber2() (r int32, exists bool)
- func (m *DeviceUpsterCycleMutation) AddedNumber3() (r int32, exists bool)
- func (m *DeviceUpsterCycleMutation) AddedNumberCycles() (r int32, exists bool)
- func (m *DeviceUpsterCycleMutation) AddedNumberRegeneration() (r int32, exists bool)
- func (m *DeviceUpsterCycleMutation) AddedNumberRinsingCycles() (r int32, exists bool)
- func (m *DeviceUpsterCycleMutation) AddedSort() (r int32, exists bool)
- func (m *DeviceUpsterCycleMutation) AddedStatus() (r int8, exists bool)
- func (m *DeviceUpsterCycleMutation) AddedTotalOperationTime() (r int32, exists bool)
- func (m *DeviceUpsterCycleMutation) ClearEdge(name string) error
- func (m *DeviceUpsterCycleMutation) ClearField(name string) error
- func (m *DeviceUpsterCycleMutation) ClearNumber1()
- func (m *DeviceUpsterCycleMutation) ClearNumber2()
- func (m *DeviceUpsterCycleMutation) ClearNumber3()
- func (m *DeviceUpsterCycleMutation) ClearNumberCycles()
- func (m *DeviceUpsterCycleMutation) ClearNumberRegeneration()
- func (m *DeviceUpsterCycleMutation) ClearNumberRinsingCycles()
- func (m *DeviceUpsterCycleMutation) ClearStatus()
- func (m *DeviceUpsterCycleMutation) ClearTimestamp()
- func (m *DeviceUpsterCycleMutation) ClearTotalOperationTime()
- func (m *DeviceUpsterCycleMutation) ClearedEdges() []string
- func (m *DeviceUpsterCycleMutation) ClearedFields() []string
- func (m DeviceUpsterCycleMutation) Client() *Client
- func (m *DeviceUpsterCycleMutation) CreatedAt() (r time.Time, exists bool)
- func (m *DeviceUpsterCycleMutation) DeviceName() (r string, exists bool)
- func (m *DeviceUpsterCycleMutation) EdgeCleared(name string) bool
- func (c *DeviceUpsterCycleMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *DeviceUpsterCycleMutation) Field(name string) (ent.Value, bool)
- func (m *DeviceUpsterCycleMutation) FieldCleared(name string) bool
- func (m *DeviceUpsterCycleMutation) Fields() []string
- func (m *DeviceUpsterCycleMutation) ID() (id uint64, exists bool)
- func (m *DeviceUpsterCycleMutation) IDs(ctx context.Context) ([]uint64, error)
- func (m *DeviceUpsterCycleMutation) IotID() (r string, exists bool)
- func (m *DeviceUpsterCycleMutation) Number1() (r int32, exists bool)
- func (m *DeviceUpsterCycleMutation) Number1Cleared() bool
- func (m *DeviceUpsterCycleMutation) Number2() (r int32, exists bool)
- func (m *DeviceUpsterCycleMutation) Number2Cleared() bool
- func (m *DeviceUpsterCycleMutation) Number3() (r int32, exists bool)
- func (m *DeviceUpsterCycleMutation) Number3Cleared() bool
- func (m *DeviceUpsterCycleMutation) NumberCycles() (r int32, exists bool)
- func (m *DeviceUpsterCycleMutation) NumberCyclesCleared() bool
- func (m *DeviceUpsterCycleMutation) NumberRegeneration() (r int32, exists bool)
- func (m *DeviceUpsterCycleMutation) NumberRegenerationCleared() bool
- func (m *DeviceUpsterCycleMutation) NumberRinsingCycles() (r int32, exists bool)
- func (m *DeviceUpsterCycleMutation) NumberRinsingCyclesCleared() bool
- func (m *DeviceUpsterCycleMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *DeviceUpsterCycleMutation) OldDeviceName(ctx context.Context) (v string, err error)
- func (m *DeviceUpsterCycleMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *DeviceUpsterCycleMutation) OldIotID(ctx context.Context) (v string, err error)
- func (m *DeviceUpsterCycleMutation) OldNumber1(ctx context.Context) (v int32, err error)
- func (m *DeviceUpsterCycleMutation) OldNumber2(ctx context.Context) (v int32, err error)
- func (m *DeviceUpsterCycleMutation) OldNumber3(ctx context.Context) (v int32, err error)
- func (m *DeviceUpsterCycleMutation) OldNumberCycles(ctx context.Context) (v int32, err error)
- func (m *DeviceUpsterCycleMutation) OldNumberRegeneration(ctx context.Context) (v int32, err error)
- func (m *DeviceUpsterCycleMutation) OldNumberRinsingCycles(ctx context.Context) (v int32, err error)
- func (m *DeviceUpsterCycleMutation) OldProductKey(ctx context.Context) (v string, err error)
- func (m *DeviceUpsterCycleMutation) OldSort(ctx context.Context) (v uint32, err error)
- func (m *DeviceUpsterCycleMutation) OldStatus(ctx context.Context) (v uint8, err error)
- func (m *DeviceUpsterCycleMutation) OldTimestamp(ctx context.Context) (v string, err error)
- func (m *DeviceUpsterCycleMutation) OldTotalOperationTime(ctx context.Context) (v int32, err error)
- func (m *DeviceUpsterCycleMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *DeviceUpsterCycleMutation) Op() Op
- func (m *DeviceUpsterCycleMutation) ProductKey() (r string, exists bool)
- func (c *DeviceUpsterCycleMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *DeviceUpsterCycleMutation) RemovedEdges() []string
- func (m *DeviceUpsterCycleMutation) RemovedIDs(name string) []ent.Value
- func (m *DeviceUpsterCycleMutation) ResetCreatedAt()
- func (m *DeviceUpsterCycleMutation) ResetDeviceName()
- func (m *DeviceUpsterCycleMutation) ResetEdge(name string) error
- func (m *DeviceUpsterCycleMutation) ResetField(name string) error
- func (m *DeviceUpsterCycleMutation) ResetIotID()
- func (m *DeviceUpsterCycleMutation) ResetNumber1()
- func (m *DeviceUpsterCycleMutation) ResetNumber2()
- func (m *DeviceUpsterCycleMutation) ResetNumber3()
- func (m *DeviceUpsterCycleMutation) ResetNumberCycles()
- func (m *DeviceUpsterCycleMutation) ResetNumberRegeneration()
- func (m *DeviceUpsterCycleMutation) ResetNumberRinsingCycles()
- func (m *DeviceUpsterCycleMutation) ResetProductKey()
- func (m *DeviceUpsterCycleMutation) ResetSort()
- func (m *DeviceUpsterCycleMutation) ResetStatus()
- func (m *DeviceUpsterCycleMutation) ResetTimestamp()
- func (m *DeviceUpsterCycleMutation) ResetTotalOperationTime()
- func (m *DeviceUpsterCycleMutation) ResetUpdatedAt()
- func (m *DeviceUpsterCycleMutation) SetCreatedAt(t time.Time)
- func (m *DeviceUpsterCycleMutation) SetDeviceName(s string)
- func (m *DeviceUpsterCycleMutation) SetField(name string, value ent.Value) error
- func (m *DeviceUpsterCycleMutation) SetID(id uint64)
- func (m *DeviceUpsterCycleMutation) SetIotID(s string)
- func (m *DeviceUpsterCycleMutation) SetNumber1(i int32)
- func (m *DeviceUpsterCycleMutation) SetNumber2(i int32)
- func (m *DeviceUpsterCycleMutation) SetNumber3(i int32)
- func (m *DeviceUpsterCycleMutation) SetNumberCycles(i int32)
- func (m *DeviceUpsterCycleMutation) SetNumberRegeneration(i int32)
- func (m *DeviceUpsterCycleMutation) SetNumberRinsingCycles(i int32)
- func (m *DeviceUpsterCycleMutation) SetOp(op Op)
- func (m *DeviceUpsterCycleMutation) SetProductKey(s string)
- func (m *DeviceUpsterCycleMutation) SetSort(u uint32)
- func (m *DeviceUpsterCycleMutation) SetStatus(u uint8)
- func (m *DeviceUpsterCycleMutation) SetTimestamp(s string)
- func (m *DeviceUpsterCycleMutation) SetTotalOperationTime(i int32)
- func (m *DeviceUpsterCycleMutation) SetUpdatedAt(t time.Time)
- func (m *DeviceUpsterCycleMutation) Sort() (r uint32, exists bool)
- func (m *DeviceUpsterCycleMutation) Status() (r uint8, exists bool)
- func (m *DeviceUpsterCycleMutation) StatusCleared() bool
- func (m *DeviceUpsterCycleMutation) Timestamp() (r string, exists bool)
- func (m *DeviceUpsterCycleMutation) TimestampCleared() bool
- func (m *DeviceUpsterCycleMutation) TotalOperationTime() (r int32, exists bool)
- func (m *DeviceUpsterCycleMutation) TotalOperationTimeCleared() bool
- func (m DeviceUpsterCycleMutation) Tx() (*Tx, error)
- func (m *DeviceUpsterCycleMutation) Type() string
- func (m *DeviceUpsterCycleMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *DeviceUpsterCycleMutation) Where(ps ...predicate.DeviceUpsterCycle)
- func (m *DeviceUpsterCycleMutation) WhereP(ps ...func(*sql.Selector))
- type DeviceUpsterCyclePageList
- type DeviceUpsterCyclePager
- type DeviceUpsterCyclePaginateOption
- type DeviceUpsterCycleQuery
- func (ducq *DeviceUpsterCycleQuery) Aggregate(fns ...AggregateFunc) *DeviceUpsterCycleSelect
- func (ducq *DeviceUpsterCycleQuery) All(ctx context.Context) ([]*DeviceUpsterCycle, error)
- func (ducq *DeviceUpsterCycleQuery) AllX(ctx context.Context) []*DeviceUpsterCycle
- func (ducq *DeviceUpsterCycleQuery) Clone() *DeviceUpsterCycleQuery
- func (ducq *DeviceUpsterCycleQuery) Count(ctx context.Context) (int, error)
- func (ducq *DeviceUpsterCycleQuery) CountX(ctx context.Context) int
- func (c *DeviceUpsterCycleQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ducq *DeviceUpsterCycleQuery) Exist(ctx context.Context) (bool, error)
- func (ducq *DeviceUpsterCycleQuery) ExistX(ctx context.Context) bool
- func (ducq *DeviceUpsterCycleQuery) First(ctx context.Context) (*DeviceUpsterCycle, error)
- func (ducq *DeviceUpsterCycleQuery) FirstID(ctx context.Context) (id uint64, err error)
- func (ducq *DeviceUpsterCycleQuery) FirstIDX(ctx context.Context) uint64
- func (ducq *DeviceUpsterCycleQuery) FirstX(ctx context.Context) *DeviceUpsterCycle
- func (ducq *DeviceUpsterCycleQuery) GroupBy(field string, fields ...string) *DeviceUpsterCycleGroupBy
- func (ducq *DeviceUpsterCycleQuery) IDs(ctx context.Context) (ids []uint64, err error)
- func (ducq *DeviceUpsterCycleQuery) IDsX(ctx context.Context) []uint64
- func (ducq *DeviceUpsterCycleQuery) Limit(limit int) *DeviceUpsterCycleQuery
- func (ducq *DeviceUpsterCycleQuery) Modify(modifiers ...func(s *sql.Selector)) *DeviceUpsterCycleSelect
- func (ducq *DeviceUpsterCycleQuery) Offset(offset int) *DeviceUpsterCycleQuery
- func (ducq *DeviceUpsterCycleQuery) Only(ctx context.Context) (*DeviceUpsterCycle, error)
- func (ducq *DeviceUpsterCycleQuery) OnlyID(ctx context.Context) (id uint64, err error)
- func (ducq *DeviceUpsterCycleQuery) OnlyIDX(ctx context.Context) uint64
- func (ducq *DeviceUpsterCycleQuery) OnlyX(ctx context.Context) *DeviceUpsterCycle
- func (ducq *DeviceUpsterCycleQuery) Order(o ...deviceupstercycle.OrderOption) *DeviceUpsterCycleQuery
- func (duc *DeviceUpsterCycleQuery) Page(ctx context.Context, pageNum uint64, pageSize uint64, ...) (*DeviceUpsterCyclePageList, error)
- func (c *DeviceUpsterCycleQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ducq *DeviceUpsterCycleQuery) Select(fields ...string) *DeviceUpsterCycleSelect
- func (ducq *DeviceUpsterCycleQuery) Unique(unique bool) *DeviceUpsterCycleQuery
- func (ducq *DeviceUpsterCycleQuery) Where(ps ...predicate.DeviceUpsterCycle) *DeviceUpsterCycleQuery
- type DeviceUpsterCycleSelect
- func (ducs *DeviceUpsterCycleSelect) Aggregate(fns ...AggregateFunc) *DeviceUpsterCycleSelect
- func (s *DeviceUpsterCycleSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *DeviceUpsterCycleSelect) BoolX(ctx context.Context) bool
- func (s *DeviceUpsterCycleSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *DeviceUpsterCycleSelect) BoolsX(ctx context.Context) []bool
- func (c DeviceUpsterCycleSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *DeviceUpsterCycleSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *DeviceUpsterCycleSelect) Float64X(ctx context.Context) float64
- func (s *DeviceUpsterCycleSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *DeviceUpsterCycleSelect) Float64sX(ctx context.Context) []float64
- func (s *DeviceUpsterCycleSelect) Int(ctx context.Context) (_ int, err error)
- func (s *DeviceUpsterCycleSelect) IntX(ctx context.Context) int
- func (s *DeviceUpsterCycleSelect) Ints(ctx context.Context) ([]int, error)
- func (s *DeviceUpsterCycleSelect) IntsX(ctx context.Context) []int
- func (ducs *DeviceUpsterCycleSelect) Modify(modifiers ...func(s *sql.Selector)) *DeviceUpsterCycleSelect
- func (c DeviceUpsterCycleSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ducs *DeviceUpsterCycleSelect) Scan(ctx context.Context, v any) error
- func (s *DeviceUpsterCycleSelect) ScanX(ctx context.Context, v any)
- func (s *DeviceUpsterCycleSelect) String(ctx context.Context) (_ string, err error)
- func (s *DeviceUpsterCycleSelect) StringX(ctx context.Context) string
- func (s *DeviceUpsterCycleSelect) Strings(ctx context.Context) ([]string, error)
- func (s *DeviceUpsterCycleSelect) StringsX(ctx context.Context) []string
- type DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) AddNumber1(i int32) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) AddNumber2(i int32) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) AddNumber3(i int32) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) AddNumberCycles(i int32) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) AddNumberRegeneration(i int32) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) AddNumberRinsingCycles(i int32) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) AddSort(u int32) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) AddStatus(u int8) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) AddTotalOperationTime(i int32) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) ClearNumber1() *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) ClearNumber2() *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) ClearNumber3() *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) ClearNumberCycles() *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) ClearNumberRegeneration() *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) ClearNumberRinsingCycles() *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) ClearStatus() *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) ClearTimestamp() *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) ClearTotalOperationTime() *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) Exec(ctx context.Context) error
- func (c *DeviceUpsterCycleUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ducu *DeviceUpsterCycleUpdate) ExecX(ctx context.Context)
- func (ducu *DeviceUpsterCycleUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) Mutation() *DeviceUpsterCycleMutation
- func (c *DeviceUpsterCycleUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ducu *DeviceUpsterCycleUpdate) Save(ctx context.Context) (int, error)
- func (ducu *DeviceUpsterCycleUpdate) SaveX(ctx context.Context) int
- func (ducu *DeviceUpsterCycleUpdate) SetDeviceName(s string) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) SetIotID(s string) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) SetNillableDeviceName(s *string) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) SetNillableIotID(s *string) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) SetNillableNumber1(i *int32) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) SetNillableNumber2(i *int32) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) SetNillableNumber3(i *int32) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) SetNillableNumberCycles(i *int32) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) SetNillableNumberRegeneration(i *int32) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) SetNillableNumberRinsingCycles(i *int32) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) SetNillableProductKey(s *string) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) SetNillableSort(u *uint32) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) SetNillableStatus(u *uint8) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) SetNillableTimestamp(s *string) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) SetNillableTotalOperationTime(i *int32) *DeviceUpsterCycleUpdate
- func (duc *DeviceUpsterCycleUpdate) SetNotNilDeviceName(value *string) *DeviceUpsterCycleUpdate
- func (duc *DeviceUpsterCycleUpdate) SetNotNilIotID(value *string) *DeviceUpsterCycleUpdate
- func (duc *DeviceUpsterCycleUpdate) SetNotNilNumber1(value *int32) *DeviceUpsterCycleUpdate
- func (duc *DeviceUpsterCycleUpdate) SetNotNilNumber2(value *int32) *DeviceUpsterCycleUpdate
- func (duc *DeviceUpsterCycleUpdate) SetNotNilNumber3(value *int32) *DeviceUpsterCycleUpdate
- func (duc *DeviceUpsterCycleUpdate) SetNotNilNumberCycles(value *int32) *DeviceUpsterCycleUpdate
- func (duc *DeviceUpsterCycleUpdate) SetNotNilNumberRegeneration(value *int32) *DeviceUpsterCycleUpdate
- func (duc *DeviceUpsterCycleUpdate) SetNotNilNumberRinsingCycles(value *int32) *DeviceUpsterCycleUpdate
- func (duc *DeviceUpsterCycleUpdate) SetNotNilProductKey(value *string) *DeviceUpsterCycleUpdate
- func (duc *DeviceUpsterCycleUpdate) SetNotNilSort(value *uint32) *DeviceUpsterCycleUpdate
- func (duc *DeviceUpsterCycleUpdate) SetNotNilStatus(value *uint8) *DeviceUpsterCycleUpdate
- func (duc *DeviceUpsterCycleUpdate) SetNotNilTimestamp(value *string) *DeviceUpsterCycleUpdate
- func (duc *DeviceUpsterCycleUpdate) SetNotNilTotalOperationTime(value *int32) *DeviceUpsterCycleUpdate
- func (duc *DeviceUpsterCycleUpdate) SetNotNilUpdatedAt(value *time.Time) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) SetNumber1(i int32) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) SetNumber2(i int32) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) SetNumber3(i int32) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) SetNumberCycles(i int32) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) SetNumberRegeneration(i int32) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) SetNumberRinsingCycles(i int32) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) SetProductKey(s string) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) SetSort(u uint32) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) SetStatus(u uint8) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) SetTimestamp(s string) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) SetTotalOperationTime(i int32) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) SetUpdatedAt(t time.Time) *DeviceUpsterCycleUpdate
- func (ducu *DeviceUpsterCycleUpdate) Where(ps ...predicate.DeviceUpsterCycle) *DeviceUpsterCycleUpdate
- type DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) AddNumber1(i int32) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) AddNumber2(i int32) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) AddNumber3(i int32) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) AddNumberCycles(i int32) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) AddNumberRegeneration(i int32) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) AddNumberRinsingCycles(i int32) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) AddSort(u int32) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) AddStatus(u int8) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) AddTotalOperationTime(i int32) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) ClearNumber1() *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) ClearNumber2() *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) ClearNumber3() *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) ClearNumberCycles() *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) ClearNumberRegeneration() *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) ClearNumberRinsingCycles() *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) ClearStatus() *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) ClearTimestamp() *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) ClearTotalOperationTime() *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) Exec(ctx context.Context) error
- func (c *DeviceUpsterCycleUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ducuo *DeviceUpsterCycleUpdateOne) ExecX(ctx context.Context)
- func (ducuo *DeviceUpsterCycleUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) Mutation() *DeviceUpsterCycleMutation
- func (c *DeviceUpsterCycleUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ducuo *DeviceUpsterCycleUpdateOne) Save(ctx context.Context) (*DeviceUpsterCycle, error)
- func (ducuo *DeviceUpsterCycleUpdateOne) SaveX(ctx context.Context) *DeviceUpsterCycle
- func (ducuo *DeviceUpsterCycleUpdateOne) Select(field string, fields ...string) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) SetDeviceName(s string) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) SetIotID(s string) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) SetNillableDeviceName(s *string) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) SetNillableIotID(s *string) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) SetNillableNumber1(i *int32) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) SetNillableNumber2(i *int32) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) SetNillableNumber3(i *int32) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) SetNillableNumberCycles(i *int32) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) SetNillableNumberRegeneration(i *int32) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) SetNillableNumberRinsingCycles(i *int32) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) SetNillableProductKey(s *string) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) SetNillableSort(u *uint32) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) SetNillableStatus(u *uint8) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) SetNillableTimestamp(s *string) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) SetNillableTotalOperationTime(i *int32) *DeviceUpsterCycleUpdateOne
- func (duc *DeviceUpsterCycleUpdateOne) SetNotNilDeviceName(value *string) *DeviceUpsterCycleUpdateOne
- func (duc *DeviceUpsterCycleUpdateOne) SetNotNilIotID(value *string) *DeviceUpsterCycleUpdateOne
- func (duc *DeviceUpsterCycleUpdateOne) SetNotNilNumber1(value *int32) *DeviceUpsterCycleUpdateOne
- func (duc *DeviceUpsterCycleUpdateOne) SetNotNilNumber2(value *int32) *DeviceUpsterCycleUpdateOne
- func (duc *DeviceUpsterCycleUpdateOne) SetNotNilNumber3(value *int32) *DeviceUpsterCycleUpdateOne
- func (duc *DeviceUpsterCycleUpdateOne) SetNotNilNumberCycles(value *int32) *DeviceUpsterCycleUpdateOne
- func (duc *DeviceUpsterCycleUpdateOne) SetNotNilNumberRegeneration(value *int32) *DeviceUpsterCycleUpdateOne
- func (duc *DeviceUpsterCycleUpdateOne) SetNotNilNumberRinsingCycles(value *int32) *DeviceUpsterCycleUpdateOne
- func (duc *DeviceUpsterCycleUpdateOne) SetNotNilProductKey(value *string) *DeviceUpsterCycleUpdateOne
- func (duc *DeviceUpsterCycleUpdateOne) SetNotNilSort(value *uint32) *DeviceUpsterCycleUpdateOne
- func (duc *DeviceUpsterCycleUpdateOne) SetNotNilStatus(value *uint8) *DeviceUpsterCycleUpdateOne
- func (duc *DeviceUpsterCycleUpdateOne) SetNotNilTimestamp(value *string) *DeviceUpsterCycleUpdateOne
- func (duc *DeviceUpsterCycleUpdateOne) SetNotNilTotalOperationTime(value *int32) *DeviceUpsterCycleUpdateOne
- func (duc *DeviceUpsterCycleUpdateOne) SetNotNilUpdatedAt(value *time.Time) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) SetNumber1(i int32) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) SetNumber2(i int32) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) SetNumber3(i int32) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) SetNumberCycles(i int32) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) SetNumberRegeneration(i int32) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) SetNumberRinsingCycles(i int32) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) SetProductKey(s string) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) SetSort(u uint32) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) SetStatus(u uint8) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) SetTimestamp(s string) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) SetTotalOperationTime(i int32) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) SetUpdatedAt(t time.Time) *DeviceUpsterCycleUpdateOne
- func (ducuo *DeviceUpsterCycleUpdateOne) Where(ps ...predicate.DeviceUpsterCycle) *DeviceUpsterCycleUpdateOne
- type DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) AddNumber1(v int32) *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) AddNumber2(v int32) *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) AddNumber3(v int32) *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) AddNumberCycles(v int32) *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) AddNumberRegeneration(v int32) *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) AddNumberRinsingCycles(v int32) *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) AddSort(v uint32) *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) AddStatus(v uint8) *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) AddTotalOperationTime(v int32) *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) ClearNumber1() *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) ClearNumber2() *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) ClearNumber3() *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) ClearNumberCycles() *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) ClearNumberRegeneration() *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) ClearNumberRinsingCycles() *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) ClearStatus() *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) ClearTimestamp() *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) ClearTotalOperationTime() *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) SetDeviceName(v string) *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) SetIotID(v string) *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) SetNumber1(v int32) *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) SetNumber2(v int32) *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) SetNumber3(v int32) *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) SetNumberCycles(v int32) *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) SetNumberRegeneration(v int32) *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) SetNumberRinsingCycles(v int32) *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) SetProductKey(v string) *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) SetSort(v uint32) *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) SetStatus(v uint8) *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) SetTimestamp(v string) *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) SetTotalOperationTime(v int32) *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) SetUpdatedAt(v time.Time) *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) UpdateDeviceName() *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) UpdateIotID() *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) UpdateNumber1() *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) UpdateNumber2() *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) UpdateNumber3() *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) UpdateNumberCycles() *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) UpdateNumberRegeneration() *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) UpdateNumberRinsingCycles() *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) UpdateProductKey() *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) UpdateSort() *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) UpdateStatus() *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) UpdateTimestamp() *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) UpdateTotalOperationTime() *DeviceUpsterCycleUpsert
- func (u *DeviceUpsterCycleUpsert) UpdateUpdatedAt() *DeviceUpsterCycleUpsert
- type DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) AddNumber1(v int32) *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) AddNumber2(v int32) *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) AddNumber3(v int32) *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) AddNumberCycles(v int32) *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) AddNumberRegeneration(v int32) *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) AddNumberRinsingCycles(v int32) *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) AddSort(v uint32) *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) AddStatus(v uint8) *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) AddTotalOperationTime(v int32) *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) ClearNumber1() *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) ClearNumber2() *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) ClearNumber3() *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) ClearNumberCycles() *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) ClearNumberRegeneration() *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) ClearNumberRinsingCycles() *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) ClearStatus() *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) ClearTimestamp() *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) ClearTotalOperationTime() *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) DoNothing() *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) Exec(ctx context.Context) error
- func (u *DeviceUpsterCycleUpsertBulk) ExecX(ctx context.Context)
- func (u *DeviceUpsterCycleUpsertBulk) Ignore() *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) SetDeviceName(v string) *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) SetIotID(v string) *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) SetNumber1(v int32) *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) SetNumber2(v int32) *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) SetNumber3(v int32) *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) SetNumberCycles(v int32) *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) SetNumberRegeneration(v int32) *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) SetNumberRinsingCycles(v int32) *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) SetProductKey(v string) *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) SetSort(v uint32) *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) SetStatus(v uint8) *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) SetTimestamp(v string) *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) SetTotalOperationTime(v int32) *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) SetUpdatedAt(v time.Time) *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) Update(set func(*DeviceUpsterCycleUpsert)) *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) UpdateDeviceName() *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) UpdateIotID() *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) UpdateNewValues() *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) UpdateNumber1() *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) UpdateNumber2() *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) UpdateNumber3() *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) UpdateNumberCycles() *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) UpdateNumberRegeneration() *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) UpdateNumberRinsingCycles() *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) UpdateProductKey() *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) UpdateSort() *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) UpdateStatus() *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) UpdateTimestamp() *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) UpdateTotalOperationTime() *DeviceUpsterCycleUpsertBulk
- func (u *DeviceUpsterCycleUpsertBulk) UpdateUpdatedAt() *DeviceUpsterCycleUpsertBulk
- type DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) AddNumber1(v int32) *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) AddNumber2(v int32) *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) AddNumber3(v int32) *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) AddNumberCycles(v int32) *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) AddNumberRegeneration(v int32) *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) AddNumberRinsingCycles(v int32) *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) AddSort(v uint32) *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) AddStatus(v uint8) *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) AddTotalOperationTime(v int32) *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) ClearNumber1() *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) ClearNumber2() *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) ClearNumber3() *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) ClearNumberCycles() *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) ClearNumberRegeneration() *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) ClearNumberRinsingCycles() *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) ClearStatus() *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) ClearTimestamp() *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) ClearTotalOperationTime() *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) DoNothing() *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) Exec(ctx context.Context) error
- func (u *DeviceUpsterCycleUpsertOne) ExecX(ctx context.Context)
- func (u *DeviceUpsterCycleUpsertOne) ID(ctx context.Context) (id uint64, err error)
- func (u *DeviceUpsterCycleUpsertOne) IDX(ctx context.Context) uint64
- func (u *DeviceUpsterCycleUpsertOne) Ignore() *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) SetDeviceName(v string) *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) SetIotID(v string) *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) SetNumber1(v int32) *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) SetNumber2(v int32) *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) SetNumber3(v int32) *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) SetNumberCycles(v int32) *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) SetNumberRegeneration(v int32) *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) SetNumberRinsingCycles(v int32) *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) SetProductKey(v string) *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) SetSort(v uint32) *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) SetStatus(v uint8) *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) SetTimestamp(v string) *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) SetTotalOperationTime(v int32) *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) SetUpdatedAt(v time.Time) *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) Update(set func(*DeviceUpsterCycleUpsert)) *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) UpdateDeviceName() *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) UpdateIotID() *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) UpdateNewValues() *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) UpdateNumber1() *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) UpdateNumber2() *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) UpdateNumber3() *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) UpdateNumberCycles() *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) UpdateNumberRegeneration() *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) UpdateNumberRinsingCycles() *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) UpdateProductKey() *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) UpdateSort() *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) UpdateStatus() *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) UpdateTimestamp() *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) UpdateTotalOperationTime() *DeviceUpsterCycleUpsertOne
- func (u *DeviceUpsterCycleUpsertOne) UpdateUpdatedAt() *DeviceUpsterCycleUpsertOne
- type DeviceUpsterCycles
- type DeviceUpsterStatistics
- func (c *DeviceUpsterStatistics) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *DeviceUpsterStatistics) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dus *DeviceUpsterStatistics) String() string
- func (dus *DeviceUpsterStatistics) Unwrap() *DeviceUpsterStatistics
- func (dus *DeviceUpsterStatistics) Update() *DeviceUpsterStatisticsUpdateOne
- func (dus *DeviceUpsterStatistics) Value(name string) (ent.Value, error)
- type DeviceUpsterStatisticsClient
- func (c *DeviceUpsterStatisticsClient) Create() *DeviceUpsterStatisticsCreate
- func (c *DeviceUpsterStatisticsClient) CreateBulk(builders ...*DeviceUpsterStatisticsCreate) *DeviceUpsterStatisticsCreateBulk
- func (c *DeviceUpsterStatisticsClient) Delete() *DeviceUpsterStatisticsDelete
- func (c *DeviceUpsterStatisticsClient) DeleteOne(dus *DeviceUpsterStatistics) *DeviceUpsterStatisticsDeleteOne
- func (c *DeviceUpsterStatisticsClient) DeleteOneID(id uint64) *DeviceUpsterStatisticsDeleteOne
- func (c *DeviceUpsterStatisticsClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *DeviceUpsterStatisticsClient) Get(ctx context.Context, id uint64) (*DeviceUpsterStatistics, error)
- func (c *DeviceUpsterStatisticsClient) GetX(ctx context.Context, id uint64) *DeviceUpsterStatistics
- func (c *DeviceUpsterStatisticsClient) Hooks() []Hook
- func (c *DeviceUpsterStatisticsClient) Intercept(interceptors ...Interceptor)
- func (c *DeviceUpsterStatisticsClient) Interceptors() []Interceptor
- func (c *DeviceUpsterStatisticsClient) MapCreateBulk(slice any, setFunc func(*DeviceUpsterStatisticsCreate, int)) *DeviceUpsterStatisticsCreateBulk
- func (c *DeviceUpsterStatisticsClient) Query() *DeviceUpsterStatisticsQuery
- func (c *DeviceUpsterStatisticsClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *DeviceUpsterStatisticsClient) Update() *DeviceUpsterStatisticsUpdate
- func (c *DeviceUpsterStatisticsClient) UpdateOne(dus *DeviceUpsterStatistics) *DeviceUpsterStatisticsUpdateOne
- func (c *DeviceUpsterStatisticsClient) UpdateOneID(id uint64) *DeviceUpsterStatisticsUpdateOne
- func (c *DeviceUpsterStatisticsClient) Use(hooks ...Hook)
- type DeviceUpsterStatisticsCreate
- func (dusc *DeviceUpsterStatisticsCreate) Exec(ctx context.Context) error
- func (c *DeviceUpsterStatisticsCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dusc *DeviceUpsterStatisticsCreate) ExecX(ctx context.Context)
- func (dusc *DeviceUpsterStatisticsCreate) Mutation() *DeviceUpsterStatisticsMutation
- func (dusc *DeviceUpsterStatisticsCreate) OnConflict(opts ...sql.ConflictOption) *DeviceUpsterStatisticsUpsertOne
- func (dusc *DeviceUpsterStatisticsCreate) OnConflictColumns(columns ...string) *DeviceUpsterStatisticsUpsertOne
- func (c *DeviceUpsterStatisticsCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dusc *DeviceUpsterStatisticsCreate) Save(ctx context.Context) (*DeviceUpsterStatistics, error)
- func (dusc *DeviceUpsterStatisticsCreate) SaveX(ctx context.Context) *DeviceUpsterStatistics
- func (dusc *DeviceUpsterStatisticsCreate) SetCreatedAt(t time.Time) *DeviceUpsterStatisticsCreate
- func (dusc *DeviceUpsterStatisticsCreate) SetDate(s string) *DeviceUpsterStatisticsCreate
- func (dusc *DeviceUpsterStatisticsCreate) SetDeviceName(s string) *DeviceUpsterStatisticsCreate
- func (dusc *DeviceUpsterStatisticsCreate) SetHours(s string) *DeviceUpsterStatisticsCreate
- func (dusc *DeviceUpsterStatisticsCreate) SetID(u uint64) *DeviceUpsterStatisticsCreate
- func (dusc *DeviceUpsterStatisticsCreate) SetInitialize(b bool) *DeviceUpsterStatisticsCreate
- func (dusc *DeviceUpsterStatisticsCreate) SetIotID(s string) *DeviceUpsterStatisticsCreate
- func (dusc *DeviceUpsterStatisticsCreate) SetNillableCreatedAt(t *time.Time) *DeviceUpsterStatisticsCreate
- func (dusc *DeviceUpsterStatisticsCreate) SetNillableDate(s *string) *DeviceUpsterStatisticsCreate
- func (dusc *DeviceUpsterStatisticsCreate) SetNillableHours(s *string) *DeviceUpsterStatisticsCreate
- func (dusc *DeviceUpsterStatisticsCreate) SetNillableInitialize(b *bool) *DeviceUpsterStatisticsCreate
- func (dusc *DeviceUpsterStatisticsCreate) SetNillableNumber1(i *int32) *DeviceUpsterStatisticsCreate
- func (dusc *DeviceUpsterStatisticsCreate) SetNillableNumber2(i *int32) *DeviceUpsterStatisticsCreate
- func (dusc *DeviceUpsterStatisticsCreate) SetNillableNumber3(i *int32) *DeviceUpsterStatisticsCreate
- func (dusc *DeviceUpsterStatisticsCreate) SetNillableNumberCycles(i *int32) *DeviceUpsterStatisticsCreate
- func (dusc *DeviceUpsterStatisticsCreate) SetNillableSort(u *uint32) *DeviceUpsterStatisticsCreate
- func (dusc *DeviceUpsterStatisticsCreate) SetNillableStatus(u *uint8) *DeviceUpsterStatisticsCreate
- func (dusc *DeviceUpsterStatisticsCreate) SetNillableTimestamp(s *string) *DeviceUpsterStatisticsCreate
- func (dusc *DeviceUpsterStatisticsCreate) SetNillableUpdatedAt(t *time.Time) *DeviceUpsterStatisticsCreate
- func (dus *DeviceUpsterStatisticsCreate) SetNotNilDate(value *string) *DeviceUpsterStatisticsCreate
- func (dus *DeviceUpsterStatisticsCreate) SetNotNilDeviceName(value *string) *DeviceUpsterStatisticsCreate
- func (dus *DeviceUpsterStatisticsCreate) SetNotNilHours(value *string) *DeviceUpsterStatisticsCreate
- func (dus *DeviceUpsterStatisticsCreate) SetNotNilInitialize(value *bool) *DeviceUpsterStatisticsCreate
- func (dus *DeviceUpsterStatisticsCreate) SetNotNilIotID(value *string) *DeviceUpsterStatisticsCreate
- func (dus *DeviceUpsterStatisticsCreate) SetNotNilNumber1(value *int32) *DeviceUpsterStatisticsCreate
- func (dus *DeviceUpsterStatisticsCreate) SetNotNilNumber2(value *int32) *DeviceUpsterStatisticsCreate
- func (dus *DeviceUpsterStatisticsCreate) SetNotNilNumber3(value *int32) *DeviceUpsterStatisticsCreate
- func (dus *DeviceUpsterStatisticsCreate) SetNotNilNumberCycles(value *int32) *DeviceUpsterStatisticsCreate
- func (dus *DeviceUpsterStatisticsCreate) SetNotNilProductKey(value *string) *DeviceUpsterStatisticsCreate
- func (dus *DeviceUpsterStatisticsCreate) SetNotNilSort(value *uint32) *DeviceUpsterStatisticsCreate
- func (dus *DeviceUpsterStatisticsCreate) SetNotNilStatus(value *uint8) *DeviceUpsterStatisticsCreate
- func (dus *DeviceUpsterStatisticsCreate) SetNotNilTimestamp(value *string) *DeviceUpsterStatisticsCreate
- func (dus *DeviceUpsterStatisticsCreate) SetNotNilUpdatedAt(value *time.Time) *DeviceUpsterStatisticsCreate
- func (dusc *DeviceUpsterStatisticsCreate) SetNumber1(i int32) *DeviceUpsterStatisticsCreate
- func (dusc *DeviceUpsterStatisticsCreate) SetNumber2(i int32) *DeviceUpsterStatisticsCreate
- func (dusc *DeviceUpsterStatisticsCreate) SetNumber3(i int32) *DeviceUpsterStatisticsCreate
- func (dusc *DeviceUpsterStatisticsCreate) SetNumberCycles(i int32) *DeviceUpsterStatisticsCreate
- func (dusc *DeviceUpsterStatisticsCreate) SetProductKey(s string) *DeviceUpsterStatisticsCreate
- func (dusc *DeviceUpsterStatisticsCreate) SetSort(u uint32) *DeviceUpsterStatisticsCreate
- func (dusc *DeviceUpsterStatisticsCreate) SetStatus(u uint8) *DeviceUpsterStatisticsCreate
- func (dusc *DeviceUpsterStatisticsCreate) SetTimestamp(s string) *DeviceUpsterStatisticsCreate
- func (dusc *DeviceUpsterStatisticsCreate) SetUpdatedAt(t time.Time) *DeviceUpsterStatisticsCreate
- func (dusc *DeviceUpsterStatisticsCreate) TableName(s string) *DeviceUpsterStatisticsCreate
- type DeviceUpsterStatisticsCreateBulk
- func (duscb *DeviceUpsterStatisticsCreateBulk) Exec(ctx context.Context) error
- func (c *DeviceUpsterStatisticsCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (duscb *DeviceUpsterStatisticsCreateBulk) ExecX(ctx context.Context)
- func (duscb *DeviceUpsterStatisticsCreateBulk) OnConflict(opts ...sql.ConflictOption) *DeviceUpsterStatisticsUpsertBulk
- func (duscb *DeviceUpsterStatisticsCreateBulk) OnConflictColumns(columns ...string) *DeviceUpsterStatisticsUpsertBulk
- func (c *DeviceUpsterStatisticsCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (duscb *DeviceUpsterStatisticsCreateBulk) Save(ctx context.Context) ([]*DeviceUpsterStatistics, error)
- func (duscb *DeviceUpsterStatisticsCreateBulk) SaveX(ctx context.Context) []*DeviceUpsterStatistics
- type DeviceUpsterStatisticsDelete
- func (dusd *DeviceUpsterStatisticsDelete) Exec(ctx context.Context) (int, error)
- func (c *DeviceUpsterStatisticsDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dusd *DeviceUpsterStatisticsDelete) ExecX(ctx context.Context) int
- func (c *DeviceUpsterStatisticsDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dusd *DeviceUpsterStatisticsDelete) Where(ps ...predicate.DeviceUpsterStatistics) *DeviceUpsterStatisticsDelete
- type DeviceUpsterStatisticsDeleteOne
- type DeviceUpsterStatisticsGroupBy
- func (dusgb *DeviceUpsterStatisticsGroupBy) Aggregate(fns ...AggregateFunc) *DeviceUpsterStatisticsGroupBy
- func (s *DeviceUpsterStatisticsGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *DeviceUpsterStatisticsGroupBy) BoolX(ctx context.Context) bool
- func (s *DeviceUpsterStatisticsGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *DeviceUpsterStatisticsGroupBy) BoolsX(ctx context.Context) []bool
- func (s *DeviceUpsterStatisticsGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *DeviceUpsterStatisticsGroupBy) Float64X(ctx context.Context) float64
- func (s *DeviceUpsterStatisticsGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *DeviceUpsterStatisticsGroupBy) Float64sX(ctx context.Context) []float64
- func (s *DeviceUpsterStatisticsGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *DeviceUpsterStatisticsGroupBy) IntX(ctx context.Context) int
- func (s *DeviceUpsterStatisticsGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *DeviceUpsterStatisticsGroupBy) IntsX(ctx context.Context) []int
- func (dusgb *DeviceUpsterStatisticsGroupBy) Scan(ctx context.Context, v any) error
- func (s *DeviceUpsterStatisticsGroupBy) ScanX(ctx context.Context, v any)
- func (s *DeviceUpsterStatisticsGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *DeviceUpsterStatisticsGroupBy) StringX(ctx context.Context) string
- func (s *DeviceUpsterStatisticsGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *DeviceUpsterStatisticsGroupBy) StringsX(ctx context.Context) []string
- type DeviceUpsterStatisticsMutation
- func (m *DeviceUpsterStatisticsMutation) AddField(name string, value ent.Value) error
- func (m *DeviceUpsterStatisticsMutation) AddNumber1(i int32)
- func (m *DeviceUpsterStatisticsMutation) AddNumber2(i int32)
- func (m *DeviceUpsterStatisticsMutation) AddNumber3(i int32)
- func (m *DeviceUpsterStatisticsMutation) AddNumberCycles(i int32)
- func (m *DeviceUpsterStatisticsMutation) AddSort(u int32)
- func (m *DeviceUpsterStatisticsMutation) AddStatus(u int8)
- func (m *DeviceUpsterStatisticsMutation) AddedEdges() []string
- func (m *DeviceUpsterStatisticsMutation) AddedField(name string) (ent.Value, bool)
- func (m *DeviceUpsterStatisticsMutation) AddedFields() []string
- func (m *DeviceUpsterStatisticsMutation) AddedIDs(name string) []ent.Value
- func (m *DeviceUpsterStatisticsMutation) AddedNumber1() (r int32, exists bool)
- func (m *DeviceUpsterStatisticsMutation) AddedNumber2() (r int32, exists bool)
- func (m *DeviceUpsterStatisticsMutation) AddedNumber3() (r int32, exists bool)
- func (m *DeviceUpsterStatisticsMutation) AddedNumberCycles() (r int32, exists bool)
- func (m *DeviceUpsterStatisticsMutation) AddedSort() (r int32, exists bool)
- func (m *DeviceUpsterStatisticsMutation) AddedStatus() (r int8, exists bool)
- func (m *DeviceUpsterStatisticsMutation) ClearDate()
- func (m *DeviceUpsterStatisticsMutation) ClearEdge(name string) error
- func (m *DeviceUpsterStatisticsMutation) ClearField(name string) error
- func (m *DeviceUpsterStatisticsMutation) ClearHours()
- func (m *DeviceUpsterStatisticsMutation) ClearInitialize()
- func (m *DeviceUpsterStatisticsMutation) ClearNumber1()
- func (m *DeviceUpsterStatisticsMutation) ClearNumber2()
- func (m *DeviceUpsterStatisticsMutation) ClearNumber3()
- func (m *DeviceUpsterStatisticsMutation) ClearNumberCycles()
- func (m *DeviceUpsterStatisticsMutation) ClearStatus()
- func (m *DeviceUpsterStatisticsMutation) ClearTimestamp()
- func (m *DeviceUpsterStatisticsMutation) ClearedEdges() []string
- func (m *DeviceUpsterStatisticsMutation) ClearedFields() []string
- func (m DeviceUpsterStatisticsMutation) Client() *Client
- func (m *DeviceUpsterStatisticsMutation) CreatedAt() (r time.Time, exists bool)
- func (m *DeviceUpsterStatisticsMutation) Date() (r string, exists bool)
- func (m *DeviceUpsterStatisticsMutation) DateCleared() bool
- func (m *DeviceUpsterStatisticsMutation) DeviceName() (r string, exists bool)
- func (m *DeviceUpsterStatisticsMutation) EdgeCleared(name string) bool
- func (c *DeviceUpsterStatisticsMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *DeviceUpsterStatisticsMutation) Field(name string) (ent.Value, bool)
- func (m *DeviceUpsterStatisticsMutation) FieldCleared(name string) bool
- func (m *DeviceUpsterStatisticsMutation) Fields() []string
- func (m *DeviceUpsterStatisticsMutation) Hours() (r string, exists bool)
- func (m *DeviceUpsterStatisticsMutation) HoursCleared() bool
- func (m *DeviceUpsterStatisticsMutation) ID() (id uint64, exists bool)
- func (m *DeviceUpsterStatisticsMutation) IDs(ctx context.Context) ([]uint64, error)
- func (m *DeviceUpsterStatisticsMutation) Initialize() (r bool, exists bool)
- func (m *DeviceUpsterStatisticsMutation) InitializeCleared() bool
- func (m *DeviceUpsterStatisticsMutation) IotID() (r string, exists bool)
- func (m *DeviceUpsterStatisticsMutation) Number1() (r int32, exists bool)
- func (m *DeviceUpsterStatisticsMutation) Number1Cleared() bool
- func (m *DeviceUpsterStatisticsMutation) Number2() (r int32, exists bool)
- func (m *DeviceUpsterStatisticsMutation) Number2Cleared() bool
- func (m *DeviceUpsterStatisticsMutation) Number3() (r int32, exists bool)
- func (m *DeviceUpsterStatisticsMutation) Number3Cleared() bool
- func (m *DeviceUpsterStatisticsMutation) NumberCycles() (r int32, exists bool)
- func (m *DeviceUpsterStatisticsMutation) NumberCyclesCleared() bool
- func (m *DeviceUpsterStatisticsMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *DeviceUpsterStatisticsMutation) OldDate(ctx context.Context) (v string, err error)
- func (m *DeviceUpsterStatisticsMutation) OldDeviceName(ctx context.Context) (v string, err error)
- func (m *DeviceUpsterStatisticsMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *DeviceUpsterStatisticsMutation) OldHours(ctx context.Context) (v string, err error)
- func (m *DeviceUpsterStatisticsMutation) OldInitialize(ctx context.Context) (v bool, err error)
- func (m *DeviceUpsterStatisticsMutation) OldIotID(ctx context.Context) (v string, err error)
- func (m *DeviceUpsterStatisticsMutation) OldNumber1(ctx context.Context) (v int32, err error)
- func (m *DeviceUpsterStatisticsMutation) OldNumber2(ctx context.Context) (v int32, err error)
- func (m *DeviceUpsterStatisticsMutation) OldNumber3(ctx context.Context) (v int32, err error)
- func (m *DeviceUpsterStatisticsMutation) OldNumberCycles(ctx context.Context) (v int32, err error)
- func (m *DeviceUpsterStatisticsMutation) OldProductKey(ctx context.Context) (v string, err error)
- func (m *DeviceUpsterStatisticsMutation) OldSort(ctx context.Context) (v uint32, err error)
- func (m *DeviceUpsterStatisticsMutation) OldStatus(ctx context.Context) (v uint8, err error)
- func (m *DeviceUpsterStatisticsMutation) OldTimestamp(ctx context.Context) (v string, err error)
- func (m *DeviceUpsterStatisticsMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *DeviceUpsterStatisticsMutation) Op() Op
- func (m *DeviceUpsterStatisticsMutation) ProductKey() (r string, exists bool)
- func (c *DeviceUpsterStatisticsMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *DeviceUpsterStatisticsMutation) RemovedEdges() []string
- func (m *DeviceUpsterStatisticsMutation) RemovedIDs(name string) []ent.Value
- func (m *DeviceUpsterStatisticsMutation) ResetCreatedAt()
- func (m *DeviceUpsterStatisticsMutation) ResetDate()
- func (m *DeviceUpsterStatisticsMutation) ResetDeviceName()
- func (m *DeviceUpsterStatisticsMutation) ResetEdge(name string) error
- func (m *DeviceUpsterStatisticsMutation) ResetField(name string) error
- func (m *DeviceUpsterStatisticsMutation) ResetHours()
- func (m *DeviceUpsterStatisticsMutation) ResetInitialize()
- func (m *DeviceUpsterStatisticsMutation) ResetIotID()
- func (m *DeviceUpsterStatisticsMutation) ResetNumber1()
- func (m *DeviceUpsterStatisticsMutation) ResetNumber2()
- func (m *DeviceUpsterStatisticsMutation) ResetNumber3()
- func (m *DeviceUpsterStatisticsMutation) ResetNumberCycles()
- func (m *DeviceUpsterStatisticsMutation) ResetProductKey()
- func (m *DeviceUpsterStatisticsMutation) ResetSort()
- func (m *DeviceUpsterStatisticsMutation) ResetStatus()
- func (m *DeviceUpsterStatisticsMutation) ResetTimestamp()
- func (m *DeviceUpsterStatisticsMutation) ResetUpdatedAt()
- func (m *DeviceUpsterStatisticsMutation) SetCreatedAt(t time.Time)
- func (m *DeviceUpsterStatisticsMutation) SetDate(s string)
- func (m *DeviceUpsterStatisticsMutation) SetDeviceName(s string)
- func (m *DeviceUpsterStatisticsMutation) SetField(name string, value ent.Value) error
- func (m *DeviceUpsterStatisticsMutation) SetHours(s string)
- func (m *DeviceUpsterStatisticsMutation) SetID(id uint64)
- func (m *DeviceUpsterStatisticsMutation) SetInitialize(b bool)
- func (m *DeviceUpsterStatisticsMutation) SetIotID(s string)
- func (m *DeviceUpsterStatisticsMutation) SetNumber1(i int32)
- func (m *DeviceUpsterStatisticsMutation) SetNumber2(i int32)
- func (m *DeviceUpsterStatisticsMutation) SetNumber3(i int32)
- func (m *DeviceUpsterStatisticsMutation) SetNumberCycles(i int32)
- func (m *DeviceUpsterStatisticsMutation) SetOp(op Op)
- func (m *DeviceUpsterStatisticsMutation) SetProductKey(s string)
- func (m *DeviceUpsterStatisticsMutation) SetSort(u uint32)
- func (m *DeviceUpsterStatisticsMutation) SetStatus(u uint8)
- func (m *DeviceUpsterStatisticsMutation) SetTimestamp(s string)
- func (m *DeviceUpsterStatisticsMutation) SetUpdatedAt(t time.Time)
- func (m *DeviceUpsterStatisticsMutation) Sort() (r uint32, exists bool)
- func (m *DeviceUpsterStatisticsMutation) Status() (r uint8, exists bool)
- func (m *DeviceUpsterStatisticsMutation) StatusCleared() bool
- func (m *DeviceUpsterStatisticsMutation) Timestamp() (r string, exists bool)
- func (m *DeviceUpsterStatisticsMutation) TimestampCleared() bool
- func (m DeviceUpsterStatisticsMutation) Tx() (*Tx, error)
- func (m *DeviceUpsterStatisticsMutation) Type() string
- func (m *DeviceUpsterStatisticsMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *DeviceUpsterStatisticsMutation) Where(ps ...predicate.DeviceUpsterStatistics)
- func (m *DeviceUpsterStatisticsMutation) WhereP(ps ...func(*sql.Selector))
- type DeviceUpsterStatisticsPageList
- type DeviceUpsterStatisticsPager
- type DeviceUpsterStatisticsPaginateOption
- type DeviceUpsterStatisticsQuery
- func (dusq *DeviceUpsterStatisticsQuery) Aggregate(fns ...AggregateFunc) *DeviceUpsterStatisticsSelect
- func (dusq *DeviceUpsterStatisticsQuery) All(ctx context.Context) ([]*DeviceUpsterStatistics, error)
- func (dusq *DeviceUpsterStatisticsQuery) AllX(ctx context.Context) []*DeviceUpsterStatistics
- func (dusq *DeviceUpsterStatisticsQuery) Clone() *DeviceUpsterStatisticsQuery
- func (dusq *DeviceUpsterStatisticsQuery) Count(ctx context.Context) (int, error)
- func (dusq *DeviceUpsterStatisticsQuery) CountX(ctx context.Context) int
- func (c *DeviceUpsterStatisticsQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dusq *DeviceUpsterStatisticsQuery) Exist(ctx context.Context) (bool, error)
- func (dusq *DeviceUpsterStatisticsQuery) ExistX(ctx context.Context) bool
- func (dusq *DeviceUpsterStatisticsQuery) First(ctx context.Context) (*DeviceUpsterStatistics, error)
- func (dusq *DeviceUpsterStatisticsQuery) FirstID(ctx context.Context) (id uint64, err error)
- func (dusq *DeviceUpsterStatisticsQuery) FirstIDX(ctx context.Context) uint64
- func (dusq *DeviceUpsterStatisticsQuery) FirstX(ctx context.Context) *DeviceUpsterStatistics
- func (dusq *DeviceUpsterStatisticsQuery) GroupBy(field string, fields ...string) *DeviceUpsterStatisticsGroupBy
- func (dusq *DeviceUpsterStatisticsQuery) IDs(ctx context.Context) (ids []uint64, err error)
- func (dusq *DeviceUpsterStatisticsQuery) IDsX(ctx context.Context) []uint64
- func (dusq *DeviceUpsterStatisticsQuery) Limit(limit int) *DeviceUpsterStatisticsQuery
- func (dusq *DeviceUpsterStatisticsQuery) Modify(modifiers ...func(s *sql.Selector)) *DeviceUpsterStatisticsSelect
- func (dusq *DeviceUpsterStatisticsQuery) Offset(offset int) *DeviceUpsterStatisticsQuery
- func (dusq *DeviceUpsterStatisticsQuery) Only(ctx context.Context) (*DeviceUpsterStatistics, error)
- func (dusq *DeviceUpsterStatisticsQuery) OnlyID(ctx context.Context) (id uint64, err error)
- func (dusq *DeviceUpsterStatisticsQuery) OnlyIDX(ctx context.Context) uint64
- func (dusq *DeviceUpsterStatisticsQuery) OnlyX(ctx context.Context) *DeviceUpsterStatistics
- func (dusq *DeviceUpsterStatisticsQuery) Order(o ...deviceupsterstatistics.OrderOption) *DeviceUpsterStatisticsQuery
- func (dus *DeviceUpsterStatisticsQuery) Page(ctx context.Context, pageNum uint64, pageSize uint64, ...) (*DeviceUpsterStatisticsPageList, error)
- func (c *DeviceUpsterStatisticsQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dusq *DeviceUpsterStatisticsQuery) Select(fields ...string) *DeviceUpsterStatisticsSelect
- func (dusq *DeviceUpsterStatisticsQuery) Unique(unique bool) *DeviceUpsterStatisticsQuery
- func (dusq *DeviceUpsterStatisticsQuery) Where(ps ...predicate.DeviceUpsterStatistics) *DeviceUpsterStatisticsQuery
- type DeviceUpsterStatisticsSelect
- func (duss *DeviceUpsterStatisticsSelect) Aggregate(fns ...AggregateFunc) *DeviceUpsterStatisticsSelect
- func (s *DeviceUpsterStatisticsSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *DeviceUpsterStatisticsSelect) BoolX(ctx context.Context) bool
- func (s *DeviceUpsterStatisticsSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *DeviceUpsterStatisticsSelect) BoolsX(ctx context.Context) []bool
- func (c DeviceUpsterStatisticsSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *DeviceUpsterStatisticsSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *DeviceUpsterStatisticsSelect) Float64X(ctx context.Context) float64
- func (s *DeviceUpsterStatisticsSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *DeviceUpsterStatisticsSelect) Float64sX(ctx context.Context) []float64
- func (s *DeviceUpsterStatisticsSelect) Int(ctx context.Context) (_ int, err error)
- func (s *DeviceUpsterStatisticsSelect) IntX(ctx context.Context) int
- func (s *DeviceUpsterStatisticsSelect) Ints(ctx context.Context) ([]int, error)
- func (s *DeviceUpsterStatisticsSelect) IntsX(ctx context.Context) []int
- func (duss *DeviceUpsterStatisticsSelect) Modify(modifiers ...func(s *sql.Selector)) *DeviceUpsterStatisticsSelect
- func (c DeviceUpsterStatisticsSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (duss *DeviceUpsterStatisticsSelect) Scan(ctx context.Context, v any) error
- func (s *DeviceUpsterStatisticsSelect) ScanX(ctx context.Context, v any)
- func (s *DeviceUpsterStatisticsSelect) String(ctx context.Context) (_ string, err error)
- func (s *DeviceUpsterStatisticsSelect) StringX(ctx context.Context) string
- func (s *DeviceUpsterStatisticsSelect) Strings(ctx context.Context) ([]string, error)
- func (s *DeviceUpsterStatisticsSelect) StringsX(ctx context.Context) []string
- type DeviceUpsterStatisticsSlice
- type DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) AddNumber1(i int32) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) AddNumber2(i int32) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) AddNumber3(i int32) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) AddNumberCycles(i int32) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) AddSort(u int32) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) AddStatus(u int8) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) ClearDate() *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) ClearHours() *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) ClearInitialize() *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) ClearNumber1() *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) ClearNumber2() *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) ClearNumber3() *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) ClearNumberCycles() *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) ClearStatus() *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) ClearTimestamp() *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) Exec(ctx context.Context) error
- func (c *DeviceUpsterStatisticsUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dusu *DeviceUpsterStatisticsUpdate) ExecX(ctx context.Context)
- func (dusu *DeviceUpsterStatisticsUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) Mutation() *DeviceUpsterStatisticsMutation
- func (c *DeviceUpsterStatisticsUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dusu *DeviceUpsterStatisticsUpdate) Save(ctx context.Context) (int, error)
- func (dusu *DeviceUpsterStatisticsUpdate) SaveX(ctx context.Context) int
- func (dusu *DeviceUpsterStatisticsUpdate) SetDate(s string) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) SetDeviceName(s string) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) SetHours(s string) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) SetInitialize(b bool) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) SetIotID(s string) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) SetNillableDate(s *string) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) SetNillableDeviceName(s *string) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) SetNillableHours(s *string) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) SetNillableInitialize(b *bool) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) SetNillableIotID(s *string) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) SetNillableNumber1(i *int32) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) SetNillableNumber2(i *int32) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) SetNillableNumber3(i *int32) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) SetNillableNumberCycles(i *int32) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) SetNillableProductKey(s *string) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) SetNillableSort(u *uint32) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) SetNillableStatus(u *uint8) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) SetNillableTimestamp(s *string) *DeviceUpsterStatisticsUpdate
- func (dus *DeviceUpsterStatisticsUpdate) SetNotNilDate(value *string) *DeviceUpsterStatisticsUpdate
- func (dus *DeviceUpsterStatisticsUpdate) SetNotNilDeviceName(value *string) *DeviceUpsterStatisticsUpdate
- func (dus *DeviceUpsterStatisticsUpdate) SetNotNilHours(value *string) *DeviceUpsterStatisticsUpdate
- func (dus *DeviceUpsterStatisticsUpdate) SetNotNilInitialize(value *bool) *DeviceUpsterStatisticsUpdate
- func (dus *DeviceUpsterStatisticsUpdate) SetNotNilIotID(value *string) *DeviceUpsterStatisticsUpdate
- func (dus *DeviceUpsterStatisticsUpdate) SetNotNilNumber1(value *int32) *DeviceUpsterStatisticsUpdate
- func (dus *DeviceUpsterStatisticsUpdate) SetNotNilNumber2(value *int32) *DeviceUpsterStatisticsUpdate
- func (dus *DeviceUpsterStatisticsUpdate) SetNotNilNumber3(value *int32) *DeviceUpsterStatisticsUpdate
- func (dus *DeviceUpsterStatisticsUpdate) SetNotNilNumberCycles(value *int32) *DeviceUpsterStatisticsUpdate
- func (dus *DeviceUpsterStatisticsUpdate) SetNotNilProductKey(value *string) *DeviceUpsterStatisticsUpdate
- func (dus *DeviceUpsterStatisticsUpdate) SetNotNilSort(value *uint32) *DeviceUpsterStatisticsUpdate
- func (dus *DeviceUpsterStatisticsUpdate) SetNotNilStatus(value *uint8) *DeviceUpsterStatisticsUpdate
- func (dus *DeviceUpsterStatisticsUpdate) SetNotNilTimestamp(value *string) *DeviceUpsterStatisticsUpdate
- func (dus *DeviceUpsterStatisticsUpdate) SetNotNilUpdatedAt(value *time.Time) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) SetNumber1(i int32) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) SetNumber2(i int32) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) SetNumber3(i int32) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) SetNumberCycles(i int32) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) SetProductKey(s string) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) SetSort(u uint32) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) SetStatus(u uint8) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) SetTimestamp(s string) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) SetUpdatedAt(t time.Time) *DeviceUpsterStatisticsUpdate
- func (dusu *DeviceUpsterStatisticsUpdate) Where(ps ...predicate.DeviceUpsterStatistics) *DeviceUpsterStatisticsUpdate
- type DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) AddNumber1(i int32) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) AddNumber2(i int32) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) AddNumber3(i int32) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) AddNumberCycles(i int32) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) AddSort(u int32) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) AddStatus(u int8) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) ClearDate() *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) ClearHours() *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) ClearInitialize() *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) ClearNumber1() *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) ClearNumber2() *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) ClearNumber3() *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) ClearNumberCycles() *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) ClearStatus() *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) ClearTimestamp() *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) Exec(ctx context.Context) error
- func (c *DeviceUpsterStatisticsUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dusuo *DeviceUpsterStatisticsUpdateOne) ExecX(ctx context.Context)
- func (dusuo *DeviceUpsterStatisticsUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) Mutation() *DeviceUpsterStatisticsMutation
- func (c *DeviceUpsterStatisticsUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dusuo *DeviceUpsterStatisticsUpdateOne) Save(ctx context.Context) (*DeviceUpsterStatistics, error)
- func (dusuo *DeviceUpsterStatisticsUpdateOne) SaveX(ctx context.Context) *DeviceUpsterStatistics
- func (dusuo *DeviceUpsterStatisticsUpdateOne) Select(field string, fields ...string) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) SetDate(s string) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) SetDeviceName(s string) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) SetHours(s string) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) SetInitialize(b bool) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) SetIotID(s string) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNillableDate(s *string) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNillableDeviceName(s *string) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNillableHours(s *string) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNillableInitialize(b *bool) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNillableIotID(s *string) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNillableNumber1(i *int32) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNillableNumber2(i *int32) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNillableNumber3(i *int32) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNillableNumberCycles(i *int32) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNillableProductKey(s *string) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNillableSort(u *uint32) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNillableStatus(u *uint8) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNillableTimestamp(s *string) *DeviceUpsterStatisticsUpdateOne
- func (dus *DeviceUpsterStatisticsUpdateOne) SetNotNilDate(value *string) *DeviceUpsterStatisticsUpdateOne
- func (dus *DeviceUpsterStatisticsUpdateOne) SetNotNilDeviceName(value *string) *DeviceUpsterStatisticsUpdateOne
- func (dus *DeviceUpsterStatisticsUpdateOne) SetNotNilHours(value *string) *DeviceUpsterStatisticsUpdateOne
- func (dus *DeviceUpsterStatisticsUpdateOne) SetNotNilInitialize(value *bool) *DeviceUpsterStatisticsUpdateOne
- func (dus *DeviceUpsterStatisticsUpdateOne) SetNotNilIotID(value *string) *DeviceUpsterStatisticsUpdateOne
- func (dus *DeviceUpsterStatisticsUpdateOne) SetNotNilNumber1(value *int32) *DeviceUpsterStatisticsUpdateOne
- func (dus *DeviceUpsterStatisticsUpdateOne) SetNotNilNumber2(value *int32) *DeviceUpsterStatisticsUpdateOne
- func (dus *DeviceUpsterStatisticsUpdateOne) SetNotNilNumber3(value *int32) *DeviceUpsterStatisticsUpdateOne
- func (dus *DeviceUpsterStatisticsUpdateOne) SetNotNilNumberCycles(value *int32) *DeviceUpsterStatisticsUpdateOne
- func (dus *DeviceUpsterStatisticsUpdateOne) SetNotNilProductKey(value *string) *DeviceUpsterStatisticsUpdateOne
- func (dus *DeviceUpsterStatisticsUpdateOne) SetNotNilSort(value *uint32) *DeviceUpsterStatisticsUpdateOne
- func (dus *DeviceUpsterStatisticsUpdateOne) SetNotNilStatus(value *uint8) *DeviceUpsterStatisticsUpdateOne
- func (dus *DeviceUpsterStatisticsUpdateOne) SetNotNilTimestamp(value *string) *DeviceUpsterStatisticsUpdateOne
- func (dus *DeviceUpsterStatisticsUpdateOne) SetNotNilUpdatedAt(value *time.Time) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNumber1(i int32) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNumber2(i int32) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNumber3(i int32) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNumberCycles(i int32) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) SetProductKey(s string) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) SetSort(u uint32) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) SetStatus(u uint8) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) SetTimestamp(s string) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) SetUpdatedAt(t time.Time) *DeviceUpsterStatisticsUpdateOne
- func (dusuo *DeviceUpsterStatisticsUpdateOne) Where(ps ...predicate.DeviceUpsterStatistics) *DeviceUpsterStatisticsUpdateOne
- type DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) AddNumber1(v int32) *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) AddNumber2(v int32) *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) AddNumber3(v int32) *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) AddNumberCycles(v int32) *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) AddSort(v uint32) *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) AddStatus(v uint8) *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) ClearDate() *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) ClearHours() *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) ClearInitialize() *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) ClearNumber1() *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) ClearNumber2() *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) ClearNumber3() *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) ClearNumberCycles() *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) ClearStatus() *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) ClearTimestamp() *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) SetDate(v string) *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) SetDeviceName(v string) *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) SetHours(v string) *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) SetInitialize(v bool) *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) SetIotID(v string) *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) SetNumber1(v int32) *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) SetNumber2(v int32) *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) SetNumber3(v int32) *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) SetNumberCycles(v int32) *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) SetProductKey(v string) *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) SetSort(v uint32) *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) SetStatus(v uint8) *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) SetTimestamp(v string) *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) SetUpdatedAt(v time.Time) *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) UpdateDate() *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) UpdateDeviceName() *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) UpdateHours() *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) UpdateInitialize() *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) UpdateIotID() *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) UpdateNumber1() *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) UpdateNumber2() *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) UpdateNumber3() *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) UpdateNumberCycles() *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) UpdateProductKey() *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) UpdateSort() *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) UpdateStatus() *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) UpdateTimestamp() *DeviceUpsterStatisticsUpsert
- func (u *DeviceUpsterStatisticsUpsert) UpdateUpdatedAt() *DeviceUpsterStatisticsUpsert
- type DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) AddNumber1(v int32) *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) AddNumber2(v int32) *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) AddNumber3(v int32) *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) AddNumberCycles(v int32) *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) AddSort(v uint32) *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) AddStatus(v uint8) *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) ClearDate() *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) ClearHours() *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) ClearInitialize() *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) ClearNumber1() *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) ClearNumber2() *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) ClearNumber3() *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) ClearNumberCycles() *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) ClearStatus() *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) ClearTimestamp() *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) DoNothing() *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) Exec(ctx context.Context) error
- func (u *DeviceUpsterStatisticsUpsertBulk) ExecX(ctx context.Context)
- func (u *DeviceUpsterStatisticsUpsertBulk) Ignore() *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) SetDate(v string) *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) SetDeviceName(v string) *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) SetHours(v string) *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) SetInitialize(v bool) *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) SetIotID(v string) *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) SetNumber1(v int32) *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) SetNumber2(v int32) *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) SetNumber3(v int32) *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) SetNumberCycles(v int32) *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) SetProductKey(v string) *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) SetSort(v uint32) *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) SetStatus(v uint8) *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) SetTimestamp(v string) *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) SetUpdatedAt(v time.Time) *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) Update(set func(*DeviceUpsterStatisticsUpsert)) *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) UpdateDate() *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) UpdateDeviceName() *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) UpdateHours() *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) UpdateInitialize() *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) UpdateIotID() *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) UpdateNewValues() *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) UpdateNumber1() *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) UpdateNumber2() *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) UpdateNumber3() *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) UpdateNumberCycles() *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) UpdateProductKey() *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) UpdateSort() *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) UpdateStatus() *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) UpdateTimestamp() *DeviceUpsterStatisticsUpsertBulk
- func (u *DeviceUpsterStatisticsUpsertBulk) UpdateUpdatedAt() *DeviceUpsterStatisticsUpsertBulk
- type DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) AddNumber1(v int32) *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) AddNumber2(v int32) *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) AddNumber3(v int32) *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) AddNumberCycles(v int32) *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) AddSort(v uint32) *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) AddStatus(v uint8) *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) ClearDate() *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) ClearHours() *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) ClearInitialize() *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) ClearNumber1() *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) ClearNumber2() *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) ClearNumber3() *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) ClearNumberCycles() *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) ClearStatus() *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) ClearTimestamp() *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) DoNothing() *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) Exec(ctx context.Context) error
- func (u *DeviceUpsterStatisticsUpsertOne) ExecX(ctx context.Context)
- func (u *DeviceUpsterStatisticsUpsertOne) ID(ctx context.Context) (id uint64, err error)
- func (u *DeviceUpsterStatisticsUpsertOne) IDX(ctx context.Context) uint64
- func (u *DeviceUpsterStatisticsUpsertOne) Ignore() *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) SetDate(v string) *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) SetDeviceName(v string) *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) SetHours(v string) *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) SetInitialize(v bool) *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) SetIotID(v string) *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) SetNumber1(v int32) *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) SetNumber2(v int32) *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) SetNumber3(v int32) *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) SetNumberCycles(v int32) *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) SetProductKey(v string) *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) SetSort(v uint32) *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) SetStatus(v uint8) *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) SetTimestamp(v string) *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) SetUpdatedAt(v time.Time) *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) Update(set func(*DeviceUpsterStatisticsUpsert)) *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) UpdateDate() *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) UpdateDeviceName() *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) UpdateHours() *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) UpdateInitialize() *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) UpdateIotID() *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) UpdateNewValues() *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) UpdateNumber1() *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) UpdateNumber2() *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) UpdateNumber3() *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) UpdateNumberCycles() *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) UpdateProductKey() *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) UpdateSort() *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) UpdateStatus() *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) UpdateTimestamp() *DeviceUpsterStatisticsUpsertOne
- func (u *DeviceUpsterStatisticsUpsertOne) UpdateUpdatedAt() *DeviceUpsterStatisticsUpsertOne
- type Hook
- type InterceptFunc
- type Interceptor
- type MutateFunc
- type Mutation
- type Mutator
- type NotFoundError
- type NotLoadedError
- type NotSingularError
- type Op
- type Option
- type OrderDirection
- type OrderFunc
- type PageDetails
- 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 ValidationError
- type Value
Constants ¶
const ( // Operation types. OpCreate = ent.OpCreate OpDelete = ent.OpDelete OpDeleteOne = ent.OpDeleteOne OpUpdate = ent.OpUpdate OpUpdateOne = ent.OpUpdateOne // Node types. TypeDeviceDuration = "DeviceDuration" TypeDeviceDurationElephant = "DeviceDurationElephant" TypeDeviceEvent = "DeviceEvent" TypeDeviceKpi = "DeviceKpi" TypeDeviceOfflineTime = "DeviceOfflineTime" TypeDeviceOnTimeDaily = "DeviceOnTimeDaily" TypeDeviceOnlineTime = "DeviceOnlineTime" TypeDeviceUpsterCycle = "DeviceUpsterCycle" TypeDeviceUpsterStatistics = "DeviceUpsterStatistics" )
Variables ¶
var DefaultDeviceDurationElephantOrder = Desc(devicedurationelephant.FieldID)
DefaultDeviceDurationElephantOrder is the default ordering of DeviceDurationElephant.
var DefaultDeviceDurationOrder = Desc(deviceduration.FieldID)
DefaultDeviceDurationOrder is the default ordering of DeviceDuration.
var DefaultDeviceEventOrder = Desc(deviceevent.FieldID)
DefaultDeviceEventOrder is the default ordering of DeviceEvent.
var DefaultDeviceKpiOrder = Desc(devicekpi.FieldID)
DefaultDeviceKpiOrder is the default ordering of DeviceKpi.
var DefaultDeviceOfflineTimeOrder = Desc(deviceofflinetime.FieldID)
DefaultDeviceOfflineTimeOrder is the default ordering of DeviceOfflineTime.
var DefaultDeviceOnTimeDailyOrder = Desc(deviceontimedaily.FieldID)
DefaultDeviceOnTimeDailyOrder is the default ordering of DeviceOnTimeDaily.
var DefaultDeviceOnlineTimeOrder = Desc(deviceonlinetime.FieldID)
DefaultDeviceOnlineTimeOrder is the default ordering of DeviceOnlineTime.
var DefaultDeviceUpsterCycleOrder = Desc(deviceupstercycle.FieldID)
DefaultDeviceUpsterCycleOrder is the default ordering of DeviceUpsterCycle.
var DefaultDeviceUpsterStatisticsOrder = Desc(deviceupsterstatistics.FieldID)
DefaultDeviceUpsterStatisticsOrder is the default ordering of DeviceUpsterStatistics.
var ErrTxStarted = errors.New("ent: cannot start a transaction within a transaction")
ErrTxStarted is returned when trying to start a new transaction from a transactional client.
Functions ¶
func IsConstraintError ¶
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(ent.As(ent.Sum(field1), "sum_field1"), (ent.As(ent.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 Client ¶
type Client struct { // Schema is the client for creating, migrating and dropping schema. Schema *migrate.Schema // DeviceDuration is the client for interacting with the DeviceDuration builders. DeviceDuration *DeviceDurationClient // DeviceDurationElephant is the client for interacting with the DeviceDurationElephant builders. DeviceDurationElephant *DeviceDurationElephantClient // DeviceEvent is the client for interacting with the DeviceEvent builders. DeviceEvent *DeviceEventClient // DeviceKpi is the client for interacting with the DeviceKpi builders. DeviceKpi *DeviceKpiClient // DeviceOfflineTime is the client for interacting with the DeviceOfflineTime builders. DeviceOfflineTime *DeviceOfflineTimeClient // DeviceOnTimeDaily is the client for interacting with the DeviceOnTimeDaily builders. DeviceOnTimeDaily *DeviceOnTimeDailyClient // DeviceOnlineTime is the client for interacting with the DeviceOnlineTime builders. DeviceOnlineTime *DeviceOnlineTimeClient // DeviceUpsterCycle is the client for interacting with the DeviceUpsterCycle builders. DeviceUpsterCycle *DeviceUpsterCycleClient // DeviceUpsterStatistics is the client for interacting with the DeviceUpsterStatistics builders. DeviceUpsterStatistics *DeviceUpsterStatisticsClient // 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(). DeviceDuration. 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) 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 DeviceDuration ¶
type DeviceDuration struct { // ID of the ent. ID uint64 `json:"id,omitempty"` // Create Time | 创建日期 CreatedAt time.Time `json:"created_at,omitempty"` // Update Time | 修改日期 UpdatedAt time.Time `json:"updated_at,omitempty"` // Status 1: normal 2: ban | 状态 1 正常 2 禁用 Status uint8 `json:"status,omitempty"` // Sort Number | 排序编号 Sort uint32 `json:"sort,omitempty"` // Iot Id | 设备ID IotID string `json:"iotID,omitempty"` // Device Name | 设备名称 DeviceName string `json:"deviceName,omitempty"` // Product Key | 产品Key ProductKey string `json:"productKey,omitempty"` // Date | 日期 Date string `json:"date,omitempty"` // StandBy | 待机 StandBy int32 `json:"standBy,omitempty"` // Preparation | 准备 Preparation int32 `json:"preparation,omitempty"` // Waiting | 等待 Waiting int32 `json:"waiting,omitempty"` // Washing Cold | 洗涤冷 WashingCold int32 `json:"washingCold,omitempty"` // Washing | 洗涤热 Washing int32 `json:"washing,omitempty"` Ebutton int32 `json:"ebutton,omitempty"` // Day Json | 每日详情 DayJson string `json:"dayJson,omitempty"` // contains filtered or unexported fields }
DeviceDuration is the model entity for the DeviceDuration schema.
func (*DeviceDuration) ExecContext ¶
func (c *DeviceDuration) 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 (*DeviceDuration) QueryContext ¶
func (c *DeviceDuration) 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 (*DeviceDuration) String ¶
func (dd *DeviceDuration) String() string
String implements the fmt.Stringer.
func (*DeviceDuration) Unwrap ¶
func (dd *DeviceDuration) Unwrap() *DeviceDuration
Unwrap unwraps the DeviceDuration 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 (*DeviceDuration) Update ¶
func (dd *DeviceDuration) Update() *DeviceDurationUpdateOne
Update returns a builder for updating this DeviceDuration. Note that you need to call DeviceDuration.Unwrap() before calling this method if this DeviceDuration was returned from a transaction, and the transaction was committed or rolled back.
type DeviceDurationClient ¶
type DeviceDurationClient struct {
// contains filtered or unexported fields
}
DeviceDurationClient is a client for the DeviceDuration schema.
func NewDeviceDurationClient ¶
func NewDeviceDurationClient(c config) *DeviceDurationClient
NewDeviceDurationClient returns a client for the DeviceDuration from the given config.
func (*DeviceDurationClient) Create ¶
func (c *DeviceDurationClient) Create() *DeviceDurationCreate
Create returns a builder for creating a DeviceDuration entity.
func (*DeviceDurationClient) CreateBulk ¶
func (c *DeviceDurationClient) CreateBulk(builders ...*DeviceDurationCreate) *DeviceDurationCreateBulk
CreateBulk returns a builder for creating a bulk of DeviceDuration entities.
func (*DeviceDurationClient) Delete ¶
func (c *DeviceDurationClient) Delete() *DeviceDurationDelete
Delete returns a delete builder for DeviceDuration.
func (*DeviceDurationClient) DeleteOne ¶
func (c *DeviceDurationClient) DeleteOne(dd *DeviceDuration) *DeviceDurationDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*DeviceDurationClient) DeleteOneID ¶
func (c *DeviceDurationClient) DeleteOneID(id uint64) *DeviceDurationDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*DeviceDurationClient) ExecContext ¶
func (c *DeviceDurationClient) 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 (*DeviceDurationClient) Get ¶
func (c *DeviceDurationClient) Get(ctx context.Context, id uint64) (*DeviceDuration, error)
Get returns a DeviceDuration entity by its id.
func (*DeviceDurationClient) GetX ¶
func (c *DeviceDurationClient) GetX(ctx context.Context, id uint64) *DeviceDuration
GetX is like Get, but panics if an error occurs.
func (*DeviceDurationClient) Hooks ¶
func (c *DeviceDurationClient) Hooks() []Hook
Hooks returns the client hooks.
func (*DeviceDurationClient) Intercept ¶
func (c *DeviceDurationClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `deviceduration.Intercept(f(g(h())))`.
func (*DeviceDurationClient) Interceptors ¶
func (c *DeviceDurationClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*DeviceDurationClient) MapCreateBulk ¶
func (c *DeviceDurationClient) MapCreateBulk(slice any, setFunc func(*DeviceDurationCreate, int)) *DeviceDurationCreateBulk
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 (*DeviceDurationClient) Query ¶
func (c *DeviceDurationClient) Query() *DeviceDurationQuery
Query returns a query builder for DeviceDuration.
func (*DeviceDurationClient) QueryContext ¶
func (c *DeviceDurationClient) 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 (*DeviceDurationClient) Update ¶
func (c *DeviceDurationClient) Update() *DeviceDurationUpdate
Update returns an update builder for DeviceDuration.
func (*DeviceDurationClient) UpdateOne ¶
func (c *DeviceDurationClient) UpdateOne(dd *DeviceDuration) *DeviceDurationUpdateOne
UpdateOne returns an update builder for the given entity.
func (*DeviceDurationClient) UpdateOneID ¶
func (c *DeviceDurationClient) UpdateOneID(id uint64) *DeviceDurationUpdateOne
UpdateOneID returns an update builder for the given id.
func (*DeviceDurationClient) Use ¶
func (c *DeviceDurationClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `deviceduration.Hooks(f(g(h())))`.
type DeviceDurationCreate ¶
type DeviceDurationCreate struct { Table string // contains filtered or unexported fields }
DeviceDurationCreate is the builder for creating a DeviceDuration entity.
func (*DeviceDurationCreate) Exec ¶
func (ddc *DeviceDurationCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceDurationCreate) ExecContext ¶
func (c *DeviceDurationCreate) 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 (*DeviceDurationCreate) ExecX ¶
func (ddc *DeviceDurationCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceDurationCreate) Mutation ¶
func (ddc *DeviceDurationCreate) Mutation() *DeviceDurationMutation
Mutation returns the DeviceDurationMutation object of the builder.
func (*DeviceDurationCreate) OnConflict ¶
func (ddc *DeviceDurationCreate) OnConflict(opts ...sql.ConflictOption) *DeviceDurationUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.DeviceDuration.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.DeviceDurationUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*DeviceDurationCreate) OnConflictColumns ¶
func (ddc *DeviceDurationCreate) OnConflictColumns(columns ...string) *DeviceDurationUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.DeviceDuration.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*DeviceDurationCreate) QueryContext ¶
func (c *DeviceDurationCreate) 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 (*DeviceDurationCreate) Save ¶
func (ddc *DeviceDurationCreate) Save(ctx context.Context) (*DeviceDuration, error)
Save creates the DeviceDuration in the database.
func (*DeviceDurationCreate) SaveX ¶
func (ddc *DeviceDurationCreate) SaveX(ctx context.Context) *DeviceDuration
SaveX calls Save and panics if Save returns an error.
func (*DeviceDurationCreate) SetCreatedAt ¶
func (ddc *DeviceDurationCreate) SetCreatedAt(t time.Time) *DeviceDurationCreate
SetCreatedAt sets the "created_at" field.
func (*DeviceDurationCreate) SetDate ¶
func (ddc *DeviceDurationCreate) SetDate(s string) *DeviceDurationCreate
SetDate sets the "date" field.
func (*DeviceDurationCreate) SetDayJson ¶
func (ddc *DeviceDurationCreate) SetDayJson(s string) *DeviceDurationCreate
SetDayJson sets the "dayJson" field.
func (*DeviceDurationCreate) SetDeviceName ¶
func (ddc *DeviceDurationCreate) SetDeviceName(s string) *DeviceDurationCreate
SetDeviceName sets the "deviceName" field.
func (*DeviceDurationCreate) SetEbutton ¶
func (ddc *DeviceDurationCreate) SetEbutton(i int32) *DeviceDurationCreate
SetEbutton sets the "ebutton" field.
func (*DeviceDurationCreate) SetID ¶
func (ddc *DeviceDurationCreate) SetID(u uint64) *DeviceDurationCreate
SetID sets the "id" field.
func (*DeviceDurationCreate) SetIotID ¶
func (ddc *DeviceDurationCreate) SetIotID(s string) *DeviceDurationCreate
SetIotID sets the "iotID" field.
func (*DeviceDurationCreate) SetNillableCreatedAt ¶
func (ddc *DeviceDurationCreate) SetNillableCreatedAt(t *time.Time) *DeviceDurationCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*DeviceDurationCreate) SetNillableDate ¶
func (ddc *DeviceDurationCreate) SetNillableDate(s *string) *DeviceDurationCreate
SetNillableDate sets the "date" field if the given value is not nil.
func (*DeviceDurationCreate) SetNillableDayJson ¶
func (ddc *DeviceDurationCreate) SetNillableDayJson(s *string) *DeviceDurationCreate
SetNillableDayJson sets the "dayJson" field if the given value is not nil.
func (*DeviceDurationCreate) SetNillableEbutton ¶
func (ddc *DeviceDurationCreate) SetNillableEbutton(i *int32) *DeviceDurationCreate
SetNillableEbutton sets the "ebutton" field if the given value is not nil.
func (*DeviceDurationCreate) SetNillablePreparation ¶
func (ddc *DeviceDurationCreate) SetNillablePreparation(i *int32) *DeviceDurationCreate
SetNillablePreparation sets the "preparation" field if the given value is not nil.
func (*DeviceDurationCreate) SetNillableSort ¶
func (ddc *DeviceDurationCreate) SetNillableSort(u *uint32) *DeviceDurationCreate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DeviceDurationCreate) SetNillableStandBy ¶
func (ddc *DeviceDurationCreate) SetNillableStandBy(i *int32) *DeviceDurationCreate
SetNillableStandBy sets the "standBy" field if the given value is not nil.
func (*DeviceDurationCreate) SetNillableStatus ¶
func (ddc *DeviceDurationCreate) SetNillableStatus(u *uint8) *DeviceDurationCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DeviceDurationCreate) SetNillableUpdatedAt ¶
func (ddc *DeviceDurationCreate) SetNillableUpdatedAt(t *time.Time) *DeviceDurationCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*DeviceDurationCreate) SetNillableWaiting ¶
func (ddc *DeviceDurationCreate) SetNillableWaiting(i *int32) *DeviceDurationCreate
SetNillableWaiting sets the "waiting" field if the given value is not nil.
func (*DeviceDurationCreate) SetNillableWashing ¶
func (ddc *DeviceDurationCreate) SetNillableWashing(i *int32) *DeviceDurationCreate
SetNillableWashing sets the "washing" field if the given value is not nil.
func (*DeviceDurationCreate) SetNillableWashingCold ¶
func (ddc *DeviceDurationCreate) SetNillableWashingCold(i *int32) *DeviceDurationCreate
SetNillableWashingCold sets the "washingCold" field if the given value is not nil.
func (*DeviceDurationCreate) SetNotNilDate ¶
func (dd *DeviceDurationCreate) SetNotNilDate(value *string) *DeviceDurationCreate
set field if value's pointer is not nil.
func (*DeviceDurationCreate) SetNotNilDayJson ¶
func (dd *DeviceDurationCreate) SetNotNilDayJson(value *string) *DeviceDurationCreate
set field if value's pointer is not nil.
func (*DeviceDurationCreate) SetNotNilDeviceName ¶
func (dd *DeviceDurationCreate) SetNotNilDeviceName(value *string) *DeviceDurationCreate
set field if value's pointer is not nil.
func (*DeviceDurationCreate) SetNotNilEbutton ¶
func (dd *DeviceDurationCreate) SetNotNilEbutton(value *int32) *DeviceDurationCreate
set field if value's pointer is not nil.
func (*DeviceDurationCreate) SetNotNilIotID ¶
func (dd *DeviceDurationCreate) SetNotNilIotID(value *string) *DeviceDurationCreate
set field if value's pointer is not nil.
func (*DeviceDurationCreate) SetNotNilPreparation ¶
func (dd *DeviceDurationCreate) SetNotNilPreparation(value *int32) *DeviceDurationCreate
set field if value's pointer is not nil.
func (*DeviceDurationCreate) SetNotNilProductKey ¶
func (dd *DeviceDurationCreate) SetNotNilProductKey(value *string) *DeviceDurationCreate
set field if value's pointer is not nil.
func (*DeviceDurationCreate) SetNotNilSort ¶
func (dd *DeviceDurationCreate) SetNotNilSort(value *uint32) *DeviceDurationCreate
set field if value's pointer is not nil.
func (*DeviceDurationCreate) SetNotNilStandBy ¶
func (dd *DeviceDurationCreate) SetNotNilStandBy(value *int32) *DeviceDurationCreate
set field if value's pointer is not nil.
func (*DeviceDurationCreate) SetNotNilStatus ¶
func (dd *DeviceDurationCreate) SetNotNilStatus(value *uint8) *DeviceDurationCreate
set field if value's pointer is not nil.
func (*DeviceDurationCreate) SetNotNilUpdatedAt ¶
func (dd *DeviceDurationCreate) SetNotNilUpdatedAt(value *time.Time) *DeviceDurationCreate
set field if value's pointer is not nil.
func (*DeviceDurationCreate) SetNotNilWaiting ¶
func (dd *DeviceDurationCreate) SetNotNilWaiting(value *int32) *DeviceDurationCreate
set field if value's pointer is not nil.
func (*DeviceDurationCreate) SetNotNilWashing ¶
func (dd *DeviceDurationCreate) SetNotNilWashing(value *int32) *DeviceDurationCreate
set field if value's pointer is not nil.
func (*DeviceDurationCreate) SetNotNilWashingCold ¶
func (dd *DeviceDurationCreate) SetNotNilWashingCold(value *int32) *DeviceDurationCreate
set field if value's pointer is not nil.
func (*DeviceDurationCreate) SetPreparation ¶
func (ddc *DeviceDurationCreate) SetPreparation(i int32) *DeviceDurationCreate
SetPreparation sets the "preparation" field.
func (*DeviceDurationCreate) SetProductKey ¶
func (ddc *DeviceDurationCreate) SetProductKey(s string) *DeviceDurationCreate
SetProductKey sets the "productKey" field.
func (*DeviceDurationCreate) SetSort ¶
func (ddc *DeviceDurationCreate) SetSort(u uint32) *DeviceDurationCreate
SetSort sets the "sort" field.
func (*DeviceDurationCreate) SetStandBy ¶
func (ddc *DeviceDurationCreate) SetStandBy(i int32) *DeviceDurationCreate
SetStandBy sets the "standBy" field.
func (*DeviceDurationCreate) SetStatus ¶
func (ddc *DeviceDurationCreate) SetStatus(u uint8) *DeviceDurationCreate
SetStatus sets the "status" field.
func (*DeviceDurationCreate) SetUpdatedAt ¶
func (ddc *DeviceDurationCreate) SetUpdatedAt(t time.Time) *DeviceDurationCreate
SetUpdatedAt sets the "updated_at" field.
func (*DeviceDurationCreate) SetWaiting ¶
func (ddc *DeviceDurationCreate) SetWaiting(i int32) *DeviceDurationCreate
SetWaiting sets the "waiting" field.
func (*DeviceDurationCreate) SetWashing ¶
func (ddc *DeviceDurationCreate) SetWashing(i int32) *DeviceDurationCreate
SetWashing sets the "washing" field.
func (*DeviceDurationCreate) SetWashingCold ¶
func (ddc *DeviceDurationCreate) SetWashingCold(i int32) *DeviceDurationCreate
SetWashingCold sets the "washingCold" field.
func (*DeviceDurationCreate) TableName ¶
func (ddc *DeviceDurationCreate) TableName(s string) *DeviceDurationCreate
type DeviceDurationCreateBulk ¶
type DeviceDurationCreateBulk struct {
// contains filtered or unexported fields
}
DeviceDurationCreateBulk is the builder for creating many DeviceDuration entities in bulk.
func (*DeviceDurationCreateBulk) Exec ¶
func (ddcb *DeviceDurationCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceDurationCreateBulk) ExecContext ¶
func (c *DeviceDurationCreateBulk) 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 (*DeviceDurationCreateBulk) ExecX ¶
func (ddcb *DeviceDurationCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceDurationCreateBulk) OnConflict ¶
func (ddcb *DeviceDurationCreateBulk) OnConflict(opts ...sql.ConflictOption) *DeviceDurationUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.DeviceDuration.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.DeviceDurationUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*DeviceDurationCreateBulk) OnConflictColumns ¶
func (ddcb *DeviceDurationCreateBulk) OnConflictColumns(columns ...string) *DeviceDurationUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.DeviceDuration.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*DeviceDurationCreateBulk) QueryContext ¶
func (c *DeviceDurationCreateBulk) 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 (*DeviceDurationCreateBulk) Save ¶
func (ddcb *DeviceDurationCreateBulk) Save(ctx context.Context) ([]*DeviceDuration, error)
Save creates the DeviceDuration entities in the database.
func (*DeviceDurationCreateBulk) SaveX ¶
func (ddcb *DeviceDurationCreateBulk) SaveX(ctx context.Context) []*DeviceDuration
SaveX is like Save, but panics if an error occurs.
type DeviceDurationDelete ¶
type DeviceDurationDelete struct {
// contains filtered or unexported fields
}
DeviceDurationDelete is the builder for deleting a DeviceDuration entity.
func (*DeviceDurationDelete) Exec ¶
func (ddd *DeviceDurationDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*DeviceDurationDelete) ExecContext ¶
func (c *DeviceDurationDelete) 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 (*DeviceDurationDelete) ExecX ¶
func (ddd *DeviceDurationDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*DeviceDurationDelete) QueryContext ¶
func (c *DeviceDurationDelete) 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 (*DeviceDurationDelete) Where ¶
func (ddd *DeviceDurationDelete) Where(ps ...predicate.DeviceDuration) *DeviceDurationDelete
Where appends a list predicates to the DeviceDurationDelete builder.
type DeviceDurationDeleteOne ¶
type DeviceDurationDeleteOne struct {
// contains filtered or unexported fields
}
DeviceDurationDeleteOne is the builder for deleting a single DeviceDuration entity.
func (*DeviceDurationDeleteOne) Exec ¶
func (dddo *DeviceDurationDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*DeviceDurationDeleteOne) ExecX ¶
func (dddo *DeviceDurationDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceDurationDeleteOne) Where ¶
func (dddo *DeviceDurationDeleteOne) Where(ps ...predicate.DeviceDuration) *DeviceDurationDeleteOne
Where appends a list predicates to the DeviceDurationDelete builder.
type DeviceDurationElephant ¶
type DeviceDurationElephant struct { // ID of the ent. ID uint64 `json:"id,omitempty"` // Create Time | 创建日期 CreatedAt time.Time `json:"created_at,omitempty"` // Update Time | 修改日期 UpdatedAt time.Time `json:"updated_at,omitempty"` // Status 1: normal 2: ban | 状态 1 正常 2 禁用 Status uint8 `json:"status,omitempty"` // Sort Number | 排序编号 Sort uint32 `json:"sort,omitempty"` // Iot Id | 设备ID IotID string `json:"iotID,omitempty"` // Device Name | 设备名称 DeviceName string `json:"deviceName,omitempty"` // Product Key | 产品Key ProductKey string `json:"productKey,omitempty"` // Date | 日期 Date string `json:"date,omitempty"` // Connected | 已连接 Connected int32 `json:"connected,omitempty"` // running | 运行 Running int32 `json:"running,omitempty"` Ebutton int32 `json:"ebutton,omitempty"` // Day Json | 每日详情 DayJson string `json:"dayJson,omitempty"` // contains filtered or unexported fields }
DeviceDurationElephant is the model entity for the DeviceDurationElephant schema.
func (*DeviceDurationElephant) ExecContext ¶
func (c *DeviceDurationElephant) 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 (*DeviceDurationElephant) QueryContext ¶
func (c *DeviceDurationElephant) 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 (*DeviceDurationElephant) String ¶
func (dde *DeviceDurationElephant) String() string
String implements the fmt.Stringer.
func (*DeviceDurationElephant) Unwrap ¶
func (dde *DeviceDurationElephant) Unwrap() *DeviceDurationElephant
Unwrap unwraps the DeviceDurationElephant 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 (*DeviceDurationElephant) Update ¶
func (dde *DeviceDurationElephant) Update() *DeviceDurationElephantUpdateOne
Update returns a builder for updating this DeviceDurationElephant. Note that you need to call DeviceDurationElephant.Unwrap() before calling this method if this DeviceDurationElephant was returned from a transaction, and the transaction was committed or rolled back.
type DeviceDurationElephantClient ¶
type DeviceDurationElephantClient struct {
// contains filtered or unexported fields
}
DeviceDurationElephantClient is a client for the DeviceDurationElephant schema.
func NewDeviceDurationElephantClient ¶
func NewDeviceDurationElephantClient(c config) *DeviceDurationElephantClient
NewDeviceDurationElephantClient returns a client for the DeviceDurationElephant from the given config.
func (*DeviceDurationElephantClient) Create ¶
func (c *DeviceDurationElephantClient) Create() *DeviceDurationElephantCreate
Create returns a builder for creating a DeviceDurationElephant entity.
func (*DeviceDurationElephantClient) CreateBulk ¶
func (c *DeviceDurationElephantClient) CreateBulk(builders ...*DeviceDurationElephantCreate) *DeviceDurationElephantCreateBulk
CreateBulk returns a builder for creating a bulk of DeviceDurationElephant entities.
func (*DeviceDurationElephantClient) Delete ¶
func (c *DeviceDurationElephantClient) Delete() *DeviceDurationElephantDelete
Delete returns a delete builder for DeviceDurationElephant.
func (*DeviceDurationElephantClient) DeleteOne ¶
func (c *DeviceDurationElephantClient) DeleteOne(dde *DeviceDurationElephant) *DeviceDurationElephantDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*DeviceDurationElephantClient) DeleteOneID ¶
func (c *DeviceDurationElephantClient) DeleteOneID(id uint64) *DeviceDurationElephantDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*DeviceDurationElephantClient) ExecContext ¶
func (c *DeviceDurationElephantClient) 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 (*DeviceDurationElephantClient) Get ¶
func (c *DeviceDurationElephantClient) Get(ctx context.Context, id uint64) (*DeviceDurationElephant, error)
Get returns a DeviceDurationElephant entity by its id.
func (*DeviceDurationElephantClient) GetX ¶
func (c *DeviceDurationElephantClient) GetX(ctx context.Context, id uint64) *DeviceDurationElephant
GetX is like Get, but panics if an error occurs.
func (*DeviceDurationElephantClient) Hooks ¶
func (c *DeviceDurationElephantClient) Hooks() []Hook
Hooks returns the client hooks.
func (*DeviceDurationElephantClient) Intercept ¶
func (c *DeviceDurationElephantClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `devicedurationelephant.Intercept(f(g(h())))`.
func (*DeviceDurationElephantClient) Interceptors ¶
func (c *DeviceDurationElephantClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*DeviceDurationElephantClient) MapCreateBulk ¶
func (c *DeviceDurationElephantClient) MapCreateBulk(slice any, setFunc func(*DeviceDurationElephantCreate, int)) *DeviceDurationElephantCreateBulk
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 (*DeviceDurationElephantClient) Query ¶
func (c *DeviceDurationElephantClient) Query() *DeviceDurationElephantQuery
Query returns a query builder for DeviceDurationElephant.
func (*DeviceDurationElephantClient) QueryContext ¶
func (c *DeviceDurationElephantClient) 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 (*DeviceDurationElephantClient) Update ¶
func (c *DeviceDurationElephantClient) Update() *DeviceDurationElephantUpdate
Update returns an update builder for DeviceDurationElephant.
func (*DeviceDurationElephantClient) UpdateOne ¶
func (c *DeviceDurationElephantClient) UpdateOne(dde *DeviceDurationElephant) *DeviceDurationElephantUpdateOne
UpdateOne returns an update builder for the given entity.
func (*DeviceDurationElephantClient) UpdateOneID ¶
func (c *DeviceDurationElephantClient) UpdateOneID(id uint64) *DeviceDurationElephantUpdateOne
UpdateOneID returns an update builder for the given id.
func (*DeviceDurationElephantClient) Use ¶
func (c *DeviceDurationElephantClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `devicedurationelephant.Hooks(f(g(h())))`.
type DeviceDurationElephantCreate ¶
type DeviceDurationElephantCreate struct { Table string // contains filtered or unexported fields }
DeviceDurationElephantCreate is the builder for creating a DeviceDurationElephant entity.
func (*DeviceDurationElephantCreate) Exec ¶
func (ddec *DeviceDurationElephantCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceDurationElephantCreate) ExecContext ¶
func (c *DeviceDurationElephantCreate) 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 (*DeviceDurationElephantCreate) ExecX ¶
func (ddec *DeviceDurationElephantCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceDurationElephantCreate) Mutation ¶
func (ddec *DeviceDurationElephantCreate) Mutation() *DeviceDurationElephantMutation
Mutation returns the DeviceDurationElephantMutation object of the builder.
func (*DeviceDurationElephantCreate) OnConflict ¶
func (ddec *DeviceDurationElephantCreate) OnConflict(opts ...sql.ConflictOption) *DeviceDurationElephantUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.DeviceDurationElephant.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.DeviceDurationElephantUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*DeviceDurationElephantCreate) OnConflictColumns ¶
func (ddec *DeviceDurationElephantCreate) OnConflictColumns(columns ...string) *DeviceDurationElephantUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.DeviceDurationElephant.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*DeviceDurationElephantCreate) QueryContext ¶
func (c *DeviceDurationElephantCreate) 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 (*DeviceDurationElephantCreate) Save ¶
func (ddec *DeviceDurationElephantCreate) Save(ctx context.Context) (*DeviceDurationElephant, error)
Save creates the DeviceDurationElephant in the database.
func (*DeviceDurationElephantCreate) SaveX ¶
func (ddec *DeviceDurationElephantCreate) SaveX(ctx context.Context) *DeviceDurationElephant
SaveX calls Save and panics if Save returns an error.
func (*DeviceDurationElephantCreate) SetConnected ¶
func (ddec *DeviceDurationElephantCreate) SetConnected(i int32) *DeviceDurationElephantCreate
SetConnected sets the "connected" field.
func (*DeviceDurationElephantCreate) SetCreatedAt ¶
func (ddec *DeviceDurationElephantCreate) SetCreatedAt(t time.Time) *DeviceDurationElephantCreate
SetCreatedAt sets the "created_at" field.
func (*DeviceDurationElephantCreate) SetDate ¶
func (ddec *DeviceDurationElephantCreate) SetDate(s string) *DeviceDurationElephantCreate
SetDate sets the "date" field.
func (*DeviceDurationElephantCreate) SetDayJson ¶
func (ddec *DeviceDurationElephantCreate) SetDayJson(s string) *DeviceDurationElephantCreate
SetDayJson sets the "dayJson" field.
func (*DeviceDurationElephantCreate) SetDeviceName ¶
func (ddec *DeviceDurationElephantCreate) SetDeviceName(s string) *DeviceDurationElephantCreate
SetDeviceName sets the "deviceName" field.
func (*DeviceDurationElephantCreate) SetEbutton ¶
func (ddec *DeviceDurationElephantCreate) SetEbutton(i int32) *DeviceDurationElephantCreate
SetEbutton sets the "ebutton" field.
func (*DeviceDurationElephantCreate) SetID ¶
func (ddec *DeviceDurationElephantCreate) SetID(u uint64) *DeviceDurationElephantCreate
SetID sets the "id" field.
func (*DeviceDurationElephantCreate) SetIotID ¶
func (ddec *DeviceDurationElephantCreate) SetIotID(s string) *DeviceDurationElephantCreate
SetIotID sets the "iotID" field.
func (*DeviceDurationElephantCreate) SetNillableConnected ¶
func (ddec *DeviceDurationElephantCreate) SetNillableConnected(i *int32) *DeviceDurationElephantCreate
SetNillableConnected sets the "connected" field if the given value is not nil.
func (*DeviceDurationElephantCreate) SetNillableCreatedAt ¶
func (ddec *DeviceDurationElephantCreate) SetNillableCreatedAt(t *time.Time) *DeviceDurationElephantCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*DeviceDurationElephantCreate) SetNillableDate ¶
func (ddec *DeviceDurationElephantCreate) SetNillableDate(s *string) *DeviceDurationElephantCreate
SetNillableDate sets the "date" field if the given value is not nil.
func (*DeviceDurationElephantCreate) SetNillableDayJson ¶
func (ddec *DeviceDurationElephantCreate) SetNillableDayJson(s *string) *DeviceDurationElephantCreate
SetNillableDayJson sets the "dayJson" field if the given value is not nil.
func (*DeviceDurationElephantCreate) SetNillableEbutton ¶
func (ddec *DeviceDurationElephantCreate) SetNillableEbutton(i *int32) *DeviceDurationElephantCreate
SetNillableEbutton sets the "ebutton" field if the given value is not nil.
func (*DeviceDurationElephantCreate) SetNillableRunning ¶
func (ddec *DeviceDurationElephantCreate) SetNillableRunning(i *int32) *DeviceDurationElephantCreate
SetNillableRunning sets the "running" field if the given value is not nil.
func (*DeviceDurationElephantCreate) SetNillableSort ¶
func (ddec *DeviceDurationElephantCreate) SetNillableSort(u *uint32) *DeviceDurationElephantCreate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DeviceDurationElephantCreate) SetNillableStatus ¶
func (ddec *DeviceDurationElephantCreate) SetNillableStatus(u *uint8) *DeviceDurationElephantCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DeviceDurationElephantCreate) SetNillableUpdatedAt ¶
func (ddec *DeviceDurationElephantCreate) SetNillableUpdatedAt(t *time.Time) *DeviceDurationElephantCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*DeviceDurationElephantCreate) SetNotNilConnected ¶
func (dde *DeviceDurationElephantCreate) SetNotNilConnected(value *int32) *DeviceDurationElephantCreate
set field if value's pointer is not nil.
func (*DeviceDurationElephantCreate) SetNotNilDate ¶
func (dde *DeviceDurationElephantCreate) SetNotNilDate(value *string) *DeviceDurationElephantCreate
set field if value's pointer is not nil.
func (*DeviceDurationElephantCreate) SetNotNilDayJson ¶
func (dde *DeviceDurationElephantCreate) SetNotNilDayJson(value *string) *DeviceDurationElephantCreate
set field if value's pointer is not nil.
func (*DeviceDurationElephantCreate) SetNotNilDeviceName ¶
func (dde *DeviceDurationElephantCreate) SetNotNilDeviceName(value *string) *DeviceDurationElephantCreate
set field if value's pointer is not nil.
func (*DeviceDurationElephantCreate) SetNotNilEbutton ¶
func (dde *DeviceDurationElephantCreate) SetNotNilEbutton(value *int32) *DeviceDurationElephantCreate
set field if value's pointer is not nil.
func (*DeviceDurationElephantCreate) SetNotNilIotID ¶
func (dde *DeviceDurationElephantCreate) SetNotNilIotID(value *string) *DeviceDurationElephantCreate
set field if value's pointer is not nil.
func (*DeviceDurationElephantCreate) SetNotNilProductKey ¶
func (dde *DeviceDurationElephantCreate) SetNotNilProductKey(value *string) *DeviceDurationElephantCreate
set field if value's pointer is not nil.
func (*DeviceDurationElephantCreate) SetNotNilRunning ¶
func (dde *DeviceDurationElephantCreate) SetNotNilRunning(value *int32) *DeviceDurationElephantCreate
set field if value's pointer is not nil.
func (*DeviceDurationElephantCreate) SetNotNilSort ¶
func (dde *DeviceDurationElephantCreate) SetNotNilSort(value *uint32) *DeviceDurationElephantCreate
set field if value's pointer is not nil.
func (*DeviceDurationElephantCreate) SetNotNilStatus ¶
func (dde *DeviceDurationElephantCreate) SetNotNilStatus(value *uint8) *DeviceDurationElephantCreate
set field if value's pointer is not nil.
func (*DeviceDurationElephantCreate) SetNotNilUpdatedAt ¶
func (dde *DeviceDurationElephantCreate) SetNotNilUpdatedAt(value *time.Time) *DeviceDurationElephantCreate
set field if value's pointer is not nil.
func (*DeviceDurationElephantCreate) SetProductKey ¶
func (ddec *DeviceDurationElephantCreate) SetProductKey(s string) *DeviceDurationElephantCreate
SetProductKey sets the "productKey" field.
func (*DeviceDurationElephantCreate) SetRunning ¶
func (ddec *DeviceDurationElephantCreate) SetRunning(i int32) *DeviceDurationElephantCreate
SetRunning sets the "running" field.
func (*DeviceDurationElephantCreate) SetSort ¶
func (ddec *DeviceDurationElephantCreate) SetSort(u uint32) *DeviceDurationElephantCreate
SetSort sets the "sort" field.
func (*DeviceDurationElephantCreate) SetStatus ¶
func (ddec *DeviceDurationElephantCreate) SetStatus(u uint8) *DeviceDurationElephantCreate
SetStatus sets the "status" field.
func (*DeviceDurationElephantCreate) SetUpdatedAt ¶
func (ddec *DeviceDurationElephantCreate) SetUpdatedAt(t time.Time) *DeviceDurationElephantCreate
SetUpdatedAt sets the "updated_at" field.
func (*DeviceDurationElephantCreate) TableName ¶
func (ddec *DeviceDurationElephantCreate) TableName(s string) *DeviceDurationElephantCreate
type DeviceDurationElephantCreateBulk ¶
type DeviceDurationElephantCreateBulk struct {
// contains filtered or unexported fields
}
DeviceDurationElephantCreateBulk is the builder for creating many DeviceDurationElephant entities in bulk.
func (*DeviceDurationElephantCreateBulk) Exec ¶
func (ddecb *DeviceDurationElephantCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceDurationElephantCreateBulk) ExecContext ¶
func (c *DeviceDurationElephantCreateBulk) 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 (*DeviceDurationElephantCreateBulk) ExecX ¶
func (ddecb *DeviceDurationElephantCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceDurationElephantCreateBulk) OnConflict ¶
func (ddecb *DeviceDurationElephantCreateBulk) OnConflict(opts ...sql.ConflictOption) *DeviceDurationElephantUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.DeviceDurationElephant.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.DeviceDurationElephantUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*DeviceDurationElephantCreateBulk) OnConflictColumns ¶
func (ddecb *DeviceDurationElephantCreateBulk) OnConflictColumns(columns ...string) *DeviceDurationElephantUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.DeviceDurationElephant.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*DeviceDurationElephantCreateBulk) QueryContext ¶
func (c *DeviceDurationElephantCreateBulk) 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 (*DeviceDurationElephantCreateBulk) Save ¶
func (ddecb *DeviceDurationElephantCreateBulk) Save(ctx context.Context) ([]*DeviceDurationElephant, error)
Save creates the DeviceDurationElephant entities in the database.
func (*DeviceDurationElephantCreateBulk) SaveX ¶
func (ddecb *DeviceDurationElephantCreateBulk) SaveX(ctx context.Context) []*DeviceDurationElephant
SaveX is like Save, but panics if an error occurs.
type DeviceDurationElephantDelete ¶
type DeviceDurationElephantDelete struct {
// contains filtered or unexported fields
}
DeviceDurationElephantDelete is the builder for deleting a DeviceDurationElephant entity.
func (*DeviceDurationElephantDelete) Exec ¶
func (dded *DeviceDurationElephantDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*DeviceDurationElephantDelete) ExecContext ¶
func (c *DeviceDurationElephantDelete) 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 (*DeviceDurationElephantDelete) ExecX ¶
func (dded *DeviceDurationElephantDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*DeviceDurationElephantDelete) QueryContext ¶
func (c *DeviceDurationElephantDelete) 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 (*DeviceDurationElephantDelete) Where ¶
func (dded *DeviceDurationElephantDelete) Where(ps ...predicate.DeviceDurationElephant) *DeviceDurationElephantDelete
Where appends a list predicates to the DeviceDurationElephantDelete builder.
type DeviceDurationElephantDeleteOne ¶
type DeviceDurationElephantDeleteOne struct {
// contains filtered or unexported fields
}
DeviceDurationElephantDeleteOne is the builder for deleting a single DeviceDurationElephant entity.
func (*DeviceDurationElephantDeleteOne) Exec ¶
func (ddedo *DeviceDurationElephantDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*DeviceDurationElephantDeleteOne) ExecX ¶
func (ddedo *DeviceDurationElephantDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceDurationElephantDeleteOne) Where ¶
func (ddedo *DeviceDurationElephantDeleteOne) Where(ps ...predicate.DeviceDurationElephant) *DeviceDurationElephantDeleteOne
Where appends a list predicates to the DeviceDurationElephantDelete builder.
type DeviceDurationElephantGroupBy ¶
type DeviceDurationElephantGroupBy struct {
// contains filtered or unexported fields
}
DeviceDurationElephantGroupBy is the group-by builder for DeviceDurationElephant entities.
func (*DeviceDurationElephantGroupBy) Aggregate ¶
func (ddegb *DeviceDurationElephantGroupBy) Aggregate(fns ...AggregateFunc) *DeviceDurationElephantGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*DeviceDurationElephantGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DeviceDurationElephantGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*DeviceDurationElephantGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DeviceDurationElephantGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*DeviceDurationElephantGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DeviceDurationElephantGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*DeviceDurationElephantGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DeviceDurationElephantGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*DeviceDurationElephantGroupBy) Scan ¶
func (ddegb *DeviceDurationElephantGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*DeviceDurationElephantGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*DeviceDurationElephantGroupBy) StringX ¶
StringX is like String, but panics if an error occurs.
type DeviceDurationElephantMutation ¶
type DeviceDurationElephantMutation struct {
// contains filtered or unexported fields
}
DeviceDurationElephantMutation represents an operation that mutates the DeviceDurationElephant nodes in the graph.
func (*DeviceDurationElephantMutation) AddConnected ¶
func (m *DeviceDurationElephantMutation) AddConnected(i int32)
AddConnected adds i to the "connected" field.
func (*DeviceDurationElephantMutation) AddEbutton ¶
func (m *DeviceDurationElephantMutation) AddEbutton(i int32)
AddEbutton adds i to the "ebutton" field.
func (*DeviceDurationElephantMutation) AddField ¶
func (m *DeviceDurationElephantMutation) 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 (*DeviceDurationElephantMutation) AddRunning ¶
func (m *DeviceDurationElephantMutation) AddRunning(i int32)
AddRunning adds i to the "running" field.
func (*DeviceDurationElephantMutation) AddSort ¶
func (m *DeviceDurationElephantMutation) AddSort(u int32)
AddSort adds u to the "sort" field.
func (*DeviceDurationElephantMutation) AddStatus ¶
func (m *DeviceDurationElephantMutation) AddStatus(u int8)
AddStatus adds u to the "status" field.
func (*DeviceDurationElephantMutation) AddedConnected ¶
func (m *DeviceDurationElephantMutation) AddedConnected() (r int32, exists bool)
AddedConnected returns the value that was added to the "connected" field in this mutation.
func (*DeviceDurationElephantMutation) AddedEbutton ¶
func (m *DeviceDurationElephantMutation) AddedEbutton() (r int32, exists bool)
AddedEbutton returns the value that was added to the "ebutton" field in this mutation.
func (*DeviceDurationElephantMutation) AddedEdges ¶
func (m *DeviceDurationElephantMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*DeviceDurationElephantMutation) AddedField ¶
func (m *DeviceDurationElephantMutation) 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 (*DeviceDurationElephantMutation) AddedFields ¶
func (m *DeviceDurationElephantMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*DeviceDurationElephantMutation) AddedIDs ¶
func (m *DeviceDurationElephantMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*DeviceDurationElephantMutation) AddedRunning ¶
func (m *DeviceDurationElephantMutation) AddedRunning() (r int32, exists bool)
AddedRunning returns the value that was added to the "running" field in this mutation.
func (*DeviceDurationElephantMutation) AddedSort ¶
func (m *DeviceDurationElephantMutation) AddedSort() (r int32, exists bool)
AddedSort returns the value that was added to the "sort" field in this mutation.
func (*DeviceDurationElephantMutation) AddedStatus ¶
func (m *DeviceDurationElephantMutation) AddedStatus() (r int8, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*DeviceDurationElephantMutation) ClearConnected ¶
func (m *DeviceDurationElephantMutation) ClearConnected()
ClearConnected clears the value of the "connected" field.
func (*DeviceDurationElephantMutation) ClearDate ¶
func (m *DeviceDurationElephantMutation) ClearDate()
ClearDate clears the value of the "date" field.
func (*DeviceDurationElephantMutation) ClearDayJson ¶
func (m *DeviceDurationElephantMutation) ClearDayJson()
ClearDayJson clears the value of the "dayJson" field.
func (*DeviceDurationElephantMutation) ClearEbutton ¶
func (m *DeviceDurationElephantMutation) ClearEbutton()
ClearEbutton clears the value of the "ebutton" field.
func (*DeviceDurationElephantMutation) ClearEdge ¶
func (m *DeviceDurationElephantMutation) 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 (*DeviceDurationElephantMutation) ClearField ¶
func (m *DeviceDurationElephantMutation) 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 (*DeviceDurationElephantMutation) ClearRunning ¶
func (m *DeviceDurationElephantMutation) ClearRunning()
ClearRunning clears the value of the "running" field.
func (*DeviceDurationElephantMutation) ClearStatus ¶
func (m *DeviceDurationElephantMutation) ClearStatus()
ClearStatus clears the value of the "status" field.
func (*DeviceDurationElephantMutation) ClearedEdges ¶
func (m *DeviceDurationElephantMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*DeviceDurationElephantMutation) ClearedFields ¶
func (m *DeviceDurationElephantMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (DeviceDurationElephantMutation) Client ¶
func (m DeviceDurationElephantMutation) 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 (*DeviceDurationElephantMutation) Connected ¶
func (m *DeviceDurationElephantMutation) Connected() (r int32, exists bool)
Connected returns the value of the "connected" field in the mutation.
func (*DeviceDurationElephantMutation) ConnectedCleared ¶
func (m *DeviceDurationElephantMutation) ConnectedCleared() bool
ConnectedCleared returns if the "connected" field was cleared in this mutation.
func (*DeviceDurationElephantMutation) CreatedAt ¶
func (m *DeviceDurationElephantMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*DeviceDurationElephantMutation) Date ¶
func (m *DeviceDurationElephantMutation) Date() (r string, exists bool)
Date returns the value of the "date" field in the mutation.
func (*DeviceDurationElephantMutation) DateCleared ¶
func (m *DeviceDurationElephantMutation) DateCleared() bool
DateCleared returns if the "date" field was cleared in this mutation.
func (*DeviceDurationElephantMutation) DayJson ¶
func (m *DeviceDurationElephantMutation) DayJson() (r string, exists bool)
DayJson returns the value of the "dayJson" field in the mutation.
func (*DeviceDurationElephantMutation) DayJsonCleared ¶
func (m *DeviceDurationElephantMutation) DayJsonCleared() bool
DayJsonCleared returns if the "dayJson" field was cleared in this mutation.
func (*DeviceDurationElephantMutation) DeviceName ¶
func (m *DeviceDurationElephantMutation) DeviceName() (r string, exists bool)
DeviceName returns the value of the "deviceName" field in the mutation.
func (*DeviceDurationElephantMutation) Ebutton ¶
func (m *DeviceDurationElephantMutation) Ebutton() (r int32, exists bool)
Ebutton returns the value of the "ebutton" field in the mutation.
func (*DeviceDurationElephantMutation) EbuttonCleared ¶
func (m *DeviceDurationElephantMutation) EbuttonCleared() bool
EbuttonCleared returns if the "ebutton" field was cleared in this mutation.
func (*DeviceDurationElephantMutation) EdgeCleared ¶
func (m *DeviceDurationElephantMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*DeviceDurationElephantMutation) ExecContext ¶
func (c *DeviceDurationElephantMutation) 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 (*DeviceDurationElephantMutation) Field ¶
func (m *DeviceDurationElephantMutation) 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 (*DeviceDurationElephantMutation) FieldCleared ¶
func (m *DeviceDurationElephantMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*DeviceDurationElephantMutation) Fields ¶
func (m *DeviceDurationElephantMutation) 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 (*DeviceDurationElephantMutation) ID ¶
func (m *DeviceDurationElephantMutation) ID() (id uint64, 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 (*DeviceDurationElephantMutation) IDs ¶
func (m *DeviceDurationElephantMutation) IDs(ctx context.Context) ([]uint64, 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 (*DeviceDurationElephantMutation) IotID ¶
func (m *DeviceDurationElephantMutation) IotID() (r string, exists bool)
IotID returns the value of the "iotID" field in the mutation.
func (*DeviceDurationElephantMutation) OldConnected ¶
func (m *DeviceDurationElephantMutation) OldConnected(ctx context.Context) (v int32, err error)
OldConnected returns the old "connected" field's value of the DeviceDurationElephant entity. If the DeviceDurationElephant 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 (*DeviceDurationElephantMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the DeviceDurationElephant entity. If the DeviceDurationElephant 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 (*DeviceDurationElephantMutation) OldDate ¶
func (m *DeviceDurationElephantMutation) OldDate(ctx context.Context) (v string, err error)
OldDate returns the old "date" field's value of the DeviceDurationElephant entity. If the DeviceDurationElephant 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 (*DeviceDurationElephantMutation) OldDayJson ¶
func (m *DeviceDurationElephantMutation) OldDayJson(ctx context.Context) (v string, err error)
OldDayJson returns the old "dayJson" field's value of the DeviceDurationElephant entity. If the DeviceDurationElephant 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 (*DeviceDurationElephantMutation) OldDeviceName ¶
func (m *DeviceDurationElephantMutation) OldDeviceName(ctx context.Context) (v string, err error)
OldDeviceName returns the old "deviceName" field's value of the DeviceDurationElephant entity. If the DeviceDurationElephant 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 (*DeviceDurationElephantMutation) OldEbutton ¶
func (m *DeviceDurationElephantMutation) OldEbutton(ctx context.Context) (v int32, err error)
OldEbutton returns the old "ebutton" field's value of the DeviceDurationElephant entity. If the DeviceDurationElephant 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 (*DeviceDurationElephantMutation) OldField ¶
func (m *DeviceDurationElephantMutation) 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 (*DeviceDurationElephantMutation) OldIotID ¶
func (m *DeviceDurationElephantMutation) OldIotID(ctx context.Context) (v string, err error)
OldIotID returns the old "iotID" field's value of the DeviceDurationElephant entity. If the DeviceDurationElephant 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 (*DeviceDurationElephantMutation) OldProductKey ¶
func (m *DeviceDurationElephantMutation) OldProductKey(ctx context.Context) (v string, err error)
OldProductKey returns the old "productKey" field's value of the DeviceDurationElephant entity. If the DeviceDurationElephant 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 (*DeviceDurationElephantMutation) OldRunning ¶
func (m *DeviceDurationElephantMutation) OldRunning(ctx context.Context) (v int32, err error)
OldRunning returns the old "running" field's value of the DeviceDurationElephant entity. If the DeviceDurationElephant 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 (*DeviceDurationElephantMutation) OldSort ¶
func (m *DeviceDurationElephantMutation) OldSort(ctx context.Context) (v uint32, err error)
OldSort returns the old "sort" field's value of the DeviceDurationElephant entity. If the DeviceDurationElephant 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 (*DeviceDurationElephantMutation) OldStatus ¶
func (m *DeviceDurationElephantMutation) OldStatus(ctx context.Context) (v uint8, err error)
OldStatus returns the old "status" field's value of the DeviceDurationElephant entity. If the DeviceDurationElephant 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 (*DeviceDurationElephantMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the DeviceDurationElephant entity. If the DeviceDurationElephant 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 (*DeviceDurationElephantMutation) Op ¶
func (m *DeviceDurationElephantMutation) Op() Op
Op returns the operation name.
func (*DeviceDurationElephantMutation) ProductKey ¶
func (m *DeviceDurationElephantMutation) ProductKey() (r string, exists bool)
ProductKey returns the value of the "productKey" field in the mutation.
func (*DeviceDurationElephantMutation) QueryContext ¶
func (c *DeviceDurationElephantMutation) 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 (*DeviceDurationElephantMutation) RemovedEdges ¶
func (m *DeviceDurationElephantMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*DeviceDurationElephantMutation) RemovedIDs ¶
func (m *DeviceDurationElephantMutation) 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 (*DeviceDurationElephantMutation) ResetConnected ¶
func (m *DeviceDurationElephantMutation) ResetConnected()
ResetConnected resets all changes to the "connected" field.
func (*DeviceDurationElephantMutation) ResetCreatedAt ¶
func (m *DeviceDurationElephantMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*DeviceDurationElephantMutation) ResetDate ¶
func (m *DeviceDurationElephantMutation) ResetDate()
ResetDate resets all changes to the "date" field.
func (*DeviceDurationElephantMutation) ResetDayJson ¶
func (m *DeviceDurationElephantMutation) ResetDayJson()
ResetDayJson resets all changes to the "dayJson" field.
func (*DeviceDurationElephantMutation) ResetDeviceName ¶
func (m *DeviceDurationElephantMutation) ResetDeviceName()
ResetDeviceName resets all changes to the "deviceName" field.
func (*DeviceDurationElephantMutation) ResetEbutton ¶
func (m *DeviceDurationElephantMutation) ResetEbutton()
ResetEbutton resets all changes to the "ebutton" field.
func (*DeviceDurationElephantMutation) ResetEdge ¶
func (m *DeviceDurationElephantMutation) 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 (*DeviceDurationElephantMutation) ResetField ¶
func (m *DeviceDurationElephantMutation) 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 (*DeviceDurationElephantMutation) ResetIotID ¶
func (m *DeviceDurationElephantMutation) ResetIotID()
ResetIotID resets all changes to the "iotID" field.
func (*DeviceDurationElephantMutation) ResetProductKey ¶
func (m *DeviceDurationElephantMutation) ResetProductKey()
ResetProductKey resets all changes to the "productKey" field.
func (*DeviceDurationElephantMutation) ResetRunning ¶
func (m *DeviceDurationElephantMutation) ResetRunning()
ResetRunning resets all changes to the "running" field.
func (*DeviceDurationElephantMutation) ResetSort ¶
func (m *DeviceDurationElephantMutation) ResetSort()
ResetSort resets all changes to the "sort" field.
func (*DeviceDurationElephantMutation) ResetStatus ¶
func (m *DeviceDurationElephantMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*DeviceDurationElephantMutation) ResetUpdatedAt ¶
func (m *DeviceDurationElephantMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*DeviceDurationElephantMutation) Running ¶
func (m *DeviceDurationElephantMutation) Running() (r int32, exists bool)
Running returns the value of the "running" field in the mutation.
func (*DeviceDurationElephantMutation) RunningCleared ¶
func (m *DeviceDurationElephantMutation) RunningCleared() bool
RunningCleared returns if the "running" field was cleared in this mutation.
func (*DeviceDurationElephantMutation) SetConnected ¶
func (m *DeviceDurationElephantMutation) SetConnected(i int32)
SetConnected sets the "connected" field.
func (*DeviceDurationElephantMutation) SetCreatedAt ¶
func (m *DeviceDurationElephantMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*DeviceDurationElephantMutation) SetDate ¶
func (m *DeviceDurationElephantMutation) SetDate(s string)
SetDate sets the "date" field.
func (*DeviceDurationElephantMutation) SetDayJson ¶
func (m *DeviceDurationElephantMutation) SetDayJson(s string)
SetDayJson sets the "dayJson" field.
func (*DeviceDurationElephantMutation) SetDeviceName ¶
func (m *DeviceDurationElephantMutation) SetDeviceName(s string)
SetDeviceName sets the "deviceName" field.
func (*DeviceDurationElephantMutation) SetEbutton ¶
func (m *DeviceDurationElephantMutation) SetEbutton(i int32)
SetEbutton sets the "ebutton" field.
func (*DeviceDurationElephantMutation) SetField ¶
func (m *DeviceDurationElephantMutation) 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 (*DeviceDurationElephantMutation) SetID ¶
func (m *DeviceDurationElephantMutation) SetID(id uint64)
SetID sets the value of the id field. Note that this operation is only accepted on creation of DeviceDurationElephant entities.
func (*DeviceDurationElephantMutation) SetIotID ¶
func (m *DeviceDurationElephantMutation) SetIotID(s string)
SetIotID sets the "iotID" field.
func (*DeviceDurationElephantMutation) SetOp ¶
func (m *DeviceDurationElephantMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*DeviceDurationElephantMutation) SetProductKey ¶
func (m *DeviceDurationElephantMutation) SetProductKey(s string)
SetProductKey sets the "productKey" field.
func (*DeviceDurationElephantMutation) SetRunning ¶
func (m *DeviceDurationElephantMutation) SetRunning(i int32)
SetRunning sets the "running" field.
func (*DeviceDurationElephantMutation) SetSort ¶
func (m *DeviceDurationElephantMutation) SetSort(u uint32)
SetSort sets the "sort" field.
func (*DeviceDurationElephantMutation) SetStatus ¶
func (m *DeviceDurationElephantMutation) SetStatus(u uint8)
SetStatus sets the "status" field.
func (*DeviceDurationElephantMutation) SetUpdatedAt ¶
func (m *DeviceDurationElephantMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*DeviceDurationElephantMutation) Sort ¶
func (m *DeviceDurationElephantMutation) Sort() (r uint32, exists bool)
Sort returns the value of the "sort" field in the mutation.
func (*DeviceDurationElephantMutation) Status ¶
func (m *DeviceDurationElephantMutation) Status() (r uint8, exists bool)
Status returns the value of the "status" field in the mutation.
func (*DeviceDurationElephantMutation) StatusCleared ¶
func (m *DeviceDurationElephantMutation) StatusCleared() bool
StatusCleared returns if the "status" field was cleared in this mutation.
func (DeviceDurationElephantMutation) Tx ¶
func (m DeviceDurationElephantMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*DeviceDurationElephantMutation) Type ¶
func (m *DeviceDurationElephantMutation) Type() string
Type returns the node type of this mutation (DeviceDurationElephant).
func (*DeviceDurationElephantMutation) UpdatedAt ¶
func (m *DeviceDurationElephantMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*DeviceDurationElephantMutation) Where ¶
func (m *DeviceDurationElephantMutation) Where(ps ...predicate.DeviceDurationElephant)
Where appends a list predicates to the DeviceDurationElephantMutation builder.
func (*DeviceDurationElephantMutation) WhereP ¶
func (m *DeviceDurationElephantMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the DeviceDurationElephantMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type DeviceDurationElephantPageList ¶
type DeviceDurationElephantPageList struct { List []*DeviceDurationElephant `json:"list"` PageDetails *PageDetails `json:"pageDetails"` }
DeviceDurationElephantPageList is DeviceDurationElephant PageList result.
type DeviceDurationElephantPager ¶
type DeviceDurationElephantPager struct { Order devicedurationelephant.OrderOption Filter func(*DeviceDurationElephantQuery) (*DeviceDurationElephantQuery, error) }
func (*DeviceDurationElephantPager) ApplyFilter ¶
func (p *DeviceDurationElephantPager) ApplyFilter(query *DeviceDurationElephantQuery) (*DeviceDurationElephantQuery, error)
type DeviceDurationElephantPaginateOption ¶
type DeviceDurationElephantPaginateOption func(*DeviceDurationElephantPager)
DeviceDurationElephantPaginateOption enables pagination customization.
type DeviceDurationElephantQuery ¶
type DeviceDurationElephantQuery struct {
// contains filtered or unexported fields
}
DeviceDurationElephantQuery is the builder for querying DeviceDurationElephant entities.
func (*DeviceDurationElephantQuery) Aggregate ¶
func (ddeq *DeviceDurationElephantQuery) Aggregate(fns ...AggregateFunc) *DeviceDurationElephantSelect
Aggregate returns a DeviceDurationElephantSelect configured with the given aggregations.
func (*DeviceDurationElephantQuery) All ¶
func (ddeq *DeviceDurationElephantQuery) All(ctx context.Context) ([]*DeviceDurationElephant, error)
All executes the query and returns a list of DeviceDurationElephants.
func (*DeviceDurationElephantQuery) AllX ¶
func (ddeq *DeviceDurationElephantQuery) AllX(ctx context.Context) []*DeviceDurationElephant
AllX is like All, but panics if an error occurs.
func (*DeviceDurationElephantQuery) Clone ¶
func (ddeq *DeviceDurationElephantQuery) Clone() *DeviceDurationElephantQuery
Clone returns a duplicate of the DeviceDurationElephantQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*DeviceDurationElephantQuery) Count ¶
func (ddeq *DeviceDurationElephantQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*DeviceDurationElephantQuery) CountX ¶
func (ddeq *DeviceDurationElephantQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*DeviceDurationElephantQuery) ExecContext ¶
func (c *DeviceDurationElephantQuery) 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 (*DeviceDurationElephantQuery) Exist ¶
func (ddeq *DeviceDurationElephantQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*DeviceDurationElephantQuery) ExistX ¶
func (ddeq *DeviceDurationElephantQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*DeviceDurationElephantQuery) First ¶
func (ddeq *DeviceDurationElephantQuery) First(ctx context.Context) (*DeviceDurationElephant, error)
First returns the first DeviceDurationElephant entity from the query. Returns a *NotFoundError when no DeviceDurationElephant was found.
func (*DeviceDurationElephantQuery) FirstID ¶
func (ddeq *DeviceDurationElephantQuery) FirstID(ctx context.Context) (id uint64, err error)
FirstID returns the first DeviceDurationElephant ID from the query. Returns a *NotFoundError when no DeviceDurationElephant ID was found.
func (*DeviceDurationElephantQuery) FirstIDX ¶
func (ddeq *DeviceDurationElephantQuery) FirstIDX(ctx context.Context) uint64
FirstIDX is like FirstID, but panics if an error occurs.
func (*DeviceDurationElephantQuery) FirstX ¶
func (ddeq *DeviceDurationElephantQuery) FirstX(ctx context.Context) *DeviceDurationElephant
FirstX is like First, but panics if an error occurs.
func (*DeviceDurationElephantQuery) GroupBy ¶
func (ddeq *DeviceDurationElephantQuery) GroupBy(field string, fields ...string) *DeviceDurationElephantGroupBy
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.DeviceDurationElephant.Query(). GroupBy(devicedurationelephant.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*DeviceDurationElephantQuery) IDs ¶
func (ddeq *DeviceDurationElephantQuery) IDs(ctx context.Context) (ids []uint64, err error)
IDs executes the query and returns a list of DeviceDurationElephant IDs.
func (*DeviceDurationElephantQuery) IDsX ¶
func (ddeq *DeviceDurationElephantQuery) IDsX(ctx context.Context) []uint64
IDsX is like IDs, but panics if an error occurs.
func (*DeviceDurationElephantQuery) Limit ¶
func (ddeq *DeviceDurationElephantQuery) Limit(limit int) *DeviceDurationElephantQuery
Limit the number of records to be returned by this query.
func (*DeviceDurationElephantQuery) Modify ¶
func (ddeq *DeviceDurationElephantQuery) Modify(modifiers ...func(s *sql.Selector)) *DeviceDurationElephantSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*DeviceDurationElephantQuery) Offset ¶
func (ddeq *DeviceDurationElephantQuery) Offset(offset int) *DeviceDurationElephantQuery
Offset to start from.
func (*DeviceDurationElephantQuery) Only ¶
func (ddeq *DeviceDurationElephantQuery) Only(ctx context.Context) (*DeviceDurationElephant, error)
Only returns a single DeviceDurationElephant entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one DeviceDurationElephant entity is found. Returns a *NotFoundError when no DeviceDurationElephant entities are found.
func (*DeviceDurationElephantQuery) OnlyID ¶
func (ddeq *DeviceDurationElephantQuery) OnlyID(ctx context.Context) (id uint64, err error)
OnlyID is like Only, but returns the only DeviceDurationElephant ID in the query. Returns a *NotSingularError when more than one DeviceDurationElephant ID is found. Returns a *NotFoundError when no entities are found.
func (*DeviceDurationElephantQuery) OnlyIDX ¶
func (ddeq *DeviceDurationElephantQuery) OnlyIDX(ctx context.Context) uint64
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*DeviceDurationElephantQuery) OnlyX ¶
func (ddeq *DeviceDurationElephantQuery) OnlyX(ctx context.Context) *DeviceDurationElephant
OnlyX is like Only, but panics if an error occurs.
func (*DeviceDurationElephantQuery) Order ¶
func (ddeq *DeviceDurationElephantQuery) Order(o ...devicedurationelephant.OrderOption) *DeviceDurationElephantQuery
Order specifies how the records should be ordered.
func (*DeviceDurationElephantQuery) Page ¶
func (dde *DeviceDurationElephantQuery) Page( ctx context.Context, pageNum uint64, pageSize uint64, opts ...DeviceDurationElephantPaginateOption, ) (*DeviceDurationElephantPageList, error)
func (*DeviceDurationElephantQuery) QueryContext ¶
func (c *DeviceDurationElephantQuery) 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 (*DeviceDurationElephantQuery) Select ¶
func (ddeq *DeviceDurationElephantQuery) Select(fields ...string) *DeviceDurationElephantSelect
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.DeviceDurationElephant.Query(). Select(devicedurationelephant.FieldCreatedAt). Scan(ctx, &v)
func (*DeviceDurationElephantQuery) Unique ¶
func (ddeq *DeviceDurationElephantQuery) Unique(unique bool) *DeviceDurationElephantQuery
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 (*DeviceDurationElephantQuery) Where ¶
func (ddeq *DeviceDurationElephantQuery) Where(ps ...predicate.DeviceDurationElephant) *DeviceDurationElephantQuery
Where adds a new predicate for the DeviceDurationElephantQuery builder.
type DeviceDurationElephantSelect ¶
type DeviceDurationElephantSelect struct { *DeviceDurationElephantQuery // contains filtered or unexported fields }
DeviceDurationElephantSelect is the builder for selecting fields of DeviceDurationElephant entities.
func (*DeviceDurationElephantSelect) Aggregate ¶
func (ddes *DeviceDurationElephantSelect) Aggregate(fns ...AggregateFunc) *DeviceDurationElephantSelect
Aggregate adds the given aggregation functions to the selector query.
func (*DeviceDurationElephantSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DeviceDurationElephantSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (DeviceDurationElephantSelect) ExecContext ¶
func (c DeviceDurationElephantSelect) 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 (*DeviceDurationElephantSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DeviceDurationElephantSelect) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*DeviceDurationElephantSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DeviceDurationElephantSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*DeviceDurationElephantSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DeviceDurationElephantSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*DeviceDurationElephantSelect) Modify ¶
func (ddes *DeviceDurationElephantSelect) Modify(modifiers ...func(s *sql.Selector)) *DeviceDurationElephantSelect
Modify adds a query modifier for attaching custom logic to queries.
func (DeviceDurationElephantSelect) QueryContext ¶
func (c DeviceDurationElephantSelect) 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 (*DeviceDurationElephantSelect) Scan ¶
func (ddes *DeviceDurationElephantSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*DeviceDurationElephantSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*DeviceDurationElephantSelect) StringX ¶
StringX is like String, but panics if an error occurs.
type DeviceDurationElephantUpdate ¶
type DeviceDurationElephantUpdate struct {
// contains filtered or unexported fields
}
DeviceDurationElephantUpdate is the builder for updating DeviceDurationElephant entities.
func (*DeviceDurationElephantUpdate) AddConnected ¶
func (ddeu *DeviceDurationElephantUpdate) AddConnected(i int32) *DeviceDurationElephantUpdate
AddConnected adds i to the "connected" field.
func (*DeviceDurationElephantUpdate) AddEbutton ¶
func (ddeu *DeviceDurationElephantUpdate) AddEbutton(i int32) *DeviceDurationElephantUpdate
AddEbutton adds i to the "ebutton" field.
func (*DeviceDurationElephantUpdate) AddRunning ¶
func (ddeu *DeviceDurationElephantUpdate) AddRunning(i int32) *DeviceDurationElephantUpdate
AddRunning adds i to the "running" field.
func (*DeviceDurationElephantUpdate) AddSort ¶
func (ddeu *DeviceDurationElephantUpdate) AddSort(u int32) *DeviceDurationElephantUpdate
AddSort adds u to the "sort" field.
func (*DeviceDurationElephantUpdate) AddStatus ¶
func (ddeu *DeviceDurationElephantUpdate) AddStatus(u int8) *DeviceDurationElephantUpdate
AddStatus adds u to the "status" field.
func (*DeviceDurationElephantUpdate) ClearConnected ¶
func (ddeu *DeviceDurationElephantUpdate) ClearConnected() *DeviceDurationElephantUpdate
ClearConnected clears the value of the "connected" field.
func (*DeviceDurationElephantUpdate) ClearDate ¶
func (ddeu *DeviceDurationElephantUpdate) ClearDate() *DeviceDurationElephantUpdate
ClearDate clears the value of the "date" field.
func (*DeviceDurationElephantUpdate) ClearDayJson ¶
func (ddeu *DeviceDurationElephantUpdate) ClearDayJson() *DeviceDurationElephantUpdate
ClearDayJson clears the value of the "dayJson" field.
func (*DeviceDurationElephantUpdate) ClearEbutton ¶
func (ddeu *DeviceDurationElephantUpdate) ClearEbutton() *DeviceDurationElephantUpdate
ClearEbutton clears the value of the "ebutton" field.
func (*DeviceDurationElephantUpdate) ClearRunning ¶
func (ddeu *DeviceDurationElephantUpdate) ClearRunning() *DeviceDurationElephantUpdate
ClearRunning clears the value of the "running" field.
func (*DeviceDurationElephantUpdate) ClearStatus ¶
func (ddeu *DeviceDurationElephantUpdate) ClearStatus() *DeviceDurationElephantUpdate
ClearStatus clears the value of the "status" field.
func (*DeviceDurationElephantUpdate) Exec ¶
func (ddeu *DeviceDurationElephantUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceDurationElephantUpdate) ExecContext ¶
func (c *DeviceDurationElephantUpdate) 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 (*DeviceDurationElephantUpdate) ExecX ¶
func (ddeu *DeviceDurationElephantUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceDurationElephantUpdate) Modify ¶
func (ddeu *DeviceDurationElephantUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceDurationElephantUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*DeviceDurationElephantUpdate) Mutation ¶
func (ddeu *DeviceDurationElephantUpdate) Mutation() *DeviceDurationElephantMutation
Mutation returns the DeviceDurationElephantMutation object of the builder.
func (*DeviceDurationElephantUpdate) QueryContext ¶
func (c *DeviceDurationElephantUpdate) 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 (*DeviceDurationElephantUpdate) Save ¶
func (ddeu *DeviceDurationElephantUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*DeviceDurationElephantUpdate) SaveX ¶
func (ddeu *DeviceDurationElephantUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*DeviceDurationElephantUpdate) SetConnected ¶
func (ddeu *DeviceDurationElephantUpdate) SetConnected(i int32) *DeviceDurationElephantUpdate
SetConnected sets the "connected" field.
func (*DeviceDurationElephantUpdate) SetDate ¶
func (ddeu *DeviceDurationElephantUpdate) SetDate(s string) *DeviceDurationElephantUpdate
SetDate sets the "date" field.
func (*DeviceDurationElephantUpdate) SetDayJson ¶
func (ddeu *DeviceDurationElephantUpdate) SetDayJson(s string) *DeviceDurationElephantUpdate
SetDayJson sets the "dayJson" field.
func (*DeviceDurationElephantUpdate) SetDeviceName ¶
func (ddeu *DeviceDurationElephantUpdate) SetDeviceName(s string) *DeviceDurationElephantUpdate
SetDeviceName sets the "deviceName" field.
func (*DeviceDurationElephantUpdate) SetEbutton ¶
func (ddeu *DeviceDurationElephantUpdate) SetEbutton(i int32) *DeviceDurationElephantUpdate
SetEbutton sets the "ebutton" field.
func (*DeviceDurationElephantUpdate) SetIotID ¶
func (ddeu *DeviceDurationElephantUpdate) SetIotID(s string) *DeviceDurationElephantUpdate
SetIotID sets the "iotID" field.
func (*DeviceDurationElephantUpdate) SetNillableConnected ¶
func (ddeu *DeviceDurationElephantUpdate) SetNillableConnected(i *int32) *DeviceDurationElephantUpdate
SetNillableConnected sets the "connected" field if the given value is not nil.
func (*DeviceDurationElephantUpdate) SetNillableDate ¶
func (ddeu *DeviceDurationElephantUpdate) SetNillableDate(s *string) *DeviceDurationElephantUpdate
SetNillableDate sets the "date" field if the given value is not nil.
func (*DeviceDurationElephantUpdate) SetNillableDayJson ¶
func (ddeu *DeviceDurationElephantUpdate) SetNillableDayJson(s *string) *DeviceDurationElephantUpdate
SetNillableDayJson sets the "dayJson" field if the given value is not nil.
func (*DeviceDurationElephantUpdate) SetNillableDeviceName ¶
func (ddeu *DeviceDurationElephantUpdate) SetNillableDeviceName(s *string) *DeviceDurationElephantUpdate
SetNillableDeviceName sets the "deviceName" field if the given value is not nil.
func (*DeviceDurationElephantUpdate) SetNillableEbutton ¶
func (ddeu *DeviceDurationElephantUpdate) SetNillableEbutton(i *int32) *DeviceDurationElephantUpdate
SetNillableEbutton sets the "ebutton" field if the given value is not nil.
func (*DeviceDurationElephantUpdate) SetNillableIotID ¶
func (ddeu *DeviceDurationElephantUpdate) SetNillableIotID(s *string) *DeviceDurationElephantUpdate
SetNillableIotID sets the "iotID" field if the given value is not nil.
func (*DeviceDurationElephantUpdate) SetNillableProductKey ¶
func (ddeu *DeviceDurationElephantUpdate) SetNillableProductKey(s *string) *DeviceDurationElephantUpdate
SetNillableProductKey sets the "productKey" field if the given value is not nil.
func (*DeviceDurationElephantUpdate) SetNillableRunning ¶
func (ddeu *DeviceDurationElephantUpdate) SetNillableRunning(i *int32) *DeviceDurationElephantUpdate
SetNillableRunning sets the "running" field if the given value is not nil.
func (*DeviceDurationElephantUpdate) SetNillableSort ¶
func (ddeu *DeviceDurationElephantUpdate) SetNillableSort(u *uint32) *DeviceDurationElephantUpdate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DeviceDurationElephantUpdate) SetNillableStatus ¶
func (ddeu *DeviceDurationElephantUpdate) SetNillableStatus(u *uint8) *DeviceDurationElephantUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DeviceDurationElephantUpdate) SetNotNilConnected ¶
func (dde *DeviceDurationElephantUpdate) SetNotNilConnected(value *int32) *DeviceDurationElephantUpdate
set field if value's pointer is not nil.
func (*DeviceDurationElephantUpdate) SetNotNilDate ¶
func (dde *DeviceDurationElephantUpdate) SetNotNilDate(value *string) *DeviceDurationElephantUpdate
set field if value's pointer is not nil.
func (*DeviceDurationElephantUpdate) SetNotNilDayJson ¶
func (dde *DeviceDurationElephantUpdate) SetNotNilDayJson(value *string) *DeviceDurationElephantUpdate
set field if value's pointer is not nil.
func (*DeviceDurationElephantUpdate) SetNotNilDeviceName ¶
func (dde *DeviceDurationElephantUpdate) SetNotNilDeviceName(value *string) *DeviceDurationElephantUpdate
set field if value's pointer is not nil.
func (*DeviceDurationElephantUpdate) SetNotNilEbutton ¶
func (dde *DeviceDurationElephantUpdate) SetNotNilEbutton(value *int32) *DeviceDurationElephantUpdate
set field if value's pointer is not nil.
func (*DeviceDurationElephantUpdate) SetNotNilIotID ¶
func (dde *DeviceDurationElephantUpdate) SetNotNilIotID(value *string) *DeviceDurationElephantUpdate
set field if value's pointer is not nil.
func (*DeviceDurationElephantUpdate) SetNotNilProductKey ¶
func (dde *DeviceDurationElephantUpdate) SetNotNilProductKey(value *string) *DeviceDurationElephantUpdate
set field if value's pointer is not nil.
func (*DeviceDurationElephantUpdate) SetNotNilRunning ¶
func (dde *DeviceDurationElephantUpdate) SetNotNilRunning(value *int32) *DeviceDurationElephantUpdate
set field if value's pointer is not nil.
func (*DeviceDurationElephantUpdate) SetNotNilSort ¶
func (dde *DeviceDurationElephantUpdate) SetNotNilSort(value *uint32) *DeviceDurationElephantUpdate
set field if value's pointer is not nil.
func (*DeviceDurationElephantUpdate) SetNotNilStatus ¶
func (dde *DeviceDurationElephantUpdate) SetNotNilStatus(value *uint8) *DeviceDurationElephantUpdate
set field if value's pointer is not nil.
func (*DeviceDurationElephantUpdate) SetNotNilUpdatedAt ¶
func (dde *DeviceDurationElephantUpdate) SetNotNilUpdatedAt(value *time.Time) *DeviceDurationElephantUpdate
set field if value's pointer is not nil.
func (*DeviceDurationElephantUpdate) SetProductKey ¶
func (ddeu *DeviceDurationElephantUpdate) SetProductKey(s string) *DeviceDurationElephantUpdate
SetProductKey sets the "productKey" field.
func (*DeviceDurationElephantUpdate) SetRunning ¶
func (ddeu *DeviceDurationElephantUpdate) SetRunning(i int32) *DeviceDurationElephantUpdate
SetRunning sets the "running" field.
func (*DeviceDurationElephantUpdate) SetSort ¶
func (ddeu *DeviceDurationElephantUpdate) SetSort(u uint32) *DeviceDurationElephantUpdate
SetSort sets the "sort" field.
func (*DeviceDurationElephantUpdate) SetStatus ¶
func (ddeu *DeviceDurationElephantUpdate) SetStatus(u uint8) *DeviceDurationElephantUpdate
SetStatus sets the "status" field.
func (*DeviceDurationElephantUpdate) SetUpdatedAt ¶
func (ddeu *DeviceDurationElephantUpdate) SetUpdatedAt(t time.Time) *DeviceDurationElephantUpdate
SetUpdatedAt sets the "updated_at" field.
func (*DeviceDurationElephantUpdate) Where ¶
func (ddeu *DeviceDurationElephantUpdate) Where(ps ...predicate.DeviceDurationElephant) *DeviceDurationElephantUpdate
Where appends a list predicates to the DeviceDurationElephantUpdate builder.
type DeviceDurationElephantUpdateOne ¶
type DeviceDurationElephantUpdateOne struct {
// contains filtered or unexported fields
}
DeviceDurationElephantUpdateOne is the builder for updating a single DeviceDurationElephant entity.
func (*DeviceDurationElephantUpdateOne) AddConnected ¶
func (ddeuo *DeviceDurationElephantUpdateOne) AddConnected(i int32) *DeviceDurationElephantUpdateOne
AddConnected adds i to the "connected" field.
func (*DeviceDurationElephantUpdateOne) AddEbutton ¶
func (ddeuo *DeviceDurationElephantUpdateOne) AddEbutton(i int32) *DeviceDurationElephantUpdateOne
AddEbutton adds i to the "ebutton" field.
func (*DeviceDurationElephantUpdateOne) AddRunning ¶
func (ddeuo *DeviceDurationElephantUpdateOne) AddRunning(i int32) *DeviceDurationElephantUpdateOne
AddRunning adds i to the "running" field.
func (*DeviceDurationElephantUpdateOne) AddSort ¶
func (ddeuo *DeviceDurationElephantUpdateOne) AddSort(u int32) *DeviceDurationElephantUpdateOne
AddSort adds u to the "sort" field.
func (*DeviceDurationElephantUpdateOne) AddStatus ¶
func (ddeuo *DeviceDurationElephantUpdateOne) AddStatus(u int8) *DeviceDurationElephantUpdateOne
AddStatus adds u to the "status" field.
func (*DeviceDurationElephantUpdateOne) ClearConnected ¶
func (ddeuo *DeviceDurationElephantUpdateOne) ClearConnected() *DeviceDurationElephantUpdateOne
ClearConnected clears the value of the "connected" field.
func (*DeviceDurationElephantUpdateOne) ClearDate ¶
func (ddeuo *DeviceDurationElephantUpdateOne) ClearDate() *DeviceDurationElephantUpdateOne
ClearDate clears the value of the "date" field.
func (*DeviceDurationElephantUpdateOne) ClearDayJson ¶
func (ddeuo *DeviceDurationElephantUpdateOne) ClearDayJson() *DeviceDurationElephantUpdateOne
ClearDayJson clears the value of the "dayJson" field.
func (*DeviceDurationElephantUpdateOne) ClearEbutton ¶
func (ddeuo *DeviceDurationElephantUpdateOne) ClearEbutton() *DeviceDurationElephantUpdateOne
ClearEbutton clears the value of the "ebutton" field.
func (*DeviceDurationElephantUpdateOne) ClearRunning ¶
func (ddeuo *DeviceDurationElephantUpdateOne) ClearRunning() *DeviceDurationElephantUpdateOne
ClearRunning clears the value of the "running" field.
func (*DeviceDurationElephantUpdateOne) ClearStatus ¶
func (ddeuo *DeviceDurationElephantUpdateOne) ClearStatus() *DeviceDurationElephantUpdateOne
ClearStatus clears the value of the "status" field.
func (*DeviceDurationElephantUpdateOne) Exec ¶
func (ddeuo *DeviceDurationElephantUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*DeviceDurationElephantUpdateOne) ExecContext ¶
func (c *DeviceDurationElephantUpdateOne) 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 (*DeviceDurationElephantUpdateOne) ExecX ¶
func (ddeuo *DeviceDurationElephantUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceDurationElephantUpdateOne) Modify ¶
func (ddeuo *DeviceDurationElephantUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceDurationElephantUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*DeviceDurationElephantUpdateOne) Mutation ¶
func (ddeuo *DeviceDurationElephantUpdateOne) Mutation() *DeviceDurationElephantMutation
Mutation returns the DeviceDurationElephantMutation object of the builder.
func (*DeviceDurationElephantUpdateOne) QueryContext ¶
func (c *DeviceDurationElephantUpdateOne) 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 (*DeviceDurationElephantUpdateOne) Save ¶
func (ddeuo *DeviceDurationElephantUpdateOne) Save(ctx context.Context) (*DeviceDurationElephant, error)
Save executes the query and returns the updated DeviceDurationElephant entity.
func (*DeviceDurationElephantUpdateOne) SaveX ¶
func (ddeuo *DeviceDurationElephantUpdateOne) SaveX(ctx context.Context) *DeviceDurationElephant
SaveX is like Save, but panics if an error occurs.
func (*DeviceDurationElephantUpdateOne) Select ¶
func (ddeuo *DeviceDurationElephantUpdateOne) Select(field string, fields ...string) *DeviceDurationElephantUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*DeviceDurationElephantUpdateOne) SetConnected ¶
func (ddeuo *DeviceDurationElephantUpdateOne) SetConnected(i int32) *DeviceDurationElephantUpdateOne
SetConnected sets the "connected" field.
func (*DeviceDurationElephantUpdateOne) SetDate ¶
func (ddeuo *DeviceDurationElephantUpdateOne) SetDate(s string) *DeviceDurationElephantUpdateOne
SetDate sets the "date" field.
func (*DeviceDurationElephantUpdateOne) SetDayJson ¶
func (ddeuo *DeviceDurationElephantUpdateOne) SetDayJson(s string) *DeviceDurationElephantUpdateOne
SetDayJson sets the "dayJson" field.
func (*DeviceDurationElephantUpdateOne) SetDeviceName ¶
func (ddeuo *DeviceDurationElephantUpdateOne) SetDeviceName(s string) *DeviceDurationElephantUpdateOne
SetDeviceName sets the "deviceName" field.
func (*DeviceDurationElephantUpdateOne) SetEbutton ¶
func (ddeuo *DeviceDurationElephantUpdateOne) SetEbutton(i int32) *DeviceDurationElephantUpdateOne
SetEbutton sets the "ebutton" field.
func (*DeviceDurationElephantUpdateOne) SetIotID ¶
func (ddeuo *DeviceDurationElephantUpdateOne) SetIotID(s string) *DeviceDurationElephantUpdateOne
SetIotID sets the "iotID" field.
func (*DeviceDurationElephantUpdateOne) SetNillableConnected ¶
func (ddeuo *DeviceDurationElephantUpdateOne) SetNillableConnected(i *int32) *DeviceDurationElephantUpdateOne
SetNillableConnected sets the "connected" field if the given value is not nil.
func (*DeviceDurationElephantUpdateOne) SetNillableDate ¶
func (ddeuo *DeviceDurationElephantUpdateOne) SetNillableDate(s *string) *DeviceDurationElephantUpdateOne
SetNillableDate sets the "date" field if the given value is not nil.
func (*DeviceDurationElephantUpdateOne) SetNillableDayJson ¶
func (ddeuo *DeviceDurationElephantUpdateOne) SetNillableDayJson(s *string) *DeviceDurationElephantUpdateOne
SetNillableDayJson sets the "dayJson" field if the given value is not nil.
func (*DeviceDurationElephantUpdateOne) SetNillableDeviceName ¶
func (ddeuo *DeviceDurationElephantUpdateOne) SetNillableDeviceName(s *string) *DeviceDurationElephantUpdateOne
SetNillableDeviceName sets the "deviceName" field if the given value is not nil.
func (*DeviceDurationElephantUpdateOne) SetNillableEbutton ¶
func (ddeuo *DeviceDurationElephantUpdateOne) SetNillableEbutton(i *int32) *DeviceDurationElephantUpdateOne
SetNillableEbutton sets the "ebutton" field if the given value is not nil.
func (*DeviceDurationElephantUpdateOne) SetNillableIotID ¶
func (ddeuo *DeviceDurationElephantUpdateOne) SetNillableIotID(s *string) *DeviceDurationElephantUpdateOne
SetNillableIotID sets the "iotID" field if the given value is not nil.
func (*DeviceDurationElephantUpdateOne) SetNillableProductKey ¶
func (ddeuo *DeviceDurationElephantUpdateOne) SetNillableProductKey(s *string) *DeviceDurationElephantUpdateOne
SetNillableProductKey sets the "productKey" field if the given value is not nil.
func (*DeviceDurationElephantUpdateOne) SetNillableRunning ¶
func (ddeuo *DeviceDurationElephantUpdateOne) SetNillableRunning(i *int32) *DeviceDurationElephantUpdateOne
SetNillableRunning sets the "running" field if the given value is not nil.
func (*DeviceDurationElephantUpdateOne) SetNillableSort ¶
func (ddeuo *DeviceDurationElephantUpdateOne) SetNillableSort(u *uint32) *DeviceDurationElephantUpdateOne
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DeviceDurationElephantUpdateOne) SetNillableStatus ¶
func (ddeuo *DeviceDurationElephantUpdateOne) SetNillableStatus(u *uint8) *DeviceDurationElephantUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DeviceDurationElephantUpdateOne) SetNotNilConnected ¶
func (dde *DeviceDurationElephantUpdateOne) SetNotNilConnected(value *int32) *DeviceDurationElephantUpdateOne
set field if value's pointer is not nil.
func (*DeviceDurationElephantUpdateOne) SetNotNilDate ¶
func (dde *DeviceDurationElephantUpdateOne) SetNotNilDate(value *string) *DeviceDurationElephantUpdateOne
set field if value's pointer is not nil.
func (*DeviceDurationElephantUpdateOne) SetNotNilDayJson ¶
func (dde *DeviceDurationElephantUpdateOne) SetNotNilDayJson(value *string) *DeviceDurationElephantUpdateOne
set field if value's pointer is not nil.
func (*DeviceDurationElephantUpdateOne) SetNotNilDeviceName ¶
func (dde *DeviceDurationElephantUpdateOne) SetNotNilDeviceName(value *string) *DeviceDurationElephantUpdateOne
set field if value's pointer is not nil.
func (*DeviceDurationElephantUpdateOne) SetNotNilEbutton ¶
func (dde *DeviceDurationElephantUpdateOne) SetNotNilEbutton(value *int32) *DeviceDurationElephantUpdateOne
set field if value's pointer is not nil.
func (*DeviceDurationElephantUpdateOne) SetNotNilIotID ¶
func (dde *DeviceDurationElephantUpdateOne) SetNotNilIotID(value *string) *DeviceDurationElephantUpdateOne
set field if value's pointer is not nil.
func (*DeviceDurationElephantUpdateOne) SetNotNilProductKey ¶
func (dde *DeviceDurationElephantUpdateOne) SetNotNilProductKey(value *string) *DeviceDurationElephantUpdateOne
set field if value's pointer is not nil.
func (*DeviceDurationElephantUpdateOne) SetNotNilRunning ¶
func (dde *DeviceDurationElephantUpdateOne) SetNotNilRunning(value *int32) *DeviceDurationElephantUpdateOne
set field if value's pointer is not nil.
func (*DeviceDurationElephantUpdateOne) SetNotNilSort ¶
func (dde *DeviceDurationElephantUpdateOne) SetNotNilSort(value *uint32) *DeviceDurationElephantUpdateOne
set field if value's pointer is not nil.
func (*DeviceDurationElephantUpdateOne) SetNotNilStatus ¶
func (dde *DeviceDurationElephantUpdateOne) SetNotNilStatus(value *uint8) *DeviceDurationElephantUpdateOne
set field if value's pointer is not nil.
func (*DeviceDurationElephantUpdateOne) SetNotNilUpdatedAt ¶
func (dde *DeviceDurationElephantUpdateOne) SetNotNilUpdatedAt(value *time.Time) *DeviceDurationElephantUpdateOne
set field if value's pointer is not nil.
func (*DeviceDurationElephantUpdateOne) SetProductKey ¶
func (ddeuo *DeviceDurationElephantUpdateOne) SetProductKey(s string) *DeviceDurationElephantUpdateOne
SetProductKey sets the "productKey" field.
func (*DeviceDurationElephantUpdateOne) SetRunning ¶
func (ddeuo *DeviceDurationElephantUpdateOne) SetRunning(i int32) *DeviceDurationElephantUpdateOne
SetRunning sets the "running" field.
func (*DeviceDurationElephantUpdateOne) SetSort ¶
func (ddeuo *DeviceDurationElephantUpdateOne) SetSort(u uint32) *DeviceDurationElephantUpdateOne
SetSort sets the "sort" field.
func (*DeviceDurationElephantUpdateOne) SetStatus ¶
func (ddeuo *DeviceDurationElephantUpdateOne) SetStatus(u uint8) *DeviceDurationElephantUpdateOne
SetStatus sets the "status" field.
func (*DeviceDurationElephantUpdateOne) SetUpdatedAt ¶
func (ddeuo *DeviceDurationElephantUpdateOne) SetUpdatedAt(t time.Time) *DeviceDurationElephantUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*DeviceDurationElephantUpdateOne) Where ¶
func (ddeuo *DeviceDurationElephantUpdateOne) Where(ps ...predicate.DeviceDurationElephant) *DeviceDurationElephantUpdateOne
Where appends a list predicates to the DeviceDurationElephantUpdate builder.
type DeviceDurationElephantUpsert ¶
DeviceDurationElephantUpsert is the "OnConflict" setter.
func (*DeviceDurationElephantUpsert) AddConnected ¶
func (u *DeviceDurationElephantUpsert) AddConnected(v int32) *DeviceDurationElephantUpsert
AddConnected adds v to the "connected" field.
func (*DeviceDurationElephantUpsert) AddEbutton ¶
func (u *DeviceDurationElephantUpsert) AddEbutton(v int32) *DeviceDurationElephantUpsert
AddEbutton adds v to the "ebutton" field.
func (*DeviceDurationElephantUpsert) AddRunning ¶
func (u *DeviceDurationElephantUpsert) AddRunning(v int32) *DeviceDurationElephantUpsert
AddRunning adds v to the "running" field.
func (*DeviceDurationElephantUpsert) AddSort ¶
func (u *DeviceDurationElephantUpsert) AddSort(v uint32) *DeviceDurationElephantUpsert
AddSort adds v to the "sort" field.
func (*DeviceDurationElephantUpsert) AddStatus ¶
func (u *DeviceDurationElephantUpsert) AddStatus(v uint8) *DeviceDurationElephantUpsert
AddStatus adds v to the "status" field.
func (*DeviceDurationElephantUpsert) ClearConnected ¶
func (u *DeviceDurationElephantUpsert) ClearConnected() *DeviceDurationElephantUpsert
ClearConnected clears the value of the "connected" field.
func (*DeviceDurationElephantUpsert) ClearDate ¶
func (u *DeviceDurationElephantUpsert) ClearDate() *DeviceDurationElephantUpsert
ClearDate clears the value of the "date" field.
func (*DeviceDurationElephantUpsert) ClearDayJson ¶
func (u *DeviceDurationElephantUpsert) ClearDayJson() *DeviceDurationElephantUpsert
ClearDayJson clears the value of the "dayJson" field.
func (*DeviceDurationElephantUpsert) ClearEbutton ¶
func (u *DeviceDurationElephantUpsert) ClearEbutton() *DeviceDurationElephantUpsert
ClearEbutton clears the value of the "ebutton" field.
func (*DeviceDurationElephantUpsert) ClearRunning ¶
func (u *DeviceDurationElephantUpsert) ClearRunning() *DeviceDurationElephantUpsert
ClearRunning clears the value of the "running" field.
func (*DeviceDurationElephantUpsert) ClearStatus ¶
func (u *DeviceDurationElephantUpsert) ClearStatus() *DeviceDurationElephantUpsert
ClearStatus clears the value of the "status" field.
func (*DeviceDurationElephantUpsert) SetConnected ¶
func (u *DeviceDurationElephantUpsert) SetConnected(v int32) *DeviceDurationElephantUpsert
SetConnected sets the "connected" field.
func (*DeviceDurationElephantUpsert) SetDate ¶
func (u *DeviceDurationElephantUpsert) SetDate(v string) *DeviceDurationElephantUpsert
SetDate sets the "date" field.
func (*DeviceDurationElephantUpsert) SetDayJson ¶
func (u *DeviceDurationElephantUpsert) SetDayJson(v string) *DeviceDurationElephantUpsert
SetDayJson sets the "dayJson" field.
func (*DeviceDurationElephantUpsert) SetDeviceName ¶
func (u *DeviceDurationElephantUpsert) SetDeviceName(v string) *DeviceDurationElephantUpsert
SetDeviceName sets the "deviceName" field.
func (*DeviceDurationElephantUpsert) SetEbutton ¶
func (u *DeviceDurationElephantUpsert) SetEbutton(v int32) *DeviceDurationElephantUpsert
SetEbutton sets the "ebutton" field.
func (*DeviceDurationElephantUpsert) SetIotID ¶
func (u *DeviceDurationElephantUpsert) SetIotID(v string) *DeviceDurationElephantUpsert
SetIotID sets the "iotID" field.
func (*DeviceDurationElephantUpsert) SetProductKey ¶
func (u *DeviceDurationElephantUpsert) SetProductKey(v string) *DeviceDurationElephantUpsert
SetProductKey sets the "productKey" field.
func (*DeviceDurationElephantUpsert) SetRunning ¶
func (u *DeviceDurationElephantUpsert) SetRunning(v int32) *DeviceDurationElephantUpsert
SetRunning sets the "running" field.
func (*DeviceDurationElephantUpsert) SetSort ¶
func (u *DeviceDurationElephantUpsert) SetSort(v uint32) *DeviceDurationElephantUpsert
SetSort sets the "sort" field.
func (*DeviceDurationElephantUpsert) SetStatus ¶
func (u *DeviceDurationElephantUpsert) SetStatus(v uint8) *DeviceDurationElephantUpsert
SetStatus sets the "status" field.
func (*DeviceDurationElephantUpsert) SetUpdatedAt ¶
func (u *DeviceDurationElephantUpsert) SetUpdatedAt(v time.Time) *DeviceDurationElephantUpsert
SetUpdatedAt sets the "updated_at" field.
func (*DeviceDurationElephantUpsert) UpdateConnected ¶
func (u *DeviceDurationElephantUpsert) UpdateConnected() *DeviceDurationElephantUpsert
UpdateConnected sets the "connected" field to the value that was provided on create.
func (*DeviceDurationElephantUpsert) UpdateDate ¶
func (u *DeviceDurationElephantUpsert) UpdateDate() *DeviceDurationElephantUpsert
UpdateDate sets the "date" field to the value that was provided on create.
func (*DeviceDurationElephantUpsert) UpdateDayJson ¶
func (u *DeviceDurationElephantUpsert) UpdateDayJson() *DeviceDurationElephantUpsert
UpdateDayJson sets the "dayJson" field to the value that was provided on create.
func (*DeviceDurationElephantUpsert) UpdateDeviceName ¶
func (u *DeviceDurationElephantUpsert) UpdateDeviceName() *DeviceDurationElephantUpsert
UpdateDeviceName sets the "deviceName" field to the value that was provided on create.
func (*DeviceDurationElephantUpsert) UpdateEbutton ¶
func (u *DeviceDurationElephantUpsert) UpdateEbutton() *DeviceDurationElephantUpsert
UpdateEbutton sets the "ebutton" field to the value that was provided on create.
func (*DeviceDurationElephantUpsert) UpdateIotID ¶
func (u *DeviceDurationElephantUpsert) UpdateIotID() *DeviceDurationElephantUpsert
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DeviceDurationElephantUpsert) UpdateProductKey ¶
func (u *DeviceDurationElephantUpsert) UpdateProductKey() *DeviceDurationElephantUpsert
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*DeviceDurationElephantUpsert) UpdateRunning ¶
func (u *DeviceDurationElephantUpsert) UpdateRunning() *DeviceDurationElephantUpsert
UpdateRunning sets the "running" field to the value that was provided on create.
func (*DeviceDurationElephantUpsert) UpdateSort ¶
func (u *DeviceDurationElephantUpsert) UpdateSort() *DeviceDurationElephantUpsert
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DeviceDurationElephantUpsert) UpdateStatus ¶
func (u *DeviceDurationElephantUpsert) UpdateStatus() *DeviceDurationElephantUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DeviceDurationElephantUpsert) UpdateUpdatedAt ¶
func (u *DeviceDurationElephantUpsert) UpdateUpdatedAt() *DeviceDurationElephantUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type DeviceDurationElephantUpsertBulk ¶
type DeviceDurationElephantUpsertBulk struct {
// contains filtered or unexported fields
}
DeviceDurationElephantUpsertBulk is the builder for "upsert"-ing a bulk of DeviceDurationElephant nodes.
func (*DeviceDurationElephantUpsertBulk) AddConnected ¶
func (u *DeviceDurationElephantUpsertBulk) AddConnected(v int32) *DeviceDurationElephantUpsertBulk
AddConnected adds v to the "connected" field.
func (*DeviceDurationElephantUpsertBulk) AddEbutton ¶
func (u *DeviceDurationElephantUpsertBulk) AddEbutton(v int32) *DeviceDurationElephantUpsertBulk
AddEbutton adds v to the "ebutton" field.
func (*DeviceDurationElephantUpsertBulk) AddRunning ¶
func (u *DeviceDurationElephantUpsertBulk) AddRunning(v int32) *DeviceDurationElephantUpsertBulk
AddRunning adds v to the "running" field.
func (*DeviceDurationElephantUpsertBulk) AddSort ¶
func (u *DeviceDurationElephantUpsertBulk) AddSort(v uint32) *DeviceDurationElephantUpsertBulk
AddSort adds v to the "sort" field.
func (*DeviceDurationElephantUpsertBulk) AddStatus ¶
func (u *DeviceDurationElephantUpsertBulk) AddStatus(v uint8) *DeviceDurationElephantUpsertBulk
AddStatus adds v to the "status" field.
func (*DeviceDurationElephantUpsertBulk) ClearConnected ¶
func (u *DeviceDurationElephantUpsertBulk) ClearConnected() *DeviceDurationElephantUpsertBulk
ClearConnected clears the value of the "connected" field.
func (*DeviceDurationElephantUpsertBulk) ClearDate ¶
func (u *DeviceDurationElephantUpsertBulk) ClearDate() *DeviceDurationElephantUpsertBulk
ClearDate clears the value of the "date" field.
func (*DeviceDurationElephantUpsertBulk) ClearDayJson ¶
func (u *DeviceDurationElephantUpsertBulk) ClearDayJson() *DeviceDurationElephantUpsertBulk
ClearDayJson clears the value of the "dayJson" field.
func (*DeviceDurationElephantUpsertBulk) ClearEbutton ¶
func (u *DeviceDurationElephantUpsertBulk) ClearEbutton() *DeviceDurationElephantUpsertBulk
ClearEbutton clears the value of the "ebutton" field.
func (*DeviceDurationElephantUpsertBulk) ClearRunning ¶
func (u *DeviceDurationElephantUpsertBulk) ClearRunning() *DeviceDurationElephantUpsertBulk
ClearRunning clears the value of the "running" field.
func (*DeviceDurationElephantUpsertBulk) ClearStatus ¶
func (u *DeviceDurationElephantUpsertBulk) ClearStatus() *DeviceDurationElephantUpsertBulk
ClearStatus clears the value of the "status" field.
func (*DeviceDurationElephantUpsertBulk) DoNothing ¶
func (u *DeviceDurationElephantUpsertBulk) DoNothing() *DeviceDurationElephantUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*DeviceDurationElephantUpsertBulk) Exec ¶
func (u *DeviceDurationElephantUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceDurationElephantUpsertBulk) ExecX ¶
func (u *DeviceDurationElephantUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceDurationElephantUpsertBulk) Ignore ¶
func (u *DeviceDurationElephantUpsertBulk) Ignore() *DeviceDurationElephantUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.DeviceDurationElephant.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*DeviceDurationElephantUpsertBulk) SetConnected ¶
func (u *DeviceDurationElephantUpsertBulk) SetConnected(v int32) *DeviceDurationElephantUpsertBulk
SetConnected sets the "connected" field.
func (*DeviceDurationElephantUpsertBulk) SetDate ¶
func (u *DeviceDurationElephantUpsertBulk) SetDate(v string) *DeviceDurationElephantUpsertBulk
SetDate sets the "date" field.
func (*DeviceDurationElephantUpsertBulk) SetDayJson ¶
func (u *DeviceDurationElephantUpsertBulk) SetDayJson(v string) *DeviceDurationElephantUpsertBulk
SetDayJson sets the "dayJson" field.
func (*DeviceDurationElephantUpsertBulk) SetDeviceName ¶
func (u *DeviceDurationElephantUpsertBulk) SetDeviceName(v string) *DeviceDurationElephantUpsertBulk
SetDeviceName sets the "deviceName" field.
func (*DeviceDurationElephantUpsertBulk) SetEbutton ¶
func (u *DeviceDurationElephantUpsertBulk) SetEbutton(v int32) *DeviceDurationElephantUpsertBulk
SetEbutton sets the "ebutton" field.
func (*DeviceDurationElephantUpsertBulk) SetIotID ¶
func (u *DeviceDurationElephantUpsertBulk) SetIotID(v string) *DeviceDurationElephantUpsertBulk
SetIotID sets the "iotID" field.
func (*DeviceDurationElephantUpsertBulk) SetProductKey ¶
func (u *DeviceDurationElephantUpsertBulk) SetProductKey(v string) *DeviceDurationElephantUpsertBulk
SetProductKey sets the "productKey" field.
func (*DeviceDurationElephantUpsertBulk) SetRunning ¶
func (u *DeviceDurationElephantUpsertBulk) SetRunning(v int32) *DeviceDurationElephantUpsertBulk
SetRunning sets the "running" field.
func (*DeviceDurationElephantUpsertBulk) SetSort ¶
func (u *DeviceDurationElephantUpsertBulk) SetSort(v uint32) *DeviceDurationElephantUpsertBulk
SetSort sets the "sort" field.
func (*DeviceDurationElephantUpsertBulk) SetStatus ¶
func (u *DeviceDurationElephantUpsertBulk) SetStatus(v uint8) *DeviceDurationElephantUpsertBulk
SetStatus sets the "status" field.
func (*DeviceDurationElephantUpsertBulk) SetUpdatedAt ¶
func (u *DeviceDurationElephantUpsertBulk) SetUpdatedAt(v time.Time) *DeviceDurationElephantUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*DeviceDurationElephantUpsertBulk) Update ¶
func (u *DeviceDurationElephantUpsertBulk) Update(set func(*DeviceDurationElephantUpsert)) *DeviceDurationElephantUpsertBulk
Update allows overriding fields `UPDATE` values. See the DeviceDurationElephantCreateBulk.OnConflict documentation for more info.
func (*DeviceDurationElephantUpsertBulk) UpdateConnected ¶
func (u *DeviceDurationElephantUpsertBulk) UpdateConnected() *DeviceDurationElephantUpsertBulk
UpdateConnected sets the "connected" field to the value that was provided on create.
func (*DeviceDurationElephantUpsertBulk) UpdateDate ¶
func (u *DeviceDurationElephantUpsertBulk) UpdateDate() *DeviceDurationElephantUpsertBulk
UpdateDate sets the "date" field to the value that was provided on create.
func (*DeviceDurationElephantUpsertBulk) UpdateDayJson ¶
func (u *DeviceDurationElephantUpsertBulk) UpdateDayJson() *DeviceDurationElephantUpsertBulk
UpdateDayJson sets the "dayJson" field to the value that was provided on create.
func (*DeviceDurationElephantUpsertBulk) UpdateDeviceName ¶
func (u *DeviceDurationElephantUpsertBulk) UpdateDeviceName() *DeviceDurationElephantUpsertBulk
UpdateDeviceName sets the "deviceName" field to the value that was provided on create.
func (*DeviceDurationElephantUpsertBulk) UpdateEbutton ¶
func (u *DeviceDurationElephantUpsertBulk) UpdateEbutton() *DeviceDurationElephantUpsertBulk
UpdateEbutton sets the "ebutton" field to the value that was provided on create.
func (*DeviceDurationElephantUpsertBulk) UpdateIotID ¶
func (u *DeviceDurationElephantUpsertBulk) UpdateIotID() *DeviceDurationElephantUpsertBulk
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DeviceDurationElephantUpsertBulk) UpdateNewValues ¶
func (u *DeviceDurationElephantUpsertBulk) UpdateNewValues() *DeviceDurationElephantUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.DeviceDurationElephant.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(devicedurationelephant.FieldID) }), ). Exec(ctx)
func (*DeviceDurationElephantUpsertBulk) UpdateProductKey ¶
func (u *DeviceDurationElephantUpsertBulk) UpdateProductKey() *DeviceDurationElephantUpsertBulk
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*DeviceDurationElephantUpsertBulk) UpdateRunning ¶
func (u *DeviceDurationElephantUpsertBulk) UpdateRunning() *DeviceDurationElephantUpsertBulk
UpdateRunning sets the "running" field to the value that was provided on create.
func (*DeviceDurationElephantUpsertBulk) UpdateSort ¶
func (u *DeviceDurationElephantUpsertBulk) UpdateSort() *DeviceDurationElephantUpsertBulk
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DeviceDurationElephantUpsertBulk) UpdateStatus ¶
func (u *DeviceDurationElephantUpsertBulk) UpdateStatus() *DeviceDurationElephantUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DeviceDurationElephantUpsertBulk) UpdateUpdatedAt ¶
func (u *DeviceDurationElephantUpsertBulk) UpdateUpdatedAt() *DeviceDurationElephantUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type DeviceDurationElephantUpsertOne ¶
type DeviceDurationElephantUpsertOne struct {
// contains filtered or unexported fields
}
DeviceDurationElephantUpsertOne is the builder for "upsert"-ing
one DeviceDurationElephant node.
func (*DeviceDurationElephantUpsertOne) AddConnected ¶
func (u *DeviceDurationElephantUpsertOne) AddConnected(v int32) *DeviceDurationElephantUpsertOne
AddConnected adds v to the "connected" field.
func (*DeviceDurationElephantUpsertOne) AddEbutton ¶
func (u *DeviceDurationElephantUpsertOne) AddEbutton(v int32) *DeviceDurationElephantUpsertOne
AddEbutton adds v to the "ebutton" field.
func (*DeviceDurationElephantUpsertOne) AddRunning ¶
func (u *DeviceDurationElephantUpsertOne) AddRunning(v int32) *DeviceDurationElephantUpsertOne
AddRunning adds v to the "running" field.
func (*DeviceDurationElephantUpsertOne) AddSort ¶
func (u *DeviceDurationElephantUpsertOne) AddSort(v uint32) *DeviceDurationElephantUpsertOne
AddSort adds v to the "sort" field.
func (*DeviceDurationElephantUpsertOne) AddStatus ¶
func (u *DeviceDurationElephantUpsertOne) AddStatus(v uint8) *DeviceDurationElephantUpsertOne
AddStatus adds v to the "status" field.
func (*DeviceDurationElephantUpsertOne) ClearConnected ¶
func (u *DeviceDurationElephantUpsertOne) ClearConnected() *DeviceDurationElephantUpsertOne
ClearConnected clears the value of the "connected" field.
func (*DeviceDurationElephantUpsertOne) ClearDate ¶
func (u *DeviceDurationElephantUpsertOne) ClearDate() *DeviceDurationElephantUpsertOne
ClearDate clears the value of the "date" field.
func (*DeviceDurationElephantUpsertOne) ClearDayJson ¶
func (u *DeviceDurationElephantUpsertOne) ClearDayJson() *DeviceDurationElephantUpsertOne
ClearDayJson clears the value of the "dayJson" field.
func (*DeviceDurationElephantUpsertOne) ClearEbutton ¶
func (u *DeviceDurationElephantUpsertOne) ClearEbutton() *DeviceDurationElephantUpsertOne
ClearEbutton clears the value of the "ebutton" field.
func (*DeviceDurationElephantUpsertOne) ClearRunning ¶
func (u *DeviceDurationElephantUpsertOne) ClearRunning() *DeviceDurationElephantUpsertOne
ClearRunning clears the value of the "running" field.
func (*DeviceDurationElephantUpsertOne) ClearStatus ¶
func (u *DeviceDurationElephantUpsertOne) ClearStatus() *DeviceDurationElephantUpsertOne
ClearStatus clears the value of the "status" field.
func (*DeviceDurationElephantUpsertOne) DoNothing ¶
func (u *DeviceDurationElephantUpsertOne) DoNothing() *DeviceDurationElephantUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*DeviceDurationElephantUpsertOne) Exec ¶
func (u *DeviceDurationElephantUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceDurationElephantUpsertOne) ExecX ¶
func (u *DeviceDurationElephantUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceDurationElephantUpsertOne) ID ¶
func (u *DeviceDurationElephantUpsertOne) ID(ctx context.Context) (id uint64, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*DeviceDurationElephantUpsertOne) IDX ¶
func (u *DeviceDurationElephantUpsertOne) IDX(ctx context.Context) uint64
IDX is like ID, but panics if an error occurs.
func (*DeviceDurationElephantUpsertOne) Ignore ¶
func (u *DeviceDurationElephantUpsertOne) Ignore() *DeviceDurationElephantUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.DeviceDurationElephant.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*DeviceDurationElephantUpsertOne) SetConnected ¶
func (u *DeviceDurationElephantUpsertOne) SetConnected(v int32) *DeviceDurationElephantUpsertOne
SetConnected sets the "connected" field.
func (*DeviceDurationElephantUpsertOne) SetDate ¶
func (u *DeviceDurationElephantUpsertOne) SetDate(v string) *DeviceDurationElephantUpsertOne
SetDate sets the "date" field.
func (*DeviceDurationElephantUpsertOne) SetDayJson ¶
func (u *DeviceDurationElephantUpsertOne) SetDayJson(v string) *DeviceDurationElephantUpsertOne
SetDayJson sets the "dayJson" field.
func (*DeviceDurationElephantUpsertOne) SetDeviceName ¶
func (u *DeviceDurationElephantUpsertOne) SetDeviceName(v string) *DeviceDurationElephantUpsertOne
SetDeviceName sets the "deviceName" field.
func (*DeviceDurationElephantUpsertOne) SetEbutton ¶
func (u *DeviceDurationElephantUpsertOne) SetEbutton(v int32) *DeviceDurationElephantUpsertOne
SetEbutton sets the "ebutton" field.
func (*DeviceDurationElephantUpsertOne) SetIotID ¶
func (u *DeviceDurationElephantUpsertOne) SetIotID(v string) *DeviceDurationElephantUpsertOne
SetIotID sets the "iotID" field.
func (*DeviceDurationElephantUpsertOne) SetProductKey ¶
func (u *DeviceDurationElephantUpsertOne) SetProductKey(v string) *DeviceDurationElephantUpsertOne
SetProductKey sets the "productKey" field.
func (*DeviceDurationElephantUpsertOne) SetRunning ¶
func (u *DeviceDurationElephantUpsertOne) SetRunning(v int32) *DeviceDurationElephantUpsertOne
SetRunning sets the "running" field.
func (*DeviceDurationElephantUpsertOne) SetSort ¶
func (u *DeviceDurationElephantUpsertOne) SetSort(v uint32) *DeviceDurationElephantUpsertOne
SetSort sets the "sort" field.
func (*DeviceDurationElephantUpsertOne) SetStatus ¶
func (u *DeviceDurationElephantUpsertOne) SetStatus(v uint8) *DeviceDurationElephantUpsertOne
SetStatus sets the "status" field.
func (*DeviceDurationElephantUpsertOne) SetUpdatedAt ¶
func (u *DeviceDurationElephantUpsertOne) SetUpdatedAt(v time.Time) *DeviceDurationElephantUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*DeviceDurationElephantUpsertOne) Update ¶
func (u *DeviceDurationElephantUpsertOne) Update(set func(*DeviceDurationElephantUpsert)) *DeviceDurationElephantUpsertOne
Update allows overriding fields `UPDATE` values. See the DeviceDurationElephantCreate.OnConflict documentation for more info.
func (*DeviceDurationElephantUpsertOne) UpdateConnected ¶
func (u *DeviceDurationElephantUpsertOne) UpdateConnected() *DeviceDurationElephantUpsertOne
UpdateConnected sets the "connected" field to the value that was provided on create.
func (*DeviceDurationElephantUpsertOne) UpdateDate ¶
func (u *DeviceDurationElephantUpsertOne) UpdateDate() *DeviceDurationElephantUpsertOne
UpdateDate sets the "date" field to the value that was provided on create.
func (*DeviceDurationElephantUpsertOne) UpdateDayJson ¶
func (u *DeviceDurationElephantUpsertOne) UpdateDayJson() *DeviceDurationElephantUpsertOne
UpdateDayJson sets the "dayJson" field to the value that was provided on create.
func (*DeviceDurationElephantUpsertOne) UpdateDeviceName ¶
func (u *DeviceDurationElephantUpsertOne) UpdateDeviceName() *DeviceDurationElephantUpsertOne
UpdateDeviceName sets the "deviceName" field to the value that was provided on create.
func (*DeviceDurationElephantUpsertOne) UpdateEbutton ¶
func (u *DeviceDurationElephantUpsertOne) UpdateEbutton() *DeviceDurationElephantUpsertOne
UpdateEbutton sets the "ebutton" field to the value that was provided on create.
func (*DeviceDurationElephantUpsertOne) UpdateIotID ¶
func (u *DeviceDurationElephantUpsertOne) UpdateIotID() *DeviceDurationElephantUpsertOne
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DeviceDurationElephantUpsertOne) UpdateNewValues ¶
func (u *DeviceDurationElephantUpsertOne) UpdateNewValues() *DeviceDurationElephantUpsertOne
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.DeviceDurationElephant.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(devicedurationelephant.FieldID) }), ). Exec(ctx)
func (*DeviceDurationElephantUpsertOne) UpdateProductKey ¶
func (u *DeviceDurationElephantUpsertOne) UpdateProductKey() *DeviceDurationElephantUpsertOne
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*DeviceDurationElephantUpsertOne) UpdateRunning ¶
func (u *DeviceDurationElephantUpsertOne) UpdateRunning() *DeviceDurationElephantUpsertOne
UpdateRunning sets the "running" field to the value that was provided on create.
func (*DeviceDurationElephantUpsertOne) UpdateSort ¶
func (u *DeviceDurationElephantUpsertOne) UpdateSort() *DeviceDurationElephantUpsertOne
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DeviceDurationElephantUpsertOne) UpdateStatus ¶
func (u *DeviceDurationElephantUpsertOne) UpdateStatus() *DeviceDurationElephantUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DeviceDurationElephantUpsertOne) UpdateUpdatedAt ¶
func (u *DeviceDurationElephantUpsertOne) UpdateUpdatedAt() *DeviceDurationElephantUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type DeviceDurationElephants ¶
type DeviceDurationElephants []*DeviceDurationElephant
DeviceDurationElephants is a parsable slice of DeviceDurationElephant.
type DeviceDurationGroupBy ¶
type DeviceDurationGroupBy struct {
// contains filtered or unexported fields
}
DeviceDurationGroupBy is the group-by builder for DeviceDuration entities.
func (*DeviceDurationGroupBy) Aggregate ¶
func (ddgb *DeviceDurationGroupBy) Aggregate(fns ...AggregateFunc) *DeviceDurationGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*DeviceDurationGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DeviceDurationGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*DeviceDurationGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DeviceDurationGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DeviceDurationGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*DeviceDurationGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DeviceDurationGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*DeviceDurationGroupBy) Scan ¶
func (ddgb *DeviceDurationGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*DeviceDurationGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type DeviceDurationMutation ¶
type DeviceDurationMutation struct {
// contains filtered or unexported fields
}
DeviceDurationMutation represents an operation that mutates the DeviceDuration nodes in the graph.
func (*DeviceDurationMutation) AddEbutton ¶
func (m *DeviceDurationMutation) AddEbutton(i int32)
AddEbutton adds i to the "ebutton" field.
func (*DeviceDurationMutation) AddField ¶
func (m *DeviceDurationMutation) 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 (*DeviceDurationMutation) AddPreparation ¶
func (m *DeviceDurationMutation) AddPreparation(i int32)
AddPreparation adds i to the "preparation" field.
func (*DeviceDurationMutation) AddSort ¶
func (m *DeviceDurationMutation) AddSort(u int32)
AddSort adds u to the "sort" field.
func (*DeviceDurationMutation) AddStandBy ¶
func (m *DeviceDurationMutation) AddStandBy(i int32)
AddStandBy adds i to the "standBy" field.
func (*DeviceDurationMutation) AddStatus ¶
func (m *DeviceDurationMutation) AddStatus(u int8)
AddStatus adds u to the "status" field.
func (*DeviceDurationMutation) AddWaiting ¶
func (m *DeviceDurationMutation) AddWaiting(i int32)
AddWaiting adds i to the "waiting" field.
func (*DeviceDurationMutation) AddWashing ¶
func (m *DeviceDurationMutation) AddWashing(i int32)
AddWashing adds i to the "washing" field.
func (*DeviceDurationMutation) AddWashingCold ¶
func (m *DeviceDurationMutation) AddWashingCold(i int32)
AddWashingCold adds i to the "washingCold" field.
func (*DeviceDurationMutation) AddedEbutton ¶
func (m *DeviceDurationMutation) AddedEbutton() (r int32, exists bool)
AddedEbutton returns the value that was added to the "ebutton" field in this mutation.
func (*DeviceDurationMutation) AddedEdges ¶
func (m *DeviceDurationMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*DeviceDurationMutation) AddedField ¶
func (m *DeviceDurationMutation) 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 (*DeviceDurationMutation) AddedFields ¶
func (m *DeviceDurationMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*DeviceDurationMutation) AddedIDs ¶
func (m *DeviceDurationMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*DeviceDurationMutation) AddedPreparation ¶
func (m *DeviceDurationMutation) AddedPreparation() (r int32, exists bool)
AddedPreparation returns the value that was added to the "preparation" field in this mutation.
func (*DeviceDurationMutation) AddedSort ¶
func (m *DeviceDurationMutation) AddedSort() (r int32, exists bool)
AddedSort returns the value that was added to the "sort" field in this mutation.
func (*DeviceDurationMutation) AddedStandBy ¶
func (m *DeviceDurationMutation) AddedStandBy() (r int32, exists bool)
AddedStandBy returns the value that was added to the "standBy" field in this mutation.
func (*DeviceDurationMutation) AddedStatus ¶
func (m *DeviceDurationMutation) AddedStatus() (r int8, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*DeviceDurationMutation) AddedWaiting ¶
func (m *DeviceDurationMutation) AddedWaiting() (r int32, exists bool)
AddedWaiting returns the value that was added to the "waiting" field in this mutation.
func (*DeviceDurationMutation) AddedWashing ¶
func (m *DeviceDurationMutation) AddedWashing() (r int32, exists bool)
AddedWashing returns the value that was added to the "washing" field in this mutation.
func (*DeviceDurationMutation) AddedWashingCold ¶
func (m *DeviceDurationMutation) AddedWashingCold() (r int32, exists bool)
AddedWashingCold returns the value that was added to the "washingCold" field in this mutation.
func (*DeviceDurationMutation) ClearDate ¶
func (m *DeviceDurationMutation) ClearDate()
ClearDate clears the value of the "date" field.
func (*DeviceDurationMutation) ClearDayJson ¶
func (m *DeviceDurationMutation) ClearDayJson()
ClearDayJson clears the value of the "dayJson" field.
func (*DeviceDurationMutation) ClearEbutton ¶
func (m *DeviceDurationMutation) ClearEbutton()
ClearEbutton clears the value of the "ebutton" field.
func (*DeviceDurationMutation) ClearEdge ¶
func (m *DeviceDurationMutation) 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 (*DeviceDurationMutation) ClearField ¶
func (m *DeviceDurationMutation) 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 (*DeviceDurationMutation) ClearPreparation ¶
func (m *DeviceDurationMutation) ClearPreparation()
ClearPreparation clears the value of the "preparation" field.
func (*DeviceDurationMutation) ClearStandBy ¶
func (m *DeviceDurationMutation) ClearStandBy()
ClearStandBy clears the value of the "standBy" field.
func (*DeviceDurationMutation) ClearStatus ¶
func (m *DeviceDurationMutation) ClearStatus()
ClearStatus clears the value of the "status" field.
func (*DeviceDurationMutation) ClearWaiting ¶
func (m *DeviceDurationMutation) ClearWaiting()
ClearWaiting clears the value of the "waiting" field.
func (*DeviceDurationMutation) ClearWashing ¶
func (m *DeviceDurationMutation) ClearWashing()
ClearWashing clears the value of the "washing" field.
func (*DeviceDurationMutation) ClearWashingCold ¶
func (m *DeviceDurationMutation) ClearWashingCold()
ClearWashingCold clears the value of the "washingCold" field.
func (*DeviceDurationMutation) ClearedEdges ¶
func (m *DeviceDurationMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*DeviceDurationMutation) ClearedFields ¶
func (m *DeviceDurationMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (DeviceDurationMutation) Client ¶
func (m DeviceDurationMutation) 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 (*DeviceDurationMutation) CreatedAt ¶
func (m *DeviceDurationMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*DeviceDurationMutation) Date ¶
func (m *DeviceDurationMutation) Date() (r string, exists bool)
Date returns the value of the "date" field in the mutation.
func (*DeviceDurationMutation) DateCleared ¶
func (m *DeviceDurationMutation) DateCleared() bool
DateCleared returns if the "date" field was cleared in this mutation.
func (*DeviceDurationMutation) DayJson ¶
func (m *DeviceDurationMutation) DayJson() (r string, exists bool)
DayJson returns the value of the "dayJson" field in the mutation.
func (*DeviceDurationMutation) DayJsonCleared ¶
func (m *DeviceDurationMutation) DayJsonCleared() bool
DayJsonCleared returns if the "dayJson" field was cleared in this mutation.
func (*DeviceDurationMutation) DeviceName ¶
func (m *DeviceDurationMutation) DeviceName() (r string, exists bool)
DeviceName returns the value of the "deviceName" field in the mutation.
func (*DeviceDurationMutation) Ebutton ¶
func (m *DeviceDurationMutation) Ebutton() (r int32, exists bool)
Ebutton returns the value of the "ebutton" field in the mutation.
func (*DeviceDurationMutation) EbuttonCleared ¶
func (m *DeviceDurationMutation) EbuttonCleared() bool
EbuttonCleared returns if the "ebutton" field was cleared in this mutation.
func (*DeviceDurationMutation) EdgeCleared ¶
func (m *DeviceDurationMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*DeviceDurationMutation) ExecContext ¶
func (c *DeviceDurationMutation) 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 (*DeviceDurationMutation) Field ¶
func (m *DeviceDurationMutation) 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 (*DeviceDurationMutation) FieldCleared ¶
func (m *DeviceDurationMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*DeviceDurationMutation) Fields ¶
func (m *DeviceDurationMutation) 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 (*DeviceDurationMutation) ID ¶
func (m *DeviceDurationMutation) ID() (id uint64, 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 (*DeviceDurationMutation) IDs ¶
func (m *DeviceDurationMutation) IDs(ctx context.Context) ([]uint64, 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 (*DeviceDurationMutation) IotID ¶
func (m *DeviceDurationMutation) IotID() (r string, exists bool)
IotID returns the value of the "iotID" field in the mutation.
func (*DeviceDurationMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the DeviceDuration entity. If the DeviceDuration 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 (*DeviceDurationMutation) OldDate ¶
func (m *DeviceDurationMutation) OldDate(ctx context.Context) (v string, err error)
OldDate returns the old "date" field's value of the DeviceDuration entity. If the DeviceDuration 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 (*DeviceDurationMutation) OldDayJson ¶
func (m *DeviceDurationMutation) OldDayJson(ctx context.Context) (v string, err error)
OldDayJson returns the old "dayJson" field's value of the DeviceDuration entity. If the DeviceDuration 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 (*DeviceDurationMutation) OldDeviceName ¶
func (m *DeviceDurationMutation) OldDeviceName(ctx context.Context) (v string, err error)
OldDeviceName returns the old "deviceName" field's value of the DeviceDuration entity. If the DeviceDuration 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 (*DeviceDurationMutation) OldEbutton ¶
func (m *DeviceDurationMutation) OldEbutton(ctx context.Context) (v int32, err error)
OldEbutton returns the old "ebutton" field's value of the DeviceDuration entity. If the DeviceDuration 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 (*DeviceDurationMutation) 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 (*DeviceDurationMutation) OldIotID ¶
func (m *DeviceDurationMutation) OldIotID(ctx context.Context) (v string, err error)
OldIotID returns the old "iotID" field's value of the DeviceDuration entity. If the DeviceDuration 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 (*DeviceDurationMutation) OldPreparation ¶
func (m *DeviceDurationMutation) OldPreparation(ctx context.Context) (v int32, err error)
OldPreparation returns the old "preparation" field's value of the DeviceDuration entity. If the DeviceDuration 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 (*DeviceDurationMutation) OldProductKey ¶
func (m *DeviceDurationMutation) OldProductKey(ctx context.Context) (v string, err error)
OldProductKey returns the old "productKey" field's value of the DeviceDuration entity. If the DeviceDuration 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 (*DeviceDurationMutation) OldSort ¶
func (m *DeviceDurationMutation) OldSort(ctx context.Context) (v uint32, err error)
OldSort returns the old "sort" field's value of the DeviceDuration entity. If the DeviceDuration 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 (*DeviceDurationMutation) OldStandBy ¶
func (m *DeviceDurationMutation) OldStandBy(ctx context.Context) (v int32, err error)
OldStandBy returns the old "standBy" field's value of the DeviceDuration entity. If the DeviceDuration 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 (*DeviceDurationMutation) OldStatus ¶
func (m *DeviceDurationMutation) OldStatus(ctx context.Context) (v uint8, err error)
OldStatus returns the old "status" field's value of the DeviceDuration entity. If the DeviceDuration 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 (*DeviceDurationMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the DeviceDuration entity. If the DeviceDuration 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 (*DeviceDurationMutation) OldWaiting ¶
func (m *DeviceDurationMutation) OldWaiting(ctx context.Context) (v int32, err error)
OldWaiting returns the old "waiting" field's value of the DeviceDuration entity. If the DeviceDuration 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 (*DeviceDurationMutation) OldWashing ¶
func (m *DeviceDurationMutation) OldWashing(ctx context.Context) (v int32, err error)
OldWashing returns the old "washing" field's value of the DeviceDuration entity. If the DeviceDuration 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 (*DeviceDurationMutation) OldWashingCold ¶
func (m *DeviceDurationMutation) OldWashingCold(ctx context.Context) (v int32, err error)
OldWashingCold returns the old "washingCold" field's value of the DeviceDuration entity. If the DeviceDuration 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 (*DeviceDurationMutation) Op ¶
func (m *DeviceDurationMutation) Op() Op
Op returns the operation name.
func (*DeviceDurationMutation) Preparation ¶
func (m *DeviceDurationMutation) Preparation() (r int32, exists bool)
Preparation returns the value of the "preparation" field in the mutation.
func (*DeviceDurationMutation) PreparationCleared ¶
func (m *DeviceDurationMutation) PreparationCleared() bool
PreparationCleared returns if the "preparation" field was cleared in this mutation.
func (*DeviceDurationMutation) ProductKey ¶
func (m *DeviceDurationMutation) ProductKey() (r string, exists bool)
ProductKey returns the value of the "productKey" field in the mutation.
func (*DeviceDurationMutation) QueryContext ¶
func (c *DeviceDurationMutation) 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 (*DeviceDurationMutation) RemovedEdges ¶
func (m *DeviceDurationMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*DeviceDurationMutation) RemovedIDs ¶
func (m *DeviceDurationMutation) 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 (*DeviceDurationMutation) ResetCreatedAt ¶
func (m *DeviceDurationMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*DeviceDurationMutation) ResetDate ¶
func (m *DeviceDurationMutation) ResetDate()
ResetDate resets all changes to the "date" field.
func (*DeviceDurationMutation) ResetDayJson ¶
func (m *DeviceDurationMutation) ResetDayJson()
ResetDayJson resets all changes to the "dayJson" field.
func (*DeviceDurationMutation) ResetDeviceName ¶
func (m *DeviceDurationMutation) ResetDeviceName()
ResetDeviceName resets all changes to the "deviceName" field.
func (*DeviceDurationMutation) ResetEbutton ¶
func (m *DeviceDurationMutation) ResetEbutton()
ResetEbutton resets all changes to the "ebutton" field.
func (*DeviceDurationMutation) ResetEdge ¶
func (m *DeviceDurationMutation) 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 (*DeviceDurationMutation) ResetField ¶
func (m *DeviceDurationMutation) 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 (*DeviceDurationMutation) ResetIotID ¶
func (m *DeviceDurationMutation) ResetIotID()
ResetIotID resets all changes to the "iotID" field.
func (*DeviceDurationMutation) ResetPreparation ¶
func (m *DeviceDurationMutation) ResetPreparation()
ResetPreparation resets all changes to the "preparation" field.
func (*DeviceDurationMutation) ResetProductKey ¶
func (m *DeviceDurationMutation) ResetProductKey()
ResetProductKey resets all changes to the "productKey" field.
func (*DeviceDurationMutation) ResetSort ¶
func (m *DeviceDurationMutation) ResetSort()
ResetSort resets all changes to the "sort" field.
func (*DeviceDurationMutation) ResetStandBy ¶
func (m *DeviceDurationMutation) ResetStandBy()
ResetStandBy resets all changes to the "standBy" field.
func (*DeviceDurationMutation) ResetStatus ¶
func (m *DeviceDurationMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*DeviceDurationMutation) ResetUpdatedAt ¶
func (m *DeviceDurationMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*DeviceDurationMutation) ResetWaiting ¶
func (m *DeviceDurationMutation) ResetWaiting()
ResetWaiting resets all changes to the "waiting" field.
func (*DeviceDurationMutation) ResetWashing ¶
func (m *DeviceDurationMutation) ResetWashing()
ResetWashing resets all changes to the "washing" field.
func (*DeviceDurationMutation) ResetWashingCold ¶
func (m *DeviceDurationMutation) ResetWashingCold()
ResetWashingCold resets all changes to the "washingCold" field.
func (*DeviceDurationMutation) SetCreatedAt ¶
func (m *DeviceDurationMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*DeviceDurationMutation) SetDate ¶
func (m *DeviceDurationMutation) SetDate(s string)
SetDate sets the "date" field.
func (*DeviceDurationMutation) SetDayJson ¶
func (m *DeviceDurationMutation) SetDayJson(s string)
SetDayJson sets the "dayJson" field.
func (*DeviceDurationMutation) SetDeviceName ¶
func (m *DeviceDurationMutation) SetDeviceName(s string)
SetDeviceName sets the "deviceName" field.
func (*DeviceDurationMutation) SetEbutton ¶
func (m *DeviceDurationMutation) SetEbutton(i int32)
SetEbutton sets the "ebutton" field.
func (*DeviceDurationMutation) SetField ¶
func (m *DeviceDurationMutation) 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 (*DeviceDurationMutation) SetID ¶
func (m *DeviceDurationMutation) SetID(id uint64)
SetID sets the value of the id field. Note that this operation is only accepted on creation of DeviceDuration entities.
func (*DeviceDurationMutation) SetIotID ¶
func (m *DeviceDurationMutation) SetIotID(s string)
SetIotID sets the "iotID" field.
func (*DeviceDurationMutation) SetOp ¶
func (m *DeviceDurationMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*DeviceDurationMutation) SetPreparation ¶
func (m *DeviceDurationMutation) SetPreparation(i int32)
SetPreparation sets the "preparation" field.
func (*DeviceDurationMutation) SetProductKey ¶
func (m *DeviceDurationMutation) SetProductKey(s string)
SetProductKey sets the "productKey" field.
func (*DeviceDurationMutation) SetSort ¶
func (m *DeviceDurationMutation) SetSort(u uint32)
SetSort sets the "sort" field.
func (*DeviceDurationMutation) SetStandBy ¶
func (m *DeviceDurationMutation) SetStandBy(i int32)
SetStandBy sets the "standBy" field.
func (*DeviceDurationMutation) SetStatus ¶
func (m *DeviceDurationMutation) SetStatus(u uint8)
SetStatus sets the "status" field.
func (*DeviceDurationMutation) SetUpdatedAt ¶
func (m *DeviceDurationMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*DeviceDurationMutation) SetWaiting ¶
func (m *DeviceDurationMutation) SetWaiting(i int32)
SetWaiting sets the "waiting" field.
func (*DeviceDurationMutation) SetWashing ¶
func (m *DeviceDurationMutation) SetWashing(i int32)
SetWashing sets the "washing" field.
func (*DeviceDurationMutation) SetWashingCold ¶
func (m *DeviceDurationMutation) SetWashingCold(i int32)
SetWashingCold sets the "washingCold" field.
func (*DeviceDurationMutation) Sort ¶
func (m *DeviceDurationMutation) Sort() (r uint32, exists bool)
Sort returns the value of the "sort" field in the mutation.
func (*DeviceDurationMutation) StandBy ¶
func (m *DeviceDurationMutation) StandBy() (r int32, exists bool)
StandBy returns the value of the "standBy" field in the mutation.
func (*DeviceDurationMutation) StandByCleared ¶
func (m *DeviceDurationMutation) StandByCleared() bool
StandByCleared returns if the "standBy" field was cleared in this mutation.
func (*DeviceDurationMutation) Status ¶
func (m *DeviceDurationMutation) Status() (r uint8, exists bool)
Status returns the value of the "status" field in the mutation.
func (*DeviceDurationMutation) StatusCleared ¶
func (m *DeviceDurationMutation) StatusCleared() bool
StatusCleared returns if the "status" field was cleared in this mutation.
func (DeviceDurationMutation) Tx ¶
func (m DeviceDurationMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*DeviceDurationMutation) Type ¶
func (m *DeviceDurationMutation) Type() string
Type returns the node type of this mutation (DeviceDuration).
func (*DeviceDurationMutation) UpdatedAt ¶
func (m *DeviceDurationMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*DeviceDurationMutation) Waiting ¶
func (m *DeviceDurationMutation) Waiting() (r int32, exists bool)
Waiting returns the value of the "waiting" field in the mutation.
func (*DeviceDurationMutation) WaitingCleared ¶
func (m *DeviceDurationMutation) WaitingCleared() bool
WaitingCleared returns if the "waiting" field was cleared in this mutation.
func (*DeviceDurationMutation) Washing ¶
func (m *DeviceDurationMutation) Washing() (r int32, exists bool)
Washing returns the value of the "washing" field in the mutation.
func (*DeviceDurationMutation) WashingCleared ¶
func (m *DeviceDurationMutation) WashingCleared() bool
WashingCleared returns if the "washing" field was cleared in this mutation.
func (*DeviceDurationMutation) WashingCold ¶
func (m *DeviceDurationMutation) WashingCold() (r int32, exists bool)
WashingCold returns the value of the "washingCold" field in the mutation.
func (*DeviceDurationMutation) WashingColdCleared ¶
func (m *DeviceDurationMutation) WashingColdCleared() bool
WashingColdCleared returns if the "washingCold" field was cleared in this mutation.
func (*DeviceDurationMutation) Where ¶
func (m *DeviceDurationMutation) Where(ps ...predicate.DeviceDuration)
Where appends a list predicates to the DeviceDurationMutation builder.
func (*DeviceDurationMutation) WhereP ¶
func (m *DeviceDurationMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the DeviceDurationMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type DeviceDurationPageList ¶
type DeviceDurationPageList struct { List []*DeviceDuration `json:"list"` PageDetails *PageDetails `json:"pageDetails"` }
DeviceDurationPageList is DeviceDuration PageList result.
type DeviceDurationPager ¶
type DeviceDurationPager struct { Order deviceduration.OrderOption Filter func(*DeviceDurationQuery) (*DeviceDurationQuery, error) }
func (*DeviceDurationPager) ApplyFilter ¶
func (p *DeviceDurationPager) ApplyFilter(query *DeviceDurationQuery) (*DeviceDurationQuery, error)
type DeviceDurationPaginateOption ¶
type DeviceDurationPaginateOption func(*DeviceDurationPager)
DeviceDurationPaginateOption enables pagination customization.
type DeviceDurationQuery ¶
type DeviceDurationQuery struct {
// contains filtered or unexported fields
}
DeviceDurationQuery is the builder for querying DeviceDuration entities.
func (*DeviceDurationQuery) Aggregate ¶
func (ddq *DeviceDurationQuery) Aggregate(fns ...AggregateFunc) *DeviceDurationSelect
Aggregate returns a DeviceDurationSelect configured with the given aggregations.
func (*DeviceDurationQuery) All ¶
func (ddq *DeviceDurationQuery) All(ctx context.Context) ([]*DeviceDuration, error)
All executes the query and returns a list of DeviceDurations.
func (*DeviceDurationQuery) AllX ¶
func (ddq *DeviceDurationQuery) AllX(ctx context.Context) []*DeviceDuration
AllX is like All, but panics if an error occurs.
func (*DeviceDurationQuery) Clone ¶
func (ddq *DeviceDurationQuery) Clone() *DeviceDurationQuery
Clone returns a duplicate of the DeviceDurationQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*DeviceDurationQuery) Count ¶
func (ddq *DeviceDurationQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*DeviceDurationQuery) CountX ¶
func (ddq *DeviceDurationQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*DeviceDurationQuery) ExecContext ¶
func (c *DeviceDurationQuery) 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 (*DeviceDurationQuery) Exist ¶
func (ddq *DeviceDurationQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*DeviceDurationQuery) ExistX ¶
func (ddq *DeviceDurationQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*DeviceDurationQuery) First ¶
func (ddq *DeviceDurationQuery) First(ctx context.Context) (*DeviceDuration, error)
First returns the first DeviceDuration entity from the query. Returns a *NotFoundError when no DeviceDuration was found.
func (*DeviceDurationQuery) FirstID ¶
func (ddq *DeviceDurationQuery) FirstID(ctx context.Context) (id uint64, err error)
FirstID returns the first DeviceDuration ID from the query. Returns a *NotFoundError when no DeviceDuration ID was found.
func (*DeviceDurationQuery) FirstIDX ¶
func (ddq *DeviceDurationQuery) FirstIDX(ctx context.Context) uint64
FirstIDX is like FirstID, but panics if an error occurs.
func (*DeviceDurationQuery) FirstX ¶
func (ddq *DeviceDurationQuery) FirstX(ctx context.Context) *DeviceDuration
FirstX is like First, but panics if an error occurs.
func (*DeviceDurationQuery) GroupBy ¶
func (ddq *DeviceDurationQuery) GroupBy(field string, fields ...string) *DeviceDurationGroupBy
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.DeviceDuration.Query(). GroupBy(deviceduration.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*DeviceDurationQuery) IDs ¶
func (ddq *DeviceDurationQuery) IDs(ctx context.Context) (ids []uint64, err error)
IDs executes the query and returns a list of DeviceDuration IDs.
func (*DeviceDurationQuery) IDsX ¶
func (ddq *DeviceDurationQuery) IDsX(ctx context.Context) []uint64
IDsX is like IDs, but panics if an error occurs.
func (*DeviceDurationQuery) Limit ¶
func (ddq *DeviceDurationQuery) Limit(limit int) *DeviceDurationQuery
Limit the number of records to be returned by this query.
func (*DeviceDurationQuery) Modify ¶
func (ddq *DeviceDurationQuery) Modify(modifiers ...func(s *sql.Selector)) *DeviceDurationSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*DeviceDurationQuery) Offset ¶
func (ddq *DeviceDurationQuery) Offset(offset int) *DeviceDurationQuery
Offset to start from.
func (*DeviceDurationQuery) Only ¶
func (ddq *DeviceDurationQuery) Only(ctx context.Context) (*DeviceDuration, error)
Only returns a single DeviceDuration entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one DeviceDuration entity is found. Returns a *NotFoundError when no DeviceDuration entities are found.
func (*DeviceDurationQuery) OnlyID ¶
func (ddq *DeviceDurationQuery) OnlyID(ctx context.Context) (id uint64, err error)
OnlyID is like Only, but returns the only DeviceDuration ID in the query. Returns a *NotSingularError when more than one DeviceDuration ID is found. Returns a *NotFoundError when no entities are found.
func (*DeviceDurationQuery) OnlyIDX ¶
func (ddq *DeviceDurationQuery) OnlyIDX(ctx context.Context) uint64
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*DeviceDurationQuery) OnlyX ¶
func (ddq *DeviceDurationQuery) OnlyX(ctx context.Context) *DeviceDuration
OnlyX is like Only, but panics if an error occurs.
func (*DeviceDurationQuery) Order ¶
func (ddq *DeviceDurationQuery) Order(o ...deviceduration.OrderOption) *DeviceDurationQuery
Order specifies how the records should be ordered.
func (*DeviceDurationQuery) Page ¶
func (dd *DeviceDurationQuery) Page( ctx context.Context, pageNum uint64, pageSize uint64, opts ...DeviceDurationPaginateOption, ) (*DeviceDurationPageList, error)
func (*DeviceDurationQuery) QueryContext ¶
func (c *DeviceDurationQuery) 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 (*DeviceDurationQuery) Select ¶
func (ddq *DeviceDurationQuery) Select(fields ...string) *DeviceDurationSelect
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.DeviceDuration.Query(). Select(deviceduration.FieldCreatedAt). Scan(ctx, &v)
func (*DeviceDurationQuery) Unique ¶
func (ddq *DeviceDurationQuery) Unique(unique bool) *DeviceDurationQuery
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 (*DeviceDurationQuery) Where ¶
func (ddq *DeviceDurationQuery) Where(ps ...predicate.DeviceDuration) *DeviceDurationQuery
Where adds a new predicate for the DeviceDurationQuery builder.
type DeviceDurationSelect ¶
type DeviceDurationSelect struct { *DeviceDurationQuery // contains filtered or unexported fields }
DeviceDurationSelect is the builder for selecting fields of DeviceDuration entities.
func (*DeviceDurationSelect) Aggregate ¶
func (dds *DeviceDurationSelect) Aggregate(fns ...AggregateFunc) *DeviceDurationSelect
Aggregate adds the given aggregation functions to the selector query.
func (*DeviceDurationSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DeviceDurationSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (DeviceDurationSelect) ExecContext ¶
func (c DeviceDurationSelect) 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 (*DeviceDurationSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DeviceDurationSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DeviceDurationSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DeviceDurationSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*DeviceDurationSelect) Modify ¶
func (dds *DeviceDurationSelect) Modify(modifiers ...func(s *sql.Selector)) *DeviceDurationSelect
Modify adds a query modifier for attaching custom logic to queries.
func (DeviceDurationSelect) QueryContext ¶
func (c DeviceDurationSelect) 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 (*DeviceDurationSelect) Scan ¶
func (dds *DeviceDurationSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*DeviceDurationSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type DeviceDurationUpdate ¶
type DeviceDurationUpdate struct {
// contains filtered or unexported fields
}
DeviceDurationUpdate is the builder for updating DeviceDuration entities.
func (*DeviceDurationUpdate) AddEbutton ¶
func (ddu *DeviceDurationUpdate) AddEbutton(i int32) *DeviceDurationUpdate
AddEbutton adds i to the "ebutton" field.
func (*DeviceDurationUpdate) AddPreparation ¶
func (ddu *DeviceDurationUpdate) AddPreparation(i int32) *DeviceDurationUpdate
AddPreparation adds i to the "preparation" field.
func (*DeviceDurationUpdate) AddSort ¶
func (ddu *DeviceDurationUpdate) AddSort(u int32) *DeviceDurationUpdate
AddSort adds u to the "sort" field.
func (*DeviceDurationUpdate) AddStandBy ¶
func (ddu *DeviceDurationUpdate) AddStandBy(i int32) *DeviceDurationUpdate
AddStandBy adds i to the "standBy" field.
func (*DeviceDurationUpdate) AddStatus ¶
func (ddu *DeviceDurationUpdate) AddStatus(u int8) *DeviceDurationUpdate
AddStatus adds u to the "status" field.
func (*DeviceDurationUpdate) AddWaiting ¶
func (ddu *DeviceDurationUpdate) AddWaiting(i int32) *DeviceDurationUpdate
AddWaiting adds i to the "waiting" field.
func (*DeviceDurationUpdate) AddWashing ¶
func (ddu *DeviceDurationUpdate) AddWashing(i int32) *DeviceDurationUpdate
AddWashing adds i to the "washing" field.
func (*DeviceDurationUpdate) AddWashingCold ¶
func (ddu *DeviceDurationUpdate) AddWashingCold(i int32) *DeviceDurationUpdate
AddWashingCold adds i to the "washingCold" field.
func (*DeviceDurationUpdate) ClearDate ¶
func (ddu *DeviceDurationUpdate) ClearDate() *DeviceDurationUpdate
ClearDate clears the value of the "date" field.
func (*DeviceDurationUpdate) ClearDayJson ¶
func (ddu *DeviceDurationUpdate) ClearDayJson() *DeviceDurationUpdate
ClearDayJson clears the value of the "dayJson" field.
func (*DeviceDurationUpdate) ClearEbutton ¶
func (ddu *DeviceDurationUpdate) ClearEbutton() *DeviceDurationUpdate
ClearEbutton clears the value of the "ebutton" field.
func (*DeviceDurationUpdate) ClearPreparation ¶
func (ddu *DeviceDurationUpdate) ClearPreparation() *DeviceDurationUpdate
ClearPreparation clears the value of the "preparation" field.
func (*DeviceDurationUpdate) ClearStandBy ¶
func (ddu *DeviceDurationUpdate) ClearStandBy() *DeviceDurationUpdate
ClearStandBy clears the value of the "standBy" field.
func (*DeviceDurationUpdate) ClearStatus ¶
func (ddu *DeviceDurationUpdate) ClearStatus() *DeviceDurationUpdate
ClearStatus clears the value of the "status" field.
func (*DeviceDurationUpdate) ClearWaiting ¶
func (ddu *DeviceDurationUpdate) ClearWaiting() *DeviceDurationUpdate
ClearWaiting clears the value of the "waiting" field.
func (*DeviceDurationUpdate) ClearWashing ¶
func (ddu *DeviceDurationUpdate) ClearWashing() *DeviceDurationUpdate
ClearWashing clears the value of the "washing" field.
func (*DeviceDurationUpdate) ClearWashingCold ¶
func (ddu *DeviceDurationUpdate) ClearWashingCold() *DeviceDurationUpdate
ClearWashingCold clears the value of the "washingCold" field.
func (*DeviceDurationUpdate) Exec ¶
func (ddu *DeviceDurationUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceDurationUpdate) ExecContext ¶
func (c *DeviceDurationUpdate) 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 (*DeviceDurationUpdate) ExecX ¶
func (ddu *DeviceDurationUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceDurationUpdate) Modify ¶
func (ddu *DeviceDurationUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceDurationUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*DeviceDurationUpdate) Mutation ¶
func (ddu *DeviceDurationUpdate) Mutation() *DeviceDurationMutation
Mutation returns the DeviceDurationMutation object of the builder.
func (*DeviceDurationUpdate) QueryContext ¶
func (c *DeviceDurationUpdate) 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 (*DeviceDurationUpdate) Save ¶
func (ddu *DeviceDurationUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*DeviceDurationUpdate) SaveX ¶
func (ddu *DeviceDurationUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*DeviceDurationUpdate) SetDate ¶
func (ddu *DeviceDurationUpdate) SetDate(s string) *DeviceDurationUpdate
SetDate sets the "date" field.
func (*DeviceDurationUpdate) SetDayJson ¶
func (ddu *DeviceDurationUpdate) SetDayJson(s string) *DeviceDurationUpdate
SetDayJson sets the "dayJson" field.
func (*DeviceDurationUpdate) SetDeviceName ¶
func (ddu *DeviceDurationUpdate) SetDeviceName(s string) *DeviceDurationUpdate
SetDeviceName sets the "deviceName" field.
func (*DeviceDurationUpdate) SetEbutton ¶
func (ddu *DeviceDurationUpdate) SetEbutton(i int32) *DeviceDurationUpdate
SetEbutton sets the "ebutton" field.
func (*DeviceDurationUpdate) SetIotID ¶
func (ddu *DeviceDurationUpdate) SetIotID(s string) *DeviceDurationUpdate
SetIotID sets the "iotID" field.
func (*DeviceDurationUpdate) SetNillableDate ¶
func (ddu *DeviceDurationUpdate) SetNillableDate(s *string) *DeviceDurationUpdate
SetNillableDate sets the "date" field if the given value is not nil.
func (*DeviceDurationUpdate) SetNillableDayJson ¶
func (ddu *DeviceDurationUpdate) SetNillableDayJson(s *string) *DeviceDurationUpdate
SetNillableDayJson sets the "dayJson" field if the given value is not nil.
func (*DeviceDurationUpdate) SetNillableDeviceName ¶
func (ddu *DeviceDurationUpdate) SetNillableDeviceName(s *string) *DeviceDurationUpdate
SetNillableDeviceName sets the "deviceName" field if the given value is not nil.
func (*DeviceDurationUpdate) SetNillableEbutton ¶
func (ddu *DeviceDurationUpdate) SetNillableEbutton(i *int32) *DeviceDurationUpdate
SetNillableEbutton sets the "ebutton" field if the given value is not nil.
func (*DeviceDurationUpdate) SetNillableIotID ¶
func (ddu *DeviceDurationUpdate) SetNillableIotID(s *string) *DeviceDurationUpdate
SetNillableIotID sets the "iotID" field if the given value is not nil.
func (*DeviceDurationUpdate) SetNillablePreparation ¶
func (ddu *DeviceDurationUpdate) SetNillablePreparation(i *int32) *DeviceDurationUpdate
SetNillablePreparation sets the "preparation" field if the given value is not nil.
func (*DeviceDurationUpdate) SetNillableProductKey ¶
func (ddu *DeviceDurationUpdate) SetNillableProductKey(s *string) *DeviceDurationUpdate
SetNillableProductKey sets the "productKey" field if the given value is not nil.
func (*DeviceDurationUpdate) SetNillableSort ¶
func (ddu *DeviceDurationUpdate) SetNillableSort(u *uint32) *DeviceDurationUpdate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DeviceDurationUpdate) SetNillableStandBy ¶
func (ddu *DeviceDurationUpdate) SetNillableStandBy(i *int32) *DeviceDurationUpdate
SetNillableStandBy sets the "standBy" field if the given value is not nil.
func (*DeviceDurationUpdate) SetNillableStatus ¶
func (ddu *DeviceDurationUpdate) SetNillableStatus(u *uint8) *DeviceDurationUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DeviceDurationUpdate) SetNillableWaiting ¶
func (ddu *DeviceDurationUpdate) SetNillableWaiting(i *int32) *DeviceDurationUpdate
SetNillableWaiting sets the "waiting" field if the given value is not nil.
func (*DeviceDurationUpdate) SetNillableWashing ¶
func (ddu *DeviceDurationUpdate) SetNillableWashing(i *int32) *DeviceDurationUpdate
SetNillableWashing sets the "washing" field if the given value is not nil.
func (*DeviceDurationUpdate) SetNillableWashingCold ¶
func (ddu *DeviceDurationUpdate) SetNillableWashingCold(i *int32) *DeviceDurationUpdate
SetNillableWashingCold sets the "washingCold" field if the given value is not nil.
func (*DeviceDurationUpdate) SetNotNilDate ¶
func (dd *DeviceDurationUpdate) SetNotNilDate(value *string) *DeviceDurationUpdate
set field if value's pointer is not nil.
func (*DeviceDurationUpdate) SetNotNilDayJson ¶
func (dd *DeviceDurationUpdate) SetNotNilDayJson(value *string) *DeviceDurationUpdate
set field if value's pointer is not nil.
func (*DeviceDurationUpdate) SetNotNilDeviceName ¶
func (dd *DeviceDurationUpdate) SetNotNilDeviceName(value *string) *DeviceDurationUpdate
set field if value's pointer is not nil.
func (*DeviceDurationUpdate) SetNotNilEbutton ¶
func (dd *DeviceDurationUpdate) SetNotNilEbutton(value *int32) *DeviceDurationUpdate
set field if value's pointer is not nil.
func (*DeviceDurationUpdate) SetNotNilIotID ¶
func (dd *DeviceDurationUpdate) SetNotNilIotID(value *string) *DeviceDurationUpdate
set field if value's pointer is not nil.
func (*DeviceDurationUpdate) SetNotNilPreparation ¶
func (dd *DeviceDurationUpdate) SetNotNilPreparation(value *int32) *DeviceDurationUpdate
set field if value's pointer is not nil.
func (*DeviceDurationUpdate) SetNotNilProductKey ¶
func (dd *DeviceDurationUpdate) SetNotNilProductKey(value *string) *DeviceDurationUpdate
set field if value's pointer is not nil.
func (*DeviceDurationUpdate) SetNotNilSort ¶
func (dd *DeviceDurationUpdate) SetNotNilSort(value *uint32) *DeviceDurationUpdate
set field if value's pointer is not nil.
func (*DeviceDurationUpdate) SetNotNilStandBy ¶
func (dd *DeviceDurationUpdate) SetNotNilStandBy(value *int32) *DeviceDurationUpdate
set field if value's pointer is not nil.
func (*DeviceDurationUpdate) SetNotNilStatus ¶
func (dd *DeviceDurationUpdate) SetNotNilStatus(value *uint8) *DeviceDurationUpdate
set field if value's pointer is not nil.
func (*DeviceDurationUpdate) SetNotNilUpdatedAt ¶
func (dd *DeviceDurationUpdate) SetNotNilUpdatedAt(value *time.Time) *DeviceDurationUpdate
set field if value's pointer is not nil.
func (*DeviceDurationUpdate) SetNotNilWaiting ¶
func (dd *DeviceDurationUpdate) SetNotNilWaiting(value *int32) *DeviceDurationUpdate
set field if value's pointer is not nil.
func (*DeviceDurationUpdate) SetNotNilWashing ¶
func (dd *DeviceDurationUpdate) SetNotNilWashing(value *int32) *DeviceDurationUpdate
set field if value's pointer is not nil.
func (*DeviceDurationUpdate) SetNotNilWashingCold ¶
func (dd *DeviceDurationUpdate) SetNotNilWashingCold(value *int32) *DeviceDurationUpdate
set field if value's pointer is not nil.
func (*DeviceDurationUpdate) SetPreparation ¶
func (ddu *DeviceDurationUpdate) SetPreparation(i int32) *DeviceDurationUpdate
SetPreparation sets the "preparation" field.
func (*DeviceDurationUpdate) SetProductKey ¶
func (ddu *DeviceDurationUpdate) SetProductKey(s string) *DeviceDurationUpdate
SetProductKey sets the "productKey" field.
func (*DeviceDurationUpdate) SetSort ¶
func (ddu *DeviceDurationUpdate) SetSort(u uint32) *DeviceDurationUpdate
SetSort sets the "sort" field.
func (*DeviceDurationUpdate) SetStandBy ¶
func (ddu *DeviceDurationUpdate) SetStandBy(i int32) *DeviceDurationUpdate
SetStandBy sets the "standBy" field.
func (*DeviceDurationUpdate) SetStatus ¶
func (ddu *DeviceDurationUpdate) SetStatus(u uint8) *DeviceDurationUpdate
SetStatus sets the "status" field.
func (*DeviceDurationUpdate) SetUpdatedAt ¶
func (ddu *DeviceDurationUpdate) SetUpdatedAt(t time.Time) *DeviceDurationUpdate
SetUpdatedAt sets the "updated_at" field.
func (*DeviceDurationUpdate) SetWaiting ¶
func (ddu *DeviceDurationUpdate) SetWaiting(i int32) *DeviceDurationUpdate
SetWaiting sets the "waiting" field.
func (*DeviceDurationUpdate) SetWashing ¶
func (ddu *DeviceDurationUpdate) SetWashing(i int32) *DeviceDurationUpdate
SetWashing sets the "washing" field.
func (*DeviceDurationUpdate) SetWashingCold ¶
func (ddu *DeviceDurationUpdate) SetWashingCold(i int32) *DeviceDurationUpdate
SetWashingCold sets the "washingCold" field.
func (*DeviceDurationUpdate) Where ¶
func (ddu *DeviceDurationUpdate) Where(ps ...predicate.DeviceDuration) *DeviceDurationUpdate
Where appends a list predicates to the DeviceDurationUpdate builder.
type DeviceDurationUpdateOne ¶
type DeviceDurationUpdateOne struct {
// contains filtered or unexported fields
}
DeviceDurationUpdateOne is the builder for updating a single DeviceDuration entity.
func (*DeviceDurationUpdateOne) AddEbutton ¶
func (dduo *DeviceDurationUpdateOne) AddEbutton(i int32) *DeviceDurationUpdateOne
AddEbutton adds i to the "ebutton" field.
func (*DeviceDurationUpdateOne) AddPreparation ¶
func (dduo *DeviceDurationUpdateOne) AddPreparation(i int32) *DeviceDurationUpdateOne
AddPreparation adds i to the "preparation" field.
func (*DeviceDurationUpdateOne) AddSort ¶
func (dduo *DeviceDurationUpdateOne) AddSort(u int32) *DeviceDurationUpdateOne
AddSort adds u to the "sort" field.
func (*DeviceDurationUpdateOne) AddStandBy ¶
func (dduo *DeviceDurationUpdateOne) AddStandBy(i int32) *DeviceDurationUpdateOne
AddStandBy adds i to the "standBy" field.
func (*DeviceDurationUpdateOne) AddStatus ¶
func (dduo *DeviceDurationUpdateOne) AddStatus(u int8) *DeviceDurationUpdateOne
AddStatus adds u to the "status" field.
func (*DeviceDurationUpdateOne) AddWaiting ¶
func (dduo *DeviceDurationUpdateOne) AddWaiting(i int32) *DeviceDurationUpdateOne
AddWaiting adds i to the "waiting" field.
func (*DeviceDurationUpdateOne) AddWashing ¶
func (dduo *DeviceDurationUpdateOne) AddWashing(i int32) *DeviceDurationUpdateOne
AddWashing adds i to the "washing" field.
func (*DeviceDurationUpdateOne) AddWashingCold ¶
func (dduo *DeviceDurationUpdateOne) AddWashingCold(i int32) *DeviceDurationUpdateOne
AddWashingCold adds i to the "washingCold" field.
func (*DeviceDurationUpdateOne) ClearDate ¶
func (dduo *DeviceDurationUpdateOne) ClearDate() *DeviceDurationUpdateOne
ClearDate clears the value of the "date" field.
func (*DeviceDurationUpdateOne) ClearDayJson ¶
func (dduo *DeviceDurationUpdateOne) ClearDayJson() *DeviceDurationUpdateOne
ClearDayJson clears the value of the "dayJson" field.
func (*DeviceDurationUpdateOne) ClearEbutton ¶
func (dduo *DeviceDurationUpdateOne) ClearEbutton() *DeviceDurationUpdateOne
ClearEbutton clears the value of the "ebutton" field.
func (*DeviceDurationUpdateOne) ClearPreparation ¶
func (dduo *DeviceDurationUpdateOne) ClearPreparation() *DeviceDurationUpdateOne
ClearPreparation clears the value of the "preparation" field.
func (*DeviceDurationUpdateOne) ClearStandBy ¶
func (dduo *DeviceDurationUpdateOne) ClearStandBy() *DeviceDurationUpdateOne
ClearStandBy clears the value of the "standBy" field.
func (*DeviceDurationUpdateOne) ClearStatus ¶
func (dduo *DeviceDurationUpdateOne) ClearStatus() *DeviceDurationUpdateOne
ClearStatus clears the value of the "status" field.
func (*DeviceDurationUpdateOne) ClearWaiting ¶
func (dduo *DeviceDurationUpdateOne) ClearWaiting() *DeviceDurationUpdateOne
ClearWaiting clears the value of the "waiting" field.
func (*DeviceDurationUpdateOne) ClearWashing ¶
func (dduo *DeviceDurationUpdateOne) ClearWashing() *DeviceDurationUpdateOne
ClearWashing clears the value of the "washing" field.
func (*DeviceDurationUpdateOne) ClearWashingCold ¶
func (dduo *DeviceDurationUpdateOne) ClearWashingCold() *DeviceDurationUpdateOne
ClearWashingCold clears the value of the "washingCold" field.
func (*DeviceDurationUpdateOne) Exec ¶
func (dduo *DeviceDurationUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*DeviceDurationUpdateOne) ExecContext ¶
func (c *DeviceDurationUpdateOne) 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 (*DeviceDurationUpdateOne) ExecX ¶
func (dduo *DeviceDurationUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceDurationUpdateOne) Modify ¶
func (dduo *DeviceDurationUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceDurationUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*DeviceDurationUpdateOne) Mutation ¶
func (dduo *DeviceDurationUpdateOne) Mutation() *DeviceDurationMutation
Mutation returns the DeviceDurationMutation object of the builder.
func (*DeviceDurationUpdateOne) QueryContext ¶
func (c *DeviceDurationUpdateOne) 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 (*DeviceDurationUpdateOne) Save ¶
func (dduo *DeviceDurationUpdateOne) Save(ctx context.Context) (*DeviceDuration, error)
Save executes the query and returns the updated DeviceDuration entity.
func (*DeviceDurationUpdateOne) SaveX ¶
func (dduo *DeviceDurationUpdateOne) SaveX(ctx context.Context) *DeviceDuration
SaveX is like Save, but panics if an error occurs.
func (*DeviceDurationUpdateOne) Select ¶
func (dduo *DeviceDurationUpdateOne) Select(field string, fields ...string) *DeviceDurationUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*DeviceDurationUpdateOne) SetDate ¶
func (dduo *DeviceDurationUpdateOne) SetDate(s string) *DeviceDurationUpdateOne
SetDate sets the "date" field.
func (*DeviceDurationUpdateOne) SetDayJson ¶
func (dduo *DeviceDurationUpdateOne) SetDayJson(s string) *DeviceDurationUpdateOne
SetDayJson sets the "dayJson" field.
func (*DeviceDurationUpdateOne) SetDeviceName ¶
func (dduo *DeviceDurationUpdateOne) SetDeviceName(s string) *DeviceDurationUpdateOne
SetDeviceName sets the "deviceName" field.
func (*DeviceDurationUpdateOne) SetEbutton ¶
func (dduo *DeviceDurationUpdateOne) SetEbutton(i int32) *DeviceDurationUpdateOne
SetEbutton sets the "ebutton" field.
func (*DeviceDurationUpdateOne) SetIotID ¶
func (dduo *DeviceDurationUpdateOne) SetIotID(s string) *DeviceDurationUpdateOne
SetIotID sets the "iotID" field.
func (*DeviceDurationUpdateOne) SetNillableDate ¶
func (dduo *DeviceDurationUpdateOne) SetNillableDate(s *string) *DeviceDurationUpdateOne
SetNillableDate sets the "date" field if the given value is not nil.
func (*DeviceDurationUpdateOne) SetNillableDayJson ¶
func (dduo *DeviceDurationUpdateOne) SetNillableDayJson(s *string) *DeviceDurationUpdateOne
SetNillableDayJson sets the "dayJson" field if the given value is not nil.
func (*DeviceDurationUpdateOne) SetNillableDeviceName ¶
func (dduo *DeviceDurationUpdateOne) SetNillableDeviceName(s *string) *DeviceDurationUpdateOne
SetNillableDeviceName sets the "deviceName" field if the given value is not nil.
func (*DeviceDurationUpdateOne) SetNillableEbutton ¶
func (dduo *DeviceDurationUpdateOne) SetNillableEbutton(i *int32) *DeviceDurationUpdateOne
SetNillableEbutton sets the "ebutton" field if the given value is not nil.
func (*DeviceDurationUpdateOne) SetNillableIotID ¶
func (dduo *DeviceDurationUpdateOne) SetNillableIotID(s *string) *DeviceDurationUpdateOne
SetNillableIotID sets the "iotID" field if the given value is not nil.
func (*DeviceDurationUpdateOne) SetNillablePreparation ¶
func (dduo *DeviceDurationUpdateOne) SetNillablePreparation(i *int32) *DeviceDurationUpdateOne
SetNillablePreparation sets the "preparation" field if the given value is not nil.
func (*DeviceDurationUpdateOne) SetNillableProductKey ¶
func (dduo *DeviceDurationUpdateOne) SetNillableProductKey(s *string) *DeviceDurationUpdateOne
SetNillableProductKey sets the "productKey" field if the given value is not nil.
func (*DeviceDurationUpdateOne) SetNillableSort ¶
func (dduo *DeviceDurationUpdateOne) SetNillableSort(u *uint32) *DeviceDurationUpdateOne
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DeviceDurationUpdateOne) SetNillableStandBy ¶
func (dduo *DeviceDurationUpdateOne) SetNillableStandBy(i *int32) *DeviceDurationUpdateOne
SetNillableStandBy sets the "standBy" field if the given value is not nil.
func (*DeviceDurationUpdateOne) SetNillableStatus ¶
func (dduo *DeviceDurationUpdateOne) SetNillableStatus(u *uint8) *DeviceDurationUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DeviceDurationUpdateOne) SetNillableWaiting ¶
func (dduo *DeviceDurationUpdateOne) SetNillableWaiting(i *int32) *DeviceDurationUpdateOne
SetNillableWaiting sets the "waiting" field if the given value is not nil.
func (*DeviceDurationUpdateOne) SetNillableWashing ¶
func (dduo *DeviceDurationUpdateOne) SetNillableWashing(i *int32) *DeviceDurationUpdateOne
SetNillableWashing sets the "washing" field if the given value is not nil.
func (*DeviceDurationUpdateOne) SetNillableWashingCold ¶
func (dduo *DeviceDurationUpdateOne) SetNillableWashingCold(i *int32) *DeviceDurationUpdateOne
SetNillableWashingCold sets the "washingCold" field if the given value is not nil.
func (*DeviceDurationUpdateOne) SetNotNilDate ¶
func (dd *DeviceDurationUpdateOne) SetNotNilDate(value *string) *DeviceDurationUpdateOne
set field if value's pointer is not nil.
func (*DeviceDurationUpdateOne) SetNotNilDayJson ¶
func (dd *DeviceDurationUpdateOne) SetNotNilDayJson(value *string) *DeviceDurationUpdateOne
set field if value's pointer is not nil.
func (*DeviceDurationUpdateOne) SetNotNilDeviceName ¶
func (dd *DeviceDurationUpdateOne) SetNotNilDeviceName(value *string) *DeviceDurationUpdateOne
set field if value's pointer is not nil.
func (*DeviceDurationUpdateOne) SetNotNilEbutton ¶
func (dd *DeviceDurationUpdateOne) SetNotNilEbutton(value *int32) *DeviceDurationUpdateOne
set field if value's pointer is not nil.
func (*DeviceDurationUpdateOne) SetNotNilIotID ¶
func (dd *DeviceDurationUpdateOne) SetNotNilIotID(value *string) *DeviceDurationUpdateOne
set field if value's pointer is not nil.
func (*DeviceDurationUpdateOne) SetNotNilPreparation ¶
func (dd *DeviceDurationUpdateOne) SetNotNilPreparation(value *int32) *DeviceDurationUpdateOne
set field if value's pointer is not nil.
func (*DeviceDurationUpdateOne) SetNotNilProductKey ¶
func (dd *DeviceDurationUpdateOne) SetNotNilProductKey(value *string) *DeviceDurationUpdateOne
set field if value's pointer is not nil.
func (*DeviceDurationUpdateOne) SetNotNilSort ¶
func (dd *DeviceDurationUpdateOne) SetNotNilSort(value *uint32) *DeviceDurationUpdateOne
set field if value's pointer is not nil.
func (*DeviceDurationUpdateOne) SetNotNilStandBy ¶
func (dd *DeviceDurationUpdateOne) SetNotNilStandBy(value *int32) *DeviceDurationUpdateOne
set field if value's pointer is not nil.
func (*DeviceDurationUpdateOne) SetNotNilStatus ¶
func (dd *DeviceDurationUpdateOne) SetNotNilStatus(value *uint8) *DeviceDurationUpdateOne
set field if value's pointer is not nil.
func (*DeviceDurationUpdateOne) SetNotNilUpdatedAt ¶
func (dd *DeviceDurationUpdateOne) SetNotNilUpdatedAt(value *time.Time) *DeviceDurationUpdateOne
set field if value's pointer is not nil.
func (*DeviceDurationUpdateOne) SetNotNilWaiting ¶
func (dd *DeviceDurationUpdateOne) SetNotNilWaiting(value *int32) *DeviceDurationUpdateOne
set field if value's pointer is not nil.
func (*DeviceDurationUpdateOne) SetNotNilWashing ¶
func (dd *DeviceDurationUpdateOne) SetNotNilWashing(value *int32) *DeviceDurationUpdateOne
set field if value's pointer is not nil.
func (*DeviceDurationUpdateOne) SetNotNilWashingCold ¶
func (dd *DeviceDurationUpdateOne) SetNotNilWashingCold(value *int32) *DeviceDurationUpdateOne
set field if value's pointer is not nil.
func (*DeviceDurationUpdateOne) SetPreparation ¶
func (dduo *DeviceDurationUpdateOne) SetPreparation(i int32) *DeviceDurationUpdateOne
SetPreparation sets the "preparation" field.
func (*DeviceDurationUpdateOne) SetProductKey ¶
func (dduo *DeviceDurationUpdateOne) SetProductKey(s string) *DeviceDurationUpdateOne
SetProductKey sets the "productKey" field.
func (*DeviceDurationUpdateOne) SetSort ¶
func (dduo *DeviceDurationUpdateOne) SetSort(u uint32) *DeviceDurationUpdateOne
SetSort sets the "sort" field.
func (*DeviceDurationUpdateOne) SetStandBy ¶
func (dduo *DeviceDurationUpdateOne) SetStandBy(i int32) *DeviceDurationUpdateOne
SetStandBy sets the "standBy" field.
func (*DeviceDurationUpdateOne) SetStatus ¶
func (dduo *DeviceDurationUpdateOne) SetStatus(u uint8) *DeviceDurationUpdateOne
SetStatus sets the "status" field.
func (*DeviceDurationUpdateOne) SetUpdatedAt ¶
func (dduo *DeviceDurationUpdateOne) SetUpdatedAt(t time.Time) *DeviceDurationUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*DeviceDurationUpdateOne) SetWaiting ¶
func (dduo *DeviceDurationUpdateOne) SetWaiting(i int32) *DeviceDurationUpdateOne
SetWaiting sets the "waiting" field.
func (*DeviceDurationUpdateOne) SetWashing ¶
func (dduo *DeviceDurationUpdateOne) SetWashing(i int32) *DeviceDurationUpdateOne
SetWashing sets the "washing" field.
func (*DeviceDurationUpdateOne) SetWashingCold ¶
func (dduo *DeviceDurationUpdateOne) SetWashingCold(i int32) *DeviceDurationUpdateOne
SetWashingCold sets the "washingCold" field.
func (*DeviceDurationUpdateOne) Where ¶
func (dduo *DeviceDurationUpdateOne) Where(ps ...predicate.DeviceDuration) *DeviceDurationUpdateOne
Where appends a list predicates to the DeviceDurationUpdate builder.
type DeviceDurationUpsert ¶
DeviceDurationUpsert is the "OnConflict" setter.
func (*DeviceDurationUpsert) AddEbutton ¶
func (u *DeviceDurationUpsert) AddEbutton(v int32) *DeviceDurationUpsert
AddEbutton adds v to the "ebutton" field.
func (*DeviceDurationUpsert) AddPreparation ¶
func (u *DeviceDurationUpsert) AddPreparation(v int32) *DeviceDurationUpsert
AddPreparation adds v to the "preparation" field.
func (*DeviceDurationUpsert) AddSort ¶
func (u *DeviceDurationUpsert) AddSort(v uint32) *DeviceDurationUpsert
AddSort adds v to the "sort" field.
func (*DeviceDurationUpsert) AddStandBy ¶
func (u *DeviceDurationUpsert) AddStandBy(v int32) *DeviceDurationUpsert
AddStandBy adds v to the "standBy" field.
func (*DeviceDurationUpsert) AddStatus ¶
func (u *DeviceDurationUpsert) AddStatus(v uint8) *DeviceDurationUpsert
AddStatus adds v to the "status" field.
func (*DeviceDurationUpsert) AddWaiting ¶
func (u *DeviceDurationUpsert) AddWaiting(v int32) *DeviceDurationUpsert
AddWaiting adds v to the "waiting" field.
func (*DeviceDurationUpsert) AddWashing ¶
func (u *DeviceDurationUpsert) AddWashing(v int32) *DeviceDurationUpsert
AddWashing adds v to the "washing" field.
func (*DeviceDurationUpsert) AddWashingCold ¶
func (u *DeviceDurationUpsert) AddWashingCold(v int32) *DeviceDurationUpsert
AddWashingCold adds v to the "washingCold" field.
func (*DeviceDurationUpsert) ClearDate ¶
func (u *DeviceDurationUpsert) ClearDate() *DeviceDurationUpsert
ClearDate clears the value of the "date" field.
func (*DeviceDurationUpsert) ClearDayJson ¶
func (u *DeviceDurationUpsert) ClearDayJson() *DeviceDurationUpsert
ClearDayJson clears the value of the "dayJson" field.
func (*DeviceDurationUpsert) ClearEbutton ¶
func (u *DeviceDurationUpsert) ClearEbutton() *DeviceDurationUpsert
ClearEbutton clears the value of the "ebutton" field.
func (*DeviceDurationUpsert) ClearPreparation ¶
func (u *DeviceDurationUpsert) ClearPreparation() *DeviceDurationUpsert
ClearPreparation clears the value of the "preparation" field.
func (*DeviceDurationUpsert) ClearStandBy ¶
func (u *DeviceDurationUpsert) ClearStandBy() *DeviceDurationUpsert
ClearStandBy clears the value of the "standBy" field.
func (*DeviceDurationUpsert) ClearStatus ¶
func (u *DeviceDurationUpsert) ClearStatus() *DeviceDurationUpsert
ClearStatus clears the value of the "status" field.
func (*DeviceDurationUpsert) ClearWaiting ¶
func (u *DeviceDurationUpsert) ClearWaiting() *DeviceDurationUpsert
ClearWaiting clears the value of the "waiting" field.
func (*DeviceDurationUpsert) ClearWashing ¶
func (u *DeviceDurationUpsert) ClearWashing() *DeviceDurationUpsert
ClearWashing clears the value of the "washing" field.
func (*DeviceDurationUpsert) ClearWashingCold ¶
func (u *DeviceDurationUpsert) ClearWashingCold() *DeviceDurationUpsert
ClearWashingCold clears the value of the "washingCold" field.
func (*DeviceDurationUpsert) SetDate ¶
func (u *DeviceDurationUpsert) SetDate(v string) *DeviceDurationUpsert
SetDate sets the "date" field.
func (*DeviceDurationUpsert) SetDayJson ¶
func (u *DeviceDurationUpsert) SetDayJson(v string) *DeviceDurationUpsert
SetDayJson sets the "dayJson" field.
func (*DeviceDurationUpsert) SetDeviceName ¶
func (u *DeviceDurationUpsert) SetDeviceName(v string) *DeviceDurationUpsert
SetDeviceName sets the "deviceName" field.
func (*DeviceDurationUpsert) SetEbutton ¶
func (u *DeviceDurationUpsert) SetEbutton(v int32) *DeviceDurationUpsert
SetEbutton sets the "ebutton" field.
func (*DeviceDurationUpsert) SetIotID ¶
func (u *DeviceDurationUpsert) SetIotID(v string) *DeviceDurationUpsert
SetIotID sets the "iotID" field.
func (*DeviceDurationUpsert) SetPreparation ¶
func (u *DeviceDurationUpsert) SetPreparation(v int32) *DeviceDurationUpsert
SetPreparation sets the "preparation" field.
func (*DeviceDurationUpsert) SetProductKey ¶
func (u *DeviceDurationUpsert) SetProductKey(v string) *DeviceDurationUpsert
SetProductKey sets the "productKey" field.
func (*DeviceDurationUpsert) SetSort ¶
func (u *DeviceDurationUpsert) SetSort(v uint32) *DeviceDurationUpsert
SetSort sets the "sort" field.
func (*DeviceDurationUpsert) SetStandBy ¶
func (u *DeviceDurationUpsert) SetStandBy(v int32) *DeviceDurationUpsert
SetStandBy sets the "standBy" field.
func (*DeviceDurationUpsert) SetStatus ¶
func (u *DeviceDurationUpsert) SetStatus(v uint8) *DeviceDurationUpsert
SetStatus sets the "status" field.
func (*DeviceDurationUpsert) SetUpdatedAt ¶
func (u *DeviceDurationUpsert) SetUpdatedAt(v time.Time) *DeviceDurationUpsert
SetUpdatedAt sets the "updated_at" field.
func (*DeviceDurationUpsert) SetWaiting ¶
func (u *DeviceDurationUpsert) SetWaiting(v int32) *DeviceDurationUpsert
SetWaiting sets the "waiting" field.
func (*DeviceDurationUpsert) SetWashing ¶
func (u *DeviceDurationUpsert) SetWashing(v int32) *DeviceDurationUpsert
SetWashing sets the "washing" field.
func (*DeviceDurationUpsert) SetWashingCold ¶
func (u *DeviceDurationUpsert) SetWashingCold(v int32) *DeviceDurationUpsert
SetWashingCold sets the "washingCold" field.
func (*DeviceDurationUpsert) UpdateDate ¶
func (u *DeviceDurationUpsert) UpdateDate() *DeviceDurationUpsert
UpdateDate sets the "date" field to the value that was provided on create.
func (*DeviceDurationUpsert) UpdateDayJson ¶
func (u *DeviceDurationUpsert) UpdateDayJson() *DeviceDurationUpsert
UpdateDayJson sets the "dayJson" field to the value that was provided on create.
func (*DeviceDurationUpsert) UpdateDeviceName ¶
func (u *DeviceDurationUpsert) UpdateDeviceName() *DeviceDurationUpsert
UpdateDeviceName sets the "deviceName" field to the value that was provided on create.
func (*DeviceDurationUpsert) UpdateEbutton ¶
func (u *DeviceDurationUpsert) UpdateEbutton() *DeviceDurationUpsert
UpdateEbutton sets the "ebutton" field to the value that was provided on create.
func (*DeviceDurationUpsert) UpdateIotID ¶
func (u *DeviceDurationUpsert) UpdateIotID() *DeviceDurationUpsert
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DeviceDurationUpsert) UpdatePreparation ¶
func (u *DeviceDurationUpsert) UpdatePreparation() *DeviceDurationUpsert
UpdatePreparation sets the "preparation" field to the value that was provided on create.
func (*DeviceDurationUpsert) UpdateProductKey ¶
func (u *DeviceDurationUpsert) UpdateProductKey() *DeviceDurationUpsert
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*DeviceDurationUpsert) UpdateSort ¶
func (u *DeviceDurationUpsert) UpdateSort() *DeviceDurationUpsert
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DeviceDurationUpsert) UpdateStandBy ¶
func (u *DeviceDurationUpsert) UpdateStandBy() *DeviceDurationUpsert
UpdateStandBy sets the "standBy" field to the value that was provided on create.
func (*DeviceDurationUpsert) UpdateStatus ¶
func (u *DeviceDurationUpsert) UpdateStatus() *DeviceDurationUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DeviceDurationUpsert) UpdateUpdatedAt ¶
func (u *DeviceDurationUpsert) UpdateUpdatedAt() *DeviceDurationUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*DeviceDurationUpsert) UpdateWaiting ¶
func (u *DeviceDurationUpsert) UpdateWaiting() *DeviceDurationUpsert
UpdateWaiting sets the "waiting" field to the value that was provided on create.
func (*DeviceDurationUpsert) UpdateWashing ¶
func (u *DeviceDurationUpsert) UpdateWashing() *DeviceDurationUpsert
UpdateWashing sets the "washing" field to the value that was provided on create.
func (*DeviceDurationUpsert) UpdateWashingCold ¶
func (u *DeviceDurationUpsert) UpdateWashingCold() *DeviceDurationUpsert
UpdateWashingCold sets the "washingCold" field to the value that was provided on create.
type DeviceDurationUpsertBulk ¶
type DeviceDurationUpsertBulk struct {
// contains filtered or unexported fields
}
DeviceDurationUpsertBulk is the builder for "upsert"-ing a bulk of DeviceDuration nodes.
func (*DeviceDurationUpsertBulk) AddEbutton ¶
func (u *DeviceDurationUpsertBulk) AddEbutton(v int32) *DeviceDurationUpsertBulk
AddEbutton adds v to the "ebutton" field.
func (*DeviceDurationUpsertBulk) AddPreparation ¶
func (u *DeviceDurationUpsertBulk) AddPreparation(v int32) *DeviceDurationUpsertBulk
AddPreparation adds v to the "preparation" field.
func (*DeviceDurationUpsertBulk) AddSort ¶
func (u *DeviceDurationUpsertBulk) AddSort(v uint32) *DeviceDurationUpsertBulk
AddSort adds v to the "sort" field.
func (*DeviceDurationUpsertBulk) AddStandBy ¶
func (u *DeviceDurationUpsertBulk) AddStandBy(v int32) *DeviceDurationUpsertBulk
AddStandBy adds v to the "standBy" field.
func (*DeviceDurationUpsertBulk) AddStatus ¶
func (u *DeviceDurationUpsertBulk) AddStatus(v uint8) *DeviceDurationUpsertBulk
AddStatus adds v to the "status" field.
func (*DeviceDurationUpsertBulk) AddWaiting ¶
func (u *DeviceDurationUpsertBulk) AddWaiting(v int32) *DeviceDurationUpsertBulk
AddWaiting adds v to the "waiting" field.
func (*DeviceDurationUpsertBulk) AddWashing ¶
func (u *DeviceDurationUpsertBulk) AddWashing(v int32) *DeviceDurationUpsertBulk
AddWashing adds v to the "washing" field.
func (*DeviceDurationUpsertBulk) AddWashingCold ¶
func (u *DeviceDurationUpsertBulk) AddWashingCold(v int32) *DeviceDurationUpsertBulk
AddWashingCold adds v to the "washingCold" field.
func (*DeviceDurationUpsertBulk) ClearDate ¶
func (u *DeviceDurationUpsertBulk) ClearDate() *DeviceDurationUpsertBulk
ClearDate clears the value of the "date" field.
func (*DeviceDurationUpsertBulk) ClearDayJson ¶
func (u *DeviceDurationUpsertBulk) ClearDayJson() *DeviceDurationUpsertBulk
ClearDayJson clears the value of the "dayJson" field.
func (*DeviceDurationUpsertBulk) ClearEbutton ¶
func (u *DeviceDurationUpsertBulk) ClearEbutton() *DeviceDurationUpsertBulk
ClearEbutton clears the value of the "ebutton" field.
func (*DeviceDurationUpsertBulk) ClearPreparation ¶
func (u *DeviceDurationUpsertBulk) ClearPreparation() *DeviceDurationUpsertBulk
ClearPreparation clears the value of the "preparation" field.
func (*DeviceDurationUpsertBulk) ClearStandBy ¶
func (u *DeviceDurationUpsertBulk) ClearStandBy() *DeviceDurationUpsertBulk
ClearStandBy clears the value of the "standBy" field.
func (*DeviceDurationUpsertBulk) ClearStatus ¶
func (u *DeviceDurationUpsertBulk) ClearStatus() *DeviceDurationUpsertBulk
ClearStatus clears the value of the "status" field.
func (*DeviceDurationUpsertBulk) ClearWaiting ¶
func (u *DeviceDurationUpsertBulk) ClearWaiting() *DeviceDurationUpsertBulk
ClearWaiting clears the value of the "waiting" field.
func (*DeviceDurationUpsertBulk) ClearWashing ¶
func (u *DeviceDurationUpsertBulk) ClearWashing() *DeviceDurationUpsertBulk
ClearWashing clears the value of the "washing" field.
func (*DeviceDurationUpsertBulk) ClearWashingCold ¶
func (u *DeviceDurationUpsertBulk) ClearWashingCold() *DeviceDurationUpsertBulk
ClearWashingCold clears the value of the "washingCold" field.
func (*DeviceDurationUpsertBulk) DoNothing ¶
func (u *DeviceDurationUpsertBulk) DoNothing() *DeviceDurationUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*DeviceDurationUpsertBulk) Exec ¶
func (u *DeviceDurationUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceDurationUpsertBulk) ExecX ¶
func (u *DeviceDurationUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceDurationUpsertBulk) Ignore ¶
func (u *DeviceDurationUpsertBulk) Ignore() *DeviceDurationUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.DeviceDuration.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*DeviceDurationUpsertBulk) SetDate ¶
func (u *DeviceDurationUpsertBulk) SetDate(v string) *DeviceDurationUpsertBulk
SetDate sets the "date" field.
func (*DeviceDurationUpsertBulk) SetDayJson ¶
func (u *DeviceDurationUpsertBulk) SetDayJson(v string) *DeviceDurationUpsertBulk
SetDayJson sets the "dayJson" field.
func (*DeviceDurationUpsertBulk) SetDeviceName ¶
func (u *DeviceDurationUpsertBulk) SetDeviceName(v string) *DeviceDurationUpsertBulk
SetDeviceName sets the "deviceName" field.
func (*DeviceDurationUpsertBulk) SetEbutton ¶
func (u *DeviceDurationUpsertBulk) SetEbutton(v int32) *DeviceDurationUpsertBulk
SetEbutton sets the "ebutton" field.
func (*DeviceDurationUpsertBulk) SetIotID ¶
func (u *DeviceDurationUpsertBulk) SetIotID(v string) *DeviceDurationUpsertBulk
SetIotID sets the "iotID" field.
func (*DeviceDurationUpsertBulk) SetPreparation ¶
func (u *DeviceDurationUpsertBulk) SetPreparation(v int32) *DeviceDurationUpsertBulk
SetPreparation sets the "preparation" field.
func (*DeviceDurationUpsertBulk) SetProductKey ¶
func (u *DeviceDurationUpsertBulk) SetProductKey(v string) *DeviceDurationUpsertBulk
SetProductKey sets the "productKey" field.
func (*DeviceDurationUpsertBulk) SetSort ¶
func (u *DeviceDurationUpsertBulk) SetSort(v uint32) *DeviceDurationUpsertBulk
SetSort sets the "sort" field.
func (*DeviceDurationUpsertBulk) SetStandBy ¶
func (u *DeviceDurationUpsertBulk) SetStandBy(v int32) *DeviceDurationUpsertBulk
SetStandBy sets the "standBy" field.
func (*DeviceDurationUpsertBulk) SetStatus ¶
func (u *DeviceDurationUpsertBulk) SetStatus(v uint8) *DeviceDurationUpsertBulk
SetStatus sets the "status" field.
func (*DeviceDurationUpsertBulk) SetUpdatedAt ¶
func (u *DeviceDurationUpsertBulk) SetUpdatedAt(v time.Time) *DeviceDurationUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*DeviceDurationUpsertBulk) SetWaiting ¶
func (u *DeviceDurationUpsertBulk) SetWaiting(v int32) *DeviceDurationUpsertBulk
SetWaiting sets the "waiting" field.
func (*DeviceDurationUpsertBulk) SetWashing ¶
func (u *DeviceDurationUpsertBulk) SetWashing(v int32) *DeviceDurationUpsertBulk
SetWashing sets the "washing" field.
func (*DeviceDurationUpsertBulk) SetWashingCold ¶
func (u *DeviceDurationUpsertBulk) SetWashingCold(v int32) *DeviceDurationUpsertBulk
SetWashingCold sets the "washingCold" field.
func (*DeviceDurationUpsertBulk) Update ¶
func (u *DeviceDurationUpsertBulk) Update(set func(*DeviceDurationUpsert)) *DeviceDurationUpsertBulk
Update allows overriding fields `UPDATE` values. See the DeviceDurationCreateBulk.OnConflict documentation for more info.
func (*DeviceDurationUpsertBulk) UpdateDate ¶
func (u *DeviceDurationUpsertBulk) UpdateDate() *DeviceDurationUpsertBulk
UpdateDate sets the "date" field to the value that was provided on create.
func (*DeviceDurationUpsertBulk) UpdateDayJson ¶
func (u *DeviceDurationUpsertBulk) UpdateDayJson() *DeviceDurationUpsertBulk
UpdateDayJson sets the "dayJson" field to the value that was provided on create.
func (*DeviceDurationUpsertBulk) UpdateDeviceName ¶
func (u *DeviceDurationUpsertBulk) UpdateDeviceName() *DeviceDurationUpsertBulk
UpdateDeviceName sets the "deviceName" field to the value that was provided on create.
func (*DeviceDurationUpsertBulk) UpdateEbutton ¶
func (u *DeviceDurationUpsertBulk) UpdateEbutton() *DeviceDurationUpsertBulk
UpdateEbutton sets the "ebutton" field to the value that was provided on create.
func (*DeviceDurationUpsertBulk) UpdateIotID ¶
func (u *DeviceDurationUpsertBulk) UpdateIotID() *DeviceDurationUpsertBulk
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DeviceDurationUpsertBulk) UpdateNewValues ¶
func (u *DeviceDurationUpsertBulk) UpdateNewValues() *DeviceDurationUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.DeviceDuration.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(deviceduration.FieldID) }), ). Exec(ctx)
func (*DeviceDurationUpsertBulk) UpdatePreparation ¶
func (u *DeviceDurationUpsertBulk) UpdatePreparation() *DeviceDurationUpsertBulk
UpdatePreparation sets the "preparation" field to the value that was provided on create.
func (*DeviceDurationUpsertBulk) UpdateProductKey ¶
func (u *DeviceDurationUpsertBulk) UpdateProductKey() *DeviceDurationUpsertBulk
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*DeviceDurationUpsertBulk) UpdateSort ¶
func (u *DeviceDurationUpsertBulk) UpdateSort() *DeviceDurationUpsertBulk
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DeviceDurationUpsertBulk) UpdateStandBy ¶
func (u *DeviceDurationUpsertBulk) UpdateStandBy() *DeviceDurationUpsertBulk
UpdateStandBy sets the "standBy" field to the value that was provided on create.
func (*DeviceDurationUpsertBulk) UpdateStatus ¶
func (u *DeviceDurationUpsertBulk) UpdateStatus() *DeviceDurationUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DeviceDurationUpsertBulk) UpdateUpdatedAt ¶
func (u *DeviceDurationUpsertBulk) UpdateUpdatedAt() *DeviceDurationUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*DeviceDurationUpsertBulk) UpdateWaiting ¶
func (u *DeviceDurationUpsertBulk) UpdateWaiting() *DeviceDurationUpsertBulk
UpdateWaiting sets the "waiting" field to the value that was provided on create.
func (*DeviceDurationUpsertBulk) UpdateWashing ¶
func (u *DeviceDurationUpsertBulk) UpdateWashing() *DeviceDurationUpsertBulk
UpdateWashing sets the "washing" field to the value that was provided on create.
func (*DeviceDurationUpsertBulk) UpdateWashingCold ¶
func (u *DeviceDurationUpsertBulk) UpdateWashingCold() *DeviceDurationUpsertBulk
UpdateWashingCold sets the "washingCold" field to the value that was provided on create.
type DeviceDurationUpsertOne ¶
type DeviceDurationUpsertOne struct {
// contains filtered or unexported fields
}
DeviceDurationUpsertOne is the builder for "upsert"-ing
one DeviceDuration node.
func (*DeviceDurationUpsertOne) AddEbutton ¶
func (u *DeviceDurationUpsertOne) AddEbutton(v int32) *DeviceDurationUpsertOne
AddEbutton adds v to the "ebutton" field.
func (*DeviceDurationUpsertOne) AddPreparation ¶
func (u *DeviceDurationUpsertOne) AddPreparation(v int32) *DeviceDurationUpsertOne
AddPreparation adds v to the "preparation" field.
func (*DeviceDurationUpsertOne) AddSort ¶
func (u *DeviceDurationUpsertOne) AddSort(v uint32) *DeviceDurationUpsertOne
AddSort adds v to the "sort" field.
func (*DeviceDurationUpsertOne) AddStandBy ¶
func (u *DeviceDurationUpsertOne) AddStandBy(v int32) *DeviceDurationUpsertOne
AddStandBy adds v to the "standBy" field.
func (*DeviceDurationUpsertOne) AddStatus ¶
func (u *DeviceDurationUpsertOne) AddStatus(v uint8) *DeviceDurationUpsertOne
AddStatus adds v to the "status" field.
func (*DeviceDurationUpsertOne) AddWaiting ¶
func (u *DeviceDurationUpsertOne) AddWaiting(v int32) *DeviceDurationUpsertOne
AddWaiting adds v to the "waiting" field.
func (*DeviceDurationUpsertOne) AddWashing ¶
func (u *DeviceDurationUpsertOne) AddWashing(v int32) *DeviceDurationUpsertOne
AddWashing adds v to the "washing" field.
func (*DeviceDurationUpsertOne) AddWashingCold ¶
func (u *DeviceDurationUpsertOne) AddWashingCold(v int32) *DeviceDurationUpsertOne
AddWashingCold adds v to the "washingCold" field.
func (*DeviceDurationUpsertOne) ClearDate ¶
func (u *DeviceDurationUpsertOne) ClearDate() *DeviceDurationUpsertOne
ClearDate clears the value of the "date" field.
func (*DeviceDurationUpsertOne) ClearDayJson ¶
func (u *DeviceDurationUpsertOne) ClearDayJson() *DeviceDurationUpsertOne
ClearDayJson clears the value of the "dayJson" field.
func (*DeviceDurationUpsertOne) ClearEbutton ¶
func (u *DeviceDurationUpsertOne) ClearEbutton() *DeviceDurationUpsertOne
ClearEbutton clears the value of the "ebutton" field.
func (*DeviceDurationUpsertOne) ClearPreparation ¶
func (u *DeviceDurationUpsertOne) ClearPreparation() *DeviceDurationUpsertOne
ClearPreparation clears the value of the "preparation" field.
func (*DeviceDurationUpsertOne) ClearStandBy ¶
func (u *DeviceDurationUpsertOne) ClearStandBy() *DeviceDurationUpsertOne
ClearStandBy clears the value of the "standBy" field.
func (*DeviceDurationUpsertOne) ClearStatus ¶
func (u *DeviceDurationUpsertOne) ClearStatus() *DeviceDurationUpsertOne
ClearStatus clears the value of the "status" field.
func (*DeviceDurationUpsertOne) ClearWaiting ¶
func (u *DeviceDurationUpsertOne) ClearWaiting() *DeviceDurationUpsertOne
ClearWaiting clears the value of the "waiting" field.
func (*DeviceDurationUpsertOne) ClearWashing ¶
func (u *DeviceDurationUpsertOne) ClearWashing() *DeviceDurationUpsertOne
ClearWashing clears the value of the "washing" field.
func (*DeviceDurationUpsertOne) ClearWashingCold ¶
func (u *DeviceDurationUpsertOne) ClearWashingCold() *DeviceDurationUpsertOne
ClearWashingCold clears the value of the "washingCold" field.
func (*DeviceDurationUpsertOne) DoNothing ¶
func (u *DeviceDurationUpsertOne) DoNothing() *DeviceDurationUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*DeviceDurationUpsertOne) Exec ¶
func (u *DeviceDurationUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceDurationUpsertOne) ExecX ¶
func (u *DeviceDurationUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceDurationUpsertOne) ID ¶
func (u *DeviceDurationUpsertOne) ID(ctx context.Context) (id uint64, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*DeviceDurationUpsertOne) IDX ¶
func (u *DeviceDurationUpsertOne) IDX(ctx context.Context) uint64
IDX is like ID, but panics if an error occurs.
func (*DeviceDurationUpsertOne) Ignore ¶
func (u *DeviceDurationUpsertOne) Ignore() *DeviceDurationUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.DeviceDuration.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*DeviceDurationUpsertOne) SetDate ¶
func (u *DeviceDurationUpsertOne) SetDate(v string) *DeviceDurationUpsertOne
SetDate sets the "date" field.
func (*DeviceDurationUpsertOne) SetDayJson ¶
func (u *DeviceDurationUpsertOne) SetDayJson(v string) *DeviceDurationUpsertOne
SetDayJson sets the "dayJson" field.
func (*DeviceDurationUpsertOne) SetDeviceName ¶
func (u *DeviceDurationUpsertOne) SetDeviceName(v string) *DeviceDurationUpsertOne
SetDeviceName sets the "deviceName" field.
func (*DeviceDurationUpsertOne) SetEbutton ¶
func (u *DeviceDurationUpsertOne) SetEbutton(v int32) *DeviceDurationUpsertOne
SetEbutton sets the "ebutton" field.
func (*DeviceDurationUpsertOne) SetIotID ¶
func (u *DeviceDurationUpsertOne) SetIotID(v string) *DeviceDurationUpsertOne
SetIotID sets the "iotID" field.
func (*DeviceDurationUpsertOne) SetPreparation ¶
func (u *DeviceDurationUpsertOne) SetPreparation(v int32) *DeviceDurationUpsertOne
SetPreparation sets the "preparation" field.
func (*DeviceDurationUpsertOne) SetProductKey ¶
func (u *DeviceDurationUpsertOne) SetProductKey(v string) *DeviceDurationUpsertOne
SetProductKey sets the "productKey" field.
func (*DeviceDurationUpsertOne) SetSort ¶
func (u *DeviceDurationUpsertOne) SetSort(v uint32) *DeviceDurationUpsertOne
SetSort sets the "sort" field.
func (*DeviceDurationUpsertOne) SetStandBy ¶
func (u *DeviceDurationUpsertOne) SetStandBy(v int32) *DeviceDurationUpsertOne
SetStandBy sets the "standBy" field.
func (*DeviceDurationUpsertOne) SetStatus ¶
func (u *DeviceDurationUpsertOne) SetStatus(v uint8) *DeviceDurationUpsertOne
SetStatus sets the "status" field.
func (*DeviceDurationUpsertOne) SetUpdatedAt ¶
func (u *DeviceDurationUpsertOne) SetUpdatedAt(v time.Time) *DeviceDurationUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*DeviceDurationUpsertOne) SetWaiting ¶
func (u *DeviceDurationUpsertOne) SetWaiting(v int32) *DeviceDurationUpsertOne
SetWaiting sets the "waiting" field.
func (*DeviceDurationUpsertOne) SetWashing ¶
func (u *DeviceDurationUpsertOne) SetWashing(v int32) *DeviceDurationUpsertOne
SetWashing sets the "washing" field.
func (*DeviceDurationUpsertOne) SetWashingCold ¶
func (u *DeviceDurationUpsertOne) SetWashingCold(v int32) *DeviceDurationUpsertOne
SetWashingCold sets the "washingCold" field.
func (*DeviceDurationUpsertOne) Update ¶
func (u *DeviceDurationUpsertOne) Update(set func(*DeviceDurationUpsert)) *DeviceDurationUpsertOne
Update allows overriding fields `UPDATE` values. See the DeviceDurationCreate.OnConflict documentation for more info.
func (*DeviceDurationUpsertOne) UpdateDate ¶
func (u *DeviceDurationUpsertOne) UpdateDate() *DeviceDurationUpsertOne
UpdateDate sets the "date" field to the value that was provided on create.
func (*DeviceDurationUpsertOne) UpdateDayJson ¶
func (u *DeviceDurationUpsertOne) UpdateDayJson() *DeviceDurationUpsertOne
UpdateDayJson sets the "dayJson" field to the value that was provided on create.
func (*DeviceDurationUpsertOne) UpdateDeviceName ¶
func (u *DeviceDurationUpsertOne) UpdateDeviceName() *DeviceDurationUpsertOne
UpdateDeviceName sets the "deviceName" field to the value that was provided on create.
func (*DeviceDurationUpsertOne) UpdateEbutton ¶
func (u *DeviceDurationUpsertOne) UpdateEbutton() *DeviceDurationUpsertOne
UpdateEbutton sets the "ebutton" field to the value that was provided on create.
func (*DeviceDurationUpsertOne) UpdateIotID ¶
func (u *DeviceDurationUpsertOne) UpdateIotID() *DeviceDurationUpsertOne
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DeviceDurationUpsertOne) UpdateNewValues ¶
func (u *DeviceDurationUpsertOne) UpdateNewValues() *DeviceDurationUpsertOne
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.DeviceDuration.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(deviceduration.FieldID) }), ). Exec(ctx)
func (*DeviceDurationUpsertOne) UpdatePreparation ¶
func (u *DeviceDurationUpsertOne) UpdatePreparation() *DeviceDurationUpsertOne
UpdatePreparation sets the "preparation" field to the value that was provided on create.
func (*DeviceDurationUpsertOne) UpdateProductKey ¶
func (u *DeviceDurationUpsertOne) UpdateProductKey() *DeviceDurationUpsertOne
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*DeviceDurationUpsertOne) UpdateSort ¶
func (u *DeviceDurationUpsertOne) UpdateSort() *DeviceDurationUpsertOne
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DeviceDurationUpsertOne) UpdateStandBy ¶
func (u *DeviceDurationUpsertOne) UpdateStandBy() *DeviceDurationUpsertOne
UpdateStandBy sets the "standBy" field to the value that was provided on create.
func (*DeviceDurationUpsertOne) UpdateStatus ¶
func (u *DeviceDurationUpsertOne) UpdateStatus() *DeviceDurationUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DeviceDurationUpsertOne) UpdateUpdatedAt ¶
func (u *DeviceDurationUpsertOne) UpdateUpdatedAt() *DeviceDurationUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*DeviceDurationUpsertOne) UpdateWaiting ¶
func (u *DeviceDurationUpsertOne) UpdateWaiting() *DeviceDurationUpsertOne
UpdateWaiting sets the "waiting" field to the value that was provided on create.
func (*DeviceDurationUpsertOne) UpdateWashing ¶
func (u *DeviceDurationUpsertOne) UpdateWashing() *DeviceDurationUpsertOne
UpdateWashing sets the "washing" field to the value that was provided on create.
func (*DeviceDurationUpsertOne) UpdateWashingCold ¶
func (u *DeviceDurationUpsertOne) UpdateWashingCold() *DeviceDurationUpsertOne
UpdateWashingCold sets the "washingCold" field to the value that was provided on create.
type DeviceDurations ¶
type DeviceDurations []*DeviceDuration
DeviceDurations is a parsable slice of DeviceDuration.
type DeviceEvent ¶
type DeviceEvent struct { // ID of the ent. ID uint64 `json:"id,omitempty"` // Create Time | 创建日期 CreatedAt time.Time `json:"created_at,omitempty"` // Update Time | 修改日期 UpdatedAt time.Time `json:"updated_at,omitempty"` // Status 1: normal 2: ban | 状态 1 正常 2 禁用 Status uint8 `json:"status,omitempty"` // Sort Number | 排序编号 Sort uint32 `json:"sort,omitempty"` // Iot Id | 设备ID IotID string `json:"iotID,omitempty"` // EventType | 事件类型,INFO_EVENT_TYPE:信息。ALERT_EVENT_TYPE:告警。ERROR_EVENT_TYPE:故障。 EventType string `json:"eventType,omitempty"` // Identifier | 事件的标识符 Identifier string `json:"identifier,omitempty"` // Name | 事件名称 Name string `json:"name,omitempty"` // Output data | 事件的输出参数 OutputData string `json:"outputData,omitempty"` // Time | 事件发生时间。毫秒级时间戳。 Time string `json:"time,omitempty"` // contains filtered or unexported fields }
DeviceEvent is the model entity for the DeviceEvent schema.
func (*DeviceEvent) ExecContext ¶
func (c *DeviceEvent) 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 (*DeviceEvent) QueryContext ¶
func (c *DeviceEvent) 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 (*DeviceEvent) String ¶
func (de *DeviceEvent) String() string
String implements the fmt.Stringer.
func (*DeviceEvent) Unwrap ¶
func (de *DeviceEvent) Unwrap() *DeviceEvent
Unwrap unwraps the DeviceEvent 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 (*DeviceEvent) Update ¶
func (de *DeviceEvent) Update() *DeviceEventUpdateOne
Update returns a builder for updating this DeviceEvent. Note that you need to call DeviceEvent.Unwrap() before calling this method if this DeviceEvent was returned from a transaction, and the transaction was committed or rolled back.
type DeviceEventClient ¶
type DeviceEventClient struct {
// contains filtered or unexported fields
}
DeviceEventClient is a client for the DeviceEvent schema.
func NewDeviceEventClient ¶
func NewDeviceEventClient(c config) *DeviceEventClient
NewDeviceEventClient returns a client for the DeviceEvent from the given config.
func (*DeviceEventClient) Create ¶
func (c *DeviceEventClient) Create() *DeviceEventCreate
Create returns a builder for creating a DeviceEvent entity.
func (*DeviceEventClient) CreateBulk ¶
func (c *DeviceEventClient) CreateBulk(builders ...*DeviceEventCreate) *DeviceEventCreateBulk
CreateBulk returns a builder for creating a bulk of DeviceEvent entities.
func (*DeviceEventClient) Delete ¶
func (c *DeviceEventClient) Delete() *DeviceEventDelete
Delete returns a delete builder for DeviceEvent.
func (*DeviceEventClient) DeleteOne ¶
func (c *DeviceEventClient) DeleteOne(de *DeviceEvent) *DeviceEventDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*DeviceEventClient) DeleteOneID ¶
func (c *DeviceEventClient) DeleteOneID(id uint64) *DeviceEventDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*DeviceEventClient) ExecContext ¶
func (c *DeviceEventClient) 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 (*DeviceEventClient) Get ¶
func (c *DeviceEventClient) Get(ctx context.Context, id uint64) (*DeviceEvent, error)
Get returns a DeviceEvent entity by its id.
func (*DeviceEventClient) GetX ¶
func (c *DeviceEventClient) GetX(ctx context.Context, id uint64) *DeviceEvent
GetX is like Get, but panics if an error occurs.
func (*DeviceEventClient) Hooks ¶
func (c *DeviceEventClient) Hooks() []Hook
Hooks returns the client hooks.
func (*DeviceEventClient) Intercept ¶
func (c *DeviceEventClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `deviceevent.Intercept(f(g(h())))`.
func (*DeviceEventClient) Interceptors ¶
func (c *DeviceEventClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*DeviceEventClient) MapCreateBulk ¶
func (c *DeviceEventClient) MapCreateBulk(slice any, setFunc func(*DeviceEventCreate, int)) *DeviceEventCreateBulk
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 (*DeviceEventClient) Query ¶
func (c *DeviceEventClient) Query() *DeviceEventQuery
Query returns a query builder for DeviceEvent.
func (*DeviceEventClient) QueryContext ¶
func (c *DeviceEventClient) 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 (*DeviceEventClient) Update ¶
func (c *DeviceEventClient) Update() *DeviceEventUpdate
Update returns an update builder for DeviceEvent.
func (*DeviceEventClient) UpdateOne ¶
func (c *DeviceEventClient) UpdateOne(de *DeviceEvent) *DeviceEventUpdateOne
UpdateOne returns an update builder for the given entity.
func (*DeviceEventClient) UpdateOneID ¶
func (c *DeviceEventClient) UpdateOneID(id uint64) *DeviceEventUpdateOne
UpdateOneID returns an update builder for the given id.
func (*DeviceEventClient) Use ¶
func (c *DeviceEventClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `deviceevent.Hooks(f(g(h())))`.
type DeviceEventCreate ¶
type DeviceEventCreate struct { Table string // contains filtered or unexported fields }
DeviceEventCreate is the builder for creating a DeviceEvent entity.
func (*DeviceEventCreate) Exec ¶
func (dec *DeviceEventCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceEventCreate) ExecContext ¶
func (c *DeviceEventCreate) 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 (*DeviceEventCreate) ExecX ¶
func (dec *DeviceEventCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceEventCreate) Mutation ¶
func (dec *DeviceEventCreate) Mutation() *DeviceEventMutation
Mutation returns the DeviceEventMutation object of the builder.
func (*DeviceEventCreate) OnConflict ¶
func (dec *DeviceEventCreate) OnConflict(opts ...sql.ConflictOption) *DeviceEventUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.DeviceEvent.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.DeviceEventUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*DeviceEventCreate) OnConflictColumns ¶
func (dec *DeviceEventCreate) OnConflictColumns(columns ...string) *DeviceEventUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.DeviceEvent.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*DeviceEventCreate) QueryContext ¶
func (c *DeviceEventCreate) 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 (*DeviceEventCreate) Save ¶
func (dec *DeviceEventCreate) Save(ctx context.Context) (*DeviceEvent, error)
Save creates the DeviceEvent in the database.
func (*DeviceEventCreate) SaveX ¶
func (dec *DeviceEventCreate) SaveX(ctx context.Context) *DeviceEvent
SaveX calls Save and panics if Save returns an error.
func (*DeviceEventCreate) SetCreatedAt ¶
func (dec *DeviceEventCreate) SetCreatedAt(t time.Time) *DeviceEventCreate
SetCreatedAt sets the "created_at" field.
func (*DeviceEventCreate) SetEventType ¶
func (dec *DeviceEventCreate) SetEventType(s string) *DeviceEventCreate
SetEventType sets the "eventType" field.
func (*DeviceEventCreate) SetID ¶
func (dec *DeviceEventCreate) SetID(u uint64) *DeviceEventCreate
SetID sets the "id" field.
func (*DeviceEventCreate) SetIdentifier ¶
func (dec *DeviceEventCreate) SetIdentifier(s string) *DeviceEventCreate
SetIdentifier sets the "identifier" field.
func (*DeviceEventCreate) SetIotID ¶
func (dec *DeviceEventCreate) SetIotID(s string) *DeviceEventCreate
SetIotID sets the "iotID" field.
func (*DeviceEventCreate) SetName ¶
func (dec *DeviceEventCreate) SetName(s string) *DeviceEventCreate
SetName sets the "name" field.
func (*DeviceEventCreate) SetNillableCreatedAt ¶
func (dec *DeviceEventCreate) SetNillableCreatedAt(t *time.Time) *DeviceEventCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*DeviceEventCreate) SetNillableEventType ¶
func (dec *DeviceEventCreate) SetNillableEventType(s *string) *DeviceEventCreate
SetNillableEventType sets the "eventType" field if the given value is not nil.
func (*DeviceEventCreate) SetNillableOutputData ¶
func (dec *DeviceEventCreate) SetNillableOutputData(s *string) *DeviceEventCreate
SetNillableOutputData sets the "outputData" field if the given value is not nil.
func (*DeviceEventCreate) SetNillableSort ¶
func (dec *DeviceEventCreate) SetNillableSort(u *uint32) *DeviceEventCreate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DeviceEventCreate) SetNillableStatus ¶
func (dec *DeviceEventCreate) SetNillableStatus(u *uint8) *DeviceEventCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DeviceEventCreate) SetNillableUpdatedAt ¶
func (dec *DeviceEventCreate) SetNillableUpdatedAt(t *time.Time) *DeviceEventCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*DeviceEventCreate) SetNotNilEventType ¶
func (de *DeviceEventCreate) SetNotNilEventType(value *string) *DeviceEventCreate
set field if value's pointer is not nil.
func (*DeviceEventCreate) SetNotNilIdentifier ¶
func (de *DeviceEventCreate) SetNotNilIdentifier(value *string) *DeviceEventCreate
set field if value's pointer is not nil.
func (*DeviceEventCreate) SetNotNilIotID ¶
func (de *DeviceEventCreate) SetNotNilIotID(value *string) *DeviceEventCreate
set field if value's pointer is not nil.
func (*DeviceEventCreate) SetNotNilName ¶
func (de *DeviceEventCreate) SetNotNilName(value *string) *DeviceEventCreate
set field if value's pointer is not nil.
func (*DeviceEventCreate) SetNotNilOutputData ¶
func (de *DeviceEventCreate) SetNotNilOutputData(value *string) *DeviceEventCreate
set field if value's pointer is not nil.
func (*DeviceEventCreate) SetNotNilSort ¶
func (de *DeviceEventCreate) SetNotNilSort(value *uint32) *DeviceEventCreate
set field if value's pointer is not nil.
func (*DeviceEventCreate) SetNotNilStatus ¶
func (de *DeviceEventCreate) SetNotNilStatus(value *uint8) *DeviceEventCreate
set field if value's pointer is not nil.
func (*DeviceEventCreate) SetNotNilTime ¶
func (de *DeviceEventCreate) SetNotNilTime(value *string) *DeviceEventCreate
set field if value's pointer is not nil.
func (*DeviceEventCreate) SetNotNilUpdatedAt ¶
func (de *DeviceEventCreate) SetNotNilUpdatedAt(value *time.Time) *DeviceEventCreate
set field if value's pointer is not nil.
func (*DeviceEventCreate) SetOutputData ¶
func (dec *DeviceEventCreate) SetOutputData(s string) *DeviceEventCreate
SetOutputData sets the "outputData" field.
func (*DeviceEventCreate) SetSort ¶
func (dec *DeviceEventCreate) SetSort(u uint32) *DeviceEventCreate
SetSort sets the "sort" field.
func (*DeviceEventCreate) SetStatus ¶
func (dec *DeviceEventCreate) SetStatus(u uint8) *DeviceEventCreate
SetStatus sets the "status" field.
func (*DeviceEventCreate) SetTime ¶
func (dec *DeviceEventCreate) SetTime(s string) *DeviceEventCreate
SetTime sets the "time" field.
func (*DeviceEventCreate) SetUpdatedAt ¶
func (dec *DeviceEventCreate) SetUpdatedAt(t time.Time) *DeviceEventCreate
SetUpdatedAt sets the "updated_at" field.
func (*DeviceEventCreate) TableName ¶
func (dec *DeviceEventCreate) TableName(s string) *DeviceEventCreate
type DeviceEventCreateBulk ¶
type DeviceEventCreateBulk struct {
// contains filtered or unexported fields
}
DeviceEventCreateBulk is the builder for creating many DeviceEvent entities in bulk.
func (*DeviceEventCreateBulk) Exec ¶
func (decb *DeviceEventCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceEventCreateBulk) ExecContext ¶
func (c *DeviceEventCreateBulk) 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 (*DeviceEventCreateBulk) ExecX ¶
func (decb *DeviceEventCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceEventCreateBulk) OnConflict ¶
func (decb *DeviceEventCreateBulk) OnConflict(opts ...sql.ConflictOption) *DeviceEventUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.DeviceEvent.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.DeviceEventUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*DeviceEventCreateBulk) OnConflictColumns ¶
func (decb *DeviceEventCreateBulk) OnConflictColumns(columns ...string) *DeviceEventUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.DeviceEvent.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*DeviceEventCreateBulk) QueryContext ¶
func (c *DeviceEventCreateBulk) 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 (*DeviceEventCreateBulk) Save ¶
func (decb *DeviceEventCreateBulk) Save(ctx context.Context) ([]*DeviceEvent, error)
Save creates the DeviceEvent entities in the database.
func (*DeviceEventCreateBulk) SaveX ¶
func (decb *DeviceEventCreateBulk) SaveX(ctx context.Context) []*DeviceEvent
SaveX is like Save, but panics if an error occurs.
type DeviceEventDelete ¶
type DeviceEventDelete struct {
// contains filtered or unexported fields
}
DeviceEventDelete is the builder for deleting a DeviceEvent entity.
func (*DeviceEventDelete) Exec ¶
func (ded *DeviceEventDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*DeviceEventDelete) ExecContext ¶
func (c *DeviceEventDelete) 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 (*DeviceEventDelete) ExecX ¶
func (ded *DeviceEventDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*DeviceEventDelete) QueryContext ¶
func (c *DeviceEventDelete) 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 (*DeviceEventDelete) Where ¶
func (ded *DeviceEventDelete) Where(ps ...predicate.DeviceEvent) *DeviceEventDelete
Where appends a list predicates to the DeviceEventDelete builder.
type DeviceEventDeleteOne ¶
type DeviceEventDeleteOne struct {
// contains filtered or unexported fields
}
DeviceEventDeleteOne is the builder for deleting a single DeviceEvent entity.
func (*DeviceEventDeleteOne) Exec ¶
func (dedo *DeviceEventDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*DeviceEventDeleteOne) ExecX ¶
func (dedo *DeviceEventDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceEventDeleteOne) Where ¶
func (dedo *DeviceEventDeleteOne) Where(ps ...predicate.DeviceEvent) *DeviceEventDeleteOne
Where appends a list predicates to the DeviceEventDelete builder.
type DeviceEventGroupBy ¶
type DeviceEventGroupBy struct {
// contains filtered or unexported fields
}
DeviceEventGroupBy is the group-by builder for DeviceEvent entities.
func (*DeviceEventGroupBy) Aggregate ¶
func (degb *DeviceEventGroupBy) Aggregate(fns ...AggregateFunc) *DeviceEventGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*DeviceEventGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DeviceEventGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*DeviceEventGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DeviceEventGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DeviceEventGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DeviceEventGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*DeviceEventGroupBy) Scan ¶
func (degb *DeviceEventGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*DeviceEventGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type DeviceEventMutation ¶
type DeviceEventMutation struct {
// contains filtered or unexported fields
}
DeviceEventMutation represents an operation that mutates the DeviceEvent nodes in the graph.
func (*DeviceEventMutation) AddField ¶
func (m *DeviceEventMutation) 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 (*DeviceEventMutation) AddSort ¶
func (m *DeviceEventMutation) AddSort(u int32)
AddSort adds u to the "sort" field.
func (*DeviceEventMutation) AddStatus ¶
func (m *DeviceEventMutation) AddStatus(u int8)
AddStatus adds u to the "status" field.
func (*DeviceEventMutation) AddedEdges ¶
func (m *DeviceEventMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*DeviceEventMutation) AddedField ¶
func (m *DeviceEventMutation) 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 (*DeviceEventMutation) AddedFields ¶
func (m *DeviceEventMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*DeviceEventMutation) AddedIDs ¶
func (m *DeviceEventMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*DeviceEventMutation) AddedSort ¶
func (m *DeviceEventMutation) AddedSort() (r int32, exists bool)
AddedSort returns the value that was added to the "sort" field in this mutation.
func (*DeviceEventMutation) AddedStatus ¶
func (m *DeviceEventMutation) AddedStatus() (r int8, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*DeviceEventMutation) ClearEdge ¶
func (m *DeviceEventMutation) 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 (*DeviceEventMutation) ClearEventType ¶
func (m *DeviceEventMutation) ClearEventType()
ClearEventType clears the value of the "eventType" field.
func (*DeviceEventMutation) ClearField ¶
func (m *DeviceEventMutation) 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 (*DeviceEventMutation) ClearOutputData ¶
func (m *DeviceEventMutation) ClearOutputData()
ClearOutputData clears the value of the "outputData" field.
func (*DeviceEventMutation) ClearStatus ¶
func (m *DeviceEventMutation) ClearStatus()
ClearStatus clears the value of the "status" field.
func (*DeviceEventMutation) ClearedEdges ¶
func (m *DeviceEventMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*DeviceEventMutation) ClearedFields ¶
func (m *DeviceEventMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (DeviceEventMutation) Client ¶
func (m DeviceEventMutation) 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 (*DeviceEventMutation) CreatedAt ¶
func (m *DeviceEventMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*DeviceEventMutation) EdgeCleared ¶
func (m *DeviceEventMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*DeviceEventMutation) EventType ¶
func (m *DeviceEventMutation) EventType() (r string, exists bool)
EventType returns the value of the "eventType" field in the mutation.
func (*DeviceEventMutation) EventTypeCleared ¶
func (m *DeviceEventMutation) EventTypeCleared() bool
EventTypeCleared returns if the "eventType" field was cleared in this mutation.
func (*DeviceEventMutation) ExecContext ¶
func (c *DeviceEventMutation) 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 (*DeviceEventMutation) Field ¶
func (m *DeviceEventMutation) 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 (*DeviceEventMutation) FieldCleared ¶
func (m *DeviceEventMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*DeviceEventMutation) Fields ¶
func (m *DeviceEventMutation) 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 (*DeviceEventMutation) ID ¶
func (m *DeviceEventMutation) ID() (id uint64, 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 (*DeviceEventMutation) IDs ¶
func (m *DeviceEventMutation) IDs(ctx context.Context) ([]uint64, 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 (*DeviceEventMutation) Identifier ¶
func (m *DeviceEventMutation) Identifier() (r string, exists bool)
Identifier returns the value of the "identifier" field in the mutation.
func (*DeviceEventMutation) IotID ¶
func (m *DeviceEventMutation) IotID() (r string, exists bool)
IotID returns the value of the "iotID" field in the mutation.
func (*DeviceEventMutation) Name ¶
func (m *DeviceEventMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*DeviceEventMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the DeviceEvent entity. If the DeviceEvent 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 (*DeviceEventMutation) OldEventType ¶
func (m *DeviceEventMutation) OldEventType(ctx context.Context) (v string, err error)
OldEventType returns the old "eventType" field's value of the DeviceEvent entity. If the DeviceEvent 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 (*DeviceEventMutation) 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 (*DeviceEventMutation) OldIdentifier ¶
func (m *DeviceEventMutation) OldIdentifier(ctx context.Context) (v string, err error)
OldIdentifier returns the old "identifier" field's value of the DeviceEvent entity. If the DeviceEvent 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 (*DeviceEventMutation) OldIotID ¶
func (m *DeviceEventMutation) OldIotID(ctx context.Context) (v string, err error)
OldIotID returns the old "iotID" field's value of the DeviceEvent entity. If the DeviceEvent 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 (*DeviceEventMutation) OldName ¶
func (m *DeviceEventMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the DeviceEvent entity. If the DeviceEvent 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 (*DeviceEventMutation) OldOutputData ¶
func (m *DeviceEventMutation) OldOutputData(ctx context.Context) (v string, err error)
OldOutputData returns the old "outputData" field's value of the DeviceEvent entity. If the DeviceEvent 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 (*DeviceEventMutation) OldSort ¶
func (m *DeviceEventMutation) OldSort(ctx context.Context) (v uint32, err error)
OldSort returns the old "sort" field's value of the DeviceEvent entity. If the DeviceEvent 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 (*DeviceEventMutation) OldStatus ¶
func (m *DeviceEventMutation) OldStatus(ctx context.Context) (v uint8, err error)
OldStatus returns the old "status" field's value of the DeviceEvent entity. If the DeviceEvent 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 (*DeviceEventMutation) OldTime ¶
func (m *DeviceEventMutation) OldTime(ctx context.Context) (v string, err error)
OldTime returns the old "time" field's value of the DeviceEvent entity. If the DeviceEvent 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 (*DeviceEventMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the DeviceEvent entity. If the DeviceEvent 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 (*DeviceEventMutation) Op ¶
func (m *DeviceEventMutation) Op() Op
Op returns the operation name.
func (*DeviceEventMutation) OutputData ¶
func (m *DeviceEventMutation) OutputData() (r string, exists bool)
OutputData returns the value of the "outputData" field in the mutation.
func (*DeviceEventMutation) OutputDataCleared ¶
func (m *DeviceEventMutation) OutputDataCleared() bool
OutputDataCleared returns if the "outputData" field was cleared in this mutation.
func (*DeviceEventMutation) QueryContext ¶
func (c *DeviceEventMutation) 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 (*DeviceEventMutation) RemovedEdges ¶
func (m *DeviceEventMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*DeviceEventMutation) RemovedIDs ¶
func (m *DeviceEventMutation) 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 (*DeviceEventMutation) ResetCreatedAt ¶
func (m *DeviceEventMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*DeviceEventMutation) ResetEdge ¶
func (m *DeviceEventMutation) 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 (*DeviceEventMutation) ResetEventType ¶
func (m *DeviceEventMutation) ResetEventType()
ResetEventType resets all changes to the "eventType" field.
func (*DeviceEventMutation) ResetField ¶
func (m *DeviceEventMutation) 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 (*DeviceEventMutation) ResetIdentifier ¶
func (m *DeviceEventMutation) ResetIdentifier()
ResetIdentifier resets all changes to the "identifier" field.
func (*DeviceEventMutation) ResetIotID ¶
func (m *DeviceEventMutation) ResetIotID()
ResetIotID resets all changes to the "iotID" field.
func (*DeviceEventMutation) ResetName ¶
func (m *DeviceEventMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*DeviceEventMutation) ResetOutputData ¶
func (m *DeviceEventMutation) ResetOutputData()
ResetOutputData resets all changes to the "outputData" field.
func (*DeviceEventMutation) ResetSort ¶
func (m *DeviceEventMutation) ResetSort()
ResetSort resets all changes to the "sort" field.
func (*DeviceEventMutation) ResetStatus ¶
func (m *DeviceEventMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*DeviceEventMutation) ResetTime ¶
func (m *DeviceEventMutation) ResetTime()
ResetTime resets all changes to the "time" field.
func (*DeviceEventMutation) ResetUpdatedAt ¶
func (m *DeviceEventMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*DeviceEventMutation) SetCreatedAt ¶
func (m *DeviceEventMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*DeviceEventMutation) SetEventType ¶
func (m *DeviceEventMutation) SetEventType(s string)
SetEventType sets the "eventType" field.
func (*DeviceEventMutation) SetField ¶
func (m *DeviceEventMutation) 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 (*DeviceEventMutation) SetID ¶
func (m *DeviceEventMutation) SetID(id uint64)
SetID sets the value of the id field. Note that this operation is only accepted on creation of DeviceEvent entities.
func (*DeviceEventMutation) SetIdentifier ¶
func (m *DeviceEventMutation) SetIdentifier(s string)
SetIdentifier sets the "identifier" field.
func (*DeviceEventMutation) SetIotID ¶
func (m *DeviceEventMutation) SetIotID(s string)
SetIotID sets the "iotID" field.
func (*DeviceEventMutation) SetName ¶
func (m *DeviceEventMutation) SetName(s string)
SetName sets the "name" field.
func (*DeviceEventMutation) SetOp ¶
func (m *DeviceEventMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*DeviceEventMutation) SetOutputData ¶
func (m *DeviceEventMutation) SetOutputData(s string)
SetOutputData sets the "outputData" field.
func (*DeviceEventMutation) SetSort ¶
func (m *DeviceEventMutation) SetSort(u uint32)
SetSort sets the "sort" field.
func (*DeviceEventMutation) SetStatus ¶
func (m *DeviceEventMutation) SetStatus(u uint8)
SetStatus sets the "status" field.
func (*DeviceEventMutation) SetTime ¶
func (m *DeviceEventMutation) SetTime(s string)
SetTime sets the "time" field.
func (*DeviceEventMutation) SetUpdatedAt ¶
func (m *DeviceEventMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*DeviceEventMutation) Sort ¶
func (m *DeviceEventMutation) Sort() (r uint32, exists bool)
Sort returns the value of the "sort" field in the mutation.
func (*DeviceEventMutation) Status ¶
func (m *DeviceEventMutation) Status() (r uint8, exists bool)
Status returns the value of the "status" field in the mutation.
func (*DeviceEventMutation) StatusCleared ¶
func (m *DeviceEventMutation) StatusCleared() bool
StatusCleared returns if the "status" field was cleared in this mutation.
func (*DeviceEventMutation) Time ¶
func (m *DeviceEventMutation) Time() (r string, exists bool)
Time returns the value of the "time" field in the mutation.
func (DeviceEventMutation) Tx ¶
func (m DeviceEventMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*DeviceEventMutation) Type ¶
func (m *DeviceEventMutation) Type() string
Type returns the node type of this mutation (DeviceEvent).
func (*DeviceEventMutation) UpdatedAt ¶
func (m *DeviceEventMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*DeviceEventMutation) Where ¶
func (m *DeviceEventMutation) Where(ps ...predicate.DeviceEvent)
Where appends a list predicates to the DeviceEventMutation builder.
func (*DeviceEventMutation) WhereP ¶
func (m *DeviceEventMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the DeviceEventMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type DeviceEventPageList ¶
type DeviceEventPageList struct { List []*DeviceEvent `json:"list"` PageDetails *PageDetails `json:"pageDetails"` }
DeviceEventPageList is DeviceEvent PageList result.
type DeviceEventPager ¶
type DeviceEventPager struct { Order deviceevent.OrderOption Filter func(*DeviceEventQuery) (*DeviceEventQuery, error) }
func (*DeviceEventPager) ApplyFilter ¶
func (p *DeviceEventPager) ApplyFilter(query *DeviceEventQuery) (*DeviceEventQuery, error)
type DeviceEventPaginateOption ¶
type DeviceEventPaginateOption func(*DeviceEventPager)
DeviceEventPaginateOption enables pagination customization.
type DeviceEventQuery ¶
type DeviceEventQuery struct {
// contains filtered or unexported fields
}
DeviceEventQuery is the builder for querying DeviceEvent entities.
func (*DeviceEventQuery) Aggregate ¶
func (deq *DeviceEventQuery) Aggregate(fns ...AggregateFunc) *DeviceEventSelect
Aggregate returns a DeviceEventSelect configured with the given aggregations.
func (*DeviceEventQuery) All ¶
func (deq *DeviceEventQuery) All(ctx context.Context) ([]*DeviceEvent, error)
All executes the query and returns a list of DeviceEvents.
func (*DeviceEventQuery) AllX ¶
func (deq *DeviceEventQuery) AllX(ctx context.Context) []*DeviceEvent
AllX is like All, but panics if an error occurs.
func (*DeviceEventQuery) Clone ¶
func (deq *DeviceEventQuery) Clone() *DeviceEventQuery
Clone returns a duplicate of the DeviceEventQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*DeviceEventQuery) Count ¶
func (deq *DeviceEventQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*DeviceEventQuery) CountX ¶
func (deq *DeviceEventQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*DeviceEventQuery) ExecContext ¶
func (c *DeviceEventQuery) 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 (*DeviceEventQuery) Exist ¶
func (deq *DeviceEventQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*DeviceEventQuery) ExistX ¶
func (deq *DeviceEventQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*DeviceEventQuery) First ¶
func (deq *DeviceEventQuery) First(ctx context.Context) (*DeviceEvent, error)
First returns the first DeviceEvent entity from the query. Returns a *NotFoundError when no DeviceEvent was found.
func (*DeviceEventQuery) FirstID ¶
func (deq *DeviceEventQuery) FirstID(ctx context.Context) (id uint64, err error)
FirstID returns the first DeviceEvent ID from the query. Returns a *NotFoundError when no DeviceEvent ID was found.
func (*DeviceEventQuery) FirstIDX ¶
func (deq *DeviceEventQuery) FirstIDX(ctx context.Context) uint64
FirstIDX is like FirstID, but panics if an error occurs.
func (*DeviceEventQuery) FirstX ¶
func (deq *DeviceEventQuery) FirstX(ctx context.Context) *DeviceEvent
FirstX is like First, but panics if an error occurs.
func (*DeviceEventQuery) GroupBy ¶
func (deq *DeviceEventQuery) GroupBy(field string, fields ...string) *DeviceEventGroupBy
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.DeviceEvent.Query(). GroupBy(deviceevent.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*DeviceEventQuery) IDs ¶
func (deq *DeviceEventQuery) IDs(ctx context.Context) (ids []uint64, err error)
IDs executes the query and returns a list of DeviceEvent IDs.
func (*DeviceEventQuery) IDsX ¶
func (deq *DeviceEventQuery) IDsX(ctx context.Context) []uint64
IDsX is like IDs, but panics if an error occurs.
func (*DeviceEventQuery) Limit ¶
func (deq *DeviceEventQuery) Limit(limit int) *DeviceEventQuery
Limit the number of records to be returned by this query.
func (*DeviceEventQuery) Modify ¶
func (deq *DeviceEventQuery) Modify(modifiers ...func(s *sql.Selector)) *DeviceEventSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*DeviceEventQuery) Offset ¶
func (deq *DeviceEventQuery) Offset(offset int) *DeviceEventQuery
Offset to start from.
func (*DeviceEventQuery) Only ¶
func (deq *DeviceEventQuery) Only(ctx context.Context) (*DeviceEvent, error)
Only returns a single DeviceEvent entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one DeviceEvent entity is found. Returns a *NotFoundError when no DeviceEvent entities are found.
func (*DeviceEventQuery) OnlyID ¶
func (deq *DeviceEventQuery) OnlyID(ctx context.Context) (id uint64, err error)
OnlyID is like Only, but returns the only DeviceEvent ID in the query. Returns a *NotSingularError when more than one DeviceEvent ID is found. Returns a *NotFoundError when no entities are found.
func (*DeviceEventQuery) OnlyIDX ¶
func (deq *DeviceEventQuery) OnlyIDX(ctx context.Context) uint64
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*DeviceEventQuery) OnlyX ¶
func (deq *DeviceEventQuery) OnlyX(ctx context.Context) *DeviceEvent
OnlyX is like Only, but panics if an error occurs.
func (*DeviceEventQuery) Order ¶
func (deq *DeviceEventQuery) Order(o ...deviceevent.OrderOption) *DeviceEventQuery
Order specifies how the records should be ordered.
func (*DeviceEventQuery) Page ¶
func (de *DeviceEventQuery) Page( ctx context.Context, pageNum uint64, pageSize uint64, opts ...DeviceEventPaginateOption, ) (*DeviceEventPageList, error)
func (*DeviceEventQuery) QueryContext ¶
func (c *DeviceEventQuery) 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 (*DeviceEventQuery) Select ¶
func (deq *DeviceEventQuery) Select(fields ...string) *DeviceEventSelect
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.DeviceEvent.Query(). Select(deviceevent.FieldCreatedAt). Scan(ctx, &v)
func (*DeviceEventQuery) Unique ¶
func (deq *DeviceEventQuery) Unique(unique bool) *DeviceEventQuery
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 (*DeviceEventQuery) Where ¶
func (deq *DeviceEventQuery) Where(ps ...predicate.DeviceEvent) *DeviceEventQuery
Where adds a new predicate for the DeviceEventQuery builder.
type DeviceEventSelect ¶
type DeviceEventSelect struct { *DeviceEventQuery // contains filtered or unexported fields }
DeviceEventSelect is the builder for selecting fields of DeviceEvent entities.
func (*DeviceEventSelect) Aggregate ¶
func (des *DeviceEventSelect) Aggregate(fns ...AggregateFunc) *DeviceEventSelect
Aggregate adds the given aggregation functions to the selector query.
func (*DeviceEventSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DeviceEventSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (DeviceEventSelect) ExecContext ¶
func (c DeviceEventSelect) 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 (*DeviceEventSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DeviceEventSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DeviceEventSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DeviceEventSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*DeviceEventSelect) Modify ¶
func (des *DeviceEventSelect) Modify(modifiers ...func(s *sql.Selector)) *DeviceEventSelect
Modify adds a query modifier for attaching custom logic to queries.
func (DeviceEventSelect) QueryContext ¶
func (c DeviceEventSelect) 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 (*DeviceEventSelect) Scan ¶
func (des *DeviceEventSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*DeviceEventSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type DeviceEventUpdate ¶
type DeviceEventUpdate struct {
// contains filtered or unexported fields
}
DeviceEventUpdate is the builder for updating DeviceEvent entities.
func (*DeviceEventUpdate) AddSort ¶
func (deu *DeviceEventUpdate) AddSort(u int32) *DeviceEventUpdate
AddSort adds u to the "sort" field.
func (*DeviceEventUpdate) AddStatus ¶
func (deu *DeviceEventUpdate) AddStatus(u int8) *DeviceEventUpdate
AddStatus adds u to the "status" field.
func (*DeviceEventUpdate) ClearEventType ¶
func (deu *DeviceEventUpdate) ClearEventType() *DeviceEventUpdate
ClearEventType clears the value of the "eventType" field.
func (*DeviceEventUpdate) ClearOutputData ¶
func (deu *DeviceEventUpdate) ClearOutputData() *DeviceEventUpdate
ClearOutputData clears the value of the "outputData" field.
func (*DeviceEventUpdate) ClearStatus ¶
func (deu *DeviceEventUpdate) ClearStatus() *DeviceEventUpdate
ClearStatus clears the value of the "status" field.
func (*DeviceEventUpdate) Exec ¶
func (deu *DeviceEventUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceEventUpdate) ExecContext ¶
func (c *DeviceEventUpdate) 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 (*DeviceEventUpdate) ExecX ¶
func (deu *DeviceEventUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceEventUpdate) Modify ¶
func (deu *DeviceEventUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceEventUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*DeviceEventUpdate) Mutation ¶
func (deu *DeviceEventUpdate) Mutation() *DeviceEventMutation
Mutation returns the DeviceEventMutation object of the builder.
func (*DeviceEventUpdate) QueryContext ¶
func (c *DeviceEventUpdate) 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 (*DeviceEventUpdate) Save ¶
func (deu *DeviceEventUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*DeviceEventUpdate) SaveX ¶
func (deu *DeviceEventUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*DeviceEventUpdate) SetEventType ¶
func (deu *DeviceEventUpdate) SetEventType(s string) *DeviceEventUpdate
SetEventType sets the "eventType" field.
func (*DeviceEventUpdate) SetIdentifier ¶
func (deu *DeviceEventUpdate) SetIdentifier(s string) *DeviceEventUpdate
SetIdentifier sets the "identifier" field.
func (*DeviceEventUpdate) SetIotID ¶
func (deu *DeviceEventUpdate) SetIotID(s string) *DeviceEventUpdate
SetIotID sets the "iotID" field.
func (*DeviceEventUpdate) SetName ¶
func (deu *DeviceEventUpdate) SetName(s string) *DeviceEventUpdate
SetName sets the "name" field.
func (*DeviceEventUpdate) SetNillableEventType ¶
func (deu *DeviceEventUpdate) SetNillableEventType(s *string) *DeviceEventUpdate
SetNillableEventType sets the "eventType" field if the given value is not nil.
func (*DeviceEventUpdate) SetNillableIdentifier ¶
func (deu *DeviceEventUpdate) SetNillableIdentifier(s *string) *DeviceEventUpdate
SetNillableIdentifier sets the "identifier" field if the given value is not nil.
func (*DeviceEventUpdate) SetNillableIotID ¶
func (deu *DeviceEventUpdate) SetNillableIotID(s *string) *DeviceEventUpdate
SetNillableIotID sets the "iotID" field if the given value is not nil.
func (*DeviceEventUpdate) SetNillableName ¶
func (deu *DeviceEventUpdate) SetNillableName(s *string) *DeviceEventUpdate
SetNillableName sets the "name" field if the given value is not nil.
func (*DeviceEventUpdate) SetNillableOutputData ¶
func (deu *DeviceEventUpdate) SetNillableOutputData(s *string) *DeviceEventUpdate
SetNillableOutputData sets the "outputData" field if the given value is not nil.
func (*DeviceEventUpdate) SetNillableSort ¶
func (deu *DeviceEventUpdate) SetNillableSort(u *uint32) *DeviceEventUpdate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DeviceEventUpdate) SetNillableStatus ¶
func (deu *DeviceEventUpdate) SetNillableStatus(u *uint8) *DeviceEventUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DeviceEventUpdate) SetNillableTime ¶
func (deu *DeviceEventUpdate) SetNillableTime(s *string) *DeviceEventUpdate
SetNillableTime sets the "time" field if the given value is not nil.
func (*DeviceEventUpdate) SetNotNilEventType ¶
func (de *DeviceEventUpdate) SetNotNilEventType(value *string) *DeviceEventUpdate
set field if value's pointer is not nil.
func (*DeviceEventUpdate) SetNotNilIdentifier ¶
func (de *DeviceEventUpdate) SetNotNilIdentifier(value *string) *DeviceEventUpdate
set field if value's pointer is not nil.
func (*DeviceEventUpdate) SetNotNilIotID ¶
func (de *DeviceEventUpdate) SetNotNilIotID(value *string) *DeviceEventUpdate
set field if value's pointer is not nil.
func (*DeviceEventUpdate) SetNotNilName ¶
func (de *DeviceEventUpdate) SetNotNilName(value *string) *DeviceEventUpdate
set field if value's pointer is not nil.
func (*DeviceEventUpdate) SetNotNilOutputData ¶
func (de *DeviceEventUpdate) SetNotNilOutputData(value *string) *DeviceEventUpdate
set field if value's pointer is not nil.
func (*DeviceEventUpdate) SetNotNilSort ¶
func (de *DeviceEventUpdate) SetNotNilSort(value *uint32) *DeviceEventUpdate
set field if value's pointer is not nil.
func (*DeviceEventUpdate) SetNotNilStatus ¶
func (de *DeviceEventUpdate) SetNotNilStatus(value *uint8) *DeviceEventUpdate
set field if value's pointer is not nil.
func (*DeviceEventUpdate) SetNotNilTime ¶
func (de *DeviceEventUpdate) SetNotNilTime(value *string) *DeviceEventUpdate
set field if value's pointer is not nil.
func (*DeviceEventUpdate) SetNotNilUpdatedAt ¶
func (de *DeviceEventUpdate) SetNotNilUpdatedAt(value *time.Time) *DeviceEventUpdate
set field if value's pointer is not nil.
func (*DeviceEventUpdate) SetOutputData ¶
func (deu *DeviceEventUpdate) SetOutputData(s string) *DeviceEventUpdate
SetOutputData sets the "outputData" field.
func (*DeviceEventUpdate) SetSort ¶
func (deu *DeviceEventUpdate) SetSort(u uint32) *DeviceEventUpdate
SetSort sets the "sort" field.
func (*DeviceEventUpdate) SetStatus ¶
func (deu *DeviceEventUpdate) SetStatus(u uint8) *DeviceEventUpdate
SetStatus sets the "status" field.
func (*DeviceEventUpdate) SetTime ¶
func (deu *DeviceEventUpdate) SetTime(s string) *DeviceEventUpdate
SetTime sets the "time" field.
func (*DeviceEventUpdate) SetUpdatedAt ¶
func (deu *DeviceEventUpdate) SetUpdatedAt(t time.Time) *DeviceEventUpdate
SetUpdatedAt sets the "updated_at" field.
func (*DeviceEventUpdate) Where ¶
func (deu *DeviceEventUpdate) Where(ps ...predicate.DeviceEvent) *DeviceEventUpdate
Where appends a list predicates to the DeviceEventUpdate builder.
type DeviceEventUpdateOne ¶
type DeviceEventUpdateOne struct {
// contains filtered or unexported fields
}
DeviceEventUpdateOne is the builder for updating a single DeviceEvent entity.
func (*DeviceEventUpdateOne) AddSort ¶
func (deuo *DeviceEventUpdateOne) AddSort(u int32) *DeviceEventUpdateOne
AddSort adds u to the "sort" field.
func (*DeviceEventUpdateOne) AddStatus ¶
func (deuo *DeviceEventUpdateOne) AddStatus(u int8) *DeviceEventUpdateOne
AddStatus adds u to the "status" field.
func (*DeviceEventUpdateOne) ClearEventType ¶
func (deuo *DeviceEventUpdateOne) ClearEventType() *DeviceEventUpdateOne
ClearEventType clears the value of the "eventType" field.
func (*DeviceEventUpdateOne) ClearOutputData ¶
func (deuo *DeviceEventUpdateOne) ClearOutputData() *DeviceEventUpdateOne
ClearOutputData clears the value of the "outputData" field.
func (*DeviceEventUpdateOne) ClearStatus ¶
func (deuo *DeviceEventUpdateOne) ClearStatus() *DeviceEventUpdateOne
ClearStatus clears the value of the "status" field.
func (*DeviceEventUpdateOne) Exec ¶
func (deuo *DeviceEventUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*DeviceEventUpdateOne) ExecContext ¶
func (c *DeviceEventUpdateOne) 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 (*DeviceEventUpdateOne) ExecX ¶
func (deuo *DeviceEventUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceEventUpdateOne) Modify ¶
func (deuo *DeviceEventUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceEventUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*DeviceEventUpdateOne) Mutation ¶
func (deuo *DeviceEventUpdateOne) Mutation() *DeviceEventMutation
Mutation returns the DeviceEventMutation object of the builder.
func (*DeviceEventUpdateOne) QueryContext ¶
func (c *DeviceEventUpdateOne) 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 (*DeviceEventUpdateOne) Save ¶
func (deuo *DeviceEventUpdateOne) Save(ctx context.Context) (*DeviceEvent, error)
Save executes the query and returns the updated DeviceEvent entity.
func (*DeviceEventUpdateOne) SaveX ¶
func (deuo *DeviceEventUpdateOne) SaveX(ctx context.Context) *DeviceEvent
SaveX is like Save, but panics if an error occurs.
func (*DeviceEventUpdateOne) Select ¶
func (deuo *DeviceEventUpdateOne) Select(field string, fields ...string) *DeviceEventUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*DeviceEventUpdateOne) SetEventType ¶
func (deuo *DeviceEventUpdateOne) SetEventType(s string) *DeviceEventUpdateOne
SetEventType sets the "eventType" field.
func (*DeviceEventUpdateOne) SetIdentifier ¶
func (deuo *DeviceEventUpdateOne) SetIdentifier(s string) *DeviceEventUpdateOne
SetIdentifier sets the "identifier" field.
func (*DeviceEventUpdateOne) SetIotID ¶
func (deuo *DeviceEventUpdateOne) SetIotID(s string) *DeviceEventUpdateOne
SetIotID sets the "iotID" field.
func (*DeviceEventUpdateOne) SetName ¶
func (deuo *DeviceEventUpdateOne) SetName(s string) *DeviceEventUpdateOne
SetName sets the "name" field.
func (*DeviceEventUpdateOne) SetNillableEventType ¶
func (deuo *DeviceEventUpdateOne) SetNillableEventType(s *string) *DeviceEventUpdateOne
SetNillableEventType sets the "eventType" field if the given value is not nil.
func (*DeviceEventUpdateOne) SetNillableIdentifier ¶
func (deuo *DeviceEventUpdateOne) SetNillableIdentifier(s *string) *DeviceEventUpdateOne
SetNillableIdentifier sets the "identifier" field if the given value is not nil.
func (*DeviceEventUpdateOne) SetNillableIotID ¶
func (deuo *DeviceEventUpdateOne) SetNillableIotID(s *string) *DeviceEventUpdateOne
SetNillableIotID sets the "iotID" field if the given value is not nil.
func (*DeviceEventUpdateOne) SetNillableName ¶
func (deuo *DeviceEventUpdateOne) SetNillableName(s *string) *DeviceEventUpdateOne
SetNillableName sets the "name" field if the given value is not nil.
func (*DeviceEventUpdateOne) SetNillableOutputData ¶
func (deuo *DeviceEventUpdateOne) SetNillableOutputData(s *string) *DeviceEventUpdateOne
SetNillableOutputData sets the "outputData" field if the given value is not nil.
func (*DeviceEventUpdateOne) SetNillableSort ¶
func (deuo *DeviceEventUpdateOne) SetNillableSort(u *uint32) *DeviceEventUpdateOne
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DeviceEventUpdateOne) SetNillableStatus ¶
func (deuo *DeviceEventUpdateOne) SetNillableStatus(u *uint8) *DeviceEventUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DeviceEventUpdateOne) SetNillableTime ¶
func (deuo *DeviceEventUpdateOne) SetNillableTime(s *string) *DeviceEventUpdateOne
SetNillableTime sets the "time" field if the given value is not nil.
func (*DeviceEventUpdateOne) SetNotNilEventType ¶
func (de *DeviceEventUpdateOne) SetNotNilEventType(value *string) *DeviceEventUpdateOne
set field if value's pointer is not nil.
func (*DeviceEventUpdateOne) SetNotNilIdentifier ¶
func (de *DeviceEventUpdateOne) SetNotNilIdentifier(value *string) *DeviceEventUpdateOne
set field if value's pointer is not nil.
func (*DeviceEventUpdateOne) SetNotNilIotID ¶
func (de *DeviceEventUpdateOne) SetNotNilIotID(value *string) *DeviceEventUpdateOne
set field if value's pointer is not nil.
func (*DeviceEventUpdateOne) SetNotNilName ¶
func (de *DeviceEventUpdateOne) SetNotNilName(value *string) *DeviceEventUpdateOne
set field if value's pointer is not nil.
func (*DeviceEventUpdateOne) SetNotNilOutputData ¶
func (de *DeviceEventUpdateOne) SetNotNilOutputData(value *string) *DeviceEventUpdateOne
set field if value's pointer is not nil.
func (*DeviceEventUpdateOne) SetNotNilSort ¶
func (de *DeviceEventUpdateOne) SetNotNilSort(value *uint32) *DeviceEventUpdateOne
set field if value's pointer is not nil.
func (*DeviceEventUpdateOne) SetNotNilStatus ¶
func (de *DeviceEventUpdateOne) SetNotNilStatus(value *uint8) *DeviceEventUpdateOne
set field if value's pointer is not nil.
func (*DeviceEventUpdateOne) SetNotNilTime ¶
func (de *DeviceEventUpdateOne) SetNotNilTime(value *string) *DeviceEventUpdateOne
set field if value's pointer is not nil.
func (*DeviceEventUpdateOne) SetNotNilUpdatedAt ¶
func (de *DeviceEventUpdateOne) SetNotNilUpdatedAt(value *time.Time) *DeviceEventUpdateOne
set field if value's pointer is not nil.
func (*DeviceEventUpdateOne) SetOutputData ¶
func (deuo *DeviceEventUpdateOne) SetOutputData(s string) *DeviceEventUpdateOne
SetOutputData sets the "outputData" field.
func (*DeviceEventUpdateOne) SetSort ¶
func (deuo *DeviceEventUpdateOne) SetSort(u uint32) *DeviceEventUpdateOne
SetSort sets the "sort" field.
func (*DeviceEventUpdateOne) SetStatus ¶
func (deuo *DeviceEventUpdateOne) SetStatus(u uint8) *DeviceEventUpdateOne
SetStatus sets the "status" field.
func (*DeviceEventUpdateOne) SetTime ¶
func (deuo *DeviceEventUpdateOne) SetTime(s string) *DeviceEventUpdateOne
SetTime sets the "time" field.
func (*DeviceEventUpdateOne) SetUpdatedAt ¶
func (deuo *DeviceEventUpdateOne) SetUpdatedAt(t time.Time) *DeviceEventUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*DeviceEventUpdateOne) Where ¶
func (deuo *DeviceEventUpdateOne) Where(ps ...predicate.DeviceEvent) *DeviceEventUpdateOne
Where appends a list predicates to the DeviceEventUpdate builder.
type DeviceEventUpsert ¶
DeviceEventUpsert is the "OnConflict" setter.
func (*DeviceEventUpsert) AddSort ¶
func (u *DeviceEventUpsert) AddSort(v uint32) *DeviceEventUpsert
AddSort adds v to the "sort" field.
func (*DeviceEventUpsert) AddStatus ¶
func (u *DeviceEventUpsert) AddStatus(v uint8) *DeviceEventUpsert
AddStatus adds v to the "status" field.
func (*DeviceEventUpsert) ClearEventType ¶
func (u *DeviceEventUpsert) ClearEventType() *DeviceEventUpsert
ClearEventType clears the value of the "eventType" field.
func (*DeviceEventUpsert) ClearOutputData ¶
func (u *DeviceEventUpsert) ClearOutputData() *DeviceEventUpsert
ClearOutputData clears the value of the "outputData" field.
func (*DeviceEventUpsert) ClearStatus ¶
func (u *DeviceEventUpsert) ClearStatus() *DeviceEventUpsert
ClearStatus clears the value of the "status" field.
func (*DeviceEventUpsert) SetEventType ¶
func (u *DeviceEventUpsert) SetEventType(v string) *DeviceEventUpsert
SetEventType sets the "eventType" field.
func (*DeviceEventUpsert) SetIdentifier ¶
func (u *DeviceEventUpsert) SetIdentifier(v string) *DeviceEventUpsert
SetIdentifier sets the "identifier" field.
func (*DeviceEventUpsert) SetIotID ¶
func (u *DeviceEventUpsert) SetIotID(v string) *DeviceEventUpsert
SetIotID sets the "iotID" field.
func (*DeviceEventUpsert) SetName ¶
func (u *DeviceEventUpsert) SetName(v string) *DeviceEventUpsert
SetName sets the "name" field.
func (*DeviceEventUpsert) SetOutputData ¶
func (u *DeviceEventUpsert) SetOutputData(v string) *DeviceEventUpsert
SetOutputData sets the "outputData" field.
func (*DeviceEventUpsert) SetSort ¶
func (u *DeviceEventUpsert) SetSort(v uint32) *DeviceEventUpsert
SetSort sets the "sort" field.
func (*DeviceEventUpsert) SetStatus ¶
func (u *DeviceEventUpsert) SetStatus(v uint8) *DeviceEventUpsert
SetStatus sets the "status" field.
func (*DeviceEventUpsert) SetTime ¶
func (u *DeviceEventUpsert) SetTime(v string) *DeviceEventUpsert
SetTime sets the "time" field.
func (*DeviceEventUpsert) SetUpdatedAt ¶
func (u *DeviceEventUpsert) SetUpdatedAt(v time.Time) *DeviceEventUpsert
SetUpdatedAt sets the "updated_at" field.
func (*DeviceEventUpsert) UpdateEventType ¶
func (u *DeviceEventUpsert) UpdateEventType() *DeviceEventUpsert
UpdateEventType sets the "eventType" field to the value that was provided on create.
func (*DeviceEventUpsert) UpdateIdentifier ¶
func (u *DeviceEventUpsert) UpdateIdentifier() *DeviceEventUpsert
UpdateIdentifier sets the "identifier" field to the value that was provided on create.
func (*DeviceEventUpsert) UpdateIotID ¶
func (u *DeviceEventUpsert) UpdateIotID() *DeviceEventUpsert
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DeviceEventUpsert) UpdateName ¶
func (u *DeviceEventUpsert) UpdateName() *DeviceEventUpsert
UpdateName sets the "name" field to the value that was provided on create.
func (*DeviceEventUpsert) UpdateOutputData ¶
func (u *DeviceEventUpsert) UpdateOutputData() *DeviceEventUpsert
UpdateOutputData sets the "outputData" field to the value that was provided on create.
func (*DeviceEventUpsert) UpdateSort ¶
func (u *DeviceEventUpsert) UpdateSort() *DeviceEventUpsert
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DeviceEventUpsert) UpdateStatus ¶
func (u *DeviceEventUpsert) UpdateStatus() *DeviceEventUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DeviceEventUpsert) UpdateTime ¶
func (u *DeviceEventUpsert) UpdateTime() *DeviceEventUpsert
UpdateTime sets the "time" field to the value that was provided on create.
func (*DeviceEventUpsert) UpdateUpdatedAt ¶
func (u *DeviceEventUpsert) UpdateUpdatedAt() *DeviceEventUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type DeviceEventUpsertBulk ¶
type DeviceEventUpsertBulk struct {
// contains filtered or unexported fields
}
DeviceEventUpsertBulk is the builder for "upsert"-ing a bulk of DeviceEvent nodes.
func (*DeviceEventUpsertBulk) AddSort ¶
func (u *DeviceEventUpsertBulk) AddSort(v uint32) *DeviceEventUpsertBulk
AddSort adds v to the "sort" field.
func (*DeviceEventUpsertBulk) AddStatus ¶
func (u *DeviceEventUpsertBulk) AddStatus(v uint8) *DeviceEventUpsertBulk
AddStatus adds v to the "status" field.
func (*DeviceEventUpsertBulk) ClearEventType ¶
func (u *DeviceEventUpsertBulk) ClearEventType() *DeviceEventUpsertBulk
ClearEventType clears the value of the "eventType" field.
func (*DeviceEventUpsertBulk) ClearOutputData ¶
func (u *DeviceEventUpsertBulk) ClearOutputData() *DeviceEventUpsertBulk
ClearOutputData clears the value of the "outputData" field.
func (*DeviceEventUpsertBulk) ClearStatus ¶
func (u *DeviceEventUpsertBulk) ClearStatus() *DeviceEventUpsertBulk
ClearStatus clears the value of the "status" field.
func (*DeviceEventUpsertBulk) DoNothing ¶
func (u *DeviceEventUpsertBulk) DoNothing() *DeviceEventUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*DeviceEventUpsertBulk) Exec ¶
func (u *DeviceEventUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceEventUpsertBulk) ExecX ¶
func (u *DeviceEventUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceEventUpsertBulk) Ignore ¶
func (u *DeviceEventUpsertBulk) Ignore() *DeviceEventUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.DeviceEvent.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*DeviceEventUpsertBulk) SetEventType ¶
func (u *DeviceEventUpsertBulk) SetEventType(v string) *DeviceEventUpsertBulk
SetEventType sets the "eventType" field.
func (*DeviceEventUpsertBulk) SetIdentifier ¶
func (u *DeviceEventUpsertBulk) SetIdentifier(v string) *DeviceEventUpsertBulk
SetIdentifier sets the "identifier" field.
func (*DeviceEventUpsertBulk) SetIotID ¶
func (u *DeviceEventUpsertBulk) SetIotID(v string) *DeviceEventUpsertBulk
SetIotID sets the "iotID" field.
func (*DeviceEventUpsertBulk) SetName ¶
func (u *DeviceEventUpsertBulk) SetName(v string) *DeviceEventUpsertBulk
SetName sets the "name" field.
func (*DeviceEventUpsertBulk) SetOutputData ¶
func (u *DeviceEventUpsertBulk) SetOutputData(v string) *DeviceEventUpsertBulk
SetOutputData sets the "outputData" field.
func (*DeviceEventUpsertBulk) SetSort ¶
func (u *DeviceEventUpsertBulk) SetSort(v uint32) *DeviceEventUpsertBulk
SetSort sets the "sort" field.
func (*DeviceEventUpsertBulk) SetStatus ¶
func (u *DeviceEventUpsertBulk) SetStatus(v uint8) *DeviceEventUpsertBulk
SetStatus sets the "status" field.
func (*DeviceEventUpsertBulk) SetTime ¶
func (u *DeviceEventUpsertBulk) SetTime(v string) *DeviceEventUpsertBulk
SetTime sets the "time" field.
func (*DeviceEventUpsertBulk) SetUpdatedAt ¶
func (u *DeviceEventUpsertBulk) SetUpdatedAt(v time.Time) *DeviceEventUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*DeviceEventUpsertBulk) Update ¶
func (u *DeviceEventUpsertBulk) Update(set func(*DeviceEventUpsert)) *DeviceEventUpsertBulk
Update allows overriding fields `UPDATE` values. See the DeviceEventCreateBulk.OnConflict documentation for more info.
func (*DeviceEventUpsertBulk) UpdateEventType ¶
func (u *DeviceEventUpsertBulk) UpdateEventType() *DeviceEventUpsertBulk
UpdateEventType sets the "eventType" field to the value that was provided on create.
func (*DeviceEventUpsertBulk) UpdateIdentifier ¶
func (u *DeviceEventUpsertBulk) UpdateIdentifier() *DeviceEventUpsertBulk
UpdateIdentifier sets the "identifier" field to the value that was provided on create.
func (*DeviceEventUpsertBulk) UpdateIotID ¶
func (u *DeviceEventUpsertBulk) UpdateIotID() *DeviceEventUpsertBulk
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DeviceEventUpsertBulk) UpdateName ¶
func (u *DeviceEventUpsertBulk) UpdateName() *DeviceEventUpsertBulk
UpdateName sets the "name" field to the value that was provided on create.
func (*DeviceEventUpsertBulk) UpdateNewValues ¶
func (u *DeviceEventUpsertBulk) UpdateNewValues() *DeviceEventUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.DeviceEvent.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(deviceevent.FieldID) }), ). Exec(ctx)
func (*DeviceEventUpsertBulk) UpdateOutputData ¶
func (u *DeviceEventUpsertBulk) UpdateOutputData() *DeviceEventUpsertBulk
UpdateOutputData sets the "outputData" field to the value that was provided on create.
func (*DeviceEventUpsertBulk) UpdateSort ¶
func (u *DeviceEventUpsertBulk) UpdateSort() *DeviceEventUpsertBulk
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DeviceEventUpsertBulk) UpdateStatus ¶
func (u *DeviceEventUpsertBulk) UpdateStatus() *DeviceEventUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DeviceEventUpsertBulk) UpdateTime ¶
func (u *DeviceEventUpsertBulk) UpdateTime() *DeviceEventUpsertBulk
UpdateTime sets the "time" field to the value that was provided on create.
func (*DeviceEventUpsertBulk) UpdateUpdatedAt ¶
func (u *DeviceEventUpsertBulk) UpdateUpdatedAt() *DeviceEventUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type DeviceEventUpsertOne ¶
type DeviceEventUpsertOne struct {
// contains filtered or unexported fields
}
DeviceEventUpsertOne is the builder for "upsert"-ing
one DeviceEvent node.
func (*DeviceEventUpsertOne) AddSort ¶
func (u *DeviceEventUpsertOne) AddSort(v uint32) *DeviceEventUpsertOne
AddSort adds v to the "sort" field.
func (*DeviceEventUpsertOne) AddStatus ¶
func (u *DeviceEventUpsertOne) AddStatus(v uint8) *DeviceEventUpsertOne
AddStatus adds v to the "status" field.
func (*DeviceEventUpsertOne) ClearEventType ¶
func (u *DeviceEventUpsertOne) ClearEventType() *DeviceEventUpsertOne
ClearEventType clears the value of the "eventType" field.
func (*DeviceEventUpsertOne) ClearOutputData ¶
func (u *DeviceEventUpsertOne) ClearOutputData() *DeviceEventUpsertOne
ClearOutputData clears the value of the "outputData" field.
func (*DeviceEventUpsertOne) ClearStatus ¶
func (u *DeviceEventUpsertOne) ClearStatus() *DeviceEventUpsertOne
ClearStatus clears the value of the "status" field.
func (*DeviceEventUpsertOne) DoNothing ¶
func (u *DeviceEventUpsertOne) DoNothing() *DeviceEventUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*DeviceEventUpsertOne) Exec ¶
func (u *DeviceEventUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceEventUpsertOne) ExecX ¶
func (u *DeviceEventUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceEventUpsertOne) ID ¶
func (u *DeviceEventUpsertOne) ID(ctx context.Context) (id uint64, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*DeviceEventUpsertOne) IDX ¶
func (u *DeviceEventUpsertOne) IDX(ctx context.Context) uint64
IDX is like ID, but panics if an error occurs.
func (*DeviceEventUpsertOne) Ignore ¶
func (u *DeviceEventUpsertOne) Ignore() *DeviceEventUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.DeviceEvent.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*DeviceEventUpsertOne) SetEventType ¶
func (u *DeviceEventUpsertOne) SetEventType(v string) *DeviceEventUpsertOne
SetEventType sets the "eventType" field.
func (*DeviceEventUpsertOne) SetIdentifier ¶
func (u *DeviceEventUpsertOne) SetIdentifier(v string) *DeviceEventUpsertOne
SetIdentifier sets the "identifier" field.
func (*DeviceEventUpsertOne) SetIotID ¶
func (u *DeviceEventUpsertOne) SetIotID(v string) *DeviceEventUpsertOne
SetIotID sets the "iotID" field.
func (*DeviceEventUpsertOne) SetName ¶
func (u *DeviceEventUpsertOne) SetName(v string) *DeviceEventUpsertOne
SetName sets the "name" field.
func (*DeviceEventUpsertOne) SetOutputData ¶
func (u *DeviceEventUpsertOne) SetOutputData(v string) *DeviceEventUpsertOne
SetOutputData sets the "outputData" field.
func (*DeviceEventUpsertOne) SetSort ¶
func (u *DeviceEventUpsertOne) SetSort(v uint32) *DeviceEventUpsertOne
SetSort sets the "sort" field.
func (*DeviceEventUpsertOne) SetStatus ¶
func (u *DeviceEventUpsertOne) SetStatus(v uint8) *DeviceEventUpsertOne
SetStatus sets the "status" field.
func (*DeviceEventUpsertOne) SetTime ¶
func (u *DeviceEventUpsertOne) SetTime(v string) *DeviceEventUpsertOne
SetTime sets the "time" field.
func (*DeviceEventUpsertOne) SetUpdatedAt ¶
func (u *DeviceEventUpsertOne) SetUpdatedAt(v time.Time) *DeviceEventUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*DeviceEventUpsertOne) Update ¶
func (u *DeviceEventUpsertOne) Update(set func(*DeviceEventUpsert)) *DeviceEventUpsertOne
Update allows overriding fields `UPDATE` values. See the DeviceEventCreate.OnConflict documentation for more info.
func (*DeviceEventUpsertOne) UpdateEventType ¶
func (u *DeviceEventUpsertOne) UpdateEventType() *DeviceEventUpsertOne
UpdateEventType sets the "eventType" field to the value that was provided on create.
func (*DeviceEventUpsertOne) UpdateIdentifier ¶
func (u *DeviceEventUpsertOne) UpdateIdentifier() *DeviceEventUpsertOne
UpdateIdentifier sets the "identifier" field to the value that was provided on create.
func (*DeviceEventUpsertOne) UpdateIotID ¶
func (u *DeviceEventUpsertOne) UpdateIotID() *DeviceEventUpsertOne
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DeviceEventUpsertOne) UpdateName ¶
func (u *DeviceEventUpsertOne) UpdateName() *DeviceEventUpsertOne
UpdateName sets the "name" field to the value that was provided on create.
func (*DeviceEventUpsertOne) UpdateNewValues ¶
func (u *DeviceEventUpsertOne) UpdateNewValues() *DeviceEventUpsertOne
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.DeviceEvent.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(deviceevent.FieldID) }), ). Exec(ctx)
func (*DeviceEventUpsertOne) UpdateOutputData ¶
func (u *DeviceEventUpsertOne) UpdateOutputData() *DeviceEventUpsertOne
UpdateOutputData sets the "outputData" field to the value that was provided on create.
func (*DeviceEventUpsertOne) UpdateSort ¶
func (u *DeviceEventUpsertOne) UpdateSort() *DeviceEventUpsertOne
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DeviceEventUpsertOne) UpdateStatus ¶
func (u *DeviceEventUpsertOne) UpdateStatus() *DeviceEventUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DeviceEventUpsertOne) UpdateTime ¶
func (u *DeviceEventUpsertOne) UpdateTime() *DeviceEventUpsertOne
UpdateTime sets the "time" field to the value that was provided on create.
func (*DeviceEventUpsertOne) UpdateUpdatedAt ¶
func (u *DeviceEventUpsertOne) UpdateUpdatedAt() *DeviceEventUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type DeviceEvents ¶
type DeviceEvents []*DeviceEvent
DeviceEvents is a parsable slice of DeviceEvent.
type DeviceKpi ¶
type DeviceKpi struct { // ID of the ent. ID uint64 `json:"id,omitempty"` // Create Time | 创建日期 CreatedAt time.Time `json:"created_at,omitempty"` // Update Time | 修改日期 UpdatedAt time.Time `json:"updated_at,omitempty"` // Status 1: normal 2: ban | 状态 1 正常 2 禁用 Status uint8 `json:"status,omitempty"` // Sort Number | 排序编号 Sort uint32 `json:"sort,omitempty"` // Iot Id | 设备ID IotID string `json:"iotID,omitempty"` // Device Name | 设备名称 DeviceName string `json:"deviceName,omitempty"` // Product Key | 产品Key ProductKey string `json:"productKey,omitempty"` // KPI Kpi float64 `json:"kpi,omitempty"` // X X float64 `json:"x,omitempty"` // Y Y float64 `json:"y,omitempty"` // A A float64 `json:"a,omitempty"` // B B float64 `json:"b,omitempty"` // WeekKpi WeekKpi float64 `json:"weekKpi,omitempty"` // MonthKpi MonthKpi float64 `json:"monthKpi,omitempty"` // CurrentDay1 CurrentDay1 int64 `json:"currentDay1,omitempty"` // currentDay7 CurrentDay7 int64 `json:"currentDay7,omitempty"` // currentDay28 CurrentDay28 int64 `json:"currentDay28,omitempty"` // contains filtered or unexported fields }
DeviceKpi is the model entity for the DeviceKpi schema.
func (*DeviceKpi) ExecContext ¶
func (c *DeviceKpi) 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 (*DeviceKpi) QueryContext ¶
func (c *DeviceKpi) 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 (*DeviceKpi) Unwrap ¶
Unwrap unwraps the DeviceKpi 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 (*DeviceKpi) Update ¶
func (dk *DeviceKpi) Update() *DeviceKpiUpdateOne
Update returns a builder for updating this DeviceKpi. Note that you need to call DeviceKpi.Unwrap() before calling this method if this DeviceKpi was returned from a transaction, and the transaction was committed or rolled back.
type DeviceKpiClient ¶
type DeviceKpiClient struct {
// contains filtered or unexported fields
}
DeviceKpiClient is a client for the DeviceKpi schema.
func NewDeviceKpiClient ¶
func NewDeviceKpiClient(c config) *DeviceKpiClient
NewDeviceKpiClient returns a client for the DeviceKpi from the given config.
func (*DeviceKpiClient) Create ¶
func (c *DeviceKpiClient) Create() *DeviceKpiCreate
Create returns a builder for creating a DeviceKpi entity.
func (*DeviceKpiClient) CreateBulk ¶
func (c *DeviceKpiClient) CreateBulk(builders ...*DeviceKpiCreate) *DeviceKpiCreateBulk
CreateBulk returns a builder for creating a bulk of DeviceKpi entities.
func (*DeviceKpiClient) Delete ¶
func (c *DeviceKpiClient) Delete() *DeviceKpiDelete
Delete returns a delete builder for DeviceKpi.
func (*DeviceKpiClient) DeleteOne ¶
func (c *DeviceKpiClient) DeleteOne(dk *DeviceKpi) *DeviceKpiDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*DeviceKpiClient) DeleteOneID ¶
func (c *DeviceKpiClient) DeleteOneID(id uint64) *DeviceKpiDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*DeviceKpiClient) ExecContext ¶
func (c *DeviceKpiClient) 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 (*DeviceKpiClient) GetX ¶
func (c *DeviceKpiClient) GetX(ctx context.Context, id uint64) *DeviceKpi
GetX is like Get, but panics if an error occurs.
func (*DeviceKpiClient) Hooks ¶
func (c *DeviceKpiClient) Hooks() []Hook
Hooks returns the client hooks.
func (*DeviceKpiClient) Intercept ¶
func (c *DeviceKpiClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `devicekpi.Intercept(f(g(h())))`.
func (*DeviceKpiClient) Interceptors ¶
func (c *DeviceKpiClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*DeviceKpiClient) MapCreateBulk ¶
func (c *DeviceKpiClient) MapCreateBulk(slice any, setFunc func(*DeviceKpiCreate, int)) *DeviceKpiCreateBulk
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 (*DeviceKpiClient) Query ¶
func (c *DeviceKpiClient) Query() *DeviceKpiQuery
Query returns a query builder for DeviceKpi.
func (*DeviceKpiClient) QueryContext ¶
func (c *DeviceKpiClient) 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 (*DeviceKpiClient) Update ¶
func (c *DeviceKpiClient) Update() *DeviceKpiUpdate
Update returns an update builder for DeviceKpi.
func (*DeviceKpiClient) UpdateOne ¶
func (c *DeviceKpiClient) UpdateOne(dk *DeviceKpi) *DeviceKpiUpdateOne
UpdateOne returns an update builder for the given entity.
func (*DeviceKpiClient) UpdateOneID ¶
func (c *DeviceKpiClient) UpdateOneID(id uint64) *DeviceKpiUpdateOne
UpdateOneID returns an update builder for the given id.
func (*DeviceKpiClient) Use ¶
func (c *DeviceKpiClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `devicekpi.Hooks(f(g(h())))`.
type DeviceKpiCreate ¶
type DeviceKpiCreate struct { Table string // contains filtered or unexported fields }
DeviceKpiCreate is the builder for creating a DeviceKpi entity.
func (*DeviceKpiCreate) Exec ¶
func (dkc *DeviceKpiCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceKpiCreate) ExecContext ¶
func (c *DeviceKpiCreate) 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 (*DeviceKpiCreate) ExecX ¶
func (dkc *DeviceKpiCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceKpiCreate) Mutation ¶
func (dkc *DeviceKpiCreate) Mutation() *DeviceKpiMutation
Mutation returns the DeviceKpiMutation object of the builder.
func (*DeviceKpiCreate) OnConflict ¶
func (dkc *DeviceKpiCreate) OnConflict(opts ...sql.ConflictOption) *DeviceKpiUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.DeviceKpi.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.DeviceKpiUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*DeviceKpiCreate) OnConflictColumns ¶
func (dkc *DeviceKpiCreate) OnConflictColumns(columns ...string) *DeviceKpiUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.DeviceKpi.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*DeviceKpiCreate) QueryContext ¶
func (c *DeviceKpiCreate) 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 (*DeviceKpiCreate) Save ¶
func (dkc *DeviceKpiCreate) Save(ctx context.Context) (*DeviceKpi, error)
Save creates the DeviceKpi in the database.
func (*DeviceKpiCreate) SaveX ¶
func (dkc *DeviceKpiCreate) SaveX(ctx context.Context) *DeviceKpi
SaveX calls Save and panics if Save returns an error.
func (*DeviceKpiCreate) SetA ¶
func (dkc *DeviceKpiCreate) SetA(f float64) *DeviceKpiCreate
SetA sets the "a" field.
func (*DeviceKpiCreate) SetB ¶
func (dkc *DeviceKpiCreate) SetB(f float64) *DeviceKpiCreate
SetB sets the "b" field.
func (*DeviceKpiCreate) SetCreatedAt ¶
func (dkc *DeviceKpiCreate) SetCreatedAt(t time.Time) *DeviceKpiCreate
SetCreatedAt sets the "created_at" field.
func (*DeviceKpiCreate) SetCurrentDay1 ¶
func (dkc *DeviceKpiCreate) SetCurrentDay1(i int64) *DeviceKpiCreate
SetCurrentDay1 sets the "currentDay1" field.
func (*DeviceKpiCreate) SetCurrentDay28 ¶
func (dkc *DeviceKpiCreate) SetCurrentDay28(i int64) *DeviceKpiCreate
SetCurrentDay28 sets the "currentDay28" field.
func (*DeviceKpiCreate) SetCurrentDay7 ¶
func (dkc *DeviceKpiCreate) SetCurrentDay7(i int64) *DeviceKpiCreate
SetCurrentDay7 sets the "currentDay7" field.
func (*DeviceKpiCreate) SetDeviceName ¶
func (dkc *DeviceKpiCreate) SetDeviceName(s string) *DeviceKpiCreate
SetDeviceName sets the "deviceName" field.
func (*DeviceKpiCreate) SetID ¶
func (dkc *DeviceKpiCreate) SetID(u uint64) *DeviceKpiCreate
SetID sets the "id" field.
func (*DeviceKpiCreate) SetIotID ¶
func (dkc *DeviceKpiCreate) SetIotID(s string) *DeviceKpiCreate
SetIotID sets the "iotID" field.
func (*DeviceKpiCreate) SetKpi ¶
func (dkc *DeviceKpiCreate) SetKpi(f float64) *DeviceKpiCreate
SetKpi sets the "kpi" field.
func (*DeviceKpiCreate) SetMonthKpi ¶
func (dkc *DeviceKpiCreate) SetMonthKpi(f float64) *DeviceKpiCreate
SetMonthKpi sets the "monthKpi" field.
func (*DeviceKpiCreate) SetNillableA ¶
func (dkc *DeviceKpiCreate) SetNillableA(f *float64) *DeviceKpiCreate
SetNillableA sets the "a" field if the given value is not nil.
func (*DeviceKpiCreate) SetNillableB ¶
func (dkc *DeviceKpiCreate) SetNillableB(f *float64) *DeviceKpiCreate
SetNillableB sets the "b" field if the given value is not nil.
func (*DeviceKpiCreate) SetNillableCreatedAt ¶
func (dkc *DeviceKpiCreate) SetNillableCreatedAt(t *time.Time) *DeviceKpiCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*DeviceKpiCreate) SetNillableCurrentDay1 ¶
func (dkc *DeviceKpiCreate) SetNillableCurrentDay1(i *int64) *DeviceKpiCreate
SetNillableCurrentDay1 sets the "currentDay1" field if the given value is not nil.
func (*DeviceKpiCreate) SetNillableCurrentDay28 ¶
func (dkc *DeviceKpiCreate) SetNillableCurrentDay28(i *int64) *DeviceKpiCreate
SetNillableCurrentDay28 sets the "currentDay28" field if the given value is not nil.
func (*DeviceKpiCreate) SetNillableCurrentDay7 ¶
func (dkc *DeviceKpiCreate) SetNillableCurrentDay7(i *int64) *DeviceKpiCreate
SetNillableCurrentDay7 sets the "currentDay7" field if the given value is not nil.
func (*DeviceKpiCreate) SetNillableKpi ¶
func (dkc *DeviceKpiCreate) SetNillableKpi(f *float64) *DeviceKpiCreate
SetNillableKpi sets the "kpi" field if the given value is not nil.
func (*DeviceKpiCreate) SetNillableMonthKpi ¶
func (dkc *DeviceKpiCreate) SetNillableMonthKpi(f *float64) *DeviceKpiCreate
SetNillableMonthKpi sets the "monthKpi" field if the given value is not nil.
func (*DeviceKpiCreate) SetNillableSort ¶
func (dkc *DeviceKpiCreate) SetNillableSort(u *uint32) *DeviceKpiCreate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DeviceKpiCreate) SetNillableStatus ¶
func (dkc *DeviceKpiCreate) SetNillableStatus(u *uint8) *DeviceKpiCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DeviceKpiCreate) SetNillableUpdatedAt ¶
func (dkc *DeviceKpiCreate) SetNillableUpdatedAt(t *time.Time) *DeviceKpiCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*DeviceKpiCreate) SetNillableWeekKpi ¶
func (dkc *DeviceKpiCreate) SetNillableWeekKpi(f *float64) *DeviceKpiCreate
SetNillableWeekKpi sets the "weekKpi" field if the given value is not nil.
func (*DeviceKpiCreate) SetNillableX ¶
func (dkc *DeviceKpiCreate) SetNillableX(f *float64) *DeviceKpiCreate
SetNillableX sets the "x" field if the given value is not nil.
func (*DeviceKpiCreate) SetNillableY ¶
func (dkc *DeviceKpiCreate) SetNillableY(f *float64) *DeviceKpiCreate
SetNillableY sets the "y" field if the given value is not nil.
func (*DeviceKpiCreate) SetNotNilA ¶
func (dk *DeviceKpiCreate) SetNotNilA(value *float64) *DeviceKpiCreate
set field if value's pointer is not nil.
func (*DeviceKpiCreate) SetNotNilB ¶
func (dk *DeviceKpiCreate) SetNotNilB(value *float64) *DeviceKpiCreate
set field if value's pointer is not nil.
func (*DeviceKpiCreate) SetNotNilCurrentDay1 ¶
func (dk *DeviceKpiCreate) SetNotNilCurrentDay1(value *int64) *DeviceKpiCreate
set field if value's pointer is not nil.
func (*DeviceKpiCreate) SetNotNilCurrentDay28 ¶
func (dk *DeviceKpiCreate) SetNotNilCurrentDay28(value *int64) *DeviceKpiCreate
set field if value's pointer is not nil.
func (*DeviceKpiCreate) SetNotNilCurrentDay7 ¶
func (dk *DeviceKpiCreate) SetNotNilCurrentDay7(value *int64) *DeviceKpiCreate
set field if value's pointer is not nil.
func (*DeviceKpiCreate) SetNotNilDeviceName ¶
func (dk *DeviceKpiCreate) SetNotNilDeviceName(value *string) *DeviceKpiCreate
set field if value's pointer is not nil.
func (*DeviceKpiCreate) SetNotNilIotID ¶
func (dk *DeviceKpiCreate) SetNotNilIotID(value *string) *DeviceKpiCreate
set field if value's pointer is not nil.
func (*DeviceKpiCreate) SetNotNilKpi ¶
func (dk *DeviceKpiCreate) SetNotNilKpi(value *float64) *DeviceKpiCreate
set field if value's pointer is not nil.
func (*DeviceKpiCreate) SetNotNilMonthKpi ¶
func (dk *DeviceKpiCreate) SetNotNilMonthKpi(value *float64) *DeviceKpiCreate
set field if value's pointer is not nil.
func (*DeviceKpiCreate) SetNotNilProductKey ¶
func (dk *DeviceKpiCreate) SetNotNilProductKey(value *string) *DeviceKpiCreate
set field if value's pointer is not nil.
func (*DeviceKpiCreate) SetNotNilSort ¶
func (dk *DeviceKpiCreate) SetNotNilSort(value *uint32) *DeviceKpiCreate
set field if value's pointer is not nil.
func (*DeviceKpiCreate) SetNotNilStatus ¶
func (dk *DeviceKpiCreate) SetNotNilStatus(value *uint8) *DeviceKpiCreate
set field if value's pointer is not nil.
func (*DeviceKpiCreate) SetNotNilUpdatedAt ¶
func (dk *DeviceKpiCreate) SetNotNilUpdatedAt(value *time.Time) *DeviceKpiCreate
set field if value's pointer is not nil.
func (*DeviceKpiCreate) SetNotNilWeekKpi ¶
func (dk *DeviceKpiCreate) SetNotNilWeekKpi(value *float64) *DeviceKpiCreate
set field if value's pointer is not nil.
func (*DeviceKpiCreate) SetNotNilX ¶
func (dk *DeviceKpiCreate) SetNotNilX(value *float64) *DeviceKpiCreate
set field if value's pointer is not nil.
func (*DeviceKpiCreate) SetNotNilY ¶
func (dk *DeviceKpiCreate) SetNotNilY(value *float64) *DeviceKpiCreate
set field if value's pointer is not nil.
func (*DeviceKpiCreate) SetProductKey ¶
func (dkc *DeviceKpiCreate) SetProductKey(s string) *DeviceKpiCreate
SetProductKey sets the "productKey" field.
func (*DeviceKpiCreate) SetSort ¶
func (dkc *DeviceKpiCreate) SetSort(u uint32) *DeviceKpiCreate
SetSort sets the "sort" field.
func (*DeviceKpiCreate) SetStatus ¶
func (dkc *DeviceKpiCreate) SetStatus(u uint8) *DeviceKpiCreate
SetStatus sets the "status" field.
func (*DeviceKpiCreate) SetUpdatedAt ¶
func (dkc *DeviceKpiCreate) SetUpdatedAt(t time.Time) *DeviceKpiCreate
SetUpdatedAt sets the "updated_at" field.
func (*DeviceKpiCreate) SetWeekKpi ¶
func (dkc *DeviceKpiCreate) SetWeekKpi(f float64) *DeviceKpiCreate
SetWeekKpi sets the "weekKpi" field.
func (*DeviceKpiCreate) SetX ¶
func (dkc *DeviceKpiCreate) SetX(f float64) *DeviceKpiCreate
SetX sets the "x" field.
func (*DeviceKpiCreate) SetY ¶
func (dkc *DeviceKpiCreate) SetY(f float64) *DeviceKpiCreate
SetY sets the "y" field.
func (*DeviceKpiCreate) TableName ¶
func (dkc *DeviceKpiCreate) TableName(s string) *DeviceKpiCreate
type DeviceKpiCreateBulk ¶
type DeviceKpiCreateBulk struct {
// contains filtered or unexported fields
}
DeviceKpiCreateBulk is the builder for creating many DeviceKpi entities in bulk.
func (*DeviceKpiCreateBulk) Exec ¶
func (dkcb *DeviceKpiCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceKpiCreateBulk) ExecContext ¶
func (c *DeviceKpiCreateBulk) 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 (*DeviceKpiCreateBulk) ExecX ¶
func (dkcb *DeviceKpiCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceKpiCreateBulk) OnConflict ¶
func (dkcb *DeviceKpiCreateBulk) OnConflict(opts ...sql.ConflictOption) *DeviceKpiUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.DeviceKpi.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.DeviceKpiUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*DeviceKpiCreateBulk) OnConflictColumns ¶
func (dkcb *DeviceKpiCreateBulk) OnConflictColumns(columns ...string) *DeviceKpiUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.DeviceKpi.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*DeviceKpiCreateBulk) QueryContext ¶
func (c *DeviceKpiCreateBulk) 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 DeviceKpiDelete ¶
type DeviceKpiDelete struct {
// contains filtered or unexported fields
}
DeviceKpiDelete is the builder for deleting a DeviceKpi entity.
func (*DeviceKpiDelete) Exec ¶
func (dkd *DeviceKpiDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*DeviceKpiDelete) ExecContext ¶
func (c *DeviceKpiDelete) 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 (*DeviceKpiDelete) ExecX ¶
func (dkd *DeviceKpiDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*DeviceKpiDelete) QueryContext ¶
func (c *DeviceKpiDelete) 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 (*DeviceKpiDelete) Where ¶
func (dkd *DeviceKpiDelete) Where(ps ...predicate.DeviceKpi) *DeviceKpiDelete
Where appends a list predicates to the DeviceKpiDelete builder.
type DeviceKpiDeleteOne ¶
type DeviceKpiDeleteOne struct {
// contains filtered or unexported fields
}
DeviceKpiDeleteOne is the builder for deleting a single DeviceKpi entity.
func (*DeviceKpiDeleteOne) Exec ¶
func (dkdo *DeviceKpiDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*DeviceKpiDeleteOne) ExecX ¶
func (dkdo *DeviceKpiDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceKpiDeleteOne) Where ¶
func (dkdo *DeviceKpiDeleteOne) Where(ps ...predicate.DeviceKpi) *DeviceKpiDeleteOne
Where appends a list predicates to the DeviceKpiDelete builder.
type DeviceKpiGroupBy ¶
type DeviceKpiGroupBy struct {
// contains filtered or unexported fields
}
DeviceKpiGroupBy is the group-by builder for DeviceKpi entities.
func (*DeviceKpiGroupBy) Aggregate ¶
func (dkgb *DeviceKpiGroupBy) Aggregate(fns ...AggregateFunc) *DeviceKpiGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*DeviceKpiGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DeviceKpiGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*DeviceKpiGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DeviceKpiGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DeviceKpiGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DeviceKpiGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*DeviceKpiGroupBy) Scan ¶
func (dkgb *DeviceKpiGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*DeviceKpiGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type DeviceKpiMutation ¶
type DeviceKpiMutation struct {
// contains filtered or unexported fields
}
DeviceKpiMutation represents an operation that mutates the DeviceKpi nodes in the graph.
func (*DeviceKpiMutation) A ¶
func (m *DeviceKpiMutation) A() (r float64, exists bool)
A returns the value of the "a" field in the mutation.
func (*DeviceKpiMutation) ACleared ¶
func (m *DeviceKpiMutation) ACleared() bool
ACleared returns if the "a" field was cleared in this mutation.
func (*DeviceKpiMutation) AddA ¶
func (m *DeviceKpiMutation) AddA(f float64)
AddA adds f to the "a" field.
func (*DeviceKpiMutation) AddB ¶
func (m *DeviceKpiMutation) AddB(f float64)
AddB adds f to the "b" field.
func (*DeviceKpiMutation) AddCurrentDay1 ¶
func (m *DeviceKpiMutation) AddCurrentDay1(i int64)
AddCurrentDay1 adds i to the "currentDay1" field.
func (*DeviceKpiMutation) AddCurrentDay28 ¶
func (m *DeviceKpiMutation) AddCurrentDay28(i int64)
AddCurrentDay28 adds i to the "currentDay28" field.
func (*DeviceKpiMutation) AddCurrentDay7 ¶
func (m *DeviceKpiMutation) AddCurrentDay7(i int64)
AddCurrentDay7 adds i to the "currentDay7" field.
func (*DeviceKpiMutation) AddField ¶
func (m *DeviceKpiMutation) 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 (*DeviceKpiMutation) AddKpi ¶
func (m *DeviceKpiMutation) AddKpi(f float64)
AddKpi adds f to the "kpi" field.
func (*DeviceKpiMutation) AddMonthKpi ¶
func (m *DeviceKpiMutation) AddMonthKpi(f float64)
AddMonthKpi adds f to the "monthKpi" field.
func (*DeviceKpiMutation) AddSort ¶
func (m *DeviceKpiMutation) AddSort(u int32)
AddSort adds u to the "sort" field.
func (*DeviceKpiMutation) AddStatus ¶
func (m *DeviceKpiMutation) AddStatus(u int8)
AddStatus adds u to the "status" field.
func (*DeviceKpiMutation) AddWeekKpi ¶
func (m *DeviceKpiMutation) AddWeekKpi(f float64)
AddWeekKpi adds f to the "weekKpi" field.
func (*DeviceKpiMutation) AddX ¶
func (m *DeviceKpiMutation) AddX(f float64)
AddX adds f to the "x" field.
func (*DeviceKpiMutation) AddY ¶
func (m *DeviceKpiMutation) AddY(f float64)
AddY adds f to the "y" field.
func (*DeviceKpiMutation) AddedA ¶
func (m *DeviceKpiMutation) AddedA() (r float64, exists bool)
AddedA returns the value that was added to the "a" field in this mutation.
func (*DeviceKpiMutation) AddedB ¶
func (m *DeviceKpiMutation) AddedB() (r float64, exists bool)
AddedB returns the value that was added to the "b" field in this mutation.
func (*DeviceKpiMutation) AddedCurrentDay1 ¶
func (m *DeviceKpiMutation) AddedCurrentDay1() (r int64, exists bool)
AddedCurrentDay1 returns the value that was added to the "currentDay1" field in this mutation.
func (*DeviceKpiMutation) AddedCurrentDay28 ¶
func (m *DeviceKpiMutation) AddedCurrentDay28() (r int64, exists bool)
AddedCurrentDay28 returns the value that was added to the "currentDay28" field in this mutation.
func (*DeviceKpiMutation) AddedCurrentDay7 ¶
func (m *DeviceKpiMutation) AddedCurrentDay7() (r int64, exists bool)
AddedCurrentDay7 returns the value that was added to the "currentDay7" field in this mutation.
func (*DeviceKpiMutation) AddedEdges ¶
func (m *DeviceKpiMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*DeviceKpiMutation) AddedField ¶
func (m *DeviceKpiMutation) 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 (*DeviceKpiMutation) AddedFields ¶
func (m *DeviceKpiMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*DeviceKpiMutation) AddedIDs ¶
func (m *DeviceKpiMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*DeviceKpiMutation) AddedKpi ¶
func (m *DeviceKpiMutation) AddedKpi() (r float64, exists bool)
AddedKpi returns the value that was added to the "kpi" field in this mutation.
func (*DeviceKpiMutation) AddedMonthKpi ¶
func (m *DeviceKpiMutation) AddedMonthKpi() (r float64, exists bool)
AddedMonthKpi returns the value that was added to the "monthKpi" field in this mutation.
func (*DeviceKpiMutation) AddedSort ¶
func (m *DeviceKpiMutation) AddedSort() (r int32, exists bool)
AddedSort returns the value that was added to the "sort" field in this mutation.
func (*DeviceKpiMutation) AddedStatus ¶
func (m *DeviceKpiMutation) AddedStatus() (r int8, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*DeviceKpiMutation) AddedWeekKpi ¶
func (m *DeviceKpiMutation) AddedWeekKpi() (r float64, exists bool)
AddedWeekKpi returns the value that was added to the "weekKpi" field in this mutation.
func (*DeviceKpiMutation) AddedX ¶
func (m *DeviceKpiMutation) AddedX() (r float64, exists bool)
AddedX returns the value that was added to the "x" field in this mutation.
func (*DeviceKpiMutation) AddedY ¶
func (m *DeviceKpiMutation) AddedY() (r float64, exists bool)
AddedY returns the value that was added to the "y" field in this mutation.
func (*DeviceKpiMutation) B ¶
func (m *DeviceKpiMutation) B() (r float64, exists bool)
B returns the value of the "b" field in the mutation.
func (*DeviceKpiMutation) BCleared ¶
func (m *DeviceKpiMutation) BCleared() bool
BCleared returns if the "b" field was cleared in this mutation.
func (*DeviceKpiMutation) ClearA ¶
func (m *DeviceKpiMutation) ClearA()
ClearA clears the value of the "a" field.
func (*DeviceKpiMutation) ClearB ¶
func (m *DeviceKpiMutation) ClearB()
ClearB clears the value of the "b" field.
func (*DeviceKpiMutation) ClearCurrentDay1 ¶
func (m *DeviceKpiMutation) ClearCurrentDay1()
ClearCurrentDay1 clears the value of the "currentDay1" field.
func (*DeviceKpiMutation) ClearCurrentDay28 ¶
func (m *DeviceKpiMutation) ClearCurrentDay28()
ClearCurrentDay28 clears the value of the "currentDay28" field.
func (*DeviceKpiMutation) ClearCurrentDay7 ¶
func (m *DeviceKpiMutation) ClearCurrentDay7()
ClearCurrentDay7 clears the value of the "currentDay7" field.
func (*DeviceKpiMutation) ClearEdge ¶
func (m *DeviceKpiMutation) 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 (*DeviceKpiMutation) ClearField ¶
func (m *DeviceKpiMutation) 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 (*DeviceKpiMutation) ClearKpi ¶
func (m *DeviceKpiMutation) ClearKpi()
ClearKpi clears the value of the "kpi" field.
func (*DeviceKpiMutation) ClearMonthKpi ¶
func (m *DeviceKpiMutation) ClearMonthKpi()
ClearMonthKpi clears the value of the "monthKpi" field.
func (*DeviceKpiMutation) ClearStatus ¶
func (m *DeviceKpiMutation) ClearStatus()
ClearStatus clears the value of the "status" field.
func (*DeviceKpiMutation) ClearWeekKpi ¶
func (m *DeviceKpiMutation) ClearWeekKpi()
ClearWeekKpi clears the value of the "weekKpi" field.
func (*DeviceKpiMutation) ClearX ¶
func (m *DeviceKpiMutation) ClearX()
ClearX clears the value of the "x" field.
func (*DeviceKpiMutation) ClearY ¶
func (m *DeviceKpiMutation) ClearY()
ClearY clears the value of the "y" field.
func (*DeviceKpiMutation) ClearedEdges ¶
func (m *DeviceKpiMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*DeviceKpiMutation) ClearedFields ¶
func (m *DeviceKpiMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (DeviceKpiMutation) Client ¶
func (m DeviceKpiMutation) 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 (*DeviceKpiMutation) CreatedAt ¶
func (m *DeviceKpiMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*DeviceKpiMutation) CurrentDay1 ¶
func (m *DeviceKpiMutation) CurrentDay1() (r int64, exists bool)
CurrentDay1 returns the value of the "currentDay1" field in the mutation.
func (*DeviceKpiMutation) CurrentDay1Cleared ¶
func (m *DeviceKpiMutation) CurrentDay1Cleared() bool
CurrentDay1Cleared returns if the "currentDay1" field was cleared in this mutation.
func (*DeviceKpiMutation) CurrentDay28 ¶
func (m *DeviceKpiMutation) CurrentDay28() (r int64, exists bool)
CurrentDay28 returns the value of the "currentDay28" field in the mutation.
func (*DeviceKpiMutation) CurrentDay28Cleared ¶
func (m *DeviceKpiMutation) CurrentDay28Cleared() bool
CurrentDay28Cleared returns if the "currentDay28" field was cleared in this mutation.
func (*DeviceKpiMutation) CurrentDay7 ¶
func (m *DeviceKpiMutation) CurrentDay7() (r int64, exists bool)
CurrentDay7 returns the value of the "currentDay7" field in the mutation.
func (*DeviceKpiMutation) CurrentDay7Cleared ¶
func (m *DeviceKpiMutation) CurrentDay7Cleared() bool
CurrentDay7Cleared returns if the "currentDay7" field was cleared in this mutation.
func (*DeviceKpiMutation) DeviceName ¶
func (m *DeviceKpiMutation) DeviceName() (r string, exists bool)
DeviceName returns the value of the "deviceName" field in the mutation.
func (*DeviceKpiMutation) EdgeCleared ¶
func (m *DeviceKpiMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*DeviceKpiMutation) ExecContext ¶
func (c *DeviceKpiMutation) 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 (*DeviceKpiMutation) Field ¶
func (m *DeviceKpiMutation) 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 (*DeviceKpiMutation) FieldCleared ¶
func (m *DeviceKpiMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*DeviceKpiMutation) Fields ¶
func (m *DeviceKpiMutation) 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 (*DeviceKpiMutation) ID ¶
func (m *DeviceKpiMutation) ID() (id uint64, 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 (*DeviceKpiMutation) IDs ¶
func (m *DeviceKpiMutation) IDs(ctx context.Context) ([]uint64, 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 (*DeviceKpiMutation) IotID ¶
func (m *DeviceKpiMutation) IotID() (r string, exists bool)
IotID returns the value of the "iotID" field in the mutation.
func (*DeviceKpiMutation) Kpi ¶
func (m *DeviceKpiMutation) Kpi() (r float64, exists bool)
Kpi returns the value of the "kpi" field in the mutation.
func (*DeviceKpiMutation) KpiCleared ¶
func (m *DeviceKpiMutation) KpiCleared() bool
KpiCleared returns if the "kpi" field was cleared in this mutation.
func (*DeviceKpiMutation) MonthKpi ¶
func (m *DeviceKpiMutation) MonthKpi() (r float64, exists bool)
MonthKpi returns the value of the "monthKpi" field in the mutation.
func (*DeviceKpiMutation) MonthKpiCleared ¶
func (m *DeviceKpiMutation) MonthKpiCleared() bool
MonthKpiCleared returns if the "monthKpi" field was cleared in this mutation.
func (*DeviceKpiMutation) OldA ¶
func (m *DeviceKpiMutation) OldA(ctx context.Context) (v float64, err error)
OldA returns the old "a" field's value of the DeviceKpi entity. If the DeviceKpi 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 (*DeviceKpiMutation) OldB ¶
func (m *DeviceKpiMutation) OldB(ctx context.Context) (v float64, err error)
OldB returns the old "b" field's value of the DeviceKpi entity. If the DeviceKpi 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 (*DeviceKpiMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the DeviceKpi entity. If the DeviceKpi 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 (*DeviceKpiMutation) OldCurrentDay1 ¶
func (m *DeviceKpiMutation) OldCurrentDay1(ctx context.Context) (v int64, err error)
OldCurrentDay1 returns the old "currentDay1" field's value of the DeviceKpi entity. If the DeviceKpi 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 (*DeviceKpiMutation) OldCurrentDay28 ¶
func (m *DeviceKpiMutation) OldCurrentDay28(ctx context.Context) (v int64, err error)
OldCurrentDay28 returns the old "currentDay28" field's value of the DeviceKpi entity. If the DeviceKpi 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 (*DeviceKpiMutation) OldCurrentDay7 ¶
func (m *DeviceKpiMutation) OldCurrentDay7(ctx context.Context) (v int64, err error)
OldCurrentDay7 returns the old "currentDay7" field's value of the DeviceKpi entity. If the DeviceKpi 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 (*DeviceKpiMutation) OldDeviceName ¶
func (m *DeviceKpiMutation) OldDeviceName(ctx context.Context) (v string, err error)
OldDeviceName returns the old "deviceName" field's value of the DeviceKpi entity. If the DeviceKpi 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 (*DeviceKpiMutation) 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 (*DeviceKpiMutation) OldIotID ¶
func (m *DeviceKpiMutation) OldIotID(ctx context.Context) (v string, err error)
OldIotID returns the old "iotID" field's value of the DeviceKpi entity. If the DeviceKpi 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 (*DeviceKpiMutation) OldKpi ¶
func (m *DeviceKpiMutation) OldKpi(ctx context.Context) (v float64, err error)
OldKpi returns the old "kpi" field's value of the DeviceKpi entity. If the DeviceKpi 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 (*DeviceKpiMutation) OldMonthKpi ¶
func (m *DeviceKpiMutation) OldMonthKpi(ctx context.Context) (v float64, err error)
OldMonthKpi returns the old "monthKpi" field's value of the DeviceKpi entity. If the DeviceKpi 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 (*DeviceKpiMutation) OldProductKey ¶
func (m *DeviceKpiMutation) OldProductKey(ctx context.Context) (v string, err error)
OldProductKey returns the old "productKey" field's value of the DeviceKpi entity. If the DeviceKpi 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 (*DeviceKpiMutation) OldSort ¶
func (m *DeviceKpiMutation) OldSort(ctx context.Context) (v uint32, err error)
OldSort returns the old "sort" field's value of the DeviceKpi entity. If the DeviceKpi 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 (*DeviceKpiMutation) OldStatus ¶
func (m *DeviceKpiMutation) OldStatus(ctx context.Context) (v uint8, err error)
OldStatus returns the old "status" field's value of the DeviceKpi entity. If the DeviceKpi 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 (*DeviceKpiMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the DeviceKpi entity. If the DeviceKpi 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 (*DeviceKpiMutation) OldWeekKpi ¶
func (m *DeviceKpiMutation) OldWeekKpi(ctx context.Context) (v float64, err error)
OldWeekKpi returns the old "weekKpi" field's value of the DeviceKpi entity. If the DeviceKpi 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 (*DeviceKpiMutation) OldX ¶
func (m *DeviceKpiMutation) OldX(ctx context.Context) (v float64, err error)
OldX returns the old "x" field's value of the DeviceKpi entity. If the DeviceKpi 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 (*DeviceKpiMutation) OldY ¶
func (m *DeviceKpiMutation) OldY(ctx context.Context) (v float64, err error)
OldY returns the old "y" field's value of the DeviceKpi entity. If the DeviceKpi 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 (*DeviceKpiMutation) ProductKey ¶
func (m *DeviceKpiMutation) ProductKey() (r string, exists bool)
ProductKey returns the value of the "productKey" field in the mutation.
func (*DeviceKpiMutation) QueryContext ¶
func (c *DeviceKpiMutation) 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 (*DeviceKpiMutation) RemovedEdges ¶
func (m *DeviceKpiMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*DeviceKpiMutation) RemovedIDs ¶
func (m *DeviceKpiMutation) 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 (*DeviceKpiMutation) ResetA ¶
func (m *DeviceKpiMutation) ResetA()
ResetA resets all changes to the "a" field.
func (*DeviceKpiMutation) ResetB ¶
func (m *DeviceKpiMutation) ResetB()
ResetB resets all changes to the "b" field.
func (*DeviceKpiMutation) ResetCreatedAt ¶
func (m *DeviceKpiMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*DeviceKpiMutation) ResetCurrentDay1 ¶
func (m *DeviceKpiMutation) ResetCurrentDay1()
ResetCurrentDay1 resets all changes to the "currentDay1" field.
func (*DeviceKpiMutation) ResetCurrentDay28 ¶
func (m *DeviceKpiMutation) ResetCurrentDay28()
ResetCurrentDay28 resets all changes to the "currentDay28" field.
func (*DeviceKpiMutation) ResetCurrentDay7 ¶
func (m *DeviceKpiMutation) ResetCurrentDay7()
ResetCurrentDay7 resets all changes to the "currentDay7" field.
func (*DeviceKpiMutation) ResetDeviceName ¶
func (m *DeviceKpiMutation) ResetDeviceName()
ResetDeviceName resets all changes to the "deviceName" field.
func (*DeviceKpiMutation) ResetEdge ¶
func (m *DeviceKpiMutation) 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 (*DeviceKpiMutation) ResetField ¶
func (m *DeviceKpiMutation) 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 (*DeviceKpiMutation) ResetIotID ¶
func (m *DeviceKpiMutation) ResetIotID()
ResetIotID resets all changes to the "iotID" field.
func (*DeviceKpiMutation) ResetKpi ¶
func (m *DeviceKpiMutation) ResetKpi()
ResetKpi resets all changes to the "kpi" field.
func (*DeviceKpiMutation) ResetMonthKpi ¶
func (m *DeviceKpiMutation) ResetMonthKpi()
ResetMonthKpi resets all changes to the "monthKpi" field.
func (*DeviceKpiMutation) ResetProductKey ¶
func (m *DeviceKpiMutation) ResetProductKey()
ResetProductKey resets all changes to the "productKey" field.
func (*DeviceKpiMutation) ResetSort ¶
func (m *DeviceKpiMutation) ResetSort()
ResetSort resets all changes to the "sort" field.
func (*DeviceKpiMutation) ResetStatus ¶
func (m *DeviceKpiMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*DeviceKpiMutation) ResetUpdatedAt ¶
func (m *DeviceKpiMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*DeviceKpiMutation) ResetWeekKpi ¶
func (m *DeviceKpiMutation) ResetWeekKpi()
ResetWeekKpi resets all changes to the "weekKpi" field.
func (*DeviceKpiMutation) ResetX ¶
func (m *DeviceKpiMutation) ResetX()
ResetX resets all changes to the "x" field.
func (*DeviceKpiMutation) ResetY ¶
func (m *DeviceKpiMutation) ResetY()
ResetY resets all changes to the "y" field.
func (*DeviceKpiMutation) SetA ¶
func (m *DeviceKpiMutation) SetA(f float64)
SetA sets the "a" field.
func (*DeviceKpiMutation) SetB ¶
func (m *DeviceKpiMutation) SetB(f float64)
SetB sets the "b" field.
func (*DeviceKpiMutation) SetCreatedAt ¶
func (m *DeviceKpiMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*DeviceKpiMutation) SetCurrentDay1 ¶
func (m *DeviceKpiMutation) SetCurrentDay1(i int64)
SetCurrentDay1 sets the "currentDay1" field.
func (*DeviceKpiMutation) SetCurrentDay28 ¶
func (m *DeviceKpiMutation) SetCurrentDay28(i int64)
SetCurrentDay28 sets the "currentDay28" field.
func (*DeviceKpiMutation) SetCurrentDay7 ¶
func (m *DeviceKpiMutation) SetCurrentDay7(i int64)
SetCurrentDay7 sets the "currentDay7" field.
func (*DeviceKpiMutation) SetDeviceName ¶
func (m *DeviceKpiMutation) SetDeviceName(s string)
SetDeviceName sets the "deviceName" field.
func (*DeviceKpiMutation) SetField ¶
func (m *DeviceKpiMutation) 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 (*DeviceKpiMutation) SetID ¶
func (m *DeviceKpiMutation) SetID(id uint64)
SetID sets the value of the id field. Note that this operation is only accepted on creation of DeviceKpi entities.
func (*DeviceKpiMutation) SetIotID ¶
func (m *DeviceKpiMutation) SetIotID(s string)
SetIotID sets the "iotID" field.
func (*DeviceKpiMutation) SetKpi ¶
func (m *DeviceKpiMutation) SetKpi(f float64)
SetKpi sets the "kpi" field.
func (*DeviceKpiMutation) SetMonthKpi ¶
func (m *DeviceKpiMutation) SetMonthKpi(f float64)
SetMonthKpi sets the "monthKpi" field.
func (*DeviceKpiMutation) SetOp ¶
func (m *DeviceKpiMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*DeviceKpiMutation) SetProductKey ¶
func (m *DeviceKpiMutation) SetProductKey(s string)
SetProductKey sets the "productKey" field.
func (*DeviceKpiMutation) SetSort ¶
func (m *DeviceKpiMutation) SetSort(u uint32)
SetSort sets the "sort" field.
func (*DeviceKpiMutation) SetStatus ¶
func (m *DeviceKpiMutation) SetStatus(u uint8)
SetStatus sets the "status" field.
func (*DeviceKpiMutation) SetUpdatedAt ¶
func (m *DeviceKpiMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*DeviceKpiMutation) SetWeekKpi ¶
func (m *DeviceKpiMutation) SetWeekKpi(f float64)
SetWeekKpi sets the "weekKpi" field.
func (*DeviceKpiMutation) SetX ¶
func (m *DeviceKpiMutation) SetX(f float64)
SetX sets the "x" field.
func (*DeviceKpiMutation) SetY ¶
func (m *DeviceKpiMutation) SetY(f float64)
SetY sets the "y" field.
func (*DeviceKpiMutation) Sort ¶
func (m *DeviceKpiMutation) Sort() (r uint32, exists bool)
Sort returns the value of the "sort" field in the mutation.
func (*DeviceKpiMutation) Status ¶
func (m *DeviceKpiMutation) Status() (r uint8, exists bool)
Status returns the value of the "status" field in the mutation.
func (*DeviceKpiMutation) StatusCleared ¶
func (m *DeviceKpiMutation) StatusCleared() bool
StatusCleared returns if the "status" field was cleared in this mutation.
func (DeviceKpiMutation) Tx ¶
func (m DeviceKpiMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*DeviceKpiMutation) Type ¶
func (m *DeviceKpiMutation) Type() string
Type returns the node type of this mutation (DeviceKpi).
func (*DeviceKpiMutation) UpdatedAt ¶
func (m *DeviceKpiMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*DeviceKpiMutation) WeekKpi ¶
func (m *DeviceKpiMutation) WeekKpi() (r float64, exists bool)
WeekKpi returns the value of the "weekKpi" field in the mutation.
func (*DeviceKpiMutation) WeekKpiCleared ¶
func (m *DeviceKpiMutation) WeekKpiCleared() bool
WeekKpiCleared returns if the "weekKpi" field was cleared in this mutation.
func (*DeviceKpiMutation) Where ¶
func (m *DeviceKpiMutation) Where(ps ...predicate.DeviceKpi)
Where appends a list predicates to the DeviceKpiMutation builder.
func (*DeviceKpiMutation) WhereP ¶
func (m *DeviceKpiMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the DeviceKpiMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
func (*DeviceKpiMutation) X ¶
func (m *DeviceKpiMutation) X() (r float64, exists bool)
X returns the value of the "x" field in the mutation.
func (*DeviceKpiMutation) XCleared ¶
func (m *DeviceKpiMutation) XCleared() bool
XCleared returns if the "x" field was cleared in this mutation.
func (*DeviceKpiMutation) Y ¶
func (m *DeviceKpiMutation) Y() (r float64, exists bool)
Y returns the value of the "y" field in the mutation.
func (*DeviceKpiMutation) YCleared ¶
func (m *DeviceKpiMutation) YCleared() bool
YCleared returns if the "y" field was cleared in this mutation.
type DeviceKpiPageList ¶
type DeviceKpiPageList struct { List []*DeviceKpi `json:"list"` PageDetails *PageDetails `json:"pageDetails"` }
DeviceKpiPageList is DeviceKpi PageList result.
type DeviceKpiPager ¶
type DeviceKpiPager struct { Order devicekpi.OrderOption Filter func(*DeviceKpiQuery) (*DeviceKpiQuery, error) }
func (*DeviceKpiPager) ApplyFilter ¶
func (p *DeviceKpiPager) ApplyFilter(query *DeviceKpiQuery) (*DeviceKpiQuery, error)
type DeviceKpiPaginateOption ¶
type DeviceKpiPaginateOption func(*DeviceKpiPager)
DeviceKpiPaginateOption enables pagination customization.
type DeviceKpiQuery ¶
type DeviceKpiQuery struct {
// contains filtered or unexported fields
}
DeviceKpiQuery is the builder for querying DeviceKpi entities.
func (*DeviceKpiQuery) Aggregate ¶
func (dkq *DeviceKpiQuery) Aggregate(fns ...AggregateFunc) *DeviceKpiSelect
Aggregate returns a DeviceKpiSelect configured with the given aggregations.
func (*DeviceKpiQuery) All ¶
func (dkq *DeviceKpiQuery) All(ctx context.Context) ([]*DeviceKpi, error)
All executes the query and returns a list of DeviceKpis.
func (*DeviceKpiQuery) AllX ¶
func (dkq *DeviceKpiQuery) AllX(ctx context.Context) []*DeviceKpi
AllX is like All, but panics if an error occurs.
func (*DeviceKpiQuery) Clone ¶
func (dkq *DeviceKpiQuery) Clone() *DeviceKpiQuery
Clone returns a duplicate of the DeviceKpiQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*DeviceKpiQuery) Count ¶
func (dkq *DeviceKpiQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*DeviceKpiQuery) CountX ¶
func (dkq *DeviceKpiQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*DeviceKpiQuery) ExecContext ¶
func (c *DeviceKpiQuery) 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 (*DeviceKpiQuery) Exist ¶
func (dkq *DeviceKpiQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*DeviceKpiQuery) ExistX ¶
func (dkq *DeviceKpiQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*DeviceKpiQuery) First ¶
func (dkq *DeviceKpiQuery) First(ctx context.Context) (*DeviceKpi, error)
First returns the first DeviceKpi entity from the query. Returns a *NotFoundError when no DeviceKpi was found.
func (*DeviceKpiQuery) FirstID ¶
func (dkq *DeviceKpiQuery) FirstID(ctx context.Context) (id uint64, err error)
FirstID returns the first DeviceKpi ID from the query. Returns a *NotFoundError when no DeviceKpi ID was found.
func (*DeviceKpiQuery) FirstIDX ¶
func (dkq *DeviceKpiQuery) FirstIDX(ctx context.Context) uint64
FirstIDX is like FirstID, but panics if an error occurs.
func (*DeviceKpiQuery) FirstX ¶
func (dkq *DeviceKpiQuery) FirstX(ctx context.Context) *DeviceKpi
FirstX is like First, but panics if an error occurs.
func (*DeviceKpiQuery) GroupBy ¶
func (dkq *DeviceKpiQuery) GroupBy(field string, fields ...string) *DeviceKpiGroupBy
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.DeviceKpi.Query(). GroupBy(devicekpi.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*DeviceKpiQuery) IDs ¶
func (dkq *DeviceKpiQuery) IDs(ctx context.Context) (ids []uint64, err error)
IDs executes the query and returns a list of DeviceKpi IDs.
func (*DeviceKpiQuery) IDsX ¶
func (dkq *DeviceKpiQuery) IDsX(ctx context.Context) []uint64
IDsX is like IDs, but panics if an error occurs.
func (*DeviceKpiQuery) Limit ¶
func (dkq *DeviceKpiQuery) Limit(limit int) *DeviceKpiQuery
Limit the number of records to be returned by this query.
func (*DeviceKpiQuery) Modify ¶
func (dkq *DeviceKpiQuery) Modify(modifiers ...func(s *sql.Selector)) *DeviceKpiSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*DeviceKpiQuery) Offset ¶
func (dkq *DeviceKpiQuery) Offset(offset int) *DeviceKpiQuery
Offset to start from.
func (*DeviceKpiQuery) Only ¶
func (dkq *DeviceKpiQuery) Only(ctx context.Context) (*DeviceKpi, error)
Only returns a single DeviceKpi entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one DeviceKpi entity is found. Returns a *NotFoundError when no DeviceKpi entities are found.
func (*DeviceKpiQuery) OnlyID ¶
func (dkq *DeviceKpiQuery) OnlyID(ctx context.Context) (id uint64, err error)
OnlyID is like Only, but returns the only DeviceKpi ID in the query. Returns a *NotSingularError when more than one DeviceKpi ID is found. Returns a *NotFoundError when no entities are found.
func (*DeviceKpiQuery) OnlyIDX ¶
func (dkq *DeviceKpiQuery) OnlyIDX(ctx context.Context) uint64
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*DeviceKpiQuery) OnlyX ¶
func (dkq *DeviceKpiQuery) OnlyX(ctx context.Context) *DeviceKpi
OnlyX is like Only, but panics if an error occurs.
func (*DeviceKpiQuery) Order ¶
func (dkq *DeviceKpiQuery) Order(o ...devicekpi.OrderOption) *DeviceKpiQuery
Order specifies how the records should be ordered.
func (*DeviceKpiQuery) Page ¶
func (dk *DeviceKpiQuery) Page( ctx context.Context, pageNum uint64, pageSize uint64, opts ...DeviceKpiPaginateOption, ) (*DeviceKpiPageList, error)
func (*DeviceKpiQuery) QueryContext ¶
func (c *DeviceKpiQuery) 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 (*DeviceKpiQuery) Select ¶
func (dkq *DeviceKpiQuery) Select(fields ...string) *DeviceKpiSelect
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.DeviceKpi.Query(). Select(devicekpi.FieldCreatedAt). Scan(ctx, &v)
func (*DeviceKpiQuery) Unique ¶
func (dkq *DeviceKpiQuery) Unique(unique bool) *DeviceKpiQuery
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 (*DeviceKpiQuery) Where ¶
func (dkq *DeviceKpiQuery) Where(ps ...predicate.DeviceKpi) *DeviceKpiQuery
Where adds a new predicate for the DeviceKpiQuery builder.
type DeviceKpiSelect ¶
type DeviceKpiSelect struct { *DeviceKpiQuery // contains filtered or unexported fields }
DeviceKpiSelect is the builder for selecting fields of DeviceKpi entities.
func (*DeviceKpiSelect) Aggregate ¶
func (dks *DeviceKpiSelect) Aggregate(fns ...AggregateFunc) *DeviceKpiSelect
Aggregate adds the given aggregation functions to the selector query.
func (*DeviceKpiSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DeviceKpiSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (DeviceKpiSelect) ExecContext ¶
func (c DeviceKpiSelect) 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 (*DeviceKpiSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DeviceKpiSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DeviceKpiSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DeviceKpiSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*DeviceKpiSelect) Modify ¶
func (dks *DeviceKpiSelect) Modify(modifiers ...func(s *sql.Selector)) *DeviceKpiSelect
Modify adds a query modifier for attaching custom logic to queries.
func (DeviceKpiSelect) QueryContext ¶
func (c DeviceKpiSelect) 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 (*DeviceKpiSelect) Scan ¶
func (dks *DeviceKpiSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*DeviceKpiSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type DeviceKpiUpdate ¶
type DeviceKpiUpdate struct {
// contains filtered or unexported fields
}
DeviceKpiUpdate is the builder for updating DeviceKpi entities.
func (*DeviceKpiUpdate) AddA ¶
func (dku *DeviceKpiUpdate) AddA(f float64) *DeviceKpiUpdate
AddA adds f to the "a" field.
func (*DeviceKpiUpdate) AddB ¶
func (dku *DeviceKpiUpdate) AddB(f float64) *DeviceKpiUpdate
AddB adds f to the "b" field.
func (*DeviceKpiUpdate) AddCurrentDay1 ¶
func (dku *DeviceKpiUpdate) AddCurrentDay1(i int64) *DeviceKpiUpdate
AddCurrentDay1 adds i to the "currentDay1" field.
func (*DeviceKpiUpdate) AddCurrentDay28 ¶
func (dku *DeviceKpiUpdate) AddCurrentDay28(i int64) *DeviceKpiUpdate
AddCurrentDay28 adds i to the "currentDay28" field.
func (*DeviceKpiUpdate) AddCurrentDay7 ¶
func (dku *DeviceKpiUpdate) AddCurrentDay7(i int64) *DeviceKpiUpdate
AddCurrentDay7 adds i to the "currentDay7" field.
func (*DeviceKpiUpdate) AddKpi ¶
func (dku *DeviceKpiUpdate) AddKpi(f float64) *DeviceKpiUpdate
AddKpi adds f to the "kpi" field.
func (*DeviceKpiUpdate) AddMonthKpi ¶
func (dku *DeviceKpiUpdate) AddMonthKpi(f float64) *DeviceKpiUpdate
AddMonthKpi adds f to the "monthKpi" field.
func (*DeviceKpiUpdate) AddSort ¶
func (dku *DeviceKpiUpdate) AddSort(u int32) *DeviceKpiUpdate
AddSort adds u to the "sort" field.
func (*DeviceKpiUpdate) AddStatus ¶
func (dku *DeviceKpiUpdate) AddStatus(u int8) *DeviceKpiUpdate
AddStatus adds u to the "status" field.
func (*DeviceKpiUpdate) AddWeekKpi ¶
func (dku *DeviceKpiUpdate) AddWeekKpi(f float64) *DeviceKpiUpdate
AddWeekKpi adds f to the "weekKpi" field.
func (*DeviceKpiUpdate) AddX ¶
func (dku *DeviceKpiUpdate) AddX(f float64) *DeviceKpiUpdate
AddX adds f to the "x" field.
func (*DeviceKpiUpdate) AddY ¶
func (dku *DeviceKpiUpdate) AddY(f float64) *DeviceKpiUpdate
AddY adds f to the "y" field.
func (*DeviceKpiUpdate) ClearA ¶
func (dku *DeviceKpiUpdate) ClearA() *DeviceKpiUpdate
ClearA clears the value of the "a" field.
func (*DeviceKpiUpdate) ClearB ¶
func (dku *DeviceKpiUpdate) ClearB() *DeviceKpiUpdate
ClearB clears the value of the "b" field.
func (*DeviceKpiUpdate) ClearCurrentDay1 ¶
func (dku *DeviceKpiUpdate) ClearCurrentDay1() *DeviceKpiUpdate
ClearCurrentDay1 clears the value of the "currentDay1" field.
func (*DeviceKpiUpdate) ClearCurrentDay28 ¶
func (dku *DeviceKpiUpdate) ClearCurrentDay28() *DeviceKpiUpdate
ClearCurrentDay28 clears the value of the "currentDay28" field.
func (*DeviceKpiUpdate) ClearCurrentDay7 ¶
func (dku *DeviceKpiUpdate) ClearCurrentDay7() *DeviceKpiUpdate
ClearCurrentDay7 clears the value of the "currentDay7" field.
func (*DeviceKpiUpdate) ClearKpi ¶
func (dku *DeviceKpiUpdate) ClearKpi() *DeviceKpiUpdate
ClearKpi clears the value of the "kpi" field.
func (*DeviceKpiUpdate) ClearMonthKpi ¶
func (dku *DeviceKpiUpdate) ClearMonthKpi() *DeviceKpiUpdate
ClearMonthKpi clears the value of the "monthKpi" field.
func (*DeviceKpiUpdate) ClearStatus ¶
func (dku *DeviceKpiUpdate) ClearStatus() *DeviceKpiUpdate
ClearStatus clears the value of the "status" field.
func (*DeviceKpiUpdate) ClearWeekKpi ¶
func (dku *DeviceKpiUpdate) ClearWeekKpi() *DeviceKpiUpdate
ClearWeekKpi clears the value of the "weekKpi" field.
func (*DeviceKpiUpdate) ClearX ¶
func (dku *DeviceKpiUpdate) ClearX() *DeviceKpiUpdate
ClearX clears the value of the "x" field.
func (*DeviceKpiUpdate) ClearY ¶
func (dku *DeviceKpiUpdate) ClearY() *DeviceKpiUpdate
ClearY clears the value of the "y" field.
func (*DeviceKpiUpdate) Exec ¶
func (dku *DeviceKpiUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceKpiUpdate) ExecContext ¶
func (c *DeviceKpiUpdate) 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 (*DeviceKpiUpdate) ExecX ¶
func (dku *DeviceKpiUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceKpiUpdate) Modify ¶
func (dku *DeviceKpiUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceKpiUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*DeviceKpiUpdate) Mutation ¶
func (dku *DeviceKpiUpdate) Mutation() *DeviceKpiMutation
Mutation returns the DeviceKpiMutation object of the builder.
func (*DeviceKpiUpdate) QueryContext ¶
func (c *DeviceKpiUpdate) 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 (*DeviceKpiUpdate) Save ¶
func (dku *DeviceKpiUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*DeviceKpiUpdate) SaveX ¶
func (dku *DeviceKpiUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*DeviceKpiUpdate) SetA ¶
func (dku *DeviceKpiUpdate) SetA(f float64) *DeviceKpiUpdate
SetA sets the "a" field.
func (*DeviceKpiUpdate) SetB ¶
func (dku *DeviceKpiUpdate) SetB(f float64) *DeviceKpiUpdate
SetB sets the "b" field.
func (*DeviceKpiUpdate) SetCurrentDay1 ¶
func (dku *DeviceKpiUpdate) SetCurrentDay1(i int64) *DeviceKpiUpdate
SetCurrentDay1 sets the "currentDay1" field.
func (*DeviceKpiUpdate) SetCurrentDay28 ¶
func (dku *DeviceKpiUpdate) SetCurrentDay28(i int64) *DeviceKpiUpdate
SetCurrentDay28 sets the "currentDay28" field.
func (*DeviceKpiUpdate) SetCurrentDay7 ¶
func (dku *DeviceKpiUpdate) SetCurrentDay7(i int64) *DeviceKpiUpdate
SetCurrentDay7 sets the "currentDay7" field.
func (*DeviceKpiUpdate) SetDeviceName ¶
func (dku *DeviceKpiUpdate) SetDeviceName(s string) *DeviceKpiUpdate
SetDeviceName sets the "deviceName" field.
func (*DeviceKpiUpdate) SetIotID ¶
func (dku *DeviceKpiUpdate) SetIotID(s string) *DeviceKpiUpdate
SetIotID sets the "iotID" field.
func (*DeviceKpiUpdate) SetKpi ¶
func (dku *DeviceKpiUpdate) SetKpi(f float64) *DeviceKpiUpdate
SetKpi sets the "kpi" field.
func (*DeviceKpiUpdate) SetMonthKpi ¶
func (dku *DeviceKpiUpdate) SetMonthKpi(f float64) *DeviceKpiUpdate
SetMonthKpi sets the "monthKpi" field.
func (*DeviceKpiUpdate) SetNillableA ¶
func (dku *DeviceKpiUpdate) SetNillableA(f *float64) *DeviceKpiUpdate
SetNillableA sets the "a" field if the given value is not nil.
func (*DeviceKpiUpdate) SetNillableB ¶
func (dku *DeviceKpiUpdate) SetNillableB(f *float64) *DeviceKpiUpdate
SetNillableB sets the "b" field if the given value is not nil.
func (*DeviceKpiUpdate) SetNillableCurrentDay1 ¶
func (dku *DeviceKpiUpdate) SetNillableCurrentDay1(i *int64) *DeviceKpiUpdate
SetNillableCurrentDay1 sets the "currentDay1" field if the given value is not nil.
func (*DeviceKpiUpdate) SetNillableCurrentDay28 ¶
func (dku *DeviceKpiUpdate) SetNillableCurrentDay28(i *int64) *DeviceKpiUpdate
SetNillableCurrentDay28 sets the "currentDay28" field if the given value is not nil.
func (*DeviceKpiUpdate) SetNillableCurrentDay7 ¶
func (dku *DeviceKpiUpdate) SetNillableCurrentDay7(i *int64) *DeviceKpiUpdate
SetNillableCurrentDay7 sets the "currentDay7" field if the given value is not nil.
func (*DeviceKpiUpdate) SetNillableDeviceName ¶
func (dku *DeviceKpiUpdate) SetNillableDeviceName(s *string) *DeviceKpiUpdate
SetNillableDeviceName sets the "deviceName" field if the given value is not nil.
func (*DeviceKpiUpdate) SetNillableIotID ¶
func (dku *DeviceKpiUpdate) SetNillableIotID(s *string) *DeviceKpiUpdate
SetNillableIotID sets the "iotID" field if the given value is not nil.
func (*DeviceKpiUpdate) SetNillableKpi ¶
func (dku *DeviceKpiUpdate) SetNillableKpi(f *float64) *DeviceKpiUpdate
SetNillableKpi sets the "kpi" field if the given value is not nil.
func (*DeviceKpiUpdate) SetNillableMonthKpi ¶
func (dku *DeviceKpiUpdate) SetNillableMonthKpi(f *float64) *DeviceKpiUpdate
SetNillableMonthKpi sets the "monthKpi" field if the given value is not nil.
func (*DeviceKpiUpdate) SetNillableProductKey ¶
func (dku *DeviceKpiUpdate) SetNillableProductKey(s *string) *DeviceKpiUpdate
SetNillableProductKey sets the "productKey" field if the given value is not nil.
func (*DeviceKpiUpdate) SetNillableSort ¶
func (dku *DeviceKpiUpdate) SetNillableSort(u *uint32) *DeviceKpiUpdate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DeviceKpiUpdate) SetNillableStatus ¶
func (dku *DeviceKpiUpdate) SetNillableStatus(u *uint8) *DeviceKpiUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DeviceKpiUpdate) SetNillableWeekKpi ¶
func (dku *DeviceKpiUpdate) SetNillableWeekKpi(f *float64) *DeviceKpiUpdate
SetNillableWeekKpi sets the "weekKpi" field if the given value is not nil.
func (*DeviceKpiUpdate) SetNillableX ¶
func (dku *DeviceKpiUpdate) SetNillableX(f *float64) *DeviceKpiUpdate
SetNillableX sets the "x" field if the given value is not nil.
func (*DeviceKpiUpdate) SetNillableY ¶
func (dku *DeviceKpiUpdate) SetNillableY(f *float64) *DeviceKpiUpdate
SetNillableY sets the "y" field if the given value is not nil.
func (*DeviceKpiUpdate) SetNotNilA ¶
func (dk *DeviceKpiUpdate) SetNotNilA(value *float64) *DeviceKpiUpdate
set field if value's pointer is not nil.
func (*DeviceKpiUpdate) SetNotNilB ¶
func (dk *DeviceKpiUpdate) SetNotNilB(value *float64) *DeviceKpiUpdate
set field if value's pointer is not nil.
func (*DeviceKpiUpdate) SetNotNilCurrentDay1 ¶
func (dk *DeviceKpiUpdate) SetNotNilCurrentDay1(value *int64) *DeviceKpiUpdate
set field if value's pointer is not nil.
func (*DeviceKpiUpdate) SetNotNilCurrentDay28 ¶
func (dk *DeviceKpiUpdate) SetNotNilCurrentDay28(value *int64) *DeviceKpiUpdate
set field if value's pointer is not nil.
func (*DeviceKpiUpdate) SetNotNilCurrentDay7 ¶
func (dk *DeviceKpiUpdate) SetNotNilCurrentDay7(value *int64) *DeviceKpiUpdate
set field if value's pointer is not nil.
func (*DeviceKpiUpdate) SetNotNilDeviceName ¶
func (dk *DeviceKpiUpdate) SetNotNilDeviceName(value *string) *DeviceKpiUpdate
set field if value's pointer is not nil.
func (*DeviceKpiUpdate) SetNotNilIotID ¶
func (dk *DeviceKpiUpdate) SetNotNilIotID(value *string) *DeviceKpiUpdate
set field if value's pointer is not nil.
func (*DeviceKpiUpdate) SetNotNilKpi ¶
func (dk *DeviceKpiUpdate) SetNotNilKpi(value *float64) *DeviceKpiUpdate
set field if value's pointer is not nil.
func (*DeviceKpiUpdate) SetNotNilMonthKpi ¶
func (dk *DeviceKpiUpdate) SetNotNilMonthKpi(value *float64) *DeviceKpiUpdate
set field if value's pointer is not nil.
func (*DeviceKpiUpdate) SetNotNilProductKey ¶
func (dk *DeviceKpiUpdate) SetNotNilProductKey(value *string) *DeviceKpiUpdate
set field if value's pointer is not nil.
func (*DeviceKpiUpdate) SetNotNilSort ¶
func (dk *DeviceKpiUpdate) SetNotNilSort(value *uint32) *DeviceKpiUpdate
set field if value's pointer is not nil.
func (*DeviceKpiUpdate) SetNotNilStatus ¶
func (dk *DeviceKpiUpdate) SetNotNilStatus(value *uint8) *DeviceKpiUpdate
set field if value's pointer is not nil.
func (*DeviceKpiUpdate) SetNotNilUpdatedAt ¶
func (dk *DeviceKpiUpdate) SetNotNilUpdatedAt(value *time.Time) *DeviceKpiUpdate
set field if value's pointer is not nil.
func (*DeviceKpiUpdate) SetNotNilWeekKpi ¶
func (dk *DeviceKpiUpdate) SetNotNilWeekKpi(value *float64) *DeviceKpiUpdate
set field if value's pointer is not nil.
func (*DeviceKpiUpdate) SetNotNilX ¶
func (dk *DeviceKpiUpdate) SetNotNilX(value *float64) *DeviceKpiUpdate
set field if value's pointer is not nil.
func (*DeviceKpiUpdate) SetNotNilY ¶
func (dk *DeviceKpiUpdate) SetNotNilY(value *float64) *DeviceKpiUpdate
set field if value's pointer is not nil.
func (*DeviceKpiUpdate) SetProductKey ¶
func (dku *DeviceKpiUpdate) SetProductKey(s string) *DeviceKpiUpdate
SetProductKey sets the "productKey" field.
func (*DeviceKpiUpdate) SetSort ¶
func (dku *DeviceKpiUpdate) SetSort(u uint32) *DeviceKpiUpdate
SetSort sets the "sort" field.
func (*DeviceKpiUpdate) SetStatus ¶
func (dku *DeviceKpiUpdate) SetStatus(u uint8) *DeviceKpiUpdate
SetStatus sets the "status" field.
func (*DeviceKpiUpdate) SetUpdatedAt ¶
func (dku *DeviceKpiUpdate) SetUpdatedAt(t time.Time) *DeviceKpiUpdate
SetUpdatedAt sets the "updated_at" field.
func (*DeviceKpiUpdate) SetWeekKpi ¶
func (dku *DeviceKpiUpdate) SetWeekKpi(f float64) *DeviceKpiUpdate
SetWeekKpi sets the "weekKpi" field.
func (*DeviceKpiUpdate) SetX ¶
func (dku *DeviceKpiUpdate) SetX(f float64) *DeviceKpiUpdate
SetX sets the "x" field.
func (*DeviceKpiUpdate) SetY ¶
func (dku *DeviceKpiUpdate) SetY(f float64) *DeviceKpiUpdate
SetY sets the "y" field.
func (*DeviceKpiUpdate) Where ¶
func (dku *DeviceKpiUpdate) Where(ps ...predicate.DeviceKpi) *DeviceKpiUpdate
Where appends a list predicates to the DeviceKpiUpdate builder.
type DeviceKpiUpdateOne ¶
type DeviceKpiUpdateOne struct {
// contains filtered or unexported fields
}
DeviceKpiUpdateOne is the builder for updating a single DeviceKpi entity.
func (*DeviceKpiUpdateOne) AddA ¶
func (dkuo *DeviceKpiUpdateOne) AddA(f float64) *DeviceKpiUpdateOne
AddA adds f to the "a" field.
func (*DeviceKpiUpdateOne) AddB ¶
func (dkuo *DeviceKpiUpdateOne) AddB(f float64) *DeviceKpiUpdateOne
AddB adds f to the "b" field.
func (*DeviceKpiUpdateOne) AddCurrentDay1 ¶
func (dkuo *DeviceKpiUpdateOne) AddCurrentDay1(i int64) *DeviceKpiUpdateOne
AddCurrentDay1 adds i to the "currentDay1" field.
func (*DeviceKpiUpdateOne) AddCurrentDay28 ¶
func (dkuo *DeviceKpiUpdateOne) AddCurrentDay28(i int64) *DeviceKpiUpdateOne
AddCurrentDay28 adds i to the "currentDay28" field.
func (*DeviceKpiUpdateOne) AddCurrentDay7 ¶
func (dkuo *DeviceKpiUpdateOne) AddCurrentDay7(i int64) *DeviceKpiUpdateOne
AddCurrentDay7 adds i to the "currentDay7" field.
func (*DeviceKpiUpdateOne) AddKpi ¶
func (dkuo *DeviceKpiUpdateOne) AddKpi(f float64) *DeviceKpiUpdateOne
AddKpi adds f to the "kpi" field.
func (*DeviceKpiUpdateOne) AddMonthKpi ¶
func (dkuo *DeviceKpiUpdateOne) AddMonthKpi(f float64) *DeviceKpiUpdateOne
AddMonthKpi adds f to the "monthKpi" field.
func (*DeviceKpiUpdateOne) AddSort ¶
func (dkuo *DeviceKpiUpdateOne) AddSort(u int32) *DeviceKpiUpdateOne
AddSort adds u to the "sort" field.
func (*DeviceKpiUpdateOne) AddStatus ¶
func (dkuo *DeviceKpiUpdateOne) AddStatus(u int8) *DeviceKpiUpdateOne
AddStatus adds u to the "status" field.
func (*DeviceKpiUpdateOne) AddWeekKpi ¶
func (dkuo *DeviceKpiUpdateOne) AddWeekKpi(f float64) *DeviceKpiUpdateOne
AddWeekKpi adds f to the "weekKpi" field.
func (*DeviceKpiUpdateOne) AddX ¶
func (dkuo *DeviceKpiUpdateOne) AddX(f float64) *DeviceKpiUpdateOne
AddX adds f to the "x" field.
func (*DeviceKpiUpdateOne) AddY ¶
func (dkuo *DeviceKpiUpdateOne) AddY(f float64) *DeviceKpiUpdateOne
AddY adds f to the "y" field.
func (*DeviceKpiUpdateOne) ClearA ¶
func (dkuo *DeviceKpiUpdateOne) ClearA() *DeviceKpiUpdateOne
ClearA clears the value of the "a" field.
func (*DeviceKpiUpdateOne) ClearB ¶
func (dkuo *DeviceKpiUpdateOne) ClearB() *DeviceKpiUpdateOne
ClearB clears the value of the "b" field.
func (*DeviceKpiUpdateOne) ClearCurrentDay1 ¶
func (dkuo *DeviceKpiUpdateOne) ClearCurrentDay1() *DeviceKpiUpdateOne
ClearCurrentDay1 clears the value of the "currentDay1" field.
func (*DeviceKpiUpdateOne) ClearCurrentDay28 ¶
func (dkuo *DeviceKpiUpdateOne) ClearCurrentDay28() *DeviceKpiUpdateOne
ClearCurrentDay28 clears the value of the "currentDay28" field.
func (*DeviceKpiUpdateOne) ClearCurrentDay7 ¶
func (dkuo *DeviceKpiUpdateOne) ClearCurrentDay7() *DeviceKpiUpdateOne
ClearCurrentDay7 clears the value of the "currentDay7" field.
func (*DeviceKpiUpdateOne) ClearKpi ¶
func (dkuo *DeviceKpiUpdateOne) ClearKpi() *DeviceKpiUpdateOne
ClearKpi clears the value of the "kpi" field.
func (*DeviceKpiUpdateOne) ClearMonthKpi ¶
func (dkuo *DeviceKpiUpdateOne) ClearMonthKpi() *DeviceKpiUpdateOne
ClearMonthKpi clears the value of the "monthKpi" field.
func (*DeviceKpiUpdateOne) ClearStatus ¶
func (dkuo *DeviceKpiUpdateOne) ClearStatus() *DeviceKpiUpdateOne
ClearStatus clears the value of the "status" field.
func (*DeviceKpiUpdateOne) ClearWeekKpi ¶
func (dkuo *DeviceKpiUpdateOne) ClearWeekKpi() *DeviceKpiUpdateOne
ClearWeekKpi clears the value of the "weekKpi" field.
func (*DeviceKpiUpdateOne) ClearX ¶
func (dkuo *DeviceKpiUpdateOne) ClearX() *DeviceKpiUpdateOne
ClearX clears the value of the "x" field.
func (*DeviceKpiUpdateOne) ClearY ¶
func (dkuo *DeviceKpiUpdateOne) ClearY() *DeviceKpiUpdateOne
ClearY clears the value of the "y" field.
func (*DeviceKpiUpdateOne) Exec ¶
func (dkuo *DeviceKpiUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*DeviceKpiUpdateOne) ExecContext ¶
func (c *DeviceKpiUpdateOne) 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 (*DeviceKpiUpdateOne) ExecX ¶
func (dkuo *DeviceKpiUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceKpiUpdateOne) Modify ¶
func (dkuo *DeviceKpiUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceKpiUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*DeviceKpiUpdateOne) Mutation ¶
func (dkuo *DeviceKpiUpdateOne) Mutation() *DeviceKpiMutation
Mutation returns the DeviceKpiMutation object of the builder.
func (*DeviceKpiUpdateOne) QueryContext ¶
func (c *DeviceKpiUpdateOne) 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 (*DeviceKpiUpdateOne) Save ¶
func (dkuo *DeviceKpiUpdateOne) Save(ctx context.Context) (*DeviceKpi, error)
Save executes the query and returns the updated DeviceKpi entity.
func (*DeviceKpiUpdateOne) SaveX ¶
func (dkuo *DeviceKpiUpdateOne) SaveX(ctx context.Context) *DeviceKpi
SaveX is like Save, but panics if an error occurs.
func (*DeviceKpiUpdateOne) Select ¶
func (dkuo *DeviceKpiUpdateOne) Select(field string, fields ...string) *DeviceKpiUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*DeviceKpiUpdateOne) SetA ¶
func (dkuo *DeviceKpiUpdateOne) SetA(f float64) *DeviceKpiUpdateOne
SetA sets the "a" field.
func (*DeviceKpiUpdateOne) SetB ¶
func (dkuo *DeviceKpiUpdateOne) SetB(f float64) *DeviceKpiUpdateOne
SetB sets the "b" field.
func (*DeviceKpiUpdateOne) SetCurrentDay1 ¶
func (dkuo *DeviceKpiUpdateOne) SetCurrentDay1(i int64) *DeviceKpiUpdateOne
SetCurrentDay1 sets the "currentDay1" field.
func (*DeviceKpiUpdateOne) SetCurrentDay28 ¶
func (dkuo *DeviceKpiUpdateOne) SetCurrentDay28(i int64) *DeviceKpiUpdateOne
SetCurrentDay28 sets the "currentDay28" field.
func (*DeviceKpiUpdateOne) SetCurrentDay7 ¶
func (dkuo *DeviceKpiUpdateOne) SetCurrentDay7(i int64) *DeviceKpiUpdateOne
SetCurrentDay7 sets the "currentDay7" field.
func (*DeviceKpiUpdateOne) SetDeviceName ¶
func (dkuo *DeviceKpiUpdateOne) SetDeviceName(s string) *DeviceKpiUpdateOne
SetDeviceName sets the "deviceName" field.
func (*DeviceKpiUpdateOne) SetIotID ¶
func (dkuo *DeviceKpiUpdateOne) SetIotID(s string) *DeviceKpiUpdateOne
SetIotID sets the "iotID" field.
func (*DeviceKpiUpdateOne) SetKpi ¶
func (dkuo *DeviceKpiUpdateOne) SetKpi(f float64) *DeviceKpiUpdateOne
SetKpi sets the "kpi" field.
func (*DeviceKpiUpdateOne) SetMonthKpi ¶
func (dkuo *DeviceKpiUpdateOne) SetMonthKpi(f float64) *DeviceKpiUpdateOne
SetMonthKpi sets the "monthKpi" field.
func (*DeviceKpiUpdateOne) SetNillableA ¶
func (dkuo *DeviceKpiUpdateOne) SetNillableA(f *float64) *DeviceKpiUpdateOne
SetNillableA sets the "a" field if the given value is not nil.
func (*DeviceKpiUpdateOne) SetNillableB ¶
func (dkuo *DeviceKpiUpdateOne) SetNillableB(f *float64) *DeviceKpiUpdateOne
SetNillableB sets the "b" field if the given value is not nil.
func (*DeviceKpiUpdateOne) SetNillableCurrentDay1 ¶
func (dkuo *DeviceKpiUpdateOne) SetNillableCurrentDay1(i *int64) *DeviceKpiUpdateOne
SetNillableCurrentDay1 sets the "currentDay1" field if the given value is not nil.
func (*DeviceKpiUpdateOne) SetNillableCurrentDay28 ¶
func (dkuo *DeviceKpiUpdateOne) SetNillableCurrentDay28(i *int64) *DeviceKpiUpdateOne
SetNillableCurrentDay28 sets the "currentDay28" field if the given value is not nil.
func (*DeviceKpiUpdateOne) SetNillableCurrentDay7 ¶
func (dkuo *DeviceKpiUpdateOne) SetNillableCurrentDay7(i *int64) *DeviceKpiUpdateOne
SetNillableCurrentDay7 sets the "currentDay7" field if the given value is not nil.
func (*DeviceKpiUpdateOne) SetNillableDeviceName ¶
func (dkuo *DeviceKpiUpdateOne) SetNillableDeviceName(s *string) *DeviceKpiUpdateOne
SetNillableDeviceName sets the "deviceName" field if the given value is not nil.
func (*DeviceKpiUpdateOne) SetNillableIotID ¶
func (dkuo *DeviceKpiUpdateOne) SetNillableIotID(s *string) *DeviceKpiUpdateOne
SetNillableIotID sets the "iotID" field if the given value is not nil.
func (*DeviceKpiUpdateOne) SetNillableKpi ¶
func (dkuo *DeviceKpiUpdateOne) SetNillableKpi(f *float64) *DeviceKpiUpdateOne
SetNillableKpi sets the "kpi" field if the given value is not nil.
func (*DeviceKpiUpdateOne) SetNillableMonthKpi ¶
func (dkuo *DeviceKpiUpdateOne) SetNillableMonthKpi(f *float64) *DeviceKpiUpdateOne
SetNillableMonthKpi sets the "monthKpi" field if the given value is not nil.
func (*DeviceKpiUpdateOne) SetNillableProductKey ¶
func (dkuo *DeviceKpiUpdateOne) SetNillableProductKey(s *string) *DeviceKpiUpdateOne
SetNillableProductKey sets the "productKey" field if the given value is not nil.
func (*DeviceKpiUpdateOne) SetNillableSort ¶
func (dkuo *DeviceKpiUpdateOne) SetNillableSort(u *uint32) *DeviceKpiUpdateOne
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DeviceKpiUpdateOne) SetNillableStatus ¶
func (dkuo *DeviceKpiUpdateOne) SetNillableStatus(u *uint8) *DeviceKpiUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DeviceKpiUpdateOne) SetNillableWeekKpi ¶
func (dkuo *DeviceKpiUpdateOne) SetNillableWeekKpi(f *float64) *DeviceKpiUpdateOne
SetNillableWeekKpi sets the "weekKpi" field if the given value is not nil.
func (*DeviceKpiUpdateOne) SetNillableX ¶
func (dkuo *DeviceKpiUpdateOne) SetNillableX(f *float64) *DeviceKpiUpdateOne
SetNillableX sets the "x" field if the given value is not nil.
func (*DeviceKpiUpdateOne) SetNillableY ¶
func (dkuo *DeviceKpiUpdateOne) SetNillableY(f *float64) *DeviceKpiUpdateOne
SetNillableY sets the "y" field if the given value is not nil.
func (*DeviceKpiUpdateOne) SetNotNilA ¶
func (dk *DeviceKpiUpdateOne) SetNotNilA(value *float64) *DeviceKpiUpdateOne
set field if value's pointer is not nil.
func (*DeviceKpiUpdateOne) SetNotNilB ¶
func (dk *DeviceKpiUpdateOne) SetNotNilB(value *float64) *DeviceKpiUpdateOne
set field if value's pointer is not nil.
func (*DeviceKpiUpdateOne) SetNotNilCurrentDay1 ¶
func (dk *DeviceKpiUpdateOne) SetNotNilCurrentDay1(value *int64) *DeviceKpiUpdateOne
set field if value's pointer is not nil.
func (*DeviceKpiUpdateOne) SetNotNilCurrentDay28 ¶
func (dk *DeviceKpiUpdateOne) SetNotNilCurrentDay28(value *int64) *DeviceKpiUpdateOne
set field if value's pointer is not nil.
func (*DeviceKpiUpdateOne) SetNotNilCurrentDay7 ¶
func (dk *DeviceKpiUpdateOne) SetNotNilCurrentDay7(value *int64) *DeviceKpiUpdateOne
set field if value's pointer is not nil.
func (*DeviceKpiUpdateOne) SetNotNilDeviceName ¶
func (dk *DeviceKpiUpdateOne) SetNotNilDeviceName(value *string) *DeviceKpiUpdateOne
set field if value's pointer is not nil.
func (*DeviceKpiUpdateOne) SetNotNilIotID ¶
func (dk *DeviceKpiUpdateOne) SetNotNilIotID(value *string) *DeviceKpiUpdateOne
set field if value's pointer is not nil.
func (*DeviceKpiUpdateOne) SetNotNilKpi ¶
func (dk *DeviceKpiUpdateOne) SetNotNilKpi(value *float64) *DeviceKpiUpdateOne
set field if value's pointer is not nil.
func (*DeviceKpiUpdateOne) SetNotNilMonthKpi ¶
func (dk *DeviceKpiUpdateOne) SetNotNilMonthKpi(value *float64) *DeviceKpiUpdateOne
set field if value's pointer is not nil.
func (*DeviceKpiUpdateOne) SetNotNilProductKey ¶
func (dk *DeviceKpiUpdateOne) SetNotNilProductKey(value *string) *DeviceKpiUpdateOne
set field if value's pointer is not nil.
func (*DeviceKpiUpdateOne) SetNotNilSort ¶
func (dk *DeviceKpiUpdateOne) SetNotNilSort(value *uint32) *DeviceKpiUpdateOne
set field if value's pointer is not nil.
func (*DeviceKpiUpdateOne) SetNotNilStatus ¶
func (dk *DeviceKpiUpdateOne) SetNotNilStatus(value *uint8) *DeviceKpiUpdateOne
set field if value's pointer is not nil.
func (*DeviceKpiUpdateOne) SetNotNilUpdatedAt ¶
func (dk *DeviceKpiUpdateOne) SetNotNilUpdatedAt(value *time.Time) *DeviceKpiUpdateOne
set field if value's pointer is not nil.
func (*DeviceKpiUpdateOne) SetNotNilWeekKpi ¶
func (dk *DeviceKpiUpdateOne) SetNotNilWeekKpi(value *float64) *DeviceKpiUpdateOne
set field if value's pointer is not nil.
func (*DeviceKpiUpdateOne) SetNotNilX ¶
func (dk *DeviceKpiUpdateOne) SetNotNilX(value *float64) *DeviceKpiUpdateOne
set field if value's pointer is not nil.
func (*DeviceKpiUpdateOne) SetNotNilY ¶
func (dk *DeviceKpiUpdateOne) SetNotNilY(value *float64) *DeviceKpiUpdateOne
set field if value's pointer is not nil.
func (*DeviceKpiUpdateOne) SetProductKey ¶
func (dkuo *DeviceKpiUpdateOne) SetProductKey(s string) *DeviceKpiUpdateOne
SetProductKey sets the "productKey" field.
func (*DeviceKpiUpdateOne) SetSort ¶
func (dkuo *DeviceKpiUpdateOne) SetSort(u uint32) *DeviceKpiUpdateOne
SetSort sets the "sort" field.
func (*DeviceKpiUpdateOne) SetStatus ¶
func (dkuo *DeviceKpiUpdateOne) SetStatus(u uint8) *DeviceKpiUpdateOne
SetStatus sets the "status" field.
func (*DeviceKpiUpdateOne) SetUpdatedAt ¶
func (dkuo *DeviceKpiUpdateOne) SetUpdatedAt(t time.Time) *DeviceKpiUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*DeviceKpiUpdateOne) SetWeekKpi ¶
func (dkuo *DeviceKpiUpdateOne) SetWeekKpi(f float64) *DeviceKpiUpdateOne
SetWeekKpi sets the "weekKpi" field.
func (*DeviceKpiUpdateOne) SetX ¶
func (dkuo *DeviceKpiUpdateOne) SetX(f float64) *DeviceKpiUpdateOne
SetX sets the "x" field.
func (*DeviceKpiUpdateOne) SetY ¶
func (dkuo *DeviceKpiUpdateOne) SetY(f float64) *DeviceKpiUpdateOne
SetY sets the "y" field.
func (*DeviceKpiUpdateOne) Where ¶
func (dkuo *DeviceKpiUpdateOne) Where(ps ...predicate.DeviceKpi) *DeviceKpiUpdateOne
Where appends a list predicates to the DeviceKpiUpdate builder.
type DeviceKpiUpsert ¶
DeviceKpiUpsert is the "OnConflict" setter.
func (*DeviceKpiUpsert) AddA ¶
func (u *DeviceKpiUpsert) AddA(v float64) *DeviceKpiUpsert
AddA adds v to the "a" field.
func (*DeviceKpiUpsert) AddB ¶
func (u *DeviceKpiUpsert) AddB(v float64) *DeviceKpiUpsert
AddB adds v to the "b" field.
func (*DeviceKpiUpsert) AddCurrentDay1 ¶
func (u *DeviceKpiUpsert) AddCurrentDay1(v int64) *DeviceKpiUpsert
AddCurrentDay1 adds v to the "currentDay1" field.
func (*DeviceKpiUpsert) AddCurrentDay28 ¶
func (u *DeviceKpiUpsert) AddCurrentDay28(v int64) *DeviceKpiUpsert
AddCurrentDay28 adds v to the "currentDay28" field.
func (*DeviceKpiUpsert) AddCurrentDay7 ¶
func (u *DeviceKpiUpsert) AddCurrentDay7(v int64) *DeviceKpiUpsert
AddCurrentDay7 adds v to the "currentDay7" field.
func (*DeviceKpiUpsert) AddKpi ¶
func (u *DeviceKpiUpsert) AddKpi(v float64) *DeviceKpiUpsert
AddKpi adds v to the "kpi" field.
func (*DeviceKpiUpsert) AddMonthKpi ¶
func (u *DeviceKpiUpsert) AddMonthKpi(v float64) *DeviceKpiUpsert
AddMonthKpi adds v to the "monthKpi" field.
func (*DeviceKpiUpsert) AddSort ¶
func (u *DeviceKpiUpsert) AddSort(v uint32) *DeviceKpiUpsert
AddSort adds v to the "sort" field.
func (*DeviceKpiUpsert) AddStatus ¶
func (u *DeviceKpiUpsert) AddStatus(v uint8) *DeviceKpiUpsert
AddStatus adds v to the "status" field.
func (*DeviceKpiUpsert) AddWeekKpi ¶
func (u *DeviceKpiUpsert) AddWeekKpi(v float64) *DeviceKpiUpsert
AddWeekKpi adds v to the "weekKpi" field.
func (*DeviceKpiUpsert) AddX ¶
func (u *DeviceKpiUpsert) AddX(v float64) *DeviceKpiUpsert
AddX adds v to the "x" field.
func (*DeviceKpiUpsert) AddY ¶
func (u *DeviceKpiUpsert) AddY(v float64) *DeviceKpiUpsert
AddY adds v to the "y" field.
func (*DeviceKpiUpsert) ClearA ¶
func (u *DeviceKpiUpsert) ClearA() *DeviceKpiUpsert
ClearA clears the value of the "a" field.
func (*DeviceKpiUpsert) ClearB ¶
func (u *DeviceKpiUpsert) ClearB() *DeviceKpiUpsert
ClearB clears the value of the "b" field.
func (*DeviceKpiUpsert) ClearCurrentDay1 ¶
func (u *DeviceKpiUpsert) ClearCurrentDay1() *DeviceKpiUpsert
ClearCurrentDay1 clears the value of the "currentDay1" field.
func (*DeviceKpiUpsert) ClearCurrentDay28 ¶
func (u *DeviceKpiUpsert) ClearCurrentDay28() *DeviceKpiUpsert
ClearCurrentDay28 clears the value of the "currentDay28" field.
func (*DeviceKpiUpsert) ClearCurrentDay7 ¶
func (u *DeviceKpiUpsert) ClearCurrentDay7() *DeviceKpiUpsert
ClearCurrentDay7 clears the value of the "currentDay7" field.
func (*DeviceKpiUpsert) ClearKpi ¶
func (u *DeviceKpiUpsert) ClearKpi() *DeviceKpiUpsert
ClearKpi clears the value of the "kpi" field.
func (*DeviceKpiUpsert) ClearMonthKpi ¶
func (u *DeviceKpiUpsert) ClearMonthKpi() *DeviceKpiUpsert
ClearMonthKpi clears the value of the "monthKpi" field.
func (*DeviceKpiUpsert) ClearStatus ¶
func (u *DeviceKpiUpsert) ClearStatus() *DeviceKpiUpsert
ClearStatus clears the value of the "status" field.
func (*DeviceKpiUpsert) ClearWeekKpi ¶
func (u *DeviceKpiUpsert) ClearWeekKpi() *DeviceKpiUpsert
ClearWeekKpi clears the value of the "weekKpi" field.
func (*DeviceKpiUpsert) ClearX ¶
func (u *DeviceKpiUpsert) ClearX() *DeviceKpiUpsert
ClearX clears the value of the "x" field.
func (*DeviceKpiUpsert) ClearY ¶
func (u *DeviceKpiUpsert) ClearY() *DeviceKpiUpsert
ClearY clears the value of the "y" field.
func (*DeviceKpiUpsert) SetA ¶
func (u *DeviceKpiUpsert) SetA(v float64) *DeviceKpiUpsert
SetA sets the "a" field.
func (*DeviceKpiUpsert) SetB ¶
func (u *DeviceKpiUpsert) SetB(v float64) *DeviceKpiUpsert
SetB sets the "b" field.
func (*DeviceKpiUpsert) SetCurrentDay1 ¶
func (u *DeviceKpiUpsert) SetCurrentDay1(v int64) *DeviceKpiUpsert
SetCurrentDay1 sets the "currentDay1" field.
func (*DeviceKpiUpsert) SetCurrentDay28 ¶
func (u *DeviceKpiUpsert) SetCurrentDay28(v int64) *DeviceKpiUpsert
SetCurrentDay28 sets the "currentDay28" field.
func (*DeviceKpiUpsert) SetCurrentDay7 ¶
func (u *DeviceKpiUpsert) SetCurrentDay7(v int64) *DeviceKpiUpsert
SetCurrentDay7 sets the "currentDay7" field.
func (*DeviceKpiUpsert) SetDeviceName ¶
func (u *DeviceKpiUpsert) SetDeviceName(v string) *DeviceKpiUpsert
SetDeviceName sets the "deviceName" field.
func (*DeviceKpiUpsert) SetIotID ¶
func (u *DeviceKpiUpsert) SetIotID(v string) *DeviceKpiUpsert
SetIotID sets the "iotID" field.
func (*DeviceKpiUpsert) SetKpi ¶
func (u *DeviceKpiUpsert) SetKpi(v float64) *DeviceKpiUpsert
SetKpi sets the "kpi" field.
func (*DeviceKpiUpsert) SetMonthKpi ¶
func (u *DeviceKpiUpsert) SetMonthKpi(v float64) *DeviceKpiUpsert
SetMonthKpi sets the "monthKpi" field.
func (*DeviceKpiUpsert) SetProductKey ¶
func (u *DeviceKpiUpsert) SetProductKey(v string) *DeviceKpiUpsert
SetProductKey sets the "productKey" field.
func (*DeviceKpiUpsert) SetSort ¶
func (u *DeviceKpiUpsert) SetSort(v uint32) *DeviceKpiUpsert
SetSort sets the "sort" field.
func (*DeviceKpiUpsert) SetStatus ¶
func (u *DeviceKpiUpsert) SetStatus(v uint8) *DeviceKpiUpsert
SetStatus sets the "status" field.
func (*DeviceKpiUpsert) SetUpdatedAt ¶
func (u *DeviceKpiUpsert) SetUpdatedAt(v time.Time) *DeviceKpiUpsert
SetUpdatedAt sets the "updated_at" field.
func (*DeviceKpiUpsert) SetWeekKpi ¶
func (u *DeviceKpiUpsert) SetWeekKpi(v float64) *DeviceKpiUpsert
SetWeekKpi sets the "weekKpi" field.
func (*DeviceKpiUpsert) SetX ¶
func (u *DeviceKpiUpsert) SetX(v float64) *DeviceKpiUpsert
SetX sets the "x" field.
func (*DeviceKpiUpsert) SetY ¶
func (u *DeviceKpiUpsert) SetY(v float64) *DeviceKpiUpsert
SetY sets the "y" field.
func (*DeviceKpiUpsert) UpdateA ¶
func (u *DeviceKpiUpsert) UpdateA() *DeviceKpiUpsert
UpdateA sets the "a" field to the value that was provided on create.
func (*DeviceKpiUpsert) UpdateB ¶
func (u *DeviceKpiUpsert) UpdateB() *DeviceKpiUpsert
UpdateB sets the "b" field to the value that was provided on create.
func (*DeviceKpiUpsert) UpdateCurrentDay1 ¶
func (u *DeviceKpiUpsert) UpdateCurrentDay1() *DeviceKpiUpsert
UpdateCurrentDay1 sets the "currentDay1" field to the value that was provided on create.
func (*DeviceKpiUpsert) UpdateCurrentDay28 ¶
func (u *DeviceKpiUpsert) UpdateCurrentDay28() *DeviceKpiUpsert
UpdateCurrentDay28 sets the "currentDay28" field to the value that was provided on create.
func (*DeviceKpiUpsert) UpdateCurrentDay7 ¶
func (u *DeviceKpiUpsert) UpdateCurrentDay7() *DeviceKpiUpsert
UpdateCurrentDay7 sets the "currentDay7" field to the value that was provided on create.
func (*DeviceKpiUpsert) UpdateDeviceName ¶
func (u *DeviceKpiUpsert) UpdateDeviceName() *DeviceKpiUpsert
UpdateDeviceName sets the "deviceName" field to the value that was provided on create.
func (*DeviceKpiUpsert) UpdateIotID ¶
func (u *DeviceKpiUpsert) UpdateIotID() *DeviceKpiUpsert
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DeviceKpiUpsert) UpdateKpi ¶
func (u *DeviceKpiUpsert) UpdateKpi() *DeviceKpiUpsert
UpdateKpi sets the "kpi" field to the value that was provided on create.
func (*DeviceKpiUpsert) UpdateMonthKpi ¶
func (u *DeviceKpiUpsert) UpdateMonthKpi() *DeviceKpiUpsert
UpdateMonthKpi sets the "monthKpi" field to the value that was provided on create.
func (*DeviceKpiUpsert) UpdateProductKey ¶
func (u *DeviceKpiUpsert) UpdateProductKey() *DeviceKpiUpsert
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*DeviceKpiUpsert) UpdateSort ¶
func (u *DeviceKpiUpsert) UpdateSort() *DeviceKpiUpsert
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DeviceKpiUpsert) UpdateStatus ¶
func (u *DeviceKpiUpsert) UpdateStatus() *DeviceKpiUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DeviceKpiUpsert) UpdateUpdatedAt ¶
func (u *DeviceKpiUpsert) UpdateUpdatedAt() *DeviceKpiUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*DeviceKpiUpsert) UpdateWeekKpi ¶
func (u *DeviceKpiUpsert) UpdateWeekKpi() *DeviceKpiUpsert
UpdateWeekKpi sets the "weekKpi" field to the value that was provided on create.
func (*DeviceKpiUpsert) UpdateX ¶
func (u *DeviceKpiUpsert) UpdateX() *DeviceKpiUpsert
UpdateX sets the "x" field to the value that was provided on create.
func (*DeviceKpiUpsert) UpdateY ¶
func (u *DeviceKpiUpsert) UpdateY() *DeviceKpiUpsert
UpdateY sets the "y" field to the value that was provided on create.
type DeviceKpiUpsertBulk ¶
type DeviceKpiUpsertBulk struct {
// contains filtered or unexported fields
}
DeviceKpiUpsertBulk is the builder for "upsert"-ing a bulk of DeviceKpi nodes.
func (*DeviceKpiUpsertBulk) AddA ¶
func (u *DeviceKpiUpsertBulk) AddA(v float64) *DeviceKpiUpsertBulk
AddA adds v to the "a" field.
func (*DeviceKpiUpsertBulk) AddB ¶
func (u *DeviceKpiUpsertBulk) AddB(v float64) *DeviceKpiUpsertBulk
AddB adds v to the "b" field.
func (*DeviceKpiUpsertBulk) AddCurrentDay1 ¶
func (u *DeviceKpiUpsertBulk) AddCurrentDay1(v int64) *DeviceKpiUpsertBulk
AddCurrentDay1 adds v to the "currentDay1" field.
func (*DeviceKpiUpsertBulk) AddCurrentDay28 ¶
func (u *DeviceKpiUpsertBulk) AddCurrentDay28(v int64) *DeviceKpiUpsertBulk
AddCurrentDay28 adds v to the "currentDay28" field.
func (*DeviceKpiUpsertBulk) AddCurrentDay7 ¶
func (u *DeviceKpiUpsertBulk) AddCurrentDay7(v int64) *DeviceKpiUpsertBulk
AddCurrentDay7 adds v to the "currentDay7" field.
func (*DeviceKpiUpsertBulk) AddKpi ¶
func (u *DeviceKpiUpsertBulk) AddKpi(v float64) *DeviceKpiUpsertBulk
AddKpi adds v to the "kpi" field.
func (*DeviceKpiUpsertBulk) AddMonthKpi ¶
func (u *DeviceKpiUpsertBulk) AddMonthKpi(v float64) *DeviceKpiUpsertBulk
AddMonthKpi adds v to the "monthKpi" field.
func (*DeviceKpiUpsertBulk) AddSort ¶
func (u *DeviceKpiUpsertBulk) AddSort(v uint32) *DeviceKpiUpsertBulk
AddSort adds v to the "sort" field.
func (*DeviceKpiUpsertBulk) AddStatus ¶
func (u *DeviceKpiUpsertBulk) AddStatus(v uint8) *DeviceKpiUpsertBulk
AddStatus adds v to the "status" field.
func (*DeviceKpiUpsertBulk) AddWeekKpi ¶
func (u *DeviceKpiUpsertBulk) AddWeekKpi(v float64) *DeviceKpiUpsertBulk
AddWeekKpi adds v to the "weekKpi" field.
func (*DeviceKpiUpsertBulk) AddX ¶
func (u *DeviceKpiUpsertBulk) AddX(v float64) *DeviceKpiUpsertBulk
AddX adds v to the "x" field.
func (*DeviceKpiUpsertBulk) AddY ¶
func (u *DeviceKpiUpsertBulk) AddY(v float64) *DeviceKpiUpsertBulk
AddY adds v to the "y" field.
func (*DeviceKpiUpsertBulk) ClearA ¶
func (u *DeviceKpiUpsertBulk) ClearA() *DeviceKpiUpsertBulk
ClearA clears the value of the "a" field.
func (*DeviceKpiUpsertBulk) ClearB ¶
func (u *DeviceKpiUpsertBulk) ClearB() *DeviceKpiUpsertBulk
ClearB clears the value of the "b" field.
func (*DeviceKpiUpsertBulk) ClearCurrentDay1 ¶
func (u *DeviceKpiUpsertBulk) ClearCurrentDay1() *DeviceKpiUpsertBulk
ClearCurrentDay1 clears the value of the "currentDay1" field.
func (*DeviceKpiUpsertBulk) ClearCurrentDay28 ¶
func (u *DeviceKpiUpsertBulk) ClearCurrentDay28() *DeviceKpiUpsertBulk
ClearCurrentDay28 clears the value of the "currentDay28" field.
func (*DeviceKpiUpsertBulk) ClearCurrentDay7 ¶
func (u *DeviceKpiUpsertBulk) ClearCurrentDay7() *DeviceKpiUpsertBulk
ClearCurrentDay7 clears the value of the "currentDay7" field.
func (*DeviceKpiUpsertBulk) ClearKpi ¶
func (u *DeviceKpiUpsertBulk) ClearKpi() *DeviceKpiUpsertBulk
ClearKpi clears the value of the "kpi" field.
func (*DeviceKpiUpsertBulk) ClearMonthKpi ¶
func (u *DeviceKpiUpsertBulk) ClearMonthKpi() *DeviceKpiUpsertBulk
ClearMonthKpi clears the value of the "monthKpi" field.
func (*DeviceKpiUpsertBulk) ClearStatus ¶
func (u *DeviceKpiUpsertBulk) ClearStatus() *DeviceKpiUpsertBulk
ClearStatus clears the value of the "status" field.
func (*DeviceKpiUpsertBulk) ClearWeekKpi ¶
func (u *DeviceKpiUpsertBulk) ClearWeekKpi() *DeviceKpiUpsertBulk
ClearWeekKpi clears the value of the "weekKpi" field.
func (*DeviceKpiUpsertBulk) ClearX ¶
func (u *DeviceKpiUpsertBulk) ClearX() *DeviceKpiUpsertBulk
ClearX clears the value of the "x" field.
func (*DeviceKpiUpsertBulk) ClearY ¶
func (u *DeviceKpiUpsertBulk) ClearY() *DeviceKpiUpsertBulk
ClearY clears the value of the "y" field.
func (*DeviceKpiUpsertBulk) DoNothing ¶
func (u *DeviceKpiUpsertBulk) DoNothing() *DeviceKpiUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*DeviceKpiUpsertBulk) Exec ¶
func (u *DeviceKpiUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceKpiUpsertBulk) ExecX ¶
func (u *DeviceKpiUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceKpiUpsertBulk) Ignore ¶
func (u *DeviceKpiUpsertBulk) Ignore() *DeviceKpiUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.DeviceKpi.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*DeviceKpiUpsertBulk) SetA ¶
func (u *DeviceKpiUpsertBulk) SetA(v float64) *DeviceKpiUpsertBulk
SetA sets the "a" field.
func (*DeviceKpiUpsertBulk) SetB ¶
func (u *DeviceKpiUpsertBulk) SetB(v float64) *DeviceKpiUpsertBulk
SetB sets the "b" field.
func (*DeviceKpiUpsertBulk) SetCurrentDay1 ¶
func (u *DeviceKpiUpsertBulk) SetCurrentDay1(v int64) *DeviceKpiUpsertBulk
SetCurrentDay1 sets the "currentDay1" field.
func (*DeviceKpiUpsertBulk) SetCurrentDay28 ¶
func (u *DeviceKpiUpsertBulk) SetCurrentDay28(v int64) *DeviceKpiUpsertBulk
SetCurrentDay28 sets the "currentDay28" field.
func (*DeviceKpiUpsertBulk) SetCurrentDay7 ¶
func (u *DeviceKpiUpsertBulk) SetCurrentDay7(v int64) *DeviceKpiUpsertBulk
SetCurrentDay7 sets the "currentDay7" field.
func (*DeviceKpiUpsertBulk) SetDeviceName ¶
func (u *DeviceKpiUpsertBulk) SetDeviceName(v string) *DeviceKpiUpsertBulk
SetDeviceName sets the "deviceName" field.
func (*DeviceKpiUpsertBulk) SetIotID ¶
func (u *DeviceKpiUpsertBulk) SetIotID(v string) *DeviceKpiUpsertBulk
SetIotID sets the "iotID" field.
func (*DeviceKpiUpsertBulk) SetKpi ¶
func (u *DeviceKpiUpsertBulk) SetKpi(v float64) *DeviceKpiUpsertBulk
SetKpi sets the "kpi" field.
func (*DeviceKpiUpsertBulk) SetMonthKpi ¶
func (u *DeviceKpiUpsertBulk) SetMonthKpi(v float64) *DeviceKpiUpsertBulk
SetMonthKpi sets the "monthKpi" field.
func (*DeviceKpiUpsertBulk) SetProductKey ¶
func (u *DeviceKpiUpsertBulk) SetProductKey(v string) *DeviceKpiUpsertBulk
SetProductKey sets the "productKey" field.
func (*DeviceKpiUpsertBulk) SetSort ¶
func (u *DeviceKpiUpsertBulk) SetSort(v uint32) *DeviceKpiUpsertBulk
SetSort sets the "sort" field.
func (*DeviceKpiUpsertBulk) SetStatus ¶
func (u *DeviceKpiUpsertBulk) SetStatus(v uint8) *DeviceKpiUpsertBulk
SetStatus sets the "status" field.
func (*DeviceKpiUpsertBulk) SetUpdatedAt ¶
func (u *DeviceKpiUpsertBulk) SetUpdatedAt(v time.Time) *DeviceKpiUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*DeviceKpiUpsertBulk) SetWeekKpi ¶
func (u *DeviceKpiUpsertBulk) SetWeekKpi(v float64) *DeviceKpiUpsertBulk
SetWeekKpi sets the "weekKpi" field.
func (*DeviceKpiUpsertBulk) SetX ¶
func (u *DeviceKpiUpsertBulk) SetX(v float64) *DeviceKpiUpsertBulk
SetX sets the "x" field.
func (*DeviceKpiUpsertBulk) SetY ¶
func (u *DeviceKpiUpsertBulk) SetY(v float64) *DeviceKpiUpsertBulk
SetY sets the "y" field.
func (*DeviceKpiUpsertBulk) Update ¶
func (u *DeviceKpiUpsertBulk) Update(set func(*DeviceKpiUpsert)) *DeviceKpiUpsertBulk
Update allows overriding fields `UPDATE` values. See the DeviceKpiCreateBulk.OnConflict documentation for more info.
func (*DeviceKpiUpsertBulk) UpdateA ¶
func (u *DeviceKpiUpsertBulk) UpdateA() *DeviceKpiUpsertBulk
UpdateA sets the "a" field to the value that was provided on create.
func (*DeviceKpiUpsertBulk) UpdateB ¶
func (u *DeviceKpiUpsertBulk) UpdateB() *DeviceKpiUpsertBulk
UpdateB sets the "b" field to the value that was provided on create.
func (*DeviceKpiUpsertBulk) UpdateCurrentDay1 ¶
func (u *DeviceKpiUpsertBulk) UpdateCurrentDay1() *DeviceKpiUpsertBulk
UpdateCurrentDay1 sets the "currentDay1" field to the value that was provided on create.
func (*DeviceKpiUpsertBulk) UpdateCurrentDay28 ¶
func (u *DeviceKpiUpsertBulk) UpdateCurrentDay28() *DeviceKpiUpsertBulk
UpdateCurrentDay28 sets the "currentDay28" field to the value that was provided on create.
func (*DeviceKpiUpsertBulk) UpdateCurrentDay7 ¶
func (u *DeviceKpiUpsertBulk) UpdateCurrentDay7() *DeviceKpiUpsertBulk
UpdateCurrentDay7 sets the "currentDay7" field to the value that was provided on create.
func (*DeviceKpiUpsertBulk) UpdateDeviceName ¶
func (u *DeviceKpiUpsertBulk) UpdateDeviceName() *DeviceKpiUpsertBulk
UpdateDeviceName sets the "deviceName" field to the value that was provided on create.
func (*DeviceKpiUpsertBulk) UpdateIotID ¶
func (u *DeviceKpiUpsertBulk) UpdateIotID() *DeviceKpiUpsertBulk
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DeviceKpiUpsertBulk) UpdateKpi ¶
func (u *DeviceKpiUpsertBulk) UpdateKpi() *DeviceKpiUpsertBulk
UpdateKpi sets the "kpi" field to the value that was provided on create.
func (*DeviceKpiUpsertBulk) UpdateMonthKpi ¶
func (u *DeviceKpiUpsertBulk) UpdateMonthKpi() *DeviceKpiUpsertBulk
UpdateMonthKpi sets the "monthKpi" field to the value that was provided on create.
func (*DeviceKpiUpsertBulk) UpdateNewValues ¶
func (u *DeviceKpiUpsertBulk) UpdateNewValues() *DeviceKpiUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.DeviceKpi.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(devicekpi.FieldID) }), ). Exec(ctx)
func (*DeviceKpiUpsertBulk) UpdateProductKey ¶
func (u *DeviceKpiUpsertBulk) UpdateProductKey() *DeviceKpiUpsertBulk
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*DeviceKpiUpsertBulk) UpdateSort ¶
func (u *DeviceKpiUpsertBulk) UpdateSort() *DeviceKpiUpsertBulk
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DeviceKpiUpsertBulk) UpdateStatus ¶
func (u *DeviceKpiUpsertBulk) UpdateStatus() *DeviceKpiUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DeviceKpiUpsertBulk) UpdateUpdatedAt ¶
func (u *DeviceKpiUpsertBulk) UpdateUpdatedAt() *DeviceKpiUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*DeviceKpiUpsertBulk) UpdateWeekKpi ¶
func (u *DeviceKpiUpsertBulk) UpdateWeekKpi() *DeviceKpiUpsertBulk
UpdateWeekKpi sets the "weekKpi" field to the value that was provided on create.
func (*DeviceKpiUpsertBulk) UpdateX ¶
func (u *DeviceKpiUpsertBulk) UpdateX() *DeviceKpiUpsertBulk
UpdateX sets the "x" field to the value that was provided on create.
func (*DeviceKpiUpsertBulk) UpdateY ¶
func (u *DeviceKpiUpsertBulk) UpdateY() *DeviceKpiUpsertBulk
UpdateY sets the "y" field to the value that was provided on create.
type DeviceKpiUpsertOne ¶
type DeviceKpiUpsertOne struct {
// contains filtered or unexported fields
}
DeviceKpiUpsertOne is the builder for "upsert"-ing
one DeviceKpi node.
func (*DeviceKpiUpsertOne) AddA ¶
func (u *DeviceKpiUpsertOne) AddA(v float64) *DeviceKpiUpsertOne
AddA adds v to the "a" field.
func (*DeviceKpiUpsertOne) AddB ¶
func (u *DeviceKpiUpsertOne) AddB(v float64) *DeviceKpiUpsertOne
AddB adds v to the "b" field.
func (*DeviceKpiUpsertOne) AddCurrentDay1 ¶
func (u *DeviceKpiUpsertOne) AddCurrentDay1(v int64) *DeviceKpiUpsertOne
AddCurrentDay1 adds v to the "currentDay1" field.
func (*DeviceKpiUpsertOne) AddCurrentDay28 ¶
func (u *DeviceKpiUpsertOne) AddCurrentDay28(v int64) *DeviceKpiUpsertOne
AddCurrentDay28 adds v to the "currentDay28" field.
func (*DeviceKpiUpsertOne) AddCurrentDay7 ¶
func (u *DeviceKpiUpsertOne) AddCurrentDay7(v int64) *DeviceKpiUpsertOne
AddCurrentDay7 adds v to the "currentDay7" field.
func (*DeviceKpiUpsertOne) AddKpi ¶
func (u *DeviceKpiUpsertOne) AddKpi(v float64) *DeviceKpiUpsertOne
AddKpi adds v to the "kpi" field.
func (*DeviceKpiUpsertOne) AddMonthKpi ¶
func (u *DeviceKpiUpsertOne) AddMonthKpi(v float64) *DeviceKpiUpsertOne
AddMonthKpi adds v to the "monthKpi" field.
func (*DeviceKpiUpsertOne) AddSort ¶
func (u *DeviceKpiUpsertOne) AddSort(v uint32) *DeviceKpiUpsertOne
AddSort adds v to the "sort" field.
func (*DeviceKpiUpsertOne) AddStatus ¶
func (u *DeviceKpiUpsertOne) AddStatus(v uint8) *DeviceKpiUpsertOne
AddStatus adds v to the "status" field.
func (*DeviceKpiUpsertOne) AddWeekKpi ¶
func (u *DeviceKpiUpsertOne) AddWeekKpi(v float64) *DeviceKpiUpsertOne
AddWeekKpi adds v to the "weekKpi" field.
func (*DeviceKpiUpsertOne) AddX ¶
func (u *DeviceKpiUpsertOne) AddX(v float64) *DeviceKpiUpsertOne
AddX adds v to the "x" field.
func (*DeviceKpiUpsertOne) AddY ¶
func (u *DeviceKpiUpsertOne) AddY(v float64) *DeviceKpiUpsertOne
AddY adds v to the "y" field.
func (*DeviceKpiUpsertOne) ClearA ¶
func (u *DeviceKpiUpsertOne) ClearA() *DeviceKpiUpsertOne
ClearA clears the value of the "a" field.
func (*DeviceKpiUpsertOne) ClearB ¶
func (u *DeviceKpiUpsertOne) ClearB() *DeviceKpiUpsertOne
ClearB clears the value of the "b" field.
func (*DeviceKpiUpsertOne) ClearCurrentDay1 ¶
func (u *DeviceKpiUpsertOne) ClearCurrentDay1() *DeviceKpiUpsertOne
ClearCurrentDay1 clears the value of the "currentDay1" field.
func (*DeviceKpiUpsertOne) ClearCurrentDay28 ¶
func (u *DeviceKpiUpsertOne) ClearCurrentDay28() *DeviceKpiUpsertOne
ClearCurrentDay28 clears the value of the "currentDay28" field.
func (*DeviceKpiUpsertOne) ClearCurrentDay7 ¶
func (u *DeviceKpiUpsertOne) ClearCurrentDay7() *DeviceKpiUpsertOne
ClearCurrentDay7 clears the value of the "currentDay7" field.
func (*DeviceKpiUpsertOne) ClearKpi ¶
func (u *DeviceKpiUpsertOne) ClearKpi() *DeviceKpiUpsertOne
ClearKpi clears the value of the "kpi" field.
func (*DeviceKpiUpsertOne) ClearMonthKpi ¶
func (u *DeviceKpiUpsertOne) ClearMonthKpi() *DeviceKpiUpsertOne
ClearMonthKpi clears the value of the "monthKpi" field.
func (*DeviceKpiUpsertOne) ClearStatus ¶
func (u *DeviceKpiUpsertOne) ClearStatus() *DeviceKpiUpsertOne
ClearStatus clears the value of the "status" field.
func (*DeviceKpiUpsertOne) ClearWeekKpi ¶
func (u *DeviceKpiUpsertOne) ClearWeekKpi() *DeviceKpiUpsertOne
ClearWeekKpi clears the value of the "weekKpi" field.
func (*DeviceKpiUpsertOne) ClearX ¶
func (u *DeviceKpiUpsertOne) ClearX() *DeviceKpiUpsertOne
ClearX clears the value of the "x" field.
func (*DeviceKpiUpsertOne) ClearY ¶
func (u *DeviceKpiUpsertOne) ClearY() *DeviceKpiUpsertOne
ClearY clears the value of the "y" field.
func (*DeviceKpiUpsertOne) DoNothing ¶
func (u *DeviceKpiUpsertOne) DoNothing() *DeviceKpiUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*DeviceKpiUpsertOne) Exec ¶
func (u *DeviceKpiUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceKpiUpsertOne) ExecX ¶
func (u *DeviceKpiUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceKpiUpsertOne) ID ¶
func (u *DeviceKpiUpsertOne) ID(ctx context.Context) (id uint64, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*DeviceKpiUpsertOne) IDX ¶
func (u *DeviceKpiUpsertOne) IDX(ctx context.Context) uint64
IDX is like ID, but panics if an error occurs.
func (*DeviceKpiUpsertOne) Ignore ¶
func (u *DeviceKpiUpsertOne) Ignore() *DeviceKpiUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.DeviceKpi.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*DeviceKpiUpsertOne) SetA ¶
func (u *DeviceKpiUpsertOne) SetA(v float64) *DeviceKpiUpsertOne
SetA sets the "a" field.
func (*DeviceKpiUpsertOne) SetB ¶
func (u *DeviceKpiUpsertOne) SetB(v float64) *DeviceKpiUpsertOne
SetB sets the "b" field.
func (*DeviceKpiUpsertOne) SetCurrentDay1 ¶
func (u *DeviceKpiUpsertOne) SetCurrentDay1(v int64) *DeviceKpiUpsertOne
SetCurrentDay1 sets the "currentDay1" field.
func (*DeviceKpiUpsertOne) SetCurrentDay28 ¶
func (u *DeviceKpiUpsertOne) SetCurrentDay28(v int64) *DeviceKpiUpsertOne
SetCurrentDay28 sets the "currentDay28" field.
func (*DeviceKpiUpsertOne) SetCurrentDay7 ¶
func (u *DeviceKpiUpsertOne) SetCurrentDay7(v int64) *DeviceKpiUpsertOne
SetCurrentDay7 sets the "currentDay7" field.
func (*DeviceKpiUpsertOne) SetDeviceName ¶
func (u *DeviceKpiUpsertOne) SetDeviceName(v string) *DeviceKpiUpsertOne
SetDeviceName sets the "deviceName" field.
func (*DeviceKpiUpsertOne) SetIotID ¶
func (u *DeviceKpiUpsertOne) SetIotID(v string) *DeviceKpiUpsertOne
SetIotID sets the "iotID" field.
func (*DeviceKpiUpsertOne) SetKpi ¶
func (u *DeviceKpiUpsertOne) SetKpi(v float64) *DeviceKpiUpsertOne
SetKpi sets the "kpi" field.
func (*DeviceKpiUpsertOne) SetMonthKpi ¶
func (u *DeviceKpiUpsertOne) SetMonthKpi(v float64) *DeviceKpiUpsertOne
SetMonthKpi sets the "monthKpi" field.
func (*DeviceKpiUpsertOne) SetProductKey ¶
func (u *DeviceKpiUpsertOne) SetProductKey(v string) *DeviceKpiUpsertOne
SetProductKey sets the "productKey" field.
func (*DeviceKpiUpsertOne) SetSort ¶
func (u *DeviceKpiUpsertOne) SetSort(v uint32) *DeviceKpiUpsertOne
SetSort sets the "sort" field.
func (*DeviceKpiUpsertOne) SetStatus ¶
func (u *DeviceKpiUpsertOne) SetStatus(v uint8) *DeviceKpiUpsertOne
SetStatus sets the "status" field.
func (*DeviceKpiUpsertOne) SetUpdatedAt ¶
func (u *DeviceKpiUpsertOne) SetUpdatedAt(v time.Time) *DeviceKpiUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*DeviceKpiUpsertOne) SetWeekKpi ¶
func (u *DeviceKpiUpsertOne) SetWeekKpi(v float64) *DeviceKpiUpsertOne
SetWeekKpi sets the "weekKpi" field.
func (*DeviceKpiUpsertOne) SetX ¶
func (u *DeviceKpiUpsertOne) SetX(v float64) *DeviceKpiUpsertOne
SetX sets the "x" field.
func (*DeviceKpiUpsertOne) SetY ¶
func (u *DeviceKpiUpsertOne) SetY(v float64) *DeviceKpiUpsertOne
SetY sets the "y" field.
func (*DeviceKpiUpsertOne) Update ¶
func (u *DeviceKpiUpsertOne) Update(set func(*DeviceKpiUpsert)) *DeviceKpiUpsertOne
Update allows overriding fields `UPDATE` values. See the DeviceKpiCreate.OnConflict documentation for more info.
func (*DeviceKpiUpsertOne) UpdateA ¶
func (u *DeviceKpiUpsertOne) UpdateA() *DeviceKpiUpsertOne
UpdateA sets the "a" field to the value that was provided on create.
func (*DeviceKpiUpsertOne) UpdateB ¶
func (u *DeviceKpiUpsertOne) UpdateB() *DeviceKpiUpsertOne
UpdateB sets the "b" field to the value that was provided on create.
func (*DeviceKpiUpsertOne) UpdateCurrentDay1 ¶
func (u *DeviceKpiUpsertOne) UpdateCurrentDay1() *DeviceKpiUpsertOne
UpdateCurrentDay1 sets the "currentDay1" field to the value that was provided on create.
func (*DeviceKpiUpsertOne) UpdateCurrentDay28 ¶
func (u *DeviceKpiUpsertOne) UpdateCurrentDay28() *DeviceKpiUpsertOne
UpdateCurrentDay28 sets the "currentDay28" field to the value that was provided on create.
func (*DeviceKpiUpsertOne) UpdateCurrentDay7 ¶
func (u *DeviceKpiUpsertOne) UpdateCurrentDay7() *DeviceKpiUpsertOne
UpdateCurrentDay7 sets the "currentDay7" field to the value that was provided on create.
func (*DeviceKpiUpsertOne) UpdateDeviceName ¶
func (u *DeviceKpiUpsertOne) UpdateDeviceName() *DeviceKpiUpsertOne
UpdateDeviceName sets the "deviceName" field to the value that was provided on create.
func (*DeviceKpiUpsertOne) UpdateIotID ¶
func (u *DeviceKpiUpsertOne) UpdateIotID() *DeviceKpiUpsertOne
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DeviceKpiUpsertOne) UpdateKpi ¶
func (u *DeviceKpiUpsertOne) UpdateKpi() *DeviceKpiUpsertOne
UpdateKpi sets the "kpi" field to the value that was provided on create.
func (*DeviceKpiUpsertOne) UpdateMonthKpi ¶
func (u *DeviceKpiUpsertOne) UpdateMonthKpi() *DeviceKpiUpsertOne
UpdateMonthKpi sets the "monthKpi" field to the value that was provided on create.
func (*DeviceKpiUpsertOne) UpdateNewValues ¶
func (u *DeviceKpiUpsertOne) UpdateNewValues() *DeviceKpiUpsertOne
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.DeviceKpi.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(devicekpi.FieldID) }), ). Exec(ctx)
func (*DeviceKpiUpsertOne) UpdateProductKey ¶
func (u *DeviceKpiUpsertOne) UpdateProductKey() *DeviceKpiUpsertOne
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*DeviceKpiUpsertOne) UpdateSort ¶
func (u *DeviceKpiUpsertOne) UpdateSort() *DeviceKpiUpsertOne
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DeviceKpiUpsertOne) UpdateStatus ¶
func (u *DeviceKpiUpsertOne) UpdateStatus() *DeviceKpiUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DeviceKpiUpsertOne) UpdateUpdatedAt ¶
func (u *DeviceKpiUpsertOne) UpdateUpdatedAt() *DeviceKpiUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*DeviceKpiUpsertOne) UpdateWeekKpi ¶
func (u *DeviceKpiUpsertOne) UpdateWeekKpi() *DeviceKpiUpsertOne
UpdateWeekKpi sets the "weekKpi" field to the value that was provided on create.
func (*DeviceKpiUpsertOne) UpdateX ¶
func (u *DeviceKpiUpsertOne) UpdateX() *DeviceKpiUpsertOne
UpdateX sets the "x" field to the value that was provided on create.
func (*DeviceKpiUpsertOne) UpdateY ¶
func (u *DeviceKpiUpsertOne) UpdateY() *DeviceKpiUpsertOne
UpdateY sets the "y" field to the value that was provided on create.
type DeviceOfflineTime ¶
type DeviceOfflineTime struct { // ID of the ent. ID uint64 `json:"id,omitempty"` // Create Time | 创建日期 CreatedAt time.Time `json:"created_at,omitempty"` // Update Time | 修改日期 UpdatedAt time.Time `json:"updated_at,omitempty"` // Status 1: normal 2: ban | 状态 1 正常 2 禁用 Status uint8 `json:"status,omitempty"` // Sort Number | 排序编号 Sort uint32 `json:"sort,omitempty"` // Iot Id | 设备ID IotID string `json:"iotID,omitempty"` // Device Name | 设备名称 DeviceName string `json:"deviceName,omitempty"` // Product Key | 产品Key ProductKey string `json:"productKey,omitempty"` // Time | 离线时间 Time string `json:"time,omitempty"` // contains filtered or unexported fields }
DeviceOfflineTime is the model entity for the DeviceOfflineTime schema.
func (*DeviceOfflineTime) ExecContext ¶
func (c *DeviceOfflineTime) 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 (*DeviceOfflineTime) QueryContext ¶
func (c *DeviceOfflineTime) 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 (*DeviceOfflineTime) String ¶
func (dot *DeviceOfflineTime) String() string
String implements the fmt.Stringer.
func (*DeviceOfflineTime) Unwrap ¶
func (dot *DeviceOfflineTime) Unwrap() *DeviceOfflineTime
Unwrap unwraps the DeviceOfflineTime 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 (*DeviceOfflineTime) Update ¶
func (dot *DeviceOfflineTime) Update() *DeviceOfflineTimeUpdateOne
Update returns a builder for updating this DeviceOfflineTime. Note that you need to call DeviceOfflineTime.Unwrap() before calling this method if this DeviceOfflineTime was returned from a transaction, and the transaction was committed or rolled back.
type DeviceOfflineTimeClient ¶
type DeviceOfflineTimeClient struct {
// contains filtered or unexported fields
}
DeviceOfflineTimeClient is a client for the DeviceOfflineTime schema.
func NewDeviceOfflineTimeClient ¶
func NewDeviceOfflineTimeClient(c config) *DeviceOfflineTimeClient
NewDeviceOfflineTimeClient returns a client for the DeviceOfflineTime from the given config.
func (*DeviceOfflineTimeClient) Create ¶
func (c *DeviceOfflineTimeClient) Create() *DeviceOfflineTimeCreate
Create returns a builder for creating a DeviceOfflineTime entity.
func (*DeviceOfflineTimeClient) CreateBulk ¶
func (c *DeviceOfflineTimeClient) CreateBulk(builders ...*DeviceOfflineTimeCreate) *DeviceOfflineTimeCreateBulk
CreateBulk returns a builder for creating a bulk of DeviceOfflineTime entities.
func (*DeviceOfflineTimeClient) Delete ¶
func (c *DeviceOfflineTimeClient) Delete() *DeviceOfflineTimeDelete
Delete returns a delete builder for DeviceOfflineTime.
func (*DeviceOfflineTimeClient) DeleteOne ¶
func (c *DeviceOfflineTimeClient) DeleteOne(dot *DeviceOfflineTime) *DeviceOfflineTimeDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*DeviceOfflineTimeClient) DeleteOneID ¶
func (c *DeviceOfflineTimeClient) DeleteOneID(id uint64) *DeviceOfflineTimeDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*DeviceOfflineTimeClient) ExecContext ¶
func (c *DeviceOfflineTimeClient) 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 (*DeviceOfflineTimeClient) Get ¶
func (c *DeviceOfflineTimeClient) Get(ctx context.Context, id uint64) (*DeviceOfflineTime, error)
Get returns a DeviceOfflineTime entity by its id.
func (*DeviceOfflineTimeClient) GetX ¶
func (c *DeviceOfflineTimeClient) GetX(ctx context.Context, id uint64) *DeviceOfflineTime
GetX is like Get, but panics if an error occurs.
func (*DeviceOfflineTimeClient) Hooks ¶
func (c *DeviceOfflineTimeClient) Hooks() []Hook
Hooks returns the client hooks.
func (*DeviceOfflineTimeClient) Intercept ¶
func (c *DeviceOfflineTimeClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `deviceofflinetime.Intercept(f(g(h())))`.
func (*DeviceOfflineTimeClient) Interceptors ¶
func (c *DeviceOfflineTimeClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*DeviceOfflineTimeClient) MapCreateBulk ¶
func (c *DeviceOfflineTimeClient) MapCreateBulk(slice any, setFunc func(*DeviceOfflineTimeCreate, int)) *DeviceOfflineTimeCreateBulk
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 (*DeviceOfflineTimeClient) Query ¶
func (c *DeviceOfflineTimeClient) Query() *DeviceOfflineTimeQuery
Query returns a query builder for DeviceOfflineTime.
func (*DeviceOfflineTimeClient) QueryContext ¶
func (c *DeviceOfflineTimeClient) 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 (*DeviceOfflineTimeClient) Update ¶
func (c *DeviceOfflineTimeClient) Update() *DeviceOfflineTimeUpdate
Update returns an update builder for DeviceOfflineTime.
func (*DeviceOfflineTimeClient) UpdateOne ¶
func (c *DeviceOfflineTimeClient) UpdateOne(dot *DeviceOfflineTime) *DeviceOfflineTimeUpdateOne
UpdateOne returns an update builder for the given entity.
func (*DeviceOfflineTimeClient) UpdateOneID ¶
func (c *DeviceOfflineTimeClient) UpdateOneID(id uint64) *DeviceOfflineTimeUpdateOne
UpdateOneID returns an update builder for the given id.
func (*DeviceOfflineTimeClient) Use ¶
func (c *DeviceOfflineTimeClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `deviceofflinetime.Hooks(f(g(h())))`.
type DeviceOfflineTimeCreate ¶
type DeviceOfflineTimeCreate struct { Table string // contains filtered or unexported fields }
DeviceOfflineTimeCreate is the builder for creating a DeviceOfflineTime entity.
func (*DeviceOfflineTimeCreate) Exec ¶
func (dotc *DeviceOfflineTimeCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceOfflineTimeCreate) ExecContext ¶
func (c *DeviceOfflineTimeCreate) 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 (*DeviceOfflineTimeCreate) ExecX ¶
func (dotc *DeviceOfflineTimeCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceOfflineTimeCreate) Mutation ¶
func (dotc *DeviceOfflineTimeCreate) Mutation() *DeviceOfflineTimeMutation
Mutation returns the DeviceOfflineTimeMutation object of the builder.
func (*DeviceOfflineTimeCreate) OnConflict ¶
func (dotc *DeviceOfflineTimeCreate) OnConflict(opts ...sql.ConflictOption) *DeviceOfflineTimeUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.DeviceOfflineTime.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.DeviceOfflineTimeUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*DeviceOfflineTimeCreate) OnConflictColumns ¶
func (dotc *DeviceOfflineTimeCreate) OnConflictColumns(columns ...string) *DeviceOfflineTimeUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.DeviceOfflineTime.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*DeviceOfflineTimeCreate) QueryContext ¶
func (c *DeviceOfflineTimeCreate) 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 (*DeviceOfflineTimeCreate) Save ¶
func (dotc *DeviceOfflineTimeCreate) Save(ctx context.Context) (*DeviceOfflineTime, error)
Save creates the DeviceOfflineTime in the database.
func (*DeviceOfflineTimeCreate) SaveX ¶
func (dotc *DeviceOfflineTimeCreate) SaveX(ctx context.Context) *DeviceOfflineTime
SaveX calls Save and panics if Save returns an error.
func (*DeviceOfflineTimeCreate) SetCreatedAt ¶
func (dotc *DeviceOfflineTimeCreate) SetCreatedAt(t time.Time) *DeviceOfflineTimeCreate
SetCreatedAt sets the "created_at" field.
func (*DeviceOfflineTimeCreate) SetDeviceName ¶
func (dotc *DeviceOfflineTimeCreate) SetDeviceName(s string) *DeviceOfflineTimeCreate
SetDeviceName sets the "deviceName" field.
func (*DeviceOfflineTimeCreate) SetID ¶
func (dotc *DeviceOfflineTimeCreate) SetID(u uint64) *DeviceOfflineTimeCreate
SetID sets the "id" field.
func (*DeviceOfflineTimeCreate) SetIotID ¶
func (dotc *DeviceOfflineTimeCreate) SetIotID(s string) *DeviceOfflineTimeCreate
SetIotID sets the "iotID" field.
func (*DeviceOfflineTimeCreate) SetNillableCreatedAt ¶
func (dotc *DeviceOfflineTimeCreate) SetNillableCreatedAt(t *time.Time) *DeviceOfflineTimeCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*DeviceOfflineTimeCreate) SetNillableSort ¶
func (dotc *DeviceOfflineTimeCreate) SetNillableSort(u *uint32) *DeviceOfflineTimeCreate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DeviceOfflineTimeCreate) SetNillableStatus ¶
func (dotc *DeviceOfflineTimeCreate) SetNillableStatus(u *uint8) *DeviceOfflineTimeCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DeviceOfflineTimeCreate) SetNillableTime ¶
func (dotc *DeviceOfflineTimeCreate) SetNillableTime(s *string) *DeviceOfflineTimeCreate
SetNillableTime sets the "time" field if the given value is not nil.
func (*DeviceOfflineTimeCreate) SetNillableUpdatedAt ¶
func (dotc *DeviceOfflineTimeCreate) SetNillableUpdatedAt(t *time.Time) *DeviceOfflineTimeCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*DeviceOfflineTimeCreate) SetNotNilDeviceName ¶
func (dot *DeviceOfflineTimeCreate) SetNotNilDeviceName(value *string) *DeviceOfflineTimeCreate
set field if value's pointer is not nil.
func (*DeviceOfflineTimeCreate) SetNotNilIotID ¶
func (dot *DeviceOfflineTimeCreate) SetNotNilIotID(value *string) *DeviceOfflineTimeCreate
set field if value's pointer is not nil.
func (*DeviceOfflineTimeCreate) SetNotNilProductKey ¶
func (dot *DeviceOfflineTimeCreate) SetNotNilProductKey(value *string) *DeviceOfflineTimeCreate
set field if value's pointer is not nil.
func (*DeviceOfflineTimeCreate) SetNotNilSort ¶
func (dot *DeviceOfflineTimeCreate) SetNotNilSort(value *uint32) *DeviceOfflineTimeCreate
set field if value's pointer is not nil.
func (*DeviceOfflineTimeCreate) SetNotNilStatus ¶
func (dot *DeviceOfflineTimeCreate) SetNotNilStatus(value *uint8) *DeviceOfflineTimeCreate
set field if value's pointer is not nil.
func (*DeviceOfflineTimeCreate) SetNotNilTime ¶
func (dot *DeviceOfflineTimeCreate) SetNotNilTime(value *string) *DeviceOfflineTimeCreate
set field if value's pointer is not nil.
func (*DeviceOfflineTimeCreate) SetNotNilUpdatedAt ¶
func (dot *DeviceOfflineTimeCreate) SetNotNilUpdatedAt(value *time.Time) *DeviceOfflineTimeCreate
set field if value's pointer is not nil.
func (*DeviceOfflineTimeCreate) SetProductKey ¶
func (dotc *DeviceOfflineTimeCreate) SetProductKey(s string) *DeviceOfflineTimeCreate
SetProductKey sets the "productKey" field.
func (*DeviceOfflineTimeCreate) SetSort ¶
func (dotc *DeviceOfflineTimeCreate) SetSort(u uint32) *DeviceOfflineTimeCreate
SetSort sets the "sort" field.
func (*DeviceOfflineTimeCreate) SetStatus ¶
func (dotc *DeviceOfflineTimeCreate) SetStatus(u uint8) *DeviceOfflineTimeCreate
SetStatus sets the "status" field.
func (*DeviceOfflineTimeCreate) SetTime ¶
func (dotc *DeviceOfflineTimeCreate) SetTime(s string) *DeviceOfflineTimeCreate
SetTime sets the "time" field.
func (*DeviceOfflineTimeCreate) SetUpdatedAt ¶
func (dotc *DeviceOfflineTimeCreate) SetUpdatedAt(t time.Time) *DeviceOfflineTimeCreate
SetUpdatedAt sets the "updated_at" field.
func (*DeviceOfflineTimeCreate) TableName ¶
func (dotc *DeviceOfflineTimeCreate) TableName(s string) *DeviceOfflineTimeCreate
type DeviceOfflineTimeCreateBulk ¶
type DeviceOfflineTimeCreateBulk struct {
// contains filtered or unexported fields
}
DeviceOfflineTimeCreateBulk is the builder for creating many DeviceOfflineTime entities in bulk.
func (*DeviceOfflineTimeCreateBulk) Exec ¶
func (dotcb *DeviceOfflineTimeCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceOfflineTimeCreateBulk) ExecContext ¶
func (c *DeviceOfflineTimeCreateBulk) 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 (*DeviceOfflineTimeCreateBulk) ExecX ¶
func (dotcb *DeviceOfflineTimeCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceOfflineTimeCreateBulk) OnConflict ¶
func (dotcb *DeviceOfflineTimeCreateBulk) OnConflict(opts ...sql.ConflictOption) *DeviceOfflineTimeUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.DeviceOfflineTime.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.DeviceOfflineTimeUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*DeviceOfflineTimeCreateBulk) OnConflictColumns ¶
func (dotcb *DeviceOfflineTimeCreateBulk) OnConflictColumns(columns ...string) *DeviceOfflineTimeUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.DeviceOfflineTime.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*DeviceOfflineTimeCreateBulk) QueryContext ¶
func (c *DeviceOfflineTimeCreateBulk) 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 (*DeviceOfflineTimeCreateBulk) Save ¶
func (dotcb *DeviceOfflineTimeCreateBulk) Save(ctx context.Context) ([]*DeviceOfflineTime, error)
Save creates the DeviceOfflineTime entities in the database.
func (*DeviceOfflineTimeCreateBulk) SaveX ¶
func (dotcb *DeviceOfflineTimeCreateBulk) SaveX(ctx context.Context) []*DeviceOfflineTime
SaveX is like Save, but panics if an error occurs.
type DeviceOfflineTimeDelete ¶
type DeviceOfflineTimeDelete struct {
// contains filtered or unexported fields
}
DeviceOfflineTimeDelete is the builder for deleting a DeviceOfflineTime entity.
func (*DeviceOfflineTimeDelete) Exec ¶
func (dotd *DeviceOfflineTimeDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*DeviceOfflineTimeDelete) ExecContext ¶
func (c *DeviceOfflineTimeDelete) 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 (*DeviceOfflineTimeDelete) ExecX ¶
func (dotd *DeviceOfflineTimeDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*DeviceOfflineTimeDelete) QueryContext ¶
func (c *DeviceOfflineTimeDelete) 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 (*DeviceOfflineTimeDelete) Where ¶
func (dotd *DeviceOfflineTimeDelete) Where(ps ...predicate.DeviceOfflineTime) *DeviceOfflineTimeDelete
Where appends a list predicates to the DeviceOfflineTimeDelete builder.
type DeviceOfflineTimeDeleteOne ¶
type DeviceOfflineTimeDeleteOne struct {
// contains filtered or unexported fields
}
DeviceOfflineTimeDeleteOne is the builder for deleting a single DeviceOfflineTime entity.
func (*DeviceOfflineTimeDeleteOne) Exec ¶
func (dotdo *DeviceOfflineTimeDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*DeviceOfflineTimeDeleteOne) ExecX ¶
func (dotdo *DeviceOfflineTimeDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceOfflineTimeDeleteOne) Where ¶
func (dotdo *DeviceOfflineTimeDeleteOne) Where(ps ...predicate.DeviceOfflineTime) *DeviceOfflineTimeDeleteOne
Where appends a list predicates to the DeviceOfflineTimeDelete builder.
type DeviceOfflineTimeGroupBy ¶
type DeviceOfflineTimeGroupBy struct {
// contains filtered or unexported fields
}
DeviceOfflineTimeGroupBy is the group-by builder for DeviceOfflineTime entities.
func (*DeviceOfflineTimeGroupBy) Aggregate ¶
func (dotgb *DeviceOfflineTimeGroupBy) Aggregate(fns ...AggregateFunc) *DeviceOfflineTimeGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*DeviceOfflineTimeGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DeviceOfflineTimeGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*DeviceOfflineTimeGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DeviceOfflineTimeGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*DeviceOfflineTimeGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DeviceOfflineTimeGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*DeviceOfflineTimeGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DeviceOfflineTimeGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*DeviceOfflineTimeGroupBy) Scan ¶
func (dotgb *DeviceOfflineTimeGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*DeviceOfflineTimeGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type DeviceOfflineTimeMutation ¶
type DeviceOfflineTimeMutation struct {
// contains filtered or unexported fields
}
DeviceOfflineTimeMutation represents an operation that mutates the DeviceOfflineTime nodes in the graph.
func (*DeviceOfflineTimeMutation) AddField ¶
func (m *DeviceOfflineTimeMutation) 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 (*DeviceOfflineTimeMutation) AddSort ¶
func (m *DeviceOfflineTimeMutation) AddSort(u int32)
AddSort adds u to the "sort" field.
func (*DeviceOfflineTimeMutation) AddStatus ¶
func (m *DeviceOfflineTimeMutation) AddStatus(u int8)
AddStatus adds u to the "status" field.
func (*DeviceOfflineTimeMutation) AddedEdges ¶
func (m *DeviceOfflineTimeMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*DeviceOfflineTimeMutation) AddedField ¶
func (m *DeviceOfflineTimeMutation) 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 (*DeviceOfflineTimeMutation) AddedFields ¶
func (m *DeviceOfflineTimeMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*DeviceOfflineTimeMutation) AddedIDs ¶
func (m *DeviceOfflineTimeMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*DeviceOfflineTimeMutation) AddedSort ¶
func (m *DeviceOfflineTimeMutation) AddedSort() (r int32, exists bool)
AddedSort returns the value that was added to the "sort" field in this mutation.
func (*DeviceOfflineTimeMutation) AddedStatus ¶
func (m *DeviceOfflineTimeMutation) AddedStatus() (r int8, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*DeviceOfflineTimeMutation) ClearEdge ¶
func (m *DeviceOfflineTimeMutation) 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 (*DeviceOfflineTimeMutation) ClearField ¶
func (m *DeviceOfflineTimeMutation) 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 (*DeviceOfflineTimeMutation) ClearStatus ¶
func (m *DeviceOfflineTimeMutation) ClearStatus()
ClearStatus clears the value of the "status" field.
func (*DeviceOfflineTimeMutation) ClearTime ¶
func (m *DeviceOfflineTimeMutation) ClearTime()
ClearTime clears the value of the "time" field.
func (*DeviceOfflineTimeMutation) ClearedEdges ¶
func (m *DeviceOfflineTimeMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*DeviceOfflineTimeMutation) ClearedFields ¶
func (m *DeviceOfflineTimeMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (DeviceOfflineTimeMutation) Client ¶
func (m DeviceOfflineTimeMutation) 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 (*DeviceOfflineTimeMutation) CreatedAt ¶
func (m *DeviceOfflineTimeMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*DeviceOfflineTimeMutation) DeviceName ¶
func (m *DeviceOfflineTimeMutation) DeviceName() (r string, exists bool)
DeviceName returns the value of the "deviceName" field in the mutation.
func (*DeviceOfflineTimeMutation) EdgeCleared ¶
func (m *DeviceOfflineTimeMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*DeviceOfflineTimeMutation) ExecContext ¶
func (c *DeviceOfflineTimeMutation) 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 (*DeviceOfflineTimeMutation) Field ¶
func (m *DeviceOfflineTimeMutation) 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 (*DeviceOfflineTimeMutation) FieldCleared ¶
func (m *DeviceOfflineTimeMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*DeviceOfflineTimeMutation) Fields ¶
func (m *DeviceOfflineTimeMutation) 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 (*DeviceOfflineTimeMutation) ID ¶
func (m *DeviceOfflineTimeMutation) ID() (id uint64, 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 (*DeviceOfflineTimeMutation) IDs ¶
func (m *DeviceOfflineTimeMutation) IDs(ctx context.Context) ([]uint64, 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 (*DeviceOfflineTimeMutation) IotID ¶
func (m *DeviceOfflineTimeMutation) IotID() (r string, exists bool)
IotID returns the value of the "iotID" field in the mutation.
func (*DeviceOfflineTimeMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the DeviceOfflineTime entity. If the DeviceOfflineTime 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 (*DeviceOfflineTimeMutation) OldDeviceName ¶
func (m *DeviceOfflineTimeMutation) OldDeviceName(ctx context.Context) (v string, err error)
OldDeviceName returns the old "deviceName" field's value of the DeviceOfflineTime entity. If the DeviceOfflineTime 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 (*DeviceOfflineTimeMutation) 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 (*DeviceOfflineTimeMutation) OldIotID ¶
func (m *DeviceOfflineTimeMutation) OldIotID(ctx context.Context) (v string, err error)
OldIotID returns the old "iotID" field's value of the DeviceOfflineTime entity. If the DeviceOfflineTime 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 (*DeviceOfflineTimeMutation) OldProductKey ¶
func (m *DeviceOfflineTimeMutation) OldProductKey(ctx context.Context) (v string, err error)
OldProductKey returns the old "productKey" field's value of the DeviceOfflineTime entity. If the DeviceOfflineTime 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 (*DeviceOfflineTimeMutation) OldSort ¶
func (m *DeviceOfflineTimeMutation) OldSort(ctx context.Context) (v uint32, err error)
OldSort returns the old "sort" field's value of the DeviceOfflineTime entity. If the DeviceOfflineTime 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 (*DeviceOfflineTimeMutation) OldStatus ¶
func (m *DeviceOfflineTimeMutation) OldStatus(ctx context.Context) (v uint8, err error)
OldStatus returns the old "status" field's value of the DeviceOfflineTime entity. If the DeviceOfflineTime 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 (*DeviceOfflineTimeMutation) OldTime ¶
func (m *DeviceOfflineTimeMutation) OldTime(ctx context.Context) (v string, err error)
OldTime returns the old "time" field's value of the DeviceOfflineTime entity. If the DeviceOfflineTime 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 (*DeviceOfflineTimeMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the DeviceOfflineTime entity. If the DeviceOfflineTime 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 (*DeviceOfflineTimeMutation) Op ¶
func (m *DeviceOfflineTimeMutation) Op() Op
Op returns the operation name.
func (*DeviceOfflineTimeMutation) ProductKey ¶
func (m *DeviceOfflineTimeMutation) ProductKey() (r string, exists bool)
ProductKey returns the value of the "productKey" field in the mutation.
func (*DeviceOfflineTimeMutation) QueryContext ¶
func (c *DeviceOfflineTimeMutation) 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 (*DeviceOfflineTimeMutation) RemovedEdges ¶
func (m *DeviceOfflineTimeMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*DeviceOfflineTimeMutation) RemovedIDs ¶
func (m *DeviceOfflineTimeMutation) 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 (*DeviceOfflineTimeMutation) ResetCreatedAt ¶
func (m *DeviceOfflineTimeMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*DeviceOfflineTimeMutation) ResetDeviceName ¶
func (m *DeviceOfflineTimeMutation) ResetDeviceName()
ResetDeviceName resets all changes to the "deviceName" field.
func (*DeviceOfflineTimeMutation) ResetEdge ¶
func (m *DeviceOfflineTimeMutation) 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 (*DeviceOfflineTimeMutation) ResetField ¶
func (m *DeviceOfflineTimeMutation) 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 (*DeviceOfflineTimeMutation) ResetIotID ¶
func (m *DeviceOfflineTimeMutation) ResetIotID()
ResetIotID resets all changes to the "iotID" field.
func (*DeviceOfflineTimeMutation) ResetProductKey ¶
func (m *DeviceOfflineTimeMutation) ResetProductKey()
ResetProductKey resets all changes to the "productKey" field.
func (*DeviceOfflineTimeMutation) ResetSort ¶
func (m *DeviceOfflineTimeMutation) ResetSort()
ResetSort resets all changes to the "sort" field.
func (*DeviceOfflineTimeMutation) ResetStatus ¶
func (m *DeviceOfflineTimeMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*DeviceOfflineTimeMutation) ResetTime ¶
func (m *DeviceOfflineTimeMutation) ResetTime()
ResetTime resets all changes to the "time" field.
func (*DeviceOfflineTimeMutation) ResetUpdatedAt ¶
func (m *DeviceOfflineTimeMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*DeviceOfflineTimeMutation) SetCreatedAt ¶
func (m *DeviceOfflineTimeMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*DeviceOfflineTimeMutation) SetDeviceName ¶
func (m *DeviceOfflineTimeMutation) SetDeviceName(s string)
SetDeviceName sets the "deviceName" field.
func (*DeviceOfflineTimeMutation) SetField ¶
func (m *DeviceOfflineTimeMutation) 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 (*DeviceOfflineTimeMutation) SetID ¶
func (m *DeviceOfflineTimeMutation) SetID(id uint64)
SetID sets the value of the id field. Note that this operation is only accepted on creation of DeviceOfflineTime entities.
func (*DeviceOfflineTimeMutation) SetIotID ¶
func (m *DeviceOfflineTimeMutation) SetIotID(s string)
SetIotID sets the "iotID" field.
func (*DeviceOfflineTimeMutation) SetOp ¶
func (m *DeviceOfflineTimeMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*DeviceOfflineTimeMutation) SetProductKey ¶
func (m *DeviceOfflineTimeMutation) SetProductKey(s string)
SetProductKey sets the "productKey" field.
func (*DeviceOfflineTimeMutation) SetSort ¶
func (m *DeviceOfflineTimeMutation) SetSort(u uint32)
SetSort sets the "sort" field.
func (*DeviceOfflineTimeMutation) SetStatus ¶
func (m *DeviceOfflineTimeMutation) SetStatus(u uint8)
SetStatus sets the "status" field.
func (*DeviceOfflineTimeMutation) SetTime ¶
func (m *DeviceOfflineTimeMutation) SetTime(s string)
SetTime sets the "time" field.
func (*DeviceOfflineTimeMutation) SetUpdatedAt ¶
func (m *DeviceOfflineTimeMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*DeviceOfflineTimeMutation) Sort ¶
func (m *DeviceOfflineTimeMutation) Sort() (r uint32, exists bool)
Sort returns the value of the "sort" field in the mutation.
func (*DeviceOfflineTimeMutation) Status ¶
func (m *DeviceOfflineTimeMutation) Status() (r uint8, exists bool)
Status returns the value of the "status" field in the mutation.
func (*DeviceOfflineTimeMutation) StatusCleared ¶
func (m *DeviceOfflineTimeMutation) StatusCleared() bool
StatusCleared returns if the "status" field was cleared in this mutation.
func (*DeviceOfflineTimeMutation) Time ¶
func (m *DeviceOfflineTimeMutation) Time() (r string, exists bool)
Time returns the value of the "time" field in the mutation.
func (*DeviceOfflineTimeMutation) TimeCleared ¶
func (m *DeviceOfflineTimeMutation) TimeCleared() bool
TimeCleared returns if the "time" field was cleared in this mutation.
func (DeviceOfflineTimeMutation) Tx ¶
func (m DeviceOfflineTimeMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*DeviceOfflineTimeMutation) Type ¶
func (m *DeviceOfflineTimeMutation) Type() string
Type returns the node type of this mutation (DeviceOfflineTime).
func (*DeviceOfflineTimeMutation) UpdatedAt ¶
func (m *DeviceOfflineTimeMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*DeviceOfflineTimeMutation) Where ¶
func (m *DeviceOfflineTimeMutation) Where(ps ...predicate.DeviceOfflineTime)
Where appends a list predicates to the DeviceOfflineTimeMutation builder.
func (*DeviceOfflineTimeMutation) WhereP ¶
func (m *DeviceOfflineTimeMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the DeviceOfflineTimeMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type DeviceOfflineTimePageList ¶
type DeviceOfflineTimePageList struct { List []*DeviceOfflineTime `json:"list"` PageDetails *PageDetails `json:"pageDetails"` }
DeviceOfflineTimePageList is DeviceOfflineTime PageList result.
type DeviceOfflineTimePager ¶
type DeviceOfflineTimePager struct { Order deviceofflinetime.OrderOption Filter func(*DeviceOfflineTimeQuery) (*DeviceOfflineTimeQuery, error) }
func (*DeviceOfflineTimePager) ApplyFilter ¶
func (p *DeviceOfflineTimePager) ApplyFilter(query *DeviceOfflineTimeQuery) (*DeviceOfflineTimeQuery, error)
type DeviceOfflineTimePaginateOption ¶
type DeviceOfflineTimePaginateOption func(*DeviceOfflineTimePager)
DeviceOfflineTimePaginateOption enables pagination customization.
type DeviceOfflineTimeQuery ¶
type DeviceOfflineTimeQuery struct {
// contains filtered or unexported fields
}
DeviceOfflineTimeQuery is the builder for querying DeviceOfflineTime entities.
func (*DeviceOfflineTimeQuery) Aggregate ¶
func (dotq *DeviceOfflineTimeQuery) Aggregate(fns ...AggregateFunc) *DeviceOfflineTimeSelect
Aggregate returns a DeviceOfflineTimeSelect configured with the given aggregations.
func (*DeviceOfflineTimeQuery) All ¶
func (dotq *DeviceOfflineTimeQuery) All(ctx context.Context) ([]*DeviceOfflineTime, error)
All executes the query and returns a list of DeviceOfflineTimes.
func (*DeviceOfflineTimeQuery) AllX ¶
func (dotq *DeviceOfflineTimeQuery) AllX(ctx context.Context) []*DeviceOfflineTime
AllX is like All, but panics if an error occurs.
func (*DeviceOfflineTimeQuery) Clone ¶
func (dotq *DeviceOfflineTimeQuery) Clone() *DeviceOfflineTimeQuery
Clone returns a duplicate of the DeviceOfflineTimeQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*DeviceOfflineTimeQuery) Count ¶
func (dotq *DeviceOfflineTimeQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*DeviceOfflineTimeQuery) CountX ¶
func (dotq *DeviceOfflineTimeQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*DeviceOfflineTimeQuery) ExecContext ¶
func (c *DeviceOfflineTimeQuery) 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 (*DeviceOfflineTimeQuery) Exist ¶
func (dotq *DeviceOfflineTimeQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*DeviceOfflineTimeQuery) ExistX ¶
func (dotq *DeviceOfflineTimeQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*DeviceOfflineTimeQuery) First ¶
func (dotq *DeviceOfflineTimeQuery) First(ctx context.Context) (*DeviceOfflineTime, error)
First returns the first DeviceOfflineTime entity from the query. Returns a *NotFoundError when no DeviceOfflineTime was found.
func (*DeviceOfflineTimeQuery) FirstID ¶
func (dotq *DeviceOfflineTimeQuery) FirstID(ctx context.Context) (id uint64, err error)
FirstID returns the first DeviceOfflineTime ID from the query. Returns a *NotFoundError when no DeviceOfflineTime ID was found.
func (*DeviceOfflineTimeQuery) FirstIDX ¶
func (dotq *DeviceOfflineTimeQuery) FirstIDX(ctx context.Context) uint64
FirstIDX is like FirstID, but panics if an error occurs.
func (*DeviceOfflineTimeQuery) FirstX ¶
func (dotq *DeviceOfflineTimeQuery) FirstX(ctx context.Context) *DeviceOfflineTime
FirstX is like First, but panics if an error occurs.
func (*DeviceOfflineTimeQuery) GroupBy ¶
func (dotq *DeviceOfflineTimeQuery) GroupBy(field string, fields ...string) *DeviceOfflineTimeGroupBy
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.DeviceOfflineTime.Query(). GroupBy(deviceofflinetime.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*DeviceOfflineTimeQuery) IDs ¶
func (dotq *DeviceOfflineTimeQuery) IDs(ctx context.Context) (ids []uint64, err error)
IDs executes the query and returns a list of DeviceOfflineTime IDs.
func (*DeviceOfflineTimeQuery) IDsX ¶
func (dotq *DeviceOfflineTimeQuery) IDsX(ctx context.Context) []uint64
IDsX is like IDs, but panics if an error occurs.
func (*DeviceOfflineTimeQuery) Limit ¶
func (dotq *DeviceOfflineTimeQuery) Limit(limit int) *DeviceOfflineTimeQuery
Limit the number of records to be returned by this query.
func (*DeviceOfflineTimeQuery) Modify ¶
func (dotq *DeviceOfflineTimeQuery) Modify(modifiers ...func(s *sql.Selector)) *DeviceOfflineTimeSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*DeviceOfflineTimeQuery) Offset ¶
func (dotq *DeviceOfflineTimeQuery) Offset(offset int) *DeviceOfflineTimeQuery
Offset to start from.
func (*DeviceOfflineTimeQuery) Only ¶
func (dotq *DeviceOfflineTimeQuery) Only(ctx context.Context) (*DeviceOfflineTime, error)
Only returns a single DeviceOfflineTime entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one DeviceOfflineTime entity is found. Returns a *NotFoundError when no DeviceOfflineTime entities are found.
func (*DeviceOfflineTimeQuery) OnlyID ¶
func (dotq *DeviceOfflineTimeQuery) OnlyID(ctx context.Context) (id uint64, err error)
OnlyID is like Only, but returns the only DeviceOfflineTime ID in the query. Returns a *NotSingularError when more than one DeviceOfflineTime ID is found. Returns a *NotFoundError when no entities are found.
func (*DeviceOfflineTimeQuery) OnlyIDX ¶
func (dotq *DeviceOfflineTimeQuery) OnlyIDX(ctx context.Context) uint64
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*DeviceOfflineTimeQuery) OnlyX ¶
func (dotq *DeviceOfflineTimeQuery) OnlyX(ctx context.Context) *DeviceOfflineTime
OnlyX is like Only, but panics if an error occurs.
func (*DeviceOfflineTimeQuery) Order ¶
func (dotq *DeviceOfflineTimeQuery) Order(o ...deviceofflinetime.OrderOption) *DeviceOfflineTimeQuery
Order specifies how the records should be ordered.
func (*DeviceOfflineTimeQuery) Page ¶
func (dot *DeviceOfflineTimeQuery) Page( ctx context.Context, pageNum uint64, pageSize uint64, opts ...DeviceOfflineTimePaginateOption, ) (*DeviceOfflineTimePageList, error)
func (*DeviceOfflineTimeQuery) QueryContext ¶
func (c *DeviceOfflineTimeQuery) 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 (*DeviceOfflineTimeQuery) Select ¶
func (dotq *DeviceOfflineTimeQuery) Select(fields ...string) *DeviceOfflineTimeSelect
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.DeviceOfflineTime.Query(). Select(deviceofflinetime.FieldCreatedAt). Scan(ctx, &v)
func (*DeviceOfflineTimeQuery) Unique ¶
func (dotq *DeviceOfflineTimeQuery) Unique(unique bool) *DeviceOfflineTimeQuery
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 (*DeviceOfflineTimeQuery) Where ¶
func (dotq *DeviceOfflineTimeQuery) Where(ps ...predicate.DeviceOfflineTime) *DeviceOfflineTimeQuery
Where adds a new predicate for the DeviceOfflineTimeQuery builder.
type DeviceOfflineTimeSelect ¶
type DeviceOfflineTimeSelect struct { *DeviceOfflineTimeQuery // contains filtered or unexported fields }
DeviceOfflineTimeSelect is the builder for selecting fields of DeviceOfflineTime entities.
func (*DeviceOfflineTimeSelect) Aggregate ¶
func (dots *DeviceOfflineTimeSelect) Aggregate(fns ...AggregateFunc) *DeviceOfflineTimeSelect
Aggregate adds the given aggregation functions to the selector query.
func (*DeviceOfflineTimeSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DeviceOfflineTimeSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (DeviceOfflineTimeSelect) ExecContext ¶
func (c DeviceOfflineTimeSelect) 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 (*DeviceOfflineTimeSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DeviceOfflineTimeSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DeviceOfflineTimeSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*DeviceOfflineTimeSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DeviceOfflineTimeSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*DeviceOfflineTimeSelect) Modify ¶
func (dots *DeviceOfflineTimeSelect) Modify(modifiers ...func(s *sql.Selector)) *DeviceOfflineTimeSelect
Modify adds a query modifier for attaching custom logic to queries.
func (DeviceOfflineTimeSelect) QueryContext ¶
func (c DeviceOfflineTimeSelect) 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 (*DeviceOfflineTimeSelect) Scan ¶
func (dots *DeviceOfflineTimeSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*DeviceOfflineTimeSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type DeviceOfflineTimeUpdate ¶
type DeviceOfflineTimeUpdate struct {
// contains filtered or unexported fields
}
DeviceOfflineTimeUpdate is the builder for updating DeviceOfflineTime entities.
func (*DeviceOfflineTimeUpdate) AddSort ¶
func (dotu *DeviceOfflineTimeUpdate) AddSort(u int32) *DeviceOfflineTimeUpdate
AddSort adds u to the "sort" field.
func (*DeviceOfflineTimeUpdate) AddStatus ¶
func (dotu *DeviceOfflineTimeUpdate) AddStatus(u int8) *DeviceOfflineTimeUpdate
AddStatus adds u to the "status" field.
func (*DeviceOfflineTimeUpdate) ClearStatus ¶
func (dotu *DeviceOfflineTimeUpdate) ClearStatus() *DeviceOfflineTimeUpdate
ClearStatus clears the value of the "status" field.
func (*DeviceOfflineTimeUpdate) ClearTime ¶
func (dotu *DeviceOfflineTimeUpdate) ClearTime() *DeviceOfflineTimeUpdate
ClearTime clears the value of the "time" field.
func (*DeviceOfflineTimeUpdate) Exec ¶
func (dotu *DeviceOfflineTimeUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceOfflineTimeUpdate) ExecContext ¶
func (c *DeviceOfflineTimeUpdate) 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 (*DeviceOfflineTimeUpdate) ExecX ¶
func (dotu *DeviceOfflineTimeUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceOfflineTimeUpdate) Modify ¶
func (dotu *DeviceOfflineTimeUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceOfflineTimeUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*DeviceOfflineTimeUpdate) Mutation ¶
func (dotu *DeviceOfflineTimeUpdate) Mutation() *DeviceOfflineTimeMutation
Mutation returns the DeviceOfflineTimeMutation object of the builder.
func (*DeviceOfflineTimeUpdate) QueryContext ¶
func (c *DeviceOfflineTimeUpdate) 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 (*DeviceOfflineTimeUpdate) Save ¶
func (dotu *DeviceOfflineTimeUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*DeviceOfflineTimeUpdate) SaveX ¶
func (dotu *DeviceOfflineTimeUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*DeviceOfflineTimeUpdate) SetDeviceName ¶
func (dotu *DeviceOfflineTimeUpdate) SetDeviceName(s string) *DeviceOfflineTimeUpdate
SetDeviceName sets the "deviceName" field.
func (*DeviceOfflineTimeUpdate) SetIotID ¶
func (dotu *DeviceOfflineTimeUpdate) SetIotID(s string) *DeviceOfflineTimeUpdate
SetIotID sets the "iotID" field.
func (*DeviceOfflineTimeUpdate) SetNillableDeviceName ¶
func (dotu *DeviceOfflineTimeUpdate) SetNillableDeviceName(s *string) *DeviceOfflineTimeUpdate
SetNillableDeviceName sets the "deviceName" field if the given value is not nil.
func (*DeviceOfflineTimeUpdate) SetNillableIotID ¶
func (dotu *DeviceOfflineTimeUpdate) SetNillableIotID(s *string) *DeviceOfflineTimeUpdate
SetNillableIotID sets the "iotID" field if the given value is not nil.
func (*DeviceOfflineTimeUpdate) SetNillableProductKey ¶
func (dotu *DeviceOfflineTimeUpdate) SetNillableProductKey(s *string) *DeviceOfflineTimeUpdate
SetNillableProductKey sets the "productKey" field if the given value is not nil.
func (*DeviceOfflineTimeUpdate) SetNillableSort ¶
func (dotu *DeviceOfflineTimeUpdate) SetNillableSort(u *uint32) *DeviceOfflineTimeUpdate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DeviceOfflineTimeUpdate) SetNillableStatus ¶
func (dotu *DeviceOfflineTimeUpdate) SetNillableStatus(u *uint8) *DeviceOfflineTimeUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DeviceOfflineTimeUpdate) SetNillableTime ¶
func (dotu *DeviceOfflineTimeUpdate) SetNillableTime(s *string) *DeviceOfflineTimeUpdate
SetNillableTime sets the "time" field if the given value is not nil.
func (*DeviceOfflineTimeUpdate) SetNotNilDeviceName ¶
func (dot *DeviceOfflineTimeUpdate) SetNotNilDeviceName(value *string) *DeviceOfflineTimeUpdate
set field if value's pointer is not nil.
func (*DeviceOfflineTimeUpdate) SetNotNilIotID ¶
func (dot *DeviceOfflineTimeUpdate) SetNotNilIotID(value *string) *DeviceOfflineTimeUpdate
set field if value's pointer is not nil.
func (*DeviceOfflineTimeUpdate) SetNotNilProductKey ¶
func (dot *DeviceOfflineTimeUpdate) SetNotNilProductKey(value *string) *DeviceOfflineTimeUpdate
set field if value's pointer is not nil.
func (*DeviceOfflineTimeUpdate) SetNotNilSort ¶
func (dot *DeviceOfflineTimeUpdate) SetNotNilSort(value *uint32) *DeviceOfflineTimeUpdate
set field if value's pointer is not nil.
func (*DeviceOfflineTimeUpdate) SetNotNilStatus ¶
func (dot *DeviceOfflineTimeUpdate) SetNotNilStatus(value *uint8) *DeviceOfflineTimeUpdate
set field if value's pointer is not nil.
func (*DeviceOfflineTimeUpdate) SetNotNilTime ¶
func (dot *DeviceOfflineTimeUpdate) SetNotNilTime(value *string) *DeviceOfflineTimeUpdate
set field if value's pointer is not nil.
func (*DeviceOfflineTimeUpdate) SetNotNilUpdatedAt ¶
func (dot *DeviceOfflineTimeUpdate) SetNotNilUpdatedAt(value *time.Time) *DeviceOfflineTimeUpdate
set field if value's pointer is not nil.
func (*DeviceOfflineTimeUpdate) SetProductKey ¶
func (dotu *DeviceOfflineTimeUpdate) SetProductKey(s string) *DeviceOfflineTimeUpdate
SetProductKey sets the "productKey" field.
func (*DeviceOfflineTimeUpdate) SetSort ¶
func (dotu *DeviceOfflineTimeUpdate) SetSort(u uint32) *DeviceOfflineTimeUpdate
SetSort sets the "sort" field.
func (*DeviceOfflineTimeUpdate) SetStatus ¶
func (dotu *DeviceOfflineTimeUpdate) SetStatus(u uint8) *DeviceOfflineTimeUpdate
SetStatus sets the "status" field.
func (*DeviceOfflineTimeUpdate) SetTime ¶
func (dotu *DeviceOfflineTimeUpdate) SetTime(s string) *DeviceOfflineTimeUpdate
SetTime sets the "time" field.
func (*DeviceOfflineTimeUpdate) SetUpdatedAt ¶
func (dotu *DeviceOfflineTimeUpdate) SetUpdatedAt(t time.Time) *DeviceOfflineTimeUpdate
SetUpdatedAt sets the "updated_at" field.
func (*DeviceOfflineTimeUpdate) Where ¶
func (dotu *DeviceOfflineTimeUpdate) Where(ps ...predicate.DeviceOfflineTime) *DeviceOfflineTimeUpdate
Where appends a list predicates to the DeviceOfflineTimeUpdate builder.
type DeviceOfflineTimeUpdateOne ¶
type DeviceOfflineTimeUpdateOne struct {
// contains filtered or unexported fields
}
DeviceOfflineTimeUpdateOne is the builder for updating a single DeviceOfflineTime entity.
func (*DeviceOfflineTimeUpdateOne) AddSort ¶
func (dotuo *DeviceOfflineTimeUpdateOne) AddSort(u int32) *DeviceOfflineTimeUpdateOne
AddSort adds u to the "sort" field.
func (*DeviceOfflineTimeUpdateOne) AddStatus ¶
func (dotuo *DeviceOfflineTimeUpdateOne) AddStatus(u int8) *DeviceOfflineTimeUpdateOne
AddStatus adds u to the "status" field.
func (*DeviceOfflineTimeUpdateOne) ClearStatus ¶
func (dotuo *DeviceOfflineTimeUpdateOne) ClearStatus() *DeviceOfflineTimeUpdateOne
ClearStatus clears the value of the "status" field.
func (*DeviceOfflineTimeUpdateOne) ClearTime ¶
func (dotuo *DeviceOfflineTimeUpdateOne) ClearTime() *DeviceOfflineTimeUpdateOne
ClearTime clears the value of the "time" field.
func (*DeviceOfflineTimeUpdateOne) Exec ¶
func (dotuo *DeviceOfflineTimeUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*DeviceOfflineTimeUpdateOne) ExecContext ¶
func (c *DeviceOfflineTimeUpdateOne) 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 (*DeviceOfflineTimeUpdateOne) ExecX ¶
func (dotuo *DeviceOfflineTimeUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceOfflineTimeUpdateOne) Modify ¶
func (dotuo *DeviceOfflineTimeUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceOfflineTimeUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*DeviceOfflineTimeUpdateOne) Mutation ¶
func (dotuo *DeviceOfflineTimeUpdateOne) Mutation() *DeviceOfflineTimeMutation
Mutation returns the DeviceOfflineTimeMutation object of the builder.
func (*DeviceOfflineTimeUpdateOne) QueryContext ¶
func (c *DeviceOfflineTimeUpdateOne) 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 (*DeviceOfflineTimeUpdateOne) Save ¶
func (dotuo *DeviceOfflineTimeUpdateOne) Save(ctx context.Context) (*DeviceOfflineTime, error)
Save executes the query and returns the updated DeviceOfflineTime entity.
func (*DeviceOfflineTimeUpdateOne) SaveX ¶
func (dotuo *DeviceOfflineTimeUpdateOne) SaveX(ctx context.Context) *DeviceOfflineTime
SaveX is like Save, but panics if an error occurs.
func (*DeviceOfflineTimeUpdateOne) Select ¶
func (dotuo *DeviceOfflineTimeUpdateOne) Select(field string, fields ...string) *DeviceOfflineTimeUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*DeviceOfflineTimeUpdateOne) SetDeviceName ¶
func (dotuo *DeviceOfflineTimeUpdateOne) SetDeviceName(s string) *DeviceOfflineTimeUpdateOne
SetDeviceName sets the "deviceName" field.
func (*DeviceOfflineTimeUpdateOne) SetIotID ¶
func (dotuo *DeviceOfflineTimeUpdateOne) SetIotID(s string) *DeviceOfflineTimeUpdateOne
SetIotID sets the "iotID" field.
func (*DeviceOfflineTimeUpdateOne) SetNillableDeviceName ¶
func (dotuo *DeviceOfflineTimeUpdateOne) SetNillableDeviceName(s *string) *DeviceOfflineTimeUpdateOne
SetNillableDeviceName sets the "deviceName" field if the given value is not nil.
func (*DeviceOfflineTimeUpdateOne) SetNillableIotID ¶
func (dotuo *DeviceOfflineTimeUpdateOne) SetNillableIotID(s *string) *DeviceOfflineTimeUpdateOne
SetNillableIotID sets the "iotID" field if the given value is not nil.
func (*DeviceOfflineTimeUpdateOne) SetNillableProductKey ¶
func (dotuo *DeviceOfflineTimeUpdateOne) SetNillableProductKey(s *string) *DeviceOfflineTimeUpdateOne
SetNillableProductKey sets the "productKey" field if the given value is not nil.
func (*DeviceOfflineTimeUpdateOne) SetNillableSort ¶
func (dotuo *DeviceOfflineTimeUpdateOne) SetNillableSort(u *uint32) *DeviceOfflineTimeUpdateOne
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DeviceOfflineTimeUpdateOne) SetNillableStatus ¶
func (dotuo *DeviceOfflineTimeUpdateOne) SetNillableStatus(u *uint8) *DeviceOfflineTimeUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DeviceOfflineTimeUpdateOne) SetNillableTime ¶
func (dotuo *DeviceOfflineTimeUpdateOne) SetNillableTime(s *string) *DeviceOfflineTimeUpdateOne
SetNillableTime sets the "time" field if the given value is not nil.
func (*DeviceOfflineTimeUpdateOne) SetNotNilDeviceName ¶
func (dot *DeviceOfflineTimeUpdateOne) SetNotNilDeviceName(value *string) *DeviceOfflineTimeUpdateOne
set field if value's pointer is not nil.
func (*DeviceOfflineTimeUpdateOne) SetNotNilIotID ¶
func (dot *DeviceOfflineTimeUpdateOne) SetNotNilIotID(value *string) *DeviceOfflineTimeUpdateOne
set field if value's pointer is not nil.
func (*DeviceOfflineTimeUpdateOne) SetNotNilProductKey ¶
func (dot *DeviceOfflineTimeUpdateOne) SetNotNilProductKey(value *string) *DeviceOfflineTimeUpdateOne
set field if value's pointer is not nil.
func (*DeviceOfflineTimeUpdateOne) SetNotNilSort ¶
func (dot *DeviceOfflineTimeUpdateOne) SetNotNilSort(value *uint32) *DeviceOfflineTimeUpdateOne
set field if value's pointer is not nil.
func (*DeviceOfflineTimeUpdateOne) SetNotNilStatus ¶
func (dot *DeviceOfflineTimeUpdateOne) SetNotNilStatus(value *uint8) *DeviceOfflineTimeUpdateOne
set field if value's pointer is not nil.
func (*DeviceOfflineTimeUpdateOne) SetNotNilTime ¶
func (dot *DeviceOfflineTimeUpdateOne) SetNotNilTime(value *string) *DeviceOfflineTimeUpdateOne
set field if value's pointer is not nil.
func (*DeviceOfflineTimeUpdateOne) SetNotNilUpdatedAt ¶
func (dot *DeviceOfflineTimeUpdateOne) SetNotNilUpdatedAt(value *time.Time) *DeviceOfflineTimeUpdateOne
set field if value's pointer is not nil.
func (*DeviceOfflineTimeUpdateOne) SetProductKey ¶
func (dotuo *DeviceOfflineTimeUpdateOne) SetProductKey(s string) *DeviceOfflineTimeUpdateOne
SetProductKey sets the "productKey" field.
func (*DeviceOfflineTimeUpdateOne) SetSort ¶
func (dotuo *DeviceOfflineTimeUpdateOne) SetSort(u uint32) *DeviceOfflineTimeUpdateOne
SetSort sets the "sort" field.
func (*DeviceOfflineTimeUpdateOne) SetStatus ¶
func (dotuo *DeviceOfflineTimeUpdateOne) SetStatus(u uint8) *DeviceOfflineTimeUpdateOne
SetStatus sets the "status" field.
func (*DeviceOfflineTimeUpdateOne) SetTime ¶
func (dotuo *DeviceOfflineTimeUpdateOne) SetTime(s string) *DeviceOfflineTimeUpdateOne
SetTime sets the "time" field.
func (*DeviceOfflineTimeUpdateOne) SetUpdatedAt ¶
func (dotuo *DeviceOfflineTimeUpdateOne) SetUpdatedAt(t time.Time) *DeviceOfflineTimeUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*DeviceOfflineTimeUpdateOne) Where ¶
func (dotuo *DeviceOfflineTimeUpdateOne) Where(ps ...predicate.DeviceOfflineTime) *DeviceOfflineTimeUpdateOne
Where appends a list predicates to the DeviceOfflineTimeUpdate builder.
type DeviceOfflineTimeUpsert ¶
DeviceOfflineTimeUpsert is the "OnConflict" setter.
func (*DeviceOfflineTimeUpsert) AddSort ¶
func (u *DeviceOfflineTimeUpsert) AddSort(v uint32) *DeviceOfflineTimeUpsert
AddSort adds v to the "sort" field.
func (*DeviceOfflineTimeUpsert) AddStatus ¶
func (u *DeviceOfflineTimeUpsert) AddStatus(v uint8) *DeviceOfflineTimeUpsert
AddStatus adds v to the "status" field.
func (*DeviceOfflineTimeUpsert) ClearStatus ¶
func (u *DeviceOfflineTimeUpsert) ClearStatus() *DeviceOfflineTimeUpsert
ClearStatus clears the value of the "status" field.
func (*DeviceOfflineTimeUpsert) ClearTime ¶
func (u *DeviceOfflineTimeUpsert) ClearTime() *DeviceOfflineTimeUpsert
ClearTime clears the value of the "time" field.
func (*DeviceOfflineTimeUpsert) SetDeviceName ¶
func (u *DeviceOfflineTimeUpsert) SetDeviceName(v string) *DeviceOfflineTimeUpsert
SetDeviceName sets the "deviceName" field.
func (*DeviceOfflineTimeUpsert) SetIotID ¶
func (u *DeviceOfflineTimeUpsert) SetIotID(v string) *DeviceOfflineTimeUpsert
SetIotID sets the "iotID" field.
func (*DeviceOfflineTimeUpsert) SetProductKey ¶
func (u *DeviceOfflineTimeUpsert) SetProductKey(v string) *DeviceOfflineTimeUpsert
SetProductKey sets the "productKey" field.
func (*DeviceOfflineTimeUpsert) SetSort ¶
func (u *DeviceOfflineTimeUpsert) SetSort(v uint32) *DeviceOfflineTimeUpsert
SetSort sets the "sort" field.
func (*DeviceOfflineTimeUpsert) SetStatus ¶
func (u *DeviceOfflineTimeUpsert) SetStatus(v uint8) *DeviceOfflineTimeUpsert
SetStatus sets the "status" field.
func (*DeviceOfflineTimeUpsert) SetTime ¶
func (u *DeviceOfflineTimeUpsert) SetTime(v string) *DeviceOfflineTimeUpsert
SetTime sets the "time" field.
func (*DeviceOfflineTimeUpsert) SetUpdatedAt ¶
func (u *DeviceOfflineTimeUpsert) SetUpdatedAt(v time.Time) *DeviceOfflineTimeUpsert
SetUpdatedAt sets the "updated_at" field.
func (*DeviceOfflineTimeUpsert) UpdateDeviceName ¶
func (u *DeviceOfflineTimeUpsert) UpdateDeviceName() *DeviceOfflineTimeUpsert
UpdateDeviceName sets the "deviceName" field to the value that was provided on create.
func (*DeviceOfflineTimeUpsert) UpdateIotID ¶
func (u *DeviceOfflineTimeUpsert) UpdateIotID() *DeviceOfflineTimeUpsert
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DeviceOfflineTimeUpsert) UpdateProductKey ¶
func (u *DeviceOfflineTimeUpsert) UpdateProductKey() *DeviceOfflineTimeUpsert
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*DeviceOfflineTimeUpsert) UpdateSort ¶
func (u *DeviceOfflineTimeUpsert) UpdateSort() *DeviceOfflineTimeUpsert
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DeviceOfflineTimeUpsert) UpdateStatus ¶
func (u *DeviceOfflineTimeUpsert) UpdateStatus() *DeviceOfflineTimeUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DeviceOfflineTimeUpsert) UpdateTime ¶
func (u *DeviceOfflineTimeUpsert) UpdateTime() *DeviceOfflineTimeUpsert
UpdateTime sets the "time" field to the value that was provided on create.
func (*DeviceOfflineTimeUpsert) UpdateUpdatedAt ¶
func (u *DeviceOfflineTimeUpsert) UpdateUpdatedAt() *DeviceOfflineTimeUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type DeviceOfflineTimeUpsertBulk ¶
type DeviceOfflineTimeUpsertBulk struct {
// contains filtered or unexported fields
}
DeviceOfflineTimeUpsertBulk is the builder for "upsert"-ing a bulk of DeviceOfflineTime nodes.
func (*DeviceOfflineTimeUpsertBulk) AddSort ¶
func (u *DeviceOfflineTimeUpsertBulk) AddSort(v uint32) *DeviceOfflineTimeUpsertBulk
AddSort adds v to the "sort" field.
func (*DeviceOfflineTimeUpsertBulk) AddStatus ¶
func (u *DeviceOfflineTimeUpsertBulk) AddStatus(v uint8) *DeviceOfflineTimeUpsertBulk
AddStatus adds v to the "status" field.
func (*DeviceOfflineTimeUpsertBulk) ClearStatus ¶
func (u *DeviceOfflineTimeUpsertBulk) ClearStatus() *DeviceOfflineTimeUpsertBulk
ClearStatus clears the value of the "status" field.
func (*DeviceOfflineTimeUpsertBulk) ClearTime ¶
func (u *DeviceOfflineTimeUpsertBulk) ClearTime() *DeviceOfflineTimeUpsertBulk
ClearTime clears the value of the "time" field.
func (*DeviceOfflineTimeUpsertBulk) DoNothing ¶
func (u *DeviceOfflineTimeUpsertBulk) DoNothing() *DeviceOfflineTimeUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*DeviceOfflineTimeUpsertBulk) Exec ¶
func (u *DeviceOfflineTimeUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceOfflineTimeUpsertBulk) ExecX ¶
func (u *DeviceOfflineTimeUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceOfflineTimeUpsertBulk) Ignore ¶
func (u *DeviceOfflineTimeUpsertBulk) Ignore() *DeviceOfflineTimeUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.DeviceOfflineTime.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*DeviceOfflineTimeUpsertBulk) SetDeviceName ¶
func (u *DeviceOfflineTimeUpsertBulk) SetDeviceName(v string) *DeviceOfflineTimeUpsertBulk
SetDeviceName sets the "deviceName" field.
func (*DeviceOfflineTimeUpsertBulk) SetIotID ¶
func (u *DeviceOfflineTimeUpsertBulk) SetIotID(v string) *DeviceOfflineTimeUpsertBulk
SetIotID sets the "iotID" field.
func (*DeviceOfflineTimeUpsertBulk) SetProductKey ¶
func (u *DeviceOfflineTimeUpsertBulk) SetProductKey(v string) *DeviceOfflineTimeUpsertBulk
SetProductKey sets the "productKey" field.
func (*DeviceOfflineTimeUpsertBulk) SetSort ¶
func (u *DeviceOfflineTimeUpsertBulk) SetSort(v uint32) *DeviceOfflineTimeUpsertBulk
SetSort sets the "sort" field.
func (*DeviceOfflineTimeUpsertBulk) SetStatus ¶
func (u *DeviceOfflineTimeUpsertBulk) SetStatus(v uint8) *DeviceOfflineTimeUpsertBulk
SetStatus sets the "status" field.
func (*DeviceOfflineTimeUpsertBulk) SetTime ¶
func (u *DeviceOfflineTimeUpsertBulk) SetTime(v string) *DeviceOfflineTimeUpsertBulk
SetTime sets the "time" field.
func (*DeviceOfflineTimeUpsertBulk) SetUpdatedAt ¶
func (u *DeviceOfflineTimeUpsertBulk) SetUpdatedAt(v time.Time) *DeviceOfflineTimeUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*DeviceOfflineTimeUpsertBulk) Update ¶
func (u *DeviceOfflineTimeUpsertBulk) Update(set func(*DeviceOfflineTimeUpsert)) *DeviceOfflineTimeUpsertBulk
Update allows overriding fields `UPDATE` values. See the DeviceOfflineTimeCreateBulk.OnConflict documentation for more info.
func (*DeviceOfflineTimeUpsertBulk) UpdateDeviceName ¶
func (u *DeviceOfflineTimeUpsertBulk) UpdateDeviceName() *DeviceOfflineTimeUpsertBulk
UpdateDeviceName sets the "deviceName" field to the value that was provided on create.
func (*DeviceOfflineTimeUpsertBulk) UpdateIotID ¶
func (u *DeviceOfflineTimeUpsertBulk) UpdateIotID() *DeviceOfflineTimeUpsertBulk
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DeviceOfflineTimeUpsertBulk) UpdateNewValues ¶
func (u *DeviceOfflineTimeUpsertBulk) UpdateNewValues() *DeviceOfflineTimeUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.DeviceOfflineTime.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(deviceofflinetime.FieldID) }), ). Exec(ctx)
func (*DeviceOfflineTimeUpsertBulk) UpdateProductKey ¶
func (u *DeviceOfflineTimeUpsertBulk) UpdateProductKey() *DeviceOfflineTimeUpsertBulk
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*DeviceOfflineTimeUpsertBulk) UpdateSort ¶
func (u *DeviceOfflineTimeUpsertBulk) UpdateSort() *DeviceOfflineTimeUpsertBulk
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DeviceOfflineTimeUpsertBulk) UpdateStatus ¶
func (u *DeviceOfflineTimeUpsertBulk) UpdateStatus() *DeviceOfflineTimeUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DeviceOfflineTimeUpsertBulk) UpdateTime ¶
func (u *DeviceOfflineTimeUpsertBulk) UpdateTime() *DeviceOfflineTimeUpsertBulk
UpdateTime sets the "time" field to the value that was provided on create.
func (*DeviceOfflineTimeUpsertBulk) UpdateUpdatedAt ¶
func (u *DeviceOfflineTimeUpsertBulk) UpdateUpdatedAt() *DeviceOfflineTimeUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type DeviceOfflineTimeUpsertOne ¶
type DeviceOfflineTimeUpsertOne struct {
// contains filtered or unexported fields
}
DeviceOfflineTimeUpsertOne is the builder for "upsert"-ing
one DeviceOfflineTime node.
func (*DeviceOfflineTimeUpsertOne) AddSort ¶
func (u *DeviceOfflineTimeUpsertOne) AddSort(v uint32) *DeviceOfflineTimeUpsertOne
AddSort adds v to the "sort" field.
func (*DeviceOfflineTimeUpsertOne) AddStatus ¶
func (u *DeviceOfflineTimeUpsertOne) AddStatus(v uint8) *DeviceOfflineTimeUpsertOne
AddStatus adds v to the "status" field.
func (*DeviceOfflineTimeUpsertOne) ClearStatus ¶
func (u *DeviceOfflineTimeUpsertOne) ClearStatus() *DeviceOfflineTimeUpsertOne
ClearStatus clears the value of the "status" field.
func (*DeviceOfflineTimeUpsertOne) ClearTime ¶
func (u *DeviceOfflineTimeUpsertOne) ClearTime() *DeviceOfflineTimeUpsertOne
ClearTime clears the value of the "time" field.
func (*DeviceOfflineTimeUpsertOne) DoNothing ¶
func (u *DeviceOfflineTimeUpsertOne) DoNothing() *DeviceOfflineTimeUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*DeviceOfflineTimeUpsertOne) Exec ¶
func (u *DeviceOfflineTimeUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceOfflineTimeUpsertOne) ExecX ¶
func (u *DeviceOfflineTimeUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceOfflineTimeUpsertOne) ID ¶
func (u *DeviceOfflineTimeUpsertOne) ID(ctx context.Context) (id uint64, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*DeviceOfflineTimeUpsertOne) IDX ¶
func (u *DeviceOfflineTimeUpsertOne) IDX(ctx context.Context) uint64
IDX is like ID, but panics if an error occurs.
func (*DeviceOfflineTimeUpsertOne) Ignore ¶
func (u *DeviceOfflineTimeUpsertOne) Ignore() *DeviceOfflineTimeUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.DeviceOfflineTime.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*DeviceOfflineTimeUpsertOne) SetDeviceName ¶
func (u *DeviceOfflineTimeUpsertOne) SetDeviceName(v string) *DeviceOfflineTimeUpsertOne
SetDeviceName sets the "deviceName" field.
func (*DeviceOfflineTimeUpsertOne) SetIotID ¶
func (u *DeviceOfflineTimeUpsertOne) SetIotID(v string) *DeviceOfflineTimeUpsertOne
SetIotID sets the "iotID" field.
func (*DeviceOfflineTimeUpsertOne) SetProductKey ¶
func (u *DeviceOfflineTimeUpsertOne) SetProductKey(v string) *DeviceOfflineTimeUpsertOne
SetProductKey sets the "productKey" field.
func (*DeviceOfflineTimeUpsertOne) SetSort ¶
func (u *DeviceOfflineTimeUpsertOne) SetSort(v uint32) *DeviceOfflineTimeUpsertOne
SetSort sets the "sort" field.
func (*DeviceOfflineTimeUpsertOne) SetStatus ¶
func (u *DeviceOfflineTimeUpsertOne) SetStatus(v uint8) *DeviceOfflineTimeUpsertOne
SetStatus sets the "status" field.
func (*DeviceOfflineTimeUpsertOne) SetTime ¶
func (u *DeviceOfflineTimeUpsertOne) SetTime(v string) *DeviceOfflineTimeUpsertOne
SetTime sets the "time" field.
func (*DeviceOfflineTimeUpsertOne) SetUpdatedAt ¶
func (u *DeviceOfflineTimeUpsertOne) SetUpdatedAt(v time.Time) *DeviceOfflineTimeUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*DeviceOfflineTimeUpsertOne) Update ¶
func (u *DeviceOfflineTimeUpsertOne) Update(set func(*DeviceOfflineTimeUpsert)) *DeviceOfflineTimeUpsertOne
Update allows overriding fields `UPDATE` values. See the DeviceOfflineTimeCreate.OnConflict documentation for more info.
func (*DeviceOfflineTimeUpsertOne) UpdateDeviceName ¶
func (u *DeviceOfflineTimeUpsertOne) UpdateDeviceName() *DeviceOfflineTimeUpsertOne
UpdateDeviceName sets the "deviceName" field to the value that was provided on create.
func (*DeviceOfflineTimeUpsertOne) UpdateIotID ¶
func (u *DeviceOfflineTimeUpsertOne) UpdateIotID() *DeviceOfflineTimeUpsertOne
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DeviceOfflineTimeUpsertOne) UpdateNewValues ¶
func (u *DeviceOfflineTimeUpsertOne) UpdateNewValues() *DeviceOfflineTimeUpsertOne
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.DeviceOfflineTime.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(deviceofflinetime.FieldID) }), ). Exec(ctx)
func (*DeviceOfflineTimeUpsertOne) UpdateProductKey ¶
func (u *DeviceOfflineTimeUpsertOne) UpdateProductKey() *DeviceOfflineTimeUpsertOne
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*DeviceOfflineTimeUpsertOne) UpdateSort ¶
func (u *DeviceOfflineTimeUpsertOne) UpdateSort() *DeviceOfflineTimeUpsertOne
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DeviceOfflineTimeUpsertOne) UpdateStatus ¶
func (u *DeviceOfflineTimeUpsertOne) UpdateStatus() *DeviceOfflineTimeUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DeviceOfflineTimeUpsertOne) UpdateTime ¶
func (u *DeviceOfflineTimeUpsertOne) UpdateTime() *DeviceOfflineTimeUpsertOne
UpdateTime sets the "time" field to the value that was provided on create.
func (*DeviceOfflineTimeUpsertOne) UpdateUpdatedAt ¶
func (u *DeviceOfflineTimeUpsertOne) UpdateUpdatedAt() *DeviceOfflineTimeUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type DeviceOfflineTimes ¶
type DeviceOfflineTimes []*DeviceOfflineTime
DeviceOfflineTimes is a parsable slice of DeviceOfflineTime.
type DeviceOnTimeDailies ¶
type DeviceOnTimeDailies []*DeviceOnTimeDaily
DeviceOnTimeDailies is a parsable slice of DeviceOnTimeDaily.
type DeviceOnTimeDaily ¶
type DeviceOnTimeDaily struct { // ID of the ent. ID uint64 `json:"id,omitempty"` // Create Time | 创建日期 CreatedAt time.Time `json:"created_at,omitempty"` // Update Time | 修改日期 UpdatedAt time.Time `json:"updated_at,omitempty"` // Status 1: normal 2: ban | 状态 1 正常 2 禁用 Status uint8 `json:"status,omitempty"` // Sort Number | 排序编号 Sort uint32 `json:"sort,omitempty"` // Iot Id | 设备ID IotID string `json:"iotID,omitempty"` // Device Name | 设备名称 DeviceName string `json:"deviceName,omitempty"` // Product Key | 产品Key ProductKey string `json:"productKey,omitempty"` // Time | 记录时间 Time string `json:"time,omitempty"` // Value | 统计总时间 Value string `json:"value,omitempty"` // contains filtered or unexported fields }
DeviceOnTimeDaily is the model entity for the DeviceOnTimeDaily schema.
func (*DeviceOnTimeDaily) ExecContext ¶
func (c *DeviceOnTimeDaily) 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 (*DeviceOnTimeDaily) GetValue ¶
func (dotd *DeviceOnTimeDaily) GetValue(name string) (ent.Value, error)
GetValue returns the ent.Value that was dynamically selected and assigned to the DeviceOnTimeDaily. This includes values selected through modifiers, order, etc.
func (*DeviceOnTimeDaily) QueryContext ¶
func (c *DeviceOnTimeDaily) 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 (*DeviceOnTimeDaily) String ¶
func (dotd *DeviceOnTimeDaily) String() string
String implements the fmt.Stringer.
func (*DeviceOnTimeDaily) Unwrap ¶
func (dotd *DeviceOnTimeDaily) Unwrap() *DeviceOnTimeDaily
Unwrap unwraps the DeviceOnTimeDaily 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 (*DeviceOnTimeDaily) Update ¶
func (dotd *DeviceOnTimeDaily) Update() *DeviceOnTimeDailyUpdateOne
Update returns a builder for updating this DeviceOnTimeDaily. Note that you need to call DeviceOnTimeDaily.Unwrap() before calling this method if this DeviceOnTimeDaily was returned from a transaction, and the transaction was committed or rolled back.
type DeviceOnTimeDailyClient ¶
type DeviceOnTimeDailyClient struct {
// contains filtered or unexported fields
}
DeviceOnTimeDailyClient is a client for the DeviceOnTimeDaily schema.
func NewDeviceOnTimeDailyClient ¶
func NewDeviceOnTimeDailyClient(c config) *DeviceOnTimeDailyClient
NewDeviceOnTimeDailyClient returns a client for the DeviceOnTimeDaily from the given config.
func (*DeviceOnTimeDailyClient) Create ¶
func (c *DeviceOnTimeDailyClient) Create() *DeviceOnTimeDailyCreate
Create returns a builder for creating a DeviceOnTimeDaily entity.
func (*DeviceOnTimeDailyClient) CreateBulk ¶
func (c *DeviceOnTimeDailyClient) CreateBulk(builders ...*DeviceOnTimeDailyCreate) *DeviceOnTimeDailyCreateBulk
CreateBulk returns a builder for creating a bulk of DeviceOnTimeDaily entities.
func (*DeviceOnTimeDailyClient) Delete ¶
func (c *DeviceOnTimeDailyClient) Delete() *DeviceOnTimeDailyDelete
Delete returns a delete builder for DeviceOnTimeDaily.
func (*DeviceOnTimeDailyClient) DeleteOne ¶
func (c *DeviceOnTimeDailyClient) DeleteOne(dotd *DeviceOnTimeDaily) *DeviceOnTimeDailyDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*DeviceOnTimeDailyClient) DeleteOneID ¶
func (c *DeviceOnTimeDailyClient) DeleteOneID(id uint64) *DeviceOnTimeDailyDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*DeviceOnTimeDailyClient) ExecContext ¶
func (c *DeviceOnTimeDailyClient) 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 (*DeviceOnTimeDailyClient) Get ¶
func (c *DeviceOnTimeDailyClient) Get(ctx context.Context, id uint64) (*DeviceOnTimeDaily, error)
Get returns a DeviceOnTimeDaily entity by its id.
func (*DeviceOnTimeDailyClient) GetX ¶
func (c *DeviceOnTimeDailyClient) GetX(ctx context.Context, id uint64) *DeviceOnTimeDaily
GetX is like Get, but panics if an error occurs.
func (*DeviceOnTimeDailyClient) Hooks ¶
func (c *DeviceOnTimeDailyClient) Hooks() []Hook
Hooks returns the client hooks.
func (*DeviceOnTimeDailyClient) Intercept ¶
func (c *DeviceOnTimeDailyClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `deviceontimedaily.Intercept(f(g(h())))`.
func (*DeviceOnTimeDailyClient) Interceptors ¶
func (c *DeviceOnTimeDailyClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*DeviceOnTimeDailyClient) MapCreateBulk ¶
func (c *DeviceOnTimeDailyClient) MapCreateBulk(slice any, setFunc func(*DeviceOnTimeDailyCreate, int)) *DeviceOnTimeDailyCreateBulk
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 (*DeviceOnTimeDailyClient) Query ¶
func (c *DeviceOnTimeDailyClient) Query() *DeviceOnTimeDailyQuery
Query returns a query builder for DeviceOnTimeDaily.
func (*DeviceOnTimeDailyClient) QueryContext ¶
func (c *DeviceOnTimeDailyClient) 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 (*DeviceOnTimeDailyClient) Update ¶
func (c *DeviceOnTimeDailyClient) Update() *DeviceOnTimeDailyUpdate
Update returns an update builder for DeviceOnTimeDaily.
func (*DeviceOnTimeDailyClient) UpdateOne ¶
func (c *DeviceOnTimeDailyClient) UpdateOne(dotd *DeviceOnTimeDaily) *DeviceOnTimeDailyUpdateOne
UpdateOne returns an update builder for the given entity.
func (*DeviceOnTimeDailyClient) UpdateOneID ¶
func (c *DeviceOnTimeDailyClient) UpdateOneID(id uint64) *DeviceOnTimeDailyUpdateOne
UpdateOneID returns an update builder for the given id.
func (*DeviceOnTimeDailyClient) Use ¶
func (c *DeviceOnTimeDailyClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `deviceontimedaily.Hooks(f(g(h())))`.
type DeviceOnTimeDailyCreate ¶
type DeviceOnTimeDailyCreate struct { Table string // contains filtered or unexported fields }
DeviceOnTimeDailyCreate is the builder for creating a DeviceOnTimeDaily entity.
func (*DeviceOnTimeDailyCreate) Exec ¶
func (dotdc *DeviceOnTimeDailyCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceOnTimeDailyCreate) ExecContext ¶
func (c *DeviceOnTimeDailyCreate) 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 (*DeviceOnTimeDailyCreate) ExecX ¶
func (dotdc *DeviceOnTimeDailyCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceOnTimeDailyCreate) Mutation ¶
func (dotdc *DeviceOnTimeDailyCreate) Mutation() *DeviceOnTimeDailyMutation
Mutation returns the DeviceOnTimeDailyMutation object of the builder.
func (*DeviceOnTimeDailyCreate) OnConflict ¶
func (dotdc *DeviceOnTimeDailyCreate) OnConflict(opts ...sql.ConflictOption) *DeviceOnTimeDailyUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.DeviceOnTimeDaily.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.DeviceOnTimeDailyUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*DeviceOnTimeDailyCreate) OnConflictColumns ¶
func (dotdc *DeviceOnTimeDailyCreate) OnConflictColumns(columns ...string) *DeviceOnTimeDailyUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.DeviceOnTimeDaily.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*DeviceOnTimeDailyCreate) QueryContext ¶
func (c *DeviceOnTimeDailyCreate) 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 (*DeviceOnTimeDailyCreate) Save ¶
func (dotdc *DeviceOnTimeDailyCreate) Save(ctx context.Context) (*DeviceOnTimeDaily, error)
Save creates the DeviceOnTimeDaily in the database.
func (*DeviceOnTimeDailyCreate) SaveX ¶
func (dotdc *DeviceOnTimeDailyCreate) SaveX(ctx context.Context) *DeviceOnTimeDaily
SaveX calls Save and panics if Save returns an error.
func (*DeviceOnTimeDailyCreate) SetCreatedAt ¶
func (dotdc *DeviceOnTimeDailyCreate) SetCreatedAt(t time.Time) *DeviceOnTimeDailyCreate
SetCreatedAt sets the "created_at" field.
func (*DeviceOnTimeDailyCreate) SetDeviceName ¶
func (dotdc *DeviceOnTimeDailyCreate) SetDeviceName(s string) *DeviceOnTimeDailyCreate
SetDeviceName sets the "deviceName" field.
func (*DeviceOnTimeDailyCreate) SetID ¶
func (dotdc *DeviceOnTimeDailyCreate) SetID(u uint64) *DeviceOnTimeDailyCreate
SetID sets the "id" field.
func (*DeviceOnTimeDailyCreate) SetIotID ¶
func (dotdc *DeviceOnTimeDailyCreate) SetIotID(s string) *DeviceOnTimeDailyCreate
SetIotID sets the "iotID" field.
func (*DeviceOnTimeDailyCreate) SetNillableCreatedAt ¶
func (dotdc *DeviceOnTimeDailyCreate) SetNillableCreatedAt(t *time.Time) *DeviceOnTimeDailyCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*DeviceOnTimeDailyCreate) SetNillableSort ¶
func (dotdc *DeviceOnTimeDailyCreate) SetNillableSort(u *uint32) *DeviceOnTimeDailyCreate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DeviceOnTimeDailyCreate) SetNillableStatus ¶
func (dotdc *DeviceOnTimeDailyCreate) SetNillableStatus(u *uint8) *DeviceOnTimeDailyCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DeviceOnTimeDailyCreate) SetNillableTime ¶
func (dotdc *DeviceOnTimeDailyCreate) SetNillableTime(s *string) *DeviceOnTimeDailyCreate
SetNillableTime sets the "time" field if the given value is not nil.
func (*DeviceOnTimeDailyCreate) SetNillableUpdatedAt ¶
func (dotdc *DeviceOnTimeDailyCreate) SetNillableUpdatedAt(t *time.Time) *DeviceOnTimeDailyCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*DeviceOnTimeDailyCreate) SetNillableValue ¶
func (dotdc *DeviceOnTimeDailyCreate) SetNillableValue(s *string) *DeviceOnTimeDailyCreate
SetNillableValue sets the "value" field if the given value is not nil.
func (*DeviceOnTimeDailyCreate) SetNotNilDeviceName ¶
func (dotd *DeviceOnTimeDailyCreate) SetNotNilDeviceName(value *string) *DeviceOnTimeDailyCreate
set field if value's pointer is not nil.
func (*DeviceOnTimeDailyCreate) SetNotNilIotID ¶
func (dotd *DeviceOnTimeDailyCreate) SetNotNilIotID(value *string) *DeviceOnTimeDailyCreate
set field if value's pointer is not nil.
func (*DeviceOnTimeDailyCreate) SetNotNilProductKey ¶
func (dotd *DeviceOnTimeDailyCreate) SetNotNilProductKey(value *string) *DeviceOnTimeDailyCreate
set field if value's pointer is not nil.
func (*DeviceOnTimeDailyCreate) SetNotNilSort ¶
func (dotd *DeviceOnTimeDailyCreate) SetNotNilSort(value *uint32) *DeviceOnTimeDailyCreate
set field if value's pointer is not nil.
func (*DeviceOnTimeDailyCreate) SetNotNilStatus ¶
func (dotd *DeviceOnTimeDailyCreate) SetNotNilStatus(value *uint8) *DeviceOnTimeDailyCreate
set field if value's pointer is not nil.
func (*DeviceOnTimeDailyCreate) SetNotNilTime ¶
func (dotd *DeviceOnTimeDailyCreate) SetNotNilTime(value *string) *DeviceOnTimeDailyCreate
set field if value's pointer is not nil.
func (*DeviceOnTimeDailyCreate) SetNotNilUpdatedAt ¶
func (dotd *DeviceOnTimeDailyCreate) SetNotNilUpdatedAt(value *time.Time) *DeviceOnTimeDailyCreate
set field if value's pointer is not nil.
func (*DeviceOnTimeDailyCreate) SetNotNilValue ¶
func (dotd *DeviceOnTimeDailyCreate) SetNotNilValue(value *string) *DeviceOnTimeDailyCreate
set field if value's pointer is not nil.
func (*DeviceOnTimeDailyCreate) SetProductKey ¶
func (dotdc *DeviceOnTimeDailyCreate) SetProductKey(s string) *DeviceOnTimeDailyCreate
SetProductKey sets the "productKey" field.
func (*DeviceOnTimeDailyCreate) SetSort ¶
func (dotdc *DeviceOnTimeDailyCreate) SetSort(u uint32) *DeviceOnTimeDailyCreate
SetSort sets the "sort" field.
func (*DeviceOnTimeDailyCreate) SetStatus ¶
func (dotdc *DeviceOnTimeDailyCreate) SetStatus(u uint8) *DeviceOnTimeDailyCreate
SetStatus sets the "status" field.
func (*DeviceOnTimeDailyCreate) SetTime ¶
func (dotdc *DeviceOnTimeDailyCreate) SetTime(s string) *DeviceOnTimeDailyCreate
SetTime sets the "time" field.
func (*DeviceOnTimeDailyCreate) SetUpdatedAt ¶
func (dotdc *DeviceOnTimeDailyCreate) SetUpdatedAt(t time.Time) *DeviceOnTimeDailyCreate
SetUpdatedAt sets the "updated_at" field.
func (*DeviceOnTimeDailyCreate) SetValue ¶
func (dotdc *DeviceOnTimeDailyCreate) SetValue(s string) *DeviceOnTimeDailyCreate
SetValue sets the "value" field.
func (*DeviceOnTimeDailyCreate) TableName ¶
func (dotdc *DeviceOnTimeDailyCreate) TableName(s string) *DeviceOnTimeDailyCreate
type DeviceOnTimeDailyCreateBulk ¶
type DeviceOnTimeDailyCreateBulk struct {
// contains filtered or unexported fields
}
DeviceOnTimeDailyCreateBulk is the builder for creating many DeviceOnTimeDaily entities in bulk.
func (*DeviceOnTimeDailyCreateBulk) Exec ¶
func (dotdcb *DeviceOnTimeDailyCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceOnTimeDailyCreateBulk) ExecContext ¶
func (c *DeviceOnTimeDailyCreateBulk) 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 (*DeviceOnTimeDailyCreateBulk) ExecX ¶
func (dotdcb *DeviceOnTimeDailyCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceOnTimeDailyCreateBulk) OnConflict ¶
func (dotdcb *DeviceOnTimeDailyCreateBulk) OnConflict(opts ...sql.ConflictOption) *DeviceOnTimeDailyUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.DeviceOnTimeDaily.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.DeviceOnTimeDailyUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*DeviceOnTimeDailyCreateBulk) OnConflictColumns ¶
func (dotdcb *DeviceOnTimeDailyCreateBulk) OnConflictColumns(columns ...string) *DeviceOnTimeDailyUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.DeviceOnTimeDaily.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*DeviceOnTimeDailyCreateBulk) QueryContext ¶
func (c *DeviceOnTimeDailyCreateBulk) 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 (*DeviceOnTimeDailyCreateBulk) Save ¶
func (dotdcb *DeviceOnTimeDailyCreateBulk) Save(ctx context.Context) ([]*DeviceOnTimeDaily, error)
Save creates the DeviceOnTimeDaily entities in the database.
func (*DeviceOnTimeDailyCreateBulk) SaveX ¶
func (dotdcb *DeviceOnTimeDailyCreateBulk) SaveX(ctx context.Context) []*DeviceOnTimeDaily
SaveX is like Save, but panics if an error occurs.
type DeviceOnTimeDailyDelete ¶
type DeviceOnTimeDailyDelete struct {
// contains filtered or unexported fields
}
DeviceOnTimeDailyDelete is the builder for deleting a DeviceOnTimeDaily entity.
func (*DeviceOnTimeDailyDelete) Exec ¶
func (dotdd *DeviceOnTimeDailyDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*DeviceOnTimeDailyDelete) ExecContext ¶
func (c *DeviceOnTimeDailyDelete) 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 (*DeviceOnTimeDailyDelete) ExecX ¶
func (dotdd *DeviceOnTimeDailyDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*DeviceOnTimeDailyDelete) QueryContext ¶
func (c *DeviceOnTimeDailyDelete) 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 (*DeviceOnTimeDailyDelete) Where ¶
func (dotdd *DeviceOnTimeDailyDelete) Where(ps ...predicate.DeviceOnTimeDaily) *DeviceOnTimeDailyDelete
Where appends a list predicates to the DeviceOnTimeDailyDelete builder.
type DeviceOnTimeDailyDeleteOne ¶
type DeviceOnTimeDailyDeleteOne struct {
// contains filtered or unexported fields
}
DeviceOnTimeDailyDeleteOne is the builder for deleting a single DeviceOnTimeDaily entity.
func (*DeviceOnTimeDailyDeleteOne) Exec ¶
func (dotddo *DeviceOnTimeDailyDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*DeviceOnTimeDailyDeleteOne) ExecX ¶
func (dotddo *DeviceOnTimeDailyDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceOnTimeDailyDeleteOne) Where ¶
func (dotddo *DeviceOnTimeDailyDeleteOne) Where(ps ...predicate.DeviceOnTimeDaily) *DeviceOnTimeDailyDeleteOne
Where appends a list predicates to the DeviceOnTimeDailyDelete builder.
type DeviceOnTimeDailyGroupBy ¶
type DeviceOnTimeDailyGroupBy struct {
// contains filtered or unexported fields
}
DeviceOnTimeDailyGroupBy is the group-by builder for DeviceOnTimeDaily entities.
func (*DeviceOnTimeDailyGroupBy) Aggregate ¶
func (dotdgb *DeviceOnTimeDailyGroupBy) Aggregate(fns ...AggregateFunc) *DeviceOnTimeDailyGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*DeviceOnTimeDailyGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DeviceOnTimeDailyGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*DeviceOnTimeDailyGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DeviceOnTimeDailyGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*DeviceOnTimeDailyGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DeviceOnTimeDailyGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*DeviceOnTimeDailyGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DeviceOnTimeDailyGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*DeviceOnTimeDailyGroupBy) Scan ¶
func (dotdgb *DeviceOnTimeDailyGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*DeviceOnTimeDailyGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type DeviceOnTimeDailyMutation ¶
type DeviceOnTimeDailyMutation struct {
// contains filtered or unexported fields
}
DeviceOnTimeDailyMutation represents an operation that mutates the DeviceOnTimeDaily nodes in the graph.
func (*DeviceOnTimeDailyMutation) AddField ¶
func (m *DeviceOnTimeDailyMutation) 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 (*DeviceOnTimeDailyMutation) AddSort ¶
func (m *DeviceOnTimeDailyMutation) AddSort(u int32)
AddSort adds u to the "sort" field.
func (*DeviceOnTimeDailyMutation) AddStatus ¶
func (m *DeviceOnTimeDailyMutation) AddStatus(u int8)
AddStatus adds u to the "status" field.
func (*DeviceOnTimeDailyMutation) AddedEdges ¶
func (m *DeviceOnTimeDailyMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*DeviceOnTimeDailyMutation) AddedField ¶
func (m *DeviceOnTimeDailyMutation) 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 (*DeviceOnTimeDailyMutation) AddedFields ¶
func (m *DeviceOnTimeDailyMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*DeviceOnTimeDailyMutation) AddedIDs ¶
func (m *DeviceOnTimeDailyMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*DeviceOnTimeDailyMutation) AddedSort ¶
func (m *DeviceOnTimeDailyMutation) AddedSort() (r int32, exists bool)
AddedSort returns the value that was added to the "sort" field in this mutation.
func (*DeviceOnTimeDailyMutation) AddedStatus ¶
func (m *DeviceOnTimeDailyMutation) AddedStatus() (r int8, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*DeviceOnTimeDailyMutation) ClearEdge ¶
func (m *DeviceOnTimeDailyMutation) 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 (*DeviceOnTimeDailyMutation) ClearField ¶
func (m *DeviceOnTimeDailyMutation) 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 (*DeviceOnTimeDailyMutation) ClearStatus ¶
func (m *DeviceOnTimeDailyMutation) ClearStatus()
ClearStatus clears the value of the "status" field.
func (*DeviceOnTimeDailyMutation) ClearTime ¶
func (m *DeviceOnTimeDailyMutation) ClearTime()
ClearTime clears the value of the "time" field.
func (*DeviceOnTimeDailyMutation) ClearValue ¶
func (m *DeviceOnTimeDailyMutation) ClearValue()
ClearValue clears the value of the "value" field.
func (*DeviceOnTimeDailyMutation) ClearedEdges ¶
func (m *DeviceOnTimeDailyMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*DeviceOnTimeDailyMutation) ClearedFields ¶
func (m *DeviceOnTimeDailyMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (DeviceOnTimeDailyMutation) Client ¶
func (m DeviceOnTimeDailyMutation) 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 (*DeviceOnTimeDailyMutation) CreatedAt ¶
func (m *DeviceOnTimeDailyMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*DeviceOnTimeDailyMutation) DeviceName ¶
func (m *DeviceOnTimeDailyMutation) DeviceName() (r string, exists bool)
DeviceName returns the value of the "deviceName" field in the mutation.
func (*DeviceOnTimeDailyMutation) EdgeCleared ¶
func (m *DeviceOnTimeDailyMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*DeviceOnTimeDailyMutation) ExecContext ¶
func (c *DeviceOnTimeDailyMutation) 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 (*DeviceOnTimeDailyMutation) Field ¶
func (m *DeviceOnTimeDailyMutation) 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 (*DeviceOnTimeDailyMutation) FieldCleared ¶
func (m *DeviceOnTimeDailyMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*DeviceOnTimeDailyMutation) Fields ¶
func (m *DeviceOnTimeDailyMutation) 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 (*DeviceOnTimeDailyMutation) ID ¶
func (m *DeviceOnTimeDailyMutation) ID() (id uint64, 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 (*DeviceOnTimeDailyMutation) IDs ¶
func (m *DeviceOnTimeDailyMutation) IDs(ctx context.Context) ([]uint64, 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 (*DeviceOnTimeDailyMutation) IotID ¶
func (m *DeviceOnTimeDailyMutation) IotID() (r string, exists bool)
IotID returns the value of the "iotID" field in the mutation.
func (*DeviceOnTimeDailyMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the DeviceOnTimeDaily entity. If the DeviceOnTimeDaily 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 (*DeviceOnTimeDailyMutation) OldDeviceName ¶
func (m *DeviceOnTimeDailyMutation) OldDeviceName(ctx context.Context) (v string, err error)
OldDeviceName returns the old "deviceName" field's value of the DeviceOnTimeDaily entity. If the DeviceOnTimeDaily 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 (*DeviceOnTimeDailyMutation) 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 (*DeviceOnTimeDailyMutation) OldIotID ¶
func (m *DeviceOnTimeDailyMutation) OldIotID(ctx context.Context) (v string, err error)
OldIotID returns the old "iotID" field's value of the DeviceOnTimeDaily entity. If the DeviceOnTimeDaily 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 (*DeviceOnTimeDailyMutation) OldProductKey ¶
func (m *DeviceOnTimeDailyMutation) OldProductKey(ctx context.Context) (v string, err error)
OldProductKey returns the old "productKey" field's value of the DeviceOnTimeDaily entity. If the DeviceOnTimeDaily 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 (*DeviceOnTimeDailyMutation) OldSort ¶
func (m *DeviceOnTimeDailyMutation) OldSort(ctx context.Context) (v uint32, err error)
OldSort returns the old "sort" field's value of the DeviceOnTimeDaily entity. If the DeviceOnTimeDaily 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 (*DeviceOnTimeDailyMutation) OldStatus ¶
func (m *DeviceOnTimeDailyMutation) OldStatus(ctx context.Context) (v uint8, err error)
OldStatus returns the old "status" field's value of the DeviceOnTimeDaily entity. If the DeviceOnTimeDaily 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 (*DeviceOnTimeDailyMutation) OldTime ¶
func (m *DeviceOnTimeDailyMutation) OldTime(ctx context.Context) (v string, err error)
OldTime returns the old "time" field's value of the DeviceOnTimeDaily entity. If the DeviceOnTimeDaily 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 (*DeviceOnTimeDailyMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the DeviceOnTimeDaily entity. If the DeviceOnTimeDaily 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 (*DeviceOnTimeDailyMutation) OldValue ¶
func (m *DeviceOnTimeDailyMutation) OldValue(ctx context.Context) (v string, err error)
OldValue returns the old "value" field's value of the DeviceOnTimeDaily entity. If the DeviceOnTimeDaily 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 (*DeviceOnTimeDailyMutation) Op ¶
func (m *DeviceOnTimeDailyMutation) Op() Op
Op returns the operation name.
func (*DeviceOnTimeDailyMutation) ProductKey ¶
func (m *DeviceOnTimeDailyMutation) ProductKey() (r string, exists bool)
ProductKey returns the value of the "productKey" field in the mutation.
func (*DeviceOnTimeDailyMutation) QueryContext ¶
func (c *DeviceOnTimeDailyMutation) 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 (*DeviceOnTimeDailyMutation) RemovedEdges ¶
func (m *DeviceOnTimeDailyMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*DeviceOnTimeDailyMutation) RemovedIDs ¶
func (m *DeviceOnTimeDailyMutation) 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 (*DeviceOnTimeDailyMutation) ResetCreatedAt ¶
func (m *DeviceOnTimeDailyMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*DeviceOnTimeDailyMutation) ResetDeviceName ¶
func (m *DeviceOnTimeDailyMutation) ResetDeviceName()
ResetDeviceName resets all changes to the "deviceName" field.
func (*DeviceOnTimeDailyMutation) ResetEdge ¶
func (m *DeviceOnTimeDailyMutation) 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 (*DeviceOnTimeDailyMutation) ResetField ¶
func (m *DeviceOnTimeDailyMutation) 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 (*DeviceOnTimeDailyMutation) ResetIotID ¶
func (m *DeviceOnTimeDailyMutation) ResetIotID()
ResetIotID resets all changes to the "iotID" field.
func (*DeviceOnTimeDailyMutation) ResetProductKey ¶
func (m *DeviceOnTimeDailyMutation) ResetProductKey()
ResetProductKey resets all changes to the "productKey" field.
func (*DeviceOnTimeDailyMutation) ResetSort ¶
func (m *DeviceOnTimeDailyMutation) ResetSort()
ResetSort resets all changes to the "sort" field.
func (*DeviceOnTimeDailyMutation) ResetStatus ¶
func (m *DeviceOnTimeDailyMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*DeviceOnTimeDailyMutation) ResetTime ¶
func (m *DeviceOnTimeDailyMutation) ResetTime()
ResetTime resets all changes to the "time" field.
func (*DeviceOnTimeDailyMutation) ResetUpdatedAt ¶
func (m *DeviceOnTimeDailyMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*DeviceOnTimeDailyMutation) ResetValue ¶
func (m *DeviceOnTimeDailyMutation) ResetValue()
ResetValue resets all changes to the "value" field.
func (*DeviceOnTimeDailyMutation) SetCreatedAt ¶
func (m *DeviceOnTimeDailyMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*DeviceOnTimeDailyMutation) SetDeviceName ¶
func (m *DeviceOnTimeDailyMutation) SetDeviceName(s string)
SetDeviceName sets the "deviceName" field.
func (*DeviceOnTimeDailyMutation) SetField ¶
func (m *DeviceOnTimeDailyMutation) 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 (*DeviceOnTimeDailyMutation) SetID ¶
func (m *DeviceOnTimeDailyMutation) SetID(id uint64)
SetID sets the value of the id field. Note that this operation is only accepted on creation of DeviceOnTimeDaily entities.
func (*DeviceOnTimeDailyMutation) SetIotID ¶
func (m *DeviceOnTimeDailyMutation) SetIotID(s string)
SetIotID sets the "iotID" field.
func (*DeviceOnTimeDailyMutation) SetOp ¶
func (m *DeviceOnTimeDailyMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*DeviceOnTimeDailyMutation) SetProductKey ¶
func (m *DeviceOnTimeDailyMutation) SetProductKey(s string)
SetProductKey sets the "productKey" field.
func (*DeviceOnTimeDailyMutation) SetSort ¶
func (m *DeviceOnTimeDailyMutation) SetSort(u uint32)
SetSort sets the "sort" field.
func (*DeviceOnTimeDailyMutation) SetStatus ¶
func (m *DeviceOnTimeDailyMutation) SetStatus(u uint8)
SetStatus sets the "status" field.
func (*DeviceOnTimeDailyMutation) SetTime ¶
func (m *DeviceOnTimeDailyMutation) SetTime(s string)
SetTime sets the "time" field.
func (*DeviceOnTimeDailyMutation) SetUpdatedAt ¶
func (m *DeviceOnTimeDailyMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*DeviceOnTimeDailyMutation) SetValue ¶
func (m *DeviceOnTimeDailyMutation) SetValue(s string)
SetValue sets the "value" field.
func (*DeviceOnTimeDailyMutation) Sort ¶
func (m *DeviceOnTimeDailyMutation) Sort() (r uint32, exists bool)
Sort returns the value of the "sort" field in the mutation.
func (*DeviceOnTimeDailyMutation) Status ¶
func (m *DeviceOnTimeDailyMutation) Status() (r uint8, exists bool)
Status returns the value of the "status" field in the mutation.
func (*DeviceOnTimeDailyMutation) StatusCleared ¶
func (m *DeviceOnTimeDailyMutation) StatusCleared() bool
StatusCleared returns if the "status" field was cleared in this mutation.
func (*DeviceOnTimeDailyMutation) Time ¶
func (m *DeviceOnTimeDailyMutation) Time() (r string, exists bool)
Time returns the value of the "time" field in the mutation.
func (*DeviceOnTimeDailyMutation) TimeCleared ¶
func (m *DeviceOnTimeDailyMutation) TimeCleared() bool
TimeCleared returns if the "time" field was cleared in this mutation.
func (DeviceOnTimeDailyMutation) Tx ¶
func (m DeviceOnTimeDailyMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*DeviceOnTimeDailyMutation) Type ¶
func (m *DeviceOnTimeDailyMutation) Type() string
Type returns the node type of this mutation (DeviceOnTimeDaily).
func (*DeviceOnTimeDailyMutation) UpdatedAt ¶
func (m *DeviceOnTimeDailyMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*DeviceOnTimeDailyMutation) Value ¶
func (m *DeviceOnTimeDailyMutation) Value() (r string, exists bool)
Value returns the value of the "value" field in the mutation.
func (*DeviceOnTimeDailyMutation) ValueCleared ¶
func (m *DeviceOnTimeDailyMutation) ValueCleared() bool
ValueCleared returns if the "value" field was cleared in this mutation.
func (*DeviceOnTimeDailyMutation) Where ¶
func (m *DeviceOnTimeDailyMutation) Where(ps ...predicate.DeviceOnTimeDaily)
Where appends a list predicates to the DeviceOnTimeDailyMutation builder.
func (*DeviceOnTimeDailyMutation) WhereP ¶
func (m *DeviceOnTimeDailyMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the DeviceOnTimeDailyMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type DeviceOnTimeDailyPageList ¶
type DeviceOnTimeDailyPageList struct { List []*DeviceOnTimeDaily `json:"list"` PageDetails *PageDetails `json:"pageDetails"` }
DeviceOnTimeDailyPageList is DeviceOnTimeDaily PageList result.
type DeviceOnTimeDailyPager ¶
type DeviceOnTimeDailyPager struct { Order deviceontimedaily.OrderOption Filter func(*DeviceOnTimeDailyQuery) (*DeviceOnTimeDailyQuery, error) }
func (*DeviceOnTimeDailyPager) ApplyFilter ¶
func (p *DeviceOnTimeDailyPager) ApplyFilter(query *DeviceOnTimeDailyQuery) (*DeviceOnTimeDailyQuery, error)
type DeviceOnTimeDailyPaginateOption ¶
type DeviceOnTimeDailyPaginateOption func(*DeviceOnTimeDailyPager)
DeviceOnTimeDailyPaginateOption enables pagination customization.
type DeviceOnTimeDailyQuery ¶
type DeviceOnTimeDailyQuery struct {
// contains filtered or unexported fields
}
DeviceOnTimeDailyQuery is the builder for querying DeviceOnTimeDaily entities.
func (*DeviceOnTimeDailyQuery) Aggregate ¶
func (dotdq *DeviceOnTimeDailyQuery) Aggregate(fns ...AggregateFunc) *DeviceOnTimeDailySelect
Aggregate returns a DeviceOnTimeDailySelect configured with the given aggregations.
func (*DeviceOnTimeDailyQuery) All ¶
func (dotdq *DeviceOnTimeDailyQuery) All(ctx context.Context) ([]*DeviceOnTimeDaily, error)
All executes the query and returns a list of DeviceOnTimeDailies.
func (*DeviceOnTimeDailyQuery) AllX ¶
func (dotdq *DeviceOnTimeDailyQuery) AllX(ctx context.Context) []*DeviceOnTimeDaily
AllX is like All, but panics if an error occurs.
func (*DeviceOnTimeDailyQuery) Clone ¶
func (dotdq *DeviceOnTimeDailyQuery) Clone() *DeviceOnTimeDailyQuery
Clone returns a duplicate of the DeviceOnTimeDailyQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*DeviceOnTimeDailyQuery) Count ¶
func (dotdq *DeviceOnTimeDailyQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*DeviceOnTimeDailyQuery) CountX ¶
func (dotdq *DeviceOnTimeDailyQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*DeviceOnTimeDailyQuery) ExecContext ¶
func (c *DeviceOnTimeDailyQuery) 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 (*DeviceOnTimeDailyQuery) Exist ¶
func (dotdq *DeviceOnTimeDailyQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*DeviceOnTimeDailyQuery) ExistX ¶
func (dotdq *DeviceOnTimeDailyQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*DeviceOnTimeDailyQuery) First ¶
func (dotdq *DeviceOnTimeDailyQuery) First(ctx context.Context) (*DeviceOnTimeDaily, error)
First returns the first DeviceOnTimeDaily entity from the query. Returns a *NotFoundError when no DeviceOnTimeDaily was found.
func (*DeviceOnTimeDailyQuery) FirstID ¶
func (dotdq *DeviceOnTimeDailyQuery) FirstID(ctx context.Context) (id uint64, err error)
FirstID returns the first DeviceOnTimeDaily ID from the query. Returns a *NotFoundError when no DeviceOnTimeDaily ID was found.
func (*DeviceOnTimeDailyQuery) FirstIDX ¶
func (dotdq *DeviceOnTimeDailyQuery) FirstIDX(ctx context.Context) uint64
FirstIDX is like FirstID, but panics if an error occurs.
func (*DeviceOnTimeDailyQuery) FirstX ¶
func (dotdq *DeviceOnTimeDailyQuery) FirstX(ctx context.Context) *DeviceOnTimeDaily
FirstX is like First, but panics if an error occurs.
func (*DeviceOnTimeDailyQuery) GroupBy ¶
func (dotdq *DeviceOnTimeDailyQuery) GroupBy(field string, fields ...string) *DeviceOnTimeDailyGroupBy
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.DeviceOnTimeDaily.Query(). GroupBy(deviceontimedaily.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*DeviceOnTimeDailyQuery) IDs ¶
func (dotdq *DeviceOnTimeDailyQuery) IDs(ctx context.Context) (ids []uint64, err error)
IDs executes the query and returns a list of DeviceOnTimeDaily IDs.
func (*DeviceOnTimeDailyQuery) IDsX ¶
func (dotdq *DeviceOnTimeDailyQuery) IDsX(ctx context.Context) []uint64
IDsX is like IDs, but panics if an error occurs.
func (*DeviceOnTimeDailyQuery) Limit ¶
func (dotdq *DeviceOnTimeDailyQuery) Limit(limit int) *DeviceOnTimeDailyQuery
Limit the number of records to be returned by this query.
func (*DeviceOnTimeDailyQuery) Modify ¶
func (dotdq *DeviceOnTimeDailyQuery) Modify(modifiers ...func(s *sql.Selector)) *DeviceOnTimeDailySelect
Modify adds a query modifier for attaching custom logic to queries.
func (*DeviceOnTimeDailyQuery) Offset ¶
func (dotdq *DeviceOnTimeDailyQuery) Offset(offset int) *DeviceOnTimeDailyQuery
Offset to start from.
func (*DeviceOnTimeDailyQuery) Only ¶
func (dotdq *DeviceOnTimeDailyQuery) Only(ctx context.Context) (*DeviceOnTimeDaily, error)
Only returns a single DeviceOnTimeDaily entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one DeviceOnTimeDaily entity is found. Returns a *NotFoundError when no DeviceOnTimeDaily entities are found.
func (*DeviceOnTimeDailyQuery) OnlyID ¶
func (dotdq *DeviceOnTimeDailyQuery) OnlyID(ctx context.Context) (id uint64, err error)
OnlyID is like Only, but returns the only DeviceOnTimeDaily ID in the query. Returns a *NotSingularError when more than one DeviceOnTimeDaily ID is found. Returns a *NotFoundError when no entities are found.
func (*DeviceOnTimeDailyQuery) OnlyIDX ¶
func (dotdq *DeviceOnTimeDailyQuery) OnlyIDX(ctx context.Context) uint64
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*DeviceOnTimeDailyQuery) OnlyX ¶
func (dotdq *DeviceOnTimeDailyQuery) OnlyX(ctx context.Context) *DeviceOnTimeDaily
OnlyX is like Only, but panics if an error occurs.
func (*DeviceOnTimeDailyQuery) Order ¶
func (dotdq *DeviceOnTimeDailyQuery) Order(o ...deviceontimedaily.OrderOption) *DeviceOnTimeDailyQuery
Order specifies how the records should be ordered.
func (*DeviceOnTimeDailyQuery) Page ¶
func (dotd *DeviceOnTimeDailyQuery) Page( ctx context.Context, pageNum uint64, pageSize uint64, opts ...DeviceOnTimeDailyPaginateOption, ) (*DeviceOnTimeDailyPageList, error)
func (*DeviceOnTimeDailyQuery) QueryContext ¶
func (c *DeviceOnTimeDailyQuery) 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 (*DeviceOnTimeDailyQuery) Select ¶
func (dotdq *DeviceOnTimeDailyQuery) Select(fields ...string) *DeviceOnTimeDailySelect
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.DeviceOnTimeDaily.Query(). Select(deviceontimedaily.FieldCreatedAt). Scan(ctx, &v)
func (*DeviceOnTimeDailyQuery) Unique ¶
func (dotdq *DeviceOnTimeDailyQuery) Unique(unique bool) *DeviceOnTimeDailyQuery
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 (*DeviceOnTimeDailyQuery) Where ¶
func (dotdq *DeviceOnTimeDailyQuery) Where(ps ...predicate.DeviceOnTimeDaily) *DeviceOnTimeDailyQuery
Where adds a new predicate for the DeviceOnTimeDailyQuery builder.
type DeviceOnTimeDailySelect ¶
type DeviceOnTimeDailySelect struct { *DeviceOnTimeDailyQuery // contains filtered or unexported fields }
DeviceOnTimeDailySelect is the builder for selecting fields of DeviceOnTimeDaily entities.
func (*DeviceOnTimeDailySelect) Aggregate ¶
func (dotds *DeviceOnTimeDailySelect) Aggregate(fns ...AggregateFunc) *DeviceOnTimeDailySelect
Aggregate adds the given aggregation functions to the selector query.
func (*DeviceOnTimeDailySelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DeviceOnTimeDailySelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (DeviceOnTimeDailySelect) ExecContext ¶
func (c DeviceOnTimeDailySelect) 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 (*DeviceOnTimeDailySelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DeviceOnTimeDailySelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DeviceOnTimeDailySelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*DeviceOnTimeDailySelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DeviceOnTimeDailySelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*DeviceOnTimeDailySelect) Modify ¶
func (dotds *DeviceOnTimeDailySelect) Modify(modifiers ...func(s *sql.Selector)) *DeviceOnTimeDailySelect
Modify adds a query modifier for attaching custom logic to queries.
func (DeviceOnTimeDailySelect) QueryContext ¶
func (c DeviceOnTimeDailySelect) 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 (*DeviceOnTimeDailySelect) Scan ¶
func (dotds *DeviceOnTimeDailySelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*DeviceOnTimeDailySelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type DeviceOnTimeDailyUpdate ¶
type DeviceOnTimeDailyUpdate struct {
// contains filtered or unexported fields
}
DeviceOnTimeDailyUpdate is the builder for updating DeviceOnTimeDaily entities.
func (*DeviceOnTimeDailyUpdate) AddSort ¶
func (dotdu *DeviceOnTimeDailyUpdate) AddSort(u int32) *DeviceOnTimeDailyUpdate
AddSort adds u to the "sort" field.
func (*DeviceOnTimeDailyUpdate) AddStatus ¶
func (dotdu *DeviceOnTimeDailyUpdate) AddStatus(u int8) *DeviceOnTimeDailyUpdate
AddStatus adds u to the "status" field.
func (*DeviceOnTimeDailyUpdate) ClearStatus ¶
func (dotdu *DeviceOnTimeDailyUpdate) ClearStatus() *DeviceOnTimeDailyUpdate
ClearStatus clears the value of the "status" field.
func (*DeviceOnTimeDailyUpdate) ClearTime ¶
func (dotdu *DeviceOnTimeDailyUpdate) ClearTime() *DeviceOnTimeDailyUpdate
ClearTime clears the value of the "time" field.
func (*DeviceOnTimeDailyUpdate) ClearValue ¶
func (dotdu *DeviceOnTimeDailyUpdate) ClearValue() *DeviceOnTimeDailyUpdate
ClearValue clears the value of the "value" field.
func (*DeviceOnTimeDailyUpdate) Exec ¶
func (dotdu *DeviceOnTimeDailyUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceOnTimeDailyUpdate) ExecContext ¶
func (c *DeviceOnTimeDailyUpdate) 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 (*DeviceOnTimeDailyUpdate) ExecX ¶
func (dotdu *DeviceOnTimeDailyUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceOnTimeDailyUpdate) Modify ¶
func (dotdu *DeviceOnTimeDailyUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceOnTimeDailyUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*DeviceOnTimeDailyUpdate) Mutation ¶
func (dotdu *DeviceOnTimeDailyUpdate) Mutation() *DeviceOnTimeDailyMutation
Mutation returns the DeviceOnTimeDailyMutation object of the builder.
func (*DeviceOnTimeDailyUpdate) QueryContext ¶
func (c *DeviceOnTimeDailyUpdate) 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 (*DeviceOnTimeDailyUpdate) Save ¶
func (dotdu *DeviceOnTimeDailyUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*DeviceOnTimeDailyUpdate) SaveX ¶
func (dotdu *DeviceOnTimeDailyUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*DeviceOnTimeDailyUpdate) SetDeviceName ¶
func (dotdu *DeviceOnTimeDailyUpdate) SetDeviceName(s string) *DeviceOnTimeDailyUpdate
SetDeviceName sets the "deviceName" field.
func (*DeviceOnTimeDailyUpdate) SetIotID ¶
func (dotdu *DeviceOnTimeDailyUpdate) SetIotID(s string) *DeviceOnTimeDailyUpdate
SetIotID sets the "iotID" field.
func (*DeviceOnTimeDailyUpdate) SetNillableDeviceName ¶
func (dotdu *DeviceOnTimeDailyUpdate) SetNillableDeviceName(s *string) *DeviceOnTimeDailyUpdate
SetNillableDeviceName sets the "deviceName" field if the given value is not nil.
func (*DeviceOnTimeDailyUpdate) SetNillableIotID ¶
func (dotdu *DeviceOnTimeDailyUpdate) SetNillableIotID(s *string) *DeviceOnTimeDailyUpdate
SetNillableIotID sets the "iotID" field if the given value is not nil.
func (*DeviceOnTimeDailyUpdate) SetNillableProductKey ¶
func (dotdu *DeviceOnTimeDailyUpdate) SetNillableProductKey(s *string) *DeviceOnTimeDailyUpdate
SetNillableProductKey sets the "productKey" field if the given value is not nil.
func (*DeviceOnTimeDailyUpdate) SetNillableSort ¶
func (dotdu *DeviceOnTimeDailyUpdate) SetNillableSort(u *uint32) *DeviceOnTimeDailyUpdate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DeviceOnTimeDailyUpdate) SetNillableStatus ¶
func (dotdu *DeviceOnTimeDailyUpdate) SetNillableStatus(u *uint8) *DeviceOnTimeDailyUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DeviceOnTimeDailyUpdate) SetNillableTime ¶
func (dotdu *DeviceOnTimeDailyUpdate) SetNillableTime(s *string) *DeviceOnTimeDailyUpdate
SetNillableTime sets the "time" field if the given value is not nil.
func (*DeviceOnTimeDailyUpdate) SetNillableValue ¶
func (dotdu *DeviceOnTimeDailyUpdate) SetNillableValue(s *string) *DeviceOnTimeDailyUpdate
SetNillableValue sets the "value" field if the given value is not nil.
func (*DeviceOnTimeDailyUpdate) SetNotNilDeviceName ¶
func (dotd *DeviceOnTimeDailyUpdate) SetNotNilDeviceName(value *string) *DeviceOnTimeDailyUpdate
set field if value's pointer is not nil.
func (*DeviceOnTimeDailyUpdate) SetNotNilIotID ¶
func (dotd *DeviceOnTimeDailyUpdate) SetNotNilIotID(value *string) *DeviceOnTimeDailyUpdate
set field if value's pointer is not nil.
func (*DeviceOnTimeDailyUpdate) SetNotNilProductKey ¶
func (dotd *DeviceOnTimeDailyUpdate) SetNotNilProductKey(value *string) *DeviceOnTimeDailyUpdate
set field if value's pointer is not nil.
func (*DeviceOnTimeDailyUpdate) SetNotNilSort ¶
func (dotd *DeviceOnTimeDailyUpdate) SetNotNilSort(value *uint32) *DeviceOnTimeDailyUpdate
set field if value's pointer is not nil.
func (*DeviceOnTimeDailyUpdate) SetNotNilStatus ¶
func (dotd *DeviceOnTimeDailyUpdate) SetNotNilStatus(value *uint8) *DeviceOnTimeDailyUpdate
set field if value's pointer is not nil.
func (*DeviceOnTimeDailyUpdate) SetNotNilTime ¶
func (dotd *DeviceOnTimeDailyUpdate) SetNotNilTime(value *string) *DeviceOnTimeDailyUpdate
set field if value's pointer is not nil.
func (*DeviceOnTimeDailyUpdate) SetNotNilUpdatedAt ¶
func (dotd *DeviceOnTimeDailyUpdate) SetNotNilUpdatedAt(value *time.Time) *DeviceOnTimeDailyUpdate
set field if value's pointer is not nil.
func (*DeviceOnTimeDailyUpdate) SetNotNilValue ¶
func (dotd *DeviceOnTimeDailyUpdate) SetNotNilValue(value *string) *DeviceOnTimeDailyUpdate
set field if value's pointer is not nil.
func (*DeviceOnTimeDailyUpdate) SetProductKey ¶
func (dotdu *DeviceOnTimeDailyUpdate) SetProductKey(s string) *DeviceOnTimeDailyUpdate
SetProductKey sets the "productKey" field.
func (*DeviceOnTimeDailyUpdate) SetSort ¶
func (dotdu *DeviceOnTimeDailyUpdate) SetSort(u uint32) *DeviceOnTimeDailyUpdate
SetSort sets the "sort" field.
func (*DeviceOnTimeDailyUpdate) SetStatus ¶
func (dotdu *DeviceOnTimeDailyUpdate) SetStatus(u uint8) *DeviceOnTimeDailyUpdate
SetStatus sets the "status" field.
func (*DeviceOnTimeDailyUpdate) SetTime ¶
func (dotdu *DeviceOnTimeDailyUpdate) SetTime(s string) *DeviceOnTimeDailyUpdate
SetTime sets the "time" field.
func (*DeviceOnTimeDailyUpdate) SetUpdatedAt ¶
func (dotdu *DeviceOnTimeDailyUpdate) SetUpdatedAt(t time.Time) *DeviceOnTimeDailyUpdate
SetUpdatedAt sets the "updated_at" field.
func (*DeviceOnTimeDailyUpdate) SetValue ¶
func (dotdu *DeviceOnTimeDailyUpdate) SetValue(s string) *DeviceOnTimeDailyUpdate
SetValue sets the "value" field.
func (*DeviceOnTimeDailyUpdate) Where ¶
func (dotdu *DeviceOnTimeDailyUpdate) Where(ps ...predicate.DeviceOnTimeDaily) *DeviceOnTimeDailyUpdate
Where appends a list predicates to the DeviceOnTimeDailyUpdate builder.
type DeviceOnTimeDailyUpdateOne ¶
type DeviceOnTimeDailyUpdateOne struct {
// contains filtered or unexported fields
}
DeviceOnTimeDailyUpdateOne is the builder for updating a single DeviceOnTimeDaily entity.
func (*DeviceOnTimeDailyUpdateOne) AddSort ¶
func (dotduo *DeviceOnTimeDailyUpdateOne) AddSort(u int32) *DeviceOnTimeDailyUpdateOne
AddSort adds u to the "sort" field.
func (*DeviceOnTimeDailyUpdateOne) AddStatus ¶
func (dotduo *DeviceOnTimeDailyUpdateOne) AddStatus(u int8) *DeviceOnTimeDailyUpdateOne
AddStatus adds u to the "status" field.
func (*DeviceOnTimeDailyUpdateOne) ClearStatus ¶
func (dotduo *DeviceOnTimeDailyUpdateOne) ClearStatus() *DeviceOnTimeDailyUpdateOne
ClearStatus clears the value of the "status" field.
func (*DeviceOnTimeDailyUpdateOne) ClearTime ¶
func (dotduo *DeviceOnTimeDailyUpdateOne) ClearTime() *DeviceOnTimeDailyUpdateOne
ClearTime clears the value of the "time" field.
func (*DeviceOnTimeDailyUpdateOne) ClearValue ¶
func (dotduo *DeviceOnTimeDailyUpdateOne) ClearValue() *DeviceOnTimeDailyUpdateOne
ClearValue clears the value of the "value" field.
func (*DeviceOnTimeDailyUpdateOne) Exec ¶
func (dotduo *DeviceOnTimeDailyUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*DeviceOnTimeDailyUpdateOne) ExecContext ¶
func (c *DeviceOnTimeDailyUpdateOne) 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 (*DeviceOnTimeDailyUpdateOne) ExecX ¶
func (dotduo *DeviceOnTimeDailyUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceOnTimeDailyUpdateOne) Modify ¶
func (dotduo *DeviceOnTimeDailyUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceOnTimeDailyUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*DeviceOnTimeDailyUpdateOne) Mutation ¶
func (dotduo *DeviceOnTimeDailyUpdateOne) Mutation() *DeviceOnTimeDailyMutation
Mutation returns the DeviceOnTimeDailyMutation object of the builder.
func (*DeviceOnTimeDailyUpdateOne) QueryContext ¶
func (c *DeviceOnTimeDailyUpdateOne) 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 (*DeviceOnTimeDailyUpdateOne) Save ¶
func (dotduo *DeviceOnTimeDailyUpdateOne) Save(ctx context.Context) (*DeviceOnTimeDaily, error)
Save executes the query and returns the updated DeviceOnTimeDaily entity.
func (*DeviceOnTimeDailyUpdateOne) SaveX ¶
func (dotduo *DeviceOnTimeDailyUpdateOne) SaveX(ctx context.Context) *DeviceOnTimeDaily
SaveX is like Save, but panics if an error occurs.
func (*DeviceOnTimeDailyUpdateOne) Select ¶
func (dotduo *DeviceOnTimeDailyUpdateOne) Select(field string, fields ...string) *DeviceOnTimeDailyUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*DeviceOnTimeDailyUpdateOne) SetDeviceName ¶
func (dotduo *DeviceOnTimeDailyUpdateOne) SetDeviceName(s string) *DeviceOnTimeDailyUpdateOne
SetDeviceName sets the "deviceName" field.
func (*DeviceOnTimeDailyUpdateOne) SetIotID ¶
func (dotduo *DeviceOnTimeDailyUpdateOne) SetIotID(s string) *DeviceOnTimeDailyUpdateOne
SetIotID sets the "iotID" field.
func (*DeviceOnTimeDailyUpdateOne) SetNillableDeviceName ¶
func (dotduo *DeviceOnTimeDailyUpdateOne) SetNillableDeviceName(s *string) *DeviceOnTimeDailyUpdateOne
SetNillableDeviceName sets the "deviceName" field if the given value is not nil.
func (*DeviceOnTimeDailyUpdateOne) SetNillableIotID ¶
func (dotduo *DeviceOnTimeDailyUpdateOne) SetNillableIotID(s *string) *DeviceOnTimeDailyUpdateOne
SetNillableIotID sets the "iotID" field if the given value is not nil.
func (*DeviceOnTimeDailyUpdateOne) SetNillableProductKey ¶
func (dotduo *DeviceOnTimeDailyUpdateOne) SetNillableProductKey(s *string) *DeviceOnTimeDailyUpdateOne
SetNillableProductKey sets the "productKey" field if the given value is not nil.
func (*DeviceOnTimeDailyUpdateOne) SetNillableSort ¶
func (dotduo *DeviceOnTimeDailyUpdateOne) SetNillableSort(u *uint32) *DeviceOnTimeDailyUpdateOne
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DeviceOnTimeDailyUpdateOne) SetNillableStatus ¶
func (dotduo *DeviceOnTimeDailyUpdateOne) SetNillableStatus(u *uint8) *DeviceOnTimeDailyUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DeviceOnTimeDailyUpdateOne) SetNillableTime ¶
func (dotduo *DeviceOnTimeDailyUpdateOne) SetNillableTime(s *string) *DeviceOnTimeDailyUpdateOne
SetNillableTime sets the "time" field if the given value is not nil.
func (*DeviceOnTimeDailyUpdateOne) SetNillableValue ¶
func (dotduo *DeviceOnTimeDailyUpdateOne) SetNillableValue(s *string) *DeviceOnTimeDailyUpdateOne
SetNillableValue sets the "value" field if the given value is not nil.
func (*DeviceOnTimeDailyUpdateOne) SetNotNilDeviceName ¶
func (dotd *DeviceOnTimeDailyUpdateOne) SetNotNilDeviceName(value *string) *DeviceOnTimeDailyUpdateOne
set field if value's pointer is not nil.
func (*DeviceOnTimeDailyUpdateOne) SetNotNilIotID ¶
func (dotd *DeviceOnTimeDailyUpdateOne) SetNotNilIotID(value *string) *DeviceOnTimeDailyUpdateOne
set field if value's pointer is not nil.
func (*DeviceOnTimeDailyUpdateOne) SetNotNilProductKey ¶
func (dotd *DeviceOnTimeDailyUpdateOne) SetNotNilProductKey(value *string) *DeviceOnTimeDailyUpdateOne
set field if value's pointer is not nil.
func (*DeviceOnTimeDailyUpdateOne) SetNotNilSort ¶
func (dotd *DeviceOnTimeDailyUpdateOne) SetNotNilSort(value *uint32) *DeviceOnTimeDailyUpdateOne
set field if value's pointer is not nil.
func (*DeviceOnTimeDailyUpdateOne) SetNotNilStatus ¶
func (dotd *DeviceOnTimeDailyUpdateOne) SetNotNilStatus(value *uint8) *DeviceOnTimeDailyUpdateOne
set field if value's pointer is not nil.
func (*DeviceOnTimeDailyUpdateOne) SetNotNilTime ¶
func (dotd *DeviceOnTimeDailyUpdateOne) SetNotNilTime(value *string) *DeviceOnTimeDailyUpdateOne
set field if value's pointer is not nil.
func (*DeviceOnTimeDailyUpdateOne) SetNotNilUpdatedAt ¶
func (dotd *DeviceOnTimeDailyUpdateOne) SetNotNilUpdatedAt(value *time.Time) *DeviceOnTimeDailyUpdateOne
set field if value's pointer is not nil.
func (*DeviceOnTimeDailyUpdateOne) SetNotNilValue ¶
func (dotd *DeviceOnTimeDailyUpdateOne) SetNotNilValue(value *string) *DeviceOnTimeDailyUpdateOne
set field if value's pointer is not nil.
func (*DeviceOnTimeDailyUpdateOne) SetProductKey ¶
func (dotduo *DeviceOnTimeDailyUpdateOne) SetProductKey(s string) *DeviceOnTimeDailyUpdateOne
SetProductKey sets the "productKey" field.
func (*DeviceOnTimeDailyUpdateOne) SetSort ¶
func (dotduo *DeviceOnTimeDailyUpdateOne) SetSort(u uint32) *DeviceOnTimeDailyUpdateOne
SetSort sets the "sort" field.
func (*DeviceOnTimeDailyUpdateOne) SetStatus ¶
func (dotduo *DeviceOnTimeDailyUpdateOne) SetStatus(u uint8) *DeviceOnTimeDailyUpdateOne
SetStatus sets the "status" field.
func (*DeviceOnTimeDailyUpdateOne) SetTime ¶
func (dotduo *DeviceOnTimeDailyUpdateOne) SetTime(s string) *DeviceOnTimeDailyUpdateOne
SetTime sets the "time" field.
func (*DeviceOnTimeDailyUpdateOne) SetUpdatedAt ¶
func (dotduo *DeviceOnTimeDailyUpdateOne) SetUpdatedAt(t time.Time) *DeviceOnTimeDailyUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*DeviceOnTimeDailyUpdateOne) SetValue ¶
func (dotduo *DeviceOnTimeDailyUpdateOne) SetValue(s string) *DeviceOnTimeDailyUpdateOne
SetValue sets the "value" field.
func (*DeviceOnTimeDailyUpdateOne) Where ¶
func (dotduo *DeviceOnTimeDailyUpdateOne) Where(ps ...predicate.DeviceOnTimeDaily) *DeviceOnTimeDailyUpdateOne
Where appends a list predicates to the DeviceOnTimeDailyUpdate builder.
type DeviceOnTimeDailyUpsert ¶
DeviceOnTimeDailyUpsert is the "OnConflict" setter.
func (*DeviceOnTimeDailyUpsert) AddSort ¶
func (u *DeviceOnTimeDailyUpsert) AddSort(v uint32) *DeviceOnTimeDailyUpsert
AddSort adds v to the "sort" field.
func (*DeviceOnTimeDailyUpsert) AddStatus ¶
func (u *DeviceOnTimeDailyUpsert) AddStatus(v uint8) *DeviceOnTimeDailyUpsert
AddStatus adds v to the "status" field.
func (*DeviceOnTimeDailyUpsert) ClearStatus ¶
func (u *DeviceOnTimeDailyUpsert) ClearStatus() *DeviceOnTimeDailyUpsert
ClearStatus clears the value of the "status" field.
func (*DeviceOnTimeDailyUpsert) ClearTime ¶
func (u *DeviceOnTimeDailyUpsert) ClearTime() *DeviceOnTimeDailyUpsert
ClearTime clears the value of the "time" field.
func (*DeviceOnTimeDailyUpsert) ClearValue ¶
func (u *DeviceOnTimeDailyUpsert) ClearValue() *DeviceOnTimeDailyUpsert
ClearValue clears the value of the "value" field.
func (*DeviceOnTimeDailyUpsert) SetDeviceName ¶
func (u *DeviceOnTimeDailyUpsert) SetDeviceName(v string) *DeviceOnTimeDailyUpsert
SetDeviceName sets the "deviceName" field.
func (*DeviceOnTimeDailyUpsert) SetIotID ¶
func (u *DeviceOnTimeDailyUpsert) SetIotID(v string) *DeviceOnTimeDailyUpsert
SetIotID sets the "iotID" field.
func (*DeviceOnTimeDailyUpsert) SetProductKey ¶
func (u *DeviceOnTimeDailyUpsert) SetProductKey(v string) *DeviceOnTimeDailyUpsert
SetProductKey sets the "productKey" field.
func (*DeviceOnTimeDailyUpsert) SetSort ¶
func (u *DeviceOnTimeDailyUpsert) SetSort(v uint32) *DeviceOnTimeDailyUpsert
SetSort sets the "sort" field.
func (*DeviceOnTimeDailyUpsert) SetStatus ¶
func (u *DeviceOnTimeDailyUpsert) SetStatus(v uint8) *DeviceOnTimeDailyUpsert
SetStatus sets the "status" field.
func (*DeviceOnTimeDailyUpsert) SetTime ¶
func (u *DeviceOnTimeDailyUpsert) SetTime(v string) *DeviceOnTimeDailyUpsert
SetTime sets the "time" field.
func (*DeviceOnTimeDailyUpsert) SetUpdatedAt ¶
func (u *DeviceOnTimeDailyUpsert) SetUpdatedAt(v time.Time) *DeviceOnTimeDailyUpsert
SetUpdatedAt sets the "updated_at" field.
func (*DeviceOnTimeDailyUpsert) SetValue ¶
func (u *DeviceOnTimeDailyUpsert) SetValue(v string) *DeviceOnTimeDailyUpsert
SetValue sets the "value" field.
func (*DeviceOnTimeDailyUpsert) UpdateDeviceName ¶
func (u *DeviceOnTimeDailyUpsert) UpdateDeviceName() *DeviceOnTimeDailyUpsert
UpdateDeviceName sets the "deviceName" field to the value that was provided on create.
func (*DeviceOnTimeDailyUpsert) UpdateIotID ¶
func (u *DeviceOnTimeDailyUpsert) UpdateIotID() *DeviceOnTimeDailyUpsert
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DeviceOnTimeDailyUpsert) UpdateProductKey ¶
func (u *DeviceOnTimeDailyUpsert) UpdateProductKey() *DeviceOnTimeDailyUpsert
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*DeviceOnTimeDailyUpsert) UpdateSort ¶
func (u *DeviceOnTimeDailyUpsert) UpdateSort() *DeviceOnTimeDailyUpsert
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DeviceOnTimeDailyUpsert) UpdateStatus ¶
func (u *DeviceOnTimeDailyUpsert) UpdateStatus() *DeviceOnTimeDailyUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DeviceOnTimeDailyUpsert) UpdateTime ¶
func (u *DeviceOnTimeDailyUpsert) UpdateTime() *DeviceOnTimeDailyUpsert
UpdateTime sets the "time" field to the value that was provided on create.
func (*DeviceOnTimeDailyUpsert) UpdateUpdatedAt ¶
func (u *DeviceOnTimeDailyUpsert) UpdateUpdatedAt() *DeviceOnTimeDailyUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*DeviceOnTimeDailyUpsert) UpdateValue ¶
func (u *DeviceOnTimeDailyUpsert) UpdateValue() *DeviceOnTimeDailyUpsert
UpdateValue sets the "value" field to the value that was provided on create.
type DeviceOnTimeDailyUpsertBulk ¶
type DeviceOnTimeDailyUpsertBulk struct {
// contains filtered or unexported fields
}
DeviceOnTimeDailyUpsertBulk is the builder for "upsert"-ing a bulk of DeviceOnTimeDaily nodes.
func (*DeviceOnTimeDailyUpsertBulk) AddSort ¶
func (u *DeviceOnTimeDailyUpsertBulk) AddSort(v uint32) *DeviceOnTimeDailyUpsertBulk
AddSort adds v to the "sort" field.
func (*DeviceOnTimeDailyUpsertBulk) AddStatus ¶
func (u *DeviceOnTimeDailyUpsertBulk) AddStatus(v uint8) *DeviceOnTimeDailyUpsertBulk
AddStatus adds v to the "status" field.
func (*DeviceOnTimeDailyUpsertBulk) ClearStatus ¶
func (u *DeviceOnTimeDailyUpsertBulk) ClearStatus() *DeviceOnTimeDailyUpsertBulk
ClearStatus clears the value of the "status" field.
func (*DeviceOnTimeDailyUpsertBulk) ClearTime ¶
func (u *DeviceOnTimeDailyUpsertBulk) ClearTime() *DeviceOnTimeDailyUpsertBulk
ClearTime clears the value of the "time" field.
func (*DeviceOnTimeDailyUpsertBulk) ClearValue ¶
func (u *DeviceOnTimeDailyUpsertBulk) ClearValue() *DeviceOnTimeDailyUpsertBulk
ClearValue clears the value of the "value" field.
func (*DeviceOnTimeDailyUpsertBulk) DoNothing ¶
func (u *DeviceOnTimeDailyUpsertBulk) DoNothing() *DeviceOnTimeDailyUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*DeviceOnTimeDailyUpsertBulk) Exec ¶
func (u *DeviceOnTimeDailyUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceOnTimeDailyUpsertBulk) ExecX ¶
func (u *DeviceOnTimeDailyUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceOnTimeDailyUpsertBulk) Ignore ¶
func (u *DeviceOnTimeDailyUpsertBulk) Ignore() *DeviceOnTimeDailyUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.DeviceOnTimeDaily.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*DeviceOnTimeDailyUpsertBulk) SetDeviceName ¶
func (u *DeviceOnTimeDailyUpsertBulk) SetDeviceName(v string) *DeviceOnTimeDailyUpsertBulk
SetDeviceName sets the "deviceName" field.
func (*DeviceOnTimeDailyUpsertBulk) SetIotID ¶
func (u *DeviceOnTimeDailyUpsertBulk) SetIotID(v string) *DeviceOnTimeDailyUpsertBulk
SetIotID sets the "iotID" field.
func (*DeviceOnTimeDailyUpsertBulk) SetProductKey ¶
func (u *DeviceOnTimeDailyUpsertBulk) SetProductKey(v string) *DeviceOnTimeDailyUpsertBulk
SetProductKey sets the "productKey" field.
func (*DeviceOnTimeDailyUpsertBulk) SetSort ¶
func (u *DeviceOnTimeDailyUpsertBulk) SetSort(v uint32) *DeviceOnTimeDailyUpsertBulk
SetSort sets the "sort" field.
func (*DeviceOnTimeDailyUpsertBulk) SetStatus ¶
func (u *DeviceOnTimeDailyUpsertBulk) SetStatus(v uint8) *DeviceOnTimeDailyUpsertBulk
SetStatus sets the "status" field.
func (*DeviceOnTimeDailyUpsertBulk) SetTime ¶
func (u *DeviceOnTimeDailyUpsertBulk) SetTime(v string) *DeviceOnTimeDailyUpsertBulk
SetTime sets the "time" field.
func (*DeviceOnTimeDailyUpsertBulk) SetUpdatedAt ¶
func (u *DeviceOnTimeDailyUpsertBulk) SetUpdatedAt(v time.Time) *DeviceOnTimeDailyUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*DeviceOnTimeDailyUpsertBulk) SetValue ¶
func (u *DeviceOnTimeDailyUpsertBulk) SetValue(v string) *DeviceOnTimeDailyUpsertBulk
SetValue sets the "value" field.
func (*DeviceOnTimeDailyUpsertBulk) Update ¶
func (u *DeviceOnTimeDailyUpsertBulk) Update(set func(*DeviceOnTimeDailyUpsert)) *DeviceOnTimeDailyUpsertBulk
Update allows overriding fields `UPDATE` values. See the DeviceOnTimeDailyCreateBulk.OnConflict documentation for more info.
func (*DeviceOnTimeDailyUpsertBulk) UpdateDeviceName ¶
func (u *DeviceOnTimeDailyUpsertBulk) UpdateDeviceName() *DeviceOnTimeDailyUpsertBulk
UpdateDeviceName sets the "deviceName" field to the value that was provided on create.
func (*DeviceOnTimeDailyUpsertBulk) UpdateIotID ¶
func (u *DeviceOnTimeDailyUpsertBulk) UpdateIotID() *DeviceOnTimeDailyUpsertBulk
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DeviceOnTimeDailyUpsertBulk) UpdateNewValues ¶
func (u *DeviceOnTimeDailyUpsertBulk) UpdateNewValues() *DeviceOnTimeDailyUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.DeviceOnTimeDaily.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(deviceontimedaily.FieldID) }), ). Exec(ctx)
func (*DeviceOnTimeDailyUpsertBulk) UpdateProductKey ¶
func (u *DeviceOnTimeDailyUpsertBulk) UpdateProductKey() *DeviceOnTimeDailyUpsertBulk
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*DeviceOnTimeDailyUpsertBulk) UpdateSort ¶
func (u *DeviceOnTimeDailyUpsertBulk) UpdateSort() *DeviceOnTimeDailyUpsertBulk
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DeviceOnTimeDailyUpsertBulk) UpdateStatus ¶
func (u *DeviceOnTimeDailyUpsertBulk) UpdateStatus() *DeviceOnTimeDailyUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DeviceOnTimeDailyUpsertBulk) UpdateTime ¶
func (u *DeviceOnTimeDailyUpsertBulk) UpdateTime() *DeviceOnTimeDailyUpsertBulk
UpdateTime sets the "time" field to the value that was provided on create.
func (*DeviceOnTimeDailyUpsertBulk) UpdateUpdatedAt ¶
func (u *DeviceOnTimeDailyUpsertBulk) UpdateUpdatedAt() *DeviceOnTimeDailyUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*DeviceOnTimeDailyUpsertBulk) UpdateValue ¶
func (u *DeviceOnTimeDailyUpsertBulk) UpdateValue() *DeviceOnTimeDailyUpsertBulk
UpdateValue sets the "value" field to the value that was provided on create.
type DeviceOnTimeDailyUpsertOne ¶
type DeviceOnTimeDailyUpsertOne struct {
// contains filtered or unexported fields
}
DeviceOnTimeDailyUpsertOne is the builder for "upsert"-ing
one DeviceOnTimeDaily node.
func (*DeviceOnTimeDailyUpsertOne) AddSort ¶
func (u *DeviceOnTimeDailyUpsertOne) AddSort(v uint32) *DeviceOnTimeDailyUpsertOne
AddSort adds v to the "sort" field.
func (*DeviceOnTimeDailyUpsertOne) AddStatus ¶
func (u *DeviceOnTimeDailyUpsertOne) AddStatus(v uint8) *DeviceOnTimeDailyUpsertOne
AddStatus adds v to the "status" field.
func (*DeviceOnTimeDailyUpsertOne) ClearStatus ¶
func (u *DeviceOnTimeDailyUpsertOne) ClearStatus() *DeviceOnTimeDailyUpsertOne
ClearStatus clears the value of the "status" field.
func (*DeviceOnTimeDailyUpsertOne) ClearTime ¶
func (u *DeviceOnTimeDailyUpsertOne) ClearTime() *DeviceOnTimeDailyUpsertOne
ClearTime clears the value of the "time" field.
func (*DeviceOnTimeDailyUpsertOne) ClearValue ¶
func (u *DeviceOnTimeDailyUpsertOne) ClearValue() *DeviceOnTimeDailyUpsertOne
ClearValue clears the value of the "value" field.
func (*DeviceOnTimeDailyUpsertOne) DoNothing ¶
func (u *DeviceOnTimeDailyUpsertOne) DoNothing() *DeviceOnTimeDailyUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*DeviceOnTimeDailyUpsertOne) Exec ¶
func (u *DeviceOnTimeDailyUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceOnTimeDailyUpsertOne) ExecX ¶
func (u *DeviceOnTimeDailyUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceOnTimeDailyUpsertOne) ID ¶
func (u *DeviceOnTimeDailyUpsertOne) ID(ctx context.Context) (id uint64, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*DeviceOnTimeDailyUpsertOne) IDX ¶
func (u *DeviceOnTimeDailyUpsertOne) IDX(ctx context.Context) uint64
IDX is like ID, but panics if an error occurs.
func (*DeviceOnTimeDailyUpsertOne) Ignore ¶
func (u *DeviceOnTimeDailyUpsertOne) Ignore() *DeviceOnTimeDailyUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.DeviceOnTimeDaily.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*DeviceOnTimeDailyUpsertOne) SetDeviceName ¶
func (u *DeviceOnTimeDailyUpsertOne) SetDeviceName(v string) *DeviceOnTimeDailyUpsertOne
SetDeviceName sets the "deviceName" field.
func (*DeviceOnTimeDailyUpsertOne) SetIotID ¶
func (u *DeviceOnTimeDailyUpsertOne) SetIotID(v string) *DeviceOnTimeDailyUpsertOne
SetIotID sets the "iotID" field.
func (*DeviceOnTimeDailyUpsertOne) SetProductKey ¶
func (u *DeviceOnTimeDailyUpsertOne) SetProductKey(v string) *DeviceOnTimeDailyUpsertOne
SetProductKey sets the "productKey" field.
func (*DeviceOnTimeDailyUpsertOne) SetSort ¶
func (u *DeviceOnTimeDailyUpsertOne) SetSort(v uint32) *DeviceOnTimeDailyUpsertOne
SetSort sets the "sort" field.
func (*DeviceOnTimeDailyUpsertOne) SetStatus ¶
func (u *DeviceOnTimeDailyUpsertOne) SetStatus(v uint8) *DeviceOnTimeDailyUpsertOne
SetStatus sets the "status" field.
func (*DeviceOnTimeDailyUpsertOne) SetTime ¶
func (u *DeviceOnTimeDailyUpsertOne) SetTime(v string) *DeviceOnTimeDailyUpsertOne
SetTime sets the "time" field.
func (*DeviceOnTimeDailyUpsertOne) SetUpdatedAt ¶
func (u *DeviceOnTimeDailyUpsertOne) SetUpdatedAt(v time.Time) *DeviceOnTimeDailyUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*DeviceOnTimeDailyUpsertOne) SetValue ¶
func (u *DeviceOnTimeDailyUpsertOne) SetValue(v string) *DeviceOnTimeDailyUpsertOne
SetValue sets the "value" field.
func (*DeviceOnTimeDailyUpsertOne) Update ¶
func (u *DeviceOnTimeDailyUpsertOne) Update(set func(*DeviceOnTimeDailyUpsert)) *DeviceOnTimeDailyUpsertOne
Update allows overriding fields `UPDATE` values. See the DeviceOnTimeDailyCreate.OnConflict documentation for more info.
func (*DeviceOnTimeDailyUpsertOne) UpdateDeviceName ¶
func (u *DeviceOnTimeDailyUpsertOne) UpdateDeviceName() *DeviceOnTimeDailyUpsertOne
UpdateDeviceName sets the "deviceName" field to the value that was provided on create.
func (*DeviceOnTimeDailyUpsertOne) UpdateIotID ¶
func (u *DeviceOnTimeDailyUpsertOne) UpdateIotID() *DeviceOnTimeDailyUpsertOne
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DeviceOnTimeDailyUpsertOne) UpdateNewValues ¶
func (u *DeviceOnTimeDailyUpsertOne) UpdateNewValues() *DeviceOnTimeDailyUpsertOne
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.DeviceOnTimeDaily.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(deviceontimedaily.FieldID) }), ). Exec(ctx)
func (*DeviceOnTimeDailyUpsertOne) UpdateProductKey ¶
func (u *DeviceOnTimeDailyUpsertOne) UpdateProductKey() *DeviceOnTimeDailyUpsertOne
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*DeviceOnTimeDailyUpsertOne) UpdateSort ¶
func (u *DeviceOnTimeDailyUpsertOne) UpdateSort() *DeviceOnTimeDailyUpsertOne
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DeviceOnTimeDailyUpsertOne) UpdateStatus ¶
func (u *DeviceOnTimeDailyUpsertOne) UpdateStatus() *DeviceOnTimeDailyUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DeviceOnTimeDailyUpsertOne) UpdateTime ¶
func (u *DeviceOnTimeDailyUpsertOne) UpdateTime() *DeviceOnTimeDailyUpsertOne
UpdateTime sets the "time" field to the value that was provided on create.
func (*DeviceOnTimeDailyUpsertOne) UpdateUpdatedAt ¶
func (u *DeviceOnTimeDailyUpsertOne) UpdateUpdatedAt() *DeviceOnTimeDailyUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*DeviceOnTimeDailyUpsertOne) UpdateValue ¶
func (u *DeviceOnTimeDailyUpsertOne) UpdateValue() *DeviceOnTimeDailyUpsertOne
UpdateValue sets the "value" field to the value that was provided on create.
type DeviceOnlineTime ¶
type DeviceOnlineTime struct { // ID of the ent. ID uint64 `json:"id,omitempty"` // Create Time | 创建日期 CreatedAt time.Time `json:"created_at,omitempty"` // Update Time | 修改日期 UpdatedAt time.Time `json:"updated_at,omitempty"` // Status 1: normal 2: ban | 状态 1 正常 2 禁用 Status uint8 `json:"status,omitempty"` // Sort Number | 排序编号 Sort uint32 `json:"sort,omitempty"` // Iot Id | 设备ID IotID string `json:"iotID,omitempty"` // Device Name | 设备名称 DeviceName string `json:"deviceName,omitempty"` // Product Key | 产品Key ProductKey string `json:"productKey,omitempty"` // GMT Online | GMT最近一次上线的时间 GmtOnline string `json:"gmtOnline,omitempty"` // contains filtered or unexported fields }
DeviceOnlineTime is the model entity for the DeviceOnlineTime schema.
func (*DeviceOnlineTime) ExecContext ¶
func (c *DeviceOnlineTime) 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 (*DeviceOnlineTime) QueryContext ¶
func (c *DeviceOnlineTime) 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 (*DeviceOnlineTime) String ¶
func (dot *DeviceOnlineTime) String() string
String implements the fmt.Stringer.
func (*DeviceOnlineTime) Unwrap ¶
func (dot *DeviceOnlineTime) Unwrap() *DeviceOnlineTime
Unwrap unwraps the DeviceOnlineTime 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 (*DeviceOnlineTime) Update ¶
func (dot *DeviceOnlineTime) Update() *DeviceOnlineTimeUpdateOne
Update returns a builder for updating this DeviceOnlineTime. Note that you need to call DeviceOnlineTime.Unwrap() before calling this method if this DeviceOnlineTime was returned from a transaction, and the transaction was committed or rolled back.
type DeviceOnlineTimeClient ¶
type DeviceOnlineTimeClient struct {
// contains filtered or unexported fields
}
DeviceOnlineTimeClient is a client for the DeviceOnlineTime schema.
func NewDeviceOnlineTimeClient ¶
func NewDeviceOnlineTimeClient(c config) *DeviceOnlineTimeClient
NewDeviceOnlineTimeClient returns a client for the DeviceOnlineTime from the given config.
func (*DeviceOnlineTimeClient) Create ¶
func (c *DeviceOnlineTimeClient) Create() *DeviceOnlineTimeCreate
Create returns a builder for creating a DeviceOnlineTime entity.
func (*DeviceOnlineTimeClient) CreateBulk ¶
func (c *DeviceOnlineTimeClient) CreateBulk(builders ...*DeviceOnlineTimeCreate) *DeviceOnlineTimeCreateBulk
CreateBulk returns a builder for creating a bulk of DeviceOnlineTime entities.
func (*DeviceOnlineTimeClient) Delete ¶
func (c *DeviceOnlineTimeClient) Delete() *DeviceOnlineTimeDelete
Delete returns a delete builder for DeviceOnlineTime.
func (*DeviceOnlineTimeClient) DeleteOne ¶
func (c *DeviceOnlineTimeClient) DeleteOne(dot *DeviceOnlineTime) *DeviceOnlineTimeDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*DeviceOnlineTimeClient) DeleteOneID ¶
func (c *DeviceOnlineTimeClient) DeleteOneID(id uint64) *DeviceOnlineTimeDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*DeviceOnlineTimeClient) ExecContext ¶
func (c *DeviceOnlineTimeClient) 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 (*DeviceOnlineTimeClient) Get ¶
func (c *DeviceOnlineTimeClient) Get(ctx context.Context, id uint64) (*DeviceOnlineTime, error)
Get returns a DeviceOnlineTime entity by its id.
func (*DeviceOnlineTimeClient) GetX ¶
func (c *DeviceOnlineTimeClient) GetX(ctx context.Context, id uint64) *DeviceOnlineTime
GetX is like Get, but panics if an error occurs.
func (*DeviceOnlineTimeClient) Hooks ¶
func (c *DeviceOnlineTimeClient) Hooks() []Hook
Hooks returns the client hooks.
func (*DeviceOnlineTimeClient) Intercept ¶
func (c *DeviceOnlineTimeClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `deviceonlinetime.Intercept(f(g(h())))`.
func (*DeviceOnlineTimeClient) Interceptors ¶
func (c *DeviceOnlineTimeClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*DeviceOnlineTimeClient) MapCreateBulk ¶
func (c *DeviceOnlineTimeClient) MapCreateBulk(slice any, setFunc func(*DeviceOnlineTimeCreate, int)) *DeviceOnlineTimeCreateBulk
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 (*DeviceOnlineTimeClient) Query ¶
func (c *DeviceOnlineTimeClient) Query() *DeviceOnlineTimeQuery
Query returns a query builder for DeviceOnlineTime.
func (*DeviceOnlineTimeClient) QueryContext ¶
func (c *DeviceOnlineTimeClient) 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 (*DeviceOnlineTimeClient) Update ¶
func (c *DeviceOnlineTimeClient) Update() *DeviceOnlineTimeUpdate
Update returns an update builder for DeviceOnlineTime.
func (*DeviceOnlineTimeClient) UpdateOne ¶
func (c *DeviceOnlineTimeClient) UpdateOne(dot *DeviceOnlineTime) *DeviceOnlineTimeUpdateOne
UpdateOne returns an update builder for the given entity.
func (*DeviceOnlineTimeClient) UpdateOneID ¶
func (c *DeviceOnlineTimeClient) UpdateOneID(id uint64) *DeviceOnlineTimeUpdateOne
UpdateOneID returns an update builder for the given id.
func (*DeviceOnlineTimeClient) Use ¶
func (c *DeviceOnlineTimeClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `deviceonlinetime.Hooks(f(g(h())))`.
type DeviceOnlineTimeCreate ¶
type DeviceOnlineTimeCreate struct { Table string // contains filtered or unexported fields }
DeviceOnlineTimeCreate is the builder for creating a DeviceOnlineTime entity.
func (*DeviceOnlineTimeCreate) Exec ¶
func (dotc *DeviceOnlineTimeCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceOnlineTimeCreate) ExecContext ¶
func (c *DeviceOnlineTimeCreate) 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 (*DeviceOnlineTimeCreate) ExecX ¶
func (dotc *DeviceOnlineTimeCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceOnlineTimeCreate) Mutation ¶
func (dotc *DeviceOnlineTimeCreate) Mutation() *DeviceOnlineTimeMutation
Mutation returns the DeviceOnlineTimeMutation object of the builder.
func (*DeviceOnlineTimeCreate) OnConflict ¶
func (dotc *DeviceOnlineTimeCreate) OnConflict(opts ...sql.ConflictOption) *DeviceOnlineTimeUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.DeviceOnlineTime.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.DeviceOnlineTimeUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*DeviceOnlineTimeCreate) OnConflictColumns ¶
func (dotc *DeviceOnlineTimeCreate) OnConflictColumns(columns ...string) *DeviceOnlineTimeUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.DeviceOnlineTime.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*DeviceOnlineTimeCreate) QueryContext ¶
func (c *DeviceOnlineTimeCreate) 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 (*DeviceOnlineTimeCreate) Save ¶
func (dotc *DeviceOnlineTimeCreate) Save(ctx context.Context) (*DeviceOnlineTime, error)
Save creates the DeviceOnlineTime in the database.
func (*DeviceOnlineTimeCreate) SaveX ¶
func (dotc *DeviceOnlineTimeCreate) SaveX(ctx context.Context) *DeviceOnlineTime
SaveX calls Save and panics if Save returns an error.
func (*DeviceOnlineTimeCreate) SetCreatedAt ¶
func (dotc *DeviceOnlineTimeCreate) SetCreatedAt(t time.Time) *DeviceOnlineTimeCreate
SetCreatedAt sets the "created_at" field.
func (*DeviceOnlineTimeCreate) SetDeviceName ¶
func (dotc *DeviceOnlineTimeCreate) SetDeviceName(s string) *DeviceOnlineTimeCreate
SetDeviceName sets the "deviceName" field.
func (*DeviceOnlineTimeCreate) SetGmtOnline ¶
func (dotc *DeviceOnlineTimeCreate) SetGmtOnline(s string) *DeviceOnlineTimeCreate
SetGmtOnline sets the "gmtOnline" field.
func (*DeviceOnlineTimeCreate) SetID ¶
func (dotc *DeviceOnlineTimeCreate) SetID(u uint64) *DeviceOnlineTimeCreate
SetID sets the "id" field.
func (*DeviceOnlineTimeCreate) SetIotID ¶
func (dotc *DeviceOnlineTimeCreate) SetIotID(s string) *DeviceOnlineTimeCreate
SetIotID sets the "iotID" field.
func (*DeviceOnlineTimeCreate) SetNillableCreatedAt ¶
func (dotc *DeviceOnlineTimeCreate) SetNillableCreatedAt(t *time.Time) *DeviceOnlineTimeCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*DeviceOnlineTimeCreate) SetNillableGmtOnline ¶
func (dotc *DeviceOnlineTimeCreate) SetNillableGmtOnline(s *string) *DeviceOnlineTimeCreate
SetNillableGmtOnline sets the "gmtOnline" field if the given value is not nil.
func (*DeviceOnlineTimeCreate) SetNillableSort ¶
func (dotc *DeviceOnlineTimeCreate) SetNillableSort(u *uint32) *DeviceOnlineTimeCreate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DeviceOnlineTimeCreate) SetNillableStatus ¶
func (dotc *DeviceOnlineTimeCreate) SetNillableStatus(u *uint8) *DeviceOnlineTimeCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DeviceOnlineTimeCreate) SetNillableUpdatedAt ¶
func (dotc *DeviceOnlineTimeCreate) SetNillableUpdatedAt(t *time.Time) *DeviceOnlineTimeCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*DeviceOnlineTimeCreate) SetNotNilDeviceName ¶
func (dot *DeviceOnlineTimeCreate) SetNotNilDeviceName(value *string) *DeviceOnlineTimeCreate
set field if value's pointer is not nil.
func (*DeviceOnlineTimeCreate) SetNotNilGmtOnline ¶
func (dot *DeviceOnlineTimeCreate) SetNotNilGmtOnline(value *string) *DeviceOnlineTimeCreate
set field if value's pointer is not nil.
func (*DeviceOnlineTimeCreate) SetNotNilIotID ¶
func (dot *DeviceOnlineTimeCreate) SetNotNilIotID(value *string) *DeviceOnlineTimeCreate
set field if value's pointer is not nil.
func (*DeviceOnlineTimeCreate) SetNotNilProductKey ¶
func (dot *DeviceOnlineTimeCreate) SetNotNilProductKey(value *string) *DeviceOnlineTimeCreate
set field if value's pointer is not nil.
func (*DeviceOnlineTimeCreate) SetNotNilSort ¶
func (dot *DeviceOnlineTimeCreate) SetNotNilSort(value *uint32) *DeviceOnlineTimeCreate
set field if value's pointer is not nil.
func (*DeviceOnlineTimeCreate) SetNotNilStatus ¶
func (dot *DeviceOnlineTimeCreate) SetNotNilStatus(value *uint8) *DeviceOnlineTimeCreate
set field if value's pointer is not nil.
func (*DeviceOnlineTimeCreate) SetNotNilUpdatedAt ¶
func (dot *DeviceOnlineTimeCreate) SetNotNilUpdatedAt(value *time.Time) *DeviceOnlineTimeCreate
set field if value's pointer is not nil.
func (*DeviceOnlineTimeCreate) SetProductKey ¶
func (dotc *DeviceOnlineTimeCreate) SetProductKey(s string) *DeviceOnlineTimeCreate
SetProductKey sets the "productKey" field.
func (*DeviceOnlineTimeCreate) SetSort ¶
func (dotc *DeviceOnlineTimeCreate) SetSort(u uint32) *DeviceOnlineTimeCreate
SetSort sets the "sort" field.
func (*DeviceOnlineTimeCreate) SetStatus ¶
func (dotc *DeviceOnlineTimeCreate) SetStatus(u uint8) *DeviceOnlineTimeCreate
SetStatus sets the "status" field.
func (*DeviceOnlineTimeCreate) SetUpdatedAt ¶
func (dotc *DeviceOnlineTimeCreate) SetUpdatedAt(t time.Time) *DeviceOnlineTimeCreate
SetUpdatedAt sets the "updated_at" field.
func (*DeviceOnlineTimeCreate) TableName ¶
func (dotc *DeviceOnlineTimeCreate) TableName(s string) *DeviceOnlineTimeCreate
type DeviceOnlineTimeCreateBulk ¶
type DeviceOnlineTimeCreateBulk struct {
// contains filtered or unexported fields
}
DeviceOnlineTimeCreateBulk is the builder for creating many DeviceOnlineTime entities in bulk.
func (*DeviceOnlineTimeCreateBulk) Exec ¶
func (dotcb *DeviceOnlineTimeCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceOnlineTimeCreateBulk) ExecContext ¶
func (c *DeviceOnlineTimeCreateBulk) 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 (*DeviceOnlineTimeCreateBulk) ExecX ¶
func (dotcb *DeviceOnlineTimeCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceOnlineTimeCreateBulk) OnConflict ¶
func (dotcb *DeviceOnlineTimeCreateBulk) OnConflict(opts ...sql.ConflictOption) *DeviceOnlineTimeUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.DeviceOnlineTime.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.DeviceOnlineTimeUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*DeviceOnlineTimeCreateBulk) OnConflictColumns ¶
func (dotcb *DeviceOnlineTimeCreateBulk) OnConflictColumns(columns ...string) *DeviceOnlineTimeUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.DeviceOnlineTime.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*DeviceOnlineTimeCreateBulk) QueryContext ¶
func (c *DeviceOnlineTimeCreateBulk) 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 (*DeviceOnlineTimeCreateBulk) Save ¶
func (dotcb *DeviceOnlineTimeCreateBulk) Save(ctx context.Context) ([]*DeviceOnlineTime, error)
Save creates the DeviceOnlineTime entities in the database.
func (*DeviceOnlineTimeCreateBulk) SaveX ¶
func (dotcb *DeviceOnlineTimeCreateBulk) SaveX(ctx context.Context) []*DeviceOnlineTime
SaveX is like Save, but panics if an error occurs.
type DeviceOnlineTimeDelete ¶
type DeviceOnlineTimeDelete struct {
// contains filtered or unexported fields
}
DeviceOnlineTimeDelete is the builder for deleting a DeviceOnlineTime entity.
func (*DeviceOnlineTimeDelete) Exec ¶
func (dotd *DeviceOnlineTimeDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*DeviceOnlineTimeDelete) ExecContext ¶
func (c *DeviceOnlineTimeDelete) 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 (*DeviceOnlineTimeDelete) ExecX ¶
func (dotd *DeviceOnlineTimeDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*DeviceOnlineTimeDelete) QueryContext ¶
func (c *DeviceOnlineTimeDelete) 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 (*DeviceOnlineTimeDelete) Where ¶
func (dotd *DeviceOnlineTimeDelete) Where(ps ...predicate.DeviceOnlineTime) *DeviceOnlineTimeDelete
Where appends a list predicates to the DeviceOnlineTimeDelete builder.
type DeviceOnlineTimeDeleteOne ¶
type DeviceOnlineTimeDeleteOne struct {
// contains filtered or unexported fields
}
DeviceOnlineTimeDeleteOne is the builder for deleting a single DeviceOnlineTime entity.
func (*DeviceOnlineTimeDeleteOne) Exec ¶
func (dotdo *DeviceOnlineTimeDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*DeviceOnlineTimeDeleteOne) ExecX ¶
func (dotdo *DeviceOnlineTimeDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceOnlineTimeDeleteOne) Where ¶
func (dotdo *DeviceOnlineTimeDeleteOne) Where(ps ...predicate.DeviceOnlineTime) *DeviceOnlineTimeDeleteOne
Where appends a list predicates to the DeviceOnlineTimeDelete builder.
type DeviceOnlineTimeGroupBy ¶
type DeviceOnlineTimeGroupBy struct {
// contains filtered or unexported fields
}
DeviceOnlineTimeGroupBy is the group-by builder for DeviceOnlineTime entities.
func (*DeviceOnlineTimeGroupBy) Aggregate ¶
func (dotgb *DeviceOnlineTimeGroupBy) Aggregate(fns ...AggregateFunc) *DeviceOnlineTimeGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*DeviceOnlineTimeGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DeviceOnlineTimeGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*DeviceOnlineTimeGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DeviceOnlineTimeGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DeviceOnlineTimeGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*DeviceOnlineTimeGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DeviceOnlineTimeGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*DeviceOnlineTimeGroupBy) Scan ¶
func (dotgb *DeviceOnlineTimeGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*DeviceOnlineTimeGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type DeviceOnlineTimeMutation ¶
type DeviceOnlineTimeMutation struct {
// contains filtered or unexported fields
}
DeviceOnlineTimeMutation represents an operation that mutates the DeviceOnlineTime nodes in the graph.
func (*DeviceOnlineTimeMutation) AddField ¶
func (m *DeviceOnlineTimeMutation) 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 (*DeviceOnlineTimeMutation) AddSort ¶
func (m *DeviceOnlineTimeMutation) AddSort(u int32)
AddSort adds u to the "sort" field.
func (*DeviceOnlineTimeMutation) AddStatus ¶
func (m *DeviceOnlineTimeMutation) AddStatus(u int8)
AddStatus adds u to the "status" field.
func (*DeviceOnlineTimeMutation) AddedEdges ¶
func (m *DeviceOnlineTimeMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*DeviceOnlineTimeMutation) AddedField ¶
func (m *DeviceOnlineTimeMutation) 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 (*DeviceOnlineTimeMutation) AddedFields ¶
func (m *DeviceOnlineTimeMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*DeviceOnlineTimeMutation) AddedIDs ¶
func (m *DeviceOnlineTimeMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*DeviceOnlineTimeMutation) AddedSort ¶
func (m *DeviceOnlineTimeMutation) AddedSort() (r int32, exists bool)
AddedSort returns the value that was added to the "sort" field in this mutation.
func (*DeviceOnlineTimeMutation) AddedStatus ¶
func (m *DeviceOnlineTimeMutation) AddedStatus() (r int8, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*DeviceOnlineTimeMutation) ClearEdge ¶
func (m *DeviceOnlineTimeMutation) 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 (*DeviceOnlineTimeMutation) ClearField ¶
func (m *DeviceOnlineTimeMutation) 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 (*DeviceOnlineTimeMutation) ClearGmtOnline ¶
func (m *DeviceOnlineTimeMutation) ClearGmtOnline()
ClearGmtOnline clears the value of the "gmtOnline" field.
func (*DeviceOnlineTimeMutation) ClearStatus ¶
func (m *DeviceOnlineTimeMutation) ClearStatus()
ClearStatus clears the value of the "status" field.
func (*DeviceOnlineTimeMutation) ClearedEdges ¶
func (m *DeviceOnlineTimeMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*DeviceOnlineTimeMutation) ClearedFields ¶
func (m *DeviceOnlineTimeMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (DeviceOnlineTimeMutation) Client ¶
func (m DeviceOnlineTimeMutation) 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 (*DeviceOnlineTimeMutation) CreatedAt ¶
func (m *DeviceOnlineTimeMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*DeviceOnlineTimeMutation) DeviceName ¶
func (m *DeviceOnlineTimeMutation) DeviceName() (r string, exists bool)
DeviceName returns the value of the "deviceName" field in the mutation.
func (*DeviceOnlineTimeMutation) EdgeCleared ¶
func (m *DeviceOnlineTimeMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*DeviceOnlineTimeMutation) ExecContext ¶
func (c *DeviceOnlineTimeMutation) 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 (*DeviceOnlineTimeMutation) Field ¶
func (m *DeviceOnlineTimeMutation) 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 (*DeviceOnlineTimeMutation) FieldCleared ¶
func (m *DeviceOnlineTimeMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*DeviceOnlineTimeMutation) Fields ¶
func (m *DeviceOnlineTimeMutation) 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 (*DeviceOnlineTimeMutation) GmtOnline ¶
func (m *DeviceOnlineTimeMutation) GmtOnline() (r string, exists bool)
GmtOnline returns the value of the "gmtOnline" field in the mutation.
func (*DeviceOnlineTimeMutation) GmtOnlineCleared ¶
func (m *DeviceOnlineTimeMutation) GmtOnlineCleared() bool
GmtOnlineCleared returns if the "gmtOnline" field was cleared in this mutation.
func (*DeviceOnlineTimeMutation) ID ¶
func (m *DeviceOnlineTimeMutation) ID() (id uint64, 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 (*DeviceOnlineTimeMutation) IDs ¶
func (m *DeviceOnlineTimeMutation) IDs(ctx context.Context) ([]uint64, 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 (*DeviceOnlineTimeMutation) IotID ¶
func (m *DeviceOnlineTimeMutation) IotID() (r string, exists bool)
IotID returns the value of the "iotID" field in the mutation.
func (*DeviceOnlineTimeMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the DeviceOnlineTime entity. If the DeviceOnlineTime 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 (*DeviceOnlineTimeMutation) OldDeviceName ¶
func (m *DeviceOnlineTimeMutation) OldDeviceName(ctx context.Context) (v string, err error)
OldDeviceName returns the old "deviceName" field's value of the DeviceOnlineTime entity. If the DeviceOnlineTime 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 (*DeviceOnlineTimeMutation) 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 (*DeviceOnlineTimeMutation) OldGmtOnline ¶
func (m *DeviceOnlineTimeMutation) OldGmtOnline(ctx context.Context) (v string, err error)
OldGmtOnline returns the old "gmtOnline" field's value of the DeviceOnlineTime entity. If the DeviceOnlineTime 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 (*DeviceOnlineTimeMutation) OldIotID ¶
func (m *DeviceOnlineTimeMutation) OldIotID(ctx context.Context) (v string, err error)
OldIotID returns the old "iotID" field's value of the DeviceOnlineTime entity. If the DeviceOnlineTime 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 (*DeviceOnlineTimeMutation) OldProductKey ¶
func (m *DeviceOnlineTimeMutation) OldProductKey(ctx context.Context) (v string, err error)
OldProductKey returns the old "productKey" field's value of the DeviceOnlineTime entity. If the DeviceOnlineTime 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 (*DeviceOnlineTimeMutation) OldSort ¶
func (m *DeviceOnlineTimeMutation) OldSort(ctx context.Context) (v uint32, err error)
OldSort returns the old "sort" field's value of the DeviceOnlineTime entity. If the DeviceOnlineTime 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 (*DeviceOnlineTimeMutation) OldStatus ¶
func (m *DeviceOnlineTimeMutation) OldStatus(ctx context.Context) (v uint8, err error)
OldStatus returns the old "status" field's value of the DeviceOnlineTime entity. If the DeviceOnlineTime 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 (*DeviceOnlineTimeMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the DeviceOnlineTime entity. If the DeviceOnlineTime 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 (*DeviceOnlineTimeMutation) Op ¶
func (m *DeviceOnlineTimeMutation) Op() Op
Op returns the operation name.
func (*DeviceOnlineTimeMutation) ProductKey ¶
func (m *DeviceOnlineTimeMutation) ProductKey() (r string, exists bool)
ProductKey returns the value of the "productKey" field in the mutation.
func (*DeviceOnlineTimeMutation) QueryContext ¶
func (c *DeviceOnlineTimeMutation) 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 (*DeviceOnlineTimeMutation) RemovedEdges ¶
func (m *DeviceOnlineTimeMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*DeviceOnlineTimeMutation) RemovedIDs ¶
func (m *DeviceOnlineTimeMutation) 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 (*DeviceOnlineTimeMutation) ResetCreatedAt ¶
func (m *DeviceOnlineTimeMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*DeviceOnlineTimeMutation) ResetDeviceName ¶
func (m *DeviceOnlineTimeMutation) ResetDeviceName()
ResetDeviceName resets all changes to the "deviceName" field.
func (*DeviceOnlineTimeMutation) ResetEdge ¶
func (m *DeviceOnlineTimeMutation) 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 (*DeviceOnlineTimeMutation) ResetField ¶
func (m *DeviceOnlineTimeMutation) 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 (*DeviceOnlineTimeMutation) ResetGmtOnline ¶
func (m *DeviceOnlineTimeMutation) ResetGmtOnline()
ResetGmtOnline resets all changes to the "gmtOnline" field.
func (*DeviceOnlineTimeMutation) ResetIotID ¶
func (m *DeviceOnlineTimeMutation) ResetIotID()
ResetIotID resets all changes to the "iotID" field.
func (*DeviceOnlineTimeMutation) ResetProductKey ¶
func (m *DeviceOnlineTimeMutation) ResetProductKey()
ResetProductKey resets all changes to the "productKey" field.
func (*DeviceOnlineTimeMutation) ResetSort ¶
func (m *DeviceOnlineTimeMutation) ResetSort()
ResetSort resets all changes to the "sort" field.
func (*DeviceOnlineTimeMutation) ResetStatus ¶
func (m *DeviceOnlineTimeMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*DeviceOnlineTimeMutation) ResetUpdatedAt ¶
func (m *DeviceOnlineTimeMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*DeviceOnlineTimeMutation) SetCreatedAt ¶
func (m *DeviceOnlineTimeMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*DeviceOnlineTimeMutation) SetDeviceName ¶
func (m *DeviceOnlineTimeMutation) SetDeviceName(s string)
SetDeviceName sets the "deviceName" field.
func (*DeviceOnlineTimeMutation) SetField ¶
func (m *DeviceOnlineTimeMutation) 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 (*DeviceOnlineTimeMutation) SetGmtOnline ¶
func (m *DeviceOnlineTimeMutation) SetGmtOnline(s string)
SetGmtOnline sets the "gmtOnline" field.
func (*DeviceOnlineTimeMutation) SetID ¶
func (m *DeviceOnlineTimeMutation) SetID(id uint64)
SetID sets the value of the id field. Note that this operation is only accepted on creation of DeviceOnlineTime entities.
func (*DeviceOnlineTimeMutation) SetIotID ¶
func (m *DeviceOnlineTimeMutation) SetIotID(s string)
SetIotID sets the "iotID" field.
func (*DeviceOnlineTimeMutation) SetOp ¶
func (m *DeviceOnlineTimeMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*DeviceOnlineTimeMutation) SetProductKey ¶
func (m *DeviceOnlineTimeMutation) SetProductKey(s string)
SetProductKey sets the "productKey" field.
func (*DeviceOnlineTimeMutation) SetSort ¶
func (m *DeviceOnlineTimeMutation) SetSort(u uint32)
SetSort sets the "sort" field.
func (*DeviceOnlineTimeMutation) SetStatus ¶
func (m *DeviceOnlineTimeMutation) SetStatus(u uint8)
SetStatus sets the "status" field.
func (*DeviceOnlineTimeMutation) SetUpdatedAt ¶
func (m *DeviceOnlineTimeMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*DeviceOnlineTimeMutation) Sort ¶
func (m *DeviceOnlineTimeMutation) Sort() (r uint32, exists bool)
Sort returns the value of the "sort" field in the mutation.
func (*DeviceOnlineTimeMutation) Status ¶
func (m *DeviceOnlineTimeMutation) Status() (r uint8, exists bool)
Status returns the value of the "status" field in the mutation.
func (*DeviceOnlineTimeMutation) StatusCleared ¶
func (m *DeviceOnlineTimeMutation) StatusCleared() bool
StatusCleared returns if the "status" field was cleared in this mutation.
func (DeviceOnlineTimeMutation) Tx ¶
func (m DeviceOnlineTimeMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*DeviceOnlineTimeMutation) Type ¶
func (m *DeviceOnlineTimeMutation) Type() string
Type returns the node type of this mutation (DeviceOnlineTime).
func (*DeviceOnlineTimeMutation) UpdatedAt ¶
func (m *DeviceOnlineTimeMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*DeviceOnlineTimeMutation) Where ¶
func (m *DeviceOnlineTimeMutation) Where(ps ...predicate.DeviceOnlineTime)
Where appends a list predicates to the DeviceOnlineTimeMutation builder.
func (*DeviceOnlineTimeMutation) WhereP ¶
func (m *DeviceOnlineTimeMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the DeviceOnlineTimeMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type DeviceOnlineTimePageList ¶
type DeviceOnlineTimePageList struct { List []*DeviceOnlineTime `json:"list"` PageDetails *PageDetails `json:"pageDetails"` }
DeviceOnlineTimePageList is DeviceOnlineTime PageList result.
type DeviceOnlineTimePager ¶
type DeviceOnlineTimePager struct { Order deviceonlinetime.OrderOption Filter func(*DeviceOnlineTimeQuery) (*DeviceOnlineTimeQuery, error) }
func (*DeviceOnlineTimePager) ApplyFilter ¶
func (p *DeviceOnlineTimePager) ApplyFilter(query *DeviceOnlineTimeQuery) (*DeviceOnlineTimeQuery, error)
type DeviceOnlineTimePaginateOption ¶
type DeviceOnlineTimePaginateOption func(*DeviceOnlineTimePager)
DeviceOnlineTimePaginateOption enables pagination customization.
type DeviceOnlineTimeQuery ¶
type DeviceOnlineTimeQuery struct {
// contains filtered or unexported fields
}
DeviceOnlineTimeQuery is the builder for querying DeviceOnlineTime entities.
func (*DeviceOnlineTimeQuery) Aggregate ¶
func (dotq *DeviceOnlineTimeQuery) Aggregate(fns ...AggregateFunc) *DeviceOnlineTimeSelect
Aggregate returns a DeviceOnlineTimeSelect configured with the given aggregations.
func (*DeviceOnlineTimeQuery) All ¶
func (dotq *DeviceOnlineTimeQuery) All(ctx context.Context) ([]*DeviceOnlineTime, error)
All executes the query and returns a list of DeviceOnlineTimes.
func (*DeviceOnlineTimeQuery) AllX ¶
func (dotq *DeviceOnlineTimeQuery) AllX(ctx context.Context) []*DeviceOnlineTime
AllX is like All, but panics if an error occurs.
func (*DeviceOnlineTimeQuery) Clone ¶
func (dotq *DeviceOnlineTimeQuery) Clone() *DeviceOnlineTimeQuery
Clone returns a duplicate of the DeviceOnlineTimeQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*DeviceOnlineTimeQuery) Count ¶
func (dotq *DeviceOnlineTimeQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*DeviceOnlineTimeQuery) CountX ¶
func (dotq *DeviceOnlineTimeQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*DeviceOnlineTimeQuery) ExecContext ¶
func (c *DeviceOnlineTimeQuery) 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 (*DeviceOnlineTimeQuery) Exist ¶
func (dotq *DeviceOnlineTimeQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*DeviceOnlineTimeQuery) ExistX ¶
func (dotq *DeviceOnlineTimeQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*DeviceOnlineTimeQuery) First ¶
func (dotq *DeviceOnlineTimeQuery) First(ctx context.Context) (*DeviceOnlineTime, error)
First returns the first DeviceOnlineTime entity from the query. Returns a *NotFoundError when no DeviceOnlineTime was found.
func (*DeviceOnlineTimeQuery) FirstID ¶
func (dotq *DeviceOnlineTimeQuery) FirstID(ctx context.Context) (id uint64, err error)
FirstID returns the first DeviceOnlineTime ID from the query. Returns a *NotFoundError when no DeviceOnlineTime ID was found.
func (*DeviceOnlineTimeQuery) FirstIDX ¶
func (dotq *DeviceOnlineTimeQuery) FirstIDX(ctx context.Context) uint64
FirstIDX is like FirstID, but panics if an error occurs.
func (*DeviceOnlineTimeQuery) FirstX ¶
func (dotq *DeviceOnlineTimeQuery) FirstX(ctx context.Context) *DeviceOnlineTime
FirstX is like First, but panics if an error occurs.
func (*DeviceOnlineTimeQuery) GroupBy ¶
func (dotq *DeviceOnlineTimeQuery) GroupBy(field string, fields ...string) *DeviceOnlineTimeGroupBy
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.DeviceOnlineTime.Query(). GroupBy(deviceonlinetime.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*DeviceOnlineTimeQuery) IDs ¶
func (dotq *DeviceOnlineTimeQuery) IDs(ctx context.Context) (ids []uint64, err error)
IDs executes the query and returns a list of DeviceOnlineTime IDs.
func (*DeviceOnlineTimeQuery) IDsX ¶
func (dotq *DeviceOnlineTimeQuery) IDsX(ctx context.Context) []uint64
IDsX is like IDs, but panics if an error occurs.
func (*DeviceOnlineTimeQuery) Limit ¶
func (dotq *DeviceOnlineTimeQuery) Limit(limit int) *DeviceOnlineTimeQuery
Limit the number of records to be returned by this query.
func (*DeviceOnlineTimeQuery) Modify ¶
func (dotq *DeviceOnlineTimeQuery) Modify(modifiers ...func(s *sql.Selector)) *DeviceOnlineTimeSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*DeviceOnlineTimeQuery) Offset ¶
func (dotq *DeviceOnlineTimeQuery) Offset(offset int) *DeviceOnlineTimeQuery
Offset to start from.
func (*DeviceOnlineTimeQuery) Only ¶
func (dotq *DeviceOnlineTimeQuery) Only(ctx context.Context) (*DeviceOnlineTime, error)
Only returns a single DeviceOnlineTime entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one DeviceOnlineTime entity is found. Returns a *NotFoundError when no DeviceOnlineTime entities are found.
func (*DeviceOnlineTimeQuery) OnlyID ¶
func (dotq *DeviceOnlineTimeQuery) OnlyID(ctx context.Context) (id uint64, err error)
OnlyID is like Only, but returns the only DeviceOnlineTime ID in the query. Returns a *NotSingularError when more than one DeviceOnlineTime ID is found. Returns a *NotFoundError when no entities are found.
func (*DeviceOnlineTimeQuery) OnlyIDX ¶
func (dotq *DeviceOnlineTimeQuery) OnlyIDX(ctx context.Context) uint64
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*DeviceOnlineTimeQuery) OnlyX ¶
func (dotq *DeviceOnlineTimeQuery) OnlyX(ctx context.Context) *DeviceOnlineTime
OnlyX is like Only, but panics if an error occurs.
func (*DeviceOnlineTimeQuery) Order ¶
func (dotq *DeviceOnlineTimeQuery) Order(o ...deviceonlinetime.OrderOption) *DeviceOnlineTimeQuery
Order specifies how the records should be ordered.
func (*DeviceOnlineTimeQuery) Page ¶
func (dot *DeviceOnlineTimeQuery) Page( ctx context.Context, pageNum uint64, pageSize uint64, opts ...DeviceOnlineTimePaginateOption, ) (*DeviceOnlineTimePageList, error)
func (*DeviceOnlineTimeQuery) QueryContext ¶
func (c *DeviceOnlineTimeQuery) 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 (*DeviceOnlineTimeQuery) Select ¶
func (dotq *DeviceOnlineTimeQuery) Select(fields ...string) *DeviceOnlineTimeSelect
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.DeviceOnlineTime.Query(). Select(deviceonlinetime.FieldCreatedAt). Scan(ctx, &v)
func (*DeviceOnlineTimeQuery) Unique ¶
func (dotq *DeviceOnlineTimeQuery) Unique(unique bool) *DeviceOnlineTimeQuery
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 (*DeviceOnlineTimeQuery) Where ¶
func (dotq *DeviceOnlineTimeQuery) Where(ps ...predicate.DeviceOnlineTime) *DeviceOnlineTimeQuery
Where adds a new predicate for the DeviceOnlineTimeQuery builder.
type DeviceOnlineTimeSelect ¶
type DeviceOnlineTimeSelect struct { *DeviceOnlineTimeQuery // contains filtered or unexported fields }
DeviceOnlineTimeSelect is the builder for selecting fields of DeviceOnlineTime entities.
func (*DeviceOnlineTimeSelect) Aggregate ¶
func (dots *DeviceOnlineTimeSelect) Aggregate(fns ...AggregateFunc) *DeviceOnlineTimeSelect
Aggregate adds the given aggregation functions to the selector query.
func (*DeviceOnlineTimeSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DeviceOnlineTimeSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (DeviceOnlineTimeSelect) ExecContext ¶
func (c DeviceOnlineTimeSelect) 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 (*DeviceOnlineTimeSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DeviceOnlineTimeSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DeviceOnlineTimeSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*DeviceOnlineTimeSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DeviceOnlineTimeSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*DeviceOnlineTimeSelect) Modify ¶
func (dots *DeviceOnlineTimeSelect) Modify(modifiers ...func(s *sql.Selector)) *DeviceOnlineTimeSelect
Modify adds a query modifier for attaching custom logic to queries.
func (DeviceOnlineTimeSelect) QueryContext ¶
func (c DeviceOnlineTimeSelect) 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 (*DeviceOnlineTimeSelect) Scan ¶
func (dots *DeviceOnlineTimeSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*DeviceOnlineTimeSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type DeviceOnlineTimeUpdate ¶
type DeviceOnlineTimeUpdate struct {
// contains filtered or unexported fields
}
DeviceOnlineTimeUpdate is the builder for updating DeviceOnlineTime entities.
func (*DeviceOnlineTimeUpdate) AddSort ¶
func (dotu *DeviceOnlineTimeUpdate) AddSort(u int32) *DeviceOnlineTimeUpdate
AddSort adds u to the "sort" field.
func (*DeviceOnlineTimeUpdate) AddStatus ¶
func (dotu *DeviceOnlineTimeUpdate) AddStatus(u int8) *DeviceOnlineTimeUpdate
AddStatus adds u to the "status" field.
func (*DeviceOnlineTimeUpdate) ClearGmtOnline ¶
func (dotu *DeviceOnlineTimeUpdate) ClearGmtOnline() *DeviceOnlineTimeUpdate
ClearGmtOnline clears the value of the "gmtOnline" field.
func (*DeviceOnlineTimeUpdate) ClearStatus ¶
func (dotu *DeviceOnlineTimeUpdate) ClearStatus() *DeviceOnlineTimeUpdate
ClearStatus clears the value of the "status" field.
func (*DeviceOnlineTimeUpdate) Exec ¶
func (dotu *DeviceOnlineTimeUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceOnlineTimeUpdate) ExecContext ¶
func (c *DeviceOnlineTimeUpdate) 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 (*DeviceOnlineTimeUpdate) ExecX ¶
func (dotu *DeviceOnlineTimeUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceOnlineTimeUpdate) Modify ¶
func (dotu *DeviceOnlineTimeUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceOnlineTimeUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*DeviceOnlineTimeUpdate) Mutation ¶
func (dotu *DeviceOnlineTimeUpdate) Mutation() *DeviceOnlineTimeMutation
Mutation returns the DeviceOnlineTimeMutation object of the builder.
func (*DeviceOnlineTimeUpdate) QueryContext ¶
func (c *DeviceOnlineTimeUpdate) 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 (*DeviceOnlineTimeUpdate) Save ¶
func (dotu *DeviceOnlineTimeUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*DeviceOnlineTimeUpdate) SaveX ¶
func (dotu *DeviceOnlineTimeUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*DeviceOnlineTimeUpdate) SetDeviceName ¶
func (dotu *DeviceOnlineTimeUpdate) SetDeviceName(s string) *DeviceOnlineTimeUpdate
SetDeviceName sets the "deviceName" field.
func (*DeviceOnlineTimeUpdate) SetGmtOnline ¶
func (dotu *DeviceOnlineTimeUpdate) SetGmtOnline(s string) *DeviceOnlineTimeUpdate
SetGmtOnline sets the "gmtOnline" field.
func (*DeviceOnlineTimeUpdate) SetIotID ¶
func (dotu *DeviceOnlineTimeUpdate) SetIotID(s string) *DeviceOnlineTimeUpdate
SetIotID sets the "iotID" field.
func (*DeviceOnlineTimeUpdate) SetNillableDeviceName ¶
func (dotu *DeviceOnlineTimeUpdate) SetNillableDeviceName(s *string) *DeviceOnlineTimeUpdate
SetNillableDeviceName sets the "deviceName" field if the given value is not nil.
func (*DeviceOnlineTimeUpdate) SetNillableGmtOnline ¶
func (dotu *DeviceOnlineTimeUpdate) SetNillableGmtOnline(s *string) *DeviceOnlineTimeUpdate
SetNillableGmtOnline sets the "gmtOnline" field if the given value is not nil.
func (*DeviceOnlineTimeUpdate) SetNillableIotID ¶
func (dotu *DeviceOnlineTimeUpdate) SetNillableIotID(s *string) *DeviceOnlineTimeUpdate
SetNillableIotID sets the "iotID" field if the given value is not nil.
func (*DeviceOnlineTimeUpdate) SetNillableProductKey ¶
func (dotu *DeviceOnlineTimeUpdate) SetNillableProductKey(s *string) *DeviceOnlineTimeUpdate
SetNillableProductKey sets the "productKey" field if the given value is not nil.
func (*DeviceOnlineTimeUpdate) SetNillableSort ¶
func (dotu *DeviceOnlineTimeUpdate) SetNillableSort(u *uint32) *DeviceOnlineTimeUpdate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DeviceOnlineTimeUpdate) SetNillableStatus ¶
func (dotu *DeviceOnlineTimeUpdate) SetNillableStatus(u *uint8) *DeviceOnlineTimeUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DeviceOnlineTimeUpdate) SetNotNilDeviceName ¶
func (dot *DeviceOnlineTimeUpdate) SetNotNilDeviceName(value *string) *DeviceOnlineTimeUpdate
set field if value's pointer is not nil.
func (*DeviceOnlineTimeUpdate) SetNotNilGmtOnline ¶
func (dot *DeviceOnlineTimeUpdate) SetNotNilGmtOnline(value *string) *DeviceOnlineTimeUpdate
set field if value's pointer is not nil.
func (*DeviceOnlineTimeUpdate) SetNotNilIotID ¶
func (dot *DeviceOnlineTimeUpdate) SetNotNilIotID(value *string) *DeviceOnlineTimeUpdate
set field if value's pointer is not nil.
func (*DeviceOnlineTimeUpdate) SetNotNilProductKey ¶
func (dot *DeviceOnlineTimeUpdate) SetNotNilProductKey(value *string) *DeviceOnlineTimeUpdate
set field if value's pointer is not nil.
func (*DeviceOnlineTimeUpdate) SetNotNilSort ¶
func (dot *DeviceOnlineTimeUpdate) SetNotNilSort(value *uint32) *DeviceOnlineTimeUpdate
set field if value's pointer is not nil.
func (*DeviceOnlineTimeUpdate) SetNotNilStatus ¶
func (dot *DeviceOnlineTimeUpdate) SetNotNilStatus(value *uint8) *DeviceOnlineTimeUpdate
set field if value's pointer is not nil.
func (*DeviceOnlineTimeUpdate) SetNotNilUpdatedAt ¶
func (dot *DeviceOnlineTimeUpdate) SetNotNilUpdatedAt(value *time.Time) *DeviceOnlineTimeUpdate
set field if value's pointer is not nil.
func (*DeviceOnlineTimeUpdate) SetProductKey ¶
func (dotu *DeviceOnlineTimeUpdate) SetProductKey(s string) *DeviceOnlineTimeUpdate
SetProductKey sets the "productKey" field.
func (*DeviceOnlineTimeUpdate) SetSort ¶
func (dotu *DeviceOnlineTimeUpdate) SetSort(u uint32) *DeviceOnlineTimeUpdate
SetSort sets the "sort" field.
func (*DeviceOnlineTimeUpdate) SetStatus ¶
func (dotu *DeviceOnlineTimeUpdate) SetStatus(u uint8) *DeviceOnlineTimeUpdate
SetStatus sets the "status" field.
func (*DeviceOnlineTimeUpdate) SetUpdatedAt ¶
func (dotu *DeviceOnlineTimeUpdate) SetUpdatedAt(t time.Time) *DeviceOnlineTimeUpdate
SetUpdatedAt sets the "updated_at" field.
func (*DeviceOnlineTimeUpdate) Where ¶
func (dotu *DeviceOnlineTimeUpdate) Where(ps ...predicate.DeviceOnlineTime) *DeviceOnlineTimeUpdate
Where appends a list predicates to the DeviceOnlineTimeUpdate builder.
type DeviceOnlineTimeUpdateOne ¶
type DeviceOnlineTimeUpdateOne struct {
// contains filtered or unexported fields
}
DeviceOnlineTimeUpdateOne is the builder for updating a single DeviceOnlineTime entity.
func (*DeviceOnlineTimeUpdateOne) AddSort ¶
func (dotuo *DeviceOnlineTimeUpdateOne) AddSort(u int32) *DeviceOnlineTimeUpdateOne
AddSort adds u to the "sort" field.
func (*DeviceOnlineTimeUpdateOne) AddStatus ¶
func (dotuo *DeviceOnlineTimeUpdateOne) AddStatus(u int8) *DeviceOnlineTimeUpdateOne
AddStatus adds u to the "status" field.
func (*DeviceOnlineTimeUpdateOne) ClearGmtOnline ¶
func (dotuo *DeviceOnlineTimeUpdateOne) ClearGmtOnline() *DeviceOnlineTimeUpdateOne
ClearGmtOnline clears the value of the "gmtOnline" field.
func (*DeviceOnlineTimeUpdateOne) ClearStatus ¶
func (dotuo *DeviceOnlineTimeUpdateOne) ClearStatus() *DeviceOnlineTimeUpdateOne
ClearStatus clears the value of the "status" field.
func (*DeviceOnlineTimeUpdateOne) Exec ¶
func (dotuo *DeviceOnlineTimeUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*DeviceOnlineTimeUpdateOne) ExecContext ¶
func (c *DeviceOnlineTimeUpdateOne) 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 (*DeviceOnlineTimeUpdateOne) ExecX ¶
func (dotuo *DeviceOnlineTimeUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceOnlineTimeUpdateOne) Modify ¶
func (dotuo *DeviceOnlineTimeUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceOnlineTimeUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*DeviceOnlineTimeUpdateOne) Mutation ¶
func (dotuo *DeviceOnlineTimeUpdateOne) Mutation() *DeviceOnlineTimeMutation
Mutation returns the DeviceOnlineTimeMutation object of the builder.
func (*DeviceOnlineTimeUpdateOne) QueryContext ¶
func (c *DeviceOnlineTimeUpdateOne) 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 (*DeviceOnlineTimeUpdateOne) Save ¶
func (dotuo *DeviceOnlineTimeUpdateOne) Save(ctx context.Context) (*DeviceOnlineTime, error)
Save executes the query and returns the updated DeviceOnlineTime entity.
func (*DeviceOnlineTimeUpdateOne) SaveX ¶
func (dotuo *DeviceOnlineTimeUpdateOne) SaveX(ctx context.Context) *DeviceOnlineTime
SaveX is like Save, but panics if an error occurs.
func (*DeviceOnlineTimeUpdateOne) Select ¶
func (dotuo *DeviceOnlineTimeUpdateOne) Select(field string, fields ...string) *DeviceOnlineTimeUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*DeviceOnlineTimeUpdateOne) SetDeviceName ¶
func (dotuo *DeviceOnlineTimeUpdateOne) SetDeviceName(s string) *DeviceOnlineTimeUpdateOne
SetDeviceName sets the "deviceName" field.
func (*DeviceOnlineTimeUpdateOne) SetGmtOnline ¶
func (dotuo *DeviceOnlineTimeUpdateOne) SetGmtOnline(s string) *DeviceOnlineTimeUpdateOne
SetGmtOnline sets the "gmtOnline" field.
func (*DeviceOnlineTimeUpdateOne) SetIotID ¶
func (dotuo *DeviceOnlineTimeUpdateOne) SetIotID(s string) *DeviceOnlineTimeUpdateOne
SetIotID sets the "iotID" field.
func (*DeviceOnlineTimeUpdateOne) SetNillableDeviceName ¶
func (dotuo *DeviceOnlineTimeUpdateOne) SetNillableDeviceName(s *string) *DeviceOnlineTimeUpdateOne
SetNillableDeviceName sets the "deviceName" field if the given value is not nil.
func (*DeviceOnlineTimeUpdateOne) SetNillableGmtOnline ¶
func (dotuo *DeviceOnlineTimeUpdateOne) SetNillableGmtOnline(s *string) *DeviceOnlineTimeUpdateOne
SetNillableGmtOnline sets the "gmtOnline" field if the given value is not nil.
func (*DeviceOnlineTimeUpdateOne) SetNillableIotID ¶
func (dotuo *DeviceOnlineTimeUpdateOne) SetNillableIotID(s *string) *DeviceOnlineTimeUpdateOne
SetNillableIotID sets the "iotID" field if the given value is not nil.
func (*DeviceOnlineTimeUpdateOne) SetNillableProductKey ¶
func (dotuo *DeviceOnlineTimeUpdateOne) SetNillableProductKey(s *string) *DeviceOnlineTimeUpdateOne
SetNillableProductKey sets the "productKey" field if the given value is not nil.
func (*DeviceOnlineTimeUpdateOne) SetNillableSort ¶
func (dotuo *DeviceOnlineTimeUpdateOne) SetNillableSort(u *uint32) *DeviceOnlineTimeUpdateOne
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DeviceOnlineTimeUpdateOne) SetNillableStatus ¶
func (dotuo *DeviceOnlineTimeUpdateOne) SetNillableStatus(u *uint8) *DeviceOnlineTimeUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DeviceOnlineTimeUpdateOne) SetNotNilDeviceName ¶
func (dot *DeviceOnlineTimeUpdateOne) SetNotNilDeviceName(value *string) *DeviceOnlineTimeUpdateOne
set field if value's pointer is not nil.
func (*DeviceOnlineTimeUpdateOne) SetNotNilGmtOnline ¶
func (dot *DeviceOnlineTimeUpdateOne) SetNotNilGmtOnline(value *string) *DeviceOnlineTimeUpdateOne
set field if value's pointer is not nil.
func (*DeviceOnlineTimeUpdateOne) SetNotNilIotID ¶
func (dot *DeviceOnlineTimeUpdateOne) SetNotNilIotID(value *string) *DeviceOnlineTimeUpdateOne
set field if value's pointer is not nil.
func (*DeviceOnlineTimeUpdateOne) SetNotNilProductKey ¶
func (dot *DeviceOnlineTimeUpdateOne) SetNotNilProductKey(value *string) *DeviceOnlineTimeUpdateOne
set field if value's pointer is not nil.
func (*DeviceOnlineTimeUpdateOne) SetNotNilSort ¶
func (dot *DeviceOnlineTimeUpdateOne) SetNotNilSort(value *uint32) *DeviceOnlineTimeUpdateOne
set field if value's pointer is not nil.
func (*DeviceOnlineTimeUpdateOne) SetNotNilStatus ¶
func (dot *DeviceOnlineTimeUpdateOne) SetNotNilStatus(value *uint8) *DeviceOnlineTimeUpdateOne
set field if value's pointer is not nil.
func (*DeviceOnlineTimeUpdateOne) SetNotNilUpdatedAt ¶
func (dot *DeviceOnlineTimeUpdateOne) SetNotNilUpdatedAt(value *time.Time) *DeviceOnlineTimeUpdateOne
set field if value's pointer is not nil.
func (*DeviceOnlineTimeUpdateOne) SetProductKey ¶
func (dotuo *DeviceOnlineTimeUpdateOne) SetProductKey(s string) *DeviceOnlineTimeUpdateOne
SetProductKey sets the "productKey" field.
func (*DeviceOnlineTimeUpdateOne) SetSort ¶
func (dotuo *DeviceOnlineTimeUpdateOne) SetSort(u uint32) *DeviceOnlineTimeUpdateOne
SetSort sets the "sort" field.
func (*DeviceOnlineTimeUpdateOne) SetStatus ¶
func (dotuo *DeviceOnlineTimeUpdateOne) SetStatus(u uint8) *DeviceOnlineTimeUpdateOne
SetStatus sets the "status" field.
func (*DeviceOnlineTimeUpdateOne) SetUpdatedAt ¶
func (dotuo *DeviceOnlineTimeUpdateOne) SetUpdatedAt(t time.Time) *DeviceOnlineTimeUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*DeviceOnlineTimeUpdateOne) Where ¶
func (dotuo *DeviceOnlineTimeUpdateOne) Where(ps ...predicate.DeviceOnlineTime) *DeviceOnlineTimeUpdateOne
Where appends a list predicates to the DeviceOnlineTimeUpdate builder.
type DeviceOnlineTimeUpsert ¶
DeviceOnlineTimeUpsert is the "OnConflict" setter.
func (*DeviceOnlineTimeUpsert) AddSort ¶
func (u *DeviceOnlineTimeUpsert) AddSort(v uint32) *DeviceOnlineTimeUpsert
AddSort adds v to the "sort" field.
func (*DeviceOnlineTimeUpsert) AddStatus ¶
func (u *DeviceOnlineTimeUpsert) AddStatus(v uint8) *DeviceOnlineTimeUpsert
AddStatus adds v to the "status" field.
func (*DeviceOnlineTimeUpsert) ClearGmtOnline ¶
func (u *DeviceOnlineTimeUpsert) ClearGmtOnline() *DeviceOnlineTimeUpsert
ClearGmtOnline clears the value of the "gmtOnline" field.
func (*DeviceOnlineTimeUpsert) ClearStatus ¶
func (u *DeviceOnlineTimeUpsert) ClearStatus() *DeviceOnlineTimeUpsert
ClearStatus clears the value of the "status" field.
func (*DeviceOnlineTimeUpsert) SetDeviceName ¶
func (u *DeviceOnlineTimeUpsert) SetDeviceName(v string) *DeviceOnlineTimeUpsert
SetDeviceName sets the "deviceName" field.
func (*DeviceOnlineTimeUpsert) SetGmtOnline ¶
func (u *DeviceOnlineTimeUpsert) SetGmtOnline(v string) *DeviceOnlineTimeUpsert
SetGmtOnline sets the "gmtOnline" field.
func (*DeviceOnlineTimeUpsert) SetIotID ¶
func (u *DeviceOnlineTimeUpsert) SetIotID(v string) *DeviceOnlineTimeUpsert
SetIotID sets the "iotID" field.
func (*DeviceOnlineTimeUpsert) SetProductKey ¶
func (u *DeviceOnlineTimeUpsert) SetProductKey(v string) *DeviceOnlineTimeUpsert
SetProductKey sets the "productKey" field.
func (*DeviceOnlineTimeUpsert) SetSort ¶
func (u *DeviceOnlineTimeUpsert) SetSort(v uint32) *DeviceOnlineTimeUpsert
SetSort sets the "sort" field.
func (*DeviceOnlineTimeUpsert) SetStatus ¶
func (u *DeviceOnlineTimeUpsert) SetStatus(v uint8) *DeviceOnlineTimeUpsert
SetStatus sets the "status" field.
func (*DeviceOnlineTimeUpsert) SetUpdatedAt ¶
func (u *DeviceOnlineTimeUpsert) SetUpdatedAt(v time.Time) *DeviceOnlineTimeUpsert
SetUpdatedAt sets the "updated_at" field.
func (*DeviceOnlineTimeUpsert) UpdateDeviceName ¶
func (u *DeviceOnlineTimeUpsert) UpdateDeviceName() *DeviceOnlineTimeUpsert
UpdateDeviceName sets the "deviceName" field to the value that was provided on create.
func (*DeviceOnlineTimeUpsert) UpdateGmtOnline ¶
func (u *DeviceOnlineTimeUpsert) UpdateGmtOnline() *DeviceOnlineTimeUpsert
UpdateGmtOnline sets the "gmtOnline" field to the value that was provided on create.
func (*DeviceOnlineTimeUpsert) UpdateIotID ¶
func (u *DeviceOnlineTimeUpsert) UpdateIotID() *DeviceOnlineTimeUpsert
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DeviceOnlineTimeUpsert) UpdateProductKey ¶
func (u *DeviceOnlineTimeUpsert) UpdateProductKey() *DeviceOnlineTimeUpsert
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*DeviceOnlineTimeUpsert) UpdateSort ¶
func (u *DeviceOnlineTimeUpsert) UpdateSort() *DeviceOnlineTimeUpsert
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DeviceOnlineTimeUpsert) UpdateStatus ¶
func (u *DeviceOnlineTimeUpsert) UpdateStatus() *DeviceOnlineTimeUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DeviceOnlineTimeUpsert) UpdateUpdatedAt ¶
func (u *DeviceOnlineTimeUpsert) UpdateUpdatedAt() *DeviceOnlineTimeUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type DeviceOnlineTimeUpsertBulk ¶
type DeviceOnlineTimeUpsertBulk struct {
// contains filtered or unexported fields
}
DeviceOnlineTimeUpsertBulk is the builder for "upsert"-ing a bulk of DeviceOnlineTime nodes.
func (*DeviceOnlineTimeUpsertBulk) AddSort ¶
func (u *DeviceOnlineTimeUpsertBulk) AddSort(v uint32) *DeviceOnlineTimeUpsertBulk
AddSort adds v to the "sort" field.
func (*DeviceOnlineTimeUpsertBulk) AddStatus ¶
func (u *DeviceOnlineTimeUpsertBulk) AddStatus(v uint8) *DeviceOnlineTimeUpsertBulk
AddStatus adds v to the "status" field.
func (*DeviceOnlineTimeUpsertBulk) ClearGmtOnline ¶
func (u *DeviceOnlineTimeUpsertBulk) ClearGmtOnline() *DeviceOnlineTimeUpsertBulk
ClearGmtOnline clears the value of the "gmtOnline" field.
func (*DeviceOnlineTimeUpsertBulk) ClearStatus ¶
func (u *DeviceOnlineTimeUpsertBulk) ClearStatus() *DeviceOnlineTimeUpsertBulk
ClearStatus clears the value of the "status" field.
func (*DeviceOnlineTimeUpsertBulk) DoNothing ¶
func (u *DeviceOnlineTimeUpsertBulk) DoNothing() *DeviceOnlineTimeUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*DeviceOnlineTimeUpsertBulk) Exec ¶
func (u *DeviceOnlineTimeUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceOnlineTimeUpsertBulk) ExecX ¶
func (u *DeviceOnlineTimeUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceOnlineTimeUpsertBulk) Ignore ¶
func (u *DeviceOnlineTimeUpsertBulk) Ignore() *DeviceOnlineTimeUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.DeviceOnlineTime.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*DeviceOnlineTimeUpsertBulk) SetDeviceName ¶
func (u *DeviceOnlineTimeUpsertBulk) SetDeviceName(v string) *DeviceOnlineTimeUpsertBulk
SetDeviceName sets the "deviceName" field.
func (*DeviceOnlineTimeUpsertBulk) SetGmtOnline ¶
func (u *DeviceOnlineTimeUpsertBulk) SetGmtOnline(v string) *DeviceOnlineTimeUpsertBulk
SetGmtOnline sets the "gmtOnline" field.
func (*DeviceOnlineTimeUpsertBulk) SetIotID ¶
func (u *DeviceOnlineTimeUpsertBulk) SetIotID(v string) *DeviceOnlineTimeUpsertBulk
SetIotID sets the "iotID" field.
func (*DeviceOnlineTimeUpsertBulk) SetProductKey ¶
func (u *DeviceOnlineTimeUpsertBulk) SetProductKey(v string) *DeviceOnlineTimeUpsertBulk
SetProductKey sets the "productKey" field.
func (*DeviceOnlineTimeUpsertBulk) SetSort ¶
func (u *DeviceOnlineTimeUpsertBulk) SetSort(v uint32) *DeviceOnlineTimeUpsertBulk
SetSort sets the "sort" field.
func (*DeviceOnlineTimeUpsertBulk) SetStatus ¶
func (u *DeviceOnlineTimeUpsertBulk) SetStatus(v uint8) *DeviceOnlineTimeUpsertBulk
SetStatus sets the "status" field.
func (*DeviceOnlineTimeUpsertBulk) SetUpdatedAt ¶
func (u *DeviceOnlineTimeUpsertBulk) SetUpdatedAt(v time.Time) *DeviceOnlineTimeUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*DeviceOnlineTimeUpsertBulk) Update ¶
func (u *DeviceOnlineTimeUpsertBulk) Update(set func(*DeviceOnlineTimeUpsert)) *DeviceOnlineTimeUpsertBulk
Update allows overriding fields `UPDATE` values. See the DeviceOnlineTimeCreateBulk.OnConflict documentation for more info.
func (*DeviceOnlineTimeUpsertBulk) UpdateDeviceName ¶
func (u *DeviceOnlineTimeUpsertBulk) UpdateDeviceName() *DeviceOnlineTimeUpsertBulk
UpdateDeviceName sets the "deviceName" field to the value that was provided on create.
func (*DeviceOnlineTimeUpsertBulk) UpdateGmtOnline ¶
func (u *DeviceOnlineTimeUpsertBulk) UpdateGmtOnline() *DeviceOnlineTimeUpsertBulk
UpdateGmtOnline sets the "gmtOnline" field to the value that was provided on create.
func (*DeviceOnlineTimeUpsertBulk) UpdateIotID ¶
func (u *DeviceOnlineTimeUpsertBulk) UpdateIotID() *DeviceOnlineTimeUpsertBulk
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DeviceOnlineTimeUpsertBulk) UpdateNewValues ¶
func (u *DeviceOnlineTimeUpsertBulk) UpdateNewValues() *DeviceOnlineTimeUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.DeviceOnlineTime.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(deviceonlinetime.FieldID) }), ). Exec(ctx)
func (*DeviceOnlineTimeUpsertBulk) UpdateProductKey ¶
func (u *DeviceOnlineTimeUpsertBulk) UpdateProductKey() *DeviceOnlineTimeUpsertBulk
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*DeviceOnlineTimeUpsertBulk) UpdateSort ¶
func (u *DeviceOnlineTimeUpsertBulk) UpdateSort() *DeviceOnlineTimeUpsertBulk
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DeviceOnlineTimeUpsertBulk) UpdateStatus ¶
func (u *DeviceOnlineTimeUpsertBulk) UpdateStatus() *DeviceOnlineTimeUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DeviceOnlineTimeUpsertBulk) UpdateUpdatedAt ¶
func (u *DeviceOnlineTimeUpsertBulk) UpdateUpdatedAt() *DeviceOnlineTimeUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type DeviceOnlineTimeUpsertOne ¶
type DeviceOnlineTimeUpsertOne struct {
// contains filtered or unexported fields
}
DeviceOnlineTimeUpsertOne is the builder for "upsert"-ing
one DeviceOnlineTime node.
func (*DeviceOnlineTimeUpsertOne) AddSort ¶
func (u *DeviceOnlineTimeUpsertOne) AddSort(v uint32) *DeviceOnlineTimeUpsertOne
AddSort adds v to the "sort" field.
func (*DeviceOnlineTimeUpsertOne) AddStatus ¶
func (u *DeviceOnlineTimeUpsertOne) AddStatus(v uint8) *DeviceOnlineTimeUpsertOne
AddStatus adds v to the "status" field.
func (*DeviceOnlineTimeUpsertOne) ClearGmtOnline ¶
func (u *DeviceOnlineTimeUpsertOne) ClearGmtOnline() *DeviceOnlineTimeUpsertOne
ClearGmtOnline clears the value of the "gmtOnline" field.
func (*DeviceOnlineTimeUpsertOne) ClearStatus ¶
func (u *DeviceOnlineTimeUpsertOne) ClearStatus() *DeviceOnlineTimeUpsertOne
ClearStatus clears the value of the "status" field.
func (*DeviceOnlineTimeUpsertOne) DoNothing ¶
func (u *DeviceOnlineTimeUpsertOne) DoNothing() *DeviceOnlineTimeUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*DeviceOnlineTimeUpsertOne) Exec ¶
func (u *DeviceOnlineTimeUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceOnlineTimeUpsertOne) ExecX ¶
func (u *DeviceOnlineTimeUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceOnlineTimeUpsertOne) ID ¶
func (u *DeviceOnlineTimeUpsertOne) ID(ctx context.Context) (id uint64, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*DeviceOnlineTimeUpsertOne) IDX ¶
func (u *DeviceOnlineTimeUpsertOne) IDX(ctx context.Context) uint64
IDX is like ID, but panics if an error occurs.
func (*DeviceOnlineTimeUpsertOne) Ignore ¶
func (u *DeviceOnlineTimeUpsertOne) Ignore() *DeviceOnlineTimeUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.DeviceOnlineTime.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*DeviceOnlineTimeUpsertOne) SetDeviceName ¶
func (u *DeviceOnlineTimeUpsertOne) SetDeviceName(v string) *DeviceOnlineTimeUpsertOne
SetDeviceName sets the "deviceName" field.
func (*DeviceOnlineTimeUpsertOne) SetGmtOnline ¶
func (u *DeviceOnlineTimeUpsertOne) SetGmtOnline(v string) *DeviceOnlineTimeUpsertOne
SetGmtOnline sets the "gmtOnline" field.
func (*DeviceOnlineTimeUpsertOne) SetIotID ¶
func (u *DeviceOnlineTimeUpsertOne) SetIotID(v string) *DeviceOnlineTimeUpsertOne
SetIotID sets the "iotID" field.
func (*DeviceOnlineTimeUpsertOne) SetProductKey ¶
func (u *DeviceOnlineTimeUpsertOne) SetProductKey(v string) *DeviceOnlineTimeUpsertOne
SetProductKey sets the "productKey" field.
func (*DeviceOnlineTimeUpsertOne) SetSort ¶
func (u *DeviceOnlineTimeUpsertOne) SetSort(v uint32) *DeviceOnlineTimeUpsertOne
SetSort sets the "sort" field.
func (*DeviceOnlineTimeUpsertOne) SetStatus ¶
func (u *DeviceOnlineTimeUpsertOne) SetStatus(v uint8) *DeviceOnlineTimeUpsertOne
SetStatus sets the "status" field.
func (*DeviceOnlineTimeUpsertOne) SetUpdatedAt ¶
func (u *DeviceOnlineTimeUpsertOne) SetUpdatedAt(v time.Time) *DeviceOnlineTimeUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*DeviceOnlineTimeUpsertOne) Update ¶
func (u *DeviceOnlineTimeUpsertOne) Update(set func(*DeviceOnlineTimeUpsert)) *DeviceOnlineTimeUpsertOne
Update allows overriding fields `UPDATE` values. See the DeviceOnlineTimeCreate.OnConflict documentation for more info.
func (*DeviceOnlineTimeUpsertOne) UpdateDeviceName ¶
func (u *DeviceOnlineTimeUpsertOne) UpdateDeviceName() *DeviceOnlineTimeUpsertOne
UpdateDeviceName sets the "deviceName" field to the value that was provided on create.
func (*DeviceOnlineTimeUpsertOne) UpdateGmtOnline ¶
func (u *DeviceOnlineTimeUpsertOne) UpdateGmtOnline() *DeviceOnlineTimeUpsertOne
UpdateGmtOnline sets the "gmtOnline" field to the value that was provided on create.
func (*DeviceOnlineTimeUpsertOne) UpdateIotID ¶
func (u *DeviceOnlineTimeUpsertOne) UpdateIotID() *DeviceOnlineTimeUpsertOne
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DeviceOnlineTimeUpsertOne) UpdateNewValues ¶
func (u *DeviceOnlineTimeUpsertOne) UpdateNewValues() *DeviceOnlineTimeUpsertOne
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.DeviceOnlineTime.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(deviceonlinetime.FieldID) }), ). Exec(ctx)
func (*DeviceOnlineTimeUpsertOne) UpdateProductKey ¶
func (u *DeviceOnlineTimeUpsertOne) UpdateProductKey() *DeviceOnlineTimeUpsertOne
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*DeviceOnlineTimeUpsertOne) UpdateSort ¶
func (u *DeviceOnlineTimeUpsertOne) UpdateSort() *DeviceOnlineTimeUpsertOne
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DeviceOnlineTimeUpsertOne) UpdateStatus ¶
func (u *DeviceOnlineTimeUpsertOne) UpdateStatus() *DeviceOnlineTimeUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DeviceOnlineTimeUpsertOne) UpdateUpdatedAt ¶
func (u *DeviceOnlineTimeUpsertOne) UpdateUpdatedAt() *DeviceOnlineTimeUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type DeviceOnlineTimes ¶
type DeviceOnlineTimes []*DeviceOnlineTime
DeviceOnlineTimes is a parsable slice of DeviceOnlineTime.
type DeviceUpsterCycle ¶
type DeviceUpsterCycle struct { // ID of the ent. ID uint64 `json:"id,omitempty"` // Create Time | 创建日期 CreatedAt time.Time `json:"created_at,omitempty"` // Update Time | 修改日期 UpdatedAt time.Time `json:"updated_at,omitempty"` // Status 1: normal 2: ban | 状态 1 正常 2 禁用 Status uint8 `json:"status,omitempty"` // Sort Number | 排序编号 Sort uint32 `json:"sort,omitempty"` // Iot Id | 设备ID IotID string `json:"iotID,omitempty"` // Device Name | 设备名称 DeviceName string `json:"deviceName,omitempty"` // Product Key | 产品Key ProductKey string `json:"productKey,omitempty"` // Timestamp | 毫秒时间戳 Timestamp string `json:"timestamp,omitempty"` // NumberOfProgramButton1 | 程序1 Number1 int32 `json:"number1,omitempty"` // NumberOfProgramButton2 | 程序2 Number2 int32 `json:"number2,omitempty"` // NumberOfProgramButton3 | 程序3 Number3 int32 `json:"number3,omitempty"` // NumberOfProgramCycles | 程序总计数 NumberCycles int32 `json:"numberCycles,omitempty"` // NumberOfRegeneration NumberRegeneration int32 `json:"numberRegeneration,omitempty"` // NumberOfRinsingCycles NumberRinsingCycles int32 `json:"numberRinsingCycles,omitempty"` // TotalOfOperatingTime TotalOperationTime int32 `json:"totalOperationTime,omitempty"` // contains filtered or unexported fields }
DeviceUpsterCycle is the model entity for the DeviceUpsterCycle schema.
func (*DeviceUpsterCycle) ExecContext ¶
func (c *DeviceUpsterCycle) 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 (*DeviceUpsterCycle) QueryContext ¶
func (c *DeviceUpsterCycle) 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 (*DeviceUpsterCycle) String ¶
func (duc *DeviceUpsterCycle) String() string
String implements the fmt.Stringer.
func (*DeviceUpsterCycle) Unwrap ¶
func (duc *DeviceUpsterCycle) Unwrap() *DeviceUpsterCycle
Unwrap unwraps the DeviceUpsterCycle 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 (*DeviceUpsterCycle) Update ¶
func (duc *DeviceUpsterCycle) Update() *DeviceUpsterCycleUpdateOne
Update returns a builder for updating this DeviceUpsterCycle. Note that you need to call DeviceUpsterCycle.Unwrap() before calling this method if this DeviceUpsterCycle was returned from a transaction, and the transaction was committed or rolled back.
type DeviceUpsterCycleClient ¶
type DeviceUpsterCycleClient struct {
// contains filtered or unexported fields
}
DeviceUpsterCycleClient is a client for the DeviceUpsterCycle schema.
func NewDeviceUpsterCycleClient ¶
func NewDeviceUpsterCycleClient(c config) *DeviceUpsterCycleClient
NewDeviceUpsterCycleClient returns a client for the DeviceUpsterCycle from the given config.
func (*DeviceUpsterCycleClient) Create ¶
func (c *DeviceUpsterCycleClient) Create() *DeviceUpsterCycleCreate
Create returns a builder for creating a DeviceUpsterCycle entity.
func (*DeviceUpsterCycleClient) CreateBulk ¶
func (c *DeviceUpsterCycleClient) CreateBulk(builders ...*DeviceUpsterCycleCreate) *DeviceUpsterCycleCreateBulk
CreateBulk returns a builder for creating a bulk of DeviceUpsterCycle entities.
func (*DeviceUpsterCycleClient) Delete ¶
func (c *DeviceUpsterCycleClient) Delete() *DeviceUpsterCycleDelete
Delete returns a delete builder for DeviceUpsterCycle.
func (*DeviceUpsterCycleClient) DeleteOne ¶
func (c *DeviceUpsterCycleClient) DeleteOne(duc *DeviceUpsterCycle) *DeviceUpsterCycleDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*DeviceUpsterCycleClient) DeleteOneID ¶
func (c *DeviceUpsterCycleClient) DeleteOneID(id uint64) *DeviceUpsterCycleDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*DeviceUpsterCycleClient) ExecContext ¶
func (c *DeviceUpsterCycleClient) 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 (*DeviceUpsterCycleClient) Get ¶
func (c *DeviceUpsterCycleClient) Get(ctx context.Context, id uint64) (*DeviceUpsterCycle, error)
Get returns a DeviceUpsterCycle entity by its id.
func (*DeviceUpsterCycleClient) GetX ¶
func (c *DeviceUpsterCycleClient) GetX(ctx context.Context, id uint64) *DeviceUpsterCycle
GetX is like Get, but panics if an error occurs.
func (*DeviceUpsterCycleClient) Hooks ¶
func (c *DeviceUpsterCycleClient) Hooks() []Hook
Hooks returns the client hooks.
func (*DeviceUpsterCycleClient) Intercept ¶
func (c *DeviceUpsterCycleClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `deviceupstercycle.Intercept(f(g(h())))`.
func (*DeviceUpsterCycleClient) Interceptors ¶
func (c *DeviceUpsterCycleClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*DeviceUpsterCycleClient) MapCreateBulk ¶
func (c *DeviceUpsterCycleClient) MapCreateBulk(slice any, setFunc func(*DeviceUpsterCycleCreate, int)) *DeviceUpsterCycleCreateBulk
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 (*DeviceUpsterCycleClient) Query ¶
func (c *DeviceUpsterCycleClient) Query() *DeviceUpsterCycleQuery
Query returns a query builder for DeviceUpsterCycle.
func (*DeviceUpsterCycleClient) QueryContext ¶
func (c *DeviceUpsterCycleClient) 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 (*DeviceUpsterCycleClient) Update ¶
func (c *DeviceUpsterCycleClient) Update() *DeviceUpsterCycleUpdate
Update returns an update builder for DeviceUpsterCycle.
func (*DeviceUpsterCycleClient) UpdateOne ¶
func (c *DeviceUpsterCycleClient) UpdateOne(duc *DeviceUpsterCycle) *DeviceUpsterCycleUpdateOne
UpdateOne returns an update builder for the given entity.
func (*DeviceUpsterCycleClient) UpdateOneID ¶
func (c *DeviceUpsterCycleClient) UpdateOneID(id uint64) *DeviceUpsterCycleUpdateOne
UpdateOneID returns an update builder for the given id.
func (*DeviceUpsterCycleClient) Use ¶
func (c *DeviceUpsterCycleClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `deviceupstercycle.Hooks(f(g(h())))`.
type DeviceUpsterCycleCreate ¶
type DeviceUpsterCycleCreate struct { Table string // contains filtered or unexported fields }
DeviceUpsterCycleCreate is the builder for creating a DeviceUpsterCycle entity.
func (*DeviceUpsterCycleCreate) Exec ¶
func (ducc *DeviceUpsterCycleCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceUpsterCycleCreate) ExecContext ¶
func (c *DeviceUpsterCycleCreate) 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 (*DeviceUpsterCycleCreate) ExecX ¶
func (ducc *DeviceUpsterCycleCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceUpsterCycleCreate) Mutation ¶
func (ducc *DeviceUpsterCycleCreate) Mutation() *DeviceUpsterCycleMutation
Mutation returns the DeviceUpsterCycleMutation object of the builder.
func (*DeviceUpsterCycleCreate) OnConflict ¶
func (ducc *DeviceUpsterCycleCreate) OnConflict(opts ...sql.ConflictOption) *DeviceUpsterCycleUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.DeviceUpsterCycle.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.DeviceUpsterCycleUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*DeviceUpsterCycleCreate) OnConflictColumns ¶
func (ducc *DeviceUpsterCycleCreate) OnConflictColumns(columns ...string) *DeviceUpsterCycleUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.DeviceUpsterCycle.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*DeviceUpsterCycleCreate) QueryContext ¶
func (c *DeviceUpsterCycleCreate) 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 (*DeviceUpsterCycleCreate) Save ¶
func (ducc *DeviceUpsterCycleCreate) Save(ctx context.Context) (*DeviceUpsterCycle, error)
Save creates the DeviceUpsterCycle in the database.
func (*DeviceUpsterCycleCreate) SaveX ¶
func (ducc *DeviceUpsterCycleCreate) SaveX(ctx context.Context) *DeviceUpsterCycle
SaveX calls Save and panics if Save returns an error.
func (*DeviceUpsterCycleCreate) SetCreatedAt ¶
func (ducc *DeviceUpsterCycleCreate) SetCreatedAt(t time.Time) *DeviceUpsterCycleCreate
SetCreatedAt sets the "created_at" field.
func (*DeviceUpsterCycleCreate) SetDeviceName ¶
func (ducc *DeviceUpsterCycleCreate) SetDeviceName(s string) *DeviceUpsterCycleCreate
SetDeviceName sets the "deviceName" field.
func (*DeviceUpsterCycleCreate) SetID ¶
func (ducc *DeviceUpsterCycleCreate) SetID(u uint64) *DeviceUpsterCycleCreate
SetID sets the "id" field.
func (*DeviceUpsterCycleCreate) SetIotID ¶
func (ducc *DeviceUpsterCycleCreate) SetIotID(s string) *DeviceUpsterCycleCreate
SetIotID sets the "iotID" field.
func (*DeviceUpsterCycleCreate) SetNillableCreatedAt ¶
func (ducc *DeviceUpsterCycleCreate) SetNillableCreatedAt(t *time.Time) *DeviceUpsterCycleCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*DeviceUpsterCycleCreate) SetNillableNumber1 ¶
func (ducc *DeviceUpsterCycleCreate) SetNillableNumber1(i *int32) *DeviceUpsterCycleCreate
SetNillableNumber1 sets the "number1" field if the given value is not nil.
func (*DeviceUpsterCycleCreate) SetNillableNumber2 ¶
func (ducc *DeviceUpsterCycleCreate) SetNillableNumber2(i *int32) *DeviceUpsterCycleCreate
SetNillableNumber2 sets the "number2" field if the given value is not nil.
func (*DeviceUpsterCycleCreate) SetNillableNumber3 ¶
func (ducc *DeviceUpsterCycleCreate) SetNillableNumber3(i *int32) *DeviceUpsterCycleCreate
SetNillableNumber3 sets the "number3" field if the given value is not nil.
func (*DeviceUpsterCycleCreate) SetNillableNumberCycles ¶
func (ducc *DeviceUpsterCycleCreate) SetNillableNumberCycles(i *int32) *DeviceUpsterCycleCreate
SetNillableNumberCycles sets the "numberCycles" field if the given value is not nil.
func (*DeviceUpsterCycleCreate) SetNillableNumberRegeneration ¶
func (ducc *DeviceUpsterCycleCreate) SetNillableNumberRegeneration(i *int32) *DeviceUpsterCycleCreate
SetNillableNumberRegeneration sets the "numberRegeneration" field if the given value is not nil.
func (*DeviceUpsterCycleCreate) SetNillableNumberRinsingCycles ¶
func (ducc *DeviceUpsterCycleCreate) SetNillableNumberRinsingCycles(i *int32) *DeviceUpsterCycleCreate
SetNillableNumberRinsingCycles sets the "numberRinsingCycles" field if the given value is not nil.
func (*DeviceUpsterCycleCreate) SetNillableSort ¶
func (ducc *DeviceUpsterCycleCreate) SetNillableSort(u *uint32) *DeviceUpsterCycleCreate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DeviceUpsterCycleCreate) SetNillableStatus ¶
func (ducc *DeviceUpsterCycleCreate) SetNillableStatus(u *uint8) *DeviceUpsterCycleCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DeviceUpsterCycleCreate) SetNillableTimestamp ¶
func (ducc *DeviceUpsterCycleCreate) SetNillableTimestamp(s *string) *DeviceUpsterCycleCreate
SetNillableTimestamp sets the "timestamp" field if the given value is not nil.
func (*DeviceUpsterCycleCreate) SetNillableTotalOperationTime ¶
func (ducc *DeviceUpsterCycleCreate) SetNillableTotalOperationTime(i *int32) *DeviceUpsterCycleCreate
SetNillableTotalOperationTime sets the "totalOperationTime" field if the given value is not nil.
func (*DeviceUpsterCycleCreate) SetNillableUpdatedAt ¶
func (ducc *DeviceUpsterCycleCreate) SetNillableUpdatedAt(t *time.Time) *DeviceUpsterCycleCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*DeviceUpsterCycleCreate) SetNotNilDeviceName ¶
func (duc *DeviceUpsterCycleCreate) SetNotNilDeviceName(value *string) *DeviceUpsterCycleCreate
set field if value's pointer is not nil.
func (*DeviceUpsterCycleCreate) SetNotNilIotID ¶
func (duc *DeviceUpsterCycleCreate) SetNotNilIotID(value *string) *DeviceUpsterCycleCreate
set field if value's pointer is not nil.
func (*DeviceUpsterCycleCreate) SetNotNilNumber1 ¶
func (duc *DeviceUpsterCycleCreate) SetNotNilNumber1(value *int32) *DeviceUpsterCycleCreate
set field if value's pointer is not nil.
func (*DeviceUpsterCycleCreate) SetNotNilNumber2 ¶
func (duc *DeviceUpsterCycleCreate) SetNotNilNumber2(value *int32) *DeviceUpsterCycleCreate
set field if value's pointer is not nil.
func (*DeviceUpsterCycleCreate) SetNotNilNumber3 ¶
func (duc *DeviceUpsterCycleCreate) SetNotNilNumber3(value *int32) *DeviceUpsterCycleCreate
set field if value's pointer is not nil.
func (*DeviceUpsterCycleCreate) SetNotNilNumberCycles ¶
func (duc *DeviceUpsterCycleCreate) SetNotNilNumberCycles(value *int32) *DeviceUpsterCycleCreate
set field if value's pointer is not nil.
func (*DeviceUpsterCycleCreate) SetNotNilNumberRegeneration ¶
func (duc *DeviceUpsterCycleCreate) SetNotNilNumberRegeneration(value *int32) *DeviceUpsterCycleCreate
set field if value's pointer is not nil.
func (*DeviceUpsterCycleCreate) SetNotNilNumberRinsingCycles ¶
func (duc *DeviceUpsterCycleCreate) SetNotNilNumberRinsingCycles(value *int32) *DeviceUpsterCycleCreate
set field if value's pointer is not nil.
func (*DeviceUpsterCycleCreate) SetNotNilProductKey ¶
func (duc *DeviceUpsterCycleCreate) SetNotNilProductKey(value *string) *DeviceUpsterCycleCreate
set field if value's pointer is not nil.
func (*DeviceUpsterCycleCreate) SetNotNilSort ¶
func (duc *DeviceUpsterCycleCreate) SetNotNilSort(value *uint32) *DeviceUpsterCycleCreate
set field if value's pointer is not nil.
func (*DeviceUpsterCycleCreate) SetNotNilStatus ¶
func (duc *DeviceUpsterCycleCreate) SetNotNilStatus(value *uint8) *DeviceUpsterCycleCreate
set field if value's pointer is not nil.
func (*DeviceUpsterCycleCreate) SetNotNilTimestamp ¶
func (duc *DeviceUpsterCycleCreate) SetNotNilTimestamp(value *string) *DeviceUpsterCycleCreate
set field if value's pointer is not nil.
func (*DeviceUpsterCycleCreate) SetNotNilTotalOperationTime ¶
func (duc *DeviceUpsterCycleCreate) SetNotNilTotalOperationTime(value *int32) *DeviceUpsterCycleCreate
set field if value's pointer is not nil.
func (*DeviceUpsterCycleCreate) SetNotNilUpdatedAt ¶
func (duc *DeviceUpsterCycleCreate) SetNotNilUpdatedAt(value *time.Time) *DeviceUpsterCycleCreate
set field if value's pointer is not nil.
func (*DeviceUpsterCycleCreate) SetNumber1 ¶
func (ducc *DeviceUpsterCycleCreate) SetNumber1(i int32) *DeviceUpsterCycleCreate
SetNumber1 sets the "number1" field.
func (*DeviceUpsterCycleCreate) SetNumber2 ¶
func (ducc *DeviceUpsterCycleCreate) SetNumber2(i int32) *DeviceUpsterCycleCreate
SetNumber2 sets the "number2" field.
func (*DeviceUpsterCycleCreate) SetNumber3 ¶
func (ducc *DeviceUpsterCycleCreate) SetNumber3(i int32) *DeviceUpsterCycleCreate
SetNumber3 sets the "number3" field.
func (*DeviceUpsterCycleCreate) SetNumberCycles ¶
func (ducc *DeviceUpsterCycleCreate) SetNumberCycles(i int32) *DeviceUpsterCycleCreate
SetNumberCycles sets the "numberCycles" field.
func (*DeviceUpsterCycleCreate) SetNumberRegeneration ¶
func (ducc *DeviceUpsterCycleCreate) SetNumberRegeneration(i int32) *DeviceUpsterCycleCreate
SetNumberRegeneration sets the "numberRegeneration" field.
func (*DeviceUpsterCycleCreate) SetNumberRinsingCycles ¶
func (ducc *DeviceUpsterCycleCreate) SetNumberRinsingCycles(i int32) *DeviceUpsterCycleCreate
SetNumberRinsingCycles sets the "numberRinsingCycles" field.
func (*DeviceUpsterCycleCreate) SetProductKey ¶
func (ducc *DeviceUpsterCycleCreate) SetProductKey(s string) *DeviceUpsterCycleCreate
SetProductKey sets the "productKey" field.
func (*DeviceUpsterCycleCreate) SetSort ¶
func (ducc *DeviceUpsterCycleCreate) SetSort(u uint32) *DeviceUpsterCycleCreate
SetSort sets the "sort" field.
func (*DeviceUpsterCycleCreate) SetStatus ¶
func (ducc *DeviceUpsterCycleCreate) SetStatus(u uint8) *DeviceUpsterCycleCreate
SetStatus sets the "status" field.
func (*DeviceUpsterCycleCreate) SetTimestamp ¶
func (ducc *DeviceUpsterCycleCreate) SetTimestamp(s string) *DeviceUpsterCycleCreate
SetTimestamp sets the "timestamp" field.
func (*DeviceUpsterCycleCreate) SetTotalOperationTime ¶
func (ducc *DeviceUpsterCycleCreate) SetTotalOperationTime(i int32) *DeviceUpsterCycleCreate
SetTotalOperationTime sets the "totalOperationTime" field.
func (*DeviceUpsterCycleCreate) SetUpdatedAt ¶
func (ducc *DeviceUpsterCycleCreate) SetUpdatedAt(t time.Time) *DeviceUpsterCycleCreate
SetUpdatedAt sets the "updated_at" field.
func (*DeviceUpsterCycleCreate) TableName ¶
func (ducc *DeviceUpsterCycleCreate) TableName(s string) *DeviceUpsterCycleCreate
type DeviceUpsterCycleCreateBulk ¶
type DeviceUpsterCycleCreateBulk struct {
// contains filtered or unexported fields
}
DeviceUpsterCycleCreateBulk is the builder for creating many DeviceUpsterCycle entities in bulk.
func (*DeviceUpsterCycleCreateBulk) Exec ¶
func (duccb *DeviceUpsterCycleCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceUpsterCycleCreateBulk) ExecContext ¶
func (c *DeviceUpsterCycleCreateBulk) 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 (*DeviceUpsterCycleCreateBulk) ExecX ¶
func (duccb *DeviceUpsterCycleCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceUpsterCycleCreateBulk) OnConflict ¶
func (duccb *DeviceUpsterCycleCreateBulk) OnConflict(opts ...sql.ConflictOption) *DeviceUpsterCycleUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.DeviceUpsterCycle.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.DeviceUpsterCycleUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*DeviceUpsterCycleCreateBulk) OnConflictColumns ¶
func (duccb *DeviceUpsterCycleCreateBulk) OnConflictColumns(columns ...string) *DeviceUpsterCycleUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.DeviceUpsterCycle.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*DeviceUpsterCycleCreateBulk) QueryContext ¶
func (c *DeviceUpsterCycleCreateBulk) 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 (*DeviceUpsterCycleCreateBulk) Save ¶
func (duccb *DeviceUpsterCycleCreateBulk) Save(ctx context.Context) ([]*DeviceUpsterCycle, error)
Save creates the DeviceUpsterCycle entities in the database.
func (*DeviceUpsterCycleCreateBulk) SaveX ¶
func (duccb *DeviceUpsterCycleCreateBulk) SaveX(ctx context.Context) []*DeviceUpsterCycle
SaveX is like Save, but panics if an error occurs.
type DeviceUpsterCycleDelete ¶
type DeviceUpsterCycleDelete struct {
// contains filtered or unexported fields
}
DeviceUpsterCycleDelete is the builder for deleting a DeviceUpsterCycle entity.
func (*DeviceUpsterCycleDelete) Exec ¶
func (ducd *DeviceUpsterCycleDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*DeviceUpsterCycleDelete) ExecContext ¶
func (c *DeviceUpsterCycleDelete) 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 (*DeviceUpsterCycleDelete) ExecX ¶
func (ducd *DeviceUpsterCycleDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*DeviceUpsterCycleDelete) QueryContext ¶
func (c *DeviceUpsterCycleDelete) 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 (*DeviceUpsterCycleDelete) Where ¶
func (ducd *DeviceUpsterCycleDelete) Where(ps ...predicate.DeviceUpsterCycle) *DeviceUpsterCycleDelete
Where appends a list predicates to the DeviceUpsterCycleDelete builder.
type DeviceUpsterCycleDeleteOne ¶
type DeviceUpsterCycleDeleteOne struct {
// contains filtered or unexported fields
}
DeviceUpsterCycleDeleteOne is the builder for deleting a single DeviceUpsterCycle entity.
func (*DeviceUpsterCycleDeleteOne) Exec ¶
func (ducdo *DeviceUpsterCycleDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*DeviceUpsterCycleDeleteOne) ExecX ¶
func (ducdo *DeviceUpsterCycleDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceUpsterCycleDeleteOne) Where ¶
func (ducdo *DeviceUpsterCycleDeleteOne) Where(ps ...predicate.DeviceUpsterCycle) *DeviceUpsterCycleDeleteOne
Where appends a list predicates to the DeviceUpsterCycleDelete builder.
type DeviceUpsterCycleGroupBy ¶
type DeviceUpsterCycleGroupBy struct {
// contains filtered or unexported fields
}
DeviceUpsterCycleGroupBy is the group-by builder for DeviceUpsterCycle entities.
func (*DeviceUpsterCycleGroupBy) Aggregate ¶
func (ducgb *DeviceUpsterCycleGroupBy) Aggregate(fns ...AggregateFunc) *DeviceUpsterCycleGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*DeviceUpsterCycleGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DeviceUpsterCycleGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*DeviceUpsterCycleGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DeviceUpsterCycleGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*DeviceUpsterCycleGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DeviceUpsterCycleGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*DeviceUpsterCycleGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DeviceUpsterCycleGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*DeviceUpsterCycleGroupBy) Scan ¶
func (ducgb *DeviceUpsterCycleGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*DeviceUpsterCycleGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type DeviceUpsterCycleMutation ¶
type DeviceUpsterCycleMutation struct {
// contains filtered or unexported fields
}
DeviceUpsterCycleMutation represents an operation that mutates the DeviceUpsterCycle nodes in the graph.
func (*DeviceUpsterCycleMutation) AddField ¶
func (m *DeviceUpsterCycleMutation) 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 (*DeviceUpsterCycleMutation) AddNumber1 ¶
func (m *DeviceUpsterCycleMutation) AddNumber1(i int32)
AddNumber1 adds i to the "number1" field.
func (*DeviceUpsterCycleMutation) AddNumber2 ¶
func (m *DeviceUpsterCycleMutation) AddNumber2(i int32)
AddNumber2 adds i to the "number2" field.
func (*DeviceUpsterCycleMutation) AddNumber3 ¶
func (m *DeviceUpsterCycleMutation) AddNumber3(i int32)
AddNumber3 adds i to the "number3" field.
func (*DeviceUpsterCycleMutation) AddNumberCycles ¶
func (m *DeviceUpsterCycleMutation) AddNumberCycles(i int32)
AddNumberCycles adds i to the "numberCycles" field.
func (*DeviceUpsterCycleMutation) AddNumberRegeneration ¶
func (m *DeviceUpsterCycleMutation) AddNumberRegeneration(i int32)
AddNumberRegeneration adds i to the "numberRegeneration" field.
func (*DeviceUpsterCycleMutation) AddNumberRinsingCycles ¶
func (m *DeviceUpsterCycleMutation) AddNumberRinsingCycles(i int32)
AddNumberRinsingCycles adds i to the "numberRinsingCycles" field.
func (*DeviceUpsterCycleMutation) AddSort ¶
func (m *DeviceUpsterCycleMutation) AddSort(u int32)
AddSort adds u to the "sort" field.
func (*DeviceUpsterCycleMutation) AddStatus ¶
func (m *DeviceUpsterCycleMutation) AddStatus(u int8)
AddStatus adds u to the "status" field.
func (*DeviceUpsterCycleMutation) AddTotalOperationTime ¶
func (m *DeviceUpsterCycleMutation) AddTotalOperationTime(i int32)
AddTotalOperationTime adds i to the "totalOperationTime" field.
func (*DeviceUpsterCycleMutation) AddedEdges ¶
func (m *DeviceUpsterCycleMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*DeviceUpsterCycleMutation) AddedField ¶
func (m *DeviceUpsterCycleMutation) 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 (*DeviceUpsterCycleMutation) AddedFields ¶
func (m *DeviceUpsterCycleMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*DeviceUpsterCycleMutation) AddedIDs ¶
func (m *DeviceUpsterCycleMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*DeviceUpsterCycleMutation) AddedNumber1 ¶
func (m *DeviceUpsterCycleMutation) AddedNumber1() (r int32, exists bool)
AddedNumber1 returns the value that was added to the "number1" field in this mutation.
func (*DeviceUpsterCycleMutation) AddedNumber2 ¶
func (m *DeviceUpsterCycleMutation) AddedNumber2() (r int32, exists bool)
AddedNumber2 returns the value that was added to the "number2" field in this mutation.
func (*DeviceUpsterCycleMutation) AddedNumber3 ¶
func (m *DeviceUpsterCycleMutation) AddedNumber3() (r int32, exists bool)
AddedNumber3 returns the value that was added to the "number3" field in this mutation.
func (*DeviceUpsterCycleMutation) AddedNumberCycles ¶
func (m *DeviceUpsterCycleMutation) AddedNumberCycles() (r int32, exists bool)
AddedNumberCycles returns the value that was added to the "numberCycles" field in this mutation.
func (*DeviceUpsterCycleMutation) AddedNumberRegeneration ¶
func (m *DeviceUpsterCycleMutation) AddedNumberRegeneration() (r int32, exists bool)
AddedNumberRegeneration returns the value that was added to the "numberRegeneration" field in this mutation.
func (*DeviceUpsterCycleMutation) AddedNumberRinsingCycles ¶
func (m *DeviceUpsterCycleMutation) AddedNumberRinsingCycles() (r int32, exists bool)
AddedNumberRinsingCycles returns the value that was added to the "numberRinsingCycles" field in this mutation.
func (*DeviceUpsterCycleMutation) AddedSort ¶
func (m *DeviceUpsterCycleMutation) AddedSort() (r int32, exists bool)
AddedSort returns the value that was added to the "sort" field in this mutation.
func (*DeviceUpsterCycleMutation) AddedStatus ¶
func (m *DeviceUpsterCycleMutation) AddedStatus() (r int8, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*DeviceUpsterCycleMutation) AddedTotalOperationTime ¶
func (m *DeviceUpsterCycleMutation) AddedTotalOperationTime() (r int32, exists bool)
AddedTotalOperationTime returns the value that was added to the "totalOperationTime" field in this mutation.
func (*DeviceUpsterCycleMutation) ClearEdge ¶
func (m *DeviceUpsterCycleMutation) 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 (*DeviceUpsterCycleMutation) ClearField ¶
func (m *DeviceUpsterCycleMutation) 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 (*DeviceUpsterCycleMutation) ClearNumber1 ¶
func (m *DeviceUpsterCycleMutation) ClearNumber1()
ClearNumber1 clears the value of the "number1" field.
func (*DeviceUpsterCycleMutation) ClearNumber2 ¶
func (m *DeviceUpsterCycleMutation) ClearNumber2()
ClearNumber2 clears the value of the "number2" field.
func (*DeviceUpsterCycleMutation) ClearNumber3 ¶
func (m *DeviceUpsterCycleMutation) ClearNumber3()
ClearNumber3 clears the value of the "number3" field.
func (*DeviceUpsterCycleMutation) ClearNumberCycles ¶
func (m *DeviceUpsterCycleMutation) ClearNumberCycles()
ClearNumberCycles clears the value of the "numberCycles" field.
func (*DeviceUpsterCycleMutation) ClearNumberRegeneration ¶
func (m *DeviceUpsterCycleMutation) ClearNumberRegeneration()
ClearNumberRegeneration clears the value of the "numberRegeneration" field.
func (*DeviceUpsterCycleMutation) ClearNumberRinsingCycles ¶
func (m *DeviceUpsterCycleMutation) ClearNumberRinsingCycles()
ClearNumberRinsingCycles clears the value of the "numberRinsingCycles" field.
func (*DeviceUpsterCycleMutation) ClearStatus ¶
func (m *DeviceUpsterCycleMutation) ClearStatus()
ClearStatus clears the value of the "status" field.
func (*DeviceUpsterCycleMutation) ClearTimestamp ¶
func (m *DeviceUpsterCycleMutation) ClearTimestamp()
ClearTimestamp clears the value of the "timestamp" field.
func (*DeviceUpsterCycleMutation) ClearTotalOperationTime ¶
func (m *DeviceUpsterCycleMutation) ClearTotalOperationTime()
ClearTotalOperationTime clears the value of the "totalOperationTime" field.
func (*DeviceUpsterCycleMutation) ClearedEdges ¶
func (m *DeviceUpsterCycleMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*DeviceUpsterCycleMutation) ClearedFields ¶
func (m *DeviceUpsterCycleMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (DeviceUpsterCycleMutation) Client ¶
func (m DeviceUpsterCycleMutation) 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 (*DeviceUpsterCycleMutation) CreatedAt ¶
func (m *DeviceUpsterCycleMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*DeviceUpsterCycleMutation) DeviceName ¶
func (m *DeviceUpsterCycleMutation) DeviceName() (r string, exists bool)
DeviceName returns the value of the "deviceName" field in the mutation.
func (*DeviceUpsterCycleMutation) EdgeCleared ¶
func (m *DeviceUpsterCycleMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*DeviceUpsterCycleMutation) ExecContext ¶
func (c *DeviceUpsterCycleMutation) 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 (*DeviceUpsterCycleMutation) Field ¶
func (m *DeviceUpsterCycleMutation) 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 (*DeviceUpsterCycleMutation) FieldCleared ¶
func (m *DeviceUpsterCycleMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*DeviceUpsterCycleMutation) Fields ¶
func (m *DeviceUpsterCycleMutation) 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 (*DeviceUpsterCycleMutation) ID ¶
func (m *DeviceUpsterCycleMutation) ID() (id uint64, 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 (*DeviceUpsterCycleMutation) IDs ¶
func (m *DeviceUpsterCycleMutation) IDs(ctx context.Context) ([]uint64, 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 (*DeviceUpsterCycleMutation) IotID ¶
func (m *DeviceUpsterCycleMutation) IotID() (r string, exists bool)
IotID returns the value of the "iotID" field in the mutation.
func (*DeviceUpsterCycleMutation) Number1 ¶
func (m *DeviceUpsterCycleMutation) Number1() (r int32, exists bool)
Number1 returns the value of the "number1" field in the mutation.
func (*DeviceUpsterCycleMutation) Number1Cleared ¶
func (m *DeviceUpsterCycleMutation) Number1Cleared() bool
Number1Cleared returns if the "number1" field was cleared in this mutation.
func (*DeviceUpsterCycleMutation) Number2 ¶
func (m *DeviceUpsterCycleMutation) Number2() (r int32, exists bool)
Number2 returns the value of the "number2" field in the mutation.
func (*DeviceUpsterCycleMutation) Number2Cleared ¶
func (m *DeviceUpsterCycleMutation) Number2Cleared() bool
Number2Cleared returns if the "number2" field was cleared in this mutation.
func (*DeviceUpsterCycleMutation) Number3 ¶
func (m *DeviceUpsterCycleMutation) Number3() (r int32, exists bool)
Number3 returns the value of the "number3" field in the mutation.
func (*DeviceUpsterCycleMutation) Number3Cleared ¶
func (m *DeviceUpsterCycleMutation) Number3Cleared() bool
Number3Cleared returns if the "number3" field was cleared in this mutation.
func (*DeviceUpsterCycleMutation) NumberCycles ¶
func (m *DeviceUpsterCycleMutation) NumberCycles() (r int32, exists bool)
NumberCycles returns the value of the "numberCycles" field in the mutation.
func (*DeviceUpsterCycleMutation) NumberCyclesCleared ¶
func (m *DeviceUpsterCycleMutation) NumberCyclesCleared() bool
NumberCyclesCleared returns if the "numberCycles" field was cleared in this mutation.
func (*DeviceUpsterCycleMutation) NumberRegeneration ¶
func (m *DeviceUpsterCycleMutation) NumberRegeneration() (r int32, exists bool)
NumberRegeneration returns the value of the "numberRegeneration" field in the mutation.
func (*DeviceUpsterCycleMutation) NumberRegenerationCleared ¶
func (m *DeviceUpsterCycleMutation) NumberRegenerationCleared() bool
NumberRegenerationCleared returns if the "numberRegeneration" field was cleared in this mutation.
func (*DeviceUpsterCycleMutation) NumberRinsingCycles ¶
func (m *DeviceUpsterCycleMutation) NumberRinsingCycles() (r int32, exists bool)
NumberRinsingCycles returns the value of the "numberRinsingCycles" field in the mutation.
func (*DeviceUpsterCycleMutation) NumberRinsingCyclesCleared ¶
func (m *DeviceUpsterCycleMutation) NumberRinsingCyclesCleared() bool
NumberRinsingCyclesCleared returns if the "numberRinsingCycles" field was cleared in this mutation.
func (*DeviceUpsterCycleMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the DeviceUpsterCycle entity. If the DeviceUpsterCycle 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 (*DeviceUpsterCycleMutation) OldDeviceName ¶
func (m *DeviceUpsterCycleMutation) OldDeviceName(ctx context.Context) (v string, err error)
OldDeviceName returns the old "deviceName" field's value of the DeviceUpsterCycle entity. If the DeviceUpsterCycle 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 (*DeviceUpsterCycleMutation) 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 (*DeviceUpsterCycleMutation) OldIotID ¶
func (m *DeviceUpsterCycleMutation) OldIotID(ctx context.Context) (v string, err error)
OldIotID returns the old "iotID" field's value of the DeviceUpsterCycle entity. If the DeviceUpsterCycle 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 (*DeviceUpsterCycleMutation) OldNumber1 ¶
func (m *DeviceUpsterCycleMutation) OldNumber1(ctx context.Context) (v int32, err error)
OldNumber1 returns the old "number1" field's value of the DeviceUpsterCycle entity. If the DeviceUpsterCycle 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 (*DeviceUpsterCycleMutation) OldNumber2 ¶
func (m *DeviceUpsterCycleMutation) OldNumber2(ctx context.Context) (v int32, err error)
OldNumber2 returns the old "number2" field's value of the DeviceUpsterCycle entity. If the DeviceUpsterCycle 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 (*DeviceUpsterCycleMutation) OldNumber3 ¶
func (m *DeviceUpsterCycleMutation) OldNumber3(ctx context.Context) (v int32, err error)
OldNumber3 returns the old "number3" field's value of the DeviceUpsterCycle entity. If the DeviceUpsterCycle 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 (*DeviceUpsterCycleMutation) OldNumberCycles ¶
func (m *DeviceUpsterCycleMutation) OldNumberCycles(ctx context.Context) (v int32, err error)
OldNumberCycles returns the old "numberCycles" field's value of the DeviceUpsterCycle entity. If the DeviceUpsterCycle 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 (*DeviceUpsterCycleMutation) OldNumberRegeneration ¶
func (m *DeviceUpsterCycleMutation) OldNumberRegeneration(ctx context.Context) (v int32, err error)
OldNumberRegeneration returns the old "numberRegeneration" field's value of the DeviceUpsterCycle entity. If the DeviceUpsterCycle 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 (*DeviceUpsterCycleMutation) OldNumberRinsingCycles ¶
func (m *DeviceUpsterCycleMutation) OldNumberRinsingCycles(ctx context.Context) (v int32, err error)
OldNumberRinsingCycles returns the old "numberRinsingCycles" field's value of the DeviceUpsterCycle entity. If the DeviceUpsterCycle 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 (*DeviceUpsterCycleMutation) OldProductKey ¶
func (m *DeviceUpsterCycleMutation) OldProductKey(ctx context.Context) (v string, err error)
OldProductKey returns the old "productKey" field's value of the DeviceUpsterCycle entity. If the DeviceUpsterCycle 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 (*DeviceUpsterCycleMutation) OldSort ¶
func (m *DeviceUpsterCycleMutation) OldSort(ctx context.Context) (v uint32, err error)
OldSort returns the old "sort" field's value of the DeviceUpsterCycle entity. If the DeviceUpsterCycle 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 (*DeviceUpsterCycleMutation) OldStatus ¶
func (m *DeviceUpsterCycleMutation) OldStatus(ctx context.Context) (v uint8, err error)
OldStatus returns the old "status" field's value of the DeviceUpsterCycle entity. If the DeviceUpsterCycle 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 (*DeviceUpsterCycleMutation) OldTimestamp ¶
func (m *DeviceUpsterCycleMutation) OldTimestamp(ctx context.Context) (v string, err error)
OldTimestamp returns the old "timestamp" field's value of the DeviceUpsterCycle entity. If the DeviceUpsterCycle 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 (*DeviceUpsterCycleMutation) OldTotalOperationTime ¶
func (m *DeviceUpsterCycleMutation) OldTotalOperationTime(ctx context.Context) (v int32, err error)
OldTotalOperationTime returns the old "totalOperationTime" field's value of the DeviceUpsterCycle entity. If the DeviceUpsterCycle 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 (*DeviceUpsterCycleMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the DeviceUpsterCycle entity. If the DeviceUpsterCycle 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 (*DeviceUpsterCycleMutation) Op ¶
func (m *DeviceUpsterCycleMutation) Op() Op
Op returns the operation name.
func (*DeviceUpsterCycleMutation) ProductKey ¶
func (m *DeviceUpsterCycleMutation) ProductKey() (r string, exists bool)
ProductKey returns the value of the "productKey" field in the mutation.
func (*DeviceUpsterCycleMutation) QueryContext ¶
func (c *DeviceUpsterCycleMutation) 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 (*DeviceUpsterCycleMutation) RemovedEdges ¶
func (m *DeviceUpsterCycleMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*DeviceUpsterCycleMutation) RemovedIDs ¶
func (m *DeviceUpsterCycleMutation) 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 (*DeviceUpsterCycleMutation) ResetCreatedAt ¶
func (m *DeviceUpsterCycleMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*DeviceUpsterCycleMutation) ResetDeviceName ¶
func (m *DeviceUpsterCycleMutation) ResetDeviceName()
ResetDeviceName resets all changes to the "deviceName" field.
func (*DeviceUpsterCycleMutation) ResetEdge ¶
func (m *DeviceUpsterCycleMutation) 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 (*DeviceUpsterCycleMutation) ResetField ¶
func (m *DeviceUpsterCycleMutation) 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 (*DeviceUpsterCycleMutation) ResetIotID ¶
func (m *DeviceUpsterCycleMutation) ResetIotID()
ResetIotID resets all changes to the "iotID" field.
func (*DeviceUpsterCycleMutation) ResetNumber1 ¶
func (m *DeviceUpsterCycleMutation) ResetNumber1()
ResetNumber1 resets all changes to the "number1" field.
func (*DeviceUpsterCycleMutation) ResetNumber2 ¶
func (m *DeviceUpsterCycleMutation) ResetNumber2()
ResetNumber2 resets all changes to the "number2" field.
func (*DeviceUpsterCycleMutation) ResetNumber3 ¶
func (m *DeviceUpsterCycleMutation) ResetNumber3()
ResetNumber3 resets all changes to the "number3" field.
func (*DeviceUpsterCycleMutation) ResetNumberCycles ¶
func (m *DeviceUpsterCycleMutation) ResetNumberCycles()
ResetNumberCycles resets all changes to the "numberCycles" field.
func (*DeviceUpsterCycleMutation) ResetNumberRegeneration ¶
func (m *DeviceUpsterCycleMutation) ResetNumberRegeneration()
ResetNumberRegeneration resets all changes to the "numberRegeneration" field.
func (*DeviceUpsterCycleMutation) ResetNumberRinsingCycles ¶
func (m *DeviceUpsterCycleMutation) ResetNumberRinsingCycles()
ResetNumberRinsingCycles resets all changes to the "numberRinsingCycles" field.
func (*DeviceUpsterCycleMutation) ResetProductKey ¶
func (m *DeviceUpsterCycleMutation) ResetProductKey()
ResetProductKey resets all changes to the "productKey" field.
func (*DeviceUpsterCycleMutation) ResetSort ¶
func (m *DeviceUpsterCycleMutation) ResetSort()
ResetSort resets all changes to the "sort" field.
func (*DeviceUpsterCycleMutation) ResetStatus ¶
func (m *DeviceUpsterCycleMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*DeviceUpsterCycleMutation) ResetTimestamp ¶
func (m *DeviceUpsterCycleMutation) ResetTimestamp()
ResetTimestamp resets all changes to the "timestamp" field.
func (*DeviceUpsterCycleMutation) ResetTotalOperationTime ¶
func (m *DeviceUpsterCycleMutation) ResetTotalOperationTime()
ResetTotalOperationTime resets all changes to the "totalOperationTime" field.
func (*DeviceUpsterCycleMutation) ResetUpdatedAt ¶
func (m *DeviceUpsterCycleMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*DeviceUpsterCycleMutation) SetCreatedAt ¶
func (m *DeviceUpsterCycleMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*DeviceUpsterCycleMutation) SetDeviceName ¶
func (m *DeviceUpsterCycleMutation) SetDeviceName(s string)
SetDeviceName sets the "deviceName" field.
func (*DeviceUpsterCycleMutation) SetField ¶
func (m *DeviceUpsterCycleMutation) 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 (*DeviceUpsterCycleMutation) SetID ¶
func (m *DeviceUpsterCycleMutation) SetID(id uint64)
SetID sets the value of the id field. Note that this operation is only accepted on creation of DeviceUpsterCycle entities.
func (*DeviceUpsterCycleMutation) SetIotID ¶
func (m *DeviceUpsterCycleMutation) SetIotID(s string)
SetIotID sets the "iotID" field.
func (*DeviceUpsterCycleMutation) SetNumber1 ¶
func (m *DeviceUpsterCycleMutation) SetNumber1(i int32)
SetNumber1 sets the "number1" field.
func (*DeviceUpsterCycleMutation) SetNumber2 ¶
func (m *DeviceUpsterCycleMutation) SetNumber2(i int32)
SetNumber2 sets the "number2" field.
func (*DeviceUpsterCycleMutation) SetNumber3 ¶
func (m *DeviceUpsterCycleMutation) SetNumber3(i int32)
SetNumber3 sets the "number3" field.
func (*DeviceUpsterCycleMutation) SetNumberCycles ¶
func (m *DeviceUpsterCycleMutation) SetNumberCycles(i int32)
SetNumberCycles sets the "numberCycles" field.
func (*DeviceUpsterCycleMutation) SetNumberRegeneration ¶
func (m *DeviceUpsterCycleMutation) SetNumberRegeneration(i int32)
SetNumberRegeneration sets the "numberRegeneration" field.
func (*DeviceUpsterCycleMutation) SetNumberRinsingCycles ¶
func (m *DeviceUpsterCycleMutation) SetNumberRinsingCycles(i int32)
SetNumberRinsingCycles sets the "numberRinsingCycles" field.
func (*DeviceUpsterCycleMutation) SetOp ¶
func (m *DeviceUpsterCycleMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*DeviceUpsterCycleMutation) SetProductKey ¶
func (m *DeviceUpsterCycleMutation) SetProductKey(s string)
SetProductKey sets the "productKey" field.
func (*DeviceUpsterCycleMutation) SetSort ¶
func (m *DeviceUpsterCycleMutation) SetSort(u uint32)
SetSort sets the "sort" field.
func (*DeviceUpsterCycleMutation) SetStatus ¶
func (m *DeviceUpsterCycleMutation) SetStatus(u uint8)
SetStatus sets the "status" field.
func (*DeviceUpsterCycleMutation) SetTimestamp ¶
func (m *DeviceUpsterCycleMutation) SetTimestamp(s string)
SetTimestamp sets the "timestamp" field.
func (*DeviceUpsterCycleMutation) SetTotalOperationTime ¶
func (m *DeviceUpsterCycleMutation) SetTotalOperationTime(i int32)
SetTotalOperationTime sets the "totalOperationTime" field.
func (*DeviceUpsterCycleMutation) SetUpdatedAt ¶
func (m *DeviceUpsterCycleMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*DeviceUpsterCycleMutation) Sort ¶
func (m *DeviceUpsterCycleMutation) Sort() (r uint32, exists bool)
Sort returns the value of the "sort" field in the mutation.
func (*DeviceUpsterCycleMutation) Status ¶
func (m *DeviceUpsterCycleMutation) Status() (r uint8, exists bool)
Status returns the value of the "status" field in the mutation.
func (*DeviceUpsterCycleMutation) StatusCleared ¶
func (m *DeviceUpsterCycleMutation) StatusCleared() bool
StatusCleared returns if the "status" field was cleared in this mutation.
func (*DeviceUpsterCycleMutation) Timestamp ¶
func (m *DeviceUpsterCycleMutation) Timestamp() (r string, exists bool)
Timestamp returns the value of the "timestamp" field in the mutation.
func (*DeviceUpsterCycleMutation) TimestampCleared ¶
func (m *DeviceUpsterCycleMutation) TimestampCleared() bool
TimestampCleared returns if the "timestamp" field was cleared in this mutation.
func (*DeviceUpsterCycleMutation) TotalOperationTime ¶
func (m *DeviceUpsterCycleMutation) TotalOperationTime() (r int32, exists bool)
TotalOperationTime returns the value of the "totalOperationTime" field in the mutation.
func (*DeviceUpsterCycleMutation) TotalOperationTimeCleared ¶
func (m *DeviceUpsterCycleMutation) TotalOperationTimeCleared() bool
TotalOperationTimeCleared returns if the "totalOperationTime" field was cleared in this mutation.
func (DeviceUpsterCycleMutation) Tx ¶
func (m DeviceUpsterCycleMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*DeviceUpsterCycleMutation) Type ¶
func (m *DeviceUpsterCycleMutation) Type() string
Type returns the node type of this mutation (DeviceUpsterCycle).
func (*DeviceUpsterCycleMutation) UpdatedAt ¶
func (m *DeviceUpsterCycleMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*DeviceUpsterCycleMutation) Where ¶
func (m *DeviceUpsterCycleMutation) Where(ps ...predicate.DeviceUpsterCycle)
Where appends a list predicates to the DeviceUpsterCycleMutation builder.
func (*DeviceUpsterCycleMutation) WhereP ¶
func (m *DeviceUpsterCycleMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the DeviceUpsterCycleMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type DeviceUpsterCyclePageList ¶
type DeviceUpsterCyclePageList struct { List []*DeviceUpsterCycle `json:"list"` PageDetails *PageDetails `json:"pageDetails"` }
DeviceUpsterCyclePageList is DeviceUpsterCycle PageList result.
type DeviceUpsterCyclePager ¶
type DeviceUpsterCyclePager struct { Order deviceupstercycle.OrderOption Filter func(*DeviceUpsterCycleQuery) (*DeviceUpsterCycleQuery, error) }
func (*DeviceUpsterCyclePager) ApplyFilter ¶
func (p *DeviceUpsterCyclePager) ApplyFilter(query *DeviceUpsterCycleQuery) (*DeviceUpsterCycleQuery, error)
type DeviceUpsterCyclePaginateOption ¶
type DeviceUpsterCyclePaginateOption func(*DeviceUpsterCyclePager)
DeviceUpsterCyclePaginateOption enables pagination customization.
type DeviceUpsterCycleQuery ¶
type DeviceUpsterCycleQuery struct {
// contains filtered or unexported fields
}
DeviceUpsterCycleQuery is the builder for querying DeviceUpsterCycle entities.
func (*DeviceUpsterCycleQuery) Aggregate ¶
func (ducq *DeviceUpsterCycleQuery) Aggregate(fns ...AggregateFunc) *DeviceUpsterCycleSelect
Aggregate returns a DeviceUpsterCycleSelect configured with the given aggregations.
func (*DeviceUpsterCycleQuery) All ¶
func (ducq *DeviceUpsterCycleQuery) All(ctx context.Context) ([]*DeviceUpsterCycle, error)
All executes the query and returns a list of DeviceUpsterCycles.
func (*DeviceUpsterCycleQuery) AllX ¶
func (ducq *DeviceUpsterCycleQuery) AllX(ctx context.Context) []*DeviceUpsterCycle
AllX is like All, but panics if an error occurs.
func (*DeviceUpsterCycleQuery) Clone ¶
func (ducq *DeviceUpsterCycleQuery) Clone() *DeviceUpsterCycleQuery
Clone returns a duplicate of the DeviceUpsterCycleQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*DeviceUpsterCycleQuery) Count ¶
func (ducq *DeviceUpsterCycleQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*DeviceUpsterCycleQuery) CountX ¶
func (ducq *DeviceUpsterCycleQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*DeviceUpsterCycleQuery) ExecContext ¶
func (c *DeviceUpsterCycleQuery) 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 (*DeviceUpsterCycleQuery) Exist ¶
func (ducq *DeviceUpsterCycleQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*DeviceUpsterCycleQuery) ExistX ¶
func (ducq *DeviceUpsterCycleQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*DeviceUpsterCycleQuery) First ¶
func (ducq *DeviceUpsterCycleQuery) First(ctx context.Context) (*DeviceUpsterCycle, error)
First returns the first DeviceUpsterCycle entity from the query. Returns a *NotFoundError when no DeviceUpsterCycle was found.
func (*DeviceUpsterCycleQuery) FirstID ¶
func (ducq *DeviceUpsterCycleQuery) FirstID(ctx context.Context) (id uint64, err error)
FirstID returns the first DeviceUpsterCycle ID from the query. Returns a *NotFoundError when no DeviceUpsterCycle ID was found.
func (*DeviceUpsterCycleQuery) FirstIDX ¶
func (ducq *DeviceUpsterCycleQuery) FirstIDX(ctx context.Context) uint64
FirstIDX is like FirstID, but panics if an error occurs.
func (*DeviceUpsterCycleQuery) FirstX ¶
func (ducq *DeviceUpsterCycleQuery) FirstX(ctx context.Context) *DeviceUpsterCycle
FirstX is like First, but panics if an error occurs.
func (*DeviceUpsterCycleQuery) GroupBy ¶
func (ducq *DeviceUpsterCycleQuery) GroupBy(field string, fields ...string) *DeviceUpsterCycleGroupBy
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.DeviceUpsterCycle.Query(). GroupBy(deviceupstercycle.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*DeviceUpsterCycleQuery) IDs ¶
func (ducq *DeviceUpsterCycleQuery) IDs(ctx context.Context) (ids []uint64, err error)
IDs executes the query and returns a list of DeviceUpsterCycle IDs.
func (*DeviceUpsterCycleQuery) IDsX ¶
func (ducq *DeviceUpsterCycleQuery) IDsX(ctx context.Context) []uint64
IDsX is like IDs, but panics if an error occurs.
func (*DeviceUpsterCycleQuery) Limit ¶
func (ducq *DeviceUpsterCycleQuery) Limit(limit int) *DeviceUpsterCycleQuery
Limit the number of records to be returned by this query.
func (*DeviceUpsterCycleQuery) Modify ¶
func (ducq *DeviceUpsterCycleQuery) Modify(modifiers ...func(s *sql.Selector)) *DeviceUpsterCycleSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*DeviceUpsterCycleQuery) Offset ¶
func (ducq *DeviceUpsterCycleQuery) Offset(offset int) *DeviceUpsterCycleQuery
Offset to start from.
func (*DeviceUpsterCycleQuery) Only ¶
func (ducq *DeviceUpsterCycleQuery) Only(ctx context.Context) (*DeviceUpsterCycle, error)
Only returns a single DeviceUpsterCycle entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one DeviceUpsterCycle entity is found. Returns a *NotFoundError when no DeviceUpsterCycle entities are found.
func (*DeviceUpsterCycleQuery) OnlyID ¶
func (ducq *DeviceUpsterCycleQuery) OnlyID(ctx context.Context) (id uint64, err error)
OnlyID is like Only, but returns the only DeviceUpsterCycle ID in the query. Returns a *NotSingularError when more than one DeviceUpsterCycle ID is found. Returns a *NotFoundError when no entities are found.
func (*DeviceUpsterCycleQuery) OnlyIDX ¶
func (ducq *DeviceUpsterCycleQuery) OnlyIDX(ctx context.Context) uint64
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*DeviceUpsterCycleQuery) OnlyX ¶
func (ducq *DeviceUpsterCycleQuery) OnlyX(ctx context.Context) *DeviceUpsterCycle
OnlyX is like Only, but panics if an error occurs.
func (*DeviceUpsterCycleQuery) Order ¶
func (ducq *DeviceUpsterCycleQuery) Order(o ...deviceupstercycle.OrderOption) *DeviceUpsterCycleQuery
Order specifies how the records should be ordered.
func (*DeviceUpsterCycleQuery) Page ¶
func (duc *DeviceUpsterCycleQuery) Page( ctx context.Context, pageNum uint64, pageSize uint64, opts ...DeviceUpsterCyclePaginateOption, ) (*DeviceUpsterCyclePageList, error)
func (*DeviceUpsterCycleQuery) QueryContext ¶
func (c *DeviceUpsterCycleQuery) 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 (*DeviceUpsterCycleQuery) Select ¶
func (ducq *DeviceUpsterCycleQuery) Select(fields ...string) *DeviceUpsterCycleSelect
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.DeviceUpsterCycle.Query(). Select(deviceupstercycle.FieldCreatedAt). Scan(ctx, &v)
func (*DeviceUpsterCycleQuery) Unique ¶
func (ducq *DeviceUpsterCycleQuery) Unique(unique bool) *DeviceUpsterCycleQuery
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 (*DeviceUpsterCycleQuery) Where ¶
func (ducq *DeviceUpsterCycleQuery) Where(ps ...predicate.DeviceUpsterCycle) *DeviceUpsterCycleQuery
Where adds a new predicate for the DeviceUpsterCycleQuery builder.
type DeviceUpsterCycleSelect ¶
type DeviceUpsterCycleSelect struct { *DeviceUpsterCycleQuery // contains filtered or unexported fields }
DeviceUpsterCycleSelect is the builder for selecting fields of DeviceUpsterCycle entities.
func (*DeviceUpsterCycleSelect) Aggregate ¶
func (ducs *DeviceUpsterCycleSelect) Aggregate(fns ...AggregateFunc) *DeviceUpsterCycleSelect
Aggregate adds the given aggregation functions to the selector query.
func (*DeviceUpsterCycleSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DeviceUpsterCycleSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (DeviceUpsterCycleSelect) ExecContext ¶
func (c DeviceUpsterCycleSelect) 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 (*DeviceUpsterCycleSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DeviceUpsterCycleSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DeviceUpsterCycleSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*DeviceUpsterCycleSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DeviceUpsterCycleSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*DeviceUpsterCycleSelect) Modify ¶
func (ducs *DeviceUpsterCycleSelect) Modify(modifiers ...func(s *sql.Selector)) *DeviceUpsterCycleSelect
Modify adds a query modifier for attaching custom logic to queries.
func (DeviceUpsterCycleSelect) QueryContext ¶
func (c DeviceUpsterCycleSelect) 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 (*DeviceUpsterCycleSelect) Scan ¶
func (ducs *DeviceUpsterCycleSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*DeviceUpsterCycleSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type DeviceUpsterCycleUpdate ¶
type DeviceUpsterCycleUpdate struct {
// contains filtered or unexported fields
}
DeviceUpsterCycleUpdate is the builder for updating DeviceUpsterCycle entities.
func (*DeviceUpsterCycleUpdate) AddNumber1 ¶
func (ducu *DeviceUpsterCycleUpdate) AddNumber1(i int32) *DeviceUpsterCycleUpdate
AddNumber1 adds i to the "number1" field.
func (*DeviceUpsterCycleUpdate) AddNumber2 ¶
func (ducu *DeviceUpsterCycleUpdate) AddNumber2(i int32) *DeviceUpsterCycleUpdate
AddNumber2 adds i to the "number2" field.
func (*DeviceUpsterCycleUpdate) AddNumber3 ¶
func (ducu *DeviceUpsterCycleUpdate) AddNumber3(i int32) *DeviceUpsterCycleUpdate
AddNumber3 adds i to the "number3" field.
func (*DeviceUpsterCycleUpdate) AddNumberCycles ¶
func (ducu *DeviceUpsterCycleUpdate) AddNumberCycles(i int32) *DeviceUpsterCycleUpdate
AddNumberCycles adds i to the "numberCycles" field.
func (*DeviceUpsterCycleUpdate) AddNumberRegeneration ¶
func (ducu *DeviceUpsterCycleUpdate) AddNumberRegeneration(i int32) *DeviceUpsterCycleUpdate
AddNumberRegeneration adds i to the "numberRegeneration" field.
func (*DeviceUpsterCycleUpdate) AddNumberRinsingCycles ¶
func (ducu *DeviceUpsterCycleUpdate) AddNumberRinsingCycles(i int32) *DeviceUpsterCycleUpdate
AddNumberRinsingCycles adds i to the "numberRinsingCycles" field.
func (*DeviceUpsterCycleUpdate) AddSort ¶
func (ducu *DeviceUpsterCycleUpdate) AddSort(u int32) *DeviceUpsterCycleUpdate
AddSort adds u to the "sort" field.
func (*DeviceUpsterCycleUpdate) AddStatus ¶
func (ducu *DeviceUpsterCycleUpdate) AddStatus(u int8) *DeviceUpsterCycleUpdate
AddStatus adds u to the "status" field.
func (*DeviceUpsterCycleUpdate) AddTotalOperationTime ¶
func (ducu *DeviceUpsterCycleUpdate) AddTotalOperationTime(i int32) *DeviceUpsterCycleUpdate
AddTotalOperationTime adds i to the "totalOperationTime" field.
func (*DeviceUpsterCycleUpdate) ClearNumber1 ¶
func (ducu *DeviceUpsterCycleUpdate) ClearNumber1() *DeviceUpsterCycleUpdate
ClearNumber1 clears the value of the "number1" field.
func (*DeviceUpsterCycleUpdate) ClearNumber2 ¶
func (ducu *DeviceUpsterCycleUpdate) ClearNumber2() *DeviceUpsterCycleUpdate
ClearNumber2 clears the value of the "number2" field.
func (*DeviceUpsterCycleUpdate) ClearNumber3 ¶
func (ducu *DeviceUpsterCycleUpdate) ClearNumber3() *DeviceUpsterCycleUpdate
ClearNumber3 clears the value of the "number3" field.
func (*DeviceUpsterCycleUpdate) ClearNumberCycles ¶
func (ducu *DeviceUpsterCycleUpdate) ClearNumberCycles() *DeviceUpsterCycleUpdate
ClearNumberCycles clears the value of the "numberCycles" field.
func (*DeviceUpsterCycleUpdate) ClearNumberRegeneration ¶
func (ducu *DeviceUpsterCycleUpdate) ClearNumberRegeneration() *DeviceUpsterCycleUpdate
ClearNumberRegeneration clears the value of the "numberRegeneration" field.
func (*DeviceUpsterCycleUpdate) ClearNumberRinsingCycles ¶
func (ducu *DeviceUpsterCycleUpdate) ClearNumberRinsingCycles() *DeviceUpsterCycleUpdate
ClearNumberRinsingCycles clears the value of the "numberRinsingCycles" field.
func (*DeviceUpsterCycleUpdate) ClearStatus ¶
func (ducu *DeviceUpsterCycleUpdate) ClearStatus() *DeviceUpsterCycleUpdate
ClearStatus clears the value of the "status" field.
func (*DeviceUpsterCycleUpdate) ClearTimestamp ¶
func (ducu *DeviceUpsterCycleUpdate) ClearTimestamp() *DeviceUpsterCycleUpdate
ClearTimestamp clears the value of the "timestamp" field.
func (*DeviceUpsterCycleUpdate) ClearTotalOperationTime ¶
func (ducu *DeviceUpsterCycleUpdate) ClearTotalOperationTime() *DeviceUpsterCycleUpdate
ClearTotalOperationTime clears the value of the "totalOperationTime" field.
func (*DeviceUpsterCycleUpdate) Exec ¶
func (ducu *DeviceUpsterCycleUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceUpsterCycleUpdate) ExecContext ¶
func (c *DeviceUpsterCycleUpdate) 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 (*DeviceUpsterCycleUpdate) ExecX ¶
func (ducu *DeviceUpsterCycleUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceUpsterCycleUpdate) Modify ¶
func (ducu *DeviceUpsterCycleUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceUpsterCycleUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*DeviceUpsterCycleUpdate) Mutation ¶
func (ducu *DeviceUpsterCycleUpdate) Mutation() *DeviceUpsterCycleMutation
Mutation returns the DeviceUpsterCycleMutation object of the builder.
func (*DeviceUpsterCycleUpdate) QueryContext ¶
func (c *DeviceUpsterCycleUpdate) 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 (*DeviceUpsterCycleUpdate) Save ¶
func (ducu *DeviceUpsterCycleUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*DeviceUpsterCycleUpdate) SaveX ¶
func (ducu *DeviceUpsterCycleUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*DeviceUpsterCycleUpdate) SetDeviceName ¶
func (ducu *DeviceUpsterCycleUpdate) SetDeviceName(s string) *DeviceUpsterCycleUpdate
SetDeviceName sets the "deviceName" field.
func (*DeviceUpsterCycleUpdate) SetIotID ¶
func (ducu *DeviceUpsterCycleUpdate) SetIotID(s string) *DeviceUpsterCycleUpdate
SetIotID sets the "iotID" field.
func (*DeviceUpsterCycleUpdate) SetNillableDeviceName ¶
func (ducu *DeviceUpsterCycleUpdate) SetNillableDeviceName(s *string) *DeviceUpsterCycleUpdate
SetNillableDeviceName sets the "deviceName" field if the given value is not nil.
func (*DeviceUpsterCycleUpdate) SetNillableIotID ¶
func (ducu *DeviceUpsterCycleUpdate) SetNillableIotID(s *string) *DeviceUpsterCycleUpdate
SetNillableIotID sets the "iotID" field if the given value is not nil.
func (*DeviceUpsterCycleUpdate) SetNillableNumber1 ¶
func (ducu *DeviceUpsterCycleUpdate) SetNillableNumber1(i *int32) *DeviceUpsterCycleUpdate
SetNillableNumber1 sets the "number1" field if the given value is not nil.
func (*DeviceUpsterCycleUpdate) SetNillableNumber2 ¶
func (ducu *DeviceUpsterCycleUpdate) SetNillableNumber2(i *int32) *DeviceUpsterCycleUpdate
SetNillableNumber2 sets the "number2" field if the given value is not nil.
func (*DeviceUpsterCycleUpdate) SetNillableNumber3 ¶
func (ducu *DeviceUpsterCycleUpdate) SetNillableNumber3(i *int32) *DeviceUpsterCycleUpdate
SetNillableNumber3 sets the "number3" field if the given value is not nil.
func (*DeviceUpsterCycleUpdate) SetNillableNumberCycles ¶
func (ducu *DeviceUpsterCycleUpdate) SetNillableNumberCycles(i *int32) *DeviceUpsterCycleUpdate
SetNillableNumberCycles sets the "numberCycles" field if the given value is not nil.
func (*DeviceUpsterCycleUpdate) SetNillableNumberRegeneration ¶
func (ducu *DeviceUpsterCycleUpdate) SetNillableNumberRegeneration(i *int32) *DeviceUpsterCycleUpdate
SetNillableNumberRegeneration sets the "numberRegeneration" field if the given value is not nil.
func (*DeviceUpsterCycleUpdate) SetNillableNumberRinsingCycles ¶
func (ducu *DeviceUpsterCycleUpdate) SetNillableNumberRinsingCycles(i *int32) *DeviceUpsterCycleUpdate
SetNillableNumberRinsingCycles sets the "numberRinsingCycles" field if the given value is not nil.
func (*DeviceUpsterCycleUpdate) SetNillableProductKey ¶
func (ducu *DeviceUpsterCycleUpdate) SetNillableProductKey(s *string) *DeviceUpsterCycleUpdate
SetNillableProductKey sets the "productKey" field if the given value is not nil.
func (*DeviceUpsterCycleUpdate) SetNillableSort ¶
func (ducu *DeviceUpsterCycleUpdate) SetNillableSort(u *uint32) *DeviceUpsterCycleUpdate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DeviceUpsterCycleUpdate) SetNillableStatus ¶
func (ducu *DeviceUpsterCycleUpdate) SetNillableStatus(u *uint8) *DeviceUpsterCycleUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DeviceUpsterCycleUpdate) SetNillableTimestamp ¶
func (ducu *DeviceUpsterCycleUpdate) SetNillableTimestamp(s *string) *DeviceUpsterCycleUpdate
SetNillableTimestamp sets the "timestamp" field if the given value is not nil.
func (*DeviceUpsterCycleUpdate) SetNillableTotalOperationTime ¶
func (ducu *DeviceUpsterCycleUpdate) SetNillableTotalOperationTime(i *int32) *DeviceUpsterCycleUpdate
SetNillableTotalOperationTime sets the "totalOperationTime" field if the given value is not nil.
func (*DeviceUpsterCycleUpdate) SetNotNilDeviceName ¶
func (duc *DeviceUpsterCycleUpdate) SetNotNilDeviceName(value *string) *DeviceUpsterCycleUpdate
set field if value's pointer is not nil.
func (*DeviceUpsterCycleUpdate) SetNotNilIotID ¶
func (duc *DeviceUpsterCycleUpdate) SetNotNilIotID(value *string) *DeviceUpsterCycleUpdate
set field if value's pointer is not nil.
func (*DeviceUpsterCycleUpdate) SetNotNilNumber1 ¶
func (duc *DeviceUpsterCycleUpdate) SetNotNilNumber1(value *int32) *DeviceUpsterCycleUpdate
set field if value's pointer is not nil.
func (*DeviceUpsterCycleUpdate) SetNotNilNumber2 ¶
func (duc *DeviceUpsterCycleUpdate) SetNotNilNumber2(value *int32) *DeviceUpsterCycleUpdate
set field if value's pointer is not nil.
func (*DeviceUpsterCycleUpdate) SetNotNilNumber3 ¶
func (duc *DeviceUpsterCycleUpdate) SetNotNilNumber3(value *int32) *DeviceUpsterCycleUpdate
set field if value's pointer is not nil.
func (*DeviceUpsterCycleUpdate) SetNotNilNumberCycles ¶
func (duc *DeviceUpsterCycleUpdate) SetNotNilNumberCycles(value *int32) *DeviceUpsterCycleUpdate
set field if value's pointer is not nil.
func (*DeviceUpsterCycleUpdate) SetNotNilNumberRegeneration ¶
func (duc *DeviceUpsterCycleUpdate) SetNotNilNumberRegeneration(value *int32) *DeviceUpsterCycleUpdate
set field if value's pointer is not nil.
func (*DeviceUpsterCycleUpdate) SetNotNilNumberRinsingCycles ¶
func (duc *DeviceUpsterCycleUpdate) SetNotNilNumberRinsingCycles(value *int32) *DeviceUpsterCycleUpdate
set field if value's pointer is not nil.
func (*DeviceUpsterCycleUpdate) SetNotNilProductKey ¶
func (duc *DeviceUpsterCycleUpdate) SetNotNilProductKey(value *string) *DeviceUpsterCycleUpdate
set field if value's pointer is not nil.
func (*DeviceUpsterCycleUpdate) SetNotNilSort ¶
func (duc *DeviceUpsterCycleUpdate) SetNotNilSort(value *uint32) *DeviceUpsterCycleUpdate
set field if value's pointer is not nil.
func (*DeviceUpsterCycleUpdate) SetNotNilStatus ¶
func (duc *DeviceUpsterCycleUpdate) SetNotNilStatus(value *uint8) *DeviceUpsterCycleUpdate
set field if value's pointer is not nil.
func (*DeviceUpsterCycleUpdate) SetNotNilTimestamp ¶
func (duc *DeviceUpsterCycleUpdate) SetNotNilTimestamp(value *string) *DeviceUpsterCycleUpdate
set field if value's pointer is not nil.
func (*DeviceUpsterCycleUpdate) SetNotNilTotalOperationTime ¶
func (duc *DeviceUpsterCycleUpdate) SetNotNilTotalOperationTime(value *int32) *DeviceUpsterCycleUpdate
set field if value's pointer is not nil.
func (*DeviceUpsterCycleUpdate) SetNotNilUpdatedAt ¶
func (duc *DeviceUpsterCycleUpdate) SetNotNilUpdatedAt(value *time.Time) *DeviceUpsterCycleUpdate
set field if value's pointer is not nil.
func (*DeviceUpsterCycleUpdate) SetNumber1 ¶
func (ducu *DeviceUpsterCycleUpdate) SetNumber1(i int32) *DeviceUpsterCycleUpdate
SetNumber1 sets the "number1" field.
func (*DeviceUpsterCycleUpdate) SetNumber2 ¶
func (ducu *DeviceUpsterCycleUpdate) SetNumber2(i int32) *DeviceUpsterCycleUpdate
SetNumber2 sets the "number2" field.
func (*DeviceUpsterCycleUpdate) SetNumber3 ¶
func (ducu *DeviceUpsterCycleUpdate) SetNumber3(i int32) *DeviceUpsterCycleUpdate
SetNumber3 sets the "number3" field.
func (*DeviceUpsterCycleUpdate) SetNumberCycles ¶
func (ducu *DeviceUpsterCycleUpdate) SetNumberCycles(i int32) *DeviceUpsterCycleUpdate
SetNumberCycles sets the "numberCycles" field.
func (*DeviceUpsterCycleUpdate) SetNumberRegeneration ¶
func (ducu *DeviceUpsterCycleUpdate) SetNumberRegeneration(i int32) *DeviceUpsterCycleUpdate
SetNumberRegeneration sets the "numberRegeneration" field.
func (*DeviceUpsterCycleUpdate) SetNumberRinsingCycles ¶
func (ducu *DeviceUpsterCycleUpdate) SetNumberRinsingCycles(i int32) *DeviceUpsterCycleUpdate
SetNumberRinsingCycles sets the "numberRinsingCycles" field.
func (*DeviceUpsterCycleUpdate) SetProductKey ¶
func (ducu *DeviceUpsterCycleUpdate) SetProductKey(s string) *DeviceUpsterCycleUpdate
SetProductKey sets the "productKey" field.
func (*DeviceUpsterCycleUpdate) SetSort ¶
func (ducu *DeviceUpsterCycleUpdate) SetSort(u uint32) *DeviceUpsterCycleUpdate
SetSort sets the "sort" field.
func (*DeviceUpsterCycleUpdate) SetStatus ¶
func (ducu *DeviceUpsterCycleUpdate) SetStatus(u uint8) *DeviceUpsterCycleUpdate
SetStatus sets the "status" field.
func (*DeviceUpsterCycleUpdate) SetTimestamp ¶
func (ducu *DeviceUpsterCycleUpdate) SetTimestamp(s string) *DeviceUpsterCycleUpdate
SetTimestamp sets the "timestamp" field.
func (*DeviceUpsterCycleUpdate) SetTotalOperationTime ¶
func (ducu *DeviceUpsterCycleUpdate) SetTotalOperationTime(i int32) *DeviceUpsterCycleUpdate
SetTotalOperationTime sets the "totalOperationTime" field.
func (*DeviceUpsterCycleUpdate) SetUpdatedAt ¶
func (ducu *DeviceUpsterCycleUpdate) SetUpdatedAt(t time.Time) *DeviceUpsterCycleUpdate
SetUpdatedAt sets the "updated_at" field.
func (*DeviceUpsterCycleUpdate) Where ¶
func (ducu *DeviceUpsterCycleUpdate) Where(ps ...predicate.DeviceUpsterCycle) *DeviceUpsterCycleUpdate
Where appends a list predicates to the DeviceUpsterCycleUpdate builder.
type DeviceUpsterCycleUpdateOne ¶
type DeviceUpsterCycleUpdateOne struct {
// contains filtered or unexported fields
}
DeviceUpsterCycleUpdateOne is the builder for updating a single DeviceUpsterCycle entity.
func (*DeviceUpsterCycleUpdateOne) AddNumber1 ¶
func (ducuo *DeviceUpsterCycleUpdateOne) AddNumber1(i int32) *DeviceUpsterCycleUpdateOne
AddNumber1 adds i to the "number1" field.
func (*DeviceUpsterCycleUpdateOne) AddNumber2 ¶
func (ducuo *DeviceUpsterCycleUpdateOne) AddNumber2(i int32) *DeviceUpsterCycleUpdateOne
AddNumber2 adds i to the "number2" field.
func (*DeviceUpsterCycleUpdateOne) AddNumber3 ¶
func (ducuo *DeviceUpsterCycleUpdateOne) AddNumber3(i int32) *DeviceUpsterCycleUpdateOne
AddNumber3 adds i to the "number3" field.
func (*DeviceUpsterCycleUpdateOne) AddNumberCycles ¶
func (ducuo *DeviceUpsterCycleUpdateOne) AddNumberCycles(i int32) *DeviceUpsterCycleUpdateOne
AddNumberCycles adds i to the "numberCycles" field.
func (*DeviceUpsterCycleUpdateOne) AddNumberRegeneration ¶
func (ducuo *DeviceUpsterCycleUpdateOne) AddNumberRegeneration(i int32) *DeviceUpsterCycleUpdateOne
AddNumberRegeneration adds i to the "numberRegeneration" field.
func (*DeviceUpsterCycleUpdateOne) AddNumberRinsingCycles ¶
func (ducuo *DeviceUpsterCycleUpdateOne) AddNumberRinsingCycles(i int32) *DeviceUpsterCycleUpdateOne
AddNumberRinsingCycles adds i to the "numberRinsingCycles" field.
func (*DeviceUpsterCycleUpdateOne) AddSort ¶
func (ducuo *DeviceUpsterCycleUpdateOne) AddSort(u int32) *DeviceUpsterCycleUpdateOne
AddSort adds u to the "sort" field.
func (*DeviceUpsterCycleUpdateOne) AddStatus ¶
func (ducuo *DeviceUpsterCycleUpdateOne) AddStatus(u int8) *DeviceUpsterCycleUpdateOne
AddStatus adds u to the "status" field.
func (*DeviceUpsterCycleUpdateOne) AddTotalOperationTime ¶
func (ducuo *DeviceUpsterCycleUpdateOne) AddTotalOperationTime(i int32) *DeviceUpsterCycleUpdateOne
AddTotalOperationTime adds i to the "totalOperationTime" field.
func (*DeviceUpsterCycleUpdateOne) ClearNumber1 ¶
func (ducuo *DeviceUpsterCycleUpdateOne) ClearNumber1() *DeviceUpsterCycleUpdateOne
ClearNumber1 clears the value of the "number1" field.
func (*DeviceUpsterCycleUpdateOne) ClearNumber2 ¶
func (ducuo *DeviceUpsterCycleUpdateOne) ClearNumber2() *DeviceUpsterCycleUpdateOne
ClearNumber2 clears the value of the "number2" field.
func (*DeviceUpsterCycleUpdateOne) ClearNumber3 ¶
func (ducuo *DeviceUpsterCycleUpdateOne) ClearNumber3() *DeviceUpsterCycleUpdateOne
ClearNumber3 clears the value of the "number3" field.
func (*DeviceUpsterCycleUpdateOne) ClearNumberCycles ¶
func (ducuo *DeviceUpsterCycleUpdateOne) ClearNumberCycles() *DeviceUpsterCycleUpdateOne
ClearNumberCycles clears the value of the "numberCycles" field.
func (*DeviceUpsterCycleUpdateOne) ClearNumberRegeneration ¶
func (ducuo *DeviceUpsterCycleUpdateOne) ClearNumberRegeneration() *DeviceUpsterCycleUpdateOne
ClearNumberRegeneration clears the value of the "numberRegeneration" field.
func (*DeviceUpsterCycleUpdateOne) ClearNumberRinsingCycles ¶
func (ducuo *DeviceUpsterCycleUpdateOne) ClearNumberRinsingCycles() *DeviceUpsterCycleUpdateOne
ClearNumberRinsingCycles clears the value of the "numberRinsingCycles" field.
func (*DeviceUpsterCycleUpdateOne) ClearStatus ¶
func (ducuo *DeviceUpsterCycleUpdateOne) ClearStatus() *DeviceUpsterCycleUpdateOne
ClearStatus clears the value of the "status" field.
func (*DeviceUpsterCycleUpdateOne) ClearTimestamp ¶
func (ducuo *DeviceUpsterCycleUpdateOne) ClearTimestamp() *DeviceUpsterCycleUpdateOne
ClearTimestamp clears the value of the "timestamp" field.
func (*DeviceUpsterCycleUpdateOne) ClearTotalOperationTime ¶
func (ducuo *DeviceUpsterCycleUpdateOne) ClearTotalOperationTime() *DeviceUpsterCycleUpdateOne
ClearTotalOperationTime clears the value of the "totalOperationTime" field.
func (*DeviceUpsterCycleUpdateOne) Exec ¶
func (ducuo *DeviceUpsterCycleUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*DeviceUpsterCycleUpdateOne) ExecContext ¶
func (c *DeviceUpsterCycleUpdateOne) 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 (*DeviceUpsterCycleUpdateOne) ExecX ¶
func (ducuo *DeviceUpsterCycleUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceUpsterCycleUpdateOne) Modify ¶
func (ducuo *DeviceUpsterCycleUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceUpsterCycleUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*DeviceUpsterCycleUpdateOne) Mutation ¶
func (ducuo *DeviceUpsterCycleUpdateOne) Mutation() *DeviceUpsterCycleMutation
Mutation returns the DeviceUpsterCycleMutation object of the builder.
func (*DeviceUpsterCycleUpdateOne) QueryContext ¶
func (c *DeviceUpsterCycleUpdateOne) 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 (*DeviceUpsterCycleUpdateOne) Save ¶
func (ducuo *DeviceUpsterCycleUpdateOne) Save(ctx context.Context) (*DeviceUpsterCycle, error)
Save executes the query and returns the updated DeviceUpsterCycle entity.
func (*DeviceUpsterCycleUpdateOne) SaveX ¶
func (ducuo *DeviceUpsterCycleUpdateOne) SaveX(ctx context.Context) *DeviceUpsterCycle
SaveX is like Save, but panics if an error occurs.
func (*DeviceUpsterCycleUpdateOne) Select ¶
func (ducuo *DeviceUpsterCycleUpdateOne) Select(field string, fields ...string) *DeviceUpsterCycleUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*DeviceUpsterCycleUpdateOne) SetDeviceName ¶
func (ducuo *DeviceUpsterCycleUpdateOne) SetDeviceName(s string) *DeviceUpsterCycleUpdateOne
SetDeviceName sets the "deviceName" field.
func (*DeviceUpsterCycleUpdateOne) SetIotID ¶
func (ducuo *DeviceUpsterCycleUpdateOne) SetIotID(s string) *DeviceUpsterCycleUpdateOne
SetIotID sets the "iotID" field.
func (*DeviceUpsterCycleUpdateOne) SetNillableDeviceName ¶
func (ducuo *DeviceUpsterCycleUpdateOne) SetNillableDeviceName(s *string) *DeviceUpsterCycleUpdateOne
SetNillableDeviceName sets the "deviceName" field if the given value is not nil.
func (*DeviceUpsterCycleUpdateOne) SetNillableIotID ¶
func (ducuo *DeviceUpsterCycleUpdateOne) SetNillableIotID(s *string) *DeviceUpsterCycleUpdateOne
SetNillableIotID sets the "iotID" field if the given value is not nil.
func (*DeviceUpsterCycleUpdateOne) SetNillableNumber1 ¶
func (ducuo *DeviceUpsterCycleUpdateOne) SetNillableNumber1(i *int32) *DeviceUpsterCycleUpdateOne
SetNillableNumber1 sets the "number1" field if the given value is not nil.
func (*DeviceUpsterCycleUpdateOne) SetNillableNumber2 ¶
func (ducuo *DeviceUpsterCycleUpdateOne) SetNillableNumber2(i *int32) *DeviceUpsterCycleUpdateOne
SetNillableNumber2 sets the "number2" field if the given value is not nil.
func (*DeviceUpsterCycleUpdateOne) SetNillableNumber3 ¶
func (ducuo *DeviceUpsterCycleUpdateOne) SetNillableNumber3(i *int32) *DeviceUpsterCycleUpdateOne
SetNillableNumber3 sets the "number3" field if the given value is not nil.
func (*DeviceUpsterCycleUpdateOne) SetNillableNumberCycles ¶
func (ducuo *DeviceUpsterCycleUpdateOne) SetNillableNumberCycles(i *int32) *DeviceUpsterCycleUpdateOne
SetNillableNumberCycles sets the "numberCycles" field if the given value is not nil.
func (*DeviceUpsterCycleUpdateOne) SetNillableNumberRegeneration ¶
func (ducuo *DeviceUpsterCycleUpdateOne) SetNillableNumberRegeneration(i *int32) *DeviceUpsterCycleUpdateOne
SetNillableNumberRegeneration sets the "numberRegeneration" field if the given value is not nil.
func (*DeviceUpsterCycleUpdateOne) SetNillableNumberRinsingCycles ¶
func (ducuo *DeviceUpsterCycleUpdateOne) SetNillableNumberRinsingCycles(i *int32) *DeviceUpsterCycleUpdateOne
SetNillableNumberRinsingCycles sets the "numberRinsingCycles" field if the given value is not nil.
func (*DeviceUpsterCycleUpdateOne) SetNillableProductKey ¶
func (ducuo *DeviceUpsterCycleUpdateOne) SetNillableProductKey(s *string) *DeviceUpsterCycleUpdateOne
SetNillableProductKey sets the "productKey" field if the given value is not nil.
func (*DeviceUpsterCycleUpdateOne) SetNillableSort ¶
func (ducuo *DeviceUpsterCycleUpdateOne) SetNillableSort(u *uint32) *DeviceUpsterCycleUpdateOne
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DeviceUpsterCycleUpdateOne) SetNillableStatus ¶
func (ducuo *DeviceUpsterCycleUpdateOne) SetNillableStatus(u *uint8) *DeviceUpsterCycleUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DeviceUpsterCycleUpdateOne) SetNillableTimestamp ¶
func (ducuo *DeviceUpsterCycleUpdateOne) SetNillableTimestamp(s *string) *DeviceUpsterCycleUpdateOne
SetNillableTimestamp sets the "timestamp" field if the given value is not nil.
func (*DeviceUpsterCycleUpdateOne) SetNillableTotalOperationTime ¶
func (ducuo *DeviceUpsterCycleUpdateOne) SetNillableTotalOperationTime(i *int32) *DeviceUpsterCycleUpdateOne
SetNillableTotalOperationTime sets the "totalOperationTime" field if the given value is not nil.
func (*DeviceUpsterCycleUpdateOne) SetNotNilDeviceName ¶
func (duc *DeviceUpsterCycleUpdateOne) SetNotNilDeviceName(value *string) *DeviceUpsterCycleUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpsterCycleUpdateOne) SetNotNilIotID ¶
func (duc *DeviceUpsterCycleUpdateOne) SetNotNilIotID(value *string) *DeviceUpsterCycleUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpsterCycleUpdateOne) SetNotNilNumber1 ¶
func (duc *DeviceUpsterCycleUpdateOne) SetNotNilNumber1(value *int32) *DeviceUpsterCycleUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpsterCycleUpdateOne) SetNotNilNumber2 ¶
func (duc *DeviceUpsterCycleUpdateOne) SetNotNilNumber2(value *int32) *DeviceUpsterCycleUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpsterCycleUpdateOne) SetNotNilNumber3 ¶
func (duc *DeviceUpsterCycleUpdateOne) SetNotNilNumber3(value *int32) *DeviceUpsterCycleUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpsterCycleUpdateOne) SetNotNilNumberCycles ¶
func (duc *DeviceUpsterCycleUpdateOne) SetNotNilNumberCycles(value *int32) *DeviceUpsterCycleUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpsterCycleUpdateOne) SetNotNilNumberRegeneration ¶
func (duc *DeviceUpsterCycleUpdateOne) SetNotNilNumberRegeneration(value *int32) *DeviceUpsterCycleUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpsterCycleUpdateOne) SetNotNilNumberRinsingCycles ¶
func (duc *DeviceUpsterCycleUpdateOne) SetNotNilNumberRinsingCycles(value *int32) *DeviceUpsterCycleUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpsterCycleUpdateOne) SetNotNilProductKey ¶
func (duc *DeviceUpsterCycleUpdateOne) SetNotNilProductKey(value *string) *DeviceUpsterCycleUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpsterCycleUpdateOne) SetNotNilSort ¶
func (duc *DeviceUpsterCycleUpdateOne) SetNotNilSort(value *uint32) *DeviceUpsterCycleUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpsterCycleUpdateOne) SetNotNilStatus ¶
func (duc *DeviceUpsterCycleUpdateOne) SetNotNilStatus(value *uint8) *DeviceUpsterCycleUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpsterCycleUpdateOne) SetNotNilTimestamp ¶
func (duc *DeviceUpsterCycleUpdateOne) SetNotNilTimestamp(value *string) *DeviceUpsterCycleUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpsterCycleUpdateOne) SetNotNilTotalOperationTime ¶
func (duc *DeviceUpsterCycleUpdateOne) SetNotNilTotalOperationTime(value *int32) *DeviceUpsterCycleUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpsterCycleUpdateOne) SetNotNilUpdatedAt ¶
func (duc *DeviceUpsterCycleUpdateOne) SetNotNilUpdatedAt(value *time.Time) *DeviceUpsterCycleUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpsterCycleUpdateOne) SetNumber1 ¶
func (ducuo *DeviceUpsterCycleUpdateOne) SetNumber1(i int32) *DeviceUpsterCycleUpdateOne
SetNumber1 sets the "number1" field.
func (*DeviceUpsterCycleUpdateOne) SetNumber2 ¶
func (ducuo *DeviceUpsterCycleUpdateOne) SetNumber2(i int32) *DeviceUpsterCycleUpdateOne
SetNumber2 sets the "number2" field.
func (*DeviceUpsterCycleUpdateOne) SetNumber3 ¶
func (ducuo *DeviceUpsterCycleUpdateOne) SetNumber3(i int32) *DeviceUpsterCycleUpdateOne
SetNumber3 sets the "number3" field.
func (*DeviceUpsterCycleUpdateOne) SetNumberCycles ¶
func (ducuo *DeviceUpsterCycleUpdateOne) SetNumberCycles(i int32) *DeviceUpsterCycleUpdateOne
SetNumberCycles sets the "numberCycles" field.
func (*DeviceUpsterCycleUpdateOne) SetNumberRegeneration ¶
func (ducuo *DeviceUpsterCycleUpdateOne) SetNumberRegeneration(i int32) *DeviceUpsterCycleUpdateOne
SetNumberRegeneration sets the "numberRegeneration" field.
func (*DeviceUpsterCycleUpdateOne) SetNumberRinsingCycles ¶
func (ducuo *DeviceUpsterCycleUpdateOne) SetNumberRinsingCycles(i int32) *DeviceUpsterCycleUpdateOne
SetNumberRinsingCycles sets the "numberRinsingCycles" field.
func (*DeviceUpsterCycleUpdateOne) SetProductKey ¶
func (ducuo *DeviceUpsterCycleUpdateOne) SetProductKey(s string) *DeviceUpsterCycleUpdateOne
SetProductKey sets the "productKey" field.
func (*DeviceUpsterCycleUpdateOne) SetSort ¶
func (ducuo *DeviceUpsterCycleUpdateOne) SetSort(u uint32) *DeviceUpsterCycleUpdateOne
SetSort sets the "sort" field.
func (*DeviceUpsterCycleUpdateOne) SetStatus ¶
func (ducuo *DeviceUpsterCycleUpdateOne) SetStatus(u uint8) *DeviceUpsterCycleUpdateOne
SetStatus sets the "status" field.
func (*DeviceUpsterCycleUpdateOne) SetTimestamp ¶
func (ducuo *DeviceUpsterCycleUpdateOne) SetTimestamp(s string) *DeviceUpsterCycleUpdateOne
SetTimestamp sets the "timestamp" field.
func (*DeviceUpsterCycleUpdateOne) SetTotalOperationTime ¶
func (ducuo *DeviceUpsterCycleUpdateOne) SetTotalOperationTime(i int32) *DeviceUpsterCycleUpdateOne
SetTotalOperationTime sets the "totalOperationTime" field.
func (*DeviceUpsterCycleUpdateOne) SetUpdatedAt ¶
func (ducuo *DeviceUpsterCycleUpdateOne) SetUpdatedAt(t time.Time) *DeviceUpsterCycleUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*DeviceUpsterCycleUpdateOne) Where ¶
func (ducuo *DeviceUpsterCycleUpdateOne) Where(ps ...predicate.DeviceUpsterCycle) *DeviceUpsterCycleUpdateOne
Where appends a list predicates to the DeviceUpsterCycleUpdate builder.
type DeviceUpsterCycleUpsert ¶
DeviceUpsterCycleUpsert is the "OnConflict" setter.
func (*DeviceUpsterCycleUpsert) AddNumber1 ¶
func (u *DeviceUpsterCycleUpsert) AddNumber1(v int32) *DeviceUpsterCycleUpsert
AddNumber1 adds v to the "number1" field.
func (*DeviceUpsterCycleUpsert) AddNumber2 ¶
func (u *DeviceUpsterCycleUpsert) AddNumber2(v int32) *DeviceUpsterCycleUpsert
AddNumber2 adds v to the "number2" field.
func (*DeviceUpsterCycleUpsert) AddNumber3 ¶
func (u *DeviceUpsterCycleUpsert) AddNumber3(v int32) *DeviceUpsterCycleUpsert
AddNumber3 adds v to the "number3" field.
func (*DeviceUpsterCycleUpsert) AddNumberCycles ¶
func (u *DeviceUpsterCycleUpsert) AddNumberCycles(v int32) *DeviceUpsterCycleUpsert
AddNumberCycles adds v to the "numberCycles" field.
func (*DeviceUpsterCycleUpsert) AddNumberRegeneration ¶
func (u *DeviceUpsterCycleUpsert) AddNumberRegeneration(v int32) *DeviceUpsterCycleUpsert
AddNumberRegeneration adds v to the "numberRegeneration" field.
func (*DeviceUpsterCycleUpsert) AddNumberRinsingCycles ¶
func (u *DeviceUpsterCycleUpsert) AddNumberRinsingCycles(v int32) *DeviceUpsterCycleUpsert
AddNumberRinsingCycles adds v to the "numberRinsingCycles" field.
func (*DeviceUpsterCycleUpsert) AddSort ¶
func (u *DeviceUpsterCycleUpsert) AddSort(v uint32) *DeviceUpsterCycleUpsert
AddSort adds v to the "sort" field.
func (*DeviceUpsterCycleUpsert) AddStatus ¶
func (u *DeviceUpsterCycleUpsert) AddStatus(v uint8) *DeviceUpsterCycleUpsert
AddStatus adds v to the "status" field.
func (*DeviceUpsterCycleUpsert) AddTotalOperationTime ¶
func (u *DeviceUpsterCycleUpsert) AddTotalOperationTime(v int32) *DeviceUpsterCycleUpsert
AddTotalOperationTime adds v to the "totalOperationTime" field.
func (*DeviceUpsterCycleUpsert) ClearNumber1 ¶
func (u *DeviceUpsterCycleUpsert) ClearNumber1() *DeviceUpsterCycleUpsert
ClearNumber1 clears the value of the "number1" field.
func (*DeviceUpsterCycleUpsert) ClearNumber2 ¶
func (u *DeviceUpsterCycleUpsert) ClearNumber2() *DeviceUpsterCycleUpsert
ClearNumber2 clears the value of the "number2" field.
func (*DeviceUpsterCycleUpsert) ClearNumber3 ¶
func (u *DeviceUpsterCycleUpsert) ClearNumber3() *DeviceUpsterCycleUpsert
ClearNumber3 clears the value of the "number3" field.
func (*DeviceUpsterCycleUpsert) ClearNumberCycles ¶
func (u *DeviceUpsterCycleUpsert) ClearNumberCycles() *DeviceUpsterCycleUpsert
ClearNumberCycles clears the value of the "numberCycles" field.
func (*DeviceUpsterCycleUpsert) ClearNumberRegeneration ¶
func (u *DeviceUpsterCycleUpsert) ClearNumberRegeneration() *DeviceUpsterCycleUpsert
ClearNumberRegeneration clears the value of the "numberRegeneration" field.
func (*DeviceUpsterCycleUpsert) ClearNumberRinsingCycles ¶
func (u *DeviceUpsterCycleUpsert) ClearNumberRinsingCycles() *DeviceUpsterCycleUpsert
ClearNumberRinsingCycles clears the value of the "numberRinsingCycles" field.
func (*DeviceUpsterCycleUpsert) ClearStatus ¶
func (u *DeviceUpsterCycleUpsert) ClearStatus() *DeviceUpsterCycleUpsert
ClearStatus clears the value of the "status" field.
func (*DeviceUpsterCycleUpsert) ClearTimestamp ¶
func (u *DeviceUpsterCycleUpsert) ClearTimestamp() *DeviceUpsterCycleUpsert
ClearTimestamp clears the value of the "timestamp" field.
func (*DeviceUpsterCycleUpsert) ClearTotalOperationTime ¶
func (u *DeviceUpsterCycleUpsert) ClearTotalOperationTime() *DeviceUpsterCycleUpsert
ClearTotalOperationTime clears the value of the "totalOperationTime" field.
func (*DeviceUpsterCycleUpsert) SetDeviceName ¶
func (u *DeviceUpsterCycleUpsert) SetDeviceName(v string) *DeviceUpsterCycleUpsert
SetDeviceName sets the "deviceName" field.
func (*DeviceUpsterCycleUpsert) SetIotID ¶
func (u *DeviceUpsterCycleUpsert) SetIotID(v string) *DeviceUpsterCycleUpsert
SetIotID sets the "iotID" field.
func (*DeviceUpsterCycleUpsert) SetNumber1 ¶
func (u *DeviceUpsterCycleUpsert) SetNumber1(v int32) *DeviceUpsterCycleUpsert
SetNumber1 sets the "number1" field.
func (*DeviceUpsterCycleUpsert) SetNumber2 ¶
func (u *DeviceUpsterCycleUpsert) SetNumber2(v int32) *DeviceUpsterCycleUpsert
SetNumber2 sets the "number2" field.
func (*DeviceUpsterCycleUpsert) SetNumber3 ¶
func (u *DeviceUpsterCycleUpsert) SetNumber3(v int32) *DeviceUpsterCycleUpsert
SetNumber3 sets the "number3" field.
func (*DeviceUpsterCycleUpsert) SetNumberCycles ¶
func (u *DeviceUpsterCycleUpsert) SetNumberCycles(v int32) *DeviceUpsterCycleUpsert
SetNumberCycles sets the "numberCycles" field.
func (*DeviceUpsterCycleUpsert) SetNumberRegeneration ¶
func (u *DeviceUpsterCycleUpsert) SetNumberRegeneration(v int32) *DeviceUpsterCycleUpsert
SetNumberRegeneration sets the "numberRegeneration" field.
func (*DeviceUpsterCycleUpsert) SetNumberRinsingCycles ¶
func (u *DeviceUpsterCycleUpsert) SetNumberRinsingCycles(v int32) *DeviceUpsterCycleUpsert
SetNumberRinsingCycles sets the "numberRinsingCycles" field.
func (*DeviceUpsterCycleUpsert) SetProductKey ¶
func (u *DeviceUpsterCycleUpsert) SetProductKey(v string) *DeviceUpsterCycleUpsert
SetProductKey sets the "productKey" field.
func (*DeviceUpsterCycleUpsert) SetSort ¶
func (u *DeviceUpsterCycleUpsert) SetSort(v uint32) *DeviceUpsterCycleUpsert
SetSort sets the "sort" field.
func (*DeviceUpsterCycleUpsert) SetStatus ¶
func (u *DeviceUpsterCycleUpsert) SetStatus(v uint8) *DeviceUpsterCycleUpsert
SetStatus sets the "status" field.
func (*DeviceUpsterCycleUpsert) SetTimestamp ¶
func (u *DeviceUpsterCycleUpsert) SetTimestamp(v string) *DeviceUpsterCycleUpsert
SetTimestamp sets the "timestamp" field.
func (*DeviceUpsterCycleUpsert) SetTotalOperationTime ¶
func (u *DeviceUpsterCycleUpsert) SetTotalOperationTime(v int32) *DeviceUpsterCycleUpsert
SetTotalOperationTime sets the "totalOperationTime" field.
func (*DeviceUpsterCycleUpsert) SetUpdatedAt ¶
func (u *DeviceUpsterCycleUpsert) SetUpdatedAt(v time.Time) *DeviceUpsterCycleUpsert
SetUpdatedAt sets the "updated_at" field.
func (*DeviceUpsterCycleUpsert) UpdateDeviceName ¶
func (u *DeviceUpsterCycleUpsert) UpdateDeviceName() *DeviceUpsterCycleUpsert
UpdateDeviceName sets the "deviceName" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsert) UpdateIotID ¶
func (u *DeviceUpsterCycleUpsert) UpdateIotID() *DeviceUpsterCycleUpsert
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsert) UpdateNumber1 ¶
func (u *DeviceUpsterCycleUpsert) UpdateNumber1() *DeviceUpsterCycleUpsert
UpdateNumber1 sets the "number1" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsert) UpdateNumber2 ¶
func (u *DeviceUpsterCycleUpsert) UpdateNumber2() *DeviceUpsterCycleUpsert
UpdateNumber2 sets the "number2" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsert) UpdateNumber3 ¶
func (u *DeviceUpsterCycleUpsert) UpdateNumber3() *DeviceUpsterCycleUpsert
UpdateNumber3 sets the "number3" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsert) UpdateNumberCycles ¶
func (u *DeviceUpsterCycleUpsert) UpdateNumberCycles() *DeviceUpsterCycleUpsert
UpdateNumberCycles sets the "numberCycles" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsert) UpdateNumberRegeneration ¶
func (u *DeviceUpsterCycleUpsert) UpdateNumberRegeneration() *DeviceUpsterCycleUpsert
UpdateNumberRegeneration sets the "numberRegeneration" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsert) UpdateNumberRinsingCycles ¶
func (u *DeviceUpsterCycleUpsert) UpdateNumberRinsingCycles() *DeviceUpsterCycleUpsert
UpdateNumberRinsingCycles sets the "numberRinsingCycles" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsert) UpdateProductKey ¶
func (u *DeviceUpsterCycleUpsert) UpdateProductKey() *DeviceUpsterCycleUpsert
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsert) UpdateSort ¶
func (u *DeviceUpsterCycleUpsert) UpdateSort() *DeviceUpsterCycleUpsert
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsert) UpdateStatus ¶
func (u *DeviceUpsterCycleUpsert) UpdateStatus() *DeviceUpsterCycleUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsert) UpdateTimestamp ¶
func (u *DeviceUpsterCycleUpsert) UpdateTimestamp() *DeviceUpsterCycleUpsert
UpdateTimestamp sets the "timestamp" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsert) UpdateTotalOperationTime ¶
func (u *DeviceUpsterCycleUpsert) UpdateTotalOperationTime() *DeviceUpsterCycleUpsert
UpdateTotalOperationTime sets the "totalOperationTime" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsert) UpdateUpdatedAt ¶
func (u *DeviceUpsterCycleUpsert) UpdateUpdatedAt() *DeviceUpsterCycleUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type DeviceUpsterCycleUpsertBulk ¶
type DeviceUpsterCycleUpsertBulk struct {
// contains filtered or unexported fields
}
DeviceUpsterCycleUpsertBulk is the builder for "upsert"-ing a bulk of DeviceUpsterCycle nodes.
func (*DeviceUpsterCycleUpsertBulk) AddNumber1 ¶
func (u *DeviceUpsterCycleUpsertBulk) AddNumber1(v int32) *DeviceUpsterCycleUpsertBulk
AddNumber1 adds v to the "number1" field.
func (*DeviceUpsterCycleUpsertBulk) AddNumber2 ¶
func (u *DeviceUpsterCycleUpsertBulk) AddNumber2(v int32) *DeviceUpsterCycleUpsertBulk
AddNumber2 adds v to the "number2" field.
func (*DeviceUpsterCycleUpsertBulk) AddNumber3 ¶
func (u *DeviceUpsterCycleUpsertBulk) AddNumber3(v int32) *DeviceUpsterCycleUpsertBulk
AddNumber3 adds v to the "number3" field.
func (*DeviceUpsterCycleUpsertBulk) AddNumberCycles ¶
func (u *DeviceUpsterCycleUpsertBulk) AddNumberCycles(v int32) *DeviceUpsterCycleUpsertBulk
AddNumberCycles adds v to the "numberCycles" field.
func (*DeviceUpsterCycleUpsertBulk) AddNumberRegeneration ¶
func (u *DeviceUpsterCycleUpsertBulk) AddNumberRegeneration(v int32) *DeviceUpsterCycleUpsertBulk
AddNumberRegeneration adds v to the "numberRegeneration" field.
func (*DeviceUpsterCycleUpsertBulk) AddNumberRinsingCycles ¶
func (u *DeviceUpsterCycleUpsertBulk) AddNumberRinsingCycles(v int32) *DeviceUpsterCycleUpsertBulk
AddNumberRinsingCycles adds v to the "numberRinsingCycles" field.
func (*DeviceUpsterCycleUpsertBulk) AddSort ¶
func (u *DeviceUpsterCycleUpsertBulk) AddSort(v uint32) *DeviceUpsterCycleUpsertBulk
AddSort adds v to the "sort" field.
func (*DeviceUpsterCycleUpsertBulk) AddStatus ¶
func (u *DeviceUpsterCycleUpsertBulk) AddStatus(v uint8) *DeviceUpsterCycleUpsertBulk
AddStatus adds v to the "status" field.
func (*DeviceUpsterCycleUpsertBulk) AddTotalOperationTime ¶
func (u *DeviceUpsterCycleUpsertBulk) AddTotalOperationTime(v int32) *DeviceUpsterCycleUpsertBulk
AddTotalOperationTime adds v to the "totalOperationTime" field.
func (*DeviceUpsterCycleUpsertBulk) ClearNumber1 ¶
func (u *DeviceUpsterCycleUpsertBulk) ClearNumber1() *DeviceUpsterCycleUpsertBulk
ClearNumber1 clears the value of the "number1" field.
func (*DeviceUpsterCycleUpsertBulk) ClearNumber2 ¶
func (u *DeviceUpsterCycleUpsertBulk) ClearNumber2() *DeviceUpsterCycleUpsertBulk
ClearNumber2 clears the value of the "number2" field.
func (*DeviceUpsterCycleUpsertBulk) ClearNumber3 ¶
func (u *DeviceUpsterCycleUpsertBulk) ClearNumber3() *DeviceUpsterCycleUpsertBulk
ClearNumber3 clears the value of the "number3" field.
func (*DeviceUpsterCycleUpsertBulk) ClearNumberCycles ¶
func (u *DeviceUpsterCycleUpsertBulk) ClearNumberCycles() *DeviceUpsterCycleUpsertBulk
ClearNumberCycles clears the value of the "numberCycles" field.
func (*DeviceUpsterCycleUpsertBulk) ClearNumberRegeneration ¶
func (u *DeviceUpsterCycleUpsertBulk) ClearNumberRegeneration() *DeviceUpsterCycleUpsertBulk
ClearNumberRegeneration clears the value of the "numberRegeneration" field.
func (*DeviceUpsterCycleUpsertBulk) ClearNumberRinsingCycles ¶
func (u *DeviceUpsterCycleUpsertBulk) ClearNumberRinsingCycles() *DeviceUpsterCycleUpsertBulk
ClearNumberRinsingCycles clears the value of the "numberRinsingCycles" field.
func (*DeviceUpsterCycleUpsertBulk) ClearStatus ¶
func (u *DeviceUpsterCycleUpsertBulk) ClearStatus() *DeviceUpsterCycleUpsertBulk
ClearStatus clears the value of the "status" field.
func (*DeviceUpsterCycleUpsertBulk) ClearTimestamp ¶
func (u *DeviceUpsterCycleUpsertBulk) ClearTimestamp() *DeviceUpsterCycleUpsertBulk
ClearTimestamp clears the value of the "timestamp" field.
func (*DeviceUpsterCycleUpsertBulk) ClearTotalOperationTime ¶
func (u *DeviceUpsterCycleUpsertBulk) ClearTotalOperationTime() *DeviceUpsterCycleUpsertBulk
ClearTotalOperationTime clears the value of the "totalOperationTime" field.
func (*DeviceUpsterCycleUpsertBulk) DoNothing ¶
func (u *DeviceUpsterCycleUpsertBulk) DoNothing() *DeviceUpsterCycleUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*DeviceUpsterCycleUpsertBulk) Exec ¶
func (u *DeviceUpsterCycleUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceUpsterCycleUpsertBulk) ExecX ¶
func (u *DeviceUpsterCycleUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceUpsterCycleUpsertBulk) Ignore ¶
func (u *DeviceUpsterCycleUpsertBulk) Ignore() *DeviceUpsterCycleUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.DeviceUpsterCycle.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*DeviceUpsterCycleUpsertBulk) SetDeviceName ¶
func (u *DeviceUpsterCycleUpsertBulk) SetDeviceName(v string) *DeviceUpsterCycleUpsertBulk
SetDeviceName sets the "deviceName" field.
func (*DeviceUpsterCycleUpsertBulk) SetIotID ¶
func (u *DeviceUpsterCycleUpsertBulk) SetIotID(v string) *DeviceUpsterCycleUpsertBulk
SetIotID sets the "iotID" field.
func (*DeviceUpsterCycleUpsertBulk) SetNumber1 ¶
func (u *DeviceUpsterCycleUpsertBulk) SetNumber1(v int32) *DeviceUpsterCycleUpsertBulk
SetNumber1 sets the "number1" field.
func (*DeviceUpsterCycleUpsertBulk) SetNumber2 ¶
func (u *DeviceUpsterCycleUpsertBulk) SetNumber2(v int32) *DeviceUpsterCycleUpsertBulk
SetNumber2 sets the "number2" field.
func (*DeviceUpsterCycleUpsertBulk) SetNumber3 ¶
func (u *DeviceUpsterCycleUpsertBulk) SetNumber3(v int32) *DeviceUpsterCycleUpsertBulk
SetNumber3 sets the "number3" field.
func (*DeviceUpsterCycleUpsertBulk) SetNumberCycles ¶
func (u *DeviceUpsterCycleUpsertBulk) SetNumberCycles(v int32) *DeviceUpsterCycleUpsertBulk
SetNumberCycles sets the "numberCycles" field.
func (*DeviceUpsterCycleUpsertBulk) SetNumberRegeneration ¶
func (u *DeviceUpsterCycleUpsertBulk) SetNumberRegeneration(v int32) *DeviceUpsterCycleUpsertBulk
SetNumberRegeneration sets the "numberRegeneration" field.
func (*DeviceUpsterCycleUpsertBulk) SetNumberRinsingCycles ¶
func (u *DeviceUpsterCycleUpsertBulk) SetNumberRinsingCycles(v int32) *DeviceUpsterCycleUpsertBulk
SetNumberRinsingCycles sets the "numberRinsingCycles" field.
func (*DeviceUpsterCycleUpsertBulk) SetProductKey ¶
func (u *DeviceUpsterCycleUpsertBulk) SetProductKey(v string) *DeviceUpsterCycleUpsertBulk
SetProductKey sets the "productKey" field.
func (*DeviceUpsterCycleUpsertBulk) SetSort ¶
func (u *DeviceUpsterCycleUpsertBulk) SetSort(v uint32) *DeviceUpsterCycleUpsertBulk
SetSort sets the "sort" field.
func (*DeviceUpsterCycleUpsertBulk) SetStatus ¶
func (u *DeviceUpsterCycleUpsertBulk) SetStatus(v uint8) *DeviceUpsterCycleUpsertBulk
SetStatus sets the "status" field.
func (*DeviceUpsterCycleUpsertBulk) SetTimestamp ¶
func (u *DeviceUpsterCycleUpsertBulk) SetTimestamp(v string) *DeviceUpsterCycleUpsertBulk
SetTimestamp sets the "timestamp" field.
func (*DeviceUpsterCycleUpsertBulk) SetTotalOperationTime ¶
func (u *DeviceUpsterCycleUpsertBulk) SetTotalOperationTime(v int32) *DeviceUpsterCycleUpsertBulk
SetTotalOperationTime sets the "totalOperationTime" field.
func (*DeviceUpsterCycleUpsertBulk) SetUpdatedAt ¶
func (u *DeviceUpsterCycleUpsertBulk) SetUpdatedAt(v time.Time) *DeviceUpsterCycleUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*DeviceUpsterCycleUpsertBulk) Update ¶
func (u *DeviceUpsterCycleUpsertBulk) Update(set func(*DeviceUpsterCycleUpsert)) *DeviceUpsterCycleUpsertBulk
Update allows overriding fields `UPDATE` values. See the DeviceUpsterCycleCreateBulk.OnConflict documentation for more info.
func (*DeviceUpsterCycleUpsertBulk) UpdateDeviceName ¶
func (u *DeviceUpsterCycleUpsertBulk) UpdateDeviceName() *DeviceUpsterCycleUpsertBulk
UpdateDeviceName sets the "deviceName" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsertBulk) UpdateIotID ¶
func (u *DeviceUpsterCycleUpsertBulk) UpdateIotID() *DeviceUpsterCycleUpsertBulk
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsertBulk) UpdateNewValues ¶
func (u *DeviceUpsterCycleUpsertBulk) UpdateNewValues() *DeviceUpsterCycleUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.DeviceUpsterCycle.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(deviceupstercycle.FieldID) }), ). Exec(ctx)
func (*DeviceUpsterCycleUpsertBulk) UpdateNumber1 ¶
func (u *DeviceUpsterCycleUpsertBulk) UpdateNumber1() *DeviceUpsterCycleUpsertBulk
UpdateNumber1 sets the "number1" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsertBulk) UpdateNumber2 ¶
func (u *DeviceUpsterCycleUpsertBulk) UpdateNumber2() *DeviceUpsterCycleUpsertBulk
UpdateNumber2 sets the "number2" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsertBulk) UpdateNumber3 ¶
func (u *DeviceUpsterCycleUpsertBulk) UpdateNumber3() *DeviceUpsterCycleUpsertBulk
UpdateNumber3 sets the "number3" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsertBulk) UpdateNumberCycles ¶
func (u *DeviceUpsterCycleUpsertBulk) UpdateNumberCycles() *DeviceUpsterCycleUpsertBulk
UpdateNumberCycles sets the "numberCycles" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsertBulk) UpdateNumberRegeneration ¶
func (u *DeviceUpsterCycleUpsertBulk) UpdateNumberRegeneration() *DeviceUpsterCycleUpsertBulk
UpdateNumberRegeneration sets the "numberRegeneration" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsertBulk) UpdateNumberRinsingCycles ¶
func (u *DeviceUpsterCycleUpsertBulk) UpdateNumberRinsingCycles() *DeviceUpsterCycleUpsertBulk
UpdateNumberRinsingCycles sets the "numberRinsingCycles" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsertBulk) UpdateProductKey ¶
func (u *DeviceUpsterCycleUpsertBulk) UpdateProductKey() *DeviceUpsterCycleUpsertBulk
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsertBulk) UpdateSort ¶
func (u *DeviceUpsterCycleUpsertBulk) UpdateSort() *DeviceUpsterCycleUpsertBulk
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsertBulk) UpdateStatus ¶
func (u *DeviceUpsterCycleUpsertBulk) UpdateStatus() *DeviceUpsterCycleUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsertBulk) UpdateTimestamp ¶
func (u *DeviceUpsterCycleUpsertBulk) UpdateTimestamp() *DeviceUpsterCycleUpsertBulk
UpdateTimestamp sets the "timestamp" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsertBulk) UpdateTotalOperationTime ¶
func (u *DeviceUpsterCycleUpsertBulk) UpdateTotalOperationTime() *DeviceUpsterCycleUpsertBulk
UpdateTotalOperationTime sets the "totalOperationTime" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsertBulk) UpdateUpdatedAt ¶
func (u *DeviceUpsterCycleUpsertBulk) UpdateUpdatedAt() *DeviceUpsterCycleUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type DeviceUpsterCycleUpsertOne ¶
type DeviceUpsterCycleUpsertOne struct {
// contains filtered or unexported fields
}
DeviceUpsterCycleUpsertOne is the builder for "upsert"-ing
one DeviceUpsterCycle node.
func (*DeviceUpsterCycleUpsertOne) AddNumber1 ¶
func (u *DeviceUpsterCycleUpsertOne) AddNumber1(v int32) *DeviceUpsterCycleUpsertOne
AddNumber1 adds v to the "number1" field.
func (*DeviceUpsterCycleUpsertOne) AddNumber2 ¶
func (u *DeviceUpsterCycleUpsertOne) AddNumber2(v int32) *DeviceUpsterCycleUpsertOne
AddNumber2 adds v to the "number2" field.
func (*DeviceUpsterCycleUpsertOne) AddNumber3 ¶
func (u *DeviceUpsterCycleUpsertOne) AddNumber3(v int32) *DeviceUpsterCycleUpsertOne
AddNumber3 adds v to the "number3" field.
func (*DeviceUpsterCycleUpsertOne) AddNumberCycles ¶
func (u *DeviceUpsterCycleUpsertOne) AddNumberCycles(v int32) *DeviceUpsterCycleUpsertOne
AddNumberCycles adds v to the "numberCycles" field.
func (*DeviceUpsterCycleUpsertOne) AddNumberRegeneration ¶
func (u *DeviceUpsterCycleUpsertOne) AddNumberRegeneration(v int32) *DeviceUpsterCycleUpsertOne
AddNumberRegeneration adds v to the "numberRegeneration" field.
func (*DeviceUpsterCycleUpsertOne) AddNumberRinsingCycles ¶
func (u *DeviceUpsterCycleUpsertOne) AddNumberRinsingCycles(v int32) *DeviceUpsterCycleUpsertOne
AddNumberRinsingCycles adds v to the "numberRinsingCycles" field.
func (*DeviceUpsterCycleUpsertOne) AddSort ¶
func (u *DeviceUpsterCycleUpsertOne) AddSort(v uint32) *DeviceUpsterCycleUpsertOne
AddSort adds v to the "sort" field.
func (*DeviceUpsterCycleUpsertOne) AddStatus ¶
func (u *DeviceUpsterCycleUpsertOne) AddStatus(v uint8) *DeviceUpsterCycleUpsertOne
AddStatus adds v to the "status" field.
func (*DeviceUpsterCycleUpsertOne) AddTotalOperationTime ¶
func (u *DeviceUpsterCycleUpsertOne) AddTotalOperationTime(v int32) *DeviceUpsterCycleUpsertOne
AddTotalOperationTime adds v to the "totalOperationTime" field.
func (*DeviceUpsterCycleUpsertOne) ClearNumber1 ¶
func (u *DeviceUpsterCycleUpsertOne) ClearNumber1() *DeviceUpsterCycleUpsertOne
ClearNumber1 clears the value of the "number1" field.
func (*DeviceUpsterCycleUpsertOne) ClearNumber2 ¶
func (u *DeviceUpsterCycleUpsertOne) ClearNumber2() *DeviceUpsterCycleUpsertOne
ClearNumber2 clears the value of the "number2" field.
func (*DeviceUpsterCycleUpsertOne) ClearNumber3 ¶
func (u *DeviceUpsterCycleUpsertOne) ClearNumber3() *DeviceUpsterCycleUpsertOne
ClearNumber3 clears the value of the "number3" field.
func (*DeviceUpsterCycleUpsertOne) ClearNumberCycles ¶
func (u *DeviceUpsterCycleUpsertOne) ClearNumberCycles() *DeviceUpsterCycleUpsertOne
ClearNumberCycles clears the value of the "numberCycles" field.
func (*DeviceUpsterCycleUpsertOne) ClearNumberRegeneration ¶
func (u *DeviceUpsterCycleUpsertOne) ClearNumberRegeneration() *DeviceUpsterCycleUpsertOne
ClearNumberRegeneration clears the value of the "numberRegeneration" field.
func (*DeviceUpsterCycleUpsertOne) ClearNumberRinsingCycles ¶
func (u *DeviceUpsterCycleUpsertOne) ClearNumberRinsingCycles() *DeviceUpsterCycleUpsertOne
ClearNumberRinsingCycles clears the value of the "numberRinsingCycles" field.
func (*DeviceUpsterCycleUpsertOne) ClearStatus ¶
func (u *DeviceUpsterCycleUpsertOne) ClearStatus() *DeviceUpsterCycleUpsertOne
ClearStatus clears the value of the "status" field.
func (*DeviceUpsterCycleUpsertOne) ClearTimestamp ¶
func (u *DeviceUpsterCycleUpsertOne) ClearTimestamp() *DeviceUpsterCycleUpsertOne
ClearTimestamp clears the value of the "timestamp" field.
func (*DeviceUpsterCycleUpsertOne) ClearTotalOperationTime ¶
func (u *DeviceUpsterCycleUpsertOne) ClearTotalOperationTime() *DeviceUpsterCycleUpsertOne
ClearTotalOperationTime clears the value of the "totalOperationTime" field.
func (*DeviceUpsterCycleUpsertOne) DoNothing ¶
func (u *DeviceUpsterCycleUpsertOne) DoNothing() *DeviceUpsterCycleUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*DeviceUpsterCycleUpsertOne) Exec ¶
func (u *DeviceUpsterCycleUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceUpsterCycleUpsertOne) ExecX ¶
func (u *DeviceUpsterCycleUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceUpsterCycleUpsertOne) ID ¶
func (u *DeviceUpsterCycleUpsertOne) ID(ctx context.Context) (id uint64, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*DeviceUpsterCycleUpsertOne) IDX ¶
func (u *DeviceUpsterCycleUpsertOne) IDX(ctx context.Context) uint64
IDX is like ID, but panics if an error occurs.
func (*DeviceUpsterCycleUpsertOne) Ignore ¶
func (u *DeviceUpsterCycleUpsertOne) Ignore() *DeviceUpsterCycleUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.DeviceUpsterCycle.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*DeviceUpsterCycleUpsertOne) SetDeviceName ¶
func (u *DeviceUpsterCycleUpsertOne) SetDeviceName(v string) *DeviceUpsterCycleUpsertOne
SetDeviceName sets the "deviceName" field.
func (*DeviceUpsterCycleUpsertOne) SetIotID ¶
func (u *DeviceUpsterCycleUpsertOne) SetIotID(v string) *DeviceUpsterCycleUpsertOne
SetIotID sets the "iotID" field.
func (*DeviceUpsterCycleUpsertOne) SetNumber1 ¶
func (u *DeviceUpsterCycleUpsertOne) SetNumber1(v int32) *DeviceUpsterCycleUpsertOne
SetNumber1 sets the "number1" field.
func (*DeviceUpsterCycleUpsertOne) SetNumber2 ¶
func (u *DeviceUpsterCycleUpsertOne) SetNumber2(v int32) *DeviceUpsterCycleUpsertOne
SetNumber2 sets the "number2" field.
func (*DeviceUpsterCycleUpsertOne) SetNumber3 ¶
func (u *DeviceUpsterCycleUpsertOne) SetNumber3(v int32) *DeviceUpsterCycleUpsertOne
SetNumber3 sets the "number3" field.
func (*DeviceUpsterCycleUpsertOne) SetNumberCycles ¶
func (u *DeviceUpsterCycleUpsertOne) SetNumberCycles(v int32) *DeviceUpsterCycleUpsertOne
SetNumberCycles sets the "numberCycles" field.
func (*DeviceUpsterCycleUpsertOne) SetNumberRegeneration ¶
func (u *DeviceUpsterCycleUpsertOne) SetNumberRegeneration(v int32) *DeviceUpsterCycleUpsertOne
SetNumberRegeneration sets the "numberRegeneration" field.
func (*DeviceUpsterCycleUpsertOne) SetNumberRinsingCycles ¶
func (u *DeviceUpsterCycleUpsertOne) SetNumberRinsingCycles(v int32) *DeviceUpsterCycleUpsertOne
SetNumberRinsingCycles sets the "numberRinsingCycles" field.
func (*DeviceUpsterCycleUpsertOne) SetProductKey ¶
func (u *DeviceUpsterCycleUpsertOne) SetProductKey(v string) *DeviceUpsterCycleUpsertOne
SetProductKey sets the "productKey" field.
func (*DeviceUpsterCycleUpsertOne) SetSort ¶
func (u *DeviceUpsterCycleUpsertOne) SetSort(v uint32) *DeviceUpsterCycleUpsertOne
SetSort sets the "sort" field.
func (*DeviceUpsterCycleUpsertOne) SetStatus ¶
func (u *DeviceUpsterCycleUpsertOne) SetStatus(v uint8) *DeviceUpsterCycleUpsertOne
SetStatus sets the "status" field.
func (*DeviceUpsterCycleUpsertOne) SetTimestamp ¶
func (u *DeviceUpsterCycleUpsertOne) SetTimestamp(v string) *DeviceUpsterCycleUpsertOne
SetTimestamp sets the "timestamp" field.
func (*DeviceUpsterCycleUpsertOne) SetTotalOperationTime ¶
func (u *DeviceUpsterCycleUpsertOne) SetTotalOperationTime(v int32) *DeviceUpsterCycleUpsertOne
SetTotalOperationTime sets the "totalOperationTime" field.
func (*DeviceUpsterCycleUpsertOne) SetUpdatedAt ¶
func (u *DeviceUpsterCycleUpsertOne) SetUpdatedAt(v time.Time) *DeviceUpsterCycleUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*DeviceUpsterCycleUpsertOne) Update ¶
func (u *DeviceUpsterCycleUpsertOne) Update(set func(*DeviceUpsterCycleUpsert)) *DeviceUpsterCycleUpsertOne
Update allows overriding fields `UPDATE` values. See the DeviceUpsterCycleCreate.OnConflict documentation for more info.
func (*DeviceUpsterCycleUpsertOne) UpdateDeviceName ¶
func (u *DeviceUpsterCycleUpsertOne) UpdateDeviceName() *DeviceUpsterCycleUpsertOne
UpdateDeviceName sets the "deviceName" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsertOne) UpdateIotID ¶
func (u *DeviceUpsterCycleUpsertOne) UpdateIotID() *DeviceUpsterCycleUpsertOne
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsertOne) UpdateNewValues ¶
func (u *DeviceUpsterCycleUpsertOne) UpdateNewValues() *DeviceUpsterCycleUpsertOne
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.DeviceUpsterCycle.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(deviceupstercycle.FieldID) }), ). Exec(ctx)
func (*DeviceUpsterCycleUpsertOne) UpdateNumber1 ¶
func (u *DeviceUpsterCycleUpsertOne) UpdateNumber1() *DeviceUpsterCycleUpsertOne
UpdateNumber1 sets the "number1" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsertOne) UpdateNumber2 ¶
func (u *DeviceUpsterCycleUpsertOne) UpdateNumber2() *DeviceUpsterCycleUpsertOne
UpdateNumber2 sets the "number2" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsertOne) UpdateNumber3 ¶
func (u *DeviceUpsterCycleUpsertOne) UpdateNumber3() *DeviceUpsterCycleUpsertOne
UpdateNumber3 sets the "number3" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsertOne) UpdateNumberCycles ¶
func (u *DeviceUpsterCycleUpsertOne) UpdateNumberCycles() *DeviceUpsterCycleUpsertOne
UpdateNumberCycles sets the "numberCycles" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsertOne) UpdateNumberRegeneration ¶
func (u *DeviceUpsterCycleUpsertOne) UpdateNumberRegeneration() *DeviceUpsterCycleUpsertOne
UpdateNumberRegeneration sets the "numberRegeneration" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsertOne) UpdateNumberRinsingCycles ¶
func (u *DeviceUpsterCycleUpsertOne) UpdateNumberRinsingCycles() *DeviceUpsterCycleUpsertOne
UpdateNumberRinsingCycles sets the "numberRinsingCycles" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsertOne) UpdateProductKey ¶
func (u *DeviceUpsterCycleUpsertOne) UpdateProductKey() *DeviceUpsterCycleUpsertOne
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsertOne) UpdateSort ¶
func (u *DeviceUpsterCycleUpsertOne) UpdateSort() *DeviceUpsterCycleUpsertOne
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsertOne) UpdateStatus ¶
func (u *DeviceUpsterCycleUpsertOne) UpdateStatus() *DeviceUpsterCycleUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsertOne) UpdateTimestamp ¶
func (u *DeviceUpsterCycleUpsertOne) UpdateTimestamp() *DeviceUpsterCycleUpsertOne
UpdateTimestamp sets the "timestamp" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsertOne) UpdateTotalOperationTime ¶
func (u *DeviceUpsterCycleUpsertOne) UpdateTotalOperationTime() *DeviceUpsterCycleUpsertOne
UpdateTotalOperationTime sets the "totalOperationTime" field to the value that was provided on create.
func (*DeviceUpsterCycleUpsertOne) UpdateUpdatedAt ¶
func (u *DeviceUpsterCycleUpsertOne) UpdateUpdatedAt() *DeviceUpsterCycleUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type DeviceUpsterCycles ¶
type DeviceUpsterCycles []*DeviceUpsterCycle
DeviceUpsterCycles is a parsable slice of DeviceUpsterCycle.
type DeviceUpsterStatistics ¶
type DeviceUpsterStatistics struct { // ID of the ent. ID uint64 `json:"id,omitempty"` // Create Time | 创建日期 CreatedAt time.Time `json:"created_at,omitempty"` // Update Time | 修改日期 UpdatedAt time.Time `json:"updated_at,omitempty"` // Status 1: normal 2: ban | 状态 1 正常 2 禁用 Status uint8 `json:"status,omitempty"` // Sort Number | 排序编号 Sort uint32 `json:"sort,omitempty"` // Iot Id | 设备ID IotID string `json:"iotID,omitempty"` // Device Name | 设备名称 DeviceName string `json:"deviceName,omitempty"` // Product Key | 产品Key ProductKey string `json:"productKey,omitempty"` // Date | 日期 Date string `json:"date,omitempty"` // Timestamp | 毫秒时间戳 Timestamp string `json:"timestamp,omitempty"` // NumberOfProgramButton1 | 程序1 Number1 int32 `json:"number1,omitempty"` // NumberOfProgramButton2 | 程序2 Number2 int32 `json:"number2,omitempty"` // NumberOfProgramButton3 | 程序3 Number3 int32 `json:"number3,omitempty"` // NumberOfProgramCycles | 程序总计数 NumberCycles int32 `json:"numberCycles,omitempty"` // Hours | 每小时计数 Hours string `json:"hours,omitempty"` // Initialize | 初始化 Initialize bool `json:"initialize,omitempty"` // contains filtered or unexported fields }
DeviceUpsterStatistics is the model entity for the DeviceUpsterStatistics schema.
func (*DeviceUpsterStatistics) ExecContext ¶
func (c *DeviceUpsterStatistics) 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 (*DeviceUpsterStatistics) QueryContext ¶
func (c *DeviceUpsterStatistics) 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 (*DeviceUpsterStatistics) String ¶
func (dus *DeviceUpsterStatistics) String() string
String implements the fmt.Stringer.
func (*DeviceUpsterStatistics) Unwrap ¶
func (dus *DeviceUpsterStatistics) Unwrap() *DeviceUpsterStatistics
Unwrap unwraps the DeviceUpsterStatistics 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 (*DeviceUpsterStatistics) Update ¶
func (dus *DeviceUpsterStatistics) Update() *DeviceUpsterStatisticsUpdateOne
Update returns a builder for updating this DeviceUpsterStatistics. Note that you need to call DeviceUpsterStatistics.Unwrap() before calling this method if this DeviceUpsterStatistics was returned from a transaction, and the transaction was committed or rolled back.
type DeviceUpsterStatisticsClient ¶
type DeviceUpsterStatisticsClient struct {
// contains filtered or unexported fields
}
DeviceUpsterStatisticsClient is a client for the DeviceUpsterStatistics schema.
func NewDeviceUpsterStatisticsClient ¶
func NewDeviceUpsterStatisticsClient(c config) *DeviceUpsterStatisticsClient
NewDeviceUpsterStatisticsClient returns a client for the DeviceUpsterStatistics from the given config.
func (*DeviceUpsterStatisticsClient) Create ¶
func (c *DeviceUpsterStatisticsClient) Create() *DeviceUpsterStatisticsCreate
Create returns a builder for creating a DeviceUpsterStatistics entity.
func (*DeviceUpsterStatisticsClient) CreateBulk ¶
func (c *DeviceUpsterStatisticsClient) CreateBulk(builders ...*DeviceUpsterStatisticsCreate) *DeviceUpsterStatisticsCreateBulk
CreateBulk returns a builder for creating a bulk of DeviceUpsterStatistics entities.
func (*DeviceUpsterStatisticsClient) Delete ¶
func (c *DeviceUpsterStatisticsClient) Delete() *DeviceUpsterStatisticsDelete
Delete returns a delete builder for DeviceUpsterStatistics.
func (*DeviceUpsterStatisticsClient) DeleteOne ¶
func (c *DeviceUpsterStatisticsClient) DeleteOne(dus *DeviceUpsterStatistics) *DeviceUpsterStatisticsDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*DeviceUpsterStatisticsClient) DeleteOneID ¶
func (c *DeviceUpsterStatisticsClient) DeleteOneID(id uint64) *DeviceUpsterStatisticsDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*DeviceUpsterStatisticsClient) ExecContext ¶
func (c *DeviceUpsterStatisticsClient) 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 (*DeviceUpsterStatisticsClient) Get ¶
func (c *DeviceUpsterStatisticsClient) Get(ctx context.Context, id uint64) (*DeviceUpsterStatistics, error)
Get returns a DeviceUpsterStatistics entity by its id.
func (*DeviceUpsterStatisticsClient) GetX ¶
func (c *DeviceUpsterStatisticsClient) GetX(ctx context.Context, id uint64) *DeviceUpsterStatistics
GetX is like Get, but panics if an error occurs.
func (*DeviceUpsterStatisticsClient) Hooks ¶
func (c *DeviceUpsterStatisticsClient) Hooks() []Hook
Hooks returns the client hooks.
func (*DeviceUpsterStatisticsClient) Intercept ¶
func (c *DeviceUpsterStatisticsClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `deviceupsterstatistics.Intercept(f(g(h())))`.
func (*DeviceUpsterStatisticsClient) Interceptors ¶
func (c *DeviceUpsterStatisticsClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*DeviceUpsterStatisticsClient) MapCreateBulk ¶
func (c *DeviceUpsterStatisticsClient) MapCreateBulk(slice any, setFunc func(*DeviceUpsterStatisticsCreate, int)) *DeviceUpsterStatisticsCreateBulk
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 (*DeviceUpsterStatisticsClient) Query ¶
func (c *DeviceUpsterStatisticsClient) Query() *DeviceUpsterStatisticsQuery
Query returns a query builder for DeviceUpsterStatistics.
func (*DeviceUpsterStatisticsClient) QueryContext ¶
func (c *DeviceUpsterStatisticsClient) 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 (*DeviceUpsterStatisticsClient) Update ¶
func (c *DeviceUpsterStatisticsClient) Update() *DeviceUpsterStatisticsUpdate
Update returns an update builder for DeviceUpsterStatistics.
func (*DeviceUpsterStatisticsClient) UpdateOne ¶
func (c *DeviceUpsterStatisticsClient) UpdateOne(dus *DeviceUpsterStatistics) *DeviceUpsterStatisticsUpdateOne
UpdateOne returns an update builder for the given entity.
func (*DeviceUpsterStatisticsClient) UpdateOneID ¶
func (c *DeviceUpsterStatisticsClient) UpdateOneID(id uint64) *DeviceUpsterStatisticsUpdateOne
UpdateOneID returns an update builder for the given id.
func (*DeviceUpsterStatisticsClient) Use ¶
func (c *DeviceUpsterStatisticsClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `deviceupsterstatistics.Hooks(f(g(h())))`.
type DeviceUpsterStatisticsCreate ¶
type DeviceUpsterStatisticsCreate struct { Table string // contains filtered or unexported fields }
DeviceUpsterStatisticsCreate is the builder for creating a DeviceUpsterStatistics entity.
func (*DeviceUpsterStatisticsCreate) Exec ¶
func (dusc *DeviceUpsterStatisticsCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceUpsterStatisticsCreate) ExecContext ¶
func (c *DeviceUpsterStatisticsCreate) 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 (*DeviceUpsterStatisticsCreate) ExecX ¶
func (dusc *DeviceUpsterStatisticsCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceUpsterStatisticsCreate) Mutation ¶
func (dusc *DeviceUpsterStatisticsCreate) Mutation() *DeviceUpsterStatisticsMutation
Mutation returns the DeviceUpsterStatisticsMutation object of the builder.
func (*DeviceUpsterStatisticsCreate) OnConflict ¶
func (dusc *DeviceUpsterStatisticsCreate) OnConflict(opts ...sql.ConflictOption) *DeviceUpsterStatisticsUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.DeviceUpsterStatistics.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.DeviceUpsterStatisticsUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*DeviceUpsterStatisticsCreate) OnConflictColumns ¶
func (dusc *DeviceUpsterStatisticsCreate) OnConflictColumns(columns ...string) *DeviceUpsterStatisticsUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.DeviceUpsterStatistics.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*DeviceUpsterStatisticsCreate) QueryContext ¶
func (c *DeviceUpsterStatisticsCreate) 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 (*DeviceUpsterStatisticsCreate) Save ¶
func (dusc *DeviceUpsterStatisticsCreate) Save(ctx context.Context) (*DeviceUpsterStatistics, error)
Save creates the DeviceUpsterStatistics in the database.
func (*DeviceUpsterStatisticsCreate) SaveX ¶
func (dusc *DeviceUpsterStatisticsCreate) SaveX(ctx context.Context) *DeviceUpsterStatistics
SaveX calls Save and panics if Save returns an error.
func (*DeviceUpsterStatisticsCreate) SetCreatedAt ¶
func (dusc *DeviceUpsterStatisticsCreate) SetCreatedAt(t time.Time) *DeviceUpsterStatisticsCreate
SetCreatedAt sets the "created_at" field.
func (*DeviceUpsterStatisticsCreate) SetDate ¶
func (dusc *DeviceUpsterStatisticsCreate) SetDate(s string) *DeviceUpsterStatisticsCreate
SetDate sets the "date" field.
func (*DeviceUpsterStatisticsCreate) SetDeviceName ¶
func (dusc *DeviceUpsterStatisticsCreate) SetDeviceName(s string) *DeviceUpsterStatisticsCreate
SetDeviceName sets the "deviceName" field.
func (*DeviceUpsterStatisticsCreate) SetHours ¶
func (dusc *DeviceUpsterStatisticsCreate) SetHours(s string) *DeviceUpsterStatisticsCreate
SetHours sets the "hours" field.
func (*DeviceUpsterStatisticsCreate) SetID ¶
func (dusc *DeviceUpsterStatisticsCreate) SetID(u uint64) *DeviceUpsterStatisticsCreate
SetID sets the "id" field.
func (*DeviceUpsterStatisticsCreate) SetInitialize ¶
func (dusc *DeviceUpsterStatisticsCreate) SetInitialize(b bool) *DeviceUpsterStatisticsCreate
SetInitialize sets the "initialize" field.
func (*DeviceUpsterStatisticsCreate) SetIotID ¶
func (dusc *DeviceUpsterStatisticsCreate) SetIotID(s string) *DeviceUpsterStatisticsCreate
SetIotID sets the "iotID" field.
func (*DeviceUpsterStatisticsCreate) SetNillableCreatedAt ¶
func (dusc *DeviceUpsterStatisticsCreate) SetNillableCreatedAt(t *time.Time) *DeviceUpsterStatisticsCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*DeviceUpsterStatisticsCreate) SetNillableDate ¶
func (dusc *DeviceUpsterStatisticsCreate) SetNillableDate(s *string) *DeviceUpsterStatisticsCreate
SetNillableDate sets the "date" field if the given value is not nil.
func (*DeviceUpsterStatisticsCreate) SetNillableHours ¶
func (dusc *DeviceUpsterStatisticsCreate) SetNillableHours(s *string) *DeviceUpsterStatisticsCreate
SetNillableHours sets the "hours" field if the given value is not nil.
func (*DeviceUpsterStatisticsCreate) SetNillableInitialize ¶
func (dusc *DeviceUpsterStatisticsCreate) SetNillableInitialize(b *bool) *DeviceUpsterStatisticsCreate
SetNillableInitialize sets the "initialize" field if the given value is not nil.
func (*DeviceUpsterStatisticsCreate) SetNillableNumber1 ¶
func (dusc *DeviceUpsterStatisticsCreate) SetNillableNumber1(i *int32) *DeviceUpsterStatisticsCreate
SetNillableNumber1 sets the "number1" field if the given value is not nil.
func (*DeviceUpsterStatisticsCreate) SetNillableNumber2 ¶
func (dusc *DeviceUpsterStatisticsCreate) SetNillableNumber2(i *int32) *DeviceUpsterStatisticsCreate
SetNillableNumber2 sets the "number2" field if the given value is not nil.
func (*DeviceUpsterStatisticsCreate) SetNillableNumber3 ¶
func (dusc *DeviceUpsterStatisticsCreate) SetNillableNumber3(i *int32) *DeviceUpsterStatisticsCreate
SetNillableNumber3 sets the "number3" field if the given value is not nil.
func (*DeviceUpsterStatisticsCreate) SetNillableNumberCycles ¶
func (dusc *DeviceUpsterStatisticsCreate) SetNillableNumberCycles(i *int32) *DeviceUpsterStatisticsCreate
SetNillableNumberCycles sets the "numberCycles" field if the given value is not nil.
func (*DeviceUpsterStatisticsCreate) SetNillableSort ¶
func (dusc *DeviceUpsterStatisticsCreate) SetNillableSort(u *uint32) *DeviceUpsterStatisticsCreate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DeviceUpsterStatisticsCreate) SetNillableStatus ¶
func (dusc *DeviceUpsterStatisticsCreate) SetNillableStatus(u *uint8) *DeviceUpsterStatisticsCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DeviceUpsterStatisticsCreate) SetNillableTimestamp ¶
func (dusc *DeviceUpsterStatisticsCreate) SetNillableTimestamp(s *string) *DeviceUpsterStatisticsCreate
SetNillableTimestamp sets the "timestamp" field if the given value is not nil.
func (*DeviceUpsterStatisticsCreate) SetNillableUpdatedAt ¶
func (dusc *DeviceUpsterStatisticsCreate) SetNillableUpdatedAt(t *time.Time) *DeviceUpsterStatisticsCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*DeviceUpsterStatisticsCreate) SetNotNilDate ¶
func (dus *DeviceUpsterStatisticsCreate) SetNotNilDate(value *string) *DeviceUpsterStatisticsCreate
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsCreate) SetNotNilDeviceName ¶
func (dus *DeviceUpsterStatisticsCreate) SetNotNilDeviceName(value *string) *DeviceUpsterStatisticsCreate
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsCreate) SetNotNilHours ¶
func (dus *DeviceUpsterStatisticsCreate) SetNotNilHours(value *string) *DeviceUpsterStatisticsCreate
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsCreate) SetNotNilInitialize ¶
func (dus *DeviceUpsterStatisticsCreate) SetNotNilInitialize(value *bool) *DeviceUpsterStatisticsCreate
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsCreate) SetNotNilIotID ¶
func (dus *DeviceUpsterStatisticsCreate) SetNotNilIotID(value *string) *DeviceUpsterStatisticsCreate
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsCreate) SetNotNilNumber1 ¶
func (dus *DeviceUpsterStatisticsCreate) SetNotNilNumber1(value *int32) *DeviceUpsterStatisticsCreate
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsCreate) SetNotNilNumber2 ¶
func (dus *DeviceUpsterStatisticsCreate) SetNotNilNumber2(value *int32) *DeviceUpsterStatisticsCreate
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsCreate) SetNotNilNumber3 ¶
func (dus *DeviceUpsterStatisticsCreate) SetNotNilNumber3(value *int32) *DeviceUpsterStatisticsCreate
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsCreate) SetNotNilNumberCycles ¶
func (dus *DeviceUpsterStatisticsCreate) SetNotNilNumberCycles(value *int32) *DeviceUpsterStatisticsCreate
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsCreate) SetNotNilProductKey ¶
func (dus *DeviceUpsterStatisticsCreate) SetNotNilProductKey(value *string) *DeviceUpsterStatisticsCreate
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsCreate) SetNotNilSort ¶
func (dus *DeviceUpsterStatisticsCreate) SetNotNilSort(value *uint32) *DeviceUpsterStatisticsCreate
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsCreate) SetNotNilStatus ¶
func (dus *DeviceUpsterStatisticsCreate) SetNotNilStatus(value *uint8) *DeviceUpsterStatisticsCreate
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsCreate) SetNotNilTimestamp ¶
func (dus *DeviceUpsterStatisticsCreate) SetNotNilTimestamp(value *string) *DeviceUpsterStatisticsCreate
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsCreate) SetNotNilUpdatedAt ¶
func (dus *DeviceUpsterStatisticsCreate) SetNotNilUpdatedAt(value *time.Time) *DeviceUpsterStatisticsCreate
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsCreate) SetNumber1 ¶
func (dusc *DeviceUpsterStatisticsCreate) SetNumber1(i int32) *DeviceUpsterStatisticsCreate
SetNumber1 sets the "number1" field.
func (*DeviceUpsterStatisticsCreate) SetNumber2 ¶
func (dusc *DeviceUpsterStatisticsCreate) SetNumber2(i int32) *DeviceUpsterStatisticsCreate
SetNumber2 sets the "number2" field.
func (*DeviceUpsterStatisticsCreate) SetNumber3 ¶
func (dusc *DeviceUpsterStatisticsCreate) SetNumber3(i int32) *DeviceUpsterStatisticsCreate
SetNumber3 sets the "number3" field.
func (*DeviceUpsterStatisticsCreate) SetNumberCycles ¶
func (dusc *DeviceUpsterStatisticsCreate) SetNumberCycles(i int32) *DeviceUpsterStatisticsCreate
SetNumberCycles sets the "numberCycles" field.
func (*DeviceUpsterStatisticsCreate) SetProductKey ¶
func (dusc *DeviceUpsterStatisticsCreate) SetProductKey(s string) *DeviceUpsterStatisticsCreate
SetProductKey sets the "productKey" field.
func (*DeviceUpsterStatisticsCreate) SetSort ¶
func (dusc *DeviceUpsterStatisticsCreate) SetSort(u uint32) *DeviceUpsterStatisticsCreate
SetSort sets the "sort" field.
func (*DeviceUpsterStatisticsCreate) SetStatus ¶
func (dusc *DeviceUpsterStatisticsCreate) SetStatus(u uint8) *DeviceUpsterStatisticsCreate
SetStatus sets the "status" field.
func (*DeviceUpsterStatisticsCreate) SetTimestamp ¶
func (dusc *DeviceUpsterStatisticsCreate) SetTimestamp(s string) *DeviceUpsterStatisticsCreate
SetTimestamp sets the "timestamp" field.
func (*DeviceUpsterStatisticsCreate) SetUpdatedAt ¶
func (dusc *DeviceUpsterStatisticsCreate) SetUpdatedAt(t time.Time) *DeviceUpsterStatisticsCreate
SetUpdatedAt sets the "updated_at" field.
func (*DeviceUpsterStatisticsCreate) TableName ¶
func (dusc *DeviceUpsterStatisticsCreate) TableName(s string) *DeviceUpsterStatisticsCreate
type DeviceUpsterStatisticsCreateBulk ¶
type DeviceUpsterStatisticsCreateBulk struct {
// contains filtered or unexported fields
}
DeviceUpsterStatisticsCreateBulk is the builder for creating many DeviceUpsterStatistics entities in bulk.
func (*DeviceUpsterStatisticsCreateBulk) Exec ¶
func (duscb *DeviceUpsterStatisticsCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceUpsterStatisticsCreateBulk) ExecContext ¶
func (c *DeviceUpsterStatisticsCreateBulk) 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 (*DeviceUpsterStatisticsCreateBulk) ExecX ¶
func (duscb *DeviceUpsterStatisticsCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceUpsterStatisticsCreateBulk) OnConflict ¶
func (duscb *DeviceUpsterStatisticsCreateBulk) OnConflict(opts ...sql.ConflictOption) *DeviceUpsterStatisticsUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.DeviceUpsterStatistics.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.DeviceUpsterStatisticsUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*DeviceUpsterStatisticsCreateBulk) OnConflictColumns ¶
func (duscb *DeviceUpsterStatisticsCreateBulk) OnConflictColumns(columns ...string) *DeviceUpsterStatisticsUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.DeviceUpsterStatistics.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*DeviceUpsterStatisticsCreateBulk) QueryContext ¶
func (c *DeviceUpsterStatisticsCreateBulk) 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 (*DeviceUpsterStatisticsCreateBulk) Save ¶
func (duscb *DeviceUpsterStatisticsCreateBulk) Save(ctx context.Context) ([]*DeviceUpsterStatistics, error)
Save creates the DeviceUpsterStatistics entities in the database.
func (*DeviceUpsterStatisticsCreateBulk) SaveX ¶
func (duscb *DeviceUpsterStatisticsCreateBulk) SaveX(ctx context.Context) []*DeviceUpsterStatistics
SaveX is like Save, but panics if an error occurs.
type DeviceUpsterStatisticsDelete ¶
type DeviceUpsterStatisticsDelete struct {
// contains filtered or unexported fields
}
DeviceUpsterStatisticsDelete is the builder for deleting a DeviceUpsterStatistics entity.
func (*DeviceUpsterStatisticsDelete) Exec ¶
func (dusd *DeviceUpsterStatisticsDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*DeviceUpsterStatisticsDelete) ExecContext ¶
func (c *DeviceUpsterStatisticsDelete) 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 (*DeviceUpsterStatisticsDelete) ExecX ¶
func (dusd *DeviceUpsterStatisticsDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*DeviceUpsterStatisticsDelete) QueryContext ¶
func (c *DeviceUpsterStatisticsDelete) 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 (*DeviceUpsterStatisticsDelete) Where ¶
func (dusd *DeviceUpsterStatisticsDelete) Where(ps ...predicate.DeviceUpsterStatistics) *DeviceUpsterStatisticsDelete
Where appends a list predicates to the DeviceUpsterStatisticsDelete builder.
type DeviceUpsterStatisticsDeleteOne ¶
type DeviceUpsterStatisticsDeleteOne struct {
// contains filtered or unexported fields
}
DeviceUpsterStatisticsDeleteOne is the builder for deleting a single DeviceUpsterStatistics entity.
func (*DeviceUpsterStatisticsDeleteOne) Exec ¶
func (dusdo *DeviceUpsterStatisticsDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*DeviceUpsterStatisticsDeleteOne) ExecX ¶
func (dusdo *DeviceUpsterStatisticsDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceUpsterStatisticsDeleteOne) Where ¶
func (dusdo *DeviceUpsterStatisticsDeleteOne) Where(ps ...predicate.DeviceUpsterStatistics) *DeviceUpsterStatisticsDeleteOne
Where appends a list predicates to the DeviceUpsterStatisticsDelete builder.
type DeviceUpsterStatisticsGroupBy ¶
type DeviceUpsterStatisticsGroupBy struct {
// contains filtered or unexported fields
}
DeviceUpsterStatisticsGroupBy is the group-by builder for DeviceUpsterStatistics entities.
func (*DeviceUpsterStatisticsGroupBy) Aggregate ¶
func (dusgb *DeviceUpsterStatisticsGroupBy) Aggregate(fns ...AggregateFunc) *DeviceUpsterStatisticsGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*DeviceUpsterStatisticsGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DeviceUpsterStatisticsGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*DeviceUpsterStatisticsGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DeviceUpsterStatisticsGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*DeviceUpsterStatisticsGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DeviceUpsterStatisticsGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*DeviceUpsterStatisticsGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DeviceUpsterStatisticsGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*DeviceUpsterStatisticsGroupBy) Scan ¶
func (dusgb *DeviceUpsterStatisticsGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*DeviceUpsterStatisticsGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*DeviceUpsterStatisticsGroupBy) StringX ¶
StringX is like String, but panics if an error occurs.
type DeviceUpsterStatisticsMutation ¶
type DeviceUpsterStatisticsMutation struct {
// contains filtered or unexported fields
}
DeviceUpsterStatisticsMutation represents an operation that mutates the DeviceUpsterStatistics nodes in the graph.
func (*DeviceUpsterStatisticsMutation) AddField ¶
func (m *DeviceUpsterStatisticsMutation) 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 (*DeviceUpsterStatisticsMutation) AddNumber1 ¶
func (m *DeviceUpsterStatisticsMutation) AddNumber1(i int32)
AddNumber1 adds i to the "number1" field.
func (*DeviceUpsterStatisticsMutation) AddNumber2 ¶
func (m *DeviceUpsterStatisticsMutation) AddNumber2(i int32)
AddNumber2 adds i to the "number2" field.
func (*DeviceUpsterStatisticsMutation) AddNumber3 ¶
func (m *DeviceUpsterStatisticsMutation) AddNumber3(i int32)
AddNumber3 adds i to the "number3" field.
func (*DeviceUpsterStatisticsMutation) AddNumberCycles ¶
func (m *DeviceUpsterStatisticsMutation) AddNumberCycles(i int32)
AddNumberCycles adds i to the "numberCycles" field.
func (*DeviceUpsterStatisticsMutation) AddSort ¶
func (m *DeviceUpsterStatisticsMutation) AddSort(u int32)
AddSort adds u to the "sort" field.
func (*DeviceUpsterStatisticsMutation) AddStatus ¶
func (m *DeviceUpsterStatisticsMutation) AddStatus(u int8)
AddStatus adds u to the "status" field.
func (*DeviceUpsterStatisticsMutation) AddedEdges ¶
func (m *DeviceUpsterStatisticsMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*DeviceUpsterStatisticsMutation) AddedField ¶
func (m *DeviceUpsterStatisticsMutation) 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 (*DeviceUpsterStatisticsMutation) AddedFields ¶
func (m *DeviceUpsterStatisticsMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*DeviceUpsterStatisticsMutation) AddedIDs ¶
func (m *DeviceUpsterStatisticsMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*DeviceUpsterStatisticsMutation) AddedNumber1 ¶
func (m *DeviceUpsterStatisticsMutation) AddedNumber1() (r int32, exists bool)
AddedNumber1 returns the value that was added to the "number1" field in this mutation.
func (*DeviceUpsterStatisticsMutation) AddedNumber2 ¶
func (m *DeviceUpsterStatisticsMutation) AddedNumber2() (r int32, exists bool)
AddedNumber2 returns the value that was added to the "number2" field in this mutation.
func (*DeviceUpsterStatisticsMutation) AddedNumber3 ¶
func (m *DeviceUpsterStatisticsMutation) AddedNumber3() (r int32, exists bool)
AddedNumber3 returns the value that was added to the "number3" field in this mutation.
func (*DeviceUpsterStatisticsMutation) AddedNumberCycles ¶
func (m *DeviceUpsterStatisticsMutation) AddedNumberCycles() (r int32, exists bool)
AddedNumberCycles returns the value that was added to the "numberCycles" field in this mutation.
func (*DeviceUpsterStatisticsMutation) AddedSort ¶
func (m *DeviceUpsterStatisticsMutation) AddedSort() (r int32, exists bool)
AddedSort returns the value that was added to the "sort" field in this mutation.
func (*DeviceUpsterStatisticsMutation) AddedStatus ¶
func (m *DeviceUpsterStatisticsMutation) AddedStatus() (r int8, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*DeviceUpsterStatisticsMutation) ClearDate ¶
func (m *DeviceUpsterStatisticsMutation) ClearDate()
ClearDate clears the value of the "date" field.
func (*DeviceUpsterStatisticsMutation) ClearEdge ¶
func (m *DeviceUpsterStatisticsMutation) 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 (*DeviceUpsterStatisticsMutation) ClearField ¶
func (m *DeviceUpsterStatisticsMutation) 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 (*DeviceUpsterStatisticsMutation) ClearHours ¶
func (m *DeviceUpsterStatisticsMutation) ClearHours()
ClearHours clears the value of the "hours" field.
func (*DeviceUpsterStatisticsMutation) ClearInitialize ¶
func (m *DeviceUpsterStatisticsMutation) ClearInitialize()
ClearInitialize clears the value of the "initialize" field.
func (*DeviceUpsterStatisticsMutation) ClearNumber1 ¶
func (m *DeviceUpsterStatisticsMutation) ClearNumber1()
ClearNumber1 clears the value of the "number1" field.
func (*DeviceUpsterStatisticsMutation) ClearNumber2 ¶
func (m *DeviceUpsterStatisticsMutation) ClearNumber2()
ClearNumber2 clears the value of the "number2" field.
func (*DeviceUpsterStatisticsMutation) ClearNumber3 ¶
func (m *DeviceUpsterStatisticsMutation) ClearNumber3()
ClearNumber3 clears the value of the "number3" field.
func (*DeviceUpsterStatisticsMutation) ClearNumberCycles ¶
func (m *DeviceUpsterStatisticsMutation) ClearNumberCycles()
ClearNumberCycles clears the value of the "numberCycles" field.
func (*DeviceUpsterStatisticsMutation) ClearStatus ¶
func (m *DeviceUpsterStatisticsMutation) ClearStatus()
ClearStatus clears the value of the "status" field.
func (*DeviceUpsterStatisticsMutation) ClearTimestamp ¶
func (m *DeviceUpsterStatisticsMutation) ClearTimestamp()
ClearTimestamp clears the value of the "timestamp" field.
func (*DeviceUpsterStatisticsMutation) ClearedEdges ¶
func (m *DeviceUpsterStatisticsMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*DeviceUpsterStatisticsMutation) ClearedFields ¶
func (m *DeviceUpsterStatisticsMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (DeviceUpsterStatisticsMutation) Client ¶
func (m DeviceUpsterStatisticsMutation) 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 (*DeviceUpsterStatisticsMutation) CreatedAt ¶
func (m *DeviceUpsterStatisticsMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*DeviceUpsterStatisticsMutation) Date ¶
func (m *DeviceUpsterStatisticsMutation) Date() (r string, exists bool)
Date returns the value of the "date" field in the mutation.
func (*DeviceUpsterStatisticsMutation) DateCleared ¶
func (m *DeviceUpsterStatisticsMutation) DateCleared() bool
DateCleared returns if the "date" field was cleared in this mutation.
func (*DeviceUpsterStatisticsMutation) DeviceName ¶
func (m *DeviceUpsterStatisticsMutation) DeviceName() (r string, exists bool)
DeviceName returns the value of the "deviceName" field in the mutation.
func (*DeviceUpsterStatisticsMutation) EdgeCleared ¶
func (m *DeviceUpsterStatisticsMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*DeviceUpsterStatisticsMutation) ExecContext ¶
func (c *DeviceUpsterStatisticsMutation) 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 (*DeviceUpsterStatisticsMutation) Field ¶
func (m *DeviceUpsterStatisticsMutation) 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 (*DeviceUpsterStatisticsMutation) FieldCleared ¶
func (m *DeviceUpsterStatisticsMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*DeviceUpsterStatisticsMutation) Fields ¶
func (m *DeviceUpsterStatisticsMutation) 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 (*DeviceUpsterStatisticsMutation) Hours ¶
func (m *DeviceUpsterStatisticsMutation) Hours() (r string, exists bool)
Hours returns the value of the "hours" field in the mutation.
func (*DeviceUpsterStatisticsMutation) HoursCleared ¶
func (m *DeviceUpsterStatisticsMutation) HoursCleared() bool
HoursCleared returns if the "hours" field was cleared in this mutation.
func (*DeviceUpsterStatisticsMutation) ID ¶
func (m *DeviceUpsterStatisticsMutation) ID() (id uint64, 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 (*DeviceUpsterStatisticsMutation) IDs ¶
func (m *DeviceUpsterStatisticsMutation) IDs(ctx context.Context) ([]uint64, 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 (*DeviceUpsterStatisticsMutation) Initialize ¶
func (m *DeviceUpsterStatisticsMutation) Initialize() (r bool, exists bool)
Initialize returns the value of the "initialize" field in the mutation.
func (*DeviceUpsterStatisticsMutation) InitializeCleared ¶
func (m *DeviceUpsterStatisticsMutation) InitializeCleared() bool
InitializeCleared returns if the "initialize" field was cleared in this mutation.
func (*DeviceUpsterStatisticsMutation) IotID ¶
func (m *DeviceUpsterStatisticsMutation) IotID() (r string, exists bool)
IotID returns the value of the "iotID" field in the mutation.
func (*DeviceUpsterStatisticsMutation) Number1 ¶
func (m *DeviceUpsterStatisticsMutation) Number1() (r int32, exists bool)
Number1 returns the value of the "number1" field in the mutation.
func (*DeviceUpsterStatisticsMutation) Number1Cleared ¶
func (m *DeviceUpsterStatisticsMutation) Number1Cleared() bool
Number1Cleared returns if the "number1" field was cleared in this mutation.
func (*DeviceUpsterStatisticsMutation) Number2 ¶
func (m *DeviceUpsterStatisticsMutation) Number2() (r int32, exists bool)
Number2 returns the value of the "number2" field in the mutation.
func (*DeviceUpsterStatisticsMutation) Number2Cleared ¶
func (m *DeviceUpsterStatisticsMutation) Number2Cleared() bool
Number2Cleared returns if the "number2" field was cleared in this mutation.
func (*DeviceUpsterStatisticsMutation) Number3 ¶
func (m *DeviceUpsterStatisticsMutation) Number3() (r int32, exists bool)
Number3 returns the value of the "number3" field in the mutation.
func (*DeviceUpsterStatisticsMutation) Number3Cleared ¶
func (m *DeviceUpsterStatisticsMutation) Number3Cleared() bool
Number3Cleared returns if the "number3" field was cleared in this mutation.
func (*DeviceUpsterStatisticsMutation) NumberCycles ¶
func (m *DeviceUpsterStatisticsMutation) NumberCycles() (r int32, exists bool)
NumberCycles returns the value of the "numberCycles" field in the mutation.
func (*DeviceUpsterStatisticsMutation) NumberCyclesCleared ¶
func (m *DeviceUpsterStatisticsMutation) NumberCyclesCleared() bool
NumberCyclesCleared returns if the "numberCycles" field was cleared in this mutation.
func (*DeviceUpsterStatisticsMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the DeviceUpsterStatistics entity. If the DeviceUpsterStatistics 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 (*DeviceUpsterStatisticsMutation) OldDate ¶
func (m *DeviceUpsterStatisticsMutation) OldDate(ctx context.Context) (v string, err error)
OldDate returns the old "date" field's value of the DeviceUpsterStatistics entity. If the DeviceUpsterStatistics 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 (*DeviceUpsterStatisticsMutation) OldDeviceName ¶
func (m *DeviceUpsterStatisticsMutation) OldDeviceName(ctx context.Context) (v string, err error)
OldDeviceName returns the old "deviceName" field's value of the DeviceUpsterStatistics entity. If the DeviceUpsterStatistics 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 (*DeviceUpsterStatisticsMutation) OldField ¶
func (m *DeviceUpsterStatisticsMutation) 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 (*DeviceUpsterStatisticsMutation) OldHours ¶
func (m *DeviceUpsterStatisticsMutation) OldHours(ctx context.Context) (v string, err error)
OldHours returns the old "hours" field's value of the DeviceUpsterStatistics entity. If the DeviceUpsterStatistics 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 (*DeviceUpsterStatisticsMutation) OldInitialize ¶
func (m *DeviceUpsterStatisticsMutation) OldInitialize(ctx context.Context) (v bool, err error)
OldInitialize returns the old "initialize" field's value of the DeviceUpsterStatistics entity. If the DeviceUpsterStatistics 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 (*DeviceUpsterStatisticsMutation) OldIotID ¶
func (m *DeviceUpsterStatisticsMutation) OldIotID(ctx context.Context) (v string, err error)
OldIotID returns the old "iotID" field's value of the DeviceUpsterStatistics entity. If the DeviceUpsterStatistics 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 (*DeviceUpsterStatisticsMutation) OldNumber1 ¶
func (m *DeviceUpsterStatisticsMutation) OldNumber1(ctx context.Context) (v int32, err error)
OldNumber1 returns the old "number1" field's value of the DeviceUpsterStatistics entity. If the DeviceUpsterStatistics 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 (*DeviceUpsterStatisticsMutation) OldNumber2 ¶
func (m *DeviceUpsterStatisticsMutation) OldNumber2(ctx context.Context) (v int32, err error)
OldNumber2 returns the old "number2" field's value of the DeviceUpsterStatistics entity. If the DeviceUpsterStatistics 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 (*DeviceUpsterStatisticsMutation) OldNumber3 ¶
func (m *DeviceUpsterStatisticsMutation) OldNumber3(ctx context.Context) (v int32, err error)
OldNumber3 returns the old "number3" field's value of the DeviceUpsterStatistics entity. If the DeviceUpsterStatistics 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 (*DeviceUpsterStatisticsMutation) OldNumberCycles ¶
func (m *DeviceUpsterStatisticsMutation) OldNumberCycles(ctx context.Context) (v int32, err error)
OldNumberCycles returns the old "numberCycles" field's value of the DeviceUpsterStatistics entity. If the DeviceUpsterStatistics 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 (*DeviceUpsterStatisticsMutation) OldProductKey ¶
func (m *DeviceUpsterStatisticsMutation) OldProductKey(ctx context.Context) (v string, err error)
OldProductKey returns the old "productKey" field's value of the DeviceUpsterStatistics entity. If the DeviceUpsterStatistics 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 (*DeviceUpsterStatisticsMutation) OldSort ¶
func (m *DeviceUpsterStatisticsMutation) OldSort(ctx context.Context) (v uint32, err error)
OldSort returns the old "sort" field's value of the DeviceUpsterStatistics entity. If the DeviceUpsterStatistics 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 (*DeviceUpsterStatisticsMutation) OldStatus ¶
func (m *DeviceUpsterStatisticsMutation) OldStatus(ctx context.Context) (v uint8, err error)
OldStatus returns the old "status" field's value of the DeviceUpsterStatistics entity. If the DeviceUpsterStatistics 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 (*DeviceUpsterStatisticsMutation) OldTimestamp ¶
func (m *DeviceUpsterStatisticsMutation) OldTimestamp(ctx context.Context) (v string, err error)
OldTimestamp returns the old "timestamp" field's value of the DeviceUpsterStatistics entity. If the DeviceUpsterStatistics 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 (*DeviceUpsterStatisticsMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the DeviceUpsterStatistics entity. If the DeviceUpsterStatistics 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 (*DeviceUpsterStatisticsMutation) Op ¶
func (m *DeviceUpsterStatisticsMutation) Op() Op
Op returns the operation name.
func (*DeviceUpsterStatisticsMutation) ProductKey ¶
func (m *DeviceUpsterStatisticsMutation) ProductKey() (r string, exists bool)
ProductKey returns the value of the "productKey" field in the mutation.
func (*DeviceUpsterStatisticsMutation) QueryContext ¶
func (c *DeviceUpsterStatisticsMutation) 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 (*DeviceUpsterStatisticsMutation) RemovedEdges ¶
func (m *DeviceUpsterStatisticsMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*DeviceUpsterStatisticsMutation) RemovedIDs ¶
func (m *DeviceUpsterStatisticsMutation) 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 (*DeviceUpsterStatisticsMutation) ResetCreatedAt ¶
func (m *DeviceUpsterStatisticsMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*DeviceUpsterStatisticsMutation) ResetDate ¶
func (m *DeviceUpsterStatisticsMutation) ResetDate()
ResetDate resets all changes to the "date" field.
func (*DeviceUpsterStatisticsMutation) ResetDeviceName ¶
func (m *DeviceUpsterStatisticsMutation) ResetDeviceName()
ResetDeviceName resets all changes to the "deviceName" field.
func (*DeviceUpsterStatisticsMutation) ResetEdge ¶
func (m *DeviceUpsterStatisticsMutation) 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 (*DeviceUpsterStatisticsMutation) ResetField ¶
func (m *DeviceUpsterStatisticsMutation) 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 (*DeviceUpsterStatisticsMutation) ResetHours ¶
func (m *DeviceUpsterStatisticsMutation) ResetHours()
ResetHours resets all changes to the "hours" field.
func (*DeviceUpsterStatisticsMutation) ResetInitialize ¶
func (m *DeviceUpsterStatisticsMutation) ResetInitialize()
ResetInitialize resets all changes to the "initialize" field.
func (*DeviceUpsterStatisticsMutation) ResetIotID ¶
func (m *DeviceUpsterStatisticsMutation) ResetIotID()
ResetIotID resets all changes to the "iotID" field.
func (*DeviceUpsterStatisticsMutation) ResetNumber1 ¶
func (m *DeviceUpsterStatisticsMutation) ResetNumber1()
ResetNumber1 resets all changes to the "number1" field.
func (*DeviceUpsterStatisticsMutation) ResetNumber2 ¶
func (m *DeviceUpsterStatisticsMutation) ResetNumber2()
ResetNumber2 resets all changes to the "number2" field.
func (*DeviceUpsterStatisticsMutation) ResetNumber3 ¶
func (m *DeviceUpsterStatisticsMutation) ResetNumber3()
ResetNumber3 resets all changes to the "number3" field.
func (*DeviceUpsterStatisticsMutation) ResetNumberCycles ¶
func (m *DeviceUpsterStatisticsMutation) ResetNumberCycles()
ResetNumberCycles resets all changes to the "numberCycles" field.
func (*DeviceUpsterStatisticsMutation) ResetProductKey ¶
func (m *DeviceUpsterStatisticsMutation) ResetProductKey()
ResetProductKey resets all changes to the "productKey" field.
func (*DeviceUpsterStatisticsMutation) ResetSort ¶
func (m *DeviceUpsterStatisticsMutation) ResetSort()
ResetSort resets all changes to the "sort" field.
func (*DeviceUpsterStatisticsMutation) ResetStatus ¶
func (m *DeviceUpsterStatisticsMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*DeviceUpsterStatisticsMutation) ResetTimestamp ¶
func (m *DeviceUpsterStatisticsMutation) ResetTimestamp()
ResetTimestamp resets all changes to the "timestamp" field.
func (*DeviceUpsterStatisticsMutation) ResetUpdatedAt ¶
func (m *DeviceUpsterStatisticsMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*DeviceUpsterStatisticsMutation) SetCreatedAt ¶
func (m *DeviceUpsterStatisticsMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*DeviceUpsterStatisticsMutation) SetDate ¶
func (m *DeviceUpsterStatisticsMutation) SetDate(s string)
SetDate sets the "date" field.
func (*DeviceUpsterStatisticsMutation) SetDeviceName ¶
func (m *DeviceUpsterStatisticsMutation) SetDeviceName(s string)
SetDeviceName sets the "deviceName" field.
func (*DeviceUpsterStatisticsMutation) SetField ¶
func (m *DeviceUpsterStatisticsMutation) 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 (*DeviceUpsterStatisticsMutation) SetHours ¶
func (m *DeviceUpsterStatisticsMutation) SetHours(s string)
SetHours sets the "hours" field.
func (*DeviceUpsterStatisticsMutation) SetID ¶
func (m *DeviceUpsterStatisticsMutation) SetID(id uint64)
SetID sets the value of the id field. Note that this operation is only accepted on creation of DeviceUpsterStatistics entities.
func (*DeviceUpsterStatisticsMutation) SetInitialize ¶
func (m *DeviceUpsterStatisticsMutation) SetInitialize(b bool)
SetInitialize sets the "initialize" field.
func (*DeviceUpsterStatisticsMutation) SetIotID ¶
func (m *DeviceUpsterStatisticsMutation) SetIotID(s string)
SetIotID sets the "iotID" field.
func (*DeviceUpsterStatisticsMutation) SetNumber1 ¶
func (m *DeviceUpsterStatisticsMutation) SetNumber1(i int32)
SetNumber1 sets the "number1" field.
func (*DeviceUpsterStatisticsMutation) SetNumber2 ¶
func (m *DeviceUpsterStatisticsMutation) SetNumber2(i int32)
SetNumber2 sets the "number2" field.
func (*DeviceUpsterStatisticsMutation) SetNumber3 ¶
func (m *DeviceUpsterStatisticsMutation) SetNumber3(i int32)
SetNumber3 sets the "number3" field.
func (*DeviceUpsterStatisticsMutation) SetNumberCycles ¶
func (m *DeviceUpsterStatisticsMutation) SetNumberCycles(i int32)
SetNumberCycles sets the "numberCycles" field.
func (*DeviceUpsterStatisticsMutation) SetOp ¶
func (m *DeviceUpsterStatisticsMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*DeviceUpsterStatisticsMutation) SetProductKey ¶
func (m *DeviceUpsterStatisticsMutation) SetProductKey(s string)
SetProductKey sets the "productKey" field.
func (*DeviceUpsterStatisticsMutation) SetSort ¶
func (m *DeviceUpsterStatisticsMutation) SetSort(u uint32)
SetSort sets the "sort" field.
func (*DeviceUpsterStatisticsMutation) SetStatus ¶
func (m *DeviceUpsterStatisticsMutation) SetStatus(u uint8)
SetStatus sets the "status" field.
func (*DeviceUpsterStatisticsMutation) SetTimestamp ¶
func (m *DeviceUpsterStatisticsMutation) SetTimestamp(s string)
SetTimestamp sets the "timestamp" field.
func (*DeviceUpsterStatisticsMutation) SetUpdatedAt ¶
func (m *DeviceUpsterStatisticsMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*DeviceUpsterStatisticsMutation) Sort ¶
func (m *DeviceUpsterStatisticsMutation) Sort() (r uint32, exists bool)
Sort returns the value of the "sort" field in the mutation.
func (*DeviceUpsterStatisticsMutation) Status ¶
func (m *DeviceUpsterStatisticsMutation) Status() (r uint8, exists bool)
Status returns the value of the "status" field in the mutation.
func (*DeviceUpsterStatisticsMutation) StatusCleared ¶
func (m *DeviceUpsterStatisticsMutation) StatusCleared() bool
StatusCleared returns if the "status" field was cleared in this mutation.
func (*DeviceUpsterStatisticsMutation) Timestamp ¶
func (m *DeviceUpsterStatisticsMutation) Timestamp() (r string, exists bool)
Timestamp returns the value of the "timestamp" field in the mutation.
func (*DeviceUpsterStatisticsMutation) TimestampCleared ¶
func (m *DeviceUpsterStatisticsMutation) TimestampCleared() bool
TimestampCleared returns if the "timestamp" field was cleared in this mutation.
func (DeviceUpsterStatisticsMutation) Tx ¶
func (m DeviceUpsterStatisticsMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*DeviceUpsterStatisticsMutation) Type ¶
func (m *DeviceUpsterStatisticsMutation) Type() string
Type returns the node type of this mutation (DeviceUpsterStatistics).
func (*DeviceUpsterStatisticsMutation) UpdatedAt ¶
func (m *DeviceUpsterStatisticsMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*DeviceUpsterStatisticsMutation) Where ¶
func (m *DeviceUpsterStatisticsMutation) Where(ps ...predicate.DeviceUpsterStatistics)
Where appends a list predicates to the DeviceUpsterStatisticsMutation builder.
func (*DeviceUpsterStatisticsMutation) WhereP ¶
func (m *DeviceUpsterStatisticsMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the DeviceUpsterStatisticsMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type DeviceUpsterStatisticsPageList ¶
type DeviceUpsterStatisticsPageList struct { List []*DeviceUpsterStatistics `json:"list"` PageDetails *PageDetails `json:"pageDetails"` }
DeviceUpsterStatisticsPageList is DeviceUpsterStatistics PageList result.
type DeviceUpsterStatisticsPager ¶
type DeviceUpsterStatisticsPager struct { Order deviceupsterstatistics.OrderOption Filter func(*DeviceUpsterStatisticsQuery) (*DeviceUpsterStatisticsQuery, error) }
func (*DeviceUpsterStatisticsPager) ApplyFilter ¶
func (p *DeviceUpsterStatisticsPager) ApplyFilter(query *DeviceUpsterStatisticsQuery) (*DeviceUpsterStatisticsQuery, error)
type DeviceUpsterStatisticsPaginateOption ¶
type DeviceUpsterStatisticsPaginateOption func(*DeviceUpsterStatisticsPager)
DeviceUpsterStatisticsPaginateOption enables pagination customization.
type DeviceUpsterStatisticsQuery ¶
type DeviceUpsterStatisticsQuery struct {
// contains filtered or unexported fields
}
DeviceUpsterStatisticsQuery is the builder for querying DeviceUpsterStatistics entities.
func (*DeviceUpsterStatisticsQuery) Aggregate ¶
func (dusq *DeviceUpsterStatisticsQuery) Aggregate(fns ...AggregateFunc) *DeviceUpsterStatisticsSelect
Aggregate returns a DeviceUpsterStatisticsSelect configured with the given aggregations.
func (*DeviceUpsterStatisticsQuery) All ¶
func (dusq *DeviceUpsterStatisticsQuery) All(ctx context.Context) ([]*DeviceUpsterStatistics, error)
All executes the query and returns a list of DeviceUpsterStatisticsSlice.
func (*DeviceUpsterStatisticsQuery) AllX ¶
func (dusq *DeviceUpsterStatisticsQuery) AllX(ctx context.Context) []*DeviceUpsterStatistics
AllX is like All, but panics if an error occurs.
func (*DeviceUpsterStatisticsQuery) Clone ¶
func (dusq *DeviceUpsterStatisticsQuery) Clone() *DeviceUpsterStatisticsQuery
Clone returns a duplicate of the DeviceUpsterStatisticsQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*DeviceUpsterStatisticsQuery) Count ¶
func (dusq *DeviceUpsterStatisticsQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*DeviceUpsterStatisticsQuery) CountX ¶
func (dusq *DeviceUpsterStatisticsQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*DeviceUpsterStatisticsQuery) ExecContext ¶
func (c *DeviceUpsterStatisticsQuery) 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 (*DeviceUpsterStatisticsQuery) Exist ¶
func (dusq *DeviceUpsterStatisticsQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*DeviceUpsterStatisticsQuery) ExistX ¶
func (dusq *DeviceUpsterStatisticsQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*DeviceUpsterStatisticsQuery) First ¶
func (dusq *DeviceUpsterStatisticsQuery) First(ctx context.Context) (*DeviceUpsterStatistics, error)
First returns the first DeviceUpsterStatistics entity from the query. Returns a *NotFoundError when no DeviceUpsterStatistics was found.
func (*DeviceUpsterStatisticsQuery) FirstID ¶
func (dusq *DeviceUpsterStatisticsQuery) FirstID(ctx context.Context) (id uint64, err error)
FirstID returns the first DeviceUpsterStatistics ID from the query. Returns a *NotFoundError when no DeviceUpsterStatistics ID was found.
func (*DeviceUpsterStatisticsQuery) FirstIDX ¶
func (dusq *DeviceUpsterStatisticsQuery) FirstIDX(ctx context.Context) uint64
FirstIDX is like FirstID, but panics if an error occurs.
func (*DeviceUpsterStatisticsQuery) FirstX ¶
func (dusq *DeviceUpsterStatisticsQuery) FirstX(ctx context.Context) *DeviceUpsterStatistics
FirstX is like First, but panics if an error occurs.
func (*DeviceUpsterStatisticsQuery) GroupBy ¶
func (dusq *DeviceUpsterStatisticsQuery) GroupBy(field string, fields ...string) *DeviceUpsterStatisticsGroupBy
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.DeviceUpsterStatistics.Query(). GroupBy(deviceupsterstatistics.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*DeviceUpsterStatisticsQuery) IDs ¶
func (dusq *DeviceUpsterStatisticsQuery) IDs(ctx context.Context) (ids []uint64, err error)
IDs executes the query and returns a list of DeviceUpsterStatistics IDs.
func (*DeviceUpsterStatisticsQuery) IDsX ¶
func (dusq *DeviceUpsterStatisticsQuery) IDsX(ctx context.Context) []uint64
IDsX is like IDs, but panics if an error occurs.
func (*DeviceUpsterStatisticsQuery) Limit ¶
func (dusq *DeviceUpsterStatisticsQuery) Limit(limit int) *DeviceUpsterStatisticsQuery
Limit the number of records to be returned by this query.
func (*DeviceUpsterStatisticsQuery) Modify ¶
func (dusq *DeviceUpsterStatisticsQuery) Modify(modifiers ...func(s *sql.Selector)) *DeviceUpsterStatisticsSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*DeviceUpsterStatisticsQuery) Offset ¶
func (dusq *DeviceUpsterStatisticsQuery) Offset(offset int) *DeviceUpsterStatisticsQuery
Offset to start from.
func (*DeviceUpsterStatisticsQuery) Only ¶
func (dusq *DeviceUpsterStatisticsQuery) Only(ctx context.Context) (*DeviceUpsterStatistics, error)
Only returns a single DeviceUpsterStatistics entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one DeviceUpsterStatistics entity is found. Returns a *NotFoundError when no DeviceUpsterStatistics entities are found.
func (*DeviceUpsterStatisticsQuery) OnlyID ¶
func (dusq *DeviceUpsterStatisticsQuery) OnlyID(ctx context.Context) (id uint64, err error)
OnlyID is like Only, but returns the only DeviceUpsterStatistics ID in the query. Returns a *NotSingularError when more than one DeviceUpsterStatistics ID is found. Returns a *NotFoundError when no entities are found.
func (*DeviceUpsterStatisticsQuery) OnlyIDX ¶
func (dusq *DeviceUpsterStatisticsQuery) OnlyIDX(ctx context.Context) uint64
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*DeviceUpsterStatisticsQuery) OnlyX ¶
func (dusq *DeviceUpsterStatisticsQuery) OnlyX(ctx context.Context) *DeviceUpsterStatistics
OnlyX is like Only, but panics if an error occurs.
func (*DeviceUpsterStatisticsQuery) Order ¶
func (dusq *DeviceUpsterStatisticsQuery) Order(o ...deviceupsterstatistics.OrderOption) *DeviceUpsterStatisticsQuery
Order specifies how the records should be ordered.
func (*DeviceUpsterStatisticsQuery) Page ¶
func (dus *DeviceUpsterStatisticsQuery) Page( ctx context.Context, pageNum uint64, pageSize uint64, opts ...DeviceUpsterStatisticsPaginateOption, ) (*DeviceUpsterStatisticsPageList, error)
func (*DeviceUpsterStatisticsQuery) QueryContext ¶
func (c *DeviceUpsterStatisticsQuery) 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 (*DeviceUpsterStatisticsQuery) Select ¶
func (dusq *DeviceUpsterStatisticsQuery) Select(fields ...string) *DeviceUpsterStatisticsSelect
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.DeviceUpsterStatistics.Query(). Select(deviceupsterstatistics.FieldCreatedAt). Scan(ctx, &v)
func (*DeviceUpsterStatisticsQuery) Unique ¶
func (dusq *DeviceUpsterStatisticsQuery) Unique(unique bool) *DeviceUpsterStatisticsQuery
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 (*DeviceUpsterStatisticsQuery) Where ¶
func (dusq *DeviceUpsterStatisticsQuery) Where(ps ...predicate.DeviceUpsterStatistics) *DeviceUpsterStatisticsQuery
Where adds a new predicate for the DeviceUpsterStatisticsQuery builder.
type DeviceUpsterStatisticsSelect ¶
type DeviceUpsterStatisticsSelect struct { *DeviceUpsterStatisticsQuery // contains filtered or unexported fields }
DeviceUpsterStatisticsSelect is the builder for selecting fields of DeviceUpsterStatistics entities.
func (*DeviceUpsterStatisticsSelect) Aggregate ¶
func (duss *DeviceUpsterStatisticsSelect) Aggregate(fns ...AggregateFunc) *DeviceUpsterStatisticsSelect
Aggregate adds the given aggregation functions to the selector query.
func (*DeviceUpsterStatisticsSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DeviceUpsterStatisticsSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (DeviceUpsterStatisticsSelect) ExecContext ¶
func (c DeviceUpsterStatisticsSelect) 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 (*DeviceUpsterStatisticsSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DeviceUpsterStatisticsSelect) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*DeviceUpsterStatisticsSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DeviceUpsterStatisticsSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*DeviceUpsterStatisticsSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DeviceUpsterStatisticsSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*DeviceUpsterStatisticsSelect) Modify ¶
func (duss *DeviceUpsterStatisticsSelect) Modify(modifiers ...func(s *sql.Selector)) *DeviceUpsterStatisticsSelect
Modify adds a query modifier for attaching custom logic to queries.
func (DeviceUpsterStatisticsSelect) QueryContext ¶
func (c DeviceUpsterStatisticsSelect) 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 (*DeviceUpsterStatisticsSelect) Scan ¶
func (duss *DeviceUpsterStatisticsSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*DeviceUpsterStatisticsSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*DeviceUpsterStatisticsSelect) StringX ¶
StringX is like String, but panics if an error occurs.
type DeviceUpsterStatisticsSlice ¶
type DeviceUpsterStatisticsSlice []*DeviceUpsterStatistics
DeviceUpsterStatisticsSlice is a parsable slice of DeviceUpsterStatistics.
type DeviceUpsterStatisticsUpdate ¶
type DeviceUpsterStatisticsUpdate struct {
// contains filtered or unexported fields
}
DeviceUpsterStatisticsUpdate is the builder for updating DeviceUpsterStatistics entities.
func (*DeviceUpsterStatisticsUpdate) AddNumber1 ¶
func (dusu *DeviceUpsterStatisticsUpdate) AddNumber1(i int32) *DeviceUpsterStatisticsUpdate
AddNumber1 adds i to the "number1" field.
func (*DeviceUpsterStatisticsUpdate) AddNumber2 ¶
func (dusu *DeviceUpsterStatisticsUpdate) AddNumber2(i int32) *DeviceUpsterStatisticsUpdate
AddNumber2 adds i to the "number2" field.
func (*DeviceUpsterStatisticsUpdate) AddNumber3 ¶
func (dusu *DeviceUpsterStatisticsUpdate) AddNumber3(i int32) *DeviceUpsterStatisticsUpdate
AddNumber3 adds i to the "number3" field.
func (*DeviceUpsterStatisticsUpdate) AddNumberCycles ¶
func (dusu *DeviceUpsterStatisticsUpdate) AddNumberCycles(i int32) *DeviceUpsterStatisticsUpdate
AddNumberCycles adds i to the "numberCycles" field.
func (*DeviceUpsterStatisticsUpdate) AddSort ¶
func (dusu *DeviceUpsterStatisticsUpdate) AddSort(u int32) *DeviceUpsterStatisticsUpdate
AddSort adds u to the "sort" field.
func (*DeviceUpsterStatisticsUpdate) AddStatus ¶
func (dusu *DeviceUpsterStatisticsUpdate) AddStatus(u int8) *DeviceUpsterStatisticsUpdate
AddStatus adds u to the "status" field.
func (*DeviceUpsterStatisticsUpdate) ClearDate ¶
func (dusu *DeviceUpsterStatisticsUpdate) ClearDate() *DeviceUpsterStatisticsUpdate
ClearDate clears the value of the "date" field.
func (*DeviceUpsterStatisticsUpdate) ClearHours ¶
func (dusu *DeviceUpsterStatisticsUpdate) ClearHours() *DeviceUpsterStatisticsUpdate
ClearHours clears the value of the "hours" field.
func (*DeviceUpsterStatisticsUpdate) ClearInitialize ¶
func (dusu *DeviceUpsterStatisticsUpdate) ClearInitialize() *DeviceUpsterStatisticsUpdate
ClearInitialize clears the value of the "initialize" field.
func (*DeviceUpsterStatisticsUpdate) ClearNumber1 ¶
func (dusu *DeviceUpsterStatisticsUpdate) ClearNumber1() *DeviceUpsterStatisticsUpdate
ClearNumber1 clears the value of the "number1" field.
func (*DeviceUpsterStatisticsUpdate) ClearNumber2 ¶
func (dusu *DeviceUpsterStatisticsUpdate) ClearNumber2() *DeviceUpsterStatisticsUpdate
ClearNumber2 clears the value of the "number2" field.
func (*DeviceUpsterStatisticsUpdate) ClearNumber3 ¶
func (dusu *DeviceUpsterStatisticsUpdate) ClearNumber3() *DeviceUpsterStatisticsUpdate
ClearNumber3 clears the value of the "number3" field.
func (*DeviceUpsterStatisticsUpdate) ClearNumberCycles ¶
func (dusu *DeviceUpsterStatisticsUpdate) ClearNumberCycles() *DeviceUpsterStatisticsUpdate
ClearNumberCycles clears the value of the "numberCycles" field.
func (*DeviceUpsterStatisticsUpdate) ClearStatus ¶
func (dusu *DeviceUpsterStatisticsUpdate) ClearStatus() *DeviceUpsterStatisticsUpdate
ClearStatus clears the value of the "status" field.
func (*DeviceUpsterStatisticsUpdate) ClearTimestamp ¶
func (dusu *DeviceUpsterStatisticsUpdate) ClearTimestamp() *DeviceUpsterStatisticsUpdate
ClearTimestamp clears the value of the "timestamp" field.
func (*DeviceUpsterStatisticsUpdate) Exec ¶
func (dusu *DeviceUpsterStatisticsUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceUpsterStatisticsUpdate) ExecContext ¶
func (c *DeviceUpsterStatisticsUpdate) 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 (*DeviceUpsterStatisticsUpdate) ExecX ¶
func (dusu *DeviceUpsterStatisticsUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceUpsterStatisticsUpdate) Modify ¶
func (dusu *DeviceUpsterStatisticsUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceUpsterStatisticsUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*DeviceUpsterStatisticsUpdate) Mutation ¶
func (dusu *DeviceUpsterStatisticsUpdate) Mutation() *DeviceUpsterStatisticsMutation
Mutation returns the DeviceUpsterStatisticsMutation object of the builder.
func (*DeviceUpsterStatisticsUpdate) QueryContext ¶
func (c *DeviceUpsterStatisticsUpdate) 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 (*DeviceUpsterStatisticsUpdate) Save ¶
func (dusu *DeviceUpsterStatisticsUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*DeviceUpsterStatisticsUpdate) SaveX ¶
func (dusu *DeviceUpsterStatisticsUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*DeviceUpsterStatisticsUpdate) SetDate ¶
func (dusu *DeviceUpsterStatisticsUpdate) SetDate(s string) *DeviceUpsterStatisticsUpdate
SetDate sets the "date" field.
func (*DeviceUpsterStatisticsUpdate) SetDeviceName ¶
func (dusu *DeviceUpsterStatisticsUpdate) SetDeviceName(s string) *DeviceUpsterStatisticsUpdate
SetDeviceName sets the "deviceName" field.
func (*DeviceUpsterStatisticsUpdate) SetHours ¶
func (dusu *DeviceUpsterStatisticsUpdate) SetHours(s string) *DeviceUpsterStatisticsUpdate
SetHours sets the "hours" field.
func (*DeviceUpsterStatisticsUpdate) SetInitialize ¶
func (dusu *DeviceUpsterStatisticsUpdate) SetInitialize(b bool) *DeviceUpsterStatisticsUpdate
SetInitialize sets the "initialize" field.
func (*DeviceUpsterStatisticsUpdate) SetIotID ¶
func (dusu *DeviceUpsterStatisticsUpdate) SetIotID(s string) *DeviceUpsterStatisticsUpdate
SetIotID sets the "iotID" field.
func (*DeviceUpsterStatisticsUpdate) SetNillableDate ¶
func (dusu *DeviceUpsterStatisticsUpdate) SetNillableDate(s *string) *DeviceUpsterStatisticsUpdate
SetNillableDate sets the "date" field if the given value is not nil.
func (*DeviceUpsterStatisticsUpdate) SetNillableDeviceName ¶
func (dusu *DeviceUpsterStatisticsUpdate) SetNillableDeviceName(s *string) *DeviceUpsterStatisticsUpdate
SetNillableDeviceName sets the "deviceName" field if the given value is not nil.
func (*DeviceUpsterStatisticsUpdate) SetNillableHours ¶
func (dusu *DeviceUpsterStatisticsUpdate) SetNillableHours(s *string) *DeviceUpsterStatisticsUpdate
SetNillableHours sets the "hours" field if the given value is not nil.
func (*DeviceUpsterStatisticsUpdate) SetNillableInitialize ¶
func (dusu *DeviceUpsterStatisticsUpdate) SetNillableInitialize(b *bool) *DeviceUpsterStatisticsUpdate
SetNillableInitialize sets the "initialize" field if the given value is not nil.
func (*DeviceUpsterStatisticsUpdate) SetNillableIotID ¶
func (dusu *DeviceUpsterStatisticsUpdate) SetNillableIotID(s *string) *DeviceUpsterStatisticsUpdate
SetNillableIotID sets the "iotID" field if the given value is not nil.
func (*DeviceUpsterStatisticsUpdate) SetNillableNumber1 ¶
func (dusu *DeviceUpsterStatisticsUpdate) SetNillableNumber1(i *int32) *DeviceUpsterStatisticsUpdate
SetNillableNumber1 sets the "number1" field if the given value is not nil.
func (*DeviceUpsterStatisticsUpdate) SetNillableNumber2 ¶
func (dusu *DeviceUpsterStatisticsUpdate) SetNillableNumber2(i *int32) *DeviceUpsterStatisticsUpdate
SetNillableNumber2 sets the "number2" field if the given value is not nil.
func (*DeviceUpsterStatisticsUpdate) SetNillableNumber3 ¶
func (dusu *DeviceUpsterStatisticsUpdate) SetNillableNumber3(i *int32) *DeviceUpsterStatisticsUpdate
SetNillableNumber3 sets the "number3" field if the given value is not nil.
func (*DeviceUpsterStatisticsUpdate) SetNillableNumberCycles ¶
func (dusu *DeviceUpsterStatisticsUpdate) SetNillableNumberCycles(i *int32) *DeviceUpsterStatisticsUpdate
SetNillableNumberCycles sets the "numberCycles" field if the given value is not nil.
func (*DeviceUpsterStatisticsUpdate) SetNillableProductKey ¶
func (dusu *DeviceUpsterStatisticsUpdate) SetNillableProductKey(s *string) *DeviceUpsterStatisticsUpdate
SetNillableProductKey sets the "productKey" field if the given value is not nil.
func (*DeviceUpsterStatisticsUpdate) SetNillableSort ¶
func (dusu *DeviceUpsterStatisticsUpdate) SetNillableSort(u *uint32) *DeviceUpsterStatisticsUpdate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DeviceUpsterStatisticsUpdate) SetNillableStatus ¶
func (dusu *DeviceUpsterStatisticsUpdate) SetNillableStatus(u *uint8) *DeviceUpsterStatisticsUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DeviceUpsterStatisticsUpdate) SetNillableTimestamp ¶
func (dusu *DeviceUpsterStatisticsUpdate) SetNillableTimestamp(s *string) *DeviceUpsterStatisticsUpdate
SetNillableTimestamp sets the "timestamp" field if the given value is not nil.
func (*DeviceUpsterStatisticsUpdate) SetNotNilDate ¶
func (dus *DeviceUpsterStatisticsUpdate) SetNotNilDate(value *string) *DeviceUpsterStatisticsUpdate
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsUpdate) SetNotNilDeviceName ¶
func (dus *DeviceUpsterStatisticsUpdate) SetNotNilDeviceName(value *string) *DeviceUpsterStatisticsUpdate
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsUpdate) SetNotNilHours ¶
func (dus *DeviceUpsterStatisticsUpdate) SetNotNilHours(value *string) *DeviceUpsterStatisticsUpdate
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsUpdate) SetNotNilInitialize ¶
func (dus *DeviceUpsterStatisticsUpdate) SetNotNilInitialize(value *bool) *DeviceUpsterStatisticsUpdate
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsUpdate) SetNotNilIotID ¶
func (dus *DeviceUpsterStatisticsUpdate) SetNotNilIotID(value *string) *DeviceUpsterStatisticsUpdate
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsUpdate) SetNotNilNumber1 ¶
func (dus *DeviceUpsterStatisticsUpdate) SetNotNilNumber1(value *int32) *DeviceUpsterStatisticsUpdate
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsUpdate) SetNotNilNumber2 ¶
func (dus *DeviceUpsterStatisticsUpdate) SetNotNilNumber2(value *int32) *DeviceUpsterStatisticsUpdate
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsUpdate) SetNotNilNumber3 ¶
func (dus *DeviceUpsterStatisticsUpdate) SetNotNilNumber3(value *int32) *DeviceUpsterStatisticsUpdate
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsUpdate) SetNotNilNumberCycles ¶
func (dus *DeviceUpsterStatisticsUpdate) SetNotNilNumberCycles(value *int32) *DeviceUpsterStatisticsUpdate
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsUpdate) SetNotNilProductKey ¶
func (dus *DeviceUpsterStatisticsUpdate) SetNotNilProductKey(value *string) *DeviceUpsterStatisticsUpdate
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsUpdate) SetNotNilSort ¶
func (dus *DeviceUpsterStatisticsUpdate) SetNotNilSort(value *uint32) *DeviceUpsterStatisticsUpdate
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsUpdate) SetNotNilStatus ¶
func (dus *DeviceUpsterStatisticsUpdate) SetNotNilStatus(value *uint8) *DeviceUpsterStatisticsUpdate
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsUpdate) SetNotNilTimestamp ¶
func (dus *DeviceUpsterStatisticsUpdate) SetNotNilTimestamp(value *string) *DeviceUpsterStatisticsUpdate
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsUpdate) SetNotNilUpdatedAt ¶
func (dus *DeviceUpsterStatisticsUpdate) SetNotNilUpdatedAt(value *time.Time) *DeviceUpsterStatisticsUpdate
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsUpdate) SetNumber1 ¶
func (dusu *DeviceUpsterStatisticsUpdate) SetNumber1(i int32) *DeviceUpsterStatisticsUpdate
SetNumber1 sets the "number1" field.
func (*DeviceUpsterStatisticsUpdate) SetNumber2 ¶
func (dusu *DeviceUpsterStatisticsUpdate) SetNumber2(i int32) *DeviceUpsterStatisticsUpdate
SetNumber2 sets the "number2" field.
func (*DeviceUpsterStatisticsUpdate) SetNumber3 ¶
func (dusu *DeviceUpsterStatisticsUpdate) SetNumber3(i int32) *DeviceUpsterStatisticsUpdate
SetNumber3 sets the "number3" field.
func (*DeviceUpsterStatisticsUpdate) SetNumberCycles ¶
func (dusu *DeviceUpsterStatisticsUpdate) SetNumberCycles(i int32) *DeviceUpsterStatisticsUpdate
SetNumberCycles sets the "numberCycles" field.
func (*DeviceUpsterStatisticsUpdate) SetProductKey ¶
func (dusu *DeviceUpsterStatisticsUpdate) SetProductKey(s string) *DeviceUpsterStatisticsUpdate
SetProductKey sets the "productKey" field.
func (*DeviceUpsterStatisticsUpdate) SetSort ¶
func (dusu *DeviceUpsterStatisticsUpdate) SetSort(u uint32) *DeviceUpsterStatisticsUpdate
SetSort sets the "sort" field.
func (*DeviceUpsterStatisticsUpdate) SetStatus ¶
func (dusu *DeviceUpsterStatisticsUpdate) SetStatus(u uint8) *DeviceUpsterStatisticsUpdate
SetStatus sets the "status" field.
func (*DeviceUpsterStatisticsUpdate) SetTimestamp ¶
func (dusu *DeviceUpsterStatisticsUpdate) SetTimestamp(s string) *DeviceUpsterStatisticsUpdate
SetTimestamp sets the "timestamp" field.
func (*DeviceUpsterStatisticsUpdate) SetUpdatedAt ¶
func (dusu *DeviceUpsterStatisticsUpdate) SetUpdatedAt(t time.Time) *DeviceUpsterStatisticsUpdate
SetUpdatedAt sets the "updated_at" field.
func (*DeviceUpsterStatisticsUpdate) Where ¶
func (dusu *DeviceUpsterStatisticsUpdate) Where(ps ...predicate.DeviceUpsterStatistics) *DeviceUpsterStatisticsUpdate
Where appends a list predicates to the DeviceUpsterStatisticsUpdate builder.
type DeviceUpsterStatisticsUpdateOne ¶
type DeviceUpsterStatisticsUpdateOne struct {
// contains filtered or unexported fields
}
DeviceUpsterStatisticsUpdateOne is the builder for updating a single DeviceUpsterStatistics entity.
func (*DeviceUpsterStatisticsUpdateOne) AddNumber1 ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) AddNumber1(i int32) *DeviceUpsterStatisticsUpdateOne
AddNumber1 adds i to the "number1" field.
func (*DeviceUpsterStatisticsUpdateOne) AddNumber2 ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) AddNumber2(i int32) *DeviceUpsterStatisticsUpdateOne
AddNumber2 adds i to the "number2" field.
func (*DeviceUpsterStatisticsUpdateOne) AddNumber3 ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) AddNumber3(i int32) *DeviceUpsterStatisticsUpdateOne
AddNumber3 adds i to the "number3" field.
func (*DeviceUpsterStatisticsUpdateOne) AddNumberCycles ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) AddNumberCycles(i int32) *DeviceUpsterStatisticsUpdateOne
AddNumberCycles adds i to the "numberCycles" field.
func (*DeviceUpsterStatisticsUpdateOne) AddSort ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) AddSort(u int32) *DeviceUpsterStatisticsUpdateOne
AddSort adds u to the "sort" field.
func (*DeviceUpsterStatisticsUpdateOne) AddStatus ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) AddStatus(u int8) *DeviceUpsterStatisticsUpdateOne
AddStatus adds u to the "status" field.
func (*DeviceUpsterStatisticsUpdateOne) ClearDate ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) ClearDate() *DeviceUpsterStatisticsUpdateOne
ClearDate clears the value of the "date" field.
func (*DeviceUpsterStatisticsUpdateOne) ClearHours ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) ClearHours() *DeviceUpsterStatisticsUpdateOne
ClearHours clears the value of the "hours" field.
func (*DeviceUpsterStatisticsUpdateOne) ClearInitialize ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) ClearInitialize() *DeviceUpsterStatisticsUpdateOne
ClearInitialize clears the value of the "initialize" field.
func (*DeviceUpsterStatisticsUpdateOne) ClearNumber1 ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) ClearNumber1() *DeviceUpsterStatisticsUpdateOne
ClearNumber1 clears the value of the "number1" field.
func (*DeviceUpsterStatisticsUpdateOne) ClearNumber2 ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) ClearNumber2() *DeviceUpsterStatisticsUpdateOne
ClearNumber2 clears the value of the "number2" field.
func (*DeviceUpsterStatisticsUpdateOne) ClearNumber3 ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) ClearNumber3() *DeviceUpsterStatisticsUpdateOne
ClearNumber3 clears the value of the "number3" field.
func (*DeviceUpsterStatisticsUpdateOne) ClearNumberCycles ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) ClearNumberCycles() *DeviceUpsterStatisticsUpdateOne
ClearNumberCycles clears the value of the "numberCycles" field.
func (*DeviceUpsterStatisticsUpdateOne) ClearStatus ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) ClearStatus() *DeviceUpsterStatisticsUpdateOne
ClearStatus clears the value of the "status" field.
func (*DeviceUpsterStatisticsUpdateOne) ClearTimestamp ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) ClearTimestamp() *DeviceUpsterStatisticsUpdateOne
ClearTimestamp clears the value of the "timestamp" field.
func (*DeviceUpsterStatisticsUpdateOne) Exec ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*DeviceUpsterStatisticsUpdateOne) ExecContext ¶
func (c *DeviceUpsterStatisticsUpdateOne) 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 (*DeviceUpsterStatisticsUpdateOne) ExecX ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceUpsterStatisticsUpdateOne) Modify ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceUpsterStatisticsUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*DeviceUpsterStatisticsUpdateOne) Mutation ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) Mutation() *DeviceUpsterStatisticsMutation
Mutation returns the DeviceUpsterStatisticsMutation object of the builder.
func (*DeviceUpsterStatisticsUpdateOne) QueryContext ¶
func (c *DeviceUpsterStatisticsUpdateOne) 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 (*DeviceUpsterStatisticsUpdateOne) Save ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) Save(ctx context.Context) (*DeviceUpsterStatistics, error)
Save executes the query and returns the updated DeviceUpsterStatistics entity.
func (*DeviceUpsterStatisticsUpdateOne) SaveX ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) SaveX(ctx context.Context) *DeviceUpsterStatistics
SaveX is like Save, but panics if an error occurs.
func (*DeviceUpsterStatisticsUpdateOne) Select ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) Select(field string, fields ...string) *DeviceUpsterStatisticsUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*DeviceUpsterStatisticsUpdateOne) SetDate ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) SetDate(s string) *DeviceUpsterStatisticsUpdateOne
SetDate sets the "date" field.
func (*DeviceUpsterStatisticsUpdateOne) SetDeviceName ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) SetDeviceName(s string) *DeviceUpsterStatisticsUpdateOne
SetDeviceName sets the "deviceName" field.
func (*DeviceUpsterStatisticsUpdateOne) SetHours ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) SetHours(s string) *DeviceUpsterStatisticsUpdateOne
SetHours sets the "hours" field.
func (*DeviceUpsterStatisticsUpdateOne) SetInitialize ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) SetInitialize(b bool) *DeviceUpsterStatisticsUpdateOne
SetInitialize sets the "initialize" field.
func (*DeviceUpsterStatisticsUpdateOne) SetIotID ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) SetIotID(s string) *DeviceUpsterStatisticsUpdateOne
SetIotID sets the "iotID" field.
func (*DeviceUpsterStatisticsUpdateOne) SetNillableDate ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNillableDate(s *string) *DeviceUpsterStatisticsUpdateOne
SetNillableDate sets the "date" field if the given value is not nil.
func (*DeviceUpsterStatisticsUpdateOne) SetNillableDeviceName ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNillableDeviceName(s *string) *DeviceUpsterStatisticsUpdateOne
SetNillableDeviceName sets the "deviceName" field if the given value is not nil.
func (*DeviceUpsterStatisticsUpdateOne) SetNillableHours ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNillableHours(s *string) *DeviceUpsterStatisticsUpdateOne
SetNillableHours sets the "hours" field if the given value is not nil.
func (*DeviceUpsterStatisticsUpdateOne) SetNillableInitialize ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNillableInitialize(b *bool) *DeviceUpsterStatisticsUpdateOne
SetNillableInitialize sets the "initialize" field if the given value is not nil.
func (*DeviceUpsterStatisticsUpdateOne) SetNillableIotID ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNillableIotID(s *string) *DeviceUpsterStatisticsUpdateOne
SetNillableIotID sets the "iotID" field if the given value is not nil.
func (*DeviceUpsterStatisticsUpdateOne) SetNillableNumber1 ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNillableNumber1(i *int32) *DeviceUpsterStatisticsUpdateOne
SetNillableNumber1 sets the "number1" field if the given value is not nil.
func (*DeviceUpsterStatisticsUpdateOne) SetNillableNumber2 ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNillableNumber2(i *int32) *DeviceUpsterStatisticsUpdateOne
SetNillableNumber2 sets the "number2" field if the given value is not nil.
func (*DeviceUpsterStatisticsUpdateOne) SetNillableNumber3 ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNillableNumber3(i *int32) *DeviceUpsterStatisticsUpdateOne
SetNillableNumber3 sets the "number3" field if the given value is not nil.
func (*DeviceUpsterStatisticsUpdateOne) SetNillableNumberCycles ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNillableNumberCycles(i *int32) *DeviceUpsterStatisticsUpdateOne
SetNillableNumberCycles sets the "numberCycles" field if the given value is not nil.
func (*DeviceUpsterStatisticsUpdateOne) SetNillableProductKey ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNillableProductKey(s *string) *DeviceUpsterStatisticsUpdateOne
SetNillableProductKey sets the "productKey" field if the given value is not nil.
func (*DeviceUpsterStatisticsUpdateOne) SetNillableSort ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNillableSort(u *uint32) *DeviceUpsterStatisticsUpdateOne
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DeviceUpsterStatisticsUpdateOne) SetNillableStatus ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNillableStatus(u *uint8) *DeviceUpsterStatisticsUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DeviceUpsterStatisticsUpdateOne) SetNillableTimestamp ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNillableTimestamp(s *string) *DeviceUpsterStatisticsUpdateOne
SetNillableTimestamp sets the "timestamp" field if the given value is not nil.
func (*DeviceUpsterStatisticsUpdateOne) SetNotNilDate ¶
func (dus *DeviceUpsterStatisticsUpdateOne) SetNotNilDate(value *string) *DeviceUpsterStatisticsUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsUpdateOne) SetNotNilDeviceName ¶
func (dus *DeviceUpsterStatisticsUpdateOne) SetNotNilDeviceName(value *string) *DeviceUpsterStatisticsUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsUpdateOne) SetNotNilHours ¶
func (dus *DeviceUpsterStatisticsUpdateOne) SetNotNilHours(value *string) *DeviceUpsterStatisticsUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsUpdateOne) SetNotNilInitialize ¶
func (dus *DeviceUpsterStatisticsUpdateOne) SetNotNilInitialize(value *bool) *DeviceUpsterStatisticsUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsUpdateOne) SetNotNilIotID ¶
func (dus *DeviceUpsterStatisticsUpdateOne) SetNotNilIotID(value *string) *DeviceUpsterStatisticsUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsUpdateOne) SetNotNilNumber1 ¶
func (dus *DeviceUpsterStatisticsUpdateOne) SetNotNilNumber1(value *int32) *DeviceUpsterStatisticsUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsUpdateOne) SetNotNilNumber2 ¶
func (dus *DeviceUpsterStatisticsUpdateOne) SetNotNilNumber2(value *int32) *DeviceUpsterStatisticsUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsUpdateOne) SetNotNilNumber3 ¶
func (dus *DeviceUpsterStatisticsUpdateOne) SetNotNilNumber3(value *int32) *DeviceUpsterStatisticsUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsUpdateOne) SetNotNilNumberCycles ¶
func (dus *DeviceUpsterStatisticsUpdateOne) SetNotNilNumberCycles(value *int32) *DeviceUpsterStatisticsUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsUpdateOne) SetNotNilProductKey ¶
func (dus *DeviceUpsterStatisticsUpdateOne) SetNotNilProductKey(value *string) *DeviceUpsterStatisticsUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsUpdateOne) SetNotNilSort ¶
func (dus *DeviceUpsterStatisticsUpdateOne) SetNotNilSort(value *uint32) *DeviceUpsterStatisticsUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsUpdateOne) SetNotNilStatus ¶
func (dus *DeviceUpsterStatisticsUpdateOne) SetNotNilStatus(value *uint8) *DeviceUpsterStatisticsUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsUpdateOne) SetNotNilTimestamp ¶
func (dus *DeviceUpsterStatisticsUpdateOne) SetNotNilTimestamp(value *string) *DeviceUpsterStatisticsUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsUpdateOne) SetNotNilUpdatedAt ¶
func (dus *DeviceUpsterStatisticsUpdateOne) SetNotNilUpdatedAt(value *time.Time) *DeviceUpsterStatisticsUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpsterStatisticsUpdateOne) SetNumber1 ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNumber1(i int32) *DeviceUpsterStatisticsUpdateOne
SetNumber1 sets the "number1" field.
func (*DeviceUpsterStatisticsUpdateOne) SetNumber2 ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNumber2(i int32) *DeviceUpsterStatisticsUpdateOne
SetNumber2 sets the "number2" field.
func (*DeviceUpsterStatisticsUpdateOne) SetNumber3 ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNumber3(i int32) *DeviceUpsterStatisticsUpdateOne
SetNumber3 sets the "number3" field.
func (*DeviceUpsterStatisticsUpdateOne) SetNumberCycles ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) SetNumberCycles(i int32) *DeviceUpsterStatisticsUpdateOne
SetNumberCycles sets the "numberCycles" field.
func (*DeviceUpsterStatisticsUpdateOne) SetProductKey ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) SetProductKey(s string) *DeviceUpsterStatisticsUpdateOne
SetProductKey sets the "productKey" field.
func (*DeviceUpsterStatisticsUpdateOne) SetSort ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) SetSort(u uint32) *DeviceUpsterStatisticsUpdateOne
SetSort sets the "sort" field.
func (*DeviceUpsterStatisticsUpdateOne) SetStatus ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) SetStatus(u uint8) *DeviceUpsterStatisticsUpdateOne
SetStatus sets the "status" field.
func (*DeviceUpsterStatisticsUpdateOne) SetTimestamp ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) SetTimestamp(s string) *DeviceUpsterStatisticsUpdateOne
SetTimestamp sets the "timestamp" field.
func (*DeviceUpsterStatisticsUpdateOne) SetUpdatedAt ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) SetUpdatedAt(t time.Time) *DeviceUpsterStatisticsUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*DeviceUpsterStatisticsUpdateOne) Where ¶
func (dusuo *DeviceUpsterStatisticsUpdateOne) Where(ps ...predicate.DeviceUpsterStatistics) *DeviceUpsterStatisticsUpdateOne
Where appends a list predicates to the DeviceUpsterStatisticsUpdate builder.
type DeviceUpsterStatisticsUpsert ¶
DeviceUpsterStatisticsUpsert is the "OnConflict" setter.
func (*DeviceUpsterStatisticsUpsert) AddNumber1 ¶
func (u *DeviceUpsterStatisticsUpsert) AddNumber1(v int32) *DeviceUpsterStatisticsUpsert
AddNumber1 adds v to the "number1" field.
func (*DeviceUpsterStatisticsUpsert) AddNumber2 ¶
func (u *DeviceUpsterStatisticsUpsert) AddNumber2(v int32) *DeviceUpsterStatisticsUpsert
AddNumber2 adds v to the "number2" field.
func (*DeviceUpsterStatisticsUpsert) AddNumber3 ¶
func (u *DeviceUpsterStatisticsUpsert) AddNumber3(v int32) *DeviceUpsterStatisticsUpsert
AddNumber3 adds v to the "number3" field.
func (*DeviceUpsterStatisticsUpsert) AddNumberCycles ¶
func (u *DeviceUpsterStatisticsUpsert) AddNumberCycles(v int32) *DeviceUpsterStatisticsUpsert
AddNumberCycles adds v to the "numberCycles" field.
func (*DeviceUpsterStatisticsUpsert) AddSort ¶
func (u *DeviceUpsterStatisticsUpsert) AddSort(v uint32) *DeviceUpsterStatisticsUpsert
AddSort adds v to the "sort" field.
func (*DeviceUpsterStatisticsUpsert) AddStatus ¶
func (u *DeviceUpsterStatisticsUpsert) AddStatus(v uint8) *DeviceUpsterStatisticsUpsert
AddStatus adds v to the "status" field.
func (*DeviceUpsterStatisticsUpsert) ClearDate ¶
func (u *DeviceUpsterStatisticsUpsert) ClearDate() *DeviceUpsterStatisticsUpsert
ClearDate clears the value of the "date" field.
func (*DeviceUpsterStatisticsUpsert) ClearHours ¶
func (u *DeviceUpsterStatisticsUpsert) ClearHours() *DeviceUpsterStatisticsUpsert
ClearHours clears the value of the "hours" field.
func (*DeviceUpsterStatisticsUpsert) ClearInitialize ¶
func (u *DeviceUpsterStatisticsUpsert) ClearInitialize() *DeviceUpsterStatisticsUpsert
ClearInitialize clears the value of the "initialize" field.
func (*DeviceUpsterStatisticsUpsert) ClearNumber1 ¶
func (u *DeviceUpsterStatisticsUpsert) ClearNumber1() *DeviceUpsterStatisticsUpsert
ClearNumber1 clears the value of the "number1" field.
func (*DeviceUpsterStatisticsUpsert) ClearNumber2 ¶
func (u *DeviceUpsterStatisticsUpsert) ClearNumber2() *DeviceUpsterStatisticsUpsert
ClearNumber2 clears the value of the "number2" field.
func (*DeviceUpsterStatisticsUpsert) ClearNumber3 ¶
func (u *DeviceUpsterStatisticsUpsert) ClearNumber3() *DeviceUpsterStatisticsUpsert
ClearNumber3 clears the value of the "number3" field.
func (*DeviceUpsterStatisticsUpsert) ClearNumberCycles ¶
func (u *DeviceUpsterStatisticsUpsert) ClearNumberCycles() *DeviceUpsterStatisticsUpsert
ClearNumberCycles clears the value of the "numberCycles" field.
func (*DeviceUpsterStatisticsUpsert) ClearStatus ¶
func (u *DeviceUpsterStatisticsUpsert) ClearStatus() *DeviceUpsterStatisticsUpsert
ClearStatus clears the value of the "status" field.
func (*DeviceUpsterStatisticsUpsert) ClearTimestamp ¶
func (u *DeviceUpsterStatisticsUpsert) ClearTimestamp() *DeviceUpsterStatisticsUpsert
ClearTimestamp clears the value of the "timestamp" field.
func (*DeviceUpsterStatisticsUpsert) SetDate ¶
func (u *DeviceUpsterStatisticsUpsert) SetDate(v string) *DeviceUpsterStatisticsUpsert
SetDate sets the "date" field.
func (*DeviceUpsterStatisticsUpsert) SetDeviceName ¶
func (u *DeviceUpsterStatisticsUpsert) SetDeviceName(v string) *DeviceUpsterStatisticsUpsert
SetDeviceName sets the "deviceName" field.
func (*DeviceUpsterStatisticsUpsert) SetHours ¶
func (u *DeviceUpsterStatisticsUpsert) SetHours(v string) *DeviceUpsterStatisticsUpsert
SetHours sets the "hours" field.
func (*DeviceUpsterStatisticsUpsert) SetInitialize ¶
func (u *DeviceUpsterStatisticsUpsert) SetInitialize(v bool) *DeviceUpsterStatisticsUpsert
SetInitialize sets the "initialize" field.
func (*DeviceUpsterStatisticsUpsert) SetIotID ¶
func (u *DeviceUpsterStatisticsUpsert) SetIotID(v string) *DeviceUpsterStatisticsUpsert
SetIotID sets the "iotID" field.
func (*DeviceUpsterStatisticsUpsert) SetNumber1 ¶
func (u *DeviceUpsterStatisticsUpsert) SetNumber1(v int32) *DeviceUpsterStatisticsUpsert
SetNumber1 sets the "number1" field.
func (*DeviceUpsterStatisticsUpsert) SetNumber2 ¶
func (u *DeviceUpsterStatisticsUpsert) SetNumber2(v int32) *DeviceUpsterStatisticsUpsert
SetNumber2 sets the "number2" field.
func (*DeviceUpsterStatisticsUpsert) SetNumber3 ¶
func (u *DeviceUpsterStatisticsUpsert) SetNumber3(v int32) *DeviceUpsterStatisticsUpsert
SetNumber3 sets the "number3" field.
func (*DeviceUpsterStatisticsUpsert) SetNumberCycles ¶
func (u *DeviceUpsterStatisticsUpsert) SetNumberCycles(v int32) *DeviceUpsterStatisticsUpsert
SetNumberCycles sets the "numberCycles" field.
func (*DeviceUpsterStatisticsUpsert) SetProductKey ¶
func (u *DeviceUpsterStatisticsUpsert) SetProductKey(v string) *DeviceUpsterStatisticsUpsert
SetProductKey sets the "productKey" field.
func (*DeviceUpsterStatisticsUpsert) SetSort ¶
func (u *DeviceUpsterStatisticsUpsert) SetSort(v uint32) *DeviceUpsterStatisticsUpsert
SetSort sets the "sort" field.
func (*DeviceUpsterStatisticsUpsert) SetStatus ¶
func (u *DeviceUpsterStatisticsUpsert) SetStatus(v uint8) *DeviceUpsterStatisticsUpsert
SetStatus sets the "status" field.
func (*DeviceUpsterStatisticsUpsert) SetTimestamp ¶
func (u *DeviceUpsterStatisticsUpsert) SetTimestamp(v string) *DeviceUpsterStatisticsUpsert
SetTimestamp sets the "timestamp" field.
func (*DeviceUpsterStatisticsUpsert) SetUpdatedAt ¶
func (u *DeviceUpsterStatisticsUpsert) SetUpdatedAt(v time.Time) *DeviceUpsterStatisticsUpsert
SetUpdatedAt sets the "updated_at" field.
func (*DeviceUpsterStatisticsUpsert) UpdateDate ¶
func (u *DeviceUpsterStatisticsUpsert) UpdateDate() *DeviceUpsterStatisticsUpsert
UpdateDate sets the "date" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsert) UpdateDeviceName ¶
func (u *DeviceUpsterStatisticsUpsert) UpdateDeviceName() *DeviceUpsterStatisticsUpsert
UpdateDeviceName sets the "deviceName" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsert) UpdateHours ¶
func (u *DeviceUpsterStatisticsUpsert) UpdateHours() *DeviceUpsterStatisticsUpsert
UpdateHours sets the "hours" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsert) UpdateInitialize ¶
func (u *DeviceUpsterStatisticsUpsert) UpdateInitialize() *DeviceUpsterStatisticsUpsert
UpdateInitialize sets the "initialize" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsert) UpdateIotID ¶
func (u *DeviceUpsterStatisticsUpsert) UpdateIotID() *DeviceUpsterStatisticsUpsert
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsert) UpdateNumber1 ¶
func (u *DeviceUpsterStatisticsUpsert) UpdateNumber1() *DeviceUpsterStatisticsUpsert
UpdateNumber1 sets the "number1" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsert) UpdateNumber2 ¶
func (u *DeviceUpsterStatisticsUpsert) UpdateNumber2() *DeviceUpsterStatisticsUpsert
UpdateNumber2 sets the "number2" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsert) UpdateNumber3 ¶
func (u *DeviceUpsterStatisticsUpsert) UpdateNumber3() *DeviceUpsterStatisticsUpsert
UpdateNumber3 sets the "number3" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsert) UpdateNumberCycles ¶
func (u *DeviceUpsterStatisticsUpsert) UpdateNumberCycles() *DeviceUpsterStatisticsUpsert
UpdateNumberCycles sets the "numberCycles" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsert) UpdateProductKey ¶
func (u *DeviceUpsterStatisticsUpsert) UpdateProductKey() *DeviceUpsterStatisticsUpsert
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsert) UpdateSort ¶
func (u *DeviceUpsterStatisticsUpsert) UpdateSort() *DeviceUpsterStatisticsUpsert
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsert) UpdateStatus ¶
func (u *DeviceUpsterStatisticsUpsert) UpdateStatus() *DeviceUpsterStatisticsUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsert) UpdateTimestamp ¶
func (u *DeviceUpsterStatisticsUpsert) UpdateTimestamp() *DeviceUpsterStatisticsUpsert
UpdateTimestamp sets the "timestamp" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsert) UpdateUpdatedAt ¶
func (u *DeviceUpsterStatisticsUpsert) UpdateUpdatedAt() *DeviceUpsterStatisticsUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type DeviceUpsterStatisticsUpsertBulk ¶
type DeviceUpsterStatisticsUpsertBulk struct {
// contains filtered or unexported fields
}
DeviceUpsterStatisticsUpsertBulk is the builder for "upsert"-ing a bulk of DeviceUpsterStatistics nodes.
func (*DeviceUpsterStatisticsUpsertBulk) AddNumber1 ¶
func (u *DeviceUpsterStatisticsUpsertBulk) AddNumber1(v int32) *DeviceUpsterStatisticsUpsertBulk
AddNumber1 adds v to the "number1" field.
func (*DeviceUpsterStatisticsUpsertBulk) AddNumber2 ¶
func (u *DeviceUpsterStatisticsUpsertBulk) AddNumber2(v int32) *DeviceUpsterStatisticsUpsertBulk
AddNumber2 adds v to the "number2" field.
func (*DeviceUpsterStatisticsUpsertBulk) AddNumber3 ¶
func (u *DeviceUpsterStatisticsUpsertBulk) AddNumber3(v int32) *DeviceUpsterStatisticsUpsertBulk
AddNumber3 adds v to the "number3" field.
func (*DeviceUpsterStatisticsUpsertBulk) AddNumberCycles ¶
func (u *DeviceUpsterStatisticsUpsertBulk) AddNumberCycles(v int32) *DeviceUpsterStatisticsUpsertBulk
AddNumberCycles adds v to the "numberCycles" field.
func (*DeviceUpsterStatisticsUpsertBulk) AddSort ¶
func (u *DeviceUpsterStatisticsUpsertBulk) AddSort(v uint32) *DeviceUpsterStatisticsUpsertBulk
AddSort adds v to the "sort" field.
func (*DeviceUpsterStatisticsUpsertBulk) AddStatus ¶
func (u *DeviceUpsterStatisticsUpsertBulk) AddStatus(v uint8) *DeviceUpsterStatisticsUpsertBulk
AddStatus adds v to the "status" field.
func (*DeviceUpsterStatisticsUpsertBulk) ClearDate ¶
func (u *DeviceUpsterStatisticsUpsertBulk) ClearDate() *DeviceUpsterStatisticsUpsertBulk
ClearDate clears the value of the "date" field.
func (*DeviceUpsterStatisticsUpsertBulk) ClearHours ¶
func (u *DeviceUpsterStatisticsUpsertBulk) ClearHours() *DeviceUpsterStatisticsUpsertBulk
ClearHours clears the value of the "hours" field.
func (*DeviceUpsterStatisticsUpsertBulk) ClearInitialize ¶
func (u *DeviceUpsterStatisticsUpsertBulk) ClearInitialize() *DeviceUpsterStatisticsUpsertBulk
ClearInitialize clears the value of the "initialize" field.
func (*DeviceUpsterStatisticsUpsertBulk) ClearNumber1 ¶
func (u *DeviceUpsterStatisticsUpsertBulk) ClearNumber1() *DeviceUpsterStatisticsUpsertBulk
ClearNumber1 clears the value of the "number1" field.
func (*DeviceUpsterStatisticsUpsertBulk) ClearNumber2 ¶
func (u *DeviceUpsterStatisticsUpsertBulk) ClearNumber2() *DeviceUpsterStatisticsUpsertBulk
ClearNumber2 clears the value of the "number2" field.
func (*DeviceUpsterStatisticsUpsertBulk) ClearNumber3 ¶
func (u *DeviceUpsterStatisticsUpsertBulk) ClearNumber3() *DeviceUpsterStatisticsUpsertBulk
ClearNumber3 clears the value of the "number3" field.
func (*DeviceUpsterStatisticsUpsertBulk) ClearNumberCycles ¶
func (u *DeviceUpsterStatisticsUpsertBulk) ClearNumberCycles() *DeviceUpsterStatisticsUpsertBulk
ClearNumberCycles clears the value of the "numberCycles" field.
func (*DeviceUpsterStatisticsUpsertBulk) ClearStatus ¶
func (u *DeviceUpsterStatisticsUpsertBulk) ClearStatus() *DeviceUpsterStatisticsUpsertBulk
ClearStatus clears the value of the "status" field.
func (*DeviceUpsterStatisticsUpsertBulk) ClearTimestamp ¶
func (u *DeviceUpsterStatisticsUpsertBulk) ClearTimestamp() *DeviceUpsterStatisticsUpsertBulk
ClearTimestamp clears the value of the "timestamp" field.
func (*DeviceUpsterStatisticsUpsertBulk) DoNothing ¶
func (u *DeviceUpsterStatisticsUpsertBulk) DoNothing() *DeviceUpsterStatisticsUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*DeviceUpsterStatisticsUpsertBulk) Exec ¶
func (u *DeviceUpsterStatisticsUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceUpsterStatisticsUpsertBulk) ExecX ¶
func (u *DeviceUpsterStatisticsUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceUpsterStatisticsUpsertBulk) Ignore ¶
func (u *DeviceUpsterStatisticsUpsertBulk) Ignore() *DeviceUpsterStatisticsUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.DeviceUpsterStatistics.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*DeviceUpsterStatisticsUpsertBulk) SetDate ¶
func (u *DeviceUpsterStatisticsUpsertBulk) SetDate(v string) *DeviceUpsterStatisticsUpsertBulk
SetDate sets the "date" field.
func (*DeviceUpsterStatisticsUpsertBulk) SetDeviceName ¶
func (u *DeviceUpsterStatisticsUpsertBulk) SetDeviceName(v string) *DeviceUpsterStatisticsUpsertBulk
SetDeviceName sets the "deviceName" field.
func (*DeviceUpsterStatisticsUpsertBulk) SetHours ¶
func (u *DeviceUpsterStatisticsUpsertBulk) SetHours(v string) *DeviceUpsterStatisticsUpsertBulk
SetHours sets the "hours" field.
func (*DeviceUpsterStatisticsUpsertBulk) SetInitialize ¶
func (u *DeviceUpsterStatisticsUpsertBulk) SetInitialize(v bool) *DeviceUpsterStatisticsUpsertBulk
SetInitialize sets the "initialize" field.
func (*DeviceUpsterStatisticsUpsertBulk) SetIotID ¶
func (u *DeviceUpsterStatisticsUpsertBulk) SetIotID(v string) *DeviceUpsterStatisticsUpsertBulk
SetIotID sets the "iotID" field.
func (*DeviceUpsterStatisticsUpsertBulk) SetNumber1 ¶
func (u *DeviceUpsterStatisticsUpsertBulk) SetNumber1(v int32) *DeviceUpsterStatisticsUpsertBulk
SetNumber1 sets the "number1" field.
func (*DeviceUpsterStatisticsUpsertBulk) SetNumber2 ¶
func (u *DeviceUpsterStatisticsUpsertBulk) SetNumber2(v int32) *DeviceUpsterStatisticsUpsertBulk
SetNumber2 sets the "number2" field.
func (*DeviceUpsterStatisticsUpsertBulk) SetNumber3 ¶
func (u *DeviceUpsterStatisticsUpsertBulk) SetNumber3(v int32) *DeviceUpsterStatisticsUpsertBulk
SetNumber3 sets the "number3" field.
func (*DeviceUpsterStatisticsUpsertBulk) SetNumberCycles ¶
func (u *DeviceUpsterStatisticsUpsertBulk) SetNumberCycles(v int32) *DeviceUpsterStatisticsUpsertBulk
SetNumberCycles sets the "numberCycles" field.
func (*DeviceUpsterStatisticsUpsertBulk) SetProductKey ¶
func (u *DeviceUpsterStatisticsUpsertBulk) SetProductKey(v string) *DeviceUpsterStatisticsUpsertBulk
SetProductKey sets the "productKey" field.
func (*DeviceUpsterStatisticsUpsertBulk) SetSort ¶
func (u *DeviceUpsterStatisticsUpsertBulk) SetSort(v uint32) *DeviceUpsterStatisticsUpsertBulk
SetSort sets the "sort" field.
func (*DeviceUpsterStatisticsUpsertBulk) SetStatus ¶
func (u *DeviceUpsterStatisticsUpsertBulk) SetStatus(v uint8) *DeviceUpsterStatisticsUpsertBulk
SetStatus sets the "status" field.
func (*DeviceUpsterStatisticsUpsertBulk) SetTimestamp ¶
func (u *DeviceUpsterStatisticsUpsertBulk) SetTimestamp(v string) *DeviceUpsterStatisticsUpsertBulk
SetTimestamp sets the "timestamp" field.
func (*DeviceUpsterStatisticsUpsertBulk) SetUpdatedAt ¶
func (u *DeviceUpsterStatisticsUpsertBulk) SetUpdatedAt(v time.Time) *DeviceUpsterStatisticsUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*DeviceUpsterStatisticsUpsertBulk) Update ¶
func (u *DeviceUpsterStatisticsUpsertBulk) Update(set func(*DeviceUpsterStatisticsUpsert)) *DeviceUpsterStatisticsUpsertBulk
Update allows overriding fields `UPDATE` values. See the DeviceUpsterStatisticsCreateBulk.OnConflict documentation for more info.
func (*DeviceUpsterStatisticsUpsertBulk) UpdateDate ¶
func (u *DeviceUpsterStatisticsUpsertBulk) UpdateDate() *DeviceUpsterStatisticsUpsertBulk
UpdateDate sets the "date" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsertBulk) UpdateDeviceName ¶
func (u *DeviceUpsterStatisticsUpsertBulk) UpdateDeviceName() *DeviceUpsterStatisticsUpsertBulk
UpdateDeviceName sets the "deviceName" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsertBulk) UpdateHours ¶
func (u *DeviceUpsterStatisticsUpsertBulk) UpdateHours() *DeviceUpsterStatisticsUpsertBulk
UpdateHours sets the "hours" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsertBulk) UpdateInitialize ¶
func (u *DeviceUpsterStatisticsUpsertBulk) UpdateInitialize() *DeviceUpsterStatisticsUpsertBulk
UpdateInitialize sets the "initialize" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsertBulk) UpdateIotID ¶
func (u *DeviceUpsterStatisticsUpsertBulk) UpdateIotID() *DeviceUpsterStatisticsUpsertBulk
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsertBulk) UpdateNewValues ¶
func (u *DeviceUpsterStatisticsUpsertBulk) UpdateNewValues() *DeviceUpsterStatisticsUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.DeviceUpsterStatistics.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(deviceupsterstatistics.FieldID) }), ). Exec(ctx)
func (*DeviceUpsterStatisticsUpsertBulk) UpdateNumber1 ¶
func (u *DeviceUpsterStatisticsUpsertBulk) UpdateNumber1() *DeviceUpsterStatisticsUpsertBulk
UpdateNumber1 sets the "number1" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsertBulk) UpdateNumber2 ¶
func (u *DeviceUpsterStatisticsUpsertBulk) UpdateNumber2() *DeviceUpsterStatisticsUpsertBulk
UpdateNumber2 sets the "number2" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsertBulk) UpdateNumber3 ¶
func (u *DeviceUpsterStatisticsUpsertBulk) UpdateNumber3() *DeviceUpsterStatisticsUpsertBulk
UpdateNumber3 sets the "number3" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsertBulk) UpdateNumberCycles ¶
func (u *DeviceUpsterStatisticsUpsertBulk) UpdateNumberCycles() *DeviceUpsterStatisticsUpsertBulk
UpdateNumberCycles sets the "numberCycles" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsertBulk) UpdateProductKey ¶
func (u *DeviceUpsterStatisticsUpsertBulk) UpdateProductKey() *DeviceUpsterStatisticsUpsertBulk
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsertBulk) UpdateSort ¶
func (u *DeviceUpsterStatisticsUpsertBulk) UpdateSort() *DeviceUpsterStatisticsUpsertBulk
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsertBulk) UpdateStatus ¶
func (u *DeviceUpsterStatisticsUpsertBulk) UpdateStatus() *DeviceUpsterStatisticsUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsertBulk) UpdateTimestamp ¶
func (u *DeviceUpsterStatisticsUpsertBulk) UpdateTimestamp() *DeviceUpsterStatisticsUpsertBulk
UpdateTimestamp sets the "timestamp" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsertBulk) UpdateUpdatedAt ¶
func (u *DeviceUpsterStatisticsUpsertBulk) UpdateUpdatedAt() *DeviceUpsterStatisticsUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type DeviceUpsterStatisticsUpsertOne ¶
type DeviceUpsterStatisticsUpsertOne struct {
// contains filtered or unexported fields
}
DeviceUpsterStatisticsUpsertOne is the builder for "upsert"-ing
one DeviceUpsterStatistics node.
func (*DeviceUpsterStatisticsUpsertOne) AddNumber1 ¶
func (u *DeviceUpsterStatisticsUpsertOne) AddNumber1(v int32) *DeviceUpsterStatisticsUpsertOne
AddNumber1 adds v to the "number1" field.
func (*DeviceUpsterStatisticsUpsertOne) AddNumber2 ¶
func (u *DeviceUpsterStatisticsUpsertOne) AddNumber2(v int32) *DeviceUpsterStatisticsUpsertOne
AddNumber2 adds v to the "number2" field.
func (*DeviceUpsterStatisticsUpsertOne) AddNumber3 ¶
func (u *DeviceUpsterStatisticsUpsertOne) AddNumber3(v int32) *DeviceUpsterStatisticsUpsertOne
AddNumber3 adds v to the "number3" field.
func (*DeviceUpsterStatisticsUpsertOne) AddNumberCycles ¶
func (u *DeviceUpsterStatisticsUpsertOne) AddNumberCycles(v int32) *DeviceUpsterStatisticsUpsertOne
AddNumberCycles adds v to the "numberCycles" field.
func (*DeviceUpsterStatisticsUpsertOne) AddSort ¶
func (u *DeviceUpsterStatisticsUpsertOne) AddSort(v uint32) *DeviceUpsterStatisticsUpsertOne
AddSort adds v to the "sort" field.
func (*DeviceUpsterStatisticsUpsertOne) AddStatus ¶
func (u *DeviceUpsterStatisticsUpsertOne) AddStatus(v uint8) *DeviceUpsterStatisticsUpsertOne
AddStatus adds v to the "status" field.
func (*DeviceUpsterStatisticsUpsertOne) ClearDate ¶
func (u *DeviceUpsterStatisticsUpsertOne) ClearDate() *DeviceUpsterStatisticsUpsertOne
ClearDate clears the value of the "date" field.
func (*DeviceUpsterStatisticsUpsertOne) ClearHours ¶
func (u *DeviceUpsterStatisticsUpsertOne) ClearHours() *DeviceUpsterStatisticsUpsertOne
ClearHours clears the value of the "hours" field.
func (*DeviceUpsterStatisticsUpsertOne) ClearInitialize ¶
func (u *DeviceUpsterStatisticsUpsertOne) ClearInitialize() *DeviceUpsterStatisticsUpsertOne
ClearInitialize clears the value of the "initialize" field.
func (*DeviceUpsterStatisticsUpsertOne) ClearNumber1 ¶
func (u *DeviceUpsterStatisticsUpsertOne) ClearNumber1() *DeviceUpsterStatisticsUpsertOne
ClearNumber1 clears the value of the "number1" field.
func (*DeviceUpsterStatisticsUpsertOne) ClearNumber2 ¶
func (u *DeviceUpsterStatisticsUpsertOne) ClearNumber2() *DeviceUpsterStatisticsUpsertOne
ClearNumber2 clears the value of the "number2" field.
func (*DeviceUpsterStatisticsUpsertOne) ClearNumber3 ¶
func (u *DeviceUpsterStatisticsUpsertOne) ClearNumber3() *DeviceUpsterStatisticsUpsertOne
ClearNumber3 clears the value of the "number3" field.
func (*DeviceUpsterStatisticsUpsertOne) ClearNumberCycles ¶
func (u *DeviceUpsterStatisticsUpsertOne) ClearNumberCycles() *DeviceUpsterStatisticsUpsertOne
ClearNumberCycles clears the value of the "numberCycles" field.
func (*DeviceUpsterStatisticsUpsertOne) ClearStatus ¶
func (u *DeviceUpsterStatisticsUpsertOne) ClearStatus() *DeviceUpsterStatisticsUpsertOne
ClearStatus clears the value of the "status" field.
func (*DeviceUpsterStatisticsUpsertOne) ClearTimestamp ¶
func (u *DeviceUpsterStatisticsUpsertOne) ClearTimestamp() *DeviceUpsterStatisticsUpsertOne
ClearTimestamp clears the value of the "timestamp" field.
func (*DeviceUpsterStatisticsUpsertOne) DoNothing ¶
func (u *DeviceUpsterStatisticsUpsertOne) DoNothing() *DeviceUpsterStatisticsUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*DeviceUpsterStatisticsUpsertOne) Exec ¶
func (u *DeviceUpsterStatisticsUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceUpsterStatisticsUpsertOne) ExecX ¶
func (u *DeviceUpsterStatisticsUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceUpsterStatisticsUpsertOne) ID ¶
func (u *DeviceUpsterStatisticsUpsertOne) ID(ctx context.Context) (id uint64, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*DeviceUpsterStatisticsUpsertOne) IDX ¶
func (u *DeviceUpsterStatisticsUpsertOne) IDX(ctx context.Context) uint64
IDX is like ID, but panics if an error occurs.
func (*DeviceUpsterStatisticsUpsertOne) Ignore ¶
func (u *DeviceUpsterStatisticsUpsertOne) Ignore() *DeviceUpsterStatisticsUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.DeviceUpsterStatistics.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*DeviceUpsterStatisticsUpsertOne) SetDate ¶
func (u *DeviceUpsterStatisticsUpsertOne) SetDate(v string) *DeviceUpsterStatisticsUpsertOne
SetDate sets the "date" field.
func (*DeviceUpsterStatisticsUpsertOne) SetDeviceName ¶
func (u *DeviceUpsterStatisticsUpsertOne) SetDeviceName(v string) *DeviceUpsterStatisticsUpsertOne
SetDeviceName sets the "deviceName" field.
func (*DeviceUpsterStatisticsUpsertOne) SetHours ¶
func (u *DeviceUpsterStatisticsUpsertOne) SetHours(v string) *DeviceUpsterStatisticsUpsertOne
SetHours sets the "hours" field.
func (*DeviceUpsterStatisticsUpsertOne) SetInitialize ¶
func (u *DeviceUpsterStatisticsUpsertOne) SetInitialize(v bool) *DeviceUpsterStatisticsUpsertOne
SetInitialize sets the "initialize" field.
func (*DeviceUpsterStatisticsUpsertOne) SetIotID ¶
func (u *DeviceUpsterStatisticsUpsertOne) SetIotID(v string) *DeviceUpsterStatisticsUpsertOne
SetIotID sets the "iotID" field.
func (*DeviceUpsterStatisticsUpsertOne) SetNumber1 ¶
func (u *DeviceUpsterStatisticsUpsertOne) SetNumber1(v int32) *DeviceUpsterStatisticsUpsertOne
SetNumber1 sets the "number1" field.
func (*DeviceUpsterStatisticsUpsertOne) SetNumber2 ¶
func (u *DeviceUpsterStatisticsUpsertOne) SetNumber2(v int32) *DeviceUpsterStatisticsUpsertOne
SetNumber2 sets the "number2" field.
func (*DeviceUpsterStatisticsUpsertOne) SetNumber3 ¶
func (u *DeviceUpsterStatisticsUpsertOne) SetNumber3(v int32) *DeviceUpsterStatisticsUpsertOne
SetNumber3 sets the "number3" field.
func (*DeviceUpsterStatisticsUpsertOne) SetNumberCycles ¶
func (u *DeviceUpsterStatisticsUpsertOne) SetNumberCycles(v int32) *DeviceUpsterStatisticsUpsertOne
SetNumberCycles sets the "numberCycles" field.
func (*DeviceUpsterStatisticsUpsertOne) SetProductKey ¶
func (u *DeviceUpsterStatisticsUpsertOne) SetProductKey(v string) *DeviceUpsterStatisticsUpsertOne
SetProductKey sets the "productKey" field.
func (*DeviceUpsterStatisticsUpsertOne) SetSort ¶
func (u *DeviceUpsterStatisticsUpsertOne) SetSort(v uint32) *DeviceUpsterStatisticsUpsertOne
SetSort sets the "sort" field.
func (*DeviceUpsterStatisticsUpsertOne) SetStatus ¶
func (u *DeviceUpsterStatisticsUpsertOne) SetStatus(v uint8) *DeviceUpsterStatisticsUpsertOne
SetStatus sets the "status" field.
func (*DeviceUpsterStatisticsUpsertOne) SetTimestamp ¶
func (u *DeviceUpsterStatisticsUpsertOne) SetTimestamp(v string) *DeviceUpsterStatisticsUpsertOne
SetTimestamp sets the "timestamp" field.
func (*DeviceUpsterStatisticsUpsertOne) SetUpdatedAt ¶
func (u *DeviceUpsterStatisticsUpsertOne) SetUpdatedAt(v time.Time) *DeviceUpsterStatisticsUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*DeviceUpsterStatisticsUpsertOne) Update ¶
func (u *DeviceUpsterStatisticsUpsertOne) Update(set func(*DeviceUpsterStatisticsUpsert)) *DeviceUpsterStatisticsUpsertOne
Update allows overriding fields `UPDATE` values. See the DeviceUpsterStatisticsCreate.OnConflict documentation for more info.
func (*DeviceUpsterStatisticsUpsertOne) UpdateDate ¶
func (u *DeviceUpsterStatisticsUpsertOne) UpdateDate() *DeviceUpsterStatisticsUpsertOne
UpdateDate sets the "date" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsertOne) UpdateDeviceName ¶
func (u *DeviceUpsterStatisticsUpsertOne) UpdateDeviceName() *DeviceUpsterStatisticsUpsertOne
UpdateDeviceName sets the "deviceName" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsertOne) UpdateHours ¶
func (u *DeviceUpsterStatisticsUpsertOne) UpdateHours() *DeviceUpsterStatisticsUpsertOne
UpdateHours sets the "hours" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsertOne) UpdateInitialize ¶
func (u *DeviceUpsterStatisticsUpsertOne) UpdateInitialize() *DeviceUpsterStatisticsUpsertOne
UpdateInitialize sets the "initialize" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsertOne) UpdateIotID ¶
func (u *DeviceUpsterStatisticsUpsertOne) UpdateIotID() *DeviceUpsterStatisticsUpsertOne
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsertOne) UpdateNewValues ¶
func (u *DeviceUpsterStatisticsUpsertOne) UpdateNewValues() *DeviceUpsterStatisticsUpsertOne
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.DeviceUpsterStatistics.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(deviceupsterstatistics.FieldID) }), ). Exec(ctx)
func (*DeviceUpsterStatisticsUpsertOne) UpdateNumber1 ¶
func (u *DeviceUpsterStatisticsUpsertOne) UpdateNumber1() *DeviceUpsterStatisticsUpsertOne
UpdateNumber1 sets the "number1" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsertOne) UpdateNumber2 ¶
func (u *DeviceUpsterStatisticsUpsertOne) UpdateNumber2() *DeviceUpsterStatisticsUpsertOne
UpdateNumber2 sets the "number2" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsertOne) UpdateNumber3 ¶
func (u *DeviceUpsterStatisticsUpsertOne) UpdateNumber3() *DeviceUpsterStatisticsUpsertOne
UpdateNumber3 sets the "number3" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsertOne) UpdateNumberCycles ¶
func (u *DeviceUpsterStatisticsUpsertOne) UpdateNumberCycles() *DeviceUpsterStatisticsUpsertOne
UpdateNumberCycles sets the "numberCycles" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsertOne) UpdateProductKey ¶
func (u *DeviceUpsterStatisticsUpsertOne) UpdateProductKey() *DeviceUpsterStatisticsUpsertOne
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsertOne) UpdateSort ¶
func (u *DeviceUpsterStatisticsUpsertOne) UpdateSort() *DeviceUpsterStatisticsUpsertOne
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsertOne) UpdateStatus ¶
func (u *DeviceUpsterStatisticsUpsertOne) UpdateStatus() *DeviceUpsterStatisticsUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsertOne) UpdateTimestamp ¶
func (u *DeviceUpsterStatisticsUpsertOne) UpdateTimestamp() *DeviceUpsterStatisticsUpsertOne
UpdateTimestamp sets the "timestamp" field to the value that was provided on create.
func (*DeviceUpsterStatisticsUpsertOne) UpdateUpdatedAt ¶
func (u *DeviceUpsterStatisticsUpsertOne) UpdateUpdatedAt() *DeviceUpsterStatisticsUpsertOne
UpdateUpdatedAt sets the "updated_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 OrderDirection ¶
type OrderDirection string
OrderDirection defines the directions in which to order a list of items.
const ( // OrderDirectionAsc specifies an ascending order. OrderDirectionAsc OrderDirection = "ASC" // OrderDirectionDesc specifies a descending order. OrderDirectionDesc OrderDirection = "DESC" )
func (OrderDirection) String ¶
func (o OrderDirection) String() string
String implements fmt.Stringer interface.
func (OrderDirection) Validate ¶
func (o OrderDirection) Validate() error
Validate the order direction value.
type OrderFunc ¶
OrderFunc applies an ordering on the sql selector. Deprecated: Use Asc/Desc functions or the package builders instead.
type PageDetails ¶
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 { // DeviceDuration is the client for interacting with the DeviceDuration builders. DeviceDuration *DeviceDurationClient // DeviceDurationElephant is the client for interacting with the DeviceDurationElephant builders. DeviceDurationElephant *DeviceDurationElephantClient // DeviceEvent is the client for interacting with the DeviceEvent builders. DeviceEvent *DeviceEventClient // DeviceKpi is the client for interacting with the DeviceKpi builders. DeviceKpi *DeviceKpiClient // DeviceOfflineTime is the client for interacting with the DeviceOfflineTime builders. DeviceOfflineTime *DeviceOfflineTimeClient // DeviceOnTimeDaily is the client for interacting with the DeviceOnTimeDaily builders. DeviceOnTimeDaily *DeviceOnTimeDailyClient // DeviceOnlineTime is the client for interacting with the DeviceOnlineTime builders. DeviceOnlineTime *DeviceOnlineTimeClient // DeviceUpsterCycle is the client for interacting with the DeviceUpsterCycle builders. DeviceUpsterCycle *DeviceUpsterCycleClient // DeviceUpsterStatistics is the client for interacting with the DeviceUpsterStatistics builders. DeviceUpsterStatistics *DeviceUpsterStatisticsClient // contains filtered or unexported fields }
Tx is a transactional client that is created by calling Client.Tx().
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 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 ¶
- client.go
- deviceduration.go
- deviceduration_create.go
- deviceduration_delete.go
- deviceduration_query.go
- deviceduration_update.go
- devicedurationelephant.go
- devicedurationelephant_create.go
- devicedurationelephant_delete.go
- devicedurationelephant_query.go
- devicedurationelephant_update.go
- deviceevent.go
- deviceevent_create.go
- deviceevent_delete.go
- deviceevent_query.go
- deviceevent_update.go
- devicekpi.go
- devicekpi_create.go
- devicekpi_delete.go
- devicekpi_query.go
- devicekpi_update.go
- deviceofflinetime.go
- deviceofflinetime_create.go
- deviceofflinetime_delete.go
- deviceofflinetime_query.go
- deviceofflinetime_update.go
- deviceonlinetime.go
- deviceonlinetime_create.go
- deviceonlinetime_delete.go
- deviceonlinetime_query.go
- deviceonlinetime_update.go
- deviceontimedaily.go
- deviceontimedaily_create.go
- deviceontimedaily_delete.go
- deviceontimedaily_query.go
- deviceontimedaily_update.go
- deviceupstercycle.go
- deviceupstercycle_create.go
- deviceupstercycle_delete.go
- deviceupstercycle_query.go
- deviceupstercycle_update.go
- deviceupsterstatistics.go
- deviceupsterstatistics_create.go
- deviceupsterstatistics_delete.go
- deviceupsterstatistics_query.go
- deviceupsterstatistics_update.go
- ent.go
- generate.go
- mutation.go
- pagination.go
- runtime.go
- set_not_nil.go
- tx.go