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 Companies
- type Company
- func (c *Company) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *Company) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *Company) QueryDevices() *DeviceQuery
- func (c *Company) QueryMembers() *MemberQuery
- func (c *Company) String() string
- func (c *Company) Unwrap() *Company
- func (c *Company) Update() *CompanyUpdateOne
- func (c *Company) Value(name string) (ent.Value, error)
- type CompanyClient
- func (c *CompanyClient) Create() *CompanyCreate
- func (c *CompanyClient) CreateBulk(builders ...*CompanyCreate) *CompanyCreateBulk
- func (c *CompanyClient) Delete() *CompanyDelete
- func (c *CompanyClient) DeleteOne(co *Company) *CompanyDeleteOne
- func (c *CompanyClient) DeleteOneID(id uint64) *CompanyDeleteOne
- func (c *CompanyClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *CompanyClient) Get(ctx context.Context, id uint64) (*Company, error)
- func (c *CompanyClient) GetX(ctx context.Context, id uint64) *Company
- func (c *CompanyClient) Hooks() []Hook
- func (c *CompanyClient) Intercept(interceptors ...Interceptor)
- func (c *CompanyClient) Interceptors() []Interceptor
- func (c *CompanyClient) MapCreateBulk(slice any, setFunc func(*CompanyCreate, int)) *CompanyCreateBulk
- func (c *CompanyClient) Query() *CompanyQuery
- func (c *CompanyClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *CompanyClient) QueryDevices(co *Company) *DeviceQuery
- func (c *CompanyClient) QueryMembers(co *Company) *MemberQuery
- func (c *CompanyClient) Update() *CompanyUpdate
- func (c *CompanyClient) UpdateOne(co *Company) *CompanyUpdateOne
- func (c *CompanyClient) UpdateOneID(id uint64) *CompanyUpdateOne
- func (c *CompanyClient) Use(hooks ...Hook)
- type CompanyCreate
- func (cc *CompanyCreate) AddDeviceIDs(ids ...uuid.UUID) *CompanyCreate
- func (cc *CompanyCreate) AddDevices(d ...*Device) *CompanyCreate
- func (cc *CompanyCreate) AddMemberIDs(ids ...uuid.UUID) *CompanyCreate
- func (cc *CompanyCreate) AddMembers(m ...*Member) *CompanyCreate
- func (cc *CompanyCreate) Exec(ctx context.Context) error
- func (c *CompanyCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (cc *CompanyCreate) ExecX(ctx context.Context)
- func (cc *CompanyCreate) Mutation() *CompanyMutation
- func (cc *CompanyCreate) OnConflict(opts ...sql.ConflictOption) *CompanyUpsertOne
- func (cc *CompanyCreate) OnConflictColumns(columns ...string) *CompanyUpsertOne
- func (c *CompanyCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (cc *CompanyCreate) Save(ctx context.Context) (*Company, error)
- func (cc *CompanyCreate) SaveX(ctx context.Context) *Company
- func (cc *CompanyCreate) SetAddress(s string) *CompanyCreate
- func (cc *CompanyCreate) SetCode(i int32) *CompanyCreate
- func (cc *CompanyCreate) SetCreatedAt(t time.Time) *CompanyCreate
- func (cc *CompanyCreate) SetID(u uint64) *CompanyCreate
- func (cc *CompanyCreate) SetNickname(s string) *CompanyCreate
- func (cc *CompanyCreate) SetNillableAddress(s *string) *CompanyCreate
- func (cc *CompanyCreate) SetNillableCreatedAt(t *time.Time) *CompanyCreate
- func (cc *CompanyCreate) SetNillableRemark(s *string) *CompanyCreate
- func (cc *CompanyCreate) SetNillableSort(u *uint32) *CompanyCreate
- func (cc *CompanyCreate) SetNillableStatus(u *uint8) *CompanyCreate
- func (cc *CompanyCreate) SetNillableUpdatedAt(t *time.Time) *CompanyCreate
- func (c *CompanyCreate) SetNotNilAddress(value *string) *CompanyCreate
- func (c *CompanyCreate) SetNotNilCode(value *int32) *CompanyCreate
- func (c *CompanyCreate) SetNotNilNickname(value *string) *CompanyCreate
- func (c *CompanyCreate) SetNotNilRemark(value *string) *CompanyCreate
- func (c *CompanyCreate) SetNotNilSort(value *uint32) *CompanyCreate
- func (c *CompanyCreate) SetNotNilStatus(value *uint8) *CompanyCreate
- func (c *CompanyCreate) SetNotNilUpdatedAt(value *time.Time) *CompanyCreate
- func (cc *CompanyCreate) SetRemark(s string) *CompanyCreate
- func (cc *CompanyCreate) SetSort(u uint32) *CompanyCreate
- func (cc *CompanyCreate) SetStatus(u uint8) *CompanyCreate
- func (cc *CompanyCreate) SetUpdatedAt(t time.Time) *CompanyCreate
- type CompanyCreateBulk
- func (ccb *CompanyCreateBulk) Exec(ctx context.Context) error
- func (c *CompanyCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ccb *CompanyCreateBulk) ExecX(ctx context.Context)
- func (ccb *CompanyCreateBulk) OnConflict(opts ...sql.ConflictOption) *CompanyUpsertBulk
- func (ccb *CompanyCreateBulk) OnConflictColumns(columns ...string) *CompanyUpsertBulk
- func (c *CompanyCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ccb *CompanyCreateBulk) Save(ctx context.Context) ([]*Company, error)
- func (ccb *CompanyCreateBulk) SaveX(ctx context.Context) []*Company
- type CompanyDelete
- func (cd *CompanyDelete) Exec(ctx context.Context) (int, error)
- func (c *CompanyDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (cd *CompanyDelete) ExecX(ctx context.Context) int
- func (c *CompanyDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (cd *CompanyDelete) Where(ps ...predicate.Company) *CompanyDelete
- type CompanyDeleteOne
- type CompanyEdges
- type CompanyGroupBy
- func (cgb *CompanyGroupBy) Aggregate(fns ...AggregateFunc) *CompanyGroupBy
- func (s *CompanyGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *CompanyGroupBy) BoolX(ctx context.Context) bool
- func (s *CompanyGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *CompanyGroupBy) BoolsX(ctx context.Context) []bool
- func (s *CompanyGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *CompanyGroupBy) Float64X(ctx context.Context) float64
- func (s *CompanyGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *CompanyGroupBy) Float64sX(ctx context.Context) []float64
- func (s *CompanyGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *CompanyGroupBy) IntX(ctx context.Context) int
- func (s *CompanyGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *CompanyGroupBy) IntsX(ctx context.Context) []int
- func (cgb *CompanyGroupBy) Scan(ctx context.Context, v any) error
- func (s *CompanyGroupBy) ScanX(ctx context.Context, v any)
- func (s *CompanyGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *CompanyGroupBy) StringX(ctx context.Context) string
- func (s *CompanyGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *CompanyGroupBy) StringsX(ctx context.Context) []string
- type CompanyMutation
- func (m *CompanyMutation) AddCode(i int32)
- func (m *CompanyMutation) AddDeviceIDs(ids ...uuid.UUID)
- func (m *CompanyMutation) AddField(name string, value ent.Value) error
- func (m *CompanyMutation) AddMemberIDs(ids ...uuid.UUID)
- func (m *CompanyMutation) AddSort(u int32)
- func (m *CompanyMutation) AddStatus(u int8)
- func (m *CompanyMutation) AddedCode() (r int32, exists bool)
- func (m *CompanyMutation) AddedEdges() []string
- func (m *CompanyMutation) AddedField(name string) (ent.Value, bool)
- func (m *CompanyMutation) AddedFields() []string
- func (m *CompanyMutation) AddedIDs(name string) []ent.Value
- func (m *CompanyMutation) AddedSort() (r int32, exists bool)
- func (m *CompanyMutation) AddedStatus() (r int8, exists bool)
- func (m *CompanyMutation) Address() (r string, exists bool)
- func (m *CompanyMutation) AddressCleared() bool
- func (m *CompanyMutation) ClearAddress()
- func (m *CompanyMutation) ClearDevices()
- func (m *CompanyMutation) ClearEdge(name string) error
- func (m *CompanyMutation) ClearField(name string) error
- func (m *CompanyMutation) ClearMembers()
- func (m *CompanyMutation) ClearRemark()
- func (m *CompanyMutation) ClearStatus()
- func (m *CompanyMutation) ClearedEdges() []string
- func (m *CompanyMutation) ClearedFields() []string
- func (m CompanyMutation) Client() *Client
- func (m *CompanyMutation) Code() (r int32, exists bool)
- func (m *CompanyMutation) CreatedAt() (r time.Time, exists bool)
- func (m *CompanyMutation) DevicesCleared() bool
- func (m *CompanyMutation) DevicesIDs() (ids []uuid.UUID)
- func (m *CompanyMutation) EdgeCleared(name string) bool
- func (c *CompanyMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *CompanyMutation) Field(name string) (ent.Value, bool)
- func (m *CompanyMutation) FieldCleared(name string) bool
- func (m *CompanyMutation) Fields() []string
- func (m *CompanyMutation) ID() (id uint64, exists bool)
- func (m *CompanyMutation) IDs(ctx context.Context) ([]uint64, error)
- func (m *CompanyMutation) MembersCleared() bool
- func (m *CompanyMutation) MembersIDs() (ids []uuid.UUID)
- func (m *CompanyMutation) Nickname() (r string, exists bool)
- func (m *CompanyMutation) OldAddress(ctx context.Context) (v string, err error)
- func (m *CompanyMutation) OldCode(ctx context.Context) (v int32, err error)
- func (m *CompanyMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *CompanyMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *CompanyMutation) OldNickname(ctx context.Context) (v string, err error)
- func (m *CompanyMutation) OldRemark(ctx context.Context) (v string, err error)
- func (m *CompanyMutation) OldSort(ctx context.Context) (v uint32, err error)
- func (m *CompanyMutation) OldStatus(ctx context.Context) (v uint8, err error)
- func (m *CompanyMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *CompanyMutation) Op() Op
- func (c *CompanyMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *CompanyMutation) Remark() (r string, exists bool)
- func (m *CompanyMutation) RemarkCleared() bool
- func (m *CompanyMutation) RemoveDeviceIDs(ids ...uuid.UUID)
- func (m *CompanyMutation) RemoveMemberIDs(ids ...uuid.UUID)
- func (m *CompanyMutation) RemovedDevicesIDs() (ids []uuid.UUID)
- func (m *CompanyMutation) RemovedEdges() []string
- func (m *CompanyMutation) RemovedIDs(name string) []ent.Value
- func (m *CompanyMutation) RemovedMembersIDs() (ids []uuid.UUID)
- func (m *CompanyMutation) ResetAddress()
- func (m *CompanyMutation) ResetCode()
- func (m *CompanyMutation) ResetCreatedAt()
- func (m *CompanyMutation) ResetDevices()
- func (m *CompanyMutation) ResetEdge(name string) error
- func (m *CompanyMutation) ResetField(name string) error
- func (m *CompanyMutation) ResetMembers()
- func (m *CompanyMutation) ResetNickname()
- func (m *CompanyMutation) ResetRemark()
- func (m *CompanyMutation) ResetSort()
- func (m *CompanyMutation) ResetStatus()
- func (m *CompanyMutation) ResetUpdatedAt()
- func (m *CompanyMutation) SetAddress(s string)
- func (m *CompanyMutation) SetCode(i int32)
- func (m *CompanyMutation) SetCreatedAt(t time.Time)
- func (m *CompanyMutation) SetField(name string, value ent.Value) error
- func (m *CompanyMutation) SetID(id uint64)
- func (m *CompanyMutation) SetNickname(s string)
- func (m *CompanyMutation) SetOp(op Op)
- func (m *CompanyMutation) SetRemark(s string)
- func (m *CompanyMutation) SetSort(u uint32)
- func (m *CompanyMutation) SetStatus(u uint8)
- func (m *CompanyMutation) SetUpdatedAt(t time.Time)
- func (m *CompanyMutation) Sort() (r uint32, exists bool)
- func (m *CompanyMutation) Status() (r uint8, exists bool)
- func (m *CompanyMutation) StatusCleared() bool
- func (m CompanyMutation) Tx() (*Tx, error)
- func (m *CompanyMutation) Type() string
- func (m *CompanyMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *CompanyMutation) Where(ps ...predicate.Company)
- func (m *CompanyMutation) WhereP(ps ...func(*sql.Selector))
- type CompanyPageList
- type CompanyPager
- type CompanyPaginateOption
- type CompanyQuery
- func (cq *CompanyQuery) Aggregate(fns ...AggregateFunc) *CompanySelect
- func (cq *CompanyQuery) All(ctx context.Context) ([]*Company, error)
- func (cq *CompanyQuery) AllX(ctx context.Context) []*Company
- func (cq *CompanyQuery) Clone() *CompanyQuery
- func (cq *CompanyQuery) Count(ctx context.Context) (int, error)
- func (cq *CompanyQuery) CountX(ctx context.Context) int
- func (c *CompanyQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (cq *CompanyQuery) Exist(ctx context.Context) (bool, error)
- func (cq *CompanyQuery) ExistX(ctx context.Context) bool
- func (cq *CompanyQuery) First(ctx context.Context) (*Company, error)
- func (cq *CompanyQuery) FirstID(ctx context.Context) (id uint64, err error)
- func (cq *CompanyQuery) FirstIDX(ctx context.Context) uint64
- func (cq *CompanyQuery) FirstX(ctx context.Context) *Company
- func (cq *CompanyQuery) GroupBy(field string, fields ...string) *CompanyGroupBy
- func (cq *CompanyQuery) IDs(ctx context.Context) (ids []uint64, err error)
- func (cq *CompanyQuery) IDsX(ctx context.Context) []uint64
- func (cq *CompanyQuery) Limit(limit int) *CompanyQuery
- func (cq *CompanyQuery) Modify(modifiers ...func(s *sql.Selector)) *CompanySelect
- func (cq *CompanyQuery) Offset(offset int) *CompanyQuery
- func (cq *CompanyQuery) Only(ctx context.Context) (*Company, error)
- func (cq *CompanyQuery) OnlyID(ctx context.Context) (id uint64, err error)
- func (cq *CompanyQuery) OnlyIDX(ctx context.Context) uint64
- func (cq *CompanyQuery) OnlyX(ctx context.Context) *Company
- func (cq *CompanyQuery) Order(o ...company.OrderOption) *CompanyQuery
- func (c *CompanyQuery) Page(ctx context.Context, pageNum uint64, pageSize uint64, ...) (*CompanyPageList, error)
- func (c *CompanyQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (cq *CompanyQuery) QueryDevices() *DeviceQuery
- func (cq *CompanyQuery) QueryMembers() *MemberQuery
- func (cq *CompanyQuery) Select(fields ...string) *CompanySelect
- func (cq *CompanyQuery) Unique(unique bool) *CompanyQuery
- func (cq *CompanyQuery) Where(ps ...predicate.Company) *CompanyQuery
- func (cq *CompanyQuery) WithDevices(opts ...func(*DeviceQuery)) *CompanyQuery
- func (cq *CompanyQuery) WithMembers(opts ...func(*MemberQuery)) *CompanyQuery
- type CompanySelect
- func (cs *CompanySelect) Aggregate(fns ...AggregateFunc) *CompanySelect
- func (s *CompanySelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *CompanySelect) BoolX(ctx context.Context) bool
- func (s *CompanySelect) Bools(ctx context.Context) ([]bool, error)
- func (s *CompanySelect) BoolsX(ctx context.Context) []bool
- func (c CompanySelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *CompanySelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *CompanySelect) Float64X(ctx context.Context) float64
- func (s *CompanySelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *CompanySelect) Float64sX(ctx context.Context) []float64
- func (s *CompanySelect) Int(ctx context.Context) (_ int, err error)
- func (s *CompanySelect) IntX(ctx context.Context) int
- func (s *CompanySelect) Ints(ctx context.Context) ([]int, error)
- func (s *CompanySelect) IntsX(ctx context.Context) []int
- func (cs *CompanySelect) Modify(modifiers ...func(s *sql.Selector)) *CompanySelect
- func (c CompanySelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (cs *CompanySelect) Scan(ctx context.Context, v any) error
- func (s *CompanySelect) ScanX(ctx context.Context, v any)
- func (s *CompanySelect) String(ctx context.Context) (_ string, err error)
- func (s *CompanySelect) StringX(ctx context.Context) string
- func (s *CompanySelect) Strings(ctx context.Context) ([]string, error)
- func (s *CompanySelect) StringsX(ctx context.Context) []string
- type CompanyUpdate
- func (cu *CompanyUpdate) AddCode(i int32) *CompanyUpdate
- func (cu *CompanyUpdate) AddDeviceIDs(ids ...uuid.UUID) *CompanyUpdate
- func (cu *CompanyUpdate) AddDevices(d ...*Device) *CompanyUpdate
- func (cu *CompanyUpdate) AddMemberIDs(ids ...uuid.UUID) *CompanyUpdate
- func (cu *CompanyUpdate) AddMembers(m ...*Member) *CompanyUpdate
- func (cu *CompanyUpdate) AddSort(u int32) *CompanyUpdate
- func (cu *CompanyUpdate) AddStatus(u int8) *CompanyUpdate
- func (cu *CompanyUpdate) ClearAddress() *CompanyUpdate
- func (cu *CompanyUpdate) ClearDevices() *CompanyUpdate
- func (cu *CompanyUpdate) ClearMembers() *CompanyUpdate
- func (cu *CompanyUpdate) ClearRemark() *CompanyUpdate
- func (cu *CompanyUpdate) ClearStatus() *CompanyUpdate
- func (cu *CompanyUpdate) Exec(ctx context.Context) error
- func (c *CompanyUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (cu *CompanyUpdate) ExecX(ctx context.Context)
- func (cu *CompanyUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *CompanyUpdate
- func (cu *CompanyUpdate) Mutation() *CompanyMutation
- func (c *CompanyUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (cu *CompanyUpdate) RemoveDeviceIDs(ids ...uuid.UUID) *CompanyUpdate
- func (cu *CompanyUpdate) RemoveDevices(d ...*Device) *CompanyUpdate
- func (cu *CompanyUpdate) RemoveMemberIDs(ids ...uuid.UUID) *CompanyUpdate
- func (cu *CompanyUpdate) RemoveMembers(m ...*Member) *CompanyUpdate
- func (cu *CompanyUpdate) Save(ctx context.Context) (int, error)
- func (cu *CompanyUpdate) SaveX(ctx context.Context) int
- func (cu *CompanyUpdate) SetAddress(s string) *CompanyUpdate
- func (cu *CompanyUpdate) SetCode(i int32) *CompanyUpdate
- func (cu *CompanyUpdate) SetNickname(s string) *CompanyUpdate
- func (cu *CompanyUpdate) SetNillableAddress(s *string) *CompanyUpdate
- func (cu *CompanyUpdate) SetNillableCode(i *int32) *CompanyUpdate
- func (cu *CompanyUpdate) SetNillableNickname(s *string) *CompanyUpdate
- func (cu *CompanyUpdate) SetNillableRemark(s *string) *CompanyUpdate
- func (cu *CompanyUpdate) SetNillableSort(u *uint32) *CompanyUpdate
- func (cu *CompanyUpdate) SetNillableStatus(u *uint8) *CompanyUpdate
- func (c *CompanyUpdate) SetNotNilAddress(value *string) *CompanyUpdate
- func (c *CompanyUpdate) SetNotNilCode(value *int32) *CompanyUpdate
- func (c *CompanyUpdate) SetNotNilNickname(value *string) *CompanyUpdate
- func (c *CompanyUpdate) SetNotNilRemark(value *string) *CompanyUpdate
- func (c *CompanyUpdate) SetNotNilSort(value *uint32) *CompanyUpdate
- func (c *CompanyUpdate) SetNotNilStatus(value *uint8) *CompanyUpdate
- func (c *CompanyUpdate) SetNotNilUpdatedAt(value *time.Time) *CompanyUpdate
- func (cu *CompanyUpdate) SetRemark(s string) *CompanyUpdate
- func (cu *CompanyUpdate) SetSort(u uint32) *CompanyUpdate
- func (cu *CompanyUpdate) SetStatus(u uint8) *CompanyUpdate
- func (cu *CompanyUpdate) SetUpdatedAt(t time.Time) *CompanyUpdate
- func (cu *CompanyUpdate) Where(ps ...predicate.Company) *CompanyUpdate
- type CompanyUpdateOne
- func (cuo *CompanyUpdateOne) AddCode(i int32) *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) AddDeviceIDs(ids ...uuid.UUID) *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) AddDevices(d ...*Device) *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) AddMemberIDs(ids ...uuid.UUID) *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) AddMembers(m ...*Member) *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) AddSort(u int32) *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) AddStatus(u int8) *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) ClearAddress() *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) ClearDevices() *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) ClearMembers() *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) ClearRemark() *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) ClearStatus() *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) Exec(ctx context.Context) error
- func (c *CompanyUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (cuo *CompanyUpdateOne) ExecX(ctx context.Context)
- func (cuo *CompanyUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) Mutation() *CompanyMutation
- func (c *CompanyUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (cuo *CompanyUpdateOne) RemoveDeviceIDs(ids ...uuid.UUID) *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) RemoveDevices(d ...*Device) *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) RemoveMemberIDs(ids ...uuid.UUID) *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) RemoveMembers(m ...*Member) *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) Save(ctx context.Context) (*Company, error)
- func (cuo *CompanyUpdateOne) SaveX(ctx context.Context) *Company
- func (cuo *CompanyUpdateOne) Select(field string, fields ...string) *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) SetAddress(s string) *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) SetCode(i int32) *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) SetNickname(s string) *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) SetNillableAddress(s *string) *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) SetNillableCode(i *int32) *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) SetNillableNickname(s *string) *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) SetNillableRemark(s *string) *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) SetNillableSort(u *uint32) *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) SetNillableStatus(u *uint8) *CompanyUpdateOne
- func (c *CompanyUpdateOne) SetNotNilAddress(value *string) *CompanyUpdateOne
- func (c *CompanyUpdateOne) SetNotNilCode(value *int32) *CompanyUpdateOne
- func (c *CompanyUpdateOne) SetNotNilNickname(value *string) *CompanyUpdateOne
- func (c *CompanyUpdateOne) SetNotNilRemark(value *string) *CompanyUpdateOne
- func (c *CompanyUpdateOne) SetNotNilSort(value *uint32) *CompanyUpdateOne
- func (c *CompanyUpdateOne) SetNotNilStatus(value *uint8) *CompanyUpdateOne
- func (c *CompanyUpdateOne) SetNotNilUpdatedAt(value *time.Time) *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) SetRemark(s string) *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) SetSort(u uint32) *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) SetStatus(u uint8) *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) SetUpdatedAt(t time.Time) *CompanyUpdateOne
- func (cuo *CompanyUpdateOne) Where(ps ...predicate.Company) *CompanyUpdateOne
- type CompanyUpsert
- func (u *CompanyUpsert) AddCode(v int32) *CompanyUpsert
- func (u *CompanyUpsert) AddSort(v uint32) *CompanyUpsert
- func (u *CompanyUpsert) AddStatus(v uint8) *CompanyUpsert
- func (u *CompanyUpsert) ClearAddress() *CompanyUpsert
- func (u *CompanyUpsert) ClearRemark() *CompanyUpsert
- func (u *CompanyUpsert) ClearStatus() *CompanyUpsert
- func (u *CompanyUpsert) SetAddress(v string) *CompanyUpsert
- func (u *CompanyUpsert) SetCode(v int32) *CompanyUpsert
- func (u *CompanyUpsert) SetNickname(v string) *CompanyUpsert
- func (u *CompanyUpsert) SetRemark(v string) *CompanyUpsert
- func (u *CompanyUpsert) SetSort(v uint32) *CompanyUpsert
- func (u *CompanyUpsert) SetStatus(v uint8) *CompanyUpsert
- func (u *CompanyUpsert) SetUpdatedAt(v time.Time) *CompanyUpsert
- func (u *CompanyUpsert) UpdateAddress() *CompanyUpsert
- func (u *CompanyUpsert) UpdateCode() *CompanyUpsert
- func (u *CompanyUpsert) UpdateNickname() *CompanyUpsert
- func (u *CompanyUpsert) UpdateRemark() *CompanyUpsert
- func (u *CompanyUpsert) UpdateSort() *CompanyUpsert
- func (u *CompanyUpsert) UpdateStatus() *CompanyUpsert
- func (u *CompanyUpsert) UpdateUpdatedAt() *CompanyUpsert
- type CompanyUpsertBulk
- func (u *CompanyUpsertBulk) AddCode(v int32) *CompanyUpsertBulk
- func (u *CompanyUpsertBulk) AddSort(v uint32) *CompanyUpsertBulk
- func (u *CompanyUpsertBulk) AddStatus(v uint8) *CompanyUpsertBulk
- func (u *CompanyUpsertBulk) ClearAddress() *CompanyUpsertBulk
- func (u *CompanyUpsertBulk) ClearRemark() *CompanyUpsertBulk
- func (u *CompanyUpsertBulk) ClearStatus() *CompanyUpsertBulk
- func (u *CompanyUpsertBulk) DoNothing() *CompanyUpsertBulk
- func (u *CompanyUpsertBulk) Exec(ctx context.Context) error
- func (u *CompanyUpsertBulk) ExecX(ctx context.Context)
- func (u *CompanyUpsertBulk) Ignore() *CompanyUpsertBulk
- func (u *CompanyUpsertBulk) SetAddress(v string) *CompanyUpsertBulk
- func (u *CompanyUpsertBulk) SetCode(v int32) *CompanyUpsertBulk
- func (u *CompanyUpsertBulk) SetNickname(v string) *CompanyUpsertBulk
- func (u *CompanyUpsertBulk) SetRemark(v string) *CompanyUpsertBulk
- func (u *CompanyUpsertBulk) SetSort(v uint32) *CompanyUpsertBulk
- func (u *CompanyUpsertBulk) SetStatus(v uint8) *CompanyUpsertBulk
- func (u *CompanyUpsertBulk) SetUpdatedAt(v time.Time) *CompanyUpsertBulk
- func (u *CompanyUpsertBulk) Update(set func(*CompanyUpsert)) *CompanyUpsertBulk
- func (u *CompanyUpsertBulk) UpdateAddress() *CompanyUpsertBulk
- func (u *CompanyUpsertBulk) UpdateCode() *CompanyUpsertBulk
- func (u *CompanyUpsertBulk) UpdateNewValues() *CompanyUpsertBulk
- func (u *CompanyUpsertBulk) UpdateNickname() *CompanyUpsertBulk
- func (u *CompanyUpsertBulk) UpdateRemark() *CompanyUpsertBulk
- func (u *CompanyUpsertBulk) UpdateSort() *CompanyUpsertBulk
- func (u *CompanyUpsertBulk) UpdateStatus() *CompanyUpsertBulk
- func (u *CompanyUpsertBulk) UpdateUpdatedAt() *CompanyUpsertBulk
- type CompanyUpsertOne
- func (u *CompanyUpsertOne) AddCode(v int32) *CompanyUpsertOne
- func (u *CompanyUpsertOne) AddSort(v uint32) *CompanyUpsertOne
- func (u *CompanyUpsertOne) AddStatus(v uint8) *CompanyUpsertOne
- func (u *CompanyUpsertOne) ClearAddress() *CompanyUpsertOne
- func (u *CompanyUpsertOne) ClearRemark() *CompanyUpsertOne
- func (u *CompanyUpsertOne) ClearStatus() *CompanyUpsertOne
- func (u *CompanyUpsertOne) DoNothing() *CompanyUpsertOne
- func (u *CompanyUpsertOne) Exec(ctx context.Context) error
- func (u *CompanyUpsertOne) ExecX(ctx context.Context)
- func (u *CompanyUpsertOne) ID(ctx context.Context) (id uint64, err error)
- func (u *CompanyUpsertOne) IDX(ctx context.Context) uint64
- func (u *CompanyUpsertOne) Ignore() *CompanyUpsertOne
- func (u *CompanyUpsertOne) SetAddress(v string) *CompanyUpsertOne
- func (u *CompanyUpsertOne) SetCode(v int32) *CompanyUpsertOne
- func (u *CompanyUpsertOne) SetNickname(v string) *CompanyUpsertOne
- func (u *CompanyUpsertOne) SetRemark(v string) *CompanyUpsertOne
- func (u *CompanyUpsertOne) SetSort(v uint32) *CompanyUpsertOne
- func (u *CompanyUpsertOne) SetStatus(v uint8) *CompanyUpsertOne
- func (u *CompanyUpsertOne) SetUpdatedAt(v time.Time) *CompanyUpsertOne
- func (u *CompanyUpsertOne) Update(set func(*CompanyUpsert)) *CompanyUpsertOne
- func (u *CompanyUpsertOne) UpdateAddress() *CompanyUpsertOne
- func (u *CompanyUpsertOne) UpdateCode() *CompanyUpsertOne
- func (u *CompanyUpsertOne) UpdateNewValues() *CompanyUpsertOne
- func (u *CompanyUpsertOne) UpdateNickname() *CompanyUpsertOne
- func (u *CompanyUpsertOne) UpdateRemark() *CompanyUpsertOne
- func (u *CompanyUpsertOne) UpdateSort() *CompanyUpsertOne
- func (u *CompanyUpsertOne) UpdateStatus() *CompanyUpsertOne
- func (u *CompanyUpsertOne) UpdateUpdatedAt() *CompanyUpsertOne
- type ConstraintError
- type Device
- func (c *Device) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (d *Device) QueryCompanies() *CompanyQuery
- func (c *Device) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (d *Device) QueryMembers() *MemberQuery
- func (d *Device) QueryProduct() *ProductQuery
- func (d *Device) QueryProp() *DevicePropQuery
- func (d *Device) String() string
- func (d *Device) Unwrap() *Device
- func (d *Device) Update() *DeviceUpdateOne
- func (d *Device) Value(name string) (ent.Value, error)
- type DeviceClient
- func (c *DeviceClient) Create() *DeviceCreate
- func (c *DeviceClient) CreateBulk(builders ...*DeviceCreate) *DeviceCreateBulk
- func (c *DeviceClient) Delete() *DeviceDelete
- func (c *DeviceClient) DeleteOne(d *Device) *DeviceDeleteOne
- func (c *DeviceClient) DeleteOneID(id uuid.UUID) *DeviceDeleteOne
- func (c *DeviceClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *DeviceClient) Get(ctx context.Context, id uuid.UUID) (*Device, error)
- func (c *DeviceClient) GetX(ctx context.Context, id uuid.UUID) *Device
- func (c *DeviceClient) Hooks() []Hook
- func (c *DeviceClient) Intercept(interceptors ...Interceptor)
- func (c *DeviceClient) Interceptors() []Interceptor
- func (c *DeviceClient) MapCreateBulk(slice any, setFunc func(*DeviceCreate, int)) *DeviceCreateBulk
- func (c *DeviceClient) Query() *DeviceQuery
- func (c *DeviceClient) QueryCompanies(d *Device) *CompanyQuery
- func (c *DeviceClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *DeviceClient) QueryMembers(d *Device) *MemberQuery
- func (c *DeviceClient) QueryProduct(d *Device) *ProductQuery
- func (c *DeviceClient) QueryProp(d *Device) *DevicePropQuery
- func (c *DeviceClient) Update() *DeviceUpdate
- func (c *DeviceClient) UpdateOne(d *Device) *DeviceUpdateOne
- func (c *DeviceClient) UpdateOneID(id uuid.UUID) *DeviceUpdateOne
- func (c *DeviceClient) Use(hooks ...Hook)
- type DeviceCreate
- func (dc *DeviceCreate) AddCompanies(c ...*Company) *DeviceCreate
- func (dc *DeviceCreate) AddCompanyIDs(ids ...uint64) *DeviceCreate
- func (dc *DeviceCreate) AddMemberIDs(ids ...uuid.UUID) *DeviceCreate
- func (dc *DeviceCreate) AddMembers(m ...*Member) *DeviceCreate
- func (dc *DeviceCreate) Exec(ctx context.Context) error
- func (c *DeviceCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dc *DeviceCreate) ExecX(ctx context.Context)
- func (dc *DeviceCreate) Mutation() *DeviceMutation
- func (dc *DeviceCreate) OnConflict(opts ...sql.ConflictOption) *DeviceUpsertOne
- func (dc *DeviceCreate) OnConflictColumns(columns ...string) *DeviceUpsertOne
- func (c *DeviceCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dc *DeviceCreate) Save(ctx context.Context) (*Device, error)
- func (dc *DeviceCreate) SaveX(ctx context.Context) *Device
- func (dc *DeviceCreate) SetCreatedAt(t time.Time) *DeviceCreate
- func (dc *DeviceCreate) SetDeviceName(s string) *DeviceCreate
- func (dc *DeviceCreate) SetDeviceSecret(s string) *DeviceCreate
- func (dc *DeviceCreate) SetDeviceStatus(s string) *DeviceCreate
- func (dc *DeviceCreate) SetFirmwareVersion(s string) *DeviceCreate
- func (dc *DeviceCreate) SetGmtActive(s string) *DeviceCreate
- func (dc *DeviceCreate) SetGmtCreate(s string) *DeviceCreate
- func (dc *DeviceCreate) SetGmtModified(s string) *DeviceCreate
- func (dc *DeviceCreate) SetGmtOnline(s string) *DeviceCreate
- func (dc *DeviceCreate) SetID(u uuid.UUID) *DeviceCreate
- func (dc *DeviceCreate) SetIPAddress(s string) *DeviceCreate
- func (dc *DeviceCreate) SetIotID(s string) *DeviceCreate
- func (dc *DeviceCreate) SetNickname(s string) *DeviceCreate
- func (dc *DeviceCreate) SetNillableCreatedAt(t *time.Time) *DeviceCreate
- func (dc *DeviceCreate) SetNillableDeviceSecret(s *string) *DeviceCreate
- func (dc *DeviceCreate) SetNillableDeviceStatus(s *string) *DeviceCreate
- func (dc *DeviceCreate) SetNillableFirmwareVersion(s *string) *DeviceCreate
- func (dc *DeviceCreate) SetNillableGmtActive(s *string) *DeviceCreate
- func (dc *DeviceCreate) SetNillableGmtCreate(s *string) *DeviceCreate
- func (dc *DeviceCreate) SetNillableGmtModified(s *string) *DeviceCreate
- func (dc *DeviceCreate) SetNillableGmtOnline(s *string) *DeviceCreate
- func (dc *DeviceCreate) SetNillableID(u *uuid.UUID) *DeviceCreate
- func (dc *DeviceCreate) SetNillableIPAddress(s *string) *DeviceCreate
- func (dc *DeviceCreate) SetNillableNickname(s *string) *DeviceCreate
- func (dc *DeviceCreate) SetNillableNodeType(i *int32) *DeviceCreate
- func (dc *DeviceCreate) SetNillableOperationalStatusCode(s *string) *DeviceCreate
- func (dc *DeviceCreate) SetNillableOwner(b *bool) *DeviceCreate
- func (dc *DeviceCreate) SetNillableProductID(id *uuid.UUID) *DeviceCreate
- func (dc *DeviceCreate) SetNillableProductName(s *string) *DeviceCreate
- func (dc *DeviceCreate) SetNillablePropID(id *uint64) *DeviceCreate
- func (dc *DeviceCreate) SetNillableRegion(s *string) *DeviceCreate
- func (dc *DeviceCreate) SetNillableSort(u *uint32) *DeviceCreate
- func (dc *DeviceCreate) SetNillableStatus(u *uint8) *DeviceCreate
- func (dc *DeviceCreate) SetNillableUpdatedAt(t *time.Time) *DeviceCreate
- func (dc *DeviceCreate) SetNillableUtcActive(s *string) *DeviceCreate
- func (dc *DeviceCreate) SetNillableUtcCreate(s *string) *DeviceCreate
- func (dc *DeviceCreate) SetNillableUtcModified(s *string) *DeviceCreate
- func (dc *DeviceCreate) SetNillableUtcOnline(s *string) *DeviceCreate
- func (dc *DeviceCreate) SetNodeType(i int32) *DeviceCreate
- func (d *DeviceCreate) SetNotNilDeviceName(value *string) *DeviceCreate
- func (d *DeviceCreate) SetNotNilDeviceSecret(value *string) *DeviceCreate
- func (d *DeviceCreate) SetNotNilDeviceStatus(value *string) *DeviceCreate
- func (d *DeviceCreate) SetNotNilFirmwareVersion(value *string) *DeviceCreate
- func (d *DeviceCreate) SetNotNilGmtActive(value *string) *DeviceCreate
- func (d *DeviceCreate) SetNotNilGmtCreate(value *string) *DeviceCreate
- func (d *DeviceCreate) SetNotNilGmtModified(value *string) *DeviceCreate
- func (d *DeviceCreate) SetNotNilGmtOnline(value *string) *DeviceCreate
- func (d *DeviceCreate) SetNotNilIPAddress(value *string) *DeviceCreate
- func (d *DeviceCreate) SetNotNilIotID(value *string) *DeviceCreate
- func (d *DeviceCreate) SetNotNilNickname(value *string) *DeviceCreate
- func (d *DeviceCreate) SetNotNilNodeType(value *int32) *DeviceCreate
- func (d *DeviceCreate) SetNotNilOperationalStatusCode(value *string) *DeviceCreate
- func (d *DeviceCreate) SetNotNilOwner(value *bool) *DeviceCreate
- func (d *DeviceCreate) SetNotNilProductKey(value *string) *DeviceCreate
- func (d *DeviceCreate) SetNotNilProductName(value *string) *DeviceCreate
- func (d *DeviceCreate) SetNotNilRegion(value *string) *DeviceCreate
- func (d *DeviceCreate) SetNotNilSort(value *uint32) *DeviceCreate
- func (d *DeviceCreate) SetNotNilStatus(value *uint8) *DeviceCreate
- func (d *DeviceCreate) SetNotNilUpdatedAt(value *time.Time) *DeviceCreate
- func (d *DeviceCreate) SetNotNilUtcActive(value *string) *DeviceCreate
- func (d *DeviceCreate) SetNotNilUtcCreate(value *string) *DeviceCreate
- func (d *DeviceCreate) SetNotNilUtcModified(value *string) *DeviceCreate
- func (d *DeviceCreate) SetNotNilUtcOnline(value *string) *DeviceCreate
- func (dc *DeviceCreate) SetOperationalStatusCode(s string) *DeviceCreate
- func (dc *DeviceCreate) SetOwner(b bool) *DeviceCreate
- func (dc *DeviceCreate) SetProduct(p *Product) *DeviceCreate
- func (dc *DeviceCreate) SetProductID(id uuid.UUID) *DeviceCreate
- func (dc *DeviceCreate) SetProductKey(s string) *DeviceCreate
- func (dc *DeviceCreate) SetProductName(s string) *DeviceCreate
- func (dc *DeviceCreate) SetProp(d *DeviceProp) *DeviceCreate
- func (dc *DeviceCreate) SetPropID(id uint64) *DeviceCreate
- func (dc *DeviceCreate) SetRegion(s string) *DeviceCreate
- func (dc *DeviceCreate) SetSort(u uint32) *DeviceCreate
- func (dc *DeviceCreate) SetStatus(u uint8) *DeviceCreate
- func (dc *DeviceCreate) SetUpdatedAt(t time.Time) *DeviceCreate
- func (dc *DeviceCreate) SetUtcActive(s string) *DeviceCreate
- func (dc *DeviceCreate) SetUtcCreate(s string) *DeviceCreate
- func (dc *DeviceCreate) SetUtcModified(s string) *DeviceCreate
- func (dc *DeviceCreate) SetUtcOnline(s string) *DeviceCreate
- type DeviceCreateBulk
- func (dcb *DeviceCreateBulk) Exec(ctx context.Context) error
- func (c *DeviceCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dcb *DeviceCreateBulk) ExecX(ctx context.Context)
- func (dcb *DeviceCreateBulk) OnConflict(opts ...sql.ConflictOption) *DeviceUpsertBulk
- func (dcb *DeviceCreateBulk) OnConflictColumns(columns ...string) *DeviceUpsertBulk
- func (c *DeviceCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dcb *DeviceCreateBulk) Save(ctx context.Context) ([]*Device, error)
- func (dcb *DeviceCreateBulk) SaveX(ctx context.Context) []*Device
- type DeviceDelete
- func (dd *DeviceDelete) Exec(ctx context.Context) (int, error)
- func (c *DeviceDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dd *DeviceDelete) ExecX(ctx context.Context) int
- func (c *DeviceDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dd *DeviceDelete) Where(ps ...predicate.Device) *DeviceDelete
- type DeviceDeleteOne
- type DeviceEdges
- type DeviceGroupBy
- func (dgb *DeviceGroupBy) Aggregate(fns ...AggregateFunc) *DeviceGroupBy
- func (s *DeviceGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *DeviceGroupBy) BoolX(ctx context.Context) bool
- func (s *DeviceGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *DeviceGroupBy) BoolsX(ctx context.Context) []bool
- func (s *DeviceGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *DeviceGroupBy) Float64X(ctx context.Context) float64
- func (s *DeviceGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *DeviceGroupBy) Float64sX(ctx context.Context) []float64
- func (s *DeviceGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *DeviceGroupBy) IntX(ctx context.Context) int
- func (s *DeviceGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *DeviceGroupBy) IntsX(ctx context.Context) []int
- func (dgb *DeviceGroupBy) Scan(ctx context.Context, v any) error
- func (s *DeviceGroupBy) ScanX(ctx context.Context, v any)
- func (s *DeviceGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *DeviceGroupBy) StringX(ctx context.Context) string
- func (s *DeviceGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *DeviceGroupBy) StringsX(ctx context.Context) []string
- type DeviceMutation
- func (m *DeviceMutation) AddCompanyIDs(ids ...uint64)
- func (m *DeviceMutation) AddField(name string, value ent.Value) error
- func (m *DeviceMutation) AddMemberIDs(ids ...uuid.UUID)
- func (m *DeviceMutation) AddNodeType(i int32)
- func (m *DeviceMutation) AddSort(u int32)
- func (m *DeviceMutation) AddStatus(u int8)
- func (m *DeviceMutation) AddedEdges() []string
- func (m *DeviceMutation) AddedField(name string) (ent.Value, bool)
- func (m *DeviceMutation) AddedFields() []string
- func (m *DeviceMutation) AddedIDs(name string) []ent.Value
- func (m *DeviceMutation) AddedNodeType() (r int32, exists bool)
- func (m *DeviceMutation) AddedSort() (r int32, exists bool)
- func (m *DeviceMutation) AddedStatus() (r int8, exists bool)
- func (m *DeviceMutation) ClearCompanies()
- func (m *DeviceMutation) ClearDeviceSecret()
- func (m *DeviceMutation) ClearDeviceStatus()
- func (m *DeviceMutation) ClearEdge(name string) error
- func (m *DeviceMutation) ClearField(name string) error
- func (m *DeviceMutation) ClearFirmwareVersion()
- func (m *DeviceMutation) ClearGmtActive()
- func (m *DeviceMutation) ClearGmtCreate()
- func (m *DeviceMutation) ClearGmtModified()
- func (m *DeviceMutation) ClearGmtOnline()
- func (m *DeviceMutation) ClearIPAddress()
- func (m *DeviceMutation) ClearMembers()
- func (m *DeviceMutation) ClearNickname()
- func (m *DeviceMutation) ClearOperationalStatusCode()
- func (m *DeviceMutation) ClearOwner()
- func (m *DeviceMutation) ClearProduct()
- func (m *DeviceMutation) ClearProductName()
- func (m *DeviceMutation) ClearProp()
- func (m *DeviceMutation) ClearRegion()
- func (m *DeviceMutation) ClearStatus()
- func (m *DeviceMutation) ClearUtcActive()
- func (m *DeviceMutation) ClearUtcCreate()
- func (m *DeviceMutation) ClearUtcModified()
- func (m *DeviceMutation) ClearUtcOnline()
- func (m *DeviceMutation) ClearedEdges() []string
- func (m *DeviceMutation) ClearedFields() []string
- func (m DeviceMutation) Client() *Client
- func (m *DeviceMutation) CompaniesCleared() bool
- func (m *DeviceMutation) CompaniesIDs() (ids []uint64)
- func (m *DeviceMutation) CreatedAt() (r time.Time, exists bool)
- func (m *DeviceMutation) DeviceName() (r string, exists bool)
- func (m *DeviceMutation) DeviceSecret() (r string, exists bool)
- func (m *DeviceMutation) DeviceSecretCleared() bool
- func (m *DeviceMutation) DeviceStatus() (r string, exists bool)
- func (m *DeviceMutation) DeviceStatusCleared() bool
- func (m *DeviceMutation) EdgeCleared(name string) bool
- func (c *DeviceMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *DeviceMutation) Field(name string) (ent.Value, bool)
- func (m *DeviceMutation) FieldCleared(name string) bool
- func (m *DeviceMutation) Fields() []string
- func (m *DeviceMutation) FirmwareVersion() (r string, exists bool)
- func (m *DeviceMutation) FirmwareVersionCleared() bool
- func (m *DeviceMutation) GmtActive() (r string, exists bool)
- func (m *DeviceMutation) GmtActiveCleared() bool
- func (m *DeviceMutation) GmtCreate() (r string, exists bool)
- func (m *DeviceMutation) GmtCreateCleared() bool
- func (m *DeviceMutation) GmtModified() (r string, exists bool)
- func (m *DeviceMutation) GmtModifiedCleared() bool
- func (m *DeviceMutation) GmtOnline() (r string, exists bool)
- func (m *DeviceMutation) GmtOnlineCleared() bool
- func (m *DeviceMutation) ID() (id uuid.UUID, exists bool)
- func (m *DeviceMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *DeviceMutation) IPAddress() (r string, exists bool)
- func (m *DeviceMutation) IPAddressCleared() bool
- func (m *DeviceMutation) IotID() (r string, exists bool)
- func (m *DeviceMutation) MembersCleared() bool
- func (m *DeviceMutation) MembersIDs() (ids []uuid.UUID)
- func (m *DeviceMutation) Nickname() (r string, exists bool)
- func (m *DeviceMutation) NicknameCleared() bool
- func (m *DeviceMutation) NodeType() (r int32, exists bool)
- func (m *DeviceMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *DeviceMutation) OldDeviceName(ctx context.Context) (v string, err error)
- func (m *DeviceMutation) OldDeviceSecret(ctx context.Context) (v string, err error)
- func (m *DeviceMutation) OldDeviceStatus(ctx context.Context) (v string, err error)
- func (m *DeviceMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *DeviceMutation) OldFirmwareVersion(ctx context.Context) (v string, err error)
- func (m *DeviceMutation) OldGmtActive(ctx context.Context) (v string, err error)
- func (m *DeviceMutation) OldGmtCreate(ctx context.Context) (v string, err error)
- func (m *DeviceMutation) OldGmtModified(ctx context.Context) (v string, err error)
- func (m *DeviceMutation) OldGmtOnline(ctx context.Context) (v string, err error)
- func (m *DeviceMutation) OldIPAddress(ctx context.Context) (v string, err error)
- func (m *DeviceMutation) OldIotID(ctx context.Context) (v string, err error)
- func (m *DeviceMutation) OldNickname(ctx context.Context) (v string, err error)
- func (m *DeviceMutation) OldNodeType(ctx context.Context) (v int32, err error)
- func (m *DeviceMutation) OldOperationalStatusCode(ctx context.Context) (v string, err error)
- func (m *DeviceMutation) OldOwner(ctx context.Context) (v bool, err error)
- func (m *DeviceMutation) OldProductKey(ctx context.Context) (v string, err error)
- func (m *DeviceMutation) OldProductName(ctx context.Context) (v string, err error)
- func (m *DeviceMutation) OldRegion(ctx context.Context) (v string, err error)
- func (m *DeviceMutation) OldSort(ctx context.Context) (v uint32, err error)
- func (m *DeviceMutation) OldStatus(ctx context.Context) (v uint8, err error)
- func (m *DeviceMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *DeviceMutation) OldUtcActive(ctx context.Context) (v string, err error)
- func (m *DeviceMutation) OldUtcCreate(ctx context.Context) (v string, err error)
- func (m *DeviceMutation) OldUtcModified(ctx context.Context) (v string, err error)
- func (m *DeviceMutation) OldUtcOnline(ctx context.Context) (v string, err error)
- func (m *DeviceMutation) Op() Op
- func (m *DeviceMutation) OperationalStatusCode() (r string, exists bool)
- func (m *DeviceMutation) OperationalStatusCodeCleared() bool
- func (m *DeviceMutation) Owner() (r bool, exists bool)
- func (m *DeviceMutation) OwnerCleared() bool
- func (m *DeviceMutation) ProductCleared() bool
- func (m *DeviceMutation) ProductID() (id uuid.UUID, exists bool)
- func (m *DeviceMutation) ProductIDs() (ids []uuid.UUID)
- func (m *DeviceMutation) ProductKey() (r string, exists bool)
- func (m *DeviceMutation) ProductName() (r string, exists bool)
- func (m *DeviceMutation) ProductNameCleared() bool
- func (m *DeviceMutation) PropCleared() bool
- func (m *DeviceMutation) PropID() (id uint64, exists bool)
- func (m *DeviceMutation) PropIDs() (ids []uint64)
- func (c *DeviceMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *DeviceMutation) Region() (r string, exists bool)
- func (m *DeviceMutation) RegionCleared() bool
- func (m *DeviceMutation) RemoveCompanyIDs(ids ...uint64)
- func (m *DeviceMutation) RemoveMemberIDs(ids ...uuid.UUID)
- func (m *DeviceMutation) RemovedCompaniesIDs() (ids []uint64)
- func (m *DeviceMutation) RemovedEdges() []string
- func (m *DeviceMutation) RemovedIDs(name string) []ent.Value
- func (m *DeviceMutation) RemovedMembersIDs() (ids []uuid.UUID)
- func (m *DeviceMutation) ResetCompanies()
- func (m *DeviceMutation) ResetCreatedAt()
- func (m *DeviceMutation) ResetDeviceName()
- func (m *DeviceMutation) ResetDeviceSecret()
- func (m *DeviceMutation) ResetDeviceStatus()
- func (m *DeviceMutation) ResetEdge(name string) error
- func (m *DeviceMutation) ResetField(name string) error
- func (m *DeviceMutation) ResetFirmwareVersion()
- func (m *DeviceMutation) ResetGmtActive()
- func (m *DeviceMutation) ResetGmtCreate()
- func (m *DeviceMutation) ResetGmtModified()
- func (m *DeviceMutation) ResetGmtOnline()
- func (m *DeviceMutation) ResetIPAddress()
- func (m *DeviceMutation) ResetIotID()
- func (m *DeviceMutation) ResetMembers()
- func (m *DeviceMutation) ResetNickname()
- func (m *DeviceMutation) ResetNodeType()
- func (m *DeviceMutation) ResetOperationalStatusCode()
- func (m *DeviceMutation) ResetOwner()
- func (m *DeviceMutation) ResetProduct()
- func (m *DeviceMutation) ResetProductKey()
- func (m *DeviceMutation) ResetProductName()
- func (m *DeviceMutation) ResetProp()
- func (m *DeviceMutation) ResetRegion()
- func (m *DeviceMutation) ResetSort()
- func (m *DeviceMutation) ResetStatus()
- func (m *DeviceMutation) ResetUpdatedAt()
- func (m *DeviceMutation) ResetUtcActive()
- func (m *DeviceMutation) ResetUtcCreate()
- func (m *DeviceMutation) ResetUtcModified()
- func (m *DeviceMutation) ResetUtcOnline()
- func (m *DeviceMutation) SetCreatedAt(t time.Time)
- func (m *DeviceMutation) SetDeviceName(s string)
- func (m *DeviceMutation) SetDeviceSecret(s string)
- func (m *DeviceMutation) SetDeviceStatus(s string)
- func (m *DeviceMutation) SetField(name string, value ent.Value) error
- func (m *DeviceMutation) SetFirmwareVersion(s string)
- func (m *DeviceMutation) SetGmtActive(s string)
- func (m *DeviceMutation) SetGmtCreate(s string)
- func (m *DeviceMutation) SetGmtModified(s string)
- func (m *DeviceMutation) SetGmtOnline(s string)
- func (m *DeviceMutation) SetID(id uuid.UUID)
- func (m *DeviceMutation) SetIPAddress(s string)
- func (m *DeviceMutation) SetIotID(s string)
- func (m *DeviceMutation) SetNickname(s string)
- func (m *DeviceMutation) SetNodeType(i int32)
- func (m *DeviceMutation) SetOp(op Op)
- func (m *DeviceMutation) SetOperationalStatusCode(s string)
- func (m *DeviceMutation) SetOwner(b bool)
- func (m *DeviceMutation) SetProductID(id uuid.UUID)
- func (m *DeviceMutation) SetProductKey(s string)
- func (m *DeviceMutation) SetProductName(s string)
- func (m *DeviceMutation) SetPropID(id uint64)
- func (m *DeviceMutation) SetRegion(s string)
- func (m *DeviceMutation) SetSort(u uint32)
- func (m *DeviceMutation) SetStatus(u uint8)
- func (m *DeviceMutation) SetUpdatedAt(t time.Time)
- func (m *DeviceMutation) SetUtcActive(s string)
- func (m *DeviceMutation) SetUtcCreate(s string)
- func (m *DeviceMutation) SetUtcModified(s string)
- func (m *DeviceMutation) SetUtcOnline(s string)
- func (m *DeviceMutation) Sort() (r uint32, exists bool)
- func (m *DeviceMutation) Status() (r uint8, exists bool)
- func (m *DeviceMutation) StatusCleared() bool
- func (m DeviceMutation) Tx() (*Tx, error)
- func (m *DeviceMutation) Type() string
- func (m *DeviceMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *DeviceMutation) UtcActive() (r string, exists bool)
- func (m *DeviceMutation) UtcActiveCleared() bool
- func (m *DeviceMutation) UtcCreate() (r string, exists bool)
- func (m *DeviceMutation) UtcCreateCleared() bool
- func (m *DeviceMutation) UtcModified() (r string, exists bool)
- func (m *DeviceMutation) UtcModifiedCleared() bool
- func (m *DeviceMutation) UtcOnline() (r string, exists bool)
- func (m *DeviceMutation) UtcOnlineCleared() bool
- func (m *DeviceMutation) Where(ps ...predicate.Device)
- func (m *DeviceMutation) WhereP(ps ...func(*sql.Selector))
- type DevicePageList
- type DevicePager
- type DevicePaginateOption
- type DeviceProp
- func (c *DeviceProp) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *DeviceProp) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dp *DeviceProp) QueryDevice() *DeviceQuery
- func (dp *DeviceProp) String() string
- func (dp *DeviceProp) Unwrap() *DeviceProp
- func (dp *DeviceProp) Update() *DevicePropUpdateOne
- func (dp *DeviceProp) Value(name string) (ent.Value, error)
- type DevicePropClient
- func (c *DevicePropClient) Create() *DevicePropCreate
- func (c *DevicePropClient) CreateBulk(builders ...*DevicePropCreate) *DevicePropCreateBulk
- func (c *DevicePropClient) Delete() *DevicePropDelete
- func (c *DevicePropClient) DeleteOne(dp *DeviceProp) *DevicePropDeleteOne
- func (c *DevicePropClient) DeleteOneID(id uint64) *DevicePropDeleteOne
- func (c *DevicePropClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *DevicePropClient) Get(ctx context.Context, id uint64) (*DeviceProp, error)
- func (c *DevicePropClient) GetX(ctx context.Context, id uint64) *DeviceProp
- func (c *DevicePropClient) Hooks() []Hook
- func (c *DevicePropClient) Intercept(interceptors ...Interceptor)
- func (c *DevicePropClient) Interceptors() []Interceptor
- func (c *DevicePropClient) MapCreateBulk(slice any, setFunc func(*DevicePropCreate, int)) *DevicePropCreateBulk
- func (c *DevicePropClient) Query() *DevicePropQuery
- func (c *DevicePropClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *DevicePropClient) QueryDevice(dp *DeviceProp) *DeviceQuery
- func (c *DevicePropClient) Update() *DevicePropUpdate
- func (c *DevicePropClient) UpdateOne(dp *DeviceProp) *DevicePropUpdateOne
- func (c *DevicePropClient) UpdateOneID(id uint64) *DevicePropUpdateOne
- func (c *DevicePropClient) Use(hooks ...Hook)
- type DevicePropCreate
- func (dpc *DevicePropCreate) Exec(ctx context.Context) error
- func (c *DevicePropCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dpc *DevicePropCreate) ExecX(ctx context.Context)
- func (dpc *DevicePropCreate) Mutation() *DevicePropMutation
- func (dpc *DevicePropCreate) OnConflict(opts ...sql.ConflictOption) *DevicePropUpsertOne
- func (dpc *DevicePropCreate) OnConflictColumns(columns ...string) *DevicePropUpsertOne
- func (c *DevicePropCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dpc *DevicePropCreate) Save(ctx context.Context) (*DeviceProp, error)
- func (dpc *DevicePropCreate) SaveX(ctx context.Context) *DeviceProp
- func (dpc *DevicePropCreate) SetCreatedAt(t time.Time) *DevicePropCreate
- func (dpc *DevicePropCreate) SetDevice(d *Device) *DevicePropCreate
- func (dpc *DevicePropCreate) SetDeviceID(id uuid.UUID) *DevicePropCreate
- func (dpc *DevicePropCreate) SetID(u uint64) *DevicePropCreate
- func (dpc *DevicePropCreate) SetIotID(s string) *DevicePropCreate
- func (dpc *DevicePropCreate) SetNillableCreatedAt(t *time.Time) *DevicePropCreate
- func (dpc *DevicePropCreate) SetNillableDeviceID(id *uuid.UUID) *DevicePropCreate
- func (dpc *DevicePropCreate) SetNillableSort(u *uint32) *DevicePropCreate
- func (dpc *DevicePropCreate) SetNillableStatus(u *uint8) *DevicePropCreate
- func (dpc *DevicePropCreate) SetNillableUpdatedAt(t *time.Time) *DevicePropCreate
- func (dp *DevicePropCreate) SetNotNilIotID(value *string) *DevicePropCreate
- func (dp *DevicePropCreate) SetNotNilProps(value *string) *DevicePropCreate
- func (dp *DevicePropCreate) SetNotNilSort(value *uint32) *DevicePropCreate
- func (dp *DevicePropCreate) SetNotNilStatus(value *uint8) *DevicePropCreate
- func (dp *DevicePropCreate) SetNotNilUpdatedAt(value *time.Time) *DevicePropCreate
- func (dpc *DevicePropCreate) SetProps(s string) *DevicePropCreate
- func (dpc *DevicePropCreate) SetSort(u uint32) *DevicePropCreate
- func (dpc *DevicePropCreate) SetStatus(u uint8) *DevicePropCreate
- func (dpc *DevicePropCreate) SetUpdatedAt(t time.Time) *DevicePropCreate
- type DevicePropCreateBulk
- func (dpcb *DevicePropCreateBulk) Exec(ctx context.Context) error
- func (c *DevicePropCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dpcb *DevicePropCreateBulk) ExecX(ctx context.Context)
- func (dpcb *DevicePropCreateBulk) OnConflict(opts ...sql.ConflictOption) *DevicePropUpsertBulk
- func (dpcb *DevicePropCreateBulk) OnConflictColumns(columns ...string) *DevicePropUpsertBulk
- func (c *DevicePropCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dpcb *DevicePropCreateBulk) Save(ctx context.Context) ([]*DeviceProp, error)
- func (dpcb *DevicePropCreateBulk) SaveX(ctx context.Context) []*DeviceProp
- type DevicePropDelete
- func (dpd *DevicePropDelete) Exec(ctx context.Context) (int, error)
- func (c *DevicePropDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dpd *DevicePropDelete) ExecX(ctx context.Context) int
- func (c *DevicePropDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dpd *DevicePropDelete) Where(ps ...predicate.DeviceProp) *DevicePropDelete
- type DevicePropDeleteOne
- type DevicePropEdges
- type DevicePropGroupBy
- func (dpgb *DevicePropGroupBy) Aggregate(fns ...AggregateFunc) *DevicePropGroupBy
- func (s *DevicePropGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *DevicePropGroupBy) BoolX(ctx context.Context) bool
- func (s *DevicePropGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *DevicePropGroupBy) BoolsX(ctx context.Context) []bool
- func (s *DevicePropGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *DevicePropGroupBy) Float64X(ctx context.Context) float64
- func (s *DevicePropGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *DevicePropGroupBy) Float64sX(ctx context.Context) []float64
- func (s *DevicePropGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *DevicePropGroupBy) IntX(ctx context.Context) int
- func (s *DevicePropGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *DevicePropGroupBy) IntsX(ctx context.Context) []int
- func (dpgb *DevicePropGroupBy) Scan(ctx context.Context, v any) error
- func (s *DevicePropGroupBy) ScanX(ctx context.Context, v any)
- func (s *DevicePropGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *DevicePropGroupBy) StringX(ctx context.Context) string
- func (s *DevicePropGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *DevicePropGroupBy) StringsX(ctx context.Context) []string
- type DevicePropMutation
- func (m *DevicePropMutation) AddField(name string, value ent.Value) error
- func (m *DevicePropMutation) AddSort(u int32)
- func (m *DevicePropMutation) AddStatus(u int8)
- func (m *DevicePropMutation) AddedEdges() []string
- func (m *DevicePropMutation) AddedField(name string) (ent.Value, bool)
- func (m *DevicePropMutation) AddedFields() []string
- func (m *DevicePropMutation) AddedIDs(name string) []ent.Value
- func (m *DevicePropMutation) AddedSort() (r int32, exists bool)
- func (m *DevicePropMutation) AddedStatus() (r int8, exists bool)
- func (m *DevicePropMutation) ClearDevice()
- func (m *DevicePropMutation) ClearEdge(name string) error
- func (m *DevicePropMutation) ClearField(name string) error
- func (m *DevicePropMutation) ClearStatus()
- func (m *DevicePropMutation) ClearedEdges() []string
- func (m *DevicePropMutation) ClearedFields() []string
- func (m DevicePropMutation) Client() *Client
- func (m *DevicePropMutation) CreatedAt() (r time.Time, exists bool)
- func (m *DevicePropMutation) DeviceCleared() bool
- func (m *DevicePropMutation) DeviceID() (id uuid.UUID, exists bool)
- func (m *DevicePropMutation) DeviceIDs() (ids []uuid.UUID)
- func (m *DevicePropMutation) EdgeCleared(name string) bool
- func (c *DevicePropMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *DevicePropMutation) Field(name string) (ent.Value, bool)
- func (m *DevicePropMutation) FieldCleared(name string) bool
- func (m *DevicePropMutation) Fields() []string
- func (m *DevicePropMutation) ID() (id uint64, exists bool)
- func (m *DevicePropMutation) IDs(ctx context.Context) ([]uint64, error)
- func (m *DevicePropMutation) IotID() (r string, exists bool)
- func (m *DevicePropMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *DevicePropMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *DevicePropMutation) OldIotID(ctx context.Context) (v string, err error)
- func (m *DevicePropMutation) OldProps(ctx context.Context) (v string, err error)
- func (m *DevicePropMutation) OldSort(ctx context.Context) (v uint32, err error)
- func (m *DevicePropMutation) OldStatus(ctx context.Context) (v uint8, err error)
- func (m *DevicePropMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *DevicePropMutation) Op() Op
- func (m *DevicePropMutation) Props() (r string, exists bool)
- func (c *DevicePropMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *DevicePropMutation) RemovedEdges() []string
- func (m *DevicePropMutation) RemovedIDs(name string) []ent.Value
- func (m *DevicePropMutation) ResetCreatedAt()
- func (m *DevicePropMutation) ResetDevice()
- func (m *DevicePropMutation) ResetEdge(name string) error
- func (m *DevicePropMutation) ResetField(name string) error
- func (m *DevicePropMutation) ResetIotID()
- func (m *DevicePropMutation) ResetProps()
- func (m *DevicePropMutation) ResetSort()
- func (m *DevicePropMutation) ResetStatus()
- func (m *DevicePropMutation) ResetUpdatedAt()
- func (m *DevicePropMutation) SetCreatedAt(t time.Time)
- func (m *DevicePropMutation) SetDeviceID(id uuid.UUID)
- func (m *DevicePropMutation) SetField(name string, value ent.Value) error
- func (m *DevicePropMutation) SetID(id uint64)
- func (m *DevicePropMutation) SetIotID(s string)
- func (m *DevicePropMutation) SetOp(op Op)
- func (m *DevicePropMutation) SetProps(s string)
- func (m *DevicePropMutation) SetSort(u uint32)
- func (m *DevicePropMutation) SetStatus(u uint8)
- func (m *DevicePropMutation) SetUpdatedAt(t time.Time)
- func (m *DevicePropMutation) Sort() (r uint32, exists bool)
- func (m *DevicePropMutation) Status() (r uint8, exists bool)
- func (m *DevicePropMutation) StatusCleared() bool
- func (m DevicePropMutation) Tx() (*Tx, error)
- func (m *DevicePropMutation) Type() string
- func (m *DevicePropMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *DevicePropMutation) Where(ps ...predicate.DeviceProp)
- func (m *DevicePropMutation) WhereP(ps ...func(*sql.Selector))
- type DevicePropPageList
- type DevicePropPager
- type DevicePropPaginateOption
- type DevicePropQuery
- func (dpq *DevicePropQuery) Aggregate(fns ...AggregateFunc) *DevicePropSelect
- func (dpq *DevicePropQuery) All(ctx context.Context) ([]*DeviceProp, error)
- func (dpq *DevicePropQuery) AllX(ctx context.Context) []*DeviceProp
- func (dpq *DevicePropQuery) Clone() *DevicePropQuery
- func (dpq *DevicePropQuery) Count(ctx context.Context) (int, error)
- func (dpq *DevicePropQuery) CountX(ctx context.Context) int
- func (c *DevicePropQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dpq *DevicePropQuery) Exist(ctx context.Context) (bool, error)
- func (dpq *DevicePropQuery) ExistX(ctx context.Context) bool
- func (dpq *DevicePropQuery) First(ctx context.Context) (*DeviceProp, error)
- func (dpq *DevicePropQuery) FirstID(ctx context.Context) (id uint64, err error)
- func (dpq *DevicePropQuery) FirstIDX(ctx context.Context) uint64
- func (dpq *DevicePropQuery) FirstX(ctx context.Context) *DeviceProp
- func (dpq *DevicePropQuery) GroupBy(field string, fields ...string) *DevicePropGroupBy
- func (dpq *DevicePropQuery) IDs(ctx context.Context) (ids []uint64, err error)
- func (dpq *DevicePropQuery) IDsX(ctx context.Context) []uint64
- func (dpq *DevicePropQuery) Limit(limit int) *DevicePropQuery
- func (dpq *DevicePropQuery) Modify(modifiers ...func(s *sql.Selector)) *DevicePropSelect
- func (dpq *DevicePropQuery) Offset(offset int) *DevicePropQuery
- func (dpq *DevicePropQuery) Only(ctx context.Context) (*DeviceProp, error)
- func (dpq *DevicePropQuery) OnlyID(ctx context.Context) (id uint64, err error)
- func (dpq *DevicePropQuery) OnlyIDX(ctx context.Context) uint64
- func (dpq *DevicePropQuery) OnlyX(ctx context.Context) *DeviceProp
- func (dpq *DevicePropQuery) Order(o ...deviceprop.OrderOption) *DevicePropQuery
- func (dp *DevicePropQuery) Page(ctx context.Context, pageNum uint64, pageSize uint64, ...) (*DevicePropPageList, error)
- func (c *DevicePropQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dpq *DevicePropQuery) QueryDevice() *DeviceQuery
- func (dpq *DevicePropQuery) Select(fields ...string) *DevicePropSelect
- func (dpq *DevicePropQuery) Unique(unique bool) *DevicePropQuery
- func (dpq *DevicePropQuery) Where(ps ...predicate.DeviceProp) *DevicePropQuery
- func (dpq *DevicePropQuery) WithDevice(opts ...func(*DeviceQuery)) *DevicePropQuery
- type DevicePropSelect
- func (dps *DevicePropSelect) Aggregate(fns ...AggregateFunc) *DevicePropSelect
- func (s *DevicePropSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *DevicePropSelect) BoolX(ctx context.Context) bool
- func (s *DevicePropSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *DevicePropSelect) BoolsX(ctx context.Context) []bool
- func (c DevicePropSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *DevicePropSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *DevicePropSelect) Float64X(ctx context.Context) float64
- func (s *DevicePropSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *DevicePropSelect) Float64sX(ctx context.Context) []float64
- func (s *DevicePropSelect) Int(ctx context.Context) (_ int, err error)
- func (s *DevicePropSelect) IntX(ctx context.Context) int
- func (s *DevicePropSelect) Ints(ctx context.Context) ([]int, error)
- func (s *DevicePropSelect) IntsX(ctx context.Context) []int
- func (dps *DevicePropSelect) Modify(modifiers ...func(s *sql.Selector)) *DevicePropSelect
- func (c DevicePropSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dps *DevicePropSelect) Scan(ctx context.Context, v any) error
- func (s *DevicePropSelect) ScanX(ctx context.Context, v any)
- func (s *DevicePropSelect) String(ctx context.Context) (_ string, err error)
- func (s *DevicePropSelect) StringX(ctx context.Context) string
- func (s *DevicePropSelect) Strings(ctx context.Context) ([]string, error)
- func (s *DevicePropSelect) StringsX(ctx context.Context) []string
- type DevicePropUpdate
- func (dpu *DevicePropUpdate) AddSort(u int32) *DevicePropUpdate
- func (dpu *DevicePropUpdate) AddStatus(u int8) *DevicePropUpdate
- func (dpu *DevicePropUpdate) ClearDevice() *DevicePropUpdate
- func (dpu *DevicePropUpdate) ClearStatus() *DevicePropUpdate
- func (dpu *DevicePropUpdate) Exec(ctx context.Context) error
- func (c *DevicePropUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dpu *DevicePropUpdate) ExecX(ctx context.Context)
- func (dpu *DevicePropUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DevicePropUpdate
- func (dpu *DevicePropUpdate) Mutation() *DevicePropMutation
- func (c *DevicePropUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dpu *DevicePropUpdate) Save(ctx context.Context) (int, error)
- func (dpu *DevicePropUpdate) SaveX(ctx context.Context) int
- func (dpu *DevicePropUpdate) SetDevice(d *Device) *DevicePropUpdate
- func (dpu *DevicePropUpdate) SetDeviceID(id uuid.UUID) *DevicePropUpdate
- func (dpu *DevicePropUpdate) SetIotID(s string) *DevicePropUpdate
- func (dpu *DevicePropUpdate) SetNillableDeviceID(id *uuid.UUID) *DevicePropUpdate
- func (dpu *DevicePropUpdate) SetNillableIotID(s *string) *DevicePropUpdate
- func (dpu *DevicePropUpdate) SetNillableProps(s *string) *DevicePropUpdate
- func (dpu *DevicePropUpdate) SetNillableSort(u *uint32) *DevicePropUpdate
- func (dpu *DevicePropUpdate) SetNillableStatus(u *uint8) *DevicePropUpdate
- func (dp *DevicePropUpdate) SetNotNilIotID(value *string) *DevicePropUpdate
- func (dp *DevicePropUpdate) SetNotNilProps(value *string) *DevicePropUpdate
- func (dp *DevicePropUpdate) SetNotNilSort(value *uint32) *DevicePropUpdate
- func (dp *DevicePropUpdate) SetNotNilStatus(value *uint8) *DevicePropUpdate
- func (dp *DevicePropUpdate) SetNotNilUpdatedAt(value *time.Time) *DevicePropUpdate
- func (dpu *DevicePropUpdate) SetProps(s string) *DevicePropUpdate
- func (dpu *DevicePropUpdate) SetSort(u uint32) *DevicePropUpdate
- func (dpu *DevicePropUpdate) SetStatus(u uint8) *DevicePropUpdate
- func (dpu *DevicePropUpdate) SetUpdatedAt(t time.Time) *DevicePropUpdate
- func (dpu *DevicePropUpdate) Where(ps ...predicate.DeviceProp) *DevicePropUpdate
- type DevicePropUpdateOne
- func (dpuo *DevicePropUpdateOne) AddSort(u int32) *DevicePropUpdateOne
- func (dpuo *DevicePropUpdateOne) AddStatus(u int8) *DevicePropUpdateOne
- func (dpuo *DevicePropUpdateOne) ClearDevice() *DevicePropUpdateOne
- func (dpuo *DevicePropUpdateOne) ClearStatus() *DevicePropUpdateOne
- func (dpuo *DevicePropUpdateOne) Exec(ctx context.Context) error
- func (c *DevicePropUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dpuo *DevicePropUpdateOne) ExecX(ctx context.Context)
- func (dpuo *DevicePropUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DevicePropUpdateOne
- func (dpuo *DevicePropUpdateOne) Mutation() *DevicePropMutation
- func (c *DevicePropUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dpuo *DevicePropUpdateOne) Save(ctx context.Context) (*DeviceProp, error)
- func (dpuo *DevicePropUpdateOne) SaveX(ctx context.Context) *DeviceProp
- func (dpuo *DevicePropUpdateOne) Select(field string, fields ...string) *DevicePropUpdateOne
- func (dpuo *DevicePropUpdateOne) SetDevice(d *Device) *DevicePropUpdateOne
- func (dpuo *DevicePropUpdateOne) SetDeviceID(id uuid.UUID) *DevicePropUpdateOne
- func (dpuo *DevicePropUpdateOne) SetIotID(s string) *DevicePropUpdateOne
- func (dpuo *DevicePropUpdateOne) SetNillableDeviceID(id *uuid.UUID) *DevicePropUpdateOne
- func (dpuo *DevicePropUpdateOne) SetNillableIotID(s *string) *DevicePropUpdateOne
- func (dpuo *DevicePropUpdateOne) SetNillableProps(s *string) *DevicePropUpdateOne
- func (dpuo *DevicePropUpdateOne) SetNillableSort(u *uint32) *DevicePropUpdateOne
- func (dpuo *DevicePropUpdateOne) SetNillableStatus(u *uint8) *DevicePropUpdateOne
- func (dp *DevicePropUpdateOne) SetNotNilIotID(value *string) *DevicePropUpdateOne
- func (dp *DevicePropUpdateOne) SetNotNilProps(value *string) *DevicePropUpdateOne
- func (dp *DevicePropUpdateOne) SetNotNilSort(value *uint32) *DevicePropUpdateOne
- func (dp *DevicePropUpdateOne) SetNotNilStatus(value *uint8) *DevicePropUpdateOne
- func (dp *DevicePropUpdateOne) SetNotNilUpdatedAt(value *time.Time) *DevicePropUpdateOne
- func (dpuo *DevicePropUpdateOne) SetProps(s string) *DevicePropUpdateOne
- func (dpuo *DevicePropUpdateOne) SetSort(u uint32) *DevicePropUpdateOne
- func (dpuo *DevicePropUpdateOne) SetStatus(u uint8) *DevicePropUpdateOne
- func (dpuo *DevicePropUpdateOne) SetUpdatedAt(t time.Time) *DevicePropUpdateOne
- func (dpuo *DevicePropUpdateOne) Where(ps ...predicate.DeviceProp) *DevicePropUpdateOne
- type DevicePropUpsert
- func (u *DevicePropUpsert) AddSort(v uint32) *DevicePropUpsert
- func (u *DevicePropUpsert) AddStatus(v uint8) *DevicePropUpsert
- func (u *DevicePropUpsert) ClearStatus() *DevicePropUpsert
- func (u *DevicePropUpsert) SetIotID(v string) *DevicePropUpsert
- func (u *DevicePropUpsert) SetProps(v string) *DevicePropUpsert
- func (u *DevicePropUpsert) SetSort(v uint32) *DevicePropUpsert
- func (u *DevicePropUpsert) SetStatus(v uint8) *DevicePropUpsert
- func (u *DevicePropUpsert) SetUpdatedAt(v time.Time) *DevicePropUpsert
- func (u *DevicePropUpsert) UpdateIotID() *DevicePropUpsert
- func (u *DevicePropUpsert) UpdateProps() *DevicePropUpsert
- func (u *DevicePropUpsert) UpdateSort() *DevicePropUpsert
- func (u *DevicePropUpsert) UpdateStatus() *DevicePropUpsert
- func (u *DevicePropUpsert) UpdateUpdatedAt() *DevicePropUpsert
- type DevicePropUpsertBulk
- func (u *DevicePropUpsertBulk) AddSort(v uint32) *DevicePropUpsertBulk
- func (u *DevicePropUpsertBulk) AddStatus(v uint8) *DevicePropUpsertBulk
- func (u *DevicePropUpsertBulk) ClearStatus() *DevicePropUpsertBulk
- func (u *DevicePropUpsertBulk) DoNothing() *DevicePropUpsertBulk
- func (u *DevicePropUpsertBulk) Exec(ctx context.Context) error
- func (u *DevicePropUpsertBulk) ExecX(ctx context.Context)
- func (u *DevicePropUpsertBulk) Ignore() *DevicePropUpsertBulk
- func (u *DevicePropUpsertBulk) SetIotID(v string) *DevicePropUpsertBulk
- func (u *DevicePropUpsertBulk) SetProps(v string) *DevicePropUpsertBulk
- func (u *DevicePropUpsertBulk) SetSort(v uint32) *DevicePropUpsertBulk
- func (u *DevicePropUpsertBulk) SetStatus(v uint8) *DevicePropUpsertBulk
- func (u *DevicePropUpsertBulk) SetUpdatedAt(v time.Time) *DevicePropUpsertBulk
- func (u *DevicePropUpsertBulk) Update(set func(*DevicePropUpsert)) *DevicePropUpsertBulk
- func (u *DevicePropUpsertBulk) UpdateIotID() *DevicePropUpsertBulk
- func (u *DevicePropUpsertBulk) UpdateNewValues() *DevicePropUpsertBulk
- func (u *DevicePropUpsertBulk) UpdateProps() *DevicePropUpsertBulk
- func (u *DevicePropUpsertBulk) UpdateSort() *DevicePropUpsertBulk
- func (u *DevicePropUpsertBulk) UpdateStatus() *DevicePropUpsertBulk
- func (u *DevicePropUpsertBulk) UpdateUpdatedAt() *DevicePropUpsertBulk
- type DevicePropUpsertOne
- func (u *DevicePropUpsertOne) AddSort(v uint32) *DevicePropUpsertOne
- func (u *DevicePropUpsertOne) AddStatus(v uint8) *DevicePropUpsertOne
- func (u *DevicePropUpsertOne) ClearStatus() *DevicePropUpsertOne
- func (u *DevicePropUpsertOne) DoNothing() *DevicePropUpsertOne
- func (u *DevicePropUpsertOne) Exec(ctx context.Context) error
- func (u *DevicePropUpsertOne) ExecX(ctx context.Context)
- func (u *DevicePropUpsertOne) ID(ctx context.Context) (id uint64, err error)
- func (u *DevicePropUpsertOne) IDX(ctx context.Context) uint64
- func (u *DevicePropUpsertOne) Ignore() *DevicePropUpsertOne
- func (u *DevicePropUpsertOne) SetIotID(v string) *DevicePropUpsertOne
- func (u *DevicePropUpsertOne) SetProps(v string) *DevicePropUpsertOne
- func (u *DevicePropUpsertOne) SetSort(v uint32) *DevicePropUpsertOne
- func (u *DevicePropUpsertOne) SetStatus(v uint8) *DevicePropUpsertOne
- func (u *DevicePropUpsertOne) SetUpdatedAt(v time.Time) *DevicePropUpsertOne
- func (u *DevicePropUpsertOne) Update(set func(*DevicePropUpsert)) *DevicePropUpsertOne
- func (u *DevicePropUpsertOne) UpdateIotID() *DevicePropUpsertOne
- func (u *DevicePropUpsertOne) UpdateNewValues() *DevicePropUpsertOne
- func (u *DevicePropUpsertOne) UpdateProps() *DevicePropUpsertOne
- func (u *DevicePropUpsertOne) UpdateSort() *DevicePropUpsertOne
- func (u *DevicePropUpsertOne) UpdateStatus() *DevicePropUpsertOne
- func (u *DevicePropUpsertOne) UpdateUpdatedAt() *DevicePropUpsertOne
- type DeviceProps
- type DeviceQuery
- func (dq *DeviceQuery) Aggregate(fns ...AggregateFunc) *DeviceSelect
- func (dq *DeviceQuery) All(ctx context.Context) ([]*Device, error)
- func (dq *DeviceQuery) AllX(ctx context.Context) []*Device
- func (dq *DeviceQuery) Clone() *DeviceQuery
- func (dq *DeviceQuery) Count(ctx context.Context) (int, error)
- func (dq *DeviceQuery) CountX(ctx context.Context) int
- func (c *DeviceQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (dq *DeviceQuery) Exist(ctx context.Context) (bool, error)
- func (dq *DeviceQuery) ExistX(ctx context.Context) bool
- func (dq *DeviceQuery) First(ctx context.Context) (*Device, error)
- func (dq *DeviceQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (dq *DeviceQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (dq *DeviceQuery) FirstX(ctx context.Context) *Device
- func (dq *DeviceQuery) GroupBy(field string, fields ...string) *DeviceGroupBy
- func (dq *DeviceQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (dq *DeviceQuery) IDsX(ctx context.Context) []uuid.UUID
- func (dq *DeviceQuery) Limit(limit int) *DeviceQuery
- func (dq *DeviceQuery) Modify(modifiers ...func(s *sql.Selector)) *DeviceSelect
- func (dq *DeviceQuery) Offset(offset int) *DeviceQuery
- func (dq *DeviceQuery) Only(ctx context.Context) (*Device, error)
- func (dq *DeviceQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (dq *DeviceQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (dq *DeviceQuery) OnlyX(ctx context.Context) *Device
- func (dq *DeviceQuery) Order(o ...device.OrderOption) *DeviceQuery
- func (d *DeviceQuery) Page(ctx context.Context, pageNum uint64, pageSize uint64, ...) (*DevicePageList, error)
- func (dq *DeviceQuery) QueryCompanies() *CompanyQuery
- func (c *DeviceQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (dq *DeviceQuery) QueryMembers() *MemberQuery
- func (dq *DeviceQuery) QueryProduct() *ProductQuery
- func (dq *DeviceQuery) QueryProp() *DevicePropQuery
- func (dq *DeviceQuery) Select(fields ...string) *DeviceSelect
- func (dq *DeviceQuery) Unique(unique bool) *DeviceQuery
- func (dq *DeviceQuery) Where(ps ...predicate.Device) *DeviceQuery
- func (dq *DeviceQuery) WithCompanies(opts ...func(*CompanyQuery)) *DeviceQuery
- func (dq *DeviceQuery) WithMembers(opts ...func(*MemberQuery)) *DeviceQuery
- func (dq *DeviceQuery) WithProduct(opts ...func(*ProductQuery)) *DeviceQuery
- func (dq *DeviceQuery) WithProp(opts ...func(*DevicePropQuery)) *DeviceQuery
- type DeviceSelect
- func (ds *DeviceSelect) Aggregate(fns ...AggregateFunc) *DeviceSelect
- func (s *DeviceSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *DeviceSelect) BoolX(ctx context.Context) bool
- func (s *DeviceSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *DeviceSelect) BoolsX(ctx context.Context) []bool
- func (c DeviceSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *DeviceSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *DeviceSelect) Float64X(ctx context.Context) float64
- func (s *DeviceSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *DeviceSelect) Float64sX(ctx context.Context) []float64
- func (s *DeviceSelect) Int(ctx context.Context) (_ int, err error)
- func (s *DeviceSelect) IntX(ctx context.Context) int
- func (s *DeviceSelect) Ints(ctx context.Context) ([]int, error)
- func (s *DeviceSelect) IntsX(ctx context.Context) []int
- func (ds *DeviceSelect) Modify(modifiers ...func(s *sql.Selector)) *DeviceSelect
- func (c DeviceSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ds *DeviceSelect) Scan(ctx context.Context, v any) error
- func (s *DeviceSelect) ScanX(ctx context.Context, v any)
- func (s *DeviceSelect) String(ctx context.Context) (_ string, err error)
- func (s *DeviceSelect) StringX(ctx context.Context) string
- func (s *DeviceSelect) Strings(ctx context.Context) ([]string, error)
- func (s *DeviceSelect) StringsX(ctx context.Context) []string
- type DeviceUpdate
- func (du *DeviceUpdate) AddCompanies(c ...*Company) *DeviceUpdate
- func (du *DeviceUpdate) AddCompanyIDs(ids ...uint64) *DeviceUpdate
- func (du *DeviceUpdate) AddMemberIDs(ids ...uuid.UUID) *DeviceUpdate
- func (du *DeviceUpdate) AddMembers(m ...*Member) *DeviceUpdate
- func (du *DeviceUpdate) AddNodeType(i int32) *DeviceUpdate
- func (du *DeviceUpdate) AddSort(u int32) *DeviceUpdate
- func (du *DeviceUpdate) AddStatus(u int8) *DeviceUpdate
- func (du *DeviceUpdate) ClearCompanies() *DeviceUpdate
- func (du *DeviceUpdate) ClearDeviceSecret() *DeviceUpdate
- func (du *DeviceUpdate) ClearDeviceStatus() *DeviceUpdate
- func (du *DeviceUpdate) ClearFirmwareVersion() *DeviceUpdate
- func (du *DeviceUpdate) ClearGmtActive() *DeviceUpdate
- func (du *DeviceUpdate) ClearGmtCreate() *DeviceUpdate
- func (du *DeviceUpdate) ClearGmtModified() *DeviceUpdate
- func (du *DeviceUpdate) ClearGmtOnline() *DeviceUpdate
- func (du *DeviceUpdate) ClearIPAddress() *DeviceUpdate
- func (du *DeviceUpdate) ClearMembers() *DeviceUpdate
- func (du *DeviceUpdate) ClearNickname() *DeviceUpdate
- func (du *DeviceUpdate) ClearOperationalStatusCode() *DeviceUpdate
- func (du *DeviceUpdate) ClearOwner() *DeviceUpdate
- func (du *DeviceUpdate) ClearProduct() *DeviceUpdate
- func (du *DeviceUpdate) ClearProductName() *DeviceUpdate
- func (du *DeviceUpdate) ClearProp() *DeviceUpdate
- func (du *DeviceUpdate) ClearRegion() *DeviceUpdate
- func (du *DeviceUpdate) ClearStatus() *DeviceUpdate
- func (du *DeviceUpdate) ClearUtcActive() *DeviceUpdate
- func (du *DeviceUpdate) ClearUtcCreate() *DeviceUpdate
- func (du *DeviceUpdate) ClearUtcModified() *DeviceUpdate
- func (du *DeviceUpdate) ClearUtcOnline() *DeviceUpdate
- func (du *DeviceUpdate) Exec(ctx context.Context) error
- func (c *DeviceUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (du *DeviceUpdate) ExecX(ctx context.Context)
- func (du *DeviceUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceUpdate
- func (du *DeviceUpdate) Mutation() *DeviceMutation
- func (c *DeviceUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (du *DeviceUpdate) RemoveCompanies(c ...*Company) *DeviceUpdate
- func (du *DeviceUpdate) RemoveCompanyIDs(ids ...uint64) *DeviceUpdate
- func (du *DeviceUpdate) RemoveMemberIDs(ids ...uuid.UUID) *DeviceUpdate
- func (du *DeviceUpdate) RemoveMembers(m ...*Member) *DeviceUpdate
- func (du *DeviceUpdate) Save(ctx context.Context) (int, error)
- func (du *DeviceUpdate) SaveX(ctx context.Context) int
- func (du *DeviceUpdate) SetDeviceName(s string) *DeviceUpdate
- func (du *DeviceUpdate) SetDeviceSecret(s string) *DeviceUpdate
- func (du *DeviceUpdate) SetDeviceStatus(s string) *DeviceUpdate
- func (du *DeviceUpdate) SetFirmwareVersion(s string) *DeviceUpdate
- func (du *DeviceUpdate) SetGmtActive(s string) *DeviceUpdate
- func (du *DeviceUpdate) SetGmtCreate(s string) *DeviceUpdate
- func (du *DeviceUpdate) SetGmtModified(s string) *DeviceUpdate
- func (du *DeviceUpdate) SetGmtOnline(s string) *DeviceUpdate
- func (du *DeviceUpdate) SetIPAddress(s string) *DeviceUpdate
- func (du *DeviceUpdate) SetIotID(s string) *DeviceUpdate
- func (du *DeviceUpdate) SetNickname(s string) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableDeviceName(s *string) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableDeviceSecret(s *string) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableDeviceStatus(s *string) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableFirmwareVersion(s *string) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableGmtActive(s *string) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableGmtCreate(s *string) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableGmtModified(s *string) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableGmtOnline(s *string) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableIPAddress(s *string) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableIotID(s *string) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableNickname(s *string) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableNodeType(i *int32) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableOperationalStatusCode(s *string) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableOwner(b *bool) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableProductID(id *uuid.UUID) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableProductKey(s *string) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableProductName(s *string) *DeviceUpdate
- func (du *DeviceUpdate) SetNillablePropID(id *uint64) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableRegion(s *string) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableSort(u *uint32) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableStatus(u *uint8) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableUtcActive(s *string) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableUtcCreate(s *string) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableUtcModified(s *string) *DeviceUpdate
- func (du *DeviceUpdate) SetNillableUtcOnline(s *string) *DeviceUpdate
- func (du *DeviceUpdate) SetNodeType(i int32) *DeviceUpdate
- func (d *DeviceUpdate) SetNotNilDeviceName(value *string) *DeviceUpdate
- func (d *DeviceUpdate) SetNotNilDeviceSecret(value *string) *DeviceUpdate
- func (d *DeviceUpdate) SetNotNilDeviceStatus(value *string) *DeviceUpdate
- func (d *DeviceUpdate) SetNotNilFirmwareVersion(value *string) *DeviceUpdate
- func (d *DeviceUpdate) SetNotNilGmtActive(value *string) *DeviceUpdate
- func (d *DeviceUpdate) SetNotNilGmtCreate(value *string) *DeviceUpdate
- func (d *DeviceUpdate) SetNotNilGmtModified(value *string) *DeviceUpdate
- func (d *DeviceUpdate) SetNotNilGmtOnline(value *string) *DeviceUpdate
- func (d *DeviceUpdate) SetNotNilIPAddress(value *string) *DeviceUpdate
- func (d *DeviceUpdate) SetNotNilIotID(value *string) *DeviceUpdate
- func (d *DeviceUpdate) SetNotNilNickname(value *string) *DeviceUpdate
- func (d *DeviceUpdate) SetNotNilNodeType(value *int32) *DeviceUpdate
- func (d *DeviceUpdate) SetNotNilOperationalStatusCode(value *string) *DeviceUpdate
- func (d *DeviceUpdate) SetNotNilOwner(value *bool) *DeviceUpdate
- func (d *DeviceUpdate) SetNotNilProductKey(value *string) *DeviceUpdate
- func (d *DeviceUpdate) SetNotNilProductName(value *string) *DeviceUpdate
- func (d *DeviceUpdate) SetNotNilRegion(value *string) *DeviceUpdate
- func (d *DeviceUpdate) SetNotNilSort(value *uint32) *DeviceUpdate
- func (d *DeviceUpdate) SetNotNilStatus(value *uint8) *DeviceUpdate
- func (d *DeviceUpdate) SetNotNilUpdatedAt(value *time.Time) *DeviceUpdate
- func (d *DeviceUpdate) SetNotNilUtcActive(value *string) *DeviceUpdate
- func (d *DeviceUpdate) SetNotNilUtcCreate(value *string) *DeviceUpdate
- func (d *DeviceUpdate) SetNotNilUtcModified(value *string) *DeviceUpdate
- func (d *DeviceUpdate) SetNotNilUtcOnline(value *string) *DeviceUpdate
- func (du *DeviceUpdate) SetOperationalStatusCode(s string) *DeviceUpdate
- func (du *DeviceUpdate) SetOwner(b bool) *DeviceUpdate
- func (du *DeviceUpdate) SetProduct(p *Product) *DeviceUpdate
- func (du *DeviceUpdate) SetProductID(id uuid.UUID) *DeviceUpdate
- func (du *DeviceUpdate) SetProductKey(s string) *DeviceUpdate
- func (du *DeviceUpdate) SetProductName(s string) *DeviceUpdate
- func (du *DeviceUpdate) SetProp(d *DeviceProp) *DeviceUpdate
- func (du *DeviceUpdate) SetPropID(id uint64) *DeviceUpdate
- func (du *DeviceUpdate) SetRegion(s string) *DeviceUpdate
- func (du *DeviceUpdate) SetSort(u uint32) *DeviceUpdate
- func (du *DeviceUpdate) SetStatus(u uint8) *DeviceUpdate
- func (du *DeviceUpdate) SetUpdatedAt(t time.Time) *DeviceUpdate
- func (du *DeviceUpdate) SetUtcActive(s string) *DeviceUpdate
- func (du *DeviceUpdate) SetUtcCreate(s string) *DeviceUpdate
- func (du *DeviceUpdate) SetUtcModified(s string) *DeviceUpdate
- func (du *DeviceUpdate) SetUtcOnline(s string) *DeviceUpdate
- func (du *DeviceUpdate) Where(ps ...predicate.Device) *DeviceUpdate
- type DeviceUpdateOne
- func (duo *DeviceUpdateOne) AddCompanies(c ...*Company) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) AddCompanyIDs(ids ...uint64) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) AddMemberIDs(ids ...uuid.UUID) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) AddMembers(m ...*Member) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) AddNodeType(i int32) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) AddSort(u int32) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) AddStatus(u int8) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearCompanies() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearDeviceSecret() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearDeviceStatus() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearFirmwareVersion() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearGmtActive() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearGmtCreate() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearGmtModified() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearGmtOnline() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearIPAddress() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearMembers() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearNickname() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearOperationalStatusCode() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearOwner() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearProduct() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearProductName() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearProp() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearRegion() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearStatus() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearUtcActive() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearUtcCreate() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearUtcModified() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) ClearUtcOnline() *DeviceUpdateOne
- func (duo *DeviceUpdateOne) Exec(ctx context.Context) error
- func (c *DeviceUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (duo *DeviceUpdateOne) ExecX(ctx context.Context)
- func (duo *DeviceUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) Mutation() *DeviceMutation
- func (c *DeviceUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (duo *DeviceUpdateOne) RemoveCompanies(c ...*Company) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) RemoveCompanyIDs(ids ...uint64) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) RemoveMemberIDs(ids ...uuid.UUID) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) RemoveMembers(m ...*Member) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) Save(ctx context.Context) (*Device, error)
- func (duo *DeviceUpdateOne) SaveX(ctx context.Context) *Device
- func (duo *DeviceUpdateOne) Select(field string, fields ...string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetDeviceName(s string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetDeviceSecret(s string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetDeviceStatus(s string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetFirmwareVersion(s string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetGmtActive(s string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetGmtCreate(s string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetGmtModified(s string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetGmtOnline(s string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetIPAddress(s string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetIotID(s string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNickname(s string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableDeviceName(s *string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableDeviceSecret(s *string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableDeviceStatus(s *string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableFirmwareVersion(s *string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableGmtActive(s *string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableGmtCreate(s *string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableGmtModified(s *string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableGmtOnline(s *string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableIPAddress(s *string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableIotID(s *string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableNickname(s *string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableNodeType(i *int32) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableOperationalStatusCode(s *string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableOwner(b *bool) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableProductID(id *uuid.UUID) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableProductKey(s *string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableProductName(s *string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillablePropID(id *uint64) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableRegion(s *string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableSort(u *uint32) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableStatus(u *uint8) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableUtcActive(s *string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableUtcCreate(s *string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableUtcModified(s *string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNillableUtcOnline(s *string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetNodeType(i int32) *DeviceUpdateOne
- func (d *DeviceUpdateOne) SetNotNilDeviceName(value *string) *DeviceUpdateOne
- func (d *DeviceUpdateOne) SetNotNilDeviceSecret(value *string) *DeviceUpdateOne
- func (d *DeviceUpdateOne) SetNotNilDeviceStatus(value *string) *DeviceUpdateOne
- func (d *DeviceUpdateOne) SetNotNilFirmwareVersion(value *string) *DeviceUpdateOne
- func (d *DeviceUpdateOne) SetNotNilGmtActive(value *string) *DeviceUpdateOne
- func (d *DeviceUpdateOne) SetNotNilGmtCreate(value *string) *DeviceUpdateOne
- func (d *DeviceUpdateOne) SetNotNilGmtModified(value *string) *DeviceUpdateOne
- func (d *DeviceUpdateOne) SetNotNilGmtOnline(value *string) *DeviceUpdateOne
- func (d *DeviceUpdateOne) SetNotNilIPAddress(value *string) *DeviceUpdateOne
- func (d *DeviceUpdateOne) SetNotNilIotID(value *string) *DeviceUpdateOne
- func (d *DeviceUpdateOne) SetNotNilNickname(value *string) *DeviceUpdateOne
- func (d *DeviceUpdateOne) SetNotNilNodeType(value *int32) *DeviceUpdateOne
- func (d *DeviceUpdateOne) SetNotNilOperationalStatusCode(value *string) *DeviceUpdateOne
- func (d *DeviceUpdateOne) SetNotNilOwner(value *bool) *DeviceUpdateOne
- func (d *DeviceUpdateOne) SetNotNilProductKey(value *string) *DeviceUpdateOne
- func (d *DeviceUpdateOne) SetNotNilProductName(value *string) *DeviceUpdateOne
- func (d *DeviceUpdateOne) SetNotNilRegion(value *string) *DeviceUpdateOne
- func (d *DeviceUpdateOne) SetNotNilSort(value *uint32) *DeviceUpdateOne
- func (d *DeviceUpdateOne) SetNotNilStatus(value *uint8) *DeviceUpdateOne
- func (d *DeviceUpdateOne) SetNotNilUpdatedAt(value *time.Time) *DeviceUpdateOne
- func (d *DeviceUpdateOne) SetNotNilUtcActive(value *string) *DeviceUpdateOne
- func (d *DeviceUpdateOne) SetNotNilUtcCreate(value *string) *DeviceUpdateOne
- func (d *DeviceUpdateOne) SetNotNilUtcModified(value *string) *DeviceUpdateOne
- func (d *DeviceUpdateOne) SetNotNilUtcOnline(value *string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetOperationalStatusCode(s string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetOwner(b bool) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetProduct(p *Product) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetProductID(id uuid.UUID) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetProductKey(s string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetProductName(s string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetProp(d *DeviceProp) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetPropID(id uint64) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetRegion(s string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetSort(u uint32) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetStatus(u uint8) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetUpdatedAt(t time.Time) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetUtcActive(s string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetUtcCreate(s string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetUtcModified(s string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) SetUtcOnline(s string) *DeviceUpdateOne
- func (duo *DeviceUpdateOne) Where(ps ...predicate.Device) *DeviceUpdateOne
- type DeviceUpsert
- func (u *DeviceUpsert) AddNodeType(v int32) *DeviceUpsert
- func (u *DeviceUpsert) AddSort(v uint32) *DeviceUpsert
- func (u *DeviceUpsert) AddStatus(v uint8) *DeviceUpsert
- func (u *DeviceUpsert) ClearDeviceSecret() *DeviceUpsert
- func (u *DeviceUpsert) ClearDeviceStatus() *DeviceUpsert
- func (u *DeviceUpsert) ClearFirmwareVersion() *DeviceUpsert
- func (u *DeviceUpsert) ClearGmtActive() *DeviceUpsert
- func (u *DeviceUpsert) ClearGmtCreate() *DeviceUpsert
- func (u *DeviceUpsert) ClearGmtModified() *DeviceUpsert
- func (u *DeviceUpsert) ClearGmtOnline() *DeviceUpsert
- func (u *DeviceUpsert) ClearIPAddress() *DeviceUpsert
- func (u *DeviceUpsert) ClearNickname() *DeviceUpsert
- func (u *DeviceUpsert) ClearOperationalStatusCode() *DeviceUpsert
- func (u *DeviceUpsert) ClearOwner() *DeviceUpsert
- func (u *DeviceUpsert) ClearProductName() *DeviceUpsert
- func (u *DeviceUpsert) ClearRegion() *DeviceUpsert
- func (u *DeviceUpsert) ClearStatus() *DeviceUpsert
- func (u *DeviceUpsert) ClearUtcActive() *DeviceUpsert
- func (u *DeviceUpsert) ClearUtcCreate() *DeviceUpsert
- func (u *DeviceUpsert) ClearUtcModified() *DeviceUpsert
- func (u *DeviceUpsert) ClearUtcOnline() *DeviceUpsert
- func (u *DeviceUpsert) SetDeviceName(v string) *DeviceUpsert
- func (u *DeviceUpsert) SetDeviceSecret(v string) *DeviceUpsert
- func (u *DeviceUpsert) SetDeviceStatus(v string) *DeviceUpsert
- func (u *DeviceUpsert) SetFirmwareVersion(v string) *DeviceUpsert
- func (u *DeviceUpsert) SetGmtActive(v string) *DeviceUpsert
- func (u *DeviceUpsert) SetGmtCreate(v string) *DeviceUpsert
- func (u *DeviceUpsert) SetGmtModified(v string) *DeviceUpsert
- func (u *DeviceUpsert) SetGmtOnline(v string) *DeviceUpsert
- func (u *DeviceUpsert) SetIPAddress(v string) *DeviceUpsert
- func (u *DeviceUpsert) SetIotID(v string) *DeviceUpsert
- func (u *DeviceUpsert) SetNickname(v string) *DeviceUpsert
- func (u *DeviceUpsert) SetNodeType(v int32) *DeviceUpsert
- func (u *DeviceUpsert) SetOperationalStatusCode(v string) *DeviceUpsert
- func (u *DeviceUpsert) SetOwner(v bool) *DeviceUpsert
- func (u *DeviceUpsert) SetProductKey(v string) *DeviceUpsert
- func (u *DeviceUpsert) SetProductName(v string) *DeviceUpsert
- func (u *DeviceUpsert) SetRegion(v string) *DeviceUpsert
- func (u *DeviceUpsert) SetSort(v uint32) *DeviceUpsert
- func (u *DeviceUpsert) SetStatus(v uint8) *DeviceUpsert
- func (u *DeviceUpsert) SetUpdatedAt(v time.Time) *DeviceUpsert
- func (u *DeviceUpsert) SetUtcActive(v string) *DeviceUpsert
- func (u *DeviceUpsert) SetUtcCreate(v string) *DeviceUpsert
- func (u *DeviceUpsert) SetUtcModified(v string) *DeviceUpsert
- func (u *DeviceUpsert) SetUtcOnline(v string) *DeviceUpsert
- func (u *DeviceUpsert) UpdateDeviceName() *DeviceUpsert
- func (u *DeviceUpsert) UpdateDeviceSecret() *DeviceUpsert
- func (u *DeviceUpsert) UpdateDeviceStatus() *DeviceUpsert
- func (u *DeviceUpsert) UpdateFirmwareVersion() *DeviceUpsert
- func (u *DeviceUpsert) UpdateGmtActive() *DeviceUpsert
- func (u *DeviceUpsert) UpdateGmtCreate() *DeviceUpsert
- func (u *DeviceUpsert) UpdateGmtModified() *DeviceUpsert
- func (u *DeviceUpsert) UpdateGmtOnline() *DeviceUpsert
- func (u *DeviceUpsert) UpdateIPAddress() *DeviceUpsert
- func (u *DeviceUpsert) UpdateIotID() *DeviceUpsert
- func (u *DeviceUpsert) UpdateNickname() *DeviceUpsert
- func (u *DeviceUpsert) UpdateNodeType() *DeviceUpsert
- func (u *DeviceUpsert) UpdateOperationalStatusCode() *DeviceUpsert
- func (u *DeviceUpsert) UpdateOwner() *DeviceUpsert
- func (u *DeviceUpsert) UpdateProductKey() *DeviceUpsert
- func (u *DeviceUpsert) UpdateProductName() *DeviceUpsert
- func (u *DeviceUpsert) UpdateRegion() *DeviceUpsert
- func (u *DeviceUpsert) UpdateSort() *DeviceUpsert
- func (u *DeviceUpsert) UpdateStatus() *DeviceUpsert
- func (u *DeviceUpsert) UpdateUpdatedAt() *DeviceUpsert
- func (u *DeviceUpsert) UpdateUtcActive() *DeviceUpsert
- func (u *DeviceUpsert) UpdateUtcCreate() *DeviceUpsert
- func (u *DeviceUpsert) UpdateUtcModified() *DeviceUpsert
- func (u *DeviceUpsert) UpdateUtcOnline() *DeviceUpsert
- type DeviceUpsertBulk
- func (u *DeviceUpsertBulk) AddNodeType(v int32) *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) AddSort(v uint32) *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) AddStatus(v uint8) *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) ClearDeviceSecret() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) ClearDeviceStatus() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) ClearFirmwareVersion() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) ClearGmtActive() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) ClearGmtCreate() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) ClearGmtModified() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) ClearGmtOnline() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) ClearIPAddress() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) ClearNickname() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) ClearOperationalStatusCode() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) ClearOwner() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) ClearProductName() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) ClearRegion() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) ClearStatus() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) ClearUtcActive() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) ClearUtcCreate() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) ClearUtcModified() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) ClearUtcOnline() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) DoNothing() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) Exec(ctx context.Context) error
- func (u *DeviceUpsertBulk) ExecX(ctx context.Context)
- func (u *DeviceUpsertBulk) Ignore() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) SetDeviceName(v string) *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) SetDeviceSecret(v string) *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) SetDeviceStatus(v string) *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) SetFirmwareVersion(v string) *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) SetGmtActive(v string) *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) SetGmtCreate(v string) *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) SetGmtModified(v string) *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) SetGmtOnline(v string) *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) SetIPAddress(v string) *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) SetIotID(v string) *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) SetNickname(v string) *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) SetNodeType(v int32) *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) SetOperationalStatusCode(v string) *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) SetOwner(v bool) *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) SetProductKey(v string) *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) SetProductName(v string) *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) SetRegion(v string) *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) SetSort(v uint32) *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) SetStatus(v uint8) *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) SetUpdatedAt(v time.Time) *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) SetUtcActive(v string) *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) SetUtcCreate(v string) *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) SetUtcModified(v string) *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) SetUtcOnline(v string) *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) Update(set func(*DeviceUpsert)) *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) UpdateDeviceName() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) UpdateDeviceSecret() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) UpdateDeviceStatus() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) UpdateFirmwareVersion() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) UpdateGmtActive() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) UpdateGmtCreate() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) UpdateGmtModified() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) UpdateGmtOnline() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) UpdateIPAddress() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) UpdateIotID() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) UpdateNewValues() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) UpdateNickname() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) UpdateNodeType() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) UpdateOperationalStatusCode() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) UpdateOwner() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) UpdateProductKey() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) UpdateProductName() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) UpdateRegion() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) UpdateSort() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) UpdateStatus() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) UpdateUpdatedAt() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) UpdateUtcActive() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) UpdateUtcCreate() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) UpdateUtcModified() *DeviceUpsertBulk
- func (u *DeviceUpsertBulk) UpdateUtcOnline() *DeviceUpsertBulk
- type DeviceUpsertOne
- func (u *DeviceUpsertOne) AddNodeType(v int32) *DeviceUpsertOne
- func (u *DeviceUpsertOne) AddSort(v uint32) *DeviceUpsertOne
- func (u *DeviceUpsertOne) AddStatus(v uint8) *DeviceUpsertOne
- func (u *DeviceUpsertOne) ClearDeviceSecret() *DeviceUpsertOne
- func (u *DeviceUpsertOne) ClearDeviceStatus() *DeviceUpsertOne
- func (u *DeviceUpsertOne) ClearFirmwareVersion() *DeviceUpsertOne
- func (u *DeviceUpsertOne) ClearGmtActive() *DeviceUpsertOne
- func (u *DeviceUpsertOne) ClearGmtCreate() *DeviceUpsertOne
- func (u *DeviceUpsertOne) ClearGmtModified() *DeviceUpsertOne
- func (u *DeviceUpsertOne) ClearGmtOnline() *DeviceUpsertOne
- func (u *DeviceUpsertOne) ClearIPAddress() *DeviceUpsertOne
- func (u *DeviceUpsertOne) ClearNickname() *DeviceUpsertOne
- func (u *DeviceUpsertOne) ClearOperationalStatusCode() *DeviceUpsertOne
- func (u *DeviceUpsertOne) ClearOwner() *DeviceUpsertOne
- func (u *DeviceUpsertOne) ClearProductName() *DeviceUpsertOne
- func (u *DeviceUpsertOne) ClearRegion() *DeviceUpsertOne
- func (u *DeviceUpsertOne) ClearStatus() *DeviceUpsertOne
- func (u *DeviceUpsertOne) ClearUtcActive() *DeviceUpsertOne
- func (u *DeviceUpsertOne) ClearUtcCreate() *DeviceUpsertOne
- func (u *DeviceUpsertOne) ClearUtcModified() *DeviceUpsertOne
- func (u *DeviceUpsertOne) ClearUtcOnline() *DeviceUpsertOne
- func (u *DeviceUpsertOne) DoNothing() *DeviceUpsertOne
- func (u *DeviceUpsertOne) Exec(ctx context.Context) error
- func (u *DeviceUpsertOne) ExecX(ctx context.Context)
- func (u *DeviceUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)
- func (u *DeviceUpsertOne) IDX(ctx context.Context) uuid.UUID
- func (u *DeviceUpsertOne) Ignore() *DeviceUpsertOne
- func (u *DeviceUpsertOne) SetDeviceName(v string) *DeviceUpsertOne
- func (u *DeviceUpsertOne) SetDeviceSecret(v string) *DeviceUpsertOne
- func (u *DeviceUpsertOne) SetDeviceStatus(v string) *DeviceUpsertOne
- func (u *DeviceUpsertOne) SetFirmwareVersion(v string) *DeviceUpsertOne
- func (u *DeviceUpsertOne) SetGmtActive(v string) *DeviceUpsertOne
- func (u *DeviceUpsertOne) SetGmtCreate(v string) *DeviceUpsertOne
- func (u *DeviceUpsertOne) SetGmtModified(v string) *DeviceUpsertOne
- func (u *DeviceUpsertOne) SetGmtOnline(v string) *DeviceUpsertOne
- func (u *DeviceUpsertOne) SetIPAddress(v string) *DeviceUpsertOne
- func (u *DeviceUpsertOne) SetIotID(v string) *DeviceUpsertOne
- func (u *DeviceUpsertOne) SetNickname(v string) *DeviceUpsertOne
- func (u *DeviceUpsertOne) SetNodeType(v int32) *DeviceUpsertOne
- func (u *DeviceUpsertOne) SetOperationalStatusCode(v string) *DeviceUpsertOne
- func (u *DeviceUpsertOne) SetOwner(v bool) *DeviceUpsertOne
- func (u *DeviceUpsertOne) SetProductKey(v string) *DeviceUpsertOne
- func (u *DeviceUpsertOne) SetProductName(v string) *DeviceUpsertOne
- func (u *DeviceUpsertOne) SetRegion(v string) *DeviceUpsertOne
- func (u *DeviceUpsertOne) SetSort(v uint32) *DeviceUpsertOne
- func (u *DeviceUpsertOne) SetStatus(v uint8) *DeviceUpsertOne
- func (u *DeviceUpsertOne) SetUpdatedAt(v time.Time) *DeviceUpsertOne
- func (u *DeviceUpsertOne) SetUtcActive(v string) *DeviceUpsertOne
- func (u *DeviceUpsertOne) SetUtcCreate(v string) *DeviceUpsertOne
- func (u *DeviceUpsertOne) SetUtcModified(v string) *DeviceUpsertOne
- func (u *DeviceUpsertOne) SetUtcOnline(v string) *DeviceUpsertOne
- func (u *DeviceUpsertOne) Update(set func(*DeviceUpsert)) *DeviceUpsertOne
- func (u *DeviceUpsertOne) UpdateDeviceName() *DeviceUpsertOne
- func (u *DeviceUpsertOne) UpdateDeviceSecret() *DeviceUpsertOne
- func (u *DeviceUpsertOne) UpdateDeviceStatus() *DeviceUpsertOne
- func (u *DeviceUpsertOne) UpdateFirmwareVersion() *DeviceUpsertOne
- func (u *DeviceUpsertOne) UpdateGmtActive() *DeviceUpsertOne
- func (u *DeviceUpsertOne) UpdateGmtCreate() *DeviceUpsertOne
- func (u *DeviceUpsertOne) UpdateGmtModified() *DeviceUpsertOne
- func (u *DeviceUpsertOne) UpdateGmtOnline() *DeviceUpsertOne
- func (u *DeviceUpsertOne) UpdateIPAddress() *DeviceUpsertOne
- func (u *DeviceUpsertOne) UpdateIotID() *DeviceUpsertOne
- func (u *DeviceUpsertOne) UpdateNewValues() *DeviceUpsertOne
- func (u *DeviceUpsertOne) UpdateNickname() *DeviceUpsertOne
- func (u *DeviceUpsertOne) UpdateNodeType() *DeviceUpsertOne
- func (u *DeviceUpsertOne) UpdateOperationalStatusCode() *DeviceUpsertOne
- func (u *DeviceUpsertOne) UpdateOwner() *DeviceUpsertOne
- func (u *DeviceUpsertOne) UpdateProductKey() *DeviceUpsertOne
- func (u *DeviceUpsertOne) UpdateProductName() *DeviceUpsertOne
- func (u *DeviceUpsertOne) UpdateRegion() *DeviceUpsertOne
- func (u *DeviceUpsertOne) UpdateSort() *DeviceUpsertOne
- func (u *DeviceUpsertOne) UpdateStatus() *DeviceUpsertOne
- func (u *DeviceUpsertOne) UpdateUpdatedAt() *DeviceUpsertOne
- func (u *DeviceUpsertOne) UpdateUtcActive() *DeviceUpsertOne
- func (u *DeviceUpsertOne) UpdateUtcCreate() *DeviceUpsertOne
- func (u *DeviceUpsertOne) UpdateUtcModified() *DeviceUpsertOne
- func (u *DeviceUpsertOne) UpdateUtcOnline() *DeviceUpsertOne
- type Devices
- type Hook
- type InterceptFunc
- type Interceptor
- type Member
- func (c *Member) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *Member) QueryCompanies() *CompanyQuery
- func (c *Member) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *Member) QueryDevices() *DeviceQuery
- func (m *Member) String() string
- func (m *Member) Unwrap() *Member
- func (m *Member) Update() *MemberUpdateOne
- func (m *Member) Value(name string) (ent.Value, error)
- type MemberClient
- func (c *MemberClient) Create() *MemberCreate
- func (c *MemberClient) CreateBulk(builders ...*MemberCreate) *MemberCreateBulk
- func (c *MemberClient) Delete() *MemberDelete
- func (c *MemberClient) DeleteOne(m *Member) *MemberDeleteOne
- func (c *MemberClient) DeleteOneID(id uuid.UUID) *MemberDeleteOne
- func (c *MemberClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *MemberClient) Get(ctx context.Context, id uuid.UUID) (*Member, error)
- func (c *MemberClient) GetX(ctx context.Context, id uuid.UUID) *Member
- func (c *MemberClient) Hooks() []Hook
- func (c *MemberClient) Intercept(interceptors ...Interceptor)
- func (c *MemberClient) Interceptors() []Interceptor
- func (c *MemberClient) MapCreateBulk(slice any, setFunc func(*MemberCreate, int)) *MemberCreateBulk
- func (c *MemberClient) Query() *MemberQuery
- func (c *MemberClient) QueryCompanies(m *Member) *CompanyQuery
- func (c *MemberClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *MemberClient) QueryDevices(m *Member) *DeviceQuery
- func (c *MemberClient) Update() *MemberUpdate
- func (c *MemberClient) UpdateOne(m *Member) *MemberUpdateOne
- func (c *MemberClient) UpdateOneID(id uuid.UUID) *MemberUpdateOne
- func (c *MemberClient) Use(hooks ...Hook)
- type MemberCreate
- func (mc *MemberCreate) AddDeviceIDs(ids ...uuid.UUID) *MemberCreate
- func (mc *MemberCreate) AddDevices(d ...*Device) *MemberCreate
- func (mc *MemberCreate) Exec(ctx context.Context) error
- func (c *MemberCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (mc *MemberCreate) ExecX(ctx context.Context)
- func (mc *MemberCreate) Mutation() *MemberMutation
- func (mc *MemberCreate) OnConflict(opts ...sql.ConflictOption) *MemberUpsertOne
- func (mc *MemberCreate) OnConflictColumns(columns ...string) *MemberUpsertOne
- func (c *MemberCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (mc *MemberCreate) Save(ctx context.Context) (*Member, error)
- func (mc *MemberCreate) SaveX(ctx context.Context) *Member
- func (mc *MemberCreate) SetAccount(s string) *MemberCreate
- func (mc *MemberCreate) SetAvatar(s string) *MemberCreate
- func (mc *MemberCreate) SetCompanies(c *Company) *MemberCreate
- func (mc *MemberCreate) SetCompaniesID(id uint64) *MemberCreate
- func (mc *MemberCreate) SetCompanyID(u uint64) *MemberCreate
- func (mc *MemberCreate) SetCountryCode(s string) *MemberCreate
- func (mc *MemberCreate) SetCreatedAt(t time.Time) *MemberCreate
- func (mc *MemberCreate) SetID(u uuid.UUID) *MemberCreate
- func (mc *MemberCreate) SetMobile(s string) *MemberCreate
- func (mc *MemberCreate) SetName(s string) *MemberCreate
- func (mc *MemberCreate) SetNillableAvatar(s *string) *MemberCreate
- func (mc *MemberCreate) SetNillableCompaniesID(id *uint64) *MemberCreate
- func (mc *MemberCreate) SetNillableCountryCode(s *string) *MemberCreate
- func (mc *MemberCreate) SetNillableCreatedAt(t *time.Time) *MemberCreate
- func (mc *MemberCreate) SetNillableID(u *uuid.UUID) *MemberCreate
- func (mc *MemberCreate) SetNillableSort(u *uint32) *MemberCreate
- func (mc *MemberCreate) SetNillableStatus(u *uint8) *MemberCreate
- func (mc *MemberCreate) SetNillableType(i *int32) *MemberCreate
- func (mc *MemberCreate) SetNillableUpdatedAt(t *time.Time) *MemberCreate
- func (m *MemberCreate) SetNotNilAccount(value *string) *MemberCreate
- func (m *MemberCreate) SetNotNilAvatar(value *string) *MemberCreate
- func (m *MemberCreate) SetNotNilCompanyID(value *uint64) *MemberCreate
- func (m *MemberCreate) SetNotNilCountryCode(value *string) *MemberCreate
- func (m *MemberCreate) SetNotNilMobile(value *string) *MemberCreate
- func (m *MemberCreate) SetNotNilName(value *string) *MemberCreate
- func (m *MemberCreate) SetNotNilPassword(value *string) *MemberCreate
- func (m *MemberCreate) SetNotNilSort(value *uint32) *MemberCreate
- func (m *MemberCreate) SetNotNilStatus(value *uint8) *MemberCreate
- func (m *MemberCreate) SetNotNilType(value *int32) *MemberCreate
- func (m *MemberCreate) SetNotNilUpdatedAt(value *time.Time) *MemberCreate
- func (mc *MemberCreate) SetPassword(s string) *MemberCreate
- func (mc *MemberCreate) SetSort(u uint32) *MemberCreate
- func (mc *MemberCreate) SetStatus(u uint8) *MemberCreate
- func (mc *MemberCreate) SetType(i int32) *MemberCreate
- func (mc *MemberCreate) SetUpdatedAt(t time.Time) *MemberCreate
- type MemberCreateBulk
- func (mcb *MemberCreateBulk) Exec(ctx context.Context) error
- func (c *MemberCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (mcb *MemberCreateBulk) ExecX(ctx context.Context)
- func (mcb *MemberCreateBulk) OnConflict(opts ...sql.ConflictOption) *MemberUpsertBulk
- func (mcb *MemberCreateBulk) OnConflictColumns(columns ...string) *MemberUpsertBulk
- func (c *MemberCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (mcb *MemberCreateBulk) Save(ctx context.Context) ([]*Member, error)
- func (mcb *MemberCreateBulk) SaveX(ctx context.Context) []*Member
- type MemberDelete
- func (md *MemberDelete) Exec(ctx context.Context) (int, error)
- func (c *MemberDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (md *MemberDelete) ExecX(ctx context.Context) int
- func (c *MemberDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (md *MemberDelete) Where(ps ...predicate.Member) *MemberDelete
- type MemberDeleteOne
- type MemberEdges
- type MemberGroupBy
- func (mgb *MemberGroupBy) Aggregate(fns ...AggregateFunc) *MemberGroupBy
- func (s *MemberGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *MemberGroupBy) BoolX(ctx context.Context) bool
- func (s *MemberGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *MemberGroupBy) BoolsX(ctx context.Context) []bool
- func (s *MemberGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *MemberGroupBy) Float64X(ctx context.Context) float64
- func (s *MemberGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *MemberGroupBy) Float64sX(ctx context.Context) []float64
- func (s *MemberGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *MemberGroupBy) IntX(ctx context.Context) int
- func (s *MemberGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *MemberGroupBy) IntsX(ctx context.Context) []int
- func (mgb *MemberGroupBy) Scan(ctx context.Context, v any) error
- func (s *MemberGroupBy) ScanX(ctx context.Context, v any)
- func (s *MemberGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *MemberGroupBy) StringX(ctx context.Context) string
- func (s *MemberGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *MemberGroupBy) StringsX(ctx context.Context) []string
- type MemberMutation
- func (m *MemberMutation) Account() (r string, exists bool)
- func (m *MemberMutation) AddCompanyID(u int64)
- func (m *MemberMutation) AddDeviceIDs(ids ...uuid.UUID)
- func (m *MemberMutation) AddField(name string, value ent.Value) error
- func (m *MemberMutation) AddSort(u int32)
- func (m *MemberMutation) AddStatus(u int8)
- func (m *MemberMutation) AddType(i int32)
- func (m *MemberMutation) AddedCompanyID() (r int64, exists bool)
- func (m *MemberMutation) AddedEdges() []string
- func (m *MemberMutation) AddedField(name string) (ent.Value, bool)
- func (m *MemberMutation) AddedFields() []string
- func (m *MemberMutation) AddedIDs(name string) []ent.Value
- func (m *MemberMutation) AddedSort() (r int32, exists bool)
- func (m *MemberMutation) AddedStatus() (r int8, exists bool)
- func (m *MemberMutation) AddedType() (r int32, exists bool)
- func (m *MemberMutation) Avatar() (r string, exists bool)
- func (m *MemberMutation) AvatarCleared() bool
- func (m *MemberMutation) ClearAvatar()
- func (m *MemberMutation) ClearCompanies()
- func (m *MemberMutation) ClearCountryCode()
- func (m *MemberMutation) ClearDevices()
- func (m *MemberMutation) ClearEdge(name string) error
- func (m *MemberMutation) ClearField(name string) error
- func (m *MemberMutation) ClearStatus()
- func (m *MemberMutation) ClearType()
- func (m *MemberMutation) ClearedEdges() []string
- func (m *MemberMutation) ClearedFields() []string
- func (m MemberMutation) Client() *Client
- func (m *MemberMutation) CompaniesCleared() bool
- func (m *MemberMutation) CompaniesID() (id uint64, exists bool)
- func (m *MemberMutation) CompaniesIDs() (ids []uint64)
- func (m *MemberMutation) CompanyID() (r uint64, exists bool)
- func (m *MemberMutation) CountryCode() (r string, exists bool)
- func (m *MemberMutation) CountryCodeCleared() bool
- func (m *MemberMutation) CreatedAt() (r time.Time, exists bool)
- func (m *MemberMutation) DevicesCleared() bool
- func (m *MemberMutation) DevicesIDs() (ids []uuid.UUID)
- func (m *MemberMutation) EdgeCleared(name string) bool
- func (c *MemberMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *MemberMutation) Field(name string) (ent.Value, bool)
- func (m *MemberMutation) FieldCleared(name string) bool
- func (m *MemberMutation) Fields() []string
- func (m *MemberMutation) GetType() (r int32, exists bool)
- func (m *MemberMutation) ID() (id uuid.UUID, exists bool)
- func (m *MemberMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *MemberMutation) Mobile() (r string, exists bool)
- func (m *MemberMutation) Name() (r string, exists bool)
- func (m *MemberMutation) OldAccount(ctx context.Context) (v string, err error)
- func (m *MemberMutation) OldAvatar(ctx context.Context) (v string, err error)
- func (m *MemberMutation) OldCompanyID(ctx context.Context) (v uint64, err error)
- func (m *MemberMutation) OldCountryCode(ctx context.Context) (v string, err error)
- func (m *MemberMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *MemberMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *MemberMutation) OldMobile(ctx context.Context) (v string, err error)
- func (m *MemberMutation) OldName(ctx context.Context) (v string, err error)
- func (m *MemberMutation) OldPassword(ctx context.Context) (v string, err error)
- func (m *MemberMutation) OldSort(ctx context.Context) (v uint32, err error)
- func (m *MemberMutation) OldStatus(ctx context.Context) (v uint8, err error)
- func (m *MemberMutation) OldType(ctx context.Context) (v int32, err error)
- func (m *MemberMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *MemberMutation) Op() Op
- func (m *MemberMutation) Password() (r string, exists bool)
- func (c *MemberMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *MemberMutation) RemoveDeviceIDs(ids ...uuid.UUID)
- func (m *MemberMutation) RemovedDevicesIDs() (ids []uuid.UUID)
- func (m *MemberMutation) RemovedEdges() []string
- func (m *MemberMutation) RemovedIDs(name string) []ent.Value
- func (m *MemberMutation) ResetAccount()
- func (m *MemberMutation) ResetAvatar()
- func (m *MemberMutation) ResetCompanies()
- func (m *MemberMutation) ResetCompanyID()
- func (m *MemberMutation) ResetCountryCode()
- func (m *MemberMutation) ResetCreatedAt()
- func (m *MemberMutation) ResetDevices()
- func (m *MemberMutation) ResetEdge(name string) error
- func (m *MemberMutation) ResetField(name string) error
- func (m *MemberMutation) ResetMobile()
- func (m *MemberMutation) ResetName()
- func (m *MemberMutation) ResetPassword()
- func (m *MemberMutation) ResetSort()
- func (m *MemberMutation) ResetStatus()
- func (m *MemberMutation) ResetType()
- func (m *MemberMutation) ResetUpdatedAt()
- func (m *MemberMutation) SetAccount(s string)
- func (m *MemberMutation) SetAvatar(s string)
- func (m *MemberMutation) SetCompaniesID(id uint64)
- func (m *MemberMutation) SetCompanyID(u uint64)
- func (m *MemberMutation) SetCountryCode(s string)
- func (m *MemberMutation) SetCreatedAt(t time.Time)
- func (m *MemberMutation) SetField(name string, value ent.Value) error
- func (m *MemberMutation) SetID(id uuid.UUID)
- func (m *MemberMutation) SetMobile(s string)
- func (m *MemberMutation) SetName(s string)
- func (m *MemberMutation) SetOp(op Op)
- func (m *MemberMutation) SetPassword(s string)
- func (m *MemberMutation) SetSort(u uint32)
- func (m *MemberMutation) SetStatus(u uint8)
- func (m *MemberMutation) SetType(i int32)
- func (m *MemberMutation) SetUpdatedAt(t time.Time)
- func (m *MemberMutation) Sort() (r uint32, exists bool)
- func (m *MemberMutation) Status() (r uint8, exists bool)
- func (m *MemberMutation) StatusCleared() bool
- func (m MemberMutation) Tx() (*Tx, error)
- func (m *MemberMutation) Type() string
- func (m *MemberMutation) TypeCleared() bool
- func (m *MemberMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *MemberMutation) Where(ps ...predicate.Member)
- func (m *MemberMutation) WhereP(ps ...func(*sql.Selector))
- type MemberPageList
- type MemberPager
- type MemberPaginateOption
- type MemberQuery
- func (mq *MemberQuery) Aggregate(fns ...AggregateFunc) *MemberSelect
- func (mq *MemberQuery) All(ctx context.Context) ([]*Member, error)
- func (mq *MemberQuery) AllX(ctx context.Context) []*Member
- func (mq *MemberQuery) Clone() *MemberQuery
- func (mq *MemberQuery) Count(ctx context.Context) (int, error)
- func (mq *MemberQuery) CountX(ctx context.Context) int
- func (c *MemberQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (mq *MemberQuery) Exist(ctx context.Context) (bool, error)
- func (mq *MemberQuery) ExistX(ctx context.Context) bool
- func (mq *MemberQuery) First(ctx context.Context) (*Member, error)
- func (mq *MemberQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (mq *MemberQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (mq *MemberQuery) FirstX(ctx context.Context) *Member
- func (mq *MemberQuery) GroupBy(field string, fields ...string) *MemberGroupBy
- func (mq *MemberQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (mq *MemberQuery) IDsX(ctx context.Context) []uuid.UUID
- func (mq *MemberQuery) Limit(limit int) *MemberQuery
- func (mq *MemberQuery) Modify(modifiers ...func(s *sql.Selector)) *MemberSelect
- func (mq *MemberQuery) Offset(offset int) *MemberQuery
- func (mq *MemberQuery) Only(ctx context.Context) (*Member, error)
- func (mq *MemberQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (mq *MemberQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (mq *MemberQuery) OnlyX(ctx context.Context) *Member
- func (mq *MemberQuery) Order(o ...member.OrderOption) *MemberQuery
- func (m *MemberQuery) Page(ctx context.Context, pageNum uint64, pageSize uint64, ...) (*MemberPageList, error)
- func (mq *MemberQuery) QueryCompanies() *CompanyQuery
- func (c *MemberQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (mq *MemberQuery) QueryDevices() *DeviceQuery
- func (mq *MemberQuery) Select(fields ...string) *MemberSelect
- func (mq *MemberQuery) Unique(unique bool) *MemberQuery
- func (mq *MemberQuery) Where(ps ...predicate.Member) *MemberQuery
- func (mq *MemberQuery) WithCompanies(opts ...func(*CompanyQuery)) *MemberQuery
- func (mq *MemberQuery) WithDevices(opts ...func(*DeviceQuery)) *MemberQuery
- type MemberSelect
- func (ms *MemberSelect) Aggregate(fns ...AggregateFunc) *MemberSelect
- func (s *MemberSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *MemberSelect) BoolX(ctx context.Context) bool
- func (s *MemberSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *MemberSelect) BoolsX(ctx context.Context) []bool
- func (c MemberSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *MemberSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *MemberSelect) Float64X(ctx context.Context) float64
- func (s *MemberSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *MemberSelect) Float64sX(ctx context.Context) []float64
- func (s *MemberSelect) Int(ctx context.Context) (_ int, err error)
- func (s *MemberSelect) IntX(ctx context.Context) int
- func (s *MemberSelect) Ints(ctx context.Context) ([]int, error)
- func (s *MemberSelect) IntsX(ctx context.Context) []int
- func (ms *MemberSelect) Modify(modifiers ...func(s *sql.Selector)) *MemberSelect
- func (c MemberSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ms *MemberSelect) Scan(ctx context.Context, v any) error
- func (s *MemberSelect) ScanX(ctx context.Context, v any)
- func (s *MemberSelect) String(ctx context.Context) (_ string, err error)
- func (s *MemberSelect) StringX(ctx context.Context) string
- func (s *MemberSelect) Strings(ctx context.Context) ([]string, error)
- func (s *MemberSelect) StringsX(ctx context.Context) []string
- type MemberUpdate
- func (mu *MemberUpdate) AddCompanyID(u int64) *MemberUpdate
- func (mu *MemberUpdate) AddDeviceIDs(ids ...uuid.UUID) *MemberUpdate
- func (mu *MemberUpdate) AddDevices(d ...*Device) *MemberUpdate
- func (mu *MemberUpdate) AddSort(u int32) *MemberUpdate
- func (mu *MemberUpdate) AddStatus(u int8) *MemberUpdate
- func (mu *MemberUpdate) AddType(i int32) *MemberUpdate
- func (mu *MemberUpdate) ClearAvatar() *MemberUpdate
- func (mu *MemberUpdate) ClearCompanies() *MemberUpdate
- func (mu *MemberUpdate) ClearCountryCode() *MemberUpdate
- func (mu *MemberUpdate) ClearDevices() *MemberUpdate
- func (mu *MemberUpdate) ClearStatus() *MemberUpdate
- func (mu *MemberUpdate) ClearType() *MemberUpdate
- func (mu *MemberUpdate) Exec(ctx context.Context) error
- func (c *MemberUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (mu *MemberUpdate) ExecX(ctx context.Context)
- func (mu *MemberUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *MemberUpdate
- func (mu *MemberUpdate) Mutation() *MemberMutation
- func (c *MemberUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (mu *MemberUpdate) RemoveDeviceIDs(ids ...uuid.UUID) *MemberUpdate
- func (mu *MemberUpdate) RemoveDevices(d ...*Device) *MemberUpdate
- func (mu *MemberUpdate) Save(ctx context.Context) (int, error)
- func (mu *MemberUpdate) SaveX(ctx context.Context) int
- func (mu *MemberUpdate) SetAccount(s string) *MemberUpdate
- func (mu *MemberUpdate) SetAvatar(s string) *MemberUpdate
- func (mu *MemberUpdate) SetCompanies(c *Company) *MemberUpdate
- func (mu *MemberUpdate) SetCompaniesID(id uint64) *MemberUpdate
- func (mu *MemberUpdate) SetCompanyID(u uint64) *MemberUpdate
- func (mu *MemberUpdate) SetCountryCode(s string) *MemberUpdate
- func (mu *MemberUpdate) SetMobile(s string) *MemberUpdate
- func (mu *MemberUpdate) SetName(s string) *MemberUpdate
- func (mu *MemberUpdate) SetNillableAccount(s *string) *MemberUpdate
- func (mu *MemberUpdate) SetNillableAvatar(s *string) *MemberUpdate
- func (mu *MemberUpdate) SetNillableCompaniesID(id *uint64) *MemberUpdate
- func (mu *MemberUpdate) SetNillableCompanyID(u *uint64) *MemberUpdate
- func (mu *MemberUpdate) SetNillableCountryCode(s *string) *MemberUpdate
- func (mu *MemberUpdate) SetNillableMobile(s *string) *MemberUpdate
- func (mu *MemberUpdate) SetNillableName(s *string) *MemberUpdate
- func (mu *MemberUpdate) SetNillablePassword(s *string) *MemberUpdate
- func (mu *MemberUpdate) SetNillableSort(u *uint32) *MemberUpdate
- func (mu *MemberUpdate) SetNillableStatus(u *uint8) *MemberUpdate
- func (mu *MemberUpdate) SetNillableType(i *int32) *MemberUpdate
- func (m *MemberUpdate) SetNotNilAccount(value *string) *MemberUpdate
- func (m *MemberUpdate) SetNotNilAvatar(value *string) *MemberUpdate
- func (m *MemberUpdate) SetNotNilCompanyID(value *uint64) *MemberUpdate
- func (m *MemberUpdate) SetNotNilCountryCode(value *string) *MemberUpdate
- func (m *MemberUpdate) SetNotNilMobile(value *string) *MemberUpdate
- func (m *MemberUpdate) SetNotNilName(value *string) *MemberUpdate
- func (m *MemberUpdate) SetNotNilPassword(value *string) *MemberUpdate
- func (m *MemberUpdate) SetNotNilSort(value *uint32) *MemberUpdate
- func (m *MemberUpdate) SetNotNilStatus(value *uint8) *MemberUpdate
- func (m *MemberUpdate) SetNotNilType(value *int32) *MemberUpdate
- func (m *MemberUpdate) SetNotNilUpdatedAt(value *time.Time) *MemberUpdate
- func (mu *MemberUpdate) SetPassword(s string) *MemberUpdate
- func (mu *MemberUpdate) SetSort(u uint32) *MemberUpdate
- func (mu *MemberUpdate) SetStatus(u uint8) *MemberUpdate
- func (mu *MemberUpdate) SetType(i int32) *MemberUpdate
- func (mu *MemberUpdate) SetUpdatedAt(t time.Time) *MemberUpdate
- func (mu *MemberUpdate) Where(ps ...predicate.Member) *MemberUpdate
- type MemberUpdateOne
- func (muo *MemberUpdateOne) AddCompanyID(u int64) *MemberUpdateOne
- func (muo *MemberUpdateOne) AddDeviceIDs(ids ...uuid.UUID) *MemberUpdateOne
- func (muo *MemberUpdateOne) AddDevices(d ...*Device) *MemberUpdateOne
- func (muo *MemberUpdateOne) AddSort(u int32) *MemberUpdateOne
- func (muo *MemberUpdateOne) AddStatus(u int8) *MemberUpdateOne
- func (muo *MemberUpdateOne) AddType(i int32) *MemberUpdateOne
- func (muo *MemberUpdateOne) ClearAvatar() *MemberUpdateOne
- func (muo *MemberUpdateOne) ClearCompanies() *MemberUpdateOne
- func (muo *MemberUpdateOne) ClearCountryCode() *MemberUpdateOne
- func (muo *MemberUpdateOne) ClearDevices() *MemberUpdateOne
- func (muo *MemberUpdateOne) ClearStatus() *MemberUpdateOne
- func (muo *MemberUpdateOne) ClearType() *MemberUpdateOne
- func (muo *MemberUpdateOne) Exec(ctx context.Context) error
- func (c *MemberUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (muo *MemberUpdateOne) ExecX(ctx context.Context)
- func (muo *MemberUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *MemberUpdateOne
- func (muo *MemberUpdateOne) Mutation() *MemberMutation
- func (c *MemberUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (muo *MemberUpdateOne) RemoveDeviceIDs(ids ...uuid.UUID) *MemberUpdateOne
- func (muo *MemberUpdateOne) RemoveDevices(d ...*Device) *MemberUpdateOne
- func (muo *MemberUpdateOne) Save(ctx context.Context) (*Member, error)
- func (muo *MemberUpdateOne) SaveX(ctx context.Context) *Member
- func (muo *MemberUpdateOne) Select(field string, fields ...string) *MemberUpdateOne
- func (muo *MemberUpdateOne) SetAccount(s string) *MemberUpdateOne
- func (muo *MemberUpdateOne) SetAvatar(s string) *MemberUpdateOne
- func (muo *MemberUpdateOne) SetCompanies(c *Company) *MemberUpdateOne
- func (muo *MemberUpdateOne) SetCompaniesID(id uint64) *MemberUpdateOne
- func (muo *MemberUpdateOne) SetCompanyID(u uint64) *MemberUpdateOne
- func (muo *MemberUpdateOne) SetCountryCode(s string) *MemberUpdateOne
- func (muo *MemberUpdateOne) SetMobile(s string) *MemberUpdateOne
- func (muo *MemberUpdateOne) SetName(s string) *MemberUpdateOne
- func (muo *MemberUpdateOne) SetNillableAccount(s *string) *MemberUpdateOne
- func (muo *MemberUpdateOne) SetNillableAvatar(s *string) *MemberUpdateOne
- func (muo *MemberUpdateOne) SetNillableCompaniesID(id *uint64) *MemberUpdateOne
- func (muo *MemberUpdateOne) SetNillableCompanyID(u *uint64) *MemberUpdateOne
- func (muo *MemberUpdateOne) SetNillableCountryCode(s *string) *MemberUpdateOne
- func (muo *MemberUpdateOne) SetNillableMobile(s *string) *MemberUpdateOne
- func (muo *MemberUpdateOne) SetNillableName(s *string) *MemberUpdateOne
- func (muo *MemberUpdateOne) SetNillablePassword(s *string) *MemberUpdateOne
- func (muo *MemberUpdateOne) SetNillableSort(u *uint32) *MemberUpdateOne
- func (muo *MemberUpdateOne) SetNillableStatus(u *uint8) *MemberUpdateOne
- func (muo *MemberUpdateOne) SetNillableType(i *int32) *MemberUpdateOne
- func (m *MemberUpdateOne) SetNotNilAccount(value *string) *MemberUpdateOne
- func (m *MemberUpdateOne) SetNotNilAvatar(value *string) *MemberUpdateOne
- func (m *MemberUpdateOne) SetNotNilCompanyID(value *uint64) *MemberUpdateOne
- func (m *MemberUpdateOne) SetNotNilCountryCode(value *string) *MemberUpdateOne
- func (m *MemberUpdateOne) SetNotNilMobile(value *string) *MemberUpdateOne
- func (m *MemberUpdateOne) SetNotNilName(value *string) *MemberUpdateOne
- func (m *MemberUpdateOne) SetNotNilPassword(value *string) *MemberUpdateOne
- func (m *MemberUpdateOne) SetNotNilSort(value *uint32) *MemberUpdateOne
- func (m *MemberUpdateOne) SetNotNilStatus(value *uint8) *MemberUpdateOne
- func (m *MemberUpdateOne) SetNotNilType(value *int32) *MemberUpdateOne
- func (m *MemberUpdateOne) SetNotNilUpdatedAt(value *time.Time) *MemberUpdateOne
- func (muo *MemberUpdateOne) SetPassword(s string) *MemberUpdateOne
- func (muo *MemberUpdateOne) SetSort(u uint32) *MemberUpdateOne
- func (muo *MemberUpdateOne) SetStatus(u uint8) *MemberUpdateOne
- func (muo *MemberUpdateOne) SetType(i int32) *MemberUpdateOne
- func (muo *MemberUpdateOne) SetUpdatedAt(t time.Time) *MemberUpdateOne
- func (muo *MemberUpdateOne) Where(ps ...predicate.Member) *MemberUpdateOne
- type MemberUpsert
- func (u *MemberUpsert) AddCompanyID(v uint64) *MemberUpsert
- func (u *MemberUpsert) AddSort(v uint32) *MemberUpsert
- func (u *MemberUpsert) AddStatus(v uint8) *MemberUpsert
- func (u *MemberUpsert) AddType(v int32) *MemberUpsert
- func (u *MemberUpsert) ClearAvatar() *MemberUpsert
- func (u *MemberUpsert) ClearCountryCode() *MemberUpsert
- func (u *MemberUpsert) ClearStatus() *MemberUpsert
- func (u *MemberUpsert) ClearType() *MemberUpsert
- func (u *MemberUpsert) SetAccount(v string) *MemberUpsert
- func (u *MemberUpsert) SetAvatar(v string) *MemberUpsert
- func (u *MemberUpsert) SetCompanyID(v uint64) *MemberUpsert
- func (u *MemberUpsert) SetCountryCode(v string) *MemberUpsert
- func (u *MemberUpsert) SetMobile(v string) *MemberUpsert
- func (u *MemberUpsert) SetName(v string) *MemberUpsert
- func (u *MemberUpsert) SetPassword(v string) *MemberUpsert
- func (u *MemberUpsert) SetSort(v uint32) *MemberUpsert
- func (u *MemberUpsert) SetStatus(v uint8) *MemberUpsert
- func (u *MemberUpsert) SetType(v int32) *MemberUpsert
- func (u *MemberUpsert) SetUpdatedAt(v time.Time) *MemberUpsert
- func (u *MemberUpsert) UpdateAccount() *MemberUpsert
- func (u *MemberUpsert) UpdateAvatar() *MemberUpsert
- func (u *MemberUpsert) UpdateCompanyID() *MemberUpsert
- func (u *MemberUpsert) UpdateCountryCode() *MemberUpsert
- func (u *MemberUpsert) UpdateMobile() *MemberUpsert
- func (u *MemberUpsert) UpdateName() *MemberUpsert
- func (u *MemberUpsert) UpdatePassword() *MemberUpsert
- func (u *MemberUpsert) UpdateSort() *MemberUpsert
- func (u *MemberUpsert) UpdateStatus() *MemberUpsert
- func (u *MemberUpsert) UpdateType() *MemberUpsert
- func (u *MemberUpsert) UpdateUpdatedAt() *MemberUpsert
- type MemberUpsertBulk
- func (u *MemberUpsertBulk) AddCompanyID(v uint64) *MemberUpsertBulk
- func (u *MemberUpsertBulk) AddSort(v uint32) *MemberUpsertBulk
- func (u *MemberUpsertBulk) AddStatus(v uint8) *MemberUpsertBulk
- func (u *MemberUpsertBulk) AddType(v int32) *MemberUpsertBulk
- func (u *MemberUpsertBulk) ClearAvatar() *MemberUpsertBulk
- func (u *MemberUpsertBulk) ClearCountryCode() *MemberUpsertBulk
- func (u *MemberUpsertBulk) ClearStatus() *MemberUpsertBulk
- func (u *MemberUpsertBulk) ClearType() *MemberUpsertBulk
- func (u *MemberUpsertBulk) DoNothing() *MemberUpsertBulk
- func (u *MemberUpsertBulk) Exec(ctx context.Context) error
- func (u *MemberUpsertBulk) ExecX(ctx context.Context)
- func (u *MemberUpsertBulk) Ignore() *MemberUpsertBulk
- func (u *MemberUpsertBulk) SetAccount(v string) *MemberUpsertBulk
- func (u *MemberUpsertBulk) SetAvatar(v string) *MemberUpsertBulk
- func (u *MemberUpsertBulk) SetCompanyID(v uint64) *MemberUpsertBulk
- func (u *MemberUpsertBulk) SetCountryCode(v string) *MemberUpsertBulk
- func (u *MemberUpsertBulk) SetMobile(v string) *MemberUpsertBulk
- func (u *MemberUpsertBulk) SetName(v string) *MemberUpsertBulk
- func (u *MemberUpsertBulk) SetPassword(v string) *MemberUpsertBulk
- func (u *MemberUpsertBulk) SetSort(v uint32) *MemberUpsertBulk
- func (u *MemberUpsertBulk) SetStatus(v uint8) *MemberUpsertBulk
- func (u *MemberUpsertBulk) SetType(v int32) *MemberUpsertBulk
- func (u *MemberUpsertBulk) SetUpdatedAt(v time.Time) *MemberUpsertBulk
- func (u *MemberUpsertBulk) Update(set func(*MemberUpsert)) *MemberUpsertBulk
- func (u *MemberUpsertBulk) UpdateAccount() *MemberUpsertBulk
- func (u *MemberUpsertBulk) UpdateAvatar() *MemberUpsertBulk
- func (u *MemberUpsertBulk) UpdateCompanyID() *MemberUpsertBulk
- func (u *MemberUpsertBulk) UpdateCountryCode() *MemberUpsertBulk
- func (u *MemberUpsertBulk) UpdateMobile() *MemberUpsertBulk
- func (u *MemberUpsertBulk) UpdateName() *MemberUpsertBulk
- func (u *MemberUpsertBulk) UpdateNewValues() *MemberUpsertBulk
- func (u *MemberUpsertBulk) UpdatePassword() *MemberUpsertBulk
- func (u *MemberUpsertBulk) UpdateSort() *MemberUpsertBulk
- func (u *MemberUpsertBulk) UpdateStatus() *MemberUpsertBulk
- func (u *MemberUpsertBulk) UpdateType() *MemberUpsertBulk
- func (u *MemberUpsertBulk) UpdateUpdatedAt() *MemberUpsertBulk
- type MemberUpsertOne
- func (u *MemberUpsertOne) AddCompanyID(v uint64) *MemberUpsertOne
- func (u *MemberUpsertOne) AddSort(v uint32) *MemberUpsertOne
- func (u *MemberUpsertOne) AddStatus(v uint8) *MemberUpsertOne
- func (u *MemberUpsertOne) AddType(v int32) *MemberUpsertOne
- func (u *MemberUpsertOne) ClearAvatar() *MemberUpsertOne
- func (u *MemberUpsertOne) ClearCountryCode() *MemberUpsertOne
- func (u *MemberUpsertOne) ClearStatus() *MemberUpsertOne
- func (u *MemberUpsertOne) ClearType() *MemberUpsertOne
- func (u *MemberUpsertOne) DoNothing() *MemberUpsertOne
- func (u *MemberUpsertOne) Exec(ctx context.Context) error
- func (u *MemberUpsertOne) ExecX(ctx context.Context)
- func (u *MemberUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)
- func (u *MemberUpsertOne) IDX(ctx context.Context) uuid.UUID
- func (u *MemberUpsertOne) Ignore() *MemberUpsertOne
- func (u *MemberUpsertOne) SetAccount(v string) *MemberUpsertOne
- func (u *MemberUpsertOne) SetAvatar(v string) *MemberUpsertOne
- func (u *MemberUpsertOne) SetCompanyID(v uint64) *MemberUpsertOne
- func (u *MemberUpsertOne) SetCountryCode(v string) *MemberUpsertOne
- func (u *MemberUpsertOne) SetMobile(v string) *MemberUpsertOne
- func (u *MemberUpsertOne) SetName(v string) *MemberUpsertOne
- func (u *MemberUpsertOne) SetPassword(v string) *MemberUpsertOne
- func (u *MemberUpsertOne) SetSort(v uint32) *MemberUpsertOne
- func (u *MemberUpsertOne) SetStatus(v uint8) *MemberUpsertOne
- func (u *MemberUpsertOne) SetType(v int32) *MemberUpsertOne
- func (u *MemberUpsertOne) SetUpdatedAt(v time.Time) *MemberUpsertOne
- func (u *MemberUpsertOne) Update(set func(*MemberUpsert)) *MemberUpsertOne
- func (u *MemberUpsertOne) UpdateAccount() *MemberUpsertOne
- func (u *MemberUpsertOne) UpdateAvatar() *MemberUpsertOne
- func (u *MemberUpsertOne) UpdateCompanyID() *MemberUpsertOne
- func (u *MemberUpsertOne) UpdateCountryCode() *MemberUpsertOne
- func (u *MemberUpsertOne) UpdateMobile() *MemberUpsertOne
- func (u *MemberUpsertOne) UpdateName() *MemberUpsertOne
- func (u *MemberUpsertOne) UpdateNewValues() *MemberUpsertOne
- func (u *MemberUpsertOne) UpdatePassword() *MemberUpsertOne
- func (u *MemberUpsertOne) UpdateSort() *MemberUpsertOne
- func (u *MemberUpsertOne) UpdateStatus() *MemberUpsertOne
- func (u *MemberUpsertOne) UpdateType() *MemberUpsertOne
- func (u *MemberUpsertOne) UpdateUpdatedAt() *MemberUpsertOne
- type Members
- 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 Product
- func (c *Product) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *Product) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (pr *Product) QueryDevices() *DeviceQuery
- func (pr *Product) QueryEvents() *ProductEventQuery
- func (pr *Product) QueryProperties() *ProductPropertyQuery
- func (pr *Product) QueryServices() *ProductServiceQuery
- func (pr *Product) QueryTags() *ProductTagQuery
- func (pr *Product) String() string
- func (pr *Product) Unwrap() *Product
- func (pr *Product) Update() *ProductUpdateOne
- func (pr *Product) Value(name string) (ent.Value, error)
- type ProductClient
- func (c *ProductClient) Create() *ProductCreate
- func (c *ProductClient) CreateBulk(builders ...*ProductCreate) *ProductCreateBulk
- func (c *ProductClient) Delete() *ProductDelete
- func (c *ProductClient) DeleteOne(pr *Product) *ProductDeleteOne
- func (c *ProductClient) DeleteOneID(id uuid.UUID) *ProductDeleteOne
- func (c *ProductClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *ProductClient) Get(ctx context.Context, id uuid.UUID) (*Product, error)
- func (c *ProductClient) GetX(ctx context.Context, id uuid.UUID) *Product
- func (c *ProductClient) Hooks() []Hook
- func (c *ProductClient) Intercept(interceptors ...Interceptor)
- func (c *ProductClient) Interceptors() []Interceptor
- func (c *ProductClient) MapCreateBulk(slice any, setFunc func(*ProductCreate, int)) *ProductCreateBulk
- func (c *ProductClient) Query() *ProductQuery
- func (c *ProductClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *ProductClient) QueryDevices(pr *Product) *DeviceQuery
- func (c *ProductClient) QueryEvents(pr *Product) *ProductEventQuery
- func (c *ProductClient) QueryProperties(pr *Product) *ProductPropertyQuery
- func (c *ProductClient) QueryServices(pr *Product) *ProductServiceQuery
- func (c *ProductClient) QueryTags(pr *Product) *ProductTagQuery
- func (c *ProductClient) Update() *ProductUpdate
- func (c *ProductClient) UpdateOne(pr *Product) *ProductUpdateOne
- func (c *ProductClient) UpdateOneID(id uuid.UUID) *ProductUpdateOne
- func (c *ProductClient) Use(hooks ...Hook)
- type ProductCreate
- func (pc *ProductCreate) AddDeviceIDs(ids ...uuid.UUID) *ProductCreate
- func (pc *ProductCreate) AddDevices(d ...*Device) *ProductCreate
- func (pc *ProductCreate) AddEventIDs(ids ...uint64) *ProductCreate
- func (pc *ProductCreate) AddEvents(p ...*ProductEvent) *ProductCreate
- func (pc *ProductCreate) AddProperties(p ...*ProductProperty) *ProductCreate
- func (pc *ProductCreate) AddPropertyIDs(ids ...uint64) *ProductCreate
- func (pc *ProductCreate) AddServiceIDs(ids ...uint64) *ProductCreate
- func (pc *ProductCreate) AddServices(p ...*ProductService) *ProductCreate
- func (pc *ProductCreate) AddTagIDs(ids ...uint64) *ProductCreate
- func (pc *ProductCreate) AddTags(p ...*ProductTag) *ProductCreate
- func (pc *ProductCreate) Exec(ctx context.Context) error
- func (c *ProductCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (pc *ProductCreate) ExecX(ctx context.Context)
- func (pc *ProductCreate) Mutation() *ProductMutation
- func (pc *ProductCreate) OnConflict(opts ...sql.ConflictOption) *ProductUpsertOne
- func (pc *ProductCreate) OnConflictColumns(columns ...string) *ProductUpsertOne
- func (c *ProductCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (pc *ProductCreate) Save(ctx context.Context) (*Product, error)
- func (pc *ProductCreate) SaveX(ctx context.Context) *Product
- func (pc *ProductCreate) SetAliyunCommodityCode(s string) *ProductCreate
- func (pc *ProductCreate) SetAuthType(s string) *ProductCreate
- func (pc *ProductCreate) SetCategoryKey(s string) *ProductCreate
- func (pc *ProductCreate) SetCategoryName(s string) *ProductCreate
- func (pc *ProductCreate) SetCreatedAt(t time.Time) *ProductCreate
- func (pc *ProductCreate) SetDataFormat(i int32) *ProductCreate
- func (pc *ProductCreate) SetDescription(s string) *ProductCreate
- func (pc *ProductCreate) SetDeviceCount(i int32) *ProductCreate
- func (pc *ProductCreate) SetGmtCreate(i int64) *ProductCreate
- func (pc *ProductCreate) SetID(u uuid.UUID) *ProductCreate
- func (pc *ProductCreate) SetId2(b bool) *ProductCreate
- func (pc *ProductCreate) SetNetType(i int32) *ProductCreate
- func (pc *ProductCreate) SetNillableAliyunCommodityCode(s *string) *ProductCreate
- func (pc *ProductCreate) SetNillableAuthType(s *string) *ProductCreate
- func (pc *ProductCreate) SetNillableCategoryKey(s *string) *ProductCreate
- func (pc *ProductCreate) SetNillableCategoryName(s *string) *ProductCreate
- func (pc *ProductCreate) SetNillableCreatedAt(t *time.Time) *ProductCreate
- func (pc *ProductCreate) SetNillableDataFormat(i *int32) *ProductCreate
- func (pc *ProductCreate) SetNillableDescription(s *string) *ProductCreate
- func (pc *ProductCreate) SetNillableDeviceCount(i *int32) *ProductCreate
- func (pc *ProductCreate) SetNillableGmtCreate(i *int64) *ProductCreate
- func (pc *ProductCreate) SetNillableID(u *uuid.UUID) *ProductCreate
- func (pc *ProductCreate) SetNillableId2(b *bool) *ProductCreate
- func (pc *ProductCreate) SetNillableNetType(i *int32) *ProductCreate
- func (pc *ProductCreate) SetNillableNodeType(i *int32) *ProductCreate
- func (pc *ProductCreate) SetNillableOwner(b *bool) *ProductCreate
- func (pc *ProductCreate) SetNillableProductSecret(s *string) *ProductCreate
- func (pc *ProductCreate) SetNillableProductStatus(s *string) *ProductCreate
- func (pc *ProductCreate) SetNillableProtocolType(s *string) *ProductCreate
- func (pc *ProductCreate) SetNillableSort(u *uint32) *ProductCreate
- func (pc *ProductCreate) SetNillableStatus(u *uint8) *ProductCreate
- func (pc *ProductCreate) SetNillableUpdatedAt(t *time.Time) *ProductCreate
- func (pc *ProductCreate) SetNillableValidateType(i *int32) *ProductCreate
- func (pc *ProductCreate) SetNodeType(i int32) *ProductCreate
- func (pr *ProductCreate) SetNotNilAliyunCommodityCode(value *string) *ProductCreate
- func (pr *ProductCreate) SetNotNilAuthType(value *string) *ProductCreate
- func (pr *ProductCreate) SetNotNilCategoryKey(value *string) *ProductCreate
- func (pr *ProductCreate) SetNotNilCategoryName(value *string) *ProductCreate
- func (pr *ProductCreate) SetNotNilDataFormat(value *int32) *ProductCreate
- func (pr *ProductCreate) SetNotNilDescription(value *string) *ProductCreate
- func (pr *ProductCreate) SetNotNilDeviceCount(value *int32) *ProductCreate
- func (pr *ProductCreate) SetNotNilGmtCreate(value *int64) *ProductCreate
- func (pr *ProductCreate) SetNotNilId2(value *bool) *ProductCreate
- func (pr *ProductCreate) SetNotNilNetType(value *int32) *ProductCreate
- func (pr *ProductCreate) SetNotNilNodeType(value *int32) *ProductCreate
- func (pr *ProductCreate) SetNotNilOwner(value *bool) *ProductCreate
- func (pr *ProductCreate) SetNotNilProductKey(value *string) *ProductCreate
- func (pr *ProductCreate) SetNotNilProductName(value *string) *ProductCreate
- func (pr *ProductCreate) SetNotNilProductSecret(value *string) *ProductCreate
- func (pr *ProductCreate) SetNotNilProductStatus(value *string) *ProductCreate
- func (pr *ProductCreate) SetNotNilProtocolType(value *string) *ProductCreate
- func (pr *ProductCreate) SetNotNilSort(value *uint32) *ProductCreate
- func (pr *ProductCreate) SetNotNilStatus(value *uint8) *ProductCreate
- func (pr *ProductCreate) SetNotNilUpdatedAt(value *time.Time) *ProductCreate
- func (pr *ProductCreate) SetNotNilValidateType(value *int32) *ProductCreate
- func (pc *ProductCreate) SetOwner(b bool) *ProductCreate
- func (pc *ProductCreate) SetProductKey(s string) *ProductCreate
- func (pc *ProductCreate) SetProductName(s string) *ProductCreate
- func (pc *ProductCreate) SetProductSecret(s string) *ProductCreate
- func (pc *ProductCreate) SetProductStatus(s string) *ProductCreate
- func (pc *ProductCreate) SetProtocolType(s string) *ProductCreate
- func (pc *ProductCreate) SetSort(u uint32) *ProductCreate
- func (pc *ProductCreate) SetStatus(u uint8) *ProductCreate
- func (pc *ProductCreate) SetUpdatedAt(t time.Time) *ProductCreate
- func (pc *ProductCreate) SetValidateType(i int32) *ProductCreate
- type ProductCreateBulk
- func (pcb *ProductCreateBulk) Exec(ctx context.Context) error
- func (c *ProductCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (pcb *ProductCreateBulk) ExecX(ctx context.Context)
- func (pcb *ProductCreateBulk) OnConflict(opts ...sql.ConflictOption) *ProductUpsertBulk
- func (pcb *ProductCreateBulk) OnConflictColumns(columns ...string) *ProductUpsertBulk
- func (c *ProductCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (pcb *ProductCreateBulk) Save(ctx context.Context) ([]*Product, error)
- func (pcb *ProductCreateBulk) SaveX(ctx context.Context) []*Product
- type ProductDelete
- func (pd *ProductDelete) Exec(ctx context.Context) (int, error)
- func (c *ProductDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (pd *ProductDelete) ExecX(ctx context.Context) int
- func (c *ProductDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (pd *ProductDelete) Where(ps ...predicate.Product) *ProductDelete
- type ProductDeleteOne
- type ProductEdges
- func (e ProductEdges) DevicesOrErr() ([]*Device, error)
- func (e ProductEdges) EventsOrErr() ([]*ProductEvent, error)
- func (e ProductEdges) PropertiesOrErr() ([]*ProductProperty, error)
- func (e ProductEdges) ServicesOrErr() ([]*ProductService, error)
- func (e ProductEdges) TagsOrErr() ([]*ProductTag, error)
- type ProductEvent
- func (c *ProductEvent) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *ProductEvent) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (pe *ProductEvent) QueryProduct() *ProductQuery
- func (pe *ProductEvent) String() string
- func (pe *ProductEvent) Unwrap() *ProductEvent
- func (pe *ProductEvent) Update() *ProductEventUpdateOne
- func (pe *ProductEvent) Value(name string) (ent.Value, error)
- type ProductEventClient
- func (c *ProductEventClient) Create() *ProductEventCreate
- func (c *ProductEventClient) CreateBulk(builders ...*ProductEventCreate) *ProductEventCreateBulk
- func (c *ProductEventClient) Delete() *ProductEventDelete
- func (c *ProductEventClient) DeleteOne(pe *ProductEvent) *ProductEventDeleteOne
- func (c *ProductEventClient) DeleteOneID(id uint64) *ProductEventDeleteOne
- func (c *ProductEventClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *ProductEventClient) Get(ctx context.Context, id uint64) (*ProductEvent, error)
- func (c *ProductEventClient) GetX(ctx context.Context, id uint64) *ProductEvent
- func (c *ProductEventClient) Hooks() []Hook
- func (c *ProductEventClient) Intercept(interceptors ...Interceptor)
- func (c *ProductEventClient) Interceptors() []Interceptor
- func (c *ProductEventClient) MapCreateBulk(slice any, setFunc func(*ProductEventCreate, int)) *ProductEventCreateBulk
- func (c *ProductEventClient) Query() *ProductEventQuery
- func (c *ProductEventClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *ProductEventClient) QueryProduct(pe *ProductEvent) *ProductQuery
- func (c *ProductEventClient) Update() *ProductEventUpdate
- func (c *ProductEventClient) UpdateOne(pe *ProductEvent) *ProductEventUpdateOne
- func (c *ProductEventClient) UpdateOneID(id uint64) *ProductEventUpdateOne
- func (c *ProductEventClient) Use(hooks ...Hook)
- type ProductEventCreate
- func (pec *ProductEventCreate) Exec(ctx context.Context) error
- func (c *ProductEventCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (pec *ProductEventCreate) ExecX(ctx context.Context)
- func (pec *ProductEventCreate) Mutation() *ProductEventMutation
- func (pec *ProductEventCreate) OnConflict(opts ...sql.ConflictOption) *ProductEventUpsertOne
- func (pec *ProductEventCreate) OnConflictColumns(columns ...string) *ProductEventUpsertOne
- func (c *ProductEventCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (pec *ProductEventCreate) Save(ctx context.Context) (*ProductEvent, error)
- func (pec *ProductEventCreate) SaveX(ctx context.Context) *ProductEvent
- func (pec *ProductEventCreate) SetCreateTs(i int64) *ProductEventCreate
- func (pec *ProductEventCreate) SetCreatedAt(t time.Time) *ProductEventCreate
- func (pec *ProductEventCreate) SetCustom(b bool) *ProductEventCreate
- func (pec *ProductEventCreate) SetEventName(s string) *ProductEventCreate
- func (pec *ProductEventCreate) SetEventType(s string) *ProductEventCreate
- func (pec *ProductEventCreate) SetID(u uint64) *ProductEventCreate
- func (pec *ProductEventCreate) SetIdentifier(s string) *ProductEventCreate
- func (pec *ProductEventCreate) SetNillableCreateTs(i *int64) *ProductEventCreate
- func (pec *ProductEventCreate) SetNillableCreatedAt(t *time.Time) *ProductEventCreate
- func (pec *ProductEventCreate) SetNillableCustom(b *bool) *ProductEventCreate
- func (pec *ProductEventCreate) SetNillableEventType(s *string) *ProductEventCreate
- func (pec *ProductEventCreate) SetNillableOutputData(s *string) *ProductEventCreate
- func (pec *ProductEventCreate) SetNillableProductID(id *uuid.UUID) *ProductEventCreate
- func (pec *ProductEventCreate) SetNillableRequired(b *bool) *ProductEventCreate
- func (pec *ProductEventCreate) SetNillableSort(u *uint32) *ProductEventCreate
- func (pec *ProductEventCreate) SetNillableStatus(u *uint8) *ProductEventCreate
- func (pec *ProductEventCreate) SetNillableUpdatedAt(t *time.Time) *ProductEventCreate
- func (pec *ProductEventCreate) SetNillableVersion(s *string) *ProductEventCreate
- func (pe *ProductEventCreate) SetNotNilCreateTs(value *int64) *ProductEventCreate
- func (pe *ProductEventCreate) SetNotNilCustom(value *bool) *ProductEventCreate
- func (pe *ProductEventCreate) SetNotNilEventName(value *string) *ProductEventCreate
- func (pe *ProductEventCreate) SetNotNilEventType(value *string) *ProductEventCreate
- func (pe *ProductEventCreate) SetNotNilIdentifier(value *string) *ProductEventCreate
- func (pe *ProductEventCreate) SetNotNilOutputData(value *string) *ProductEventCreate
- func (pe *ProductEventCreate) SetNotNilProductKey(value *string) *ProductEventCreate
- func (pe *ProductEventCreate) SetNotNilRequired(value *bool) *ProductEventCreate
- func (pe *ProductEventCreate) SetNotNilSort(value *uint32) *ProductEventCreate
- func (pe *ProductEventCreate) SetNotNilStatus(value *uint8) *ProductEventCreate
- func (pe *ProductEventCreate) SetNotNilUpdatedAt(value *time.Time) *ProductEventCreate
- func (pe *ProductEventCreate) SetNotNilVersion(value *string) *ProductEventCreate
- func (pec *ProductEventCreate) SetOutputData(s string) *ProductEventCreate
- func (pec *ProductEventCreate) SetProduct(p *Product) *ProductEventCreate
- func (pec *ProductEventCreate) SetProductID(id uuid.UUID) *ProductEventCreate
- func (pec *ProductEventCreate) SetProductKey(s string) *ProductEventCreate
- func (pec *ProductEventCreate) SetRequired(b bool) *ProductEventCreate
- func (pec *ProductEventCreate) SetSort(u uint32) *ProductEventCreate
- func (pec *ProductEventCreate) SetStatus(u uint8) *ProductEventCreate
- func (pec *ProductEventCreate) SetUpdatedAt(t time.Time) *ProductEventCreate
- func (pec *ProductEventCreate) SetVersion(s string) *ProductEventCreate
- type ProductEventCreateBulk
- func (pecb *ProductEventCreateBulk) Exec(ctx context.Context) error
- func (c *ProductEventCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (pecb *ProductEventCreateBulk) ExecX(ctx context.Context)
- func (pecb *ProductEventCreateBulk) OnConflict(opts ...sql.ConflictOption) *ProductEventUpsertBulk
- func (pecb *ProductEventCreateBulk) OnConflictColumns(columns ...string) *ProductEventUpsertBulk
- func (c *ProductEventCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (pecb *ProductEventCreateBulk) Save(ctx context.Context) ([]*ProductEvent, error)
- func (pecb *ProductEventCreateBulk) SaveX(ctx context.Context) []*ProductEvent
- type ProductEventDelete
- func (ped *ProductEventDelete) Exec(ctx context.Context) (int, error)
- func (c *ProductEventDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ped *ProductEventDelete) ExecX(ctx context.Context) int
- func (c *ProductEventDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ped *ProductEventDelete) Where(ps ...predicate.ProductEvent) *ProductEventDelete
- type ProductEventDeleteOne
- type ProductEventEdges
- type ProductEventGroupBy
- func (pegb *ProductEventGroupBy) Aggregate(fns ...AggregateFunc) *ProductEventGroupBy
- func (s *ProductEventGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ProductEventGroupBy) BoolX(ctx context.Context) bool
- func (s *ProductEventGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ProductEventGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ProductEventGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ProductEventGroupBy) Float64X(ctx context.Context) float64
- func (s *ProductEventGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ProductEventGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ProductEventGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ProductEventGroupBy) IntX(ctx context.Context) int
- func (s *ProductEventGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ProductEventGroupBy) IntsX(ctx context.Context) []int
- func (pegb *ProductEventGroupBy) Scan(ctx context.Context, v any) error
- func (s *ProductEventGroupBy) ScanX(ctx context.Context, v any)
- func (s *ProductEventGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ProductEventGroupBy) StringX(ctx context.Context) string
- func (s *ProductEventGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ProductEventGroupBy) StringsX(ctx context.Context) []string
- type ProductEventMutation
- func (m *ProductEventMutation) AddCreateTs(i int64)
- func (m *ProductEventMutation) AddField(name string, value ent.Value) error
- func (m *ProductEventMutation) AddSort(u int32)
- func (m *ProductEventMutation) AddStatus(u int8)
- func (m *ProductEventMutation) AddedCreateTs() (r int64, exists bool)
- func (m *ProductEventMutation) AddedEdges() []string
- func (m *ProductEventMutation) AddedField(name string) (ent.Value, bool)
- func (m *ProductEventMutation) AddedFields() []string
- func (m *ProductEventMutation) AddedIDs(name string) []ent.Value
- func (m *ProductEventMutation) AddedSort() (r int32, exists bool)
- func (m *ProductEventMutation) AddedStatus() (r int8, exists bool)
- func (m *ProductEventMutation) ClearCreateTs()
- func (m *ProductEventMutation) ClearEdge(name string) error
- func (m *ProductEventMutation) ClearEventType()
- func (m *ProductEventMutation) ClearField(name string) error
- func (m *ProductEventMutation) ClearOutputData()
- func (m *ProductEventMutation) ClearProduct()
- func (m *ProductEventMutation) ClearStatus()
- func (m *ProductEventMutation) ClearVersion()
- func (m *ProductEventMutation) ClearedEdges() []string
- func (m *ProductEventMutation) ClearedFields() []string
- func (m ProductEventMutation) Client() *Client
- func (m *ProductEventMutation) CreateTs() (r int64, exists bool)
- func (m *ProductEventMutation) CreateTsCleared() bool
- func (m *ProductEventMutation) CreatedAt() (r time.Time, exists bool)
- func (m *ProductEventMutation) Custom() (r bool, exists bool)
- func (m *ProductEventMutation) EdgeCleared(name string) bool
- func (m *ProductEventMutation) EventName() (r string, exists bool)
- func (m *ProductEventMutation) EventType() (r string, exists bool)
- func (m *ProductEventMutation) EventTypeCleared() bool
- func (c *ProductEventMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *ProductEventMutation) Field(name string) (ent.Value, bool)
- func (m *ProductEventMutation) FieldCleared(name string) bool
- func (m *ProductEventMutation) Fields() []string
- func (m *ProductEventMutation) ID() (id uint64, exists bool)
- func (m *ProductEventMutation) IDs(ctx context.Context) ([]uint64, error)
- func (m *ProductEventMutation) Identifier() (r string, exists bool)
- func (m *ProductEventMutation) OldCreateTs(ctx context.Context) (v int64, err error)
- func (m *ProductEventMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ProductEventMutation) OldCustom(ctx context.Context) (v bool, err error)
- func (m *ProductEventMutation) OldEventName(ctx context.Context) (v string, err error)
- func (m *ProductEventMutation) OldEventType(ctx context.Context) (v string, err error)
- func (m *ProductEventMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ProductEventMutation) OldIdentifier(ctx context.Context) (v string, err error)
- func (m *ProductEventMutation) OldOutputData(ctx context.Context) (v string, err error)
- func (m *ProductEventMutation) OldProductKey(ctx context.Context) (v string, err error)
- func (m *ProductEventMutation) OldRequired(ctx context.Context) (v bool, err error)
- func (m *ProductEventMutation) OldSort(ctx context.Context) (v uint32, err error)
- func (m *ProductEventMutation) OldStatus(ctx context.Context) (v uint8, err error)
- func (m *ProductEventMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ProductEventMutation) OldVersion(ctx context.Context) (v string, err error)
- func (m *ProductEventMutation) Op() Op
- func (m *ProductEventMutation) OutputData() (r string, exists bool)
- func (m *ProductEventMutation) OutputDataCleared() bool
- func (m *ProductEventMutation) ProductCleared() bool
- func (m *ProductEventMutation) ProductID() (id uuid.UUID, exists bool)
- func (m *ProductEventMutation) ProductIDs() (ids []uuid.UUID)
- func (m *ProductEventMutation) ProductKey() (r string, exists bool)
- func (c *ProductEventMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *ProductEventMutation) RemovedEdges() []string
- func (m *ProductEventMutation) RemovedIDs(name string) []ent.Value
- func (m *ProductEventMutation) Required() (r bool, exists bool)
- func (m *ProductEventMutation) ResetCreateTs()
- func (m *ProductEventMutation) ResetCreatedAt()
- func (m *ProductEventMutation) ResetCustom()
- func (m *ProductEventMutation) ResetEdge(name string) error
- func (m *ProductEventMutation) ResetEventName()
- func (m *ProductEventMutation) ResetEventType()
- func (m *ProductEventMutation) ResetField(name string) error
- func (m *ProductEventMutation) ResetIdentifier()
- func (m *ProductEventMutation) ResetOutputData()
- func (m *ProductEventMutation) ResetProduct()
- func (m *ProductEventMutation) ResetProductKey()
- func (m *ProductEventMutation) ResetRequired()
- func (m *ProductEventMutation) ResetSort()
- func (m *ProductEventMutation) ResetStatus()
- func (m *ProductEventMutation) ResetUpdatedAt()
- func (m *ProductEventMutation) ResetVersion()
- func (m *ProductEventMutation) SetCreateTs(i int64)
- func (m *ProductEventMutation) SetCreatedAt(t time.Time)
- func (m *ProductEventMutation) SetCustom(b bool)
- func (m *ProductEventMutation) SetEventName(s string)
- func (m *ProductEventMutation) SetEventType(s string)
- func (m *ProductEventMutation) SetField(name string, value ent.Value) error
- func (m *ProductEventMutation) SetID(id uint64)
- func (m *ProductEventMutation) SetIdentifier(s string)
- func (m *ProductEventMutation) SetOp(op Op)
- func (m *ProductEventMutation) SetOutputData(s string)
- func (m *ProductEventMutation) SetProductID(id uuid.UUID)
- func (m *ProductEventMutation) SetProductKey(s string)
- func (m *ProductEventMutation) SetRequired(b bool)
- func (m *ProductEventMutation) SetSort(u uint32)
- func (m *ProductEventMutation) SetStatus(u uint8)
- func (m *ProductEventMutation) SetUpdatedAt(t time.Time)
- func (m *ProductEventMutation) SetVersion(s string)
- func (m *ProductEventMutation) Sort() (r uint32, exists bool)
- func (m *ProductEventMutation) Status() (r uint8, exists bool)
- func (m *ProductEventMutation) StatusCleared() bool
- func (m ProductEventMutation) Tx() (*Tx, error)
- func (m *ProductEventMutation) Type() string
- func (m *ProductEventMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *ProductEventMutation) Version() (r string, exists bool)
- func (m *ProductEventMutation) VersionCleared() bool
- func (m *ProductEventMutation) Where(ps ...predicate.ProductEvent)
- func (m *ProductEventMutation) WhereP(ps ...func(*sql.Selector))
- type ProductEventPageList
- type ProductEventPager
- type ProductEventPaginateOption
- type ProductEventQuery
- func (peq *ProductEventQuery) Aggregate(fns ...AggregateFunc) *ProductEventSelect
- func (peq *ProductEventQuery) All(ctx context.Context) ([]*ProductEvent, error)
- func (peq *ProductEventQuery) AllX(ctx context.Context) []*ProductEvent
- func (peq *ProductEventQuery) Clone() *ProductEventQuery
- func (peq *ProductEventQuery) Count(ctx context.Context) (int, error)
- func (peq *ProductEventQuery) CountX(ctx context.Context) int
- func (c *ProductEventQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (peq *ProductEventQuery) Exist(ctx context.Context) (bool, error)
- func (peq *ProductEventQuery) ExistX(ctx context.Context) bool
- func (peq *ProductEventQuery) First(ctx context.Context) (*ProductEvent, error)
- func (peq *ProductEventQuery) FirstID(ctx context.Context) (id uint64, err error)
- func (peq *ProductEventQuery) FirstIDX(ctx context.Context) uint64
- func (peq *ProductEventQuery) FirstX(ctx context.Context) *ProductEvent
- func (peq *ProductEventQuery) GroupBy(field string, fields ...string) *ProductEventGroupBy
- func (peq *ProductEventQuery) IDs(ctx context.Context) (ids []uint64, err error)
- func (peq *ProductEventQuery) IDsX(ctx context.Context) []uint64
- func (peq *ProductEventQuery) Limit(limit int) *ProductEventQuery
- func (peq *ProductEventQuery) Modify(modifiers ...func(s *sql.Selector)) *ProductEventSelect
- func (peq *ProductEventQuery) Offset(offset int) *ProductEventQuery
- func (peq *ProductEventQuery) Only(ctx context.Context) (*ProductEvent, error)
- func (peq *ProductEventQuery) OnlyID(ctx context.Context) (id uint64, err error)
- func (peq *ProductEventQuery) OnlyIDX(ctx context.Context) uint64
- func (peq *ProductEventQuery) OnlyX(ctx context.Context) *ProductEvent
- func (peq *ProductEventQuery) Order(o ...productevent.OrderOption) *ProductEventQuery
- func (pe *ProductEventQuery) Page(ctx context.Context, pageNum uint64, pageSize uint64, ...) (*ProductEventPageList, error)
- func (c *ProductEventQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (peq *ProductEventQuery) QueryProduct() *ProductQuery
- func (peq *ProductEventQuery) Select(fields ...string) *ProductEventSelect
- func (peq *ProductEventQuery) Unique(unique bool) *ProductEventQuery
- func (peq *ProductEventQuery) Where(ps ...predicate.ProductEvent) *ProductEventQuery
- func (peq *ProductEventQuery) WithProduct(opts ...func(*ProductQuery)) *ProductEventQuery
- type ProductEventSelect
- func (pes *ProductEventSelect) Aggregate(fns ...AggregateFunc) *ProductEventSelect
- func (s *ProductEventSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ProductEventSelect) BoolX(ctx context.Context) bool
- func (s *ProductEventSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ProductEventSelect) BoolsX(ctx context.Context) []bool
- func (c ProductEventSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *ProductEventSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ProductEventSelect) Float64X(ctx context.Context) float64
- func (s *ProductEventSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ProductEventSelect) Float64sX(ctx context.Context) []float64
- func (s *ProductEventSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ProductEventSelect) IntX(ctx context.Context) int
- func (s *ProductEventSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ProductEventSelect) IntsX(ctx context.Context) []int
- func (pes *ProductEventSelect) Modify(modifiers ...func(s *sql.Selector)) *ProductEventSelect
- func (c ProductEventSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (pes *ProductEventSelect) Scan(ctx context.Context, v any) error
- func (s *ProductEventSelect) ScanX(ctx context.Context, v any)
- func (s *ProductEventSelect) String(ctx context.Context) (_ string, err error)
- func (s *ProductEventSelect) StringX(ctx context.Context) string
- func (s *ProductEventSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ProductEventSelect) StringsX(ctx context.Context) []string
- type ProductEventUpdate
- func (peu *ProductEventUpdate) AddCreateTs(i int64) *ProductEventUpdate
- func (peu *ProductEventUpdate) AddSort(u int32) *ProductEventUpdate
- func (peu *ProductEventUpdate) AddStatus(u int8) *ProductEventUpdate
- func (peu *ProductEventUpdate) ClearCreateTs() *ProductEventUpdate
- func (peu *ProductEventUpdate) ClearEventType() *ProductEventUpdate
- func (peu *ProductEventUpdate) ClearOutputData() *ProductEventUpdate
- func (peu *ProductEventUpdate) ClearProduct() *ProductEventUpdate
- func (peu *ProductEventUpdate) ClearStatus() *ProductEventUpdate
- func (peu *ProductEventUpdate) ClearVersion() *ProductEventUpdate
- func (peu *ProductEventUpdate) Exec(ctx context.Context) error
- func (c *ProductEventUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (peu *ProductEventUpdate) ExecX(ctx context.Context)
- func (peu *ProductEventUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ProductEventUpdate
- func (peu *ProductEventUpdate) Mutation() *ProductEventMutation
- func (c *ProductEventUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (peu *ProductEventUpdate) Save(ctx context.Context) (int, error)
- func (peu *ProductEventUpdate) SaveX(ctx context.Context) int
- func (peu *ProductEventUpdate) SetCreateTs(i int64) *ProductEventUpdate
- func (peu *ProductEventUpdate) SetCustom(b bool) *ProductEventUpdate
- func (peu *ProductEventUpdate) SetEventName(s string) *ProductEventUpdate
- func (peu *ProductEventUpdate) SetEventType(s string) *ProductEventUpdate
- func (peu *ProductEventUpdate) SetIdentifier(s string) *ProductEventUpdate
- func (peu *ProductEventUpdate) SetNillableCreateTs(i *int64) *ProductEventUpdate
- func (peu *ProductEventUpdate) SetNillableCustom(b *bool) *ProductEventUpdate
- func (peu *ProductEventUpdate) SetNillableEventName(s *string) *ProductEventUpdate
- func (peu *ProductEventUpdate) SetNillableEventType(s *string) *ProductEventUpdate
- func (peu *ProductEventUpdate) SetNillableIdentifier(s *string) *ProductEventUpdate
- func (peu *ProductEventUpdate) SetNillableOutputData(s *string) *ProductEventUpdate
- func (peu *ProductEventUpdate) SetNillableProductID(id *uuid.UUID) *ProductEventUpdate
- func (peu *ProductEventUpdate) SetNillableProductKey(s *string) *ProductEventUpdate
- func (peu *ProductEventUpdate) SetNillableRequired(b *bool) *ProductEventUpdate
- func (peu *ProductEventUpdate) SetNillableSort(u *uint32) *ProductEventUpdate
- func (peu *ProductEventUpdate) SetNillableStatus(u *uint8) *ProductEventUpdate
- func (peu *ProductEventUpdate) SetNillableVersion(s *string) *ProductEventUpdate
- func (pe *ProductEventUpdate) SetNotNilCreateTs(value *int64) *ProductEventUpdate
- func (pe *ProductEventUpdate) SetNotNilCustom(value *bool) *ProductEventUpdate
- func (pe *ProductEventUpdate) SetNotNilEventName(value *string) *ProductEventUpdate
- func (pe *ProductEventUpdate) SetNotNilEventType(value *string) *ProductEventUpdate
- func (pe *ProductEventUpdate) SetNotNilIdentifier(value *string) *ProductEventUpdate
- func (pe *ProductEventUpdate) SetNotNilOutputData(value *string) *ProductEventUpdate
- func (pe *ProductEventUpdate) SetNotNilProductKey(value *string) *ProductEventUpdate
- func (pe *ProductEventUpdate) SetNotNilRequired(value *bool) *ProductEventUpdate
- func (pe *ProductEventUpdate) SetNotNilSort(value *uint32) *ProductEventUpdate
- func (pe *ProductEventUpdate) SetNotNilStatus(value *uint8) *ProductEventUpdate
- func (pe *ProductEventUpdate) SetNotNilUpdatedAt(value *time.Time) *ProductEventUpdate
- func (pe *ProductEventUpdate) SetNotNilVersion(value *string) *ProductEventUpdate
- func (peu *ProductEventUpdate) SetOutputData(s string) *ProductEventUpdate
- func (peu *ProductEventUpdate) SetProduct(p *Product) *ProductEventUpdate
- func (peu *ProductEventUpdate) SetProductID(id uuid.UUID) *ProductEventUpdate
- func (peu *ProductEventUpdate) SetProductKey(s string) *ProductEventUpdate
- func (peu *ProductEventUpdate) SetRequired(b bool) *ProductEventUpdate
- func (peu *ProductEventUpdate) SetSort(u uint32) *ProductEventUpdate
- func (peu *ProductEventUpdate) SetStatus(u uint8) *ProductEventUpdate
- func (peu *ProductEventUpdate) SetUpdatedAt(t time.Time) *ProductEventUpdate
- func (peu *ProductEventUpdate) SetVersion(s string) *ProductEventUpdate
- func (peu *ProductEventUpdate) Where(ps ...predicate.ProductEvent) *ProductEventUpdate
- type ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) AddCreateTs(i int64) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) AddSort(u int32) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) AddStatus(u int8) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) ClearCreateTs() *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) ClearEventType() *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) ClearOutputData() *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) ClearProduct() *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) ClearStatus() *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) ClearVersion() *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) Exec(ctx context.Context) error
- func (c *ProductEventUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (peuo *ProductEventUpdateOne) ExecX(ctx context.Context)
- func (peuo *ProductEventUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) Mutation() *ProductEventMutation
- func (c *ProductEventUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (peuo *ProductEventUpdateOne) Save(ctx context.Context) (*ProductEvent, error)
- func (peuo *ProductEventUpdateOne) SaveX(ctx context.Context) *ProductEvent
- func (peuo *ProductEventUpdateOne) Select(field string, fields ...string) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) SetCreateTs(i int64) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) SetCustom(b bool) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) SetEventName(s string) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) SetEventType(s string) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) SetIdentifier(s string) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) SetNillableCreateTs(i *int64) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) SetNillableCustom(b *bool) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) SetNillableEventName(s *string) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) SetNillableEventType(s *string) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) SetNillableIdentifier(s *string) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) SetNillableOutputData(s *string) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) SetNillableProductID(id *uuid.UUID) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) SetNillableProductKey(s *string) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) SetNillableRequired(b *bool) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) SetNillableSort(u *uint32) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) SetNillableStatus(u *uint8) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) SetNillableVersion(s *string) *ProductEventUpdateOne
- func (pe *ProductEventUpdateOne) SetNotNilCreateTs(value *int64) *ProductEventUpdateOne
- func (pe *ProductEventUpdateOne) SetNotNilCustom(value *bool) *ProductEventUpdateOne
- func (pe *ProductEventUpdateOne) SetNotNilEventName(value *string) *ProductEventUpdateOne
- func (pe *ProductEventUpdateOne) SetNotNilEventType(value *string) *ProductEventUpdateOne
- func (pe *ProductEventUpdateOne) SetNotNilIdentifier(value *string) *ProductEventUpdateOne
- func (pe *ProductEventUpdateOne) SetNotNilOutputData(value *string) *ProductEventUpdateOne
- func (pe *ProductEventUpdateOne) SetNotNilProductKey(value *string) *ProductEventUpdateOne
- func (pe *ProductEventUpdateOne) SetNotNilRequired(value *bool) *ProductEventUpdateOne
- func (pe *ProductEventUpdateOne) SetNotNilSort(value *uint32) *ProductEventUpdateOne
- func (pe *ProductEventUpdateOne) SetNotNilStatus(value *uint8) *ProductEventUpdateOne
- func (pe *ProductEventUpdateOne) SetNotNilUpdatedAt(value *time.Time) *ProductEventUpdateOne
- func (pe *ProductEventUpdateOne) SetNotNilVersion(value *string) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) SetOutputData(s string) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) SetProduct(p *Product) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) SetProductID(id uuid.UUID) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) SetProductKey(s string) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) SetRequired(b bool) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) SetSort(u uint32) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) SetStatus(u uint8) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) SetUpdatedAt(t time.Time) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) SetVersion(s string) *ProductEventUpdateOne
- func (peuo *ProductEventUpdateOne) Where(ps ...predicate.ProductEvent) *ProductEventUpdateOne
- type ProductEventUpsert
- func (u *ProductEventUpsert) AddCreateTs(v int64) *ProductEventUpsert
- func (u *ProductEventUpsert) AddSort(v uint32) *ProductEventUpsert
- func (u *ProductEventUpsert) AddStatus(v uint8) *ProductEventUpsert
- func (u *ProductEventUpsert) ClearCreateTs() *ProductEventUpsert
- func (u *ProductEventUpsert) ClearEventType() *ProductEventUpsert
- func (u *ProductEventUpsert) ClearOutputData() *ProductEventUpsert
- func (u *ProductEventUpsert) ClearStatus() *ProductEventUpsert
- func (u *ProductEventUpsert) ClearVersion() *ProductEventUpsert
- func (u *ProductEventUpsert) SetCreateTs(v int64) *ProductEventUpsert
- func (u *ProductEventUpsert) SetCustom(v bool) *ProductEventUpsert
- func (u *ProductEventUpsert) SetEventName(v string) *ProductEventUpsert
- func (u *ProductEventUpsert) SetEventType(v string) *ProductEventUpsert
- func (u *ProductEventUpsert) SetIdentifier(v string) *ProductEventUpsert
- func (u *ProductEventUpsert) SetOutputData(v string) *ProductEventUpsert
- func (u *ProductEventUpsert) SetProductKey(v string) *ProductEventUpsert
- func (u *ProductEventUpsert) SetRequired(v bool) *ProductEventUpsert
- func (u *ProductEventUpsert) SetSort(v uint32) *ProductEventUpsert
- func (u *ProductEventUpsert) SetStatus(v uint8) *ProductEventUpsert
- func (u *ProductEventUpsert) SetUpdatedAt(v time.Time) *ProductEventUpsert
- func (u *ProductEventUpsert) SetVersion(v string) *ProductEventUpsert
- func (u *ProductEventUpsert) UpdateCreateTs() *ProductEventUpsert
- func (u *ProductEventUpsert) UpdateCustom() *ProductEventUpsert
- func (u *ProductEventUpsert) UpdateEventName() *ProductEventUpsert
- func (u *ProductEventUpsert) UpdateEventType() *ProductEventUpsert
- func (u *ProductEventUpsert) UpdateIdentifier() *ProductEventUpsert
- func (u *ProductEventUpsert) UpdateOutputData() *ProductEventUpsert
- func (u *ProductEventUpsert) UpdateProductKey() *ProductEventUpsert
- func (u *ProductEventUpsert) UpdateRequired() *ProductEventUpsert
- func (u *ProductEventUpsert) UpdateSort() *ProductEventUpsert
- func (u *ProductEventUpsert) UpdateStatus() *ProductEventUpsert
- func (u *ProductEventUpsert) UpdateUpdatedAt() *ProductEventUpsert
- func (u *ProductEventUpsert) UpdateVersion() *ProductEventUpsert
- type ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) AddCreateTs(v int64) *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) AddSort(v uint32) *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) AddStatus(v uint8) *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) ClearCreateTs() *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) ClearEventType() *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) ClearOutputData() *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) ClearStatus() *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) ClearVersion() *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) DoNothing() *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) Exec(ctx context.Context) error
- func (u *ProductEventUpsertBulk) ExecX(ctx context.Context)
- func (u *ProductEventUpsertBulk) Ignore() *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) SetCreateTs(v int64) *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) SetCustom(v bool) *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) SetEventName(v string) *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) SetEventType(v string) *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) SetIdentifier(v string) *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) SetOutputData(v string) *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) SetProductKey(v string) *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) SetRequired(v bool) *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) SetSort(v uint32) *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) SetStatus(v uint8) *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) SetUpdatedAt(v time.Time) *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) SetVersion(v string) *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) Update(set func(*ProductEventUpsert)) *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) UpdateCreateTs() *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) UpdateCustom() *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) UpdateEventName() *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) UpdateEventType() *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) UpdateIdentifier() *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) UpdateNewValues() *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) UpdateOutputData() *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) UpdateProductKey() *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) UpdateRequired() *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) UpdateSort() *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) UpdateStatus() *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) UpdateUpdatedAt() *ProductEventUpsertBulk
- func (u *ProductEventUpsertBulk) UpdateVersion() *ProductEventUpsertBulk
- type ProductEventUpsertOne
- func (u *ProductEventUpsertOne) AddCreateTs(v int64) *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) AddSort(v uint32) *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) AddStatus(v uint8) *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) ClearCreateTs() *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) ClearEventType() *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) ClearOutputData() *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) ClearStatus() *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) ClearVersion() *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) DoNothing() *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) Exec(ctx context.Context) error
- func (u *ProductEventUpsertOne) ExecX(ctx context.Context)
- func (u *ProductEventUpsertOne) ID(ctx context.Context) (id uint64, err error)
- func (u *ProductEventUpsertOne) IDX(ctx context.Context) uint64
- func (u *ProductEventUpsertOne) Ignore() *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) SetCreateTs(v int64) *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) SetCustom(v bool) *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) SetEventName(v string) *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) SetEventType(v string) *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) SetIdentifier(v string) *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) SetOutputData(v string) *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) SetProductKey(v string) *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) SetRequired(v bool) *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) SetSort(v uint32) *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) SetStatus(v uint8) *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) SetUpdatedAt(v time.Time) *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) SetVersion(v string) *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) Update(set func(*ProductEventUpsert)) *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) UpdateCreateTs() *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) UpdateCustom() *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) UpdateEventName() *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) UpdateEventType() *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) UpdateIdentifier() *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) UpdateNewValues() *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) UpdateOutputData() *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) UpdateProductKey() *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) UpdateRequired() *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) UpdateSort() *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) UpdateStatus() *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) UpdateUpdatedAt() *ProductEventUpsertOne
- func (u *ProductEventUpsertOne) UpdateVersion() *ProductEventUpsertOne
- type ProductEvents
- type ProductGroupBy
- func (pgb *ProductGroupBy) Aggregate(fns ...AggregateFunc) *ProductGroupBy
- func (s *ProductGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ProductGroupBy) BoolX(ctx context.Context) bool
- func (s *ProductGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ProductGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ProductGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ProductGroupBy) Float64X(ctx context.Context) float64
- func (s *ProductGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ProductGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ProductGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ProductGroupBy) IntX(ctx context.Context) int
- func (s *ProductGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ProductGroupBy) IntsX(ctx context.Context) []int
- func (pgb *ProductGroupBy) Scan(ctx context.Context, v any) error
- func (s *ProductGroupBy) ScanX(ctx context.Context, v any)
- func (s *ProductGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ProductGroupBy) StringX(ctx context.Context) string
- func (s *ProductGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ProductGroupBy) StringsX(ctx context.Context) []string
- type ProductMutation
- func (m *ProductMutation) AddDataFormat(i int32)
- func (m *ProductMutation) AddDeviceCount(i int32)
- func (m *ProductMutation) AddDeviceIDs(ids ...uuid.UUID)
- func (m *ProductMutation) AddEventIDs(ids ...uint64)
- func (m *ProductMutation) AddField(name string, value ent.Value) error
- func (m *ProductMutation) AddGmtCreate(i int64)
- func (m *ProductMutation) AddNetType(i int32)
- func (m *ProductMutation) AddNodeType(i int32)
- func (m *ProductMutation) AddPropertyIDs(ids ...uint64)
- func (m *ProductMutation) AddServiceIDs(ids ...uint64)
- func (m *ProductMutation) AddSort(u int32)
- func (m *ProductMutation) AddStatus(u int8)
- func (m *ProductMutation) AddTagIDs(ids ...uint64)
- func (m *ProductMutation) AddValidateType(i int32)
- func (m *ProductMutation) AddedDataFormat() (r int32, exists bool)
- func (m *ProductMutation) AddedDeviceCount() (r int32, exists bool)
- func (m *ProductMutation) AddedEdges() []string
- func (m *ProductMutation) AddedField(name string) (ent.Value, bool)
- func (m *ProductMutation) AddedFields() []string
- func (m *ProductMutation) AddedGmtCreate() (r int64, exists bool)
- func (m *ProductMutation) AddedIDs(name string) []ent.Value
- func (m *ProductMutation) AddedNetType() (r int32, exists bool)
- func (m *ProductMutation) AddedNodeType() (r int32, exists bool)
- func (m *ProductMutation) AddedSort() (r int32, exists bool)
- func (m *ProductMutation) AddedStatus() (r int8, exists bool)
- func (m *ProductMutation) AddedValidateType() (r int32, exists bool)
- func (m *ProductMutation) AliyunCommodityCode() (r string, exists bool)
- func (m *ProductMutation) AliyunCommodityCodeCleared() bool
- func (m *ProductMutation) AuthType() (r string, exists bool)
- func (m *ProductMutation) AuthTypeCleared() bool
- func (m *ProductMutation) CategoryKey() (r string, exists bool)
- func (m *ProductMutation) CategoryKeyCleared() bool
- func (m *ProductMutation) CategoryName() (r string, exists bool)
- func (m *ProductMutation) CategoryNameCleared() bool
- func (m *ProductMutation) ClearAliyunCommodityCode()
- func (m *ProductMutation) ClearAuthType()
- func (m *ProductMutation) ClearCategoryKey()
- func (m *ProductMutation) ClearCategoryName()
- func (m *ProductMutation) ClearDataFormat()
- func (m *ProductMutation) ClearDescription()
- func (m *ProductMutation) ClearDevices()
- func (m *ProductMutation) ClearEdge(name string) error
- func (m *ProductMutation) ClearEvents()
- func (m *ProductMutation) ClearField(name string) error
- func (m *ProductMutation) ClearGmtCreate()
- func (m *ProductMutation) ClearId2()
- func (m *ProductMutation) ClearNetType()
- func (m *ProductMutation) ClearOwner()
- func (m *ProductMutation) ClearProductSecret()
- func (m *ProductMutation) ClearProductStatus()
- func (m *ProductMutation) ClearProperties()
- func (m *ProductMutation) ClearProtocolType()
- func (m *ProductMutation) ClearServices()
- func (m *ProductMutation) ClearStatus()
- func (m *ProductMutation) ClearTags()
- func (m *ProductMutation) ClearValidateType()
- func (m *ProductMutation) ClearedEdges() []string
- func (m *ProductMutation) ClearedFields() []string
- func (m ProductMutation) Client() *Client
- func (m *ProductMutation) CreatedAt() (r time.Time, exists bool)
- func (m *ProductMutation) DataFormat() (r int32, exists bool)
- func (m *ProductMutation) DataFormatCleared() bool
- func (m *ProductMutation) Description() (r string, exists bool)
- func (m *ProductMutation) DescriptionCleared() bool
- func (m *ProductMutation) DeviceCount() (r int32, exists bool)
- func (m *ProductMutation) DevicesCleared() bool
- func (m *ProductMutation) DevicesIDs() (ids []uuid.UUID)
- func (m *ProductMutation) EdgeCleared(name string) bool
- func (m *ProductMutation) EventsCleared() bool
- func (m *ProductMutation) EventsIDs() (ids []uint64)
- func (c *ProductMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *ProductMutation) Field(name string) (ent.Value, bool)
- func (m *ProductMutation) FieldCleared(name string) bool
- func (m *ProductMutation) Fields() []string
- func (m *ProductMutation) GmtCreate() (r int64, exists bool)
- func (m *ProductMutation) GmtCreateCleared() bool
- func (m *ProductMutation) ID() (id uuid.UUID, exists bool)
- func (m *ProductMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *ProductMutation) Id2() (r bool, exists bool)
- func (m *ProductMutation) Id2Cleared() bool
- func (m *ProductMutation) NetType() (r int32, exists bool)
- func (m *ProductMutation) NetTypeCleared() bool
- func (m *ProductMutation) NodeType() (r int32, exists bool)
- func (m *ProductMutation) OldAliyunCommodityCode(ctx context.Context) (v string, err error)
- func (m *ProductMutation) OldAuthType(ctx context.Context) (v string, err error)
- func (m *ProductMutation) OldCategoryKey(ctx context.Context) (v string, err error)
- func (m *ProductMutation) OldCategoryName(ctx context.Context) (v string, err error)
- func (m *ProductMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ProductMutation) OldDataFormat(ctx context.Context) (v int32, err error)
- func (m *ProductMutation) OldDescription(ctx context.Context) (v string, err error)
- func (m *ProductMutation) OldDeviceCount(ctx context.Context) (v int32, err error)
- func (m *ProductMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ProductMutation) OldGmtCreate(ctx context.Context) (v int64, err error)
- func (m *ProductMutation) OldId2(ctx context.Context) (v bool, err error)
- func (m *ProductMutation) OldNetType(ctx context.Context) (v int32, err error)
- func (m *ProductMutation) OldNodeType(ctx context.Context) (v int32, err error)
- func (m *ProductMutation) OldOwner(ctx context.Context) (v bool, err error)
- func (m *ProductMutation) OldProductKey(ctx context.Context) (v string, err error)
- func (m *ProductMutation) OldProductName(ctx context.Context) (v string, err error)
- func (m *ProductMutation) OldProductSecret(ctx context.Context) (v string, err error)
- func (m *ProductMutation) OldProductStatus(ctx context.Context) (v string, err error)
- func (m *ProductMutation) OldProtocolType(ctx context.Context) (v string, err error)
- func (m *ProductMutation) OldSort(ctx context.Context) (v uint32, err error)
- func (m *ProductMutation) OldStatus(ctx context.Context) (v uint8, err error)
- func (m *ProductMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ProductMutation) OldValidateType(ctx context.Context) (v int32, err error)
- func (m *ProductMutation) Op() Op
- func (m *ProductMutation) Owner() (r bool, exists bool)
- func (m *ProductMutation) OwnerCleared() bool
- func (m *ProductMutation) ProductKey() (r string, exists bool)
- func (m *ProductMutation) ProductName() (r string, exists bool)
- func (m *ProductMutation) ProductSecret() (r string, exists bool)
- func (m *ProductMutation) ProductSecretCleared() bool
- func (m *ProductMutation) ProductStatus() (r string, exists bool)
- func (m *ProductMutation) ProductStatusCleared() bool
- func (m *ProductMutation) PropertiesCleared() bool
- func (m *ProductMutation) PropertiesIDs() (ids []uint64)
- func (m *ProductMutation) ProtocolType() (r string, exists bool)
- func (m *ProductMutation) ProtocolTypeCleared() bool
- func (c *ProductMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *ProductMutation) RemoveDeviceIDs(ids ...uuid.UUID)
- func (m *ProductMutation) RemoveEventIDs(ids ...uint64)
- func (m *ProductMutation) RemovePropertyIDs(ids ...uint64)
- func (m *ProductMutation) RemoveServiceIDs(ids ...uint64)
- func (m *ProductMutation) RemoveTagIDs(ids ...uint64)
- func (m *ProductMutation) RemovedDevicesIDs() (ids []uuid.UUID)
- func (m *ProductMutation) RemovedEdges() []string
- func (m *ProductMutation) RemovedEventsIDs() (ids []uint64)
- func (m *ProductMutation) RemovedIDs(name string) []ent.Value
- func (m *ProductMutation) RemovedPropertiesIDs() (ids []uint64)
- func (m *ProductMutation) RemovedServicesIDs() (ids []uint64)
- func (m *ProductMutation) RemovedTagsIDs() (ids []uint64)
- func (m *ProductMutation) ResetAliyunCommodityCode()
- func (m *ProductMutation) ResetAuthType()
- func (m *ProductMutation) ResetCategoryKey()
- func (m *ProductMutation) ResetCategoryName()
- func (m *ProductMutation) ResetCreatedAt()
- func (m *ProductMutation) ResetDataFormat()
- func (m *ProductMutation) ResetDescription()
- func (m *ProductMutation) ResetDeviceCount()
- func (m *ProductMutation) ResetDevices()
- func (m *ProductMutation) ResetEdge(name string) error
- func (m *ProductMutation) ResetEvents()
- func (m *ProductMutation) ResetField(name string) error
- func (m *ProductMutation) ResetGmtCreate()
- func (m *ProductMutation) ResetId2()
- func (m *ProductMutation) ResetNetType()
- func (m *ProductMutation) ResetNodeType()
- func (m *ProductMutation) ResetOwner()
- func (m *ProductMutation) ResetProductKey()
- func (m *ProductMutation) ResetProductName()
- func (m *ProductMutation) ResetProductSecret()
- func (m *ProductMutation) ResetProductStatus()
- func (m *ProductMutation) ResetProperties()
- func (m *ProductMutation) ResetProtocolType()
- func (m *ProductMutation) ResetServices()
- func (m *ProductMutation) ResetSort()
- func (m *ProductMutation) ResetStatus()
- func (m *ProductMutation) ResetTags()
- func (m *ProductMutation) ResetUpdatedAt()
- func (m *ProductMutation) ResetValidateType()
- func (m *ProductMutation) ServicesCleared() bool
- func (m *ProductMutation) ServicesIDs() (ids []uint64)
- func (m *ProductMutation) SetAliyunCommodityCode(s string)
- func (m *ProductMutation) SetAuthType(s string)
- func (m *ProductMutation) SetCategoryKey(s string)
- func (m *ProductMutation) SetCategoryName(s string)
- func (m *ProductMutation) SetCreatedAt(t time.Time)
- func (m *ProductMutation) SetDataFormat(i int32)
- func (m *ProductMutation) SetDescription(s string)
- func (m *ProductMutation) SetDeviceCount(i int32)
- func (m *ProductMutation) SetField(name string, value ent.Value) error
- func (m *ProductMutation) SetGmtCreate(i int64)
- func (m *ProductMutation) SetID(id uuid.UUID)
- func (m *ProductMutation) SetId2(b bool)
- func (m *ProductMutation) SetNetType(i int32)
- func (m *ProductMutation) SetNodeType(i int32)
- func (m *ProductMutation) SetOp(op Op)
- func (m *ProductMutation) SetOwner(b bool)
- func (m *ProductMutation) SetProductKey(s string)
- func (m *ProductMutation) SetProductName(s string)
- func (m *ProductMutation) SetProductSecret(s string)
- func (m *ProductMutation) SetProductStatus(s string)
- func (m *ProductMutation) SetProtocolType(s string)
- func (m *ProductMutation) SetSort(u uint32)
- func (m *ProductMutation) SetStatus(u uint8)
- func (m *ProductMutation) SetUpdatedAt(t time.Time)
- func (m *ProductMutation) SetValidateType(i int32)
- func (m *ProductMutation) Sort() (r uint32, exists bool)
- func (m *ProductMutation) Status() (r uint8, exists bool)
- func (m *ProductMutation) StatusCleared() bool
- func (m *ProductMutation) TagsCleared() bool
- func (m *ProductMutation) TagsIDs() (ids []uint64)
- func (m ProductMutation) Tx() (*Tx, error)
- func (m *ProductMutation) Type() string
- func (m *ProductMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *ProductMutation) ValidateType() (r int32, exists bool)
- func (m *ProductMutation) ValidateTypeCleared() bool
- func (m *ProductMutation) Where(ps ...predicate.Product)
- func (m *ProductMutation) WhereP(ps ...func(*sql.Selector))
- type ProductPageList
- type ProductPager
- type ProductPaginateOption
- type ProductProperties
- type ProductProperty
- func (c *ProductProperty) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *ProductProperty) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (pp *ProductProperty) QueryProduct() *ProductQuery
- func (pp *ProductProperty) String() string
- func (pp *ProductProperty) Unwrap() *ProductProperty
- func (pp *ProductProperty) Update() *ProductPropertyUpdateOne
- func (pp *ProductProperty) Value(name string) (ent.Value, error)
- type ProductPropertyClient
- func (c *ProductPropertyClient) Create() *ProductPropertyCreate
- func (c *ProductPropertyClient) CreateBulk(builders ...*ProductPropertyCreate) *ProductPropertyCreateBulk
- func (c *ProductPropertyClient) Delete() *ProductPropertyDelete
- func (c *ProductPropertyClient) DeleteOne(pp *ProductProperty) *ProductPropertyDeleteOne
- func (c *ProductPropertyClient) DeleteOneID(id uint64) *ProductPropertyDeleteOne
- func (c *ProductPropertyClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *ProductPropertyClient) Get(ctx context.Context, id uint64) (*ProductProperty, error)
- func (c *ProductPropertyClient) GetX(ctx context.Context, id uint64) *ProductProperty
- func (c *ProductPropertyClient) Hooks() []Hook
- func (c *ProductPropertyClient) Intercept(interceptors ...Interceptor)
- func (c *ProductPropertyClient) Interceptors() []Interceptor
- func (c *ProductPropertyClient) MapCreateBulk(slice any, setFunc func(*ProductPropertyCreate, int)) *ProductPropertyCreateBulk
- func (c *ProductPropertyClient) Query() *ProductPropertyQuery
- func (c *ProductPropertyClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *ProductPropertyClient) QueryProduct(pp *ProductProperty) *ProductQuery
- func (c *ProductPropertyClient) Update() *ProductPropertyUpdate
- func (c *ProductPropertyClient) UpdateOne(pp *ProductProperty) *ProductPropertyUpdateOne
- func (c *ProductPropertyClient) UpdateOneID(id uint64) *ProductPropertyUpdateOne
- func (c *ProductPropertyClient) Use(hooks ...Hook)
- type ProductPropertyCreate
- func (ppc *ProductPropertyCreate) Exec(ctx context.Context) error
- func (c *ProductPropertyCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ppc *ProductPropertyCreate) ExecX(ctx context.Context)
- func (ppc *ProductPropertyCreate) Mutation() *ProductPropertyMutation
- func (ppc *ProductPropertyCreate) OnConflict(opts ...sql.ConflictOption) *ProductPropertyUpsertOne
- func (ppc *ProductPropertyCreate) OnConflictColumns(columns ...string) *ProductPropertyUpsertOne
- func (c *ProductPropertyCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ppc *ProductPropertyCreate) Save(ctx context.Context) (*ProductProperty, error)
- func (ppc *ProductPropertyCreate) SaveX(ctx context.Context) *ProductProperty
- func (ppc *ProductPropertyCreate) SetCreateTs(i int64) *ProductPropertyCreate
- func (ppc *ProductPropertyCreate) SetCreatedAt(t time.Time) *ProductPropertyCreate
- func (ppc *ProductPropertyCreate) SetCustom(b bool) *ProductPropertyCreate
- func (ppc *ProductPropertyCreate) SetDataSpecs(s string) *ProductPropertyCreate
- func (ppc *ProductPropertyCreate) SetDataSpecsList(s string) *ProductPropertyCreate
- func (ppc *ProductPropertyCreate) SetDataType(s string) *ProductPropertyCreate
- func (ppc *ProductPropertyCreate) SetID(u uint64) *ProductPropertyCreate
- func (ppc *ProductPropertyCreate) SetIdentifier(s string) *ProductPropertyCreate
- func (ppc *ProductPropertyCreate) SetName(s string) *ProductPropertyCreate
- func (ppc *ProductPropertyCreate) SetNillableCreateTs(i *int64) *ProductPropertyCreate
- func (ppc *ProductPropertyCreate) SetNillableCreatedAt(t *time.Time) *ProductPropertyCreate
- func (ppc *ProductPropertyCreate) SetNillableCustom(b *bool) *ProductPropertyCreate
- func (ppc *ProductPropertyCreate) SetNillableDataSpecs(s *string) *ProductPropertyCreate
- func (ppc *ProductPropertyCreate) SetNillableDataSpecsList(s *string) *ProductPropertyCreate
- func (ppc *ProductPropertyCreate) SetNillableDataType(s *string) *ProductPropertyCreate
- func (ppc *ProductPropertyCreate) SetNillableProductID(id *uuid.UUID) *ProductPropertyCreate
- func (ppc *ProductPropertyCreate) SetNillableRequired(b *bool) *ProductPropertyCreate
- func (ppc *ProductPropertyCreate) SetNillableRwFlag(s *string) *ProductPropertyCreate
- func (ppc *ProductPropertyCreate) SetNillableSort(u *uint32) *ProductPropertyCreate
- func (ppc *ProductPropertyCreate) SetNillableStatus(u *uint8) *ProductPropertyCreate
- func (ppc *ProductPropertyCreate) SetNillableUpdatedAt(t *time.Time) *ProductPropertyCreate
- func (ppc *ProductPropertyCreate) SetNillableVersion(s *string) *ProductPropertyCreate
- func (pp *ProductPropertyCreate) SetNotNilCreateTs(value *int64) *ProductPropertyCreate
- func (pp *ProductPropertyCreate) SetNotNilCustom(value *bool) *ProductPropertyCreate
- func (pp *ProductPropertyCreate) SetNotNilDataSpecs(value *string) *ProductPropertyCreate
- func (pp *ProductPropertyCreate) SetNotNilDataSpecsList(value *string) *ProductPropertyCreate
- func (pp *ProductPropertyCreate) SetNotNilDataType(value *string) *ProductPropertyCreate
- func (pp *ProductPropertyCreate) SetNotNilIdentifier(value *string) *ProductPropertyCreate
- func (pp *ProductPropertyCreate) SetNotNilName(value *string) *ProductPropertyCreate
- func (pp *ProductPropertyCreate) SetNotNilProductKey(value *string) *ProductPropertyCreate
- func (pp *ProductPropertyCreate) SetNotNilRequired(value *bool) *ProductPropertyCreate
- func (pp *ProductPropertyCreate) SetNotNilRwFlag(value *string) *ProductPropertyCreate
- func (pp *ProductPropertyCreate) SetNotNilSort(value *uint32) *ProductPropertyCreate
- func (pp *ProductPropertyCreate) SetNotNilStatus(value *uint8) *ProductPropertyCreate
- func (pp *ProductPropertyCreate) SetNotNilUpdatedAt(value *time.Time) *ProductPropertyCreate
- func (pp *ProductPropertyCreate) SetNotNilVersion(value *string) *ProductPropertyCreate
- func (ppc *ProductPropertyCreate) SetProduct(p *Product) *ProductPropertyCreate
- func (ppc *ProductPropertyCreate) SetProductID(id uuid.UUID) *ProductPropertyCreate
- func (ppc *ProductPropertyCreate) SetProductKey(s string) *ProductPropertyCreate
- func (ppc *ProductPropertyCreate) SetRequired(b bool) *ProductPropertyCreate
- func (ppc *ProductPropertyCreate) SetRwFlag(s string) *ProductPropertyCreate
- func (ppc *ProductPropertyCreate) SetSort(u uint32) *ProductPropertyCreate
- func (ppc *ProductPropertyCreate) SetStatus(u uint8) *ProductPropertyCreate
- func (ppc *ProductPropertyCreate) SetUpdatedAt(t time.Time) *ProductPropertyCreate
- func (ppc *ProductPropertyCreate) SetVersion(s string) *ProductPropertyCreate
- type ProductPropertyCreateBulk
- func (ppcb *ProductPropertyCreateBulk) Exec(ctx context.Context) error
- func (c *ProductPropertyCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ppcb *ProductPropertyCreateBulk) ExecX(ctx context.Context)
- func (ppcb *ProductPropertyCreateBulk) OnConflict(opts ...sql.ConflictOption) *ProductPropertyUpsertBulk
- func (ppcb *ProductPropertyCreateBulk) OnConflictColumns(columns ...string) *ProductPropertyUpsertBulk
- func (c *ProductPropertyCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ppcb *ProductPropertyCreateBulk) Save(ctx context.Context) ([]*ProductProperty, error)
- func (ppcb *ProductPropertyCreateBulk) SaveX(ctx context.Context) []*ProductProperty
- type ProductPropertyDelete
- func (ppd *ProductPropertyDelete) Exec(ctx context.Context) (int, error)
- func (c *ProductPropertyDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ppd *ProductPropertyDelete) ExecX(ctx context.Context) int
- func (c *ProductPropertyDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ppd *ProductPropertyDelete) Where(ps ...predicate.ProductProperty) *ProductPropertyDelete
- type ProductPropertyDeleteOne
- type ProductPropertyEdges
- type ProductPropertyGroupBy
- func (ppgb *ProductPropertyGroupBy) Aggregate(fns ...AggregateFunc) *ProductPropertyGroupBy
- func (s *ProductPropertyGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ProductPropertyGroupBy) BoolX(ctx context.Context) bool
- func (s *ProductPropertyGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ProductPropertyGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ProductPropertyGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ProductPropertyGroupBy) Float64X(ctx context.Context) float64
- func (s *ProductPropertyGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ProductPropertyGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ProductPropertyGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ProductPropertyGroupBy) IntX(ctx context.Context) int
- func (s *ProductPropertyGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ProductPropertyGroupBy) IntsX(ctx context.Context) []int
- func (ppgb *ProductPropertyGroupBy) Scan(ctx context.Context, v any) error
- func (s *ProductPropertyGroupBy) ScanX(ctx context.Context, v any)
- func (s *ProductPropertyGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ProductPropertyGroupBy) StringX(ctx context.Context) string
- func (s *ProductPropertyGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ProductPropertyGroupBy) StringsX(ctx context.Context) []string
- type ProductPropertyMutation
- func (m *ProductPropertyMutation) AddCreateTs(i int64)
- func (m *ProductPropertyMutation) AddField(name string, value ent.Value) error
- func (m *ProductPropertyMutation) AddSort(u int32)
- func (m *ProductPropertyMutation) AddStatus(u int8)
- func (m *ProductPropertyMutation) AddedCreateTs() (r int64, exists bool)
- func (m *ProductPropertyMutation) AddedEdges() []string
- func (m *ProductPropertyMutation) AddedField(name string) (ent.Value, bool)
- func (m *ProductPropertyMutation) AddedFields() []string
- func (m *ProductPropertyMutation) AddedIDs(name string) []ent.Value
- func (m *ProductPropertyMutation) AddedSort() (r int32, exists bool)
- func (m *ProductPropertyMutation) AddedStatus() (r int8, exists bool)
- func (m *ProductPropertyMutation) ClearCreateTs()
- func (m *ProductPropertyMutation) ClearDataSpecs()
- func (m *ProductPropertyMutation) ClearDataSpecsList()
- func (m *ProductPropertyMutation) ClearDataType()
- func (m *ProductPropertyMutation) ClearEdge(name string) error
- func (m *ProductPropertyMutation) ClearField(name string) error
- func (m *ProductPropertyMutation) ClearProduct()
- func (m *ProductPropertyMutation) ClearStatus()
- func (m *ProductPropertyMutation) ClearVersion()
- func (m *ProductPropertyMutation) ClearedEdges() []string
- func (m *ProductPropertyMutation) ClearedFields() []string
- func (m ProductPropertyMutation) Client() *Client
- func (m *ProductPropertyMutation) CreateTs() (r int64, exists bool)
- func (m *ProductPropertyMutation) CreateTsCleared() bool
- func (m *ProductPropertyMutation) CreatedAt() (r time.Time, exists bool)
- func (m *ProductPropertyMutation) Custom() (r bool, exists bool)
- func (m *ProductPropertyMutation) DataSpecs() (r string, exists bool)
- func (m *ProductPropertyMutation) DataSpecsCleared() bool
- func (m *ProductPropertyMutation) DataSpecsList() (r string, exists bool)
- func (m *ProductPropertyMutation) DataSpecsListCleared() bool
- func (m *ProductPropertyMutation) DataType() (r string, exists bool)
- func (m *ProductPropertyMutation) DataTypeCleared() bool
- func (m *ProductPropertyMutation) EdgeCleared(name string) bool
- func (c *ProductPropertyMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *ProductPropertyMutation) Field(name string) (ent.Value, bool)
- func (m *ProductPropertyMutation) FieldCleared(name string) bool
- func (m *ProductPropertyMutation) Fields() []string
- func (m *ProductPropertyMutation) ID() (id uint64, exists bool)
- func (m *ProductPropertyMutation) IDs(ctx context.Context) ([]uint64, error)
- func (m *ProductPropertyMutation) Identifier() (r string, exists bool)
- func (m *ProductPropertyMutation) Name() (r string, exists bool)
- func (m *ProductPropertyMutation) OldCreateTs(ctx context.Context) (v int64, err error)
- func (m *ProductPropertyMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ProductPropertyMutation) OldCustom(ctx context.Context) (v bool, err error)
- func (m *ProductPropertyMutation) OldDataSpecs(ctx context.Context) (v string, err error)
- func (m *ProductPropertyMutation) OldDataSpecsList(ctx context.Context) (v string, err error)
- func (m *ProductPropertyMutation) OldDataType(ctx context.Context) (v string, err error)
- func (m *ProductPropertyMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ProductPropertyMutation) OldIdentifier(ctx context.Context) (v string, err error)
- func (m *ProductPropertyMutation) OldName(ctx context.Context) (v string, err error)
- func (m *ProductPropertyMutation) OldProductKey(ctx context.Context) (v string, err error)
- func (m *ProductPropertyMutation) OldRequired(ctx context.Context) (v bool, err error)
- func (m *ProductPropertyMutation) OldRwFlag(ctx context.Context) (v string, err error)
- func (m *ProductPropertyMutation) OldSort(ctx context.Context) (v uint32, err error)
- func (m *ProductPropertyMutation) OldStatus(ctx context.Context) (v uint8, err error)
- func (m *ProductPropertyMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ProductPropertyMutation) OldVersion(ctx context.Context) (v string, err error)
- func (m *ProductPropertyMutation) Op() Op
- func (m *ProductPropertyMutation) ProductCleared() bool
- func (m *ProductPropertyMutation) ProductID() (id uuid.UUID, exists bool)
- func (m *ProductPropertyMutation) ProductIDs() (ids []uuid.UUID)
- func (m *ProductPropertyMutation) ProductKey() (r string, exists bool)
- func (c *ProductPropertyMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *ProductPropertyMutation) RemovedEdges() []string
- func (m *ProductPropertyMutation) RemovedIDs(name string) []ent.Value
- func (m *ProductPropertyMutation) Required() (r bool, exists bool)
- func (m *ProductPropertyMutation) ResetCreateTs()
- func (m *ProductPropertyMutation) ResetCreatedAt()
- func (m *ProductPropertyMutation) ResetCustom()
- func (m *ProductPropertyMutation) ResetDataSpecs()
- func (m *ProductPropertyMutation) ResetDataSpecsList()
- func (m *ProductPropertyMutation) ResetDataType()
- func (m *ProductPropertyMutation) ResetEdge(name string) error
- func (m *ProductPropertyMutation) ResetField(name string) error
- func (m *ProductPropertyMutation) ResetIdentifier()
- func (m *ProductPropertyMutation) ResetName()
- func (m *ProductPropertyMutation) ResetProduct()
- func (m *ProductPropertyMutation) ResetProductKey()
- func (m *ProductPropertyMutation) ResetRequired()
- func (m *ProductPropertyMutation) ResetRwFlag()
- func (m *ProductPropertyMutation) ResetSort()
- func (m *ProductPropertyMutation) ResetStatus()
- func (m *ProductPropertyMutation) ResetUpdatedAt()
- func (m *ProductPropertyMutation) ResetVersion()
- func (m *ProductPropertyMutation) RwFlag() (r string, exists bool)
- func (m *ProductPropertyMutation) SetCreateTs(i int64)
- func (m *ProductPropertyMutation) SetCreatedAt(t time.Time)
- func (m *ProductPropertyMutation) SetCustom(b bool)
- func (m *ProductPropertyMutation) SetDataSpecs(s string)
- func (m *ProductPropertyMutation) SetDataSpecsList(s string)
- func (m *ProductPropertyMutation) SetDataType(s string)
- func (m *ProductPropertyMutation) SetField(name string, value ent.Value) error
- func (m *ProductPropertyMutation) SetID(id uint64)
- func (m *ProductPropertyMutation) SetIdentifier(s string)
- func (m *ProductPropertyMutation) SetName(s string)
- func (m *ProductPropertyMutation) SetOp(op Op)
- func (m *ProductPropertyMutation) SetProductID(id uuid.UUID)
- func (m *ProductPropertyMutation) SetProductKey(s string)
- func (m *ProductPropertyMutation) SetRequired(b bool)
- func (m *ProductPropertyMutation) SetRwFlag(s string)
- func (m *ProductPropertyMutation) SetSort(u uint32)
- func (m *ProductPropertyMutation) SetStatus(u uint8)
- func (m *ProductPropertyMutation) SetUpdatedAt(t time.Time)
- func (m *ProductPropertyMutation) SetVersion(s string)
- func (m *ProductPropertyMutation) Sort() (r uint32, exists bool)
- func (m *ProductPropertyMutation) Status() (r uint8, exists bool)
- func (m *ProductPropertyMutation) StatusCleared() bool
- func (m ProductPropertyMutation) Tx() (*Tx, error)
- func (m *ProductPropertyMutation) Type() string
- func (m *ProductPropertyMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *ProductPropertyMutation) Version() (r string, exists bool)
- func (m *ProductPropertyMutation) VersionCleared() bool
- func (m *ProductPropertyMutation) Where(ps ...predicate.ProductProperty)
- func (m *ProductPropertyMutation) WhereP(ps ...func(*sql.Selector))
- type ProductPropertyPageList
- type ProductPropertyPager
- type ProductPropertyPaginateOption
- type ProductPropertyQuery
- func (ppq *ProductPropertyQuery) Aggregate(fns ...AggregateFunc) *ProductPropertySelect
- func (ppq *ProductPropertyQuery) All(ctx context.Context) ([]*ProductProperty, error)
- func (ppq *ProductPropertyQuery) AllX(ctx context.Context) []*ProductProperty
- func (ppq *ProductPropertyQuery) Clone() *ProductPropertyQuery
- func (ppq *ProductPropertyQuery) Count(ctx context.Context) (int, error)
- func (ppq *ProductPropertyQuery) CountX(ctx context.Context) int
- func (c *ProductPropertyQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ppq *ProductPropertyQuery) Exist(ctx context.Context) (bool, error)
- func (ppq *ProductPropertyQuery) ExistX(ctx context.Context) bool
- func (ppq *ProductPropertyQuery) First(ctx context.Context) (*ProductProperty, error)
- func (ppq *ProductPropertyQuery) FirstID(ctx context.Context) (id uint64, err error)
- func (ppq *ProductPropertyQuery) FirstIDX(ctx context.Context) uint64
- func (ppq *ProductPropertyQuery) FirstX(ctx context.Context) *ProductProperty
- func (ppq *ProductPropertyQuery) GroupBy(field string, fields ...string) *ProductPropertyGroupBy
- func (ppq *ProductPropertyQuery) IDs(ctx context.Context) (ids []uint64, err error)
- func (ppq *ProductPropertyQuery) IDsX(ctx context.Context) []uint64
- func (ppq *ProductPropertyQuery) Limit(limit int) *ProductPropertyQuery
- func (ppq *ProductPropertyQuery) Modify(modifiers ...func(s *sql.Selector)) *ProductPropertySelect
- func (ppq *ProductPropertyQuery) Offset(offset int) *ProductPropertyQuery
- func (ppq *ProductPropertyQuery) Only(ctx context.Context) (*ProductProperty, error)
- func (ppq *ProductPropertyQuery) OnlyID(ctx context.Context) (id uint64, err error)
- func (ppq *ProductPropertyQuery) OnlyIDX(ctx context.Context) uint64
- func (ppq *ProductPropertyQuery) OnlyX(ctx context.Context) *ProductProperty
- func (ppq *ProductPropertyQuery) Order(o ...productproperty.OrderOption) *ProductPropertyQuery
- func (pp *ProductPropertyQuery) Page(ctx context.Context, pageNum uint64, pageSize uint64, ...) (*ProductPropertyPageList, error)
- func (c *ProductPropertyQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ppq *ProductPropertyQuery) QueryProduct() *ProductQuery
- func (ppq *ProductPropertyQuery) Select(fields ...string) *ProductPropertySelect
- func (ppq *ProductPropertyQuery) Unique(unique bool) *ProductPropertyQuery
- func (ppq *ProductPropertyQuery) Where(ps ...predicate.ProductProperty) *ProductPropertyQuery
- func (ppq *ProductPropertyQuery) WithProduct(opts ...func(*ProductQuery)) *ProductPropertyQuery
- type ProductPropertySelect
- func (pps *ProductPropertySelect) Aggregate(fns ...AggregateFunc) *ProductPropertySelect
- func (s *ProductPropertySelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ProductPropertySelect) BoolX(ctx context.Context) bool
- func (s *ProductPropertySelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ProductPropertySelect) BoolsX(ctx context.Context) []bool
- func (c ProductPropertySelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *ProductPropertySelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ProductPropertySelect) Float64X(ctx context.Context) float64
- func (s *ProductPropertySelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ProductPropertySelect) Float64sX(ctx context.Context) []float64
- func (s *ProductPropertySelect) Int(ctx context.Context) (_ int, err error)
- func (s *ProductPropertySelect) IntX(ctx context.Context) int
- func (s *ProductPropertySelect) Ints(ctx context.Context) ([]int, error)
- func (s *ProductPropertySelect) IntsX(ctx context.Context) []int
- func (pps *ProductPropertySelect) Modify(modifiers ...func(s *sql.Selector)) *ProductPropertySelect
- func (c ProductPropertySelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (pps *ProductPropertySelect) Scan(ctx context.Context, v any) error
- func (s *ProductPropertySelect) ScanX(ctx context.Context, v any)
- func (s *ProductPropertySelect) String(ctx context.Context) (_ string, err error)
- func (s *ProductPropertySelect) StringX(ctx context.Context) string
- func (s *ProductPropertySelect) Strings(ctx context.Context) ([]string, error)
- func (s *ProductPropertySelect) StringsX(ctx context.Context) []string
- type ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) AddCreateTs(i int64) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) AddSort(u int32) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) AddStatus(u int8) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) ClearCreateTs() *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) ClearDataSpecs() *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) ClearDataSpecsList() *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) ClearDataType() *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) ClearProduct() *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) ClearStatus() *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) ClearVersion() *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) Exec(ctx context.Context) error
- func (c *ProductPropertyUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ppu *ProductPropertyUpdate) ExecX(ctx context.Context)
- func (ppu *ProductPropertyUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) Mutation() *ProductPropertyMutation
- func (c *ProductPropertyUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ppu *ProductPropertyUpdate) Save(ctx context.Context) (int, error)
- func (ppu *ProductPropertyUpdate) SaveX(ctx context.Context) int
- func (ppu *ProductPropertyUpdate) SetCreateTs(i int64) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) SetCustom(b bool) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) SetDataSpecs(s string) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) SetDataSpecsList(s string) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) SetDataType(s string) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) SetIdentifier(s string) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) SetName(s string) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) SetNillableCreateTs(i *int64) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) SetNillableCustom(b *bool) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) SetNillableDataSpecs(s *string) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) SetNillableDataSpecsList(s *string) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) SetNillableDataType(s *string) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) SetNillableIdentifier(s *string) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) SetNillableName(s *string) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) SetNillableProductID(id *uuid.UUID) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) SetNillableProductKey(s *string) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) SetNillableRequired(b *bool) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) SetNillableRwFlag(s *string) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) SetNillableSort(u *uint32) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) SetNillableStatus(u *uint8) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) SetNillableVersion(s *string) *ProductPropertyUpdate
- func (pp *ProductPropertyUpdate) SetNotNilCreateTs(value *int64) *ProductPropertyUpdate
- func (pp *ProductPropertyUpdate) SetNotNilCustom(value *bool) *ProductPropertyUpdate
- func (pp *ProductPropertyUpdate) SetNotNilDataSpecs(value *string) *ProductPropertyUpdate
- func (pp *ProductPropertyUpdate) SetNotNilDataSpecsList(value *string) *ProductPropertyUpdate
- func (pp *ProductPropertyUpdate) SetNotNilDataType(value *string) *ProductPropertyUpdate
- func (pp *ProductPropertyUpdate) SetNotNilIdentifier(value *string) *ProductPropertyUpdate
- func (pp *ProductPropertyUpdate) SetNotNilName(value *string) *ProductPropertyUpdate
- func (pp *ProductPropertyUpdate) SetNotNilProductKey(value *string) *ProductPropertyUpdate
- func (pp *ProductPropertyUpdate) SetNotNilRequired(value *bool) *ProductPropertyUpdate
- func (pp *ProductPropertyUpdate) SetNotNilRwFlag(value *string) *ProductPropertyUpdate
- func (pp *ProductPropertyUpdate) SetNotNilSort(value *uint32) *ProductPropertyUpdate
- func (pp *ProductPropertyUpdate) SetNotNilStatus(value *uint8) *ProductPropertyUpdate
- func (pp *ProductPropertyUpdate) SetNotNilUpdatedAt(value *time.Time) *ProductPropertyUpdate
- func (pp *ProductPropertyUpdate) SetNotNilVersion(value *string) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) SetProduct(p *Product) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) SetProductID(id uuid.UUID) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) SetProductKey(s string) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) SetRequired(b bool) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) SetRwFlag(s string) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) SetSort(u uint32) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) SetStatus(u uint8) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) SetUpdatedAt(t time.Time) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) SetVersion(s string) *ProductPropertyUpdate
- func (ppu *ProductPropertyUpdate) Where(ps ...predicate.ProductProperty) *ProductPropertyUpdate
- type ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) AddCreateTs(i int64) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) AddSort(u int32) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) AddStatus(u int8) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) ClearCreateTs() *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) ClearDataSpecs() *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) ClearDataSpecsList() *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) ClearDataType() *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) ClearProduct() *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) ClearStatus() *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) ClearVersion() *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) Exec(ctx context.Context) error
- func (c *ProductPropertyUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ppuo *ProductPropertyUpdateOne) ExecX(ctx context.Context)
- func (ppuo *ProductPropertyUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) Mutation() *ProductPropertyMutation
- func (c *ProductPropertyUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ppuo *ProductPropertyUpdateOne) Save(ctx context.Context) (*ProductProperty, error)
- func (ppuo *ProductPropertyUpdateOne) SaveX(ctx context.Context) *ProductProperty
- func (ppuo *ProductPropertyUpdateOne) Select(field string, fields ...string) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) SetCreateTs(i int64) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) SetCustom(b bool) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) SetDataSpecs(s string) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) SetDataSpecsList(s string) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) SetDataType(s string) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) SetIdentifier(s string) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) SetName(s string) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) SetNillableCreateTs(i *int64) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) SetNillableCustom(b *bool) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) SetNillableDataSpecs(s *string) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) SetNillableDataSpecsList(s *string) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) SetNillableDataType(s *string) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) SetNillableIdentifier(s *string) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) SetNillableName(s *string) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) SetNillableProductID(id *uuid.UUID) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) SetNillableProductKey(s *string) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) SetNillableRequired(b *bool) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) SetNillableRwFlag(s *string) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) SetNillableSort(u *uint32) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) SetNillableStatus(u *uint8) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) SetNillableVersion(s *string) *ProductPropertyUpdateOne
- func (pp *ProductPropertyUpdateOne) SetNotNilCreateTs(value *int64) *ProductPropertyUpdateOne
- func (pp *ProductPropertyUpdateOne) SetNotNilCustom(value *bool) *ProductPropertyUpdateOne
- func (pp *ProductPropertyUpdateOne) SetNotNilDataSpecs(value *string) *ProductPropertyUpdateOne
- func (pp *ProductPropertyUpdateOne) SetNotNilDataSpecsList(value *string) *ProductPropertyUpdateOne
- func (pp *ProductPropertyUpdateOne) SetNotNilDataType(value *string) *ProductPropertyUpdateOne
- func (pp *ProductPropertyUpdateOne) SetNotNilIdentifier(value *string) *ProductPropertyUpdateOne
- func (pp *ProductPropertyUpdateOne) SetNotNilName(value *string) *ProductPropertyUpdateOne
- func (pp *ProductPropertyUpdateOne) SetNotNilProductKey(value *string) *ProductPropertyUpdateOne
- func (pp *ProductPropertyUpdateOne) SetNotNilRequired(value *bool) *ProductPropertyUpdateOne
- func (pp *ProductPropertyUpdateOne) SetNotNilRwFlag(value *string) *ProductPropertyUpdateOne
- func (pp *ProductPropertyUpdateOne) SetNotNilSort(value *uint32) *ProductPropertyUpdateOne
- func (pp *ProductPropertyUpdateOne) SetNotNilStatus(value *uint8) *ProductPropertyUpdateOne
- func (pp *ProductPropertyUpdateOne) SetNotNilUpdatedAt(value *time.Time) *ProductPropertyUpdateOne
- func (pp *ProductPropertyUpdateOne) SetNotNilVersion(value *string) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) SetProduct(p *Product) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) SetProductID(id uuid.UUID) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) SetProductKey(s string) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) SetRequired(b bool) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) SetRwFlag(s string) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) SetSort(u uint32) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) SetStatus(u uint8) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) SetUpdatedAt(t time.Time) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) SetVersion(s string) *ProductPropertyUpdateOne
- func (ppuo *ProductPropertyUpdateOne) Where(ps ...predicate.ProductProperty) *ProductPropertyUpdateOne
- type ProductPropertyUpsert
- func (u *ProductPropertyUpsert) AddCreateTs(v int64) *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) AddSort(v uint32) *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) AddStatus(v uint8) *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) ClearCreateTs() *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) ClearDataSpecs() *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) ClearDataSpecsList() *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) ClearDataType() *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) ClearStatus() *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) ClearVersion() *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) SetCreateTs(v int64) *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) SetCustom(v bool) *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) SetDataSpecs(v string) *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) SetDataSpecsList(v string) *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) SetDataType(v string) *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) SetIdentifier(v string) *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) SetName(v string) *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) SetProductKey(v string) *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) SetRequired(v bool) *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) SetRwFlag(v string) *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) SetSort(v uint32) *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) SetStatus(v uint8) *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) SetUpdatedAt(v time.Time) *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) SetVersion(v string) *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) UpdateCreateTs() *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) UpdateCustom() *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) UpdateDataSpecs() *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) UpdateDataSpecsList() *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) UpdateDataType() *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) UpdateIdentifier() *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) UpdateName() *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) UpdateProductKey() *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) UpdateRequired() *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) UpdateRwFlag() *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) UpdateSort() *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) UpdateStatus() *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) UpdateUpdatedAt() *ProductPropertyUpsert
- func (u *ProductPropertyUpsert) UpdateVersion() *ProductPropertyUpsert
- type ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) AddCreateTs(v int64) *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) AddSort(v uint32) *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) AddStatus(v uint8) *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) ClearCreateTs() *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) ClearDataSpecs() *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) ClearDataSpecsList() *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) ClearDataType() *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) ClearStatus() *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) ClearVersion() *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) DoNothing() *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) Exec(ctx context.Context) error
- func (u *ProductPropertyUpsertBulk) ExecX(ctx context.Context)
- func (u *ProductPropertyUpsertBulk) Ignore() *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) SetCreateTs(v int64) *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) SetCustom(v bool) *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) SetDataSpecs(v string) *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) SetDataSpecsList(v string) *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) SetDataType(v string) *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) SetIdentifier(v string) *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) SetName(v string) *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) SetProductKey(v string) *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) SetRequired(v bool) *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) SetRwFlag(v string) *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) SetSort(v uint32) *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) SetStatus(v uint8) *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) SetUpdatedAt(v time.Time) *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) SetVersion(v string) *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) Update(set func(*ProductPropertyUpsert)) *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) UpdateCreateTs() *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) UpdateCustom() *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) UpdateDataSpecs() *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) UpdateDataSpecsList() *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) UpdateDataType() *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) UpdateIdentifier() *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) UpdateName() *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) UpdateNewValues() *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) UpdateProductKey() *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) UpdateRequired() *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) UpdateRwFlag() *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) UpdateSort() *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) UpdateStatus() *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) UpdateUpdatedAt() *ProductPropertyUpsertBulk
- func (u *ProductPropertyUpsertBulk) UpdateVersion() *ProductPropertyUpsertBulk
- type ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) AddCreateTs(v int64) *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) AddSort(v uint32) *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) AddStatus(v uint8) *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) ClearCreateTs() *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) ClearDataSpecs() *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) ClearDataSpecsList() *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) ClearDataType() *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) ClearStatus() *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) ClearVersion() *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) DoNothing() *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) Exec(ctx context.Context) error
- func (u *ProductPropertyUpsertOne) ExecX(ctx context.Context)
- func (u *ProductPropertyUpsertOne) ID(ctx context.Context) (id uint64, err error)
- func (u *ProductPropertyUpsertOne) IDX(ctx context.Context) uint64
- func (u *ProductPropertyUpsertOne) Ignore() *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) SetCreateTs(v int64) *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) SetCustom(v bool) *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) SetDataSpecs(v string) *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) SetDataSpecsList(v string) *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) SetDataType(v string) *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) SetIdentifier(v string) *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) SetName(v string) *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) SetProductKey(v string) *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) SetRequired(v bool) *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) SetRwFlag(v string) *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) SetSort(v uint32) *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) SetStatus(v uint8) *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) SetUpdatedAt(v time.Time) *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) SetVersion(v string) *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) Update(set func(*ProductPropertyUpsert)) *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) UpdateCreateTs() *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) UpdateCustom() *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) UpdateDataSpecs() *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) UpdateDataSpecsList() *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) UpdateDataType() *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) UpdateIdentifier() *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) UpdateName() *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) UpdateNewValues() *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) UpdateProductKey() *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) UpdateRequired() *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) UpdateRwFlag() *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) UpdateSort() *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) UpdateStatus() *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) UpdateUpdatedAt() *ProductPropertyUpsertOne
- func (u *ProductPropertyUpsertOne) UpdateVersion() *ProductPropertyUpsertOne
- type ProductQuery
- func (pq *ProductQuery) Aggregate(fns ...AggregateFunc) *ProductSelect
- func (pq *ProductQuery) All(ctx context.Context) ([]*Product, error)
- func (pq *ProductQuery) AllX(ctx context.Context) []*Product
- func (pq *ProductQuery) Clone() *ProductQuery
- func (pq *ProductQuery) Count(ctx context.Context) (int, error)
- func (pq *ProductQuery) CountX(ctx context.Context) int
- func (c *ProductQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (pq *ProductQuery) Exist(ctx context.Context) (bool, error)
- func (pq *ProductQuery) ExistX(ctx context.Context) bool
- func (pq *ProductQuery) First(ctx context.Context) (*Product, error)
- func (pq *ProductQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (pq *ProductQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (pq *ProductQuery) FirstX(ctx context.Context) *Product
- func (pq *ProductQuery) GroupBy(field string, fields ...string) *ProductGroupBy
- func (pq *ProductQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (pq *ProductQuery) IDsX(ctx context.Context) []uuid.UUID
- func (pq *ProductQuery) Limit(limit int) *ProductQuery
- func (pq *ProductQuery) Modify(modifiers ...func(s *sql.Selector)) *ProductSelect
- func (pq *ProductQuery) Offset(offset int) *ProductQuery
- func (pq *ProductQuery) Only(ctx context.Context) (*Product, error)
- func (pq *ProductQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (pq *ProductQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (pq *ProductQuery) OnlyX(ctx context.Context) *Product
- func (pq *ProductQuery) Order(o ...product.OrderOption) *ProductQuery
- func (pr *ProductQuery) Page(ctx context.Context, pageNum uint64, pageSize uint64, ...) (*ProductPageList, error)
- func (c *ProductQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (pq *ProductQuery) QueryDevices() *DeviceQuery
- func (pq *ProductQuery) QueryEvents() *ProductEventQuery
- func (pq *ProductQuery) QueryProperties() *ProductPropertyQuery
- func (pq *ProductQuery) QueryServices() *ProductServiceQuery
- func (pq *ProductQuery) QueryTags() *ProductTagQuery
- func (pq *ProductQuery) Select(fields ...string) *ProductSelect
- func (pq *ProductQuery) Unique(unique bool) *ProductQuery
- func (pq *ProductQuery) Where(ps ...predicate.Product) *ProductQuery
- func (pq *ProductQuery) WithDevices(opts ...func(*DeviceQuery)) *ProductQuery
- func (pq *ProductQuery) WithEvents(opts ...func(*ProductEventQuery)) *ProductQuery
- func (pq *ProductQuery) WithProperties(opts ...func(*ProductPropertyQuery)) *ProductQuery
- func (pq *ProductQuery) WithServices(opts ...func(*ProductServiceQuery)) *ProductQuery
- func (pq *ProductQuery) WithTags(opts ...func(*ProductTagQuery)) *ProductQuery
- type ProductSelect
- func (ps *ProductSelect) Aggregate(fns ...AggregateFunc) *ProductSelect
- func (s *ProductSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ProductSelect) BoolX(ctx context.Context) bool
- func (s *ProductSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ProductSelect) BoolsX(ctx context.Context) []bool
- func (c ProductSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *ProductSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ProductSelect) Float64X(ctx context.Context) float64
- func (s *ProductSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ProductSelect) Float64sX(ctx context.Context) []float64
- func (s *ProductSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ProductSelect) IntX(ctx context.Context) int
- func (s *ProductSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ProductSelect) IntsX(ctx context.Context) []int
- func (ps *ProductSelect) Modify(modifiers ...func(s *sql.Selector)) *ProductSelect
- func (c ProductSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ps *ProductSelect) Scan(ctx context.Context, v any) error
- func (s *ProductSelect) ScanX(ctx context.Context, v any)
- func (s *ProductSelect) String(ctx context.Context) (_ string, err error)
- func (s *ProductSelect) StringX(ctx context.Context) string
- func (s *ProductSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ProductSelect) StringsX(ctx context.Context) []string
- type ProductService
- func (c *ProductService) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *ProductService) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ps *ProductService) QueryProduct() *ProductQuery
- func (ps *ProductService) String() string
- func (ps *ProductService) Unwrap() *ProductService
- func (ps *ProductService) Update() *ProductServiceUpdateOne
- func (ps *ProductService) Value(name string) (ent.Value, error)
- type ProductServiceClient
- func (c *ProductServiceClient) Create() *ProductServiceCreate
- func (c *ProductServiceClient) CreateBulk(builders ...*ProductServiceCreate) *ProductServiceCreateBulk
- func (c *ProductServiceClient) Delete() *ProductServiceDelete
- func (c *ProductServiceClient) DeleteOne(ps *ProductService) *ProductServiceDeleteOne
- func (c *ProductServiceClient) DeleteOneID(id uint64) *ProductServiceDeleteOne
- func (c *ProductServiceClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *ProductServiceClient) Get(ctx context.Context, id uint64) (*ProductService, error)
- func (c *ProductServiceClient) GetX(ctx context.Context, id uint64) *ProductService
- func (c *ProductServiceClient) Hooks() []Hook
- func (c *ProductServiceClient) Intercept(interceptors ...Interceptor)
- func (c *ProductServiceClient) Interceptors() []Interceptor
- func (c *ProductServiceClient) MapCreateBulk(slice any, setFunc func(*ProductServiceCreate, int)) *ProductServiceCreateBulk
- func (c *ProductServiceClient) Query() *ProductServiceQuery
- func (c *ProductServiceClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *ProductServiceClient) QueryProduct(ps *ProductService) *ProductQuery
- func (c *ProductServiceClient) Update() *ProductServiceUpdate
- func (c *ProductServiceClient) UpdateOne(ps *ProductService) *ProductServiceUpdateOne
- func (c *ProductServiceClient) UpdateOneID(id uint64) *ProductServiceUpdateOne
- func (c *ProductServiceClient) Use(hooks ...Hook)
- type ProductServiceCreate
- func (psc *ProductServiceCreate) Exec(ctx context.Context) error
- func (c *ProductServiceCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (psc *ProductServiceCreate) ExecX(ctx context.Context)
- func (psc *ProductServiceCreate) Mutation() *ProductServiceMutation
- func (psc *ProductServiceCreate) OnConflict(opts ...sql.ConflictOption) *ProductServiceUpsertOne
- func (psc *ProductServiceCreate) OnConflictColumns(columns ...string) *ProductServiceUpsertOne
- func (c *ProductServiceCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (psc *ProductServiceCreate) Save(ctx context.Context) (*ProductService, error)
- func (psc *ProductServiceCreate) SaveX(ctx context.Context) *ProductService
- func (psc *ProductServiceCreate) SetCallType(s string) *ProductServiceCreate
- func (psc *ProductServiceCreate) SetCreateTs(i int64) *ProductServiceCreate
- func (psc *ProductServiceCreate) SetCreatedAt(t time.Time) *ProductServiceCreate
- func (psc *ProductServiceCreate) SetCustom(b bool) *ProductServiceCreate
- func (psc *ProductServiceCreate) SetID(u uint64) *ProductServiceCreate
- func (psc *ProductServiceCreate) SetIdentifier(s string) *ProductServiceCreate
- func (psc *ProductServiceCreate) SetInputParams(s string) *ProductServiceCreate
- func (psc *ProductServiceCreate) SetNillableCallType(s *string) *ProductServiceCreate
- func (psc *ProductServiceCreate) SetNillableCreateTs(i *int64) *ProductServiceCreate
- func (psc *ProductServiceCreate) SetNillableCreatedAt(t *time.Time) *ProductServiceCreate
- func (psc *ProductServiceCreate) SetNillableCustom(b *bool) *ProductServiceCreate
- func (psc *ProductServiceCreate) SetNillableInputParams(s *string) *ProductServiceCreate
- func (psc *ProductServiceCreate) SetNillableOutputParams(s *string) *ProductServiceCreate
- func (psc *ProductServiceCreate) SetNillableProductID(id *uuid.UUID) *ProductServiceCreate
- func (psc *ProductServiceCreate) SetNillableRequired(b *bool) *ProductServiceCreate
- func (psc *ProductServiceCreate) SetNillableSort(u *uint32) *ProductServiceCreate
- func (psc *ProductServiceCreate) SetNillableStatus(u *uint8) *ProductServiceCreate
- func (psc *ProductServiceCreate) SetNillableUpdatedAt(t *time.Time) *ProductServiceCreate
- func (psc *ProductServiceCreate) SetNillableVersion(s *string) *ProductServiceCreate
- func (ps *ProductServiceCreate) SetNotNilCallType(value *string) *ProductServiceCreate
- func (ps *ProductServiceCreate) SetNotNilCreateTs(value *int64) *ProductServiceCreate
- func (ps *ProductServiceCreate) SetNotNilCustom(value *bool) *ProductServiceCreate
- func (ps *ProductServiceCreate) SetNotNilIdentifier(value *string) *ProductServiceCreate
- func (ps *ProductServiceCreate) SetNotNilInputParams(value *string) *ProductServiceCreate
- func (ps *ProductServiceCreate) SetNotNilOutputParams(value *string) *ProductServiceCreate
- func (ps *ProductServiceCreate) SetNotNilProductKey(value *string) *ProductServiceCreate
- func (ps *ProductServiceCreate) SetNotNilRequired(value *bool) *ProductServiceCreate
- func (ps *ProductServiceCreate) SetNotNilServiceName(value *string) *ProductServiceCreate
- func (ps *ProductServiceCreate) SetNotNilSort(value *uint32) *ProductServiceCreate
- func (ps *ProductServiceCreate) SetNotNilStatus(value *uint8) *ProductServiceCreate
- func (ps *ProductServiceCreate) SetNotNilUpdatedAt(value *time.Time) *ProductServiceCreate
- func (ps *ProductServiceCreate) SetNotNilVersion(value *string) *ProductServiceCreate
- func (psc *ProductServiceCreate) SetOutputParams(s string) *ProductServiceCreate
- func (psc *ProductServiceCreate) SetProduct(p *Product) *ProductServiceCreate
- func (psc *ProductServiceCreate) SetProductID(id uuid.UUID) *ProductServiceCreate
- func (psc *ProductServiceCreate) SetProductKey(s string) *ProductServiceCreate
- func (psc *ProductServiceCreate) SetRequired(b bool) *ProductServiceCreate
- func (psc *ProductServiceCreate) SetServiceName(s string) *ProductServiceCreate
- func (psc *ProductServiceCreate) SetSort(u uint32) *ProductServiceCreate
- func (psc *ProductServiceCreate) SetStatus(u uint8) *ProductServiceCreate
- func (psc *ProductServiceCreate) SetUpdatedAt(t time.Time) *ProductServiceCreate
- func (psc *ProductServiceCreate) SetVersion(s string) *ProductServiceCreate
- type ProductServiceCreateBulk
- func (pscb *ProductServiceCreateBulk) Exec(ctx context.Context) error
- func (c *ProductServiceCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (pscb *ProductServiceCreateBulk) ExecX(ctx context.Context)
- func (pscb *ProductServiceCreateBulk) OnConflict(opts ...sql.ConflictOption) *ProductServiceUpsertBulk
- func (pscb *ProductServiceCreateBulk) OnConflictColumns(columns ...string) *ProductServiceUpsertBulk
- func (c *ProductServiceCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (pscb *ProductServiceCreateBulk) Save(ctx context.Context) ([]*ProductService, error)
- func (pscb *ProductServiceCreateBulk) SaveX(ctx context.Context) []*ProductService
- type ProductServiceDelete
- func (psd *ProductServiceDelete) Exec(ctx context.Context) (int, error)
- func (c *ProductServiceDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (psd *ProductServiceDelete) ExecX(ctx context.Context) int
- func (c *ProductServiceDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (psd *ProductServiceDelete) Where(ps ...predicate.ProductService) *ProductServiceDelete
- type ProductServiceDeleteOne
- type ProductServiceEdges
- type ProductServiceGroupBy
- func (psgb *ProductServiceGroupBy) Aggregate(fns ...AggregateFunc) *ProductServiceGroupBy
- func (s *ProductServiceGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ProductServiceGroupBy) BoolX(ctx context.Context) bool
- func (s *ProductServiceGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ProductServiceGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ProductServiceGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ProductServiceGroupBy) Float64X(ctx context.Context) float64
- func (s *ProductServiceGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ProductServiceGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ProductServiceGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ProductServiceGroupBy) IntX(ctx context.Context) int
- func (s *ProductServiceGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ProductServiceGroupBy) IntsX(ctx context.Context) []int
- func (psgb *ProductServiceGroupBy) Scan(ctx context.Context, v any) error
- func (s *ProductServiceGroupBy) ScanX(ctx context.Context, v any)
- func (s *ProductServiceGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ProductServiceGroupBy) StringX(ctx context.Context) string
- func (s *ProductServiceGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ProductServiceGroupBy) StringsX(ctx context.Context) []string
- type ProductServiceMutation
- func (m *ProductServiceMutation) AddCreateTs(i int64)
- func (m *ProductServiceMutation) AddField(name string, value ent.Value) error
- func (m *ProductServiceMutation) AddSort(u int32)
- func (m *ProductServiceMutation) AddStatus(u int8)
- func (m *ProductServiceMutation) AddedCreateTs() (r int64, exists bool)
- func (m *ProductServiceMutation) AddedEdges() []string
- func (m *ProductServiceMutation) AddedField(name string) (ent.Value, bool)
- func (m *ProductServiceMutation) AddedFields() []string
- func (m *ProductServiceMutation) AddedIDs(name string) []ent.Value
- func (m *ProductServiceMutation) AddedSort() (r int32, exists bool)
- func (m *ProductServiceMutation) AddedStatus() (r int8, exists bool)
- func (m *ProductServiceMutation) CallType() (r string, exists bool)
- func (m *ProductServiceMutation) ClearCreateTs()
- func (m *ProductServiceMutation) ClearEdge(name string) error
- func (m *ProductServiceMutation) ClearField(name string) error
- func (m *ProductServiceMutation) ClearInputParams()
- func (m *ProductServiceMutation) ClearOutputParams()
- func (m *ProductServiceMutation) ClearProduct()
- func (m *ProductServiceMutation) ClearStatus()
- func (m *ProductServiceMutation) ClearVersion()
- func (m *ProductServiceMutation) ClearedEdges() []string
- func (m *ProductServiceMutation) ClearedFields() []string
- func (m ProductServiceMutation) Client() *Client
- func (m *ProductServiceMutation) CreateTs() (r int64, exists bool)
- func (m *ProductServiceMutation) CreateTsCleared() bool
- func (m *ProductServiceMutation) CreatedAt() (r time.Time, exists bool)
- func (m *ProductServiceMutation) Custom() (r bool, exists bool)
- func (m *ProductServiceMutation) EdgeCleared(name string) bool
- func (c *ProductServiceMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *ProductServiceMutation) Field(name string) (ent.Value, bool)
- func (m *ProductServiceMutation) FieldCleared(name string) bool
- func (m *ProductServiceMutation) Fields() []string
- func (m *ProductServiceMutation) ID() (id uint64, exists bool)
- func (m *ProductServiceMutation) IDs(ctx context.Context) ([]uint64, error)
- func (m *ProductServiceMutation) Identifier() (r string, exists bool)
- func (m *ProductServiceMutation) InputParams() (r string, exists bool)
- func (m *ProductServiceMutation) InputParamsCleared() bool
- func (m *ProductServiceMutation) OldCallType(ctx context.Context) (v string, err error)
- func (m *ProductServiceMutation) OldCreateTs(ctx context.Context) (v int64, err error)
- func (m *ProductServiceMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ProductServiceMutation) OldCustom(ctx context.Context) (v bool, err error)
- func (m *ProductServiceMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ProductServiceMutation) OldIdentifier(ctx context.Context) (v string, err error)
- func (m *ProductServiceMutation) OldInputParams(ctx context.Context) (v string, err error)
- func (m *ProductServiceMutation) OldOutputParams(ctx context.Context) (v string, err error)
- func (m *ProductServiceMutation) OldProductKey(ctx context.Context) (v string, err error)
- func (m *ProductServiceMutation) OldRequired(ctx context.Context) (v bool, err error)
- func (m *ProductServiceMutation) OldServiceName(ctx context.Context) (v string, err error)
- func (m *ProductServiceMutation) OldSort(ctx context.Context) (v uint32, err error)
- func (m *ProductServiceMutation) OldStatus(ctx context.Context) (v uint8, err error)
- func (m *ProductServiceMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ProductServiceMutation) OldVersion(ctx context.Context) (v string, err error)
- func (m *ProductServiceMutation) Op() Op
- func (m *ProductServiceMutation) OutputParams() (r string, exists bool)
- func (m *ProductServiceMutation) OutputParamsCleared() bool
- func (m *ProductServiceMutation) ProductCleared() bool
- func (m *ProductServiceMutation) ProductID() (id uuid.UUID, exists bool)
- func (m *ProductServiceMutation) ProductIDs() (ids []uuid.UUID)
- func (m *ProductServiceMutation) ProductKey() (r string, exists bool)
- func (c *ProductServiceMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *ProductServiceMutation) RemovedEdges() []string
- func (m *ProductServiceMutation) RemovedIDs(name string) []ent.Value
- func (m *ProductServiceMutation) Required() (r bool, exists bool)
- func (m *ProductServiceMutation) ResetCallType()
- func (m *ProductServiceMutation) ResetCreateTs()
- func (m *ProductServiceMutation) ResetCreatedAt()
- func (m *ProductServiceMutation) ResetCustom()
- func (m *ProductServiceMutation) ResetEdge(name string) error
- func (m *ProductServiceMutation) ResetField(name string) error
- func (m *ProductServiceMutation) ResetIdentifier()
- func (m *ProductServiceMutation) ResetInputParams()
- func (m *ProductServiceMutation) ResetOutputParams()
- func (m *ProductServiceMutation) ResetProduct()
- func (m *ProductServiceMutation) ResetProductKey()
- func (m *ProductServiceMutation) ResetRequired()
- func (m *ProductServiceMutation) ResetServiceName()
- func (m *ProductServiceMutation) ResetSort()
- func (m *ProductServiceMutation) ResetStatus()
- func (m *ProductServiceMutation) ResetUpdatedAt()
- func (m *ProductServiceMutation) ResetVersion()
- func (m *ProductServiceMutation) ServiceName() (r string, exists bool)
- func (m *ProductServiceMutation) SetCallType(s string)
- func (m *ProductServiceMutation) SetCreateTs(i int64)
- func (m *ProductServiceMutation) SetCreatedAt(t time.Time)
- func (m *ProductServiceMutation) SetCustom(b bool)
- func (m *ProductServiceMutation) SetField(name string, value ent.Value) error
- func (m *ProductServiceMutation) SetID(id uint64)
- func (m *ProductServiceMutation) SetIdentifier(s string)
- func (m *ProductServiceMutation) SetInputParams(s string)
- func (m *ProductServiceMutation) SetOp(op Op)
- func (m *ProductServiceMutation) SetOutputParams(s string)
- func (m *ProductServiceMutation) SetProductID(id uuid.UUID)
- func (m *ProductServiceMutation) SetProductKey(s string)
- func (m *ProductServiceMutation) SetRequired(b bool)
- func (m *ProductServiceMutation) SetServiceName(s string)
- func (m *ProductServiceMutation) SetSort(u uint32)
- func (m *ProductServiceMutation) SetStatus(u uint8)
- func (m *ProductServiceMutation) SetUpdatedAt(t time.Time)
- func (m *ProductServiceMutation) SetVersion(s string)
- func (m *ProductServiceMutation) Sort() (r uint32, exists bool)
- func (m *ProductServiceMutation) Status() (r uint8, exists bool)
- func (m *ProductServiceMutation) StatusCleared() bool
- func (m ProductServiceMutation) Tx() (*Tx, error)
- func (m *ProductServiceMutation) Type() string
- func (m *ProductServiceMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *ProductServiceMutation) Version() (r string, exists bool)
- func (m *ProductServiceMutation) VersionCleared() bool
- func (m *ProductServiceMutation) Where(ps ...predicate.ProductService)
- func (m *ProductServiceMutation) WhereP(ps ...func(*sql.Selector))
- type ProductServicePageList
- type ProductServicePager
- type ProductServicePaginateOption
- type ProductServiceQuery
- func (psq *ProductServiceQuery) Aggregate(fns ...AggregateFunc) *ProductServiceSelect
- func (psq *ProductServiceQuery) All(ctx context.Context) ([]*ProductService, error)
- func (psq *ProductServiceQuery) AllX(ctx context.Context) []*ProductService
- func (psq *ProductServiceQuery) Clone() *ProductServiceQuery
- func (psq *ProductServiceQuery) Count(ctx context.Context) (int, error)
- func (psq *ProductServiceQuery) CountX(ctx context.Context) int
- func (c *ProductServiceQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (psq *ProductServiceQuery) Exist(ctx context.Context) (bool, error)
- func (psq *ProductServiceQuery) ExistX(ctx context.Context) bool
- func (psq *ProductServiceQuery) First(ctx context.Context) (*ProductService, error)
- func (psq *ProductServiceQuery) FirstID(ctx context.Context) (id uint64, err error)
- func (psq *ProductServiceQuery) FirstIDX(ctx context.Context) uint64
- func (psq *ProductServiceQuery) FirstX(ctx context.Context) *ProductService
- func (psq *ProductServiceQuery) GroupBy(field string, fields ...string) *ProductServiceGroupBy
- func (psq *ProductServiceQuery) IDs(ctx context.Context) (ids []uint64, err error)
- func (psq *ProductServiceQuery) IDsX(ctx context.Context) []uint64
- func (psq *ProductServiceQuery) Limit(limit int) *ProductServiceQuery
- func (psq *ProductServiceQuery) Modify(modifiers ...func(s *sql.Selector)) *ProductServiceSelect
- func (psq *ProductServiceQuery) Offset(offset int) *ProductServiceQuery
- func (psq *ProductServiceQuery) Only(ctx context.Context) (*ProductService, error)
- func (psq *ProductServiceQuery) OnlyID(ctx context.Context) (id uint64, err error)
- func (psq *ProductServiceQuery) OnlyIDX(ctx context.Context) uint64
- func (psq *ProductServiceQuery) OnlyX(ctx context.Context) *ProductService
- func (psq *ProductServiceQuery) Order(o ...productservice.OrderOption) *ProductServiceQuery
- func (ps *ProductServiceQuery) Page(ctx context.Context, pageNum uint64, pageSize uint64, ...) (*ProductServicePageList, error)
- func (c *ProductServiceQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (psq *ProductServiceQuery) QueryProduct() *ProductQuery
- func (psq *ProductServiceQuery) Select(fields ...string) *ProductServiceSelect
- func (psq *ProductServiceQuery) Unique(unique bool) *ProductServiceQuery
- func (psq *ProductServiceQuery) Where(ps ...predicate.ProductService) *ProductServiceQuery
- func (psq *ProductServiceQuery) WithProduct(opts ...func(*ProductQuery)) *ProductServiceQuery
- type ProductServiceSelect
- func (pss *ProductServiceSelect) Aggregate(fns ...AggregateFunc) *ProductServiceSelect
- func (s *ProductServiceSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ProductServiceSelect) BoolX(ctx context.Context) bool
- func (s *ProductServiceSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ProductServiceSelect) BoolsX(ctx context.Context) []bool
- func (c ProductServiceSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *ProductServiceSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ProductServiceSelect) Float64X(ctx context.Context) float64
- func (s *ProductServiceSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ProductServiceSelect) Float64sX(ctx context.Context) []float64
- func (s *ProductServiceSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ProductServiceSelect) IntX(ctx context.Context) int
- func (s *ProductServiceSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ProductServiceSelect) IntsX(ctx context.Context) []int
- func (pss *ProductServiceSelect) Modify(modifiers ...func(s *sql.Selector)) *ProductServiceSelect
- func (c ProductServiceSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (pss *ProductServiceSelect) Scan(ctx context.Context, v any) error
- func (s *ProductServiceSelect) ScanX(ctx context.Context, v any)
- func (s *ProductServiceSelect) String(ctx context.Context) (_ string, err error)
- func (s *ProductServiceSelect) StringX(ctx context.Context) string
- func (s *ProductServiceSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ProductServiceSelect) StringsX(ctx context.Context) []string
- type ProductServiceUpdate
- func (psu *ProductServiceUpdate) AddCreateTs(i int64) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) AddSort(u int32) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) AddStatus(u int8) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) ClearCreateTs() *ProductServiceUpdate
- func (psu *ProductServiceUpdate) ClearInputParams() *ProductServiceUpdate
- func (psu *ProductServiceUpdate) ClearOutputParams() *ProductServiceUpdate
- func (psu *ProductServiceUpdate) ClearProduct() *ProductServiceUpdate
- func (psu *ProductServiceUpdate) ClearStatus() *ProductServiceUpdate
- func (psu *ProductServiceUpdate) ClearVersion() *ProductServiceUpdate
- func (psu *ProductServiceUpdate) Exec(ctx context.Context) error
- func (c *ProductServiceUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (psu *ProductServiceUpdate) ExecX(ctx context.Context)
- func (psu *ProductServiceUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) Mutation() *ProductServiceMutation
- func (c *ProductServiceUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (psu *ProductServiceUpdate) Save(ctx context.Context) (int, error)
- func (psu *ProductServiceUpdate) SaveX(ctx context.Context) int
- func (psu *ProductServiceUpdate) SetCallType(s string) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) SetCreateTs(i int64) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) SetCustom(b bool) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) SetIdentifier(s string) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) SetInputParams(s string) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) SetNillableCallType(s *string) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) SetNillableCreateTs(i *int64) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) SetNillableCustom(b *bool) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) SetNillableIdentifier(s *string) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) SetNillableInputParams(s *string) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) SetNillableOutputParams(s *string) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) SetNillableProductID(id *uuid.UUID) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) SetNillableProductKey(s *string) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) SetNillableRequired(b *bool) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) SetNillableServiceName(s *string) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) SetNillableSort(u *uint32) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) SetNillableStatus(u *uint8) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) SetNillableVersion(s *string) *ProductServiceUpdate
- func (ps *ProductServiceUpdate) SetNotNilCallType(value *string) *ProductServiceUpdate
- func (ps *ProductServiceUpdate) SetNotNilCreateTs(value *int64) *ProductServiceUpdate
- func (ps *ProductServiceUpdate) SetNotNilCustom(value *bool) *ProductServiceUpdate
- func (ps *ProductServiceUpdate) SetNotNilIdentifier(value *string) *ProductServiceUpdate
- func (ps *ProductServiceUpdate) SetNotNilInputParams(value *string) *ProductServiceUpdate
- func (ps *ProductServiceUpdate) SetNotNilOutputParams(value *string) *ProductServiceUpdate
- func (ps *ProductServiceUpdate) SetNotNilProductKey(value *string) *ProductServiceUpdate
- func (ps *ProductServiceUpdate) SetNotNilRequired(value *bool) *ProductServiceUpdate
- func (ps *ProductServiceUpdate) SetNotNilServiceName(value *string) *ProductServiceUpdate
- func (ps *ProductServiceUpdate) SetNotNilSort(value *uint32) *ProductServiceUpdate
- func (ps *ProductServiceUpdate) SetNotNilStatus(value *uint8) *ProductServiceUpdate
- func (ps *ProductServiceUpdate) SetNotNilUpdatedAt(value *time.Time) *ProductServiceUpdate
- func (ps *ProductServiceUpdate) SetNotNilVersion(value *string) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) SetOutputParams(s string) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) SetProduct(p *Product) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) SetProductID(id uuid.UUID) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) SetProductKey(s string) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) SetRequired(b bool) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) SetServiceName(s string) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) SetSort(u uint32) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) SetStatus(u uint8) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) SetUpdatedAt(t time.Time) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) SetVersion(s string) *ProductServiceUpdate
- func (psu *ProductServiceUpdate) Where(ps ...predicate.ProductService) *ProductServiceUpdate
- type ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) AddCreateTs(i int64) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) AddSort(u int32) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) AddStatus(u int8) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) ClearCreateTs() *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) ClearInputParams() *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) ClearOutputParams() *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) ClearProduct() *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) ClearStatus() *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) ClearVersion() *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) Exec(ctx context.Context) error
- func (c *ProductServiceUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (psuo *ProductServiceUpdateOne) ExecX(ctx context.Context)
- func (psuo *ProductServiceUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) Mutation() *ProductServiceMutation
- func (c *ProductServiceUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (psuo *ProductServiceUpdateOne) Save(ctx context.Context) (*ProductService, error)
- func (psuo *ProductServiceUpdateOne) SaveX(ctx context.Context) *ProductService
- func (psuo *ProductServiceUpdateOne) Select(field string, fields ...string) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) SetCallType(s string) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) SetCreateTs(i int64) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) SetCustom(b bool) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) SetIdentifier(s string) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) SetInputParams(s string) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) SetNillableCallType(s *string) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) SetNillableCreateTs(i *int64) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) SetNillableCustom(b *bool) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) SetNillableIdentifier(s *string) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) SetNillableInputParams(s *string) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) SetNillableOutputParams(s *string) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) SetNillableProductID(id *uuid.UUID) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) SetNillableProductKey(s *string) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) SetNillableRequired(b *bool) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) SetNillableServiceName(s *string) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) SetNillableSort(u *uint32) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) SetNillableStatus(u *uint8) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) SetNillableVersion(s *string) *ProductServiceUpdateOne
- func (ps *ProductServiceUpdateOne) SetNotNilCallType(value *string) *ProductServiceUpdateOne
- func (ps *ProductServiceUpdateOne) SetNotNilCreateTs(value *int64) *ProductServiceUpdateOne
- func (ps *ProductServiceUpdateOne) SetNotNilCustom(value *bool) *ProductServiceUpdateOne
- func (ps *ProductServiceUpdateOne) SetNotNilIdentifier(value *string) *ProductServiceUpdateOne
- func (ps *ProductServiceUpdateOne) SetNotNilInputParams(value *string) *ProductServiceUpdateOne
- func (ps *ProductServiceUpdateOne) SetNotNilOutputParams(value *string) *ProductServiceUpdateOne
- func (ps *ProductServiceUpdateOne) SetNotNilProductKey(value *string) *ProductServiceUpdateOne
- func (ps *ProductServiceUpdateOne) SetNotNilRequired(value *bool) *ProductServiceUpdateOne
- func (ps *ProductServiceUpdateOne) SetNotNilServiceName(value *string) *ProductServiceUpdateOne
- func (ps *ProductServiceUpdateOne) SetNotNilSort(value *uint32) *ProductServiceUpdateOne
- func (ps *ProductServiceUpdateOne) SetNotNilStatus(value *uint8) *ProductServiceUpdateOne
- func (ps *ProductServiceUpdateOne) SetNotNilUpdatedAt(value *time.Time) *ProductServiceUpdateOne
- func (ps *ProductServiceUpdateOne) SetNotNilVersion(value *string) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) SetOutputParams(s string) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) SetProduct(p *Product) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) SetProductID(id uuid.UUID) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) SetProductKey(s string) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) SetRequired(b bool) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) SetServiceName(s string) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) SetSort(u uint32) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) SetStatus(u uint8) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) SetUpdatedAt(t time.Time) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) SetVersion(s string) *ProductServiceUpdateOne
- func (psuo *ProductServiceUpdateOne) Where(ps ...predicate.ProductService) *ProductServiceUpdateOne
- type ProductServiceUpsert
- func (u *ProductServiceUpsert) AddCreateTs(v int64) *ProductServiceUpsert
- func (u *ProductServiceUpsert) AddSort(v uint32) *ProductServiceUpsert
- func (u *ProductServiceUpsert) AddStatus(v uint8) *ProductServiceUpsert
- func (u *ProductServiceUpsert) ClearCreateTs() *ProductServiceUpsert
- func (u *ProductServiceUpsert) ClearInputParams() *ProductServiceUpsert
- func (u *ProductServiceUpsert) ClearOutputParams() *ProductServiceUpsert
- func (u *ProductServiceUpsert) ClearStatus() *ProductServiceUpsert
- func (u *ProductServiceUpsert) ClearVersion() *ProductServiceUpsert
- func (u *ProductServiceUpsert) SetCallType(v string) *ProductServiceUpsert
- func (u *ProductServiceUpsert) SetCreateTs(v int64) *ProductServiceUpsert
- func (u *ProductServiceUpsert) SetCustom(v bool) *ProductServiceUpsert
- func (u *ProductServiceUpsert) SetIdentifier(v string) *ProductServiceUpsert
- func (u *ProductServiceUpsert) SetInputParams(v string) *ProductServiceUpsert
- func (u *ProductServiceUpsert) SetOutputParams(v string) *ProductServiceUpsert
- func (u *ProductServiceUpsert) SetProductKey(v string) *ProductServiceUpsert
- func (u *ProductServiceUpsert) SetRequired(v bool) *ProductServiceUpsert
- func (u *ProductServiceUpsert) SetServiceName(v string) *ProductServiceUpsert
- func (u *ProductServiceUpsert) SetSort(v uint32) *ProductServiceUpsert
- func (u *ProductServiceUpsert) SetStatus(v uint8) *ProductServiceUpsert
- func (u *ProductServiceUpsert) SetUpdatedAt(v time.Time) *ProductServiceUpsert
- func (u *ProductServiceUpsert) SetVersion(v string) *ProductServiceUpsert
- func (u *ProductServiceUpsert) UpdateCallType() *ProductServiceUpsert
- func (u *ProductServiceUpsert) UpdateCreateTs() *ProductServiceUpsert
- func (u *ProductServiceUpsert) UpdateCustom() *ProductServiceUpsert
- func (u *ProductServiceUpsert) UpdateIdentifier() *ProductServiceUpsert
- func (u *ProductServiceUpsert) UpdateInputParams() *ProductServiceUpsert
- func (u *ProductServiceUpsert) UpdateOutputParams() *ProductServiceUpsert
- func (u *ProductServiceUpsert) UpdateProductKey() *ProductServiceUpsert
- func (u *ProductServiceUpsert) UpdateRequired() *ProductServiceUpsert
- func (u *ProductServiceUpsert) UpdateServiceName() *ProductServiceUpsert
- func (u *ProductServiceUpsert) UpdateSort() *ProductServiceUpsert
- func (u *ProductServiceUpsert) UpdateStatus() *ProductServiceUpsert
- func (u *ProductServiceUpsert) UpdateUpdatedAt() *ProductServiceUpsert
- func (u *ProductServiceUpsert) UpdateVersion() *ProductServiceUpsert
- type ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) AddCreateTs(v int64) *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) AddSort(v uint32) *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) AddStatus(v uint8) *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) ClearCreateTs() *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) ClearInputParams() *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) ClearOutputParams() *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) ClearStatus() *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) ClearVersion() *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) DoNothing() *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) Exec(ctx context.Context) error
- func (u *ProductServiceUpsertBulk) ExecX(ctx context.Context)
- func (u *ProductServiceUpsertBulk) Ignore() *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) SetCallType(v string) *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) SetCreateTs(v int64) *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) SetCustom(v bool) *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) SetIdentifier(v string) *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) SetInputParams(v string) *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) SetOutputParams(v string) *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) SetProductKey(v string) *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) SetRequired(v bool) *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) SetServiceName(v string) *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) SetSort(v uint32) *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) SetStatus(v uint8) *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) SetUpdatedAt(v time.Time) *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) SetVersion(v string) *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) Update(set func(*ProductServiceUpsert)) *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) UpdateCallType() *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) UpdateCreateTs() *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) UpdateCustom() *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) UpdateIdentifier() *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) UpdateInputParams() *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) UpdateNewValues() *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) UpdateOutputParams() *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) UpdateProductKey() *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) UpdateRequired() *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) UpdateServiceName() *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) UpdateSort() *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) UpdateStatus() *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) UpdateUpdatedAt() *ProductServiceUpsertBulk
- func (u *ProductServiceUpsertBulk) UpdateVersion() *ProductServiceUpsertBulk
- type ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) AddCreateTs(v int64) *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) AddSort(v uint32) *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) AddStatus(v uint8) *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) ClearCreateTs() *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) ClearInputParams() *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) ClearOutputParams() *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) ClearStatus() *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) ClearVersion() *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) DoNothing() *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) Exec(ctx context.Context) error
- func (u *ProductServiceUpsertOne) ExecX(ctx context.Context)
- func (u *ProductServiceUpsertOne) ID(ctx context.Context) (id uint64, err error)
- func (u *ProductServiceUpsertOne) IDX(ctx context.Context) uint64
- func (u *ProductServiceUpsertOne) Ignore() *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) SetCallType(v string) *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) SetCreateTs(v int64) *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) SetCustom(v bool) *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) SetIdentifier(v string) *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) SetInputParams(v string) *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) SetOutputParams(v string) *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) SetProductKey(v string) *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) SetRequired(v bool) *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) SetServiceName(v string) *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) SetSort(v uint32) *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) SetStatus(v uint8) *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) SetUpdatedAt(v time.Time) *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) SetVersion(v string) *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) Update(set func(*ProductServiceUpsert)) *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) UpdateCallType() *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) UpdateCreateTs() *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) UpdateCustom() *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) UpdateIdentifier() *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) UpdateInputParams() *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) UpdateNewValues() *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) UpdateOutputParams() *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) UpdateProductKey() *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) UpdateRequired() *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) UpdateServiceName() *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) UpdateSort() *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) UpdateStatus() *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) UpdateUpdatedAt() *ProductServiceUpsertOne
- func (u *ProductServiceUpsertOne) UpdateVersion() *ProductServiceUpsertOne
- type ProductServices
- type ProductTag
- func (c *ProductTag) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *ProductTag) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (pt *ProductTag) QueryProduct() *ProductQuery
- func (pt *ProductTag) String() string
- func (pt *ProductTag) Unwrap() *ProductTag
- func (pt *ProductTag) Update() *ProductTagUpdateOne
- func (pt *ProductTag) Value(name string) (ent.Value, error)
- type ProductTagClient
- func (c *ProductTagClient) Create() *ProductTagCreate
- func (c *ProductTagClient) CreateBulk(builders ...*ProductTagCreate) *ProductTagCreateBulk
- func (c *ProductTagClient) Delete() *ProductTagDelete
- func (c *ProductTagClient) DeleteOne(pt *ProductTag) *ProductTagDeleteOne
- func (c *ProductTagClient) DeleteOneID(id uint64) *ProductTagDeleteOne
- func (c *ProductTagClient) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (c *ProductTagClient) Get(ctx context.Context, id uint64) (*ProductTag, error)
- func (c *ProductTagClient) GetX(ctx context.Context, id uint64) *ProductTag
- func (c *ProductTagClient) Hooks() []Hook
- func (c *ProductTagClient) Intercept(interceptors ...Interceptor)
- func (c *ProductTagClient) Interceptors() []Interceptor
- func (c *ProductTagClient) MapCreateBulk(slice any, setFunc func(*ProductTagCreate, int)) *ProductTagCreateBulk
- func (c *ProductTagClient) Query() *ProductTagQuery
- func (c *ProductTagClient) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (c *ProductTagClient) QueryProduct(pt *ProductTag) *ProductQuery
- func (c *ProductTagClient) Update() *ProductTagUpdate
- func (c *ProductTagClient) UpdateOne(pt *ProductTag) *ProductTagUpdateOne
- func (c *ProductTagClient) UpdateOneID(id uint64) *ProductTagUpdateOne
- func (c *ProductTagClient) Use(hooks ...Hook)
- type ProductTagCreate
- func (ptc *ProductTagCreate) Exec(ctx context.Context) error
- func (c *ProductTagCreate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ptc *ProductTagCreate) ExecX(ctx context.Context)
- func (ptc *ProductTagCreate) Mutation() *ProductTagMutation
- func (ptc *ProductTagCreate) OnConflict(opts ...sql.ConflictOption) *ProductTagUpsertOne
- func (ptc *ProductTagCreate) OnConflictColumns(columns ...string) *ProductTagUpsertOne
- func (c *ProductTagCreate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ptc *ProductTagCreate) Save(ctx context.Context) (*ProductTag, error)
- func (ptc *ProductTagCreate) SaveX(ctx context.Context) *ProductTag
- func (ptc *ProductTagCreate) SetCreatedAt(t time.Time) *ProductTagCreate
- func (ptc *ProductTagCreate) SetID(u uint64) *ProductTagCreate
- func (ptc *ProductTagCreate) SetNillableCreatedAt(t *time.Time) *ProductTagCreate
- func (ptc *ProductTagCreate) SetNillableProductID(id *uuid.UUID) *ProductTagCreate
- func (ptc *ProductTagCreate) SetNillableSort(u *uint32) *ProductTagCreate
- func (ptc *ProductTagCreate) SetNillableStatus(u *uint8) *ProductTagCreate
- func (ptc *ProductTagCreate) SetNillableUpdatedAt(t *time.Time) *ProductTagCreate
- func (pt *ProductTagCreate) SetNotNilProductKey(value *string) *ProductTagCreate
- func (pt *ProductTagCreate) SetNotNilSort(value *uint32) *ProductTagCreate
- func (pt *ProductTagCreate) SetNotNilStatus(value *uint8) *ProductTagCreate
- func (pt *ProductTagCreate) SetNotNilTagKey(value *string) *ProductTagCreate
- func (pt *ProductTagCreate) SetNotNilTagValue(value *string) *ProductTagCreate
- func (pt *ProductTagCreate) SetNotNilUpdatedAt(value *time.Time) *ProductTagCreate
- func (ptc *ProductTagCreate) SetProduct(p *Product) *ProductTagCreate
- func (ptc *ProductTagCreate) SetProductID(id uuid.UUID) *ProductTagCreate
- func (ptc *ProductTagCreate) SetProductKey(s string) *ProductTagCreate
- func (ptc *ProductTagCreate) SetSort(u uint32) *ProductTagCreate
- func (ptc *ProductTagCreate) SetStatus(u uint8) *ProductTagCreate
- func (ptc *ProductTagCreate) SetTagKey(s string) *ProductTagCreate
- func (ptc *ProductTagCreate) SetTagValue(s string) *ProductTagCreate
- func (ptc *ProductTagCreate) SetUpdatedAt(t time.Time) *ProductTagCreate
- type ProductTagCreateBulk
- func (ptcb *ProductTagCreateBulk) Exec(ctx context.Context) error
- func (c *ProductTagCreateBulk) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ptcb *ProductTagCreateBulk) ExecX(ctx context.Context)
- func (ptcb *ProductTagCreateBulk) OnConflict(opts ...sql.ConflictOption) *ProductTagUpsertBulk
- func (ptcb *ProductTagCreateBulk) OnConflictColumns(columns ...string) *ProductTagUpsertBulk
- func (c *ProductTagCreateBulk) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ptcb *ProductTagCreateBulk) Save(ctx context.Context) ([]*ProductTag, error)
- func (ptcb *ProductTagCreateBulk) SaveX(ctx context.Context) []*ProductTag
- type ProductTagDelete
- func (ptd *ProductTagDelete) Exec(ctx context.Context) (int, error)
- func (c *ProductTagDelete) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ptd *ProductTagDelete) ExecX(ctx context.Context) int
- func (c *ProductTagDelete) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ptd *ProductTagDelete) Where(ps ...predicate.ProductTag) *ProductTagDelete
- type ProductTagDeleteOne
- type ProductTagEdges
- type ProductTagGroupBy
- func (ptgb *ProductTagGroupBy) Aggregate(fns ...AggregateFunc) *ProductTagGroupBy
- func (s *ProductTagGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ProductTagGroupBy) BoolX(ctx context.Context) bool
- func (s *ProductTagGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ProductTagGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ProductTagGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ProductTagGroupBy) Float64X(ctx context.Context) float64
- func (s *ProductTagGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ProductTagGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ProductTagGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ProductTagGroupBy) IntX(ctx context.Context) int
- func (s *ProductTagGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ProductTagGroupBy) IntsX(ctx context.Context) []int
- func (ptgb *ProductTagGroupBy) Scan(ctx context.Context, v any) error
- func (s *ProductTagGroupBy) ScanX(ctx context.Context, v any)
- func (s *ProductTagGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ProductTagGroupBy) StringX(ctx context.Context) string
- func (s *ProductTagGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ProductTagGroupBy) StringsX(ctx context.Context) []string
- type ProductTagMutation
- func (m *ProductTagMutation) AddField(name string, value ent.Value) error
- func (m *ProductTagMutation) AddSort(u int32)
- func (m *ProductTagMutation) AddStatus(u int8)
- func (m *ProductTagMutation) AddedEdges() []string
- func (m *ProductTagMutation) AddedField(name string) (ent.Value, bool)
- func (m *ProductTagMutation) AddedFields() []string
- func (m *ProductTagMutation) AddedIDs(name string) []ent.Value
- func (m *ProductTagMutation) AddedSort() (r int32, exists bool)
- func (m *ProductTagMutation) AddedStatus() (r int8, exists bool)
- func (m *ProductTagMutation) ClearEdge(name string) error
- func (m *ProductTagMutation) ClearField(name string) error
- func (m *ProductTagMutation) ClearProduct()
- func (m *ProductTagMutation) ClearStatus()
- func (m *ProductTagMutation) ClearedEdges() []string
- func (m *ProductTagMutation) ClearedFields() []string
- func (m ProductTagMutation) Client() *Client
- func (m *ProductTagMutation) CreatedAt() (r time.Time, exists bool)
- func (m *ProductTagMutation) EdgeCleared(name string) bool
- func (c *ProductTagMutation) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (m *ProductTagMutation) Field(name string) (ent.Value, bool)
- func (m *ProductTagMutation) FieldCleared(name string) bool
- func (m *ProductTagMutation) Fields() []string
- func (m *ProductTagMutation) ID() (id uint64, exists bool)
- func (m *ProductTagMutation) IDs(ctx context.Context) ([]uint64, error)
- func (m *ProductTagMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ProductTagMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ProductTagMutation) OldProductKey(ctx context.Context) (v string, err error)
- func (m *ProductTagMutation) OldSort(ctx context.Context) (v uint32, err error)
- func (m *ProductTagMutation) OldStatus(ctx context.Context) (v uint8, err error)
- func (m *ProductTagMutation) OldTagKey(ctx context.Context) (v string, err error)
- func (m *ProductTagMutation) OldTagValue(ctx context.Context) (v string, err error)
- func (m *ProductTagMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ProductTagMutation) Op() Op
- func (m *ProductTagMutation) ProductCleared() bool
- func (m *ProductTagMutation) ProductID() (id uuid.UUID, exists bool)
- func (m *ProductTagMutation) ProductIDs() (ids []uuid.UUID)
- func (m *ProductTagMutation) ProductKey() (r string, exists bool)
- func (c *ProductTagMutation) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (m *ProductTagMutation) RemovedEdges() []string
- func (m *ProductTagMutation) RemovedIDs(name string) []ent.Value
- func (m *ProductTagMutation) ResetCreatedAt()
- func (m *ProductTagMutation) ResetEdge(name string) error
- func (m *ProductTagMutation) ResetField(name string) error
- func (m *ProductTagMutation) ResetProduct()
- func (m *ProductTagMutation) ResetProductKey()
- func (m *ProductTagMutation) ResetSort()
- func (m *ProductTagMutation) ResetStatus()
- func (m *ProductTagMutation) ResetTagKey()
- func (m *ProductTagMutation) ResetTagValue()
- func (m *ProductTagMutation) ResetUpdatedAt()
- func (m *ProductTagMutation) SetCreatedAt(t time.Time)
- func (m *ProductTagMutation) SetField(name string, value ent.Value) error
- func (m *ProductTagMutation) SetID(id uint64)
- func (m *ProductTagMutation) SetOp(op Op)
- func (m *ProductTagMutation) SetProductID(id uuid.UUID)
- func (m *ProductTagMutation) SetProductKey(s string)
- func (m *ProductTagMutation) SetSort(u uint32)
- func (m *ProductTagMutation) SetStatus(u uint8)
- func (m *ProductTagMutation) SetTagKey(s string)
- func (m *ProductTagMutation) SetTagValue(s string)
- func (m *ProductTagMutation) SetUpdatedAt(t time.Time)
- func (m *ProductTagMutation) Sort() (r uint32, exists bool)
- func (m *ProductTagMutation) Status() (r uint8, exists bool)
- func (m *ProductTagMutation) StatusCleared() bool
- func (m *ProductTagMutation) TagKey() (r string, exists bool)
- func (m *ProductTagMutation) TagValue() (r string, exists bool)
- func (m ProductTagMutation) Tx() (*Tx, error)
- func (m *ProductTagMutation) Type() string
- func (m *ProductTagMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *ProductTagMutation) Where(ps ...predicate.ProductTag)
- func (m *ProductTagMutation) WhereP(ps ...func(*sql.Selector))
- type ProductTagPageList
- type ProductTagPager
- type ProductTagPaginateOption
- type ProductTagQuery
- func (ptq *ProductTagQuery) Aggregate(fns ...AggregateFunc) *ProductTagSelect
- func (ptq *ProductTagQuery) All(ctx context.Context) ([]*ProductTag, error)
- func (ptq *ProductTagQuery) AllX(ctx context.Context) []*ProductTag
- func (ptq *ProductTagQuery) Clone() *ProductTagQuery
- func (ptq *ProductTagQuery) Count(ctx context.Context) (int, error)
- func (ptq *ProductTagQuery) CountX(ctx context.Context) int
- func (c *ProductTagQuery) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ptq *ProductTagQuery) Exist(ctx context.Context) (bool, error)
- func (ptq *ProductTagQuery) ExistX(ctx context.Context) bool
- func (ptq *ProductTagQuery) First(ctx context.Context) (*ProductTag, error)
- func (ptq *ProductTagQuery) FirstID(ctx context.Context) (id uint64, err error)
- func (ptq *ProductTagQuery) FirstIDX(ctx context.Context) uint64
- func (ptq *ProductTagQuery) FirstX(ctx context.Context) *ProductTag
- func (ptq *ProductTagQuery) GroupBy(field string, fields ...string) *ProductTagGroupBy
- func (ptq *ProductTagQuery) IDs(ctx context.Context) (ids []uint64, err error)
- func (ptq *ProductTagQuery) IDsX(ctx context.Context) []uint64
- func (ptq *ProductTagQuery) Limit(limit int) *ProductTagQuery
- func (ptq *ProductTagQuery) Modify(modifiers ...func(s *sql.Selector)) *ProductTagSelect
- func (ptq *ProductTagQuery) Offset(offset int) *ProductTagQuery
- func (ptq *ProductTagQuery) Only(ctx context.Context) (*ProductTag, error)
- func (ptq *ProductTagQuery) OnlyID(ctx context.Context) (id uint64, err error)
- func (ptq *ProductTagQuery) OnlyIDX(ctx context.Context) uint64
- func (ptq *ProductTagQuery) OnlyX(ctx context.Context) *ProductTag
- func (ptq *ProductTagQuery) Order(o ...producttag.OrderOption) *ProductTagQuery
- func (pt *ProductTagQuery) Page(ctx context.Context, pageNum uint64, pageSize uint64, ...) (*ProductTagPageList, error)
- func (c *ProductTagQuery) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ptq *ProductTagQuery) QueryProduct() *ProductQuery
- func (ptq *ProductTagQuery) Select(fields ...string) *ProductTagSelect
- func (ptq *ProductTagQuery) Unique(unique bool) *ProductTagQuery
- func (ptq *ProductTagQuery) Where(ps ...predicate.ProductTag) *ProductTagQuery
- func (ptq *ProductTagQuery) WithProduct(opts ...func(*ProductQuery)) *ProductTagQuery
- type ProductTagSelect
- func (pts *ProductTagSelect) Aggregate(fns ...AggregateFunc) *ProductTagSelect
- func (s *ProductTagSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ProductTagSelect) BoolX(ctx context.Context) bool
- func (s *ProductTagSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ProductTagSelect) BoolsX(ctx context.Context) []bool
- func (c ProductTagSelect) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (s *ProductTagSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ProductTagSelect) Float64X(ctx context.Context) float64
- func (s *ProductTagSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ProductTagSelect) Float64sX(ctx context.Context) []float64
- func (s *ProductTagSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ProductTagSelect) IntX(ctx context.Context) int
- func (s *ProductTagSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ProductTagSelect) IntsX(ctx context.Context) []int
- func (pts *ProductTagSelect) Modify(modifiers ...func(s *sql.Selector)) *ProductTagSelect
- func (c ProductTagSelect) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (pts *ProductTagSelect) Scan(ctx context.Context, v any) error
- func (s *ProductTagSelect) ScanX(ctx context.Context, v any)
- func (s *ProductTagSelect) String(ctx context.Context) (_ string, err error)
- func (s *ProductTagSelect) StringX(ctx context.Context) string
- func (s *ProductTagSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ProductTagSelect) StringsX(ctx context.Context) []string
- type ProductTagUpdate
- func (ptu *ProductTagUpdate) AddSort(u int32) *ProductTagUpdate
- func (ptu *ProductTagUpdate) AddStatus(u int8) *ProductTagUpdate
- func (ptu *ProductTagUpdate) ClearProduct() *ProductTagUpdate
- func (ptu *ProductTagUpdate) ClearStatus() *ProductTagUpdate
- func (ptu *ProductTagUpdate) Exec(ctx context.Context) error
- func (c *ProductTagUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ptu *ProductTagUpdate) ExecX(ctx context.Context)
- func (ptu *ProductTagUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ProductTagUpdate
- func (ptu *ProductTagUpdate) Mutation() *ProductTagMutation
- func (c *ProductTagUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ptu *ProductTagUpdate) Save(ctx context.Context) (int, error)
- func (ptu *ProductTagUpdate) SaveX(ctx context.Context) int
- func (ptu *ProductTagUpdate) SetNillableProductID(id *uuid.UUID) *ProductTagUpdate
- func (ptu *ProductTagUpdate) SetNillableProductKey(s *string) *ProductTagUpdate
- func (ptu *ProductTagUpdate) SetNillableSort(u *uint32) *ProductTagUpdate
- func (ptu *ProductTagUpdate) SetNillableStatus(u *uint8) *ProductTagUpdate
- func (ptu *ProductTagUpdate) SetNillableTagKey(s *string) *ProductTagUpdate
- func (ptu *ProductTagUpdate) SetNillableTagValue(s *string) *ProductTagUpdate
- func (pt *ProductTagUpdate) SetNotNilProductKey(value *string) *ProductTagUpdate
- func (pt *ProductTagUpdate) SetNotNilSort(value *uint32) *ProductTagUpdate
- func (pt *ProductTagUpdate) SetNotNilStatus(value *uint8) *ProductTagUpdate
- func (pt *ProductTagUpdate) SetNotNilTagKey(value *string) *ProductTagUpdate
- func (pt *ProductTagUpdate) SetNotNilTagValue(value *string) *ProductTagUpdate
- func (pt *ProductTagUpdate) SetNotNilUpdatedAt(value *time.Time) *ProductTagUpdate
- func (ptu *ProductTagUpdate) SetProduct(p *Product) *ProductTagUpdate
- func (ptu *ProductTagUpdate) SetProductID(id uuid.UUID) *ProductTagUpdate
- func (ptu *ProductTagUpdate) SetProductKey(s string) *ProductTagUpdate
- func (ptu *ProductTagUpdate) SetSort(u uint32) *ProductTagUpdate
- func (ptu *ProductTagUpdate) SetStatus(u uint8) *ProductTagUpdate
- func (ptu *ProductTagUpdate) SetTagKey(s string) *ProductTagUpdate
- func (ptu *ProductTagUpdate) SetTagValue(s string) *ProductTagUpdate
- func (ptu *ProductTagUpdate) SetUpdatedAt(t time.Time) *ProductTagUpdate
- func (ptu *ProductTagUpdate) Where(ps ...predicate.ProductTag) *ProductTagUpdate
- type ProductTagUpdateOne
- func (ptuo *ProductTagUpdateOne) AddSort(u int32) *ProductTagUpdateOne
- func (ptuo *ProductTagUpdateOne) AddStatus(u int8) *ProductTagUpdateOne
- func (ptuo *ProductTagUpdateOne) ClearProduct() *ProductTagUpdateOne
- func (ptuo *ProductTagUpdateOne) ClearStatus() *ProductTagUpdateOne
- func (ptuo *ProductTagUpdateOne) Exec(ctx context.Context) error
- func (c *ProductTagUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (ptuo *ProductTagUpdateOne) ExecX(ctx context.Context)
- func (ptuo *ProductTagUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ProductTagUpdateOne
- func (ptuo *ProductTagUpdateOne) Mutation() *ProductTagMutation
- func (c *ProductTagUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (ptuo *ProductTagUpdateOne) Save(ctx context.Context) (*ProductTag, error)
- func (ptuo *ProductTagUpdateOne) SaveX(ctx context.Context) *ProductTag
- func (ptuo *ProductTagUpdateOne) Select(field string, fields ...string) *ProductTagUpdateOne
- func (ptuo *ProductTagUpdateOne) SetNillableProductID(id *uuid.UUID) *ProductTagUpdateOne
- func (ptuo *ProductTagUpdateOne) SetNillableProductKey(s *string) *ProductTagUpdateOne
- func (ptuo *ProductTagUpdateOne) SetNillableSort(u *uint32) *ProductTagUpdateOne
- func (ptuo *ProductTagUpdateOne) SetNillableStatus(u *uint8) *ProductTagUpdateOne
- func (ptuo *ProductTagUpdateOne) SetNillableTagKey(s *string) *ProductTagUpdateOne
- func (ptuo *ProductTagUpdateOne) SetNillableTagValue(s *string) *ProductTagUpdateOne
- func (pt *ProductTagUpdateOne) SetNotNilProductKey(value *string) *ProductTagUpdateOne
- func (pt *ProductTagUpdateOne) SetNotNilSort(value *uint32) *ProductTagUpdateOne
- func (pt *ProductTagUpdateOne) SetNotNilStatus(value *uint8) *ProductTagUpdateOne
- func (pt *ProductTagUpdateOne) SetNotNilTagKey(value *string) *ProductTagUpdateOne
- func (pt *ProductTagUpdateOne) SetNotNilTagValue(value *string) *ProductTagUpdateOne
- func (pt *ProductTagUpdateOne) SetNotNilUpdatedAt(value *time.Time) *ProductTagUpdateOne
- func (ptuo *ProductTagUpdateOne) SetProduct(p *Product) *ProductTagUpdateOne
- func (ptuo *ProductTagUpdateOne) SetProductID(id uuid.UUID) *ProductTagUpdateOne
- func (ptuo *ProductTagUpdateOne) SetProductKey(s string) *ProductTagUpdateOne
- func (ptuo *ProductTagUpdateOne) SetSort(u uint32) *ProductTagUpdateOne
- func (ptuo *ProductTagUpdateOne) SetStatus(u uint8) *ProductTagUpdateOne
- func (ptuo *ProductTagUpdateOne) SetTagKey(s string) *ProductTagUpdateOne
- func (ptuo *ProductTagUpdateOne) SetTagValue(s string) *ProductTagUpdateOne
- func (ptuo *ProductTagUpdateOne) SetUpdatedAt(t time.Time) *ProductTagUpdateOne
- func (ptuo *ProductTagUpdateOne) Where(ps ...predicate.ProductTag) *ProductTagUpdateOne
- type ProductTagUpsert
- func (u *ProductTagUpsert) AddSort(v uint32) *ProductTagUpsert
- func (u *ProductTagUpsert) AddStatus(v uint8) *ProductTagUpsert
- func (u *ProductTagUpsert) ClearStatus() *ProductTagUpsert
- func (u *ProductTagUpsert) SetProductKey(v string) *ProductTagUpsert
- func (u *ProductTagUpsert) SetSort(v uint32) *ProductTagUpsert
- func (u *ProductTagUpsert) SetStatus(v uint8) *ProductTagUpsert
- func (u *ProductTagUpsert) SetTagKey(v string) *ProductTagUpsert
- func (u *ProductTagUpsert) SetTagValue(v string) *ProductTagUpsert
- func (u *ProductTagUpsert) SetUpdatedAt(v time.Time) *ProductTagUpsert
- func (u *ProductTagUpsert) UpdateProductKey() *ProductTagUpsert
- func (u *ProductTagUpsert) UpdateSort() *ProductTagUpsert
- func (u *ProductTagUpsert) UpdateStatus() *ProductTagUpsert
- func (u *ProductTagUpsert) UpdateTagKey() *ProductTagUpsert
- func (u *ProductTagUpsert) UpdateTagValue() *ProductTagUpsert
- func (u *ProductTagUpsert) UpdateUpdatedAt() *ProductTagUpsert
- type ProductTagUpsertBulk
- func (u *ProductTagUpsertBulk) AddSort(v uint32) *ProductTagUpsertBulk
- func (u *ProductTagUpsertBulk) AddStatus(v uint8) *ProductTagUpsertBulk
- func (u *ProductTagUpsertBulk) ClearStatus() *ProductTagUpsertBulk
- func (u *ProductTagUpsertBulk) DoNothing() *ProductTagUpsertBulk
- func (u *ProductTagUpsertBulk) Exec(ctx context.Context) error
- func (u *ProductTagUpsertBulk) ExecX(ctx context.Context)
- func (u *ProductTagUpsertBulk) Ignore() *ProductTagUpsertBulk
- func (u *ProductTagUpsertBulk) SetProductKey(v string) *ProductTagUpsertBulk
- func (u *ProductTagUpsertBulk) SetSort(v uint32) *ProductTagUpsertBulk
- func (u *ProductTagUpsertBulk) SetStatus(v uint8) *ProductTagUpsertBulk
- func (u *ProductTagUpsertBulk) SetTagKey(v string) *ProductTagUpsertBulk
- func (u *ProductTagUpsertBulk) SetTagValue(v string) *ProductTagUpsertBulk
- func (u *ProductTagUpsertBulk) SetUpdatedAt(v time.Time) *ProductTagUpsertBulk
- func (u *ProductTagUpsertBulk) Update(set func(*ProductTagUpsert)) *ProductTagUpsertBulk
- func (u *ProductTagUpsertBulk) UpdateNewValues() *ProductTagUpsertBulk
- func (u *ProductTagUpsertBulk) UpdateProductKey() *ProductTagUpsertBulk
- func (u *ProductTagUpsertBulk) UpdateSort() *ProductTagUpsertBulk
- func (u *ProductTagUpsertBulk) UpdateStatus() *ProductTagUpsertBulk
- func (u *ProductTagUpsertBulk) UpdateTagKey() *ProductTagUpsertBulk
- func (u *ProductTagUpsertBulk) UpdateTagValue() *ProductTagUpsertBulk
- func (u *ProductTagUpsertBulk) UpdateUpdatedAt() *ProductTagUpsertBulk
- type ProductTagUpsertOne
- func (u *ProductTagUpsertOne) AddSort(v uint32) *ProductTagUpsertOne
- func (u *ProductTagUpsertOne) AddStatus(v uint8) *ProductTagUpsertOne
- func (u *ProductTagUpsertOne) ClearStatus() *ProductTagUpsertOne
- func (u *ProductTagUpsertOne) DoNothing() *ProductTagUpsertOne
- func (u *ProductTagUpsertOne) Exec(ctx context.Context) error
- func (u *ProductTagUpsertOne) ExecX(ctx context.Context)
- func (u *ProductTagUpsertOne) ID(ctx context.Context) (id uint64, err error)
- func (u *ProductTagUpsertOne) IDX(ctx context.Context) uint64
- func (u *ProductTagUpsertOne) Ignore() *ProductTagUpsertOne
- func (u *ProductTagUpsertOne) SetProductKey(v string) *ProductTagUpsertOne
- func (u *ProductTagUpsertOne) SetSort(v uint32) *ProductTagUpsertOne
- func (u *ProductTagUpsertOne) SetStatus(v uint8) *ProductTagUpsertOne
- func (u *ProductTagUpsertOne) SetTagKey(v string) *ProductTagUpsertOne
- func (u *ProductTagUpsertOne) SetTagValue(v string) *ProductTagUpsertOne
- func (u *ProductTagUpsertOne) SetUpdatedAt(v time.Time) *ProductTagUpsertOne
- func (u *ProductTagUpsertOne) Update(set func(*ProductTagUpsert)) *ProductTagUpsertOne
- func (u *ProductTagUpsertOne) UpdateNewValues() *ProductTagUpsertOne
- func (u *ProductTagUpsertOne) UpdateProductKey() *ProductTagUpsertOne
- func (u *ProductTagUpsertOne) UpdateSort() *ProductTagUpsertOne
- func (u *ProductTagUpsertOne) UpdateStatus() *ProductTagUpsertOne
- func (u *ProductTagUpsertOne) UpdateTagKey() *ProductTagUpsertOne
- func (u *ProductTagUpsertOne) UpdateTagValue() *ProductTagUpsertOne
- func (u *ProductTagUpsertOne) UpdateUpdatedAt() *ProductTagUpsertOne
- type ProductTags
- type ProductUpdate
- func (pu *ProductUpdate) AddDataFormat(i int32) *ProductUpdate
- func (pu *ProductUpdate) AddDeviceCount(i int32) *ProductUpdate
- func (pu *ProductUpdate) AddDeviceIDs(ids ...uuid.UUID) *ProductUpdate
- func (pu *ProductUpdate) AddDevices(d ...*Device) *ProductUpdate
- func (pu *ProductUpdate) AddEventIDs(ids ...uint64) *ProductUpdate
- func (pu *ProductUpdate) AddEvents(p ...*ProductEvent) *ProductUpdate
- func (pu *ProductUpdate) AddGmtCreate(i int64) *ProductUpdate
- func (pu *ProductUpdate) AddNetType(i int32) *ProductUpdate
- func (pu *ProductUpdate) AddNodeType(i int32) *ProductUpdate
- func (pu *ProductUpdate) AddProperties(p ...*ProductProperty) *ProductUpdate
- func (pu *ProductUpdate) AddPropertyIDs(ids ...uint64) *ProductUpdate
- func (pu *ProductUpdate) AddServiceIDs(ids ...uint64) *ProductUpdate
- func (pu *ProductUpdate) AddServices(p ...*ProductService) *ProductUpdate
- func (pu *ProductUpdate) AddSort(u int32) *ProductUpdate
- func (pu *ProductUpdate) AddStatus(u int8) *ProductUpdate
- func (pu *ProductUpdate) AddTagIDs(ids ...uint64) *ProductUpdate
- func (pu *ProductUpdate) AddTags(p ...*ProductTag) *ProductUpdate
- func (pu *ProductUpdate) AddValidateType(i int32) *ProductUpdate
- func (pu *ProductUpdate) ClearAliyunCommodityCode() *ProductUpdate
- func (pu *ProductUpdate) ClearAuthType() *ProductUpdate
- func (pu *ProductUpdate) ClearCategoryKey() *ProductUpdate
- func (pu *ProductUpdate) ClearCategoryName() *ProductUpdate
- func (pu *ProductUpdate) ClearDataFormat() *ProductUpdate
- func (pu *ProductUpdate) ClearDescription() *ProductUpdate
- func (pu *ProductUpdate) ClearDevices() *ProductUpdate
- func (pu *ProductUpdate) ClearEvents() *ProductUpdate
- func (pu *ProductUpdate) ClearGmtCreate() *ProductUpdate
- func (pu *ProductUpdate) ClearId2() *ProductUpdate
- func (pu *ProductUpdate) ClearNetType() *ProductUpdate
- func (pu *ProductUpdate) ClearOwner() *ProductUpdate
- func (pu *ProductUpdate) ClearProductSecret() *ProductUpdate
- func (pu *ProductUpdate) ClearProductStatus() *ProductUpdate
- func (pu *ProductUpdate) ClearProperties() *ProductUpdate
- func (pu *ProductUpdate) ClearProtocolType() *ProductUpdate
- func (pu *ProductUpdate) ClearServices() *ProductUpdate
- func (pu *ProductUpdate) ClearStatus() *ProductUpdate
- func (pu *ProductUpdate) ClearTags() *ProductUpdate
- func (pu *ProductUpdate) ClearValidateType() *ProductUpdate
- func (pu *ProductUpdate) Exec(ctx context.Context) error
- func (c *ProductUpdate) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (pu *ProductUpdate) ExecX(ctx context.Context)
- func (pu *ProductUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ProductUpdate
- func (pu *ProductUpdate) Mutation() *ProductMutation
- func (c *ProductUpdate) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (pu *ProductUpdate) RemoveDeviceIDs(ids ...uuid.UUID) *ProductUpdate
- func (pu *ProductUpdate) RemoveDevices(d ...*Device) *ProductUpdate
- func (pu *ProductUpdate) RemoveEventIDs(ids ...uint64) *ProductUpdate
- func (pu *ProductUpdate) RemoveEvents(p ...*ProductEvent) *ProductUpdate
- func (pu *ProductUpdate) RemoveProperties(p ...*ProductProperty) *ProductUpdate
- func (pu *ProductUpdate) RemovePropertyIDs(ids ...uint64) *ProductUpdate
- func (pu *ProductUpdate) RemoveServiceIDs(ids ...uint64) *ProductUpdate
- func (pu *ProductUpdate) RemoveServices(p ...*ProductService) *ProductUpdate
- func (pu *ProductUpdate) RemoveTagIDs(ids ...uint64) *ProductUpdate
- func (pu *ProductUpdate) RemoveTags(p ...*ProductTag) *ProductUpdate
- func (pu *ProductUpdate) Save(ctx context.Context) (int, error)
- func (pu *ProductUpdate) SaveX(ctx context.Context) int
- func (pu *ProductUpdate) SetAliyunCommodityCode(s string) *ProductUpdate
- func (pu *ProductUpdate) SetAuthType(s string) *ProductUpdate
- func (pu *ProductUpdate) SetCategoryKey(s string) *ProductUpdate
- func (pu *ProductUpdate) SetCategoryName(s string) *ProductUpdate
- func (pu *ProductUpdate) SetDataFormat(i int32) *ProductUpdate
- func (pu *ProductUpdate) SetDescription(s string) *ProductUpdate
- func (pu *ProductUpdate) SetDeviceCount(i int32) *ProductUpdate
- func (pu *ProductUpdate) SetGmtCreate(i int64) *ProductUpdate
- func (pu *ProductUpdate) SetId2(b bool) *ProductUpdate
- func (pu *ProductUpdate) SetNetType(i int32) *ProductUpdate
- func (pu *ProductUpdate) SetNillableAliyunCommodityCode(s *string) *ProductUpdate
- func (pu *ProductUpdate) SetNillableAuthType(s *string) *ProductUpdate
- func (pu *ProductUpdate) SetNillableCategoryKey(s *string) *ProductUpdate
- func (pu *ProductUpdate) SetNillableCategoryName(s *string) *ProductUpdate
- func (pu *ProductUpdate) SetNillableDataFormat(i *int32) *ProductUpdate
- func (pu *ProductUpdate) SetNillableDescription(s *string) *ProductUpdate
- func (pu *ProductUpdate) SetNillableDeviceCount(i *int32) *ProductUpdate
- func (pu *ProductUpdate) SetNillableGmtCreate(i *int64) *ProductUpdate
- func (pu *ProductUpdate) SetNillableId2(b *bool) *ProductUpdate
- func (pu *ProductUpdate) SetNillableNetType(i *int32) *ProductUpdate
- func (pu *ProductUpdate) SetNillableNodeType(i *int32) *ProductUpdate
- func (pu *ProductUpdate) SetNillableOwner(b *bool) *ProductUpdate
- func (pu *ProductUpdate) SetNillableProductKey(s *string) *ProductUpdate
- func (pu *ProductUpdate) SetNillableProductName(s *string) *ProductUpdate
- func (pu *ProductUpdate) SetNillableProductSecret(s *string) *ProductUpdate
- func (pu *ProductUpdate) SetNillableProductStatus(s *string) *ProductUpdate
- func (pu *ProductUpdate) SetNillableProtocolType(s *string) *ProductUpdate
- func (pu *ProductUpdate) SetNillableSort(u *uint32) *ProductUpdate
- func (pu *ProductUpdate) SetNillableStatus(u *uint8) *ProductUpdate
- func (pu *ProductUpdate) SetNillableValidateType(i *int32) *ProductUpdate
- func (pu *ProductUpdate) SetNodeType(i int32) *ProductUpdate
- func (pr *ProductUpdate) SetNotNilAliyunCommodityCode(value *string) *ProductUpdate
- func (pr *ProductUpdate) SetNotNilAuthType(value *string) *ProductUpdate
- func (pr *ProductUpdate) SetNotNilCategoryKey(value *string) *ProductUpdate
- func (pr *ProductUpdate) SetNotNilCategoryName(value *string) *ProductUpdate
- func (pr *ProductUpdate) SetNotNilDataFormat(value *int32) *ProductUpdate
- func (pr *ProductUpdate) SetNotNilDescription(value *string) *ProductUpdate
- func (pr *ProductUpdate) SetNotNilDeviceCount(value *int32) *ProductUpdate
- func (pr *ProductUpdate) SetNotNilGmtCreate(value *int64) *ProductUpdate
- func (pr *ProductUpdate) SetNotNilId2(value *bool) *ProductUpdate
- func (pr *ProductUpdate) SetNotNilNetType(value *int32) *ProductUpdate
- func (pr *ProductUpdate) SetNotNilNodeType(value *int32) *ProductUpdate
- func (pr *ProductUpdate) SetNotNilOwner(value *bool) *ProductUpdate
- func (pr *ProductUpdate) SetNotNilProductKey(value *string) *ProductUpdate
- func (pr *ProductUpdate) SetNotNilProductName(value *string) *ProductUpdate
- func (pr *ProductUpdate) SetNotNilProductSecret(value *string) *ProductUpdate
- func (pr *ProductUpdate) SetNotNilProductStatus(value *string) *ProductUpdate
- func (pr *ProductUpdate) SetNotNilProtocolType(value *string) *ProductUpdate
- func (pr *ProductUpdate) SetNotNilSort(value *uint32) *ProductUpdate
- func (pr *ProductUpdate) SetNotNilStatus(value *uint8) *ProductUpdate
- func (pr *ProductUpdate) SetNotNilUpdatedAt(value *time.Time) *ProductUpdate
- func (pr *ProductUpdate) SetNotNilValidateType(value *int32) *ProductUpdate
- func (pu *ProductUpdate) SetOwner(b bool) *ProductUpdate
- func (pu *ProductUpdate) SetProductKey(s string) *ProductUpdate
- func (pu *ProductUpdate) SetProductName(s string) *ProductUpdate
- func (pu *ProductUpdate) SetProductSecret(s string) *ProductUpdate
- func (pu *ProductUpdate) SetProductStatus(s string) *ProductUpdate
- func (pu *ProductUpdate) SetProtocolType(s string) *ProductUpdate
- func (pu *ProductUpdate) SetSort(u uint32) *ProductUpdate
- func (pu *ProductUpdate) SetStatus(u uint8) *ProductUpdate
- func (pu *ProductUpdate) SetUpdatedAt(t time.Time) *ProductUpdate
- func (pu *ProductUpdate) SetValidateType(i int32) *ProductUpdate
- func (pu *ProductUpdate) Where(ps ...predicate.Product) *ProductUpdate
- type ProductUpdateOne
- func (puo *ProductUpdateOne) AddDataFormat(i int32) *ProductUpdateOne
- func (puo *ProductUpdateOne) AddDeviceCount(i int32) *ProductUpdateOne
- func (puo *ProductUpdateOne) AddDeviceIDs(ids ...uuid.UUID) *ProductUpdateOne
- func (puo *ProductUpdateOne) AddDevices(d ...*Device) *ProductUpdateOne
- func (puo *ProductUpdateOne) AddEventIDs(ids ...uint64) *ProductUpdateOne
- func (puo *ProductUpdateOne) AddEvents(p ...*ProductEvent) *ProductUpdateOne
- func (puo *ProductUpdateOne) AddGmtCreate(i int64) *ProductUpdateOne
- func (puo *ProductUpdateOne) AddNetType(i int32) *ProductUpdateOne
- func (puo *ProductUpdateOne) AddNodeType(i int32) *ProductUpdateOne
- func (puo *ProductUpdateOne) AddProperties(p ...*ProductProperty) *ProductUpdateOne
- func (puo *ProductUpdateOne) AddPropertyIDs(ids ...uint64) *ProductUpdateOne
- func (puo *ProductUpdateOne) AddServiceIDs(ids ...uint64) *ProductUpdateOne
- func (puo *ProductUpdateOne) AddServices(p ...*ProductService) *ProductUpdateOne
- func (puo *ProductUpdateOne) AddSort(u int32) *ProductUpdateOne
- func (puo *ProductUpdateOne) AddStatus(u int8) *ProductUpdateOne
- func (puo *ProductUpdateOne) AddTagIDs(ids ...uint64) *ProductUpdateOne
- func (puo *ProductUpdateOne) AddTags(p ...*ProductTag) *ProductUpdateOne
- func (puo *ProductUpdateOne) AddValidateType(i int32) *ProductUpdateOne
- func (puo *ProductUpdateOne) ClearAliyunCommodityCode() *ProductUpdateOne
- func (puo *ProductUpdateOne) ClearAuthType() *ProductUpdateOne
- func (puo *ProductUpdateOne) ClearCategoryKey() *ProductUpdateOne
- func (puo *ProductUpdateOne) ClearCategoryName() *ProductUpdateOne
- func (puo *ProductUpdateOne) ClearDataFormat() *ProductUpdateOne
- func (puo *ProductUpdateOne) ClearDescription() *ProductUpdateOne
- func (puo *ProductUpdateOne) ClearDevices() *ProductUpdateOne
- func (puo *ProductUpdateOne) ClearEvents() *ProductUpdateOne
- func (puo *ProductUpdateOne) ClearGmtCreate() *ProductUpdateOne
- func (puo *ProductUpdateOne) ClearId2() *ProductUpdateOne
- func (puo *ProductUpdateOne) ClearNetType() *ProductUpdateOne
- func (puo *ProductUpdateOne) ClearOwner() *ProductUpdateOne
- func (puo *ProductUpdateOne) ClearProductSecret() *ProductUpdateOne
- func (puo *ProductUpdateOne) ClearProductStatus() *ProductUpdateOne
- func (puo *ProductUpdateOne) ClearProperties() *ProductUpdateOne
- func (puo *ProductUpdateOne) ClearProtocolType() *ProductUpdateOne
- func (puo *ProductUpdateOne) ClearServices() *ProductUpdateOne
- func (puo *ProductUpdateOne) ClearStatus() *ProductUpdateOne
- func (puo *ProductUpdateOne) ClearTags() *ProductUpdateOne
- func (puo *ProductUpdateOne) ClearValidateType() *ProductUpdateOne
- func (puo *ProductUpdateOne) Exec(ctx context.Context) error
- func (c *ProductUpdateOne) ExecContext(ctx context.Context, query string, args ...any) (stdsql.Result, error)
- func (puo *ProductUpdateOne) ExecX(ctx context.Context)
- func (puo *ProductUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ProductUpdateOne
- func (puo *ProductUpdateOne) Mutation() *ProductMutation
- func (c *ProductUpdateOne) QueryContext(ctx context.Context, query string, args ...any) (*stdsql.Rows, error)
- func (puo *ProductUpdateOne) RemoveDeviceIDs(ids ...uuid.UUID) *ProductUpdateOne
- func (puo *ProductUpdateOne) RemoveDevices(d ...*Device) *ProductUpdateOne
- func (puo *ProductUpdateOne) RemoveEventIDs(ids ...uint64) *ProductUpdateOne
- func (puo *ProductUpdateOne) RemoveEvents(p ...*ProductEvent) *ProductUpdateOne
- func (puo *ProductUpdateOne) RemoveProperties(p ...*ProductProperty) *ProductUpdateOne
- func (puo *ProductUpdateOne) RemovePropertyIDs(ids ...uint64) *ProductUpdateOne
- func (puo *ProductUpdateOne) RemoveServiceIDs(ids ...uint64) *ProductUpdateOne
- func (puo *ProductUpdateOne) RemoveServices(p ...*ProductService) *ProductUpdateOne
- func (puo *ProductUpdateOne) RemoveTagIDs(ids ...uint64) *ProductUpdateOne
- func (puo *ProductUpdateOne) RemoveTags(p ...*ProductTag) *ProductUpdateOne
- func (puo *ProductUpdateOne) Save(ctx context.Context) (*Product, error)
- func (puo *ProductUpdateOne) SaveX(ctx context.Context) *Product
- func (puo *ProductUpdateOne) Select(field string, fields ...string) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetAliyunCommodityCode(s string) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetAuthType(s string) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetCategoryKey(s string) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetCategoryName(s string) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetDataFormat(i int32) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetDescription(s string) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetDeviceCount(i int32) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetGmtCreate(i int64) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetId2(b bool) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetNetType(i int32) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetNillableAliyunCommodityCode(s *string) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetNillableAuthType(s *string) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetNillableCategoryKey(s *string) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetNillableCategoryName(s *string) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetNillableDataFormat(i *int32) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetNillableDescription(s *string) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetNillableDeviceCount(i *int32) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetNillableGmtCreate(i *int64) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetNillableId2(b *bool) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetNillableNetType(i *int32) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetNillableNodeType(i *int32) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetNillableOwner(b *bool) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetNillableProductKey(s *string) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetNillableProductName(s *string) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetNillableProductSecret(s *string) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetNillableProductStatus(s *string) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetNillableProtocolType(s *string) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetNillableSort(u *uint32) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetNillableStatus(u *uint8) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetNillableValidateType(i *int32) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetNodeType(i int32) *ProductUpdateOne
- func (pr *ProductUpdateOne) SetNotNilAliyunCommodityCode(value *string) *ProductUpdateOne
- func (pr *ProductUpdateOne) SetNotNilAuthType(value *string) *ProductUpdateOne
- func (pr *ProductUpdateOne) SetNotNilCategoryKey(value *string) *ProductUpdateOne
- func (pr *ProductUpdateOne) SetNotNilCategoryName(value *string) *ProductUpdateOne
- func (pr *ProductUpdateOne) SetNotNilDataFormat(value *int32) *ProductUpdateOne
- func (pr *ProductUpdateOne) SetNotNilDescription(value *string) *ProductUpdateOne
- func (pr *ProductUpdateOne) SetNotNilDeviceCount(value *int32) *ProductUpdateOne
- func (pr *ProductUpdateOne) SetNotNilGmtCreate(value *int64) *ProductUpdateOne
- func (pr *ProductUpdateOne) SetNotNilId2(value *bool) *ProductUpdateOne
- func (pr *ProductUpdateOne) SetNotNilNetType(value *int32) *ProductUpdateOne
- func (pr *ProductUpdateOne) SetNotNilNodeType(value *int32) *ProductUpdateOne
- func (pr *ProductUpdateOne) SetNotNilOwner(value *bool) *ProductUpdateOne
- func (pr *ProductUpdateOne) SetNotNilProductKey(value *string) *ProductUpdateOne
- func (pr *ProductUpdateOne) SetNotNilProductName(value *string) *ProductUpdateOne
- func (pr *ProductUpdateOne) SetNotNilProductSecret(value *string) *ProductUpdateOne
- func (pr *ProductUpdateOne) SetNotNilProductStatus(value *string) *ProductUpdateOne
- func (pr *ProductUpdateOne) SetNotNilProtocolType(value *string) *ProductUpdateOne
- func (pr *ProductUpdateOne) SetNotNilSort(value *uint32) *ProductUpdateOne
- func (pr *ProductUpdateOne) SetNotNilStatus(value *uint8) *ProductUpdateOne
- func (pr *ProductUpdateOne) SetNotNilUpdatedAt(value *time.Time) *ProductUpdateOne
- func (pr *ProductUpdateOne) SetNotNilValidateType(value *int32) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetOwner(b bool) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetProductKey(s string) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetProductName(s string) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetProductSecret(s string) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetProductStatus(s string) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetProtocolType(s string) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetSort(u uint32) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetStatus(u uint8) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetUpdatedAt(t time.Time) *ProductUpdateOne
- func (puo *ProductUpdateOne) SetValidateType(i int32) *ProductUpdateOne
- func (puo *ProductUpdateOne) Where(ps ...predicate.Product) *ProductUpdateOne
- type ProductUpsert
- func (u *ProductUpsert) AddDataFormat(v int32) *ProductUpsert
- func (u *ProductUpsert) AddDeviceCount(v int32) *ProductUpsert
- func (u *ProductUpsert) AddGmtCreate(v int64) *ProductUpsert
- func (u *ProductUpsert) AddNetType(v int32) *ProductUpsert
- func (u *ProductUpsert) AddNodeType(v int32) *ProductUpsert
- func (u *ProductUpsert) AddSort(v uint32) *ProductUpsert
- func (u *ProductUpsert) AddStatus(v uint8) *ProductUpsert
- func (u *ProductUpsert) AddValidateType(v int32) *ProductUpsert
- func (u *ProductUpsert) ClearAliyunCommodityCode() *ProductUpsert
- func (u *ProductUpsert) ClearAuthType() *ProductUpsert
- func (u *ProductUpsert) ClearCategoryKey() *ProductUpsert
- func (u *ProductUpsert) ClearCategoryName() *ProductUpsert
- func (u *ProductUpsert) ClearDataFormat() *ProductUpsert
- func (u *ProductUpsert) ClearDescription() *ProductUpsert
- func (u *ProductUpsert) ClearGmtCreate() *ProductUpsert
- func (u *ProductUpsert) ClearId2() *ProductUpsert
- func (u *ProductUpsert) ClearNetType() *ProductUpsert
- func (u *ProductUpsert) ClearOwner() *ProductUpsert
- func (u *ProductUpsert) ClearProductSecret() *ProductUpsert
- func (u *ProductUpsert) ClearProductStatus() *ProductUpsert
- func (u *ProductUpsert) ClearProtocolType() *ProductUpsert
- func (u *ProductUpsert) ClearStatus() *ProductUpsert
- func (u *ProductUpsert) ClearValidateType() *ProductUpsert
- func (u *ProductUpsert) SetAliyunCommodityCode(v string) *ProductUpsert
- func (u *ProductUpsert) SetAuthType(v string) *ProductUpsert
- func (u *ProductUpsert) SetCategoryKey(v string) *ProductUpsert
- func (u *ProductUpsert) SetCategoryName(v string) *ProductUpsert
- func (u *ProductUpsert) SetDataFormat(v int32) *ProductUpsert
- func (u *ProductUpsert) SetDescription(v string) *ProductUpsert
- func (u *ProductUpsert) SetDeviceCount(v int32) *ProductUpsert
- func (u *ProductUpsert) SetGmtCreate(v int64) *ProductUpsert
- func (u *ProductUpsert) SetId2(v bool) *ProductUpsert
- func (u *ProductUpsert) SetNetType(v int32) *ProductUpsert
- func (u *ProductUpsert) SetNodeType(v int32) *ProductUpsert
- func (u *ProductUpsert) SetOwner(v bool) *ProductUpsert
- func (u *ProductUpsert) SetProductKey(v string) *ProductUpsert
- func (u *ProductUpsert) SetProductName(v string) *ProductUpsert
- func (u *ProductUpsert) SetProductSecret(v string) *ProductUpsert
- func (u *ProductUpsert) SetProductStatus(v string) *ProductUpsert
- func (u *ProductUpsert) SetProtocolType(v string) *ProductUpsert
- func (u *ProductUpsert) SetSort(v uint32) *ProductUpsert
- func (u *ProductUpsert) SetStatus(v uint8) *ProductUpsert
- func (u *ProductUpsert) SetUpdatedAt(v time.Time) *ProductUpsert
- func (u *ProductUpsert) SetValidateType(v int32) *ProductUpsert
- func (u *ProductUpsert) UpdateAliyunCommodityCode() *ProductUpsert
- func (u *ProductUpsert) UpdateAuthType() *ProductUpsert
- func (u *ProductUpsert) UpdateCategoryKey() *ProductUpsert
- func (u *ProductUpsert) UpdateCategoryName() *ProductUpsert
- func (u *ProductUpsert) UpdateDataFormat() *ProductUpsert
- func (u *ProductUpsert) UpdateDescription() *ProductUpsert
- func (u *ProductUpsert) UpdateDeviceCount() *ProductUpsert
- func (u *ProductUpsert) UpdateGmtCreate() *ProductUpsert
- func (u *ProductUpsert) UpdateId2() *ProductUpsert
- func (u *ProductUpsert) UpdateNetType() *ProductUpsert
- func (u *ProductUpsert) UpdateNodeType() *ProductUpsert
- func (u *ProductUpsert) UpdateOwner() *ProductUpsert
- func (u *ProductUpsert) UpdateProductKey() *ProductUpsert
- func (u *ProductUpsert) UpdateProductName() *ProductUpsert
- func (u *ProductUpsert) UpdateProductSecret() *ProductUpsert
- func (u *ProductUpsert) UpdateProductStatus() *ProductUpsert
- func (u *ProductUpsert) UpdateProtocolType() *ProductUpsert
- func (u *ProductUpsert) UpdateSort() *ProductUpsert
- func (u *ProductUpsert) UpdateStatus() *ProductUpsert
- func (u *ProductUpsert) UpdateUpdatedAt() *ProductUpsert
- func (u *ProductUpsert) UpdateValidateType() *ProductUpsert
- type ProductUpsertBulk
- func (u *ProductUpsertBulk) AddDataFormat(v int32) *ProductUpsertBulk
- func (u *ProductUpsertBulk) AddDeviceCount(v int32) *ProductUpsertBulk
- func (u *ProductUpsertBulk) AddGmtCreate(v int64) *ProductUpsertBulk
- func (u *ProductUpsertBulk) AddNetType(v int32) *ProductUpsertBulk
- func (u *ProductUpsertBulk) AddNodeType(v int32) *ProductUpsertBulk
- func (u *ProductUpsertBulk) AddSort(v uint32) *ProductUpsertBulk
- func (u *ProductUpsertBulk) AddStatus(v uint8) *ProductUpsertBulk
- func (u *ProductUpsertBulk) AddValidateType(v int32) *ProductUpsertBulk
- func (u *ProductUpsertBulk) ClearAliyunCommodityCode() *ProductUpsertBulk
- func (u *ProductUpsertBulk) ClearAuthType() *ProductUpsertBulk
- func (u *ProductUpsertBulk) ClearCategoryKey() *ProductUpsertBulk
- func (u *ProductUpsertBulk) ClearCategoryName() *ProductUpsertBulk
- func (u *ProductUpsertBulk) ClearDataFormat() *ProductUpsertBulk
- func (u *ProductUpsertBulk) ClearDescription() *ProductUpsertBulk
- func (u *ProductUpsertBulk) ClearGmtCreate() *ProductUpsertBulk
- func (u *ProductUpsertBulk) ClearId2() *ProductUpsertBulk
- func (u *ProductUpsertBulk) ClearNetType() *ProductUpsertBulk
- func (u *ProductUpsertBulk) ClearOwner() *ProductUpsertBulk
- func (u *ProductUpsertBulk) ClearProductSecret() *ProductUpsertBulk
- func (u *ProductUpsertBulk) ClearProductStatus() *ProductUpsertBulk
- func (u *ProductUpsertBulk) ClearProtocolType() *ProductUpsertBulk
- func (u *ProductUpsertBulk) ClearStatus() *ProductUpsertBulk
- func (u *ProductUpsertBulk) ClearValidateType() *ProductUpsertBulk
- func (u *ProductUpsertBulk) DoNothing() *ProductUpsertBulk
- func (u *ProductUpsertBulk) Exec(ctx context.Context) error
- func (u *ProductUpsertBulk) ExecX(ctx context.Context)
- func (u *ProductUpsertBulk) Ignore() *ProductUpsertBulk
- func (u *ProductUpsertBulk) SetAliyunCommodityCode(v string) *ProductUpsertBulk
- func (u *ProductUpsertBulk) SetAuthType(v string) *ProductUpsertBulk
- func (u *ProductUpsertBulk) SetCategoryKey(v string) *ProductUpsertBulk
- func (u *ProductUpsertBulk) SetCategoryName(v string) *ProductUpsertBulk
- func (u *ProductUpsertBulk) SetDataFormat(v int32) *ProductUpsertBulk
- func (u *ProductUpsertBulk) SetDescription(v string) *ProductUpsertBulk
- func (u *ProductUpsertBulk) SetDeviceCount(v int32) *ProductUpsertBulk
- func (u *ProductUpsertBulk) SetGmtCreate(v int64) *ProductUpsertBulk
- func (u *ProductUpsertBulk) SetId2(v bool) *ProductUpsertBulk
- func (u *ProductUpsertBulk) SetNetType(v int32) *ProductUpsertBulk
- func (u *ProductUpsertBulk) SetNodeType(v int32) *ProductUpsertBulk
- func (u *ProductUpsertBulk) SetOwner(v bool) *ProductUpsertBulk
- func (u *ProductUpsertBulk) SetProductKey(v string) *ProductUpsertBulk
- func (u *ProductUpsertBulk) SetProductName(v string) *ProductUpsertBulk
- func (u *ProductUpsertBulk) SetProductSecret(v string) *ProductUpsertBulk
- func (u *ProductUpsertBulk) SetProductStatus(v string) *ProductUpsertBulk
- func (u *ProductUpsertBulk) SetProtocolType(v string) *ProductUpsertBulk
- func (u *ProductUpsertBulk) SetSort(v uint32) *ProductUpsertBulk
- func (u *ProductUpsertBulk) SetStatus(v uint8) *ProductUpsertBulk
- func (u *ProductUpsertBulk) SetUpdatedAt(v time.Time) *ProductUpsertBulk
- func (u *ProductUpsertBulk) SetValidateType(v int32) *ProductUpsertBulk
- func (u *ProductUpsertBulk) Update(set func(*ProductUpsert)) *ProductUpsertBulk
- func (u *ProductUpsertBulk) UpdateAliyunCommodityCode() *ProductUpsertBulk
- func (u *ProductUpsertBulk) UpdateAuthType() *ProductUpsertBulk
- func (u *ProductUpsertBulk) UpdateCategoryKey() *ProductUpsertBulk
- func (u *ProductUpsertBulk) UpdateCategoryName() *ProductUpsertBulk
- func (u *ProductUpsertBulk) UpdateDataFormat() *ProductUpsertBulk
- func (u *ProductUpsertBulk) UpdateDescription() *ProductUpsertBulk
- func (u *ProductUpsertBulk) UpdateDeviceCount() *ProductUpsertBulk
- func (u *ProductUpsertBulk) UpdateGmtCreate() *ProductUpsertBulk
- func (u *ProductUpsertBulk) UpdateId2() *ProductUpsertBulk
- func (u *ProductUpsertBulk) UpdateNetType() *ProductUpsertBulk
- func (u *ProductUpsertBulk) UpdateNewValues() *ProductUpsertBulk
- func (u *ProductUpsertBulk) UpdateNodeType() *ProductUpsertBulk
- func (u *ProductUpsertBulk) UpdateOwner() *ProductUpsertBulk
- func (u *ProductUpsertBulk) UpdateProductKey() *ProductUpsertBulk
- func (u *ProductUpsertBulk) UpdateProductName() *ProductUpsertBulk
- func (u *ProductUpsertBulk) UpdateProductSecret() *ProductUpsertBulk
- func (u *ProductUpsertBulk) UpdateProductStatus() *ProductUpsertBulk
- func (u *ProductUpsertBulk) UpdateProtocolType() *ProductUpsertBulk
- func (u *ProductUpsertBulk) UpdateSort() *ProductUpsertBulk
- func (u *ProductUpsertBulk) UpdateStatus() *ProductUpsertBulk
- func (u *ProductUpsertBulk) UpdateUpdatedAt() *ProductUpsertBulk
- func (u *ProductUpsertBulk) UpdateValidateType() *ProductUpsertBulk
- type ProductUpsertOne
- func (u *ProductUpsertOne) AddDataFormat(v int32) *ProductUpsertOne
- func (u *ProductUpsertOne) AddDeviceCount(v int32) *ProductUpsertOne
- func (u *ProductUpsertOne) AddGmtCreate(v int64) *ProductUpsertOne
- func (u *ProductUpsertOne) AddNetType(v int32) *ProductUpsertOne
- func (u *ProductUpsertOne) AddNodeType(v int32) *ProductUpsertOne
- func (u *ProductUpsertOne) AddSort(v uint32) *ProductUpsertOne
- func (u *ProductUpsertOne) AddStatus(v uint8) *ProductUpsertOne
- func (u *ProductUpsertOne) AddValidateType(v int32) *ProductUpsertOne
- func (u *ProductUpsertOne) ClearAliyunCommodityCode() *ProductUpsertOne
- func (u *ProductUpsertOne) ClearAuthType() *ProductUpsertOne
- func (u *ProductUpsertOne) ClearCategoryKey() *ProductUpsertOne
- func (u *ProductUpsertOne) ClearCategoryName() *ProductUpsertOne
- func (u *ProductUpsertOne) ClearDataFormat() *ProductUpsertOne
- func (u *ProductUpsertOne) ClearDescription() *ProductUpsertOne
- func (u *ProductUpsertOne) ClearGmtCreate() *ProductUpsertOne
- func (u *ProductUpsertOne) ClearId2() *ProductUpsertOne
- func (u *ProductUpsertOne) ClearNetType() *ProductUpsertOne
- func (u *ProductUpsertOne) ClearOwner() *ProductUpsertOne
- func (u *ProductUpsertOne) ClearProductSecret() *ProductUpsertOne
- func (u *ProductUpsertOne) ClearProductStatus() *ProductUpsertOne
- func (u *ProductUpsertOne) ClearProtocolType() *ProductUpsertOne
- func (u *ProductUpsertOne) ClearStatus() *ProductUpsertOne
- func (u *ProductUpsertOne) ClearValidateType() *ProductUpsertOne
- func (u *ProductUpsertOne) DoNothing() *ProductUpsertOne
- func (u *ProductUpsertOne) Exec(ctx context.Context) error
- func (u *ProductUpsertOne) ExecX(ctx context.Context)
- func (u *ProductUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)
- func (u *ProductUpsertOne) IDX(ctx context.Context) uuid.UUID
- func (u *ProductUpsertOne) Ignore() *ProductUpsertOne
- func (u *ProductUpsertOne) SetAliyunCommodityCode(v string) *ProductUpsertOne
- func (u *ProductUpsertOne) SetAuthType(v string) *ProductUpsertOne
- func (u *ProductUpsertOne) SetCategoryKey(v string) *ProductUpsertOne
- func (u *ProductUpsertOne) SetCategoryName(v string) *ProductUpsertOne
- func (u *ProductUpsertOne) SetDataFormat(v int32) *ProductUpsertOne
- func (u *ProductUpsertOne) SetDescription(v string) *ProductUpsertOne
- func (u *ProductUpsertOne) SetDeviceCount(v int32) *ProductUpsertOne
- func (u *ProductUpsertOne) SetGmtCreate(v int64) *ProductUpsertOne
- func (u *ProductUpsertOne) SetId2(v bool) *ProductUpsertOne
- func (u *ProductUpsertOne) SetNetType(v int32) *ProductUpsertOne
- func (u *ProductUpsertOne) SetNodeType(v int32) *ProductUpsertOne
- func (u *ProductUpsertOne) SetOwner(v bool) *ProductUpsertOne
- func (u *ProductUpsertOne) SetProductKey(v string) *ProductUpsertOne
- func (u *ProductUpsertOne) SetProductName(v string) *ProductUpsertOne
- func (u *ProductUpsertOne) SetProductSecret(v string) *ProductUpsertOne
- func (u *ProductUpsertOne) SetProductStatus(v string) *ProductUpsertOne
- func (u *ProductUpsertOne) SetProtocolType(v string) *ProductUpsertOne
- func (u *ProductUpsertOne) SetSort(v uint32) *ProductUpsertOne
- func (u *ProductUpsertOne) SetStatus(v uint8) *ProductUpsertOne
- func (u *ProductUpsertOne) SetUpdatedAt(v time.Time) *ProductUpsertOne
- func (u *ProductUpsertOne) SetValidateType(v int32) *ProductUpsertOne
- func (u *ProductUpsertOne) Update(set func(*ProductUpsert)) *ProductUpsertOne
- func (u *ProductUpsertOne) UpdateAliyunCommodityCode() *ProductUpsertOne
- func (u *ProductUpsertOne) UpdateAuthType() *ProductUpsertOne
- func (u *ProductUpsertOne) UpdateCategoryKey() *ProductUpsertOne
- func (u *ProductUpsertOne) UpdateCategoryName() *ProductUpsertOne
- func (u *ProductUpsertOne) UpdateDataFormat() *ProductUpsertOne
- func (u *ProductUpsertOne) UpdateDescription() *ProductUpsertOne
- func (u *ProductUpsertOne) UpdateDeviceCount() *ProductUpsertOne
- func (u *ProductUpsertOne) UpdateGmtCreate() *ProductUpsertOne
- func (u *ProductUpsertOne) UpdateId2() *ProductUpsertOne
- func (u *ProductUpsertOne) UpdateNetType() *ProductUpsertOne
- func (u *ProductUpsertOne) UpdateNewValues() *ProductUpsertOne
- func (u *ProductUpsertOne) UpdateNodeType() *ProductUpsertOne
- func (u *ProductUpsertOne) UpdateOwner() *ProductUpsertOne
- func (u *ProductUpsertOne) UpdateProductKey() *ProductUpsertOne
- func (u *ProductUpsertOne) UpdateProductName() *ProductUpsertOne
- func (u *ProductUpsertOne) UpdateProductSecret() *ProductUpsertOne
- func (u *ProductUpsertOne) UpdateProductStatus() *ProductUpsertOne
- func (u *ProductUpsertOne) UpdateProtocolType() *ProductUpsertOne
- func (u *ProductUpsertOne) UpdateSort() *ProductUpsertOne
- func (u *ProductUpsertOne) UpdateStatus() *ProductUpsertOne
- func (u *ProductUpsertOne) UpdateUpdatedAt() *ProductUpsertOne
- func (u *ProductUpsertOne) UpdateValidateType() *ProductUpsertOne
- type Products
- 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. TypeCompany = "Company" TypeDevice = "Device" TypeDeviceProp = "DeviceProp" TypeMember = "Member" TypeProduct = "Product" TypeProductEvent = "ProductEvent" TypeProductProperty = "ProductProperty" TypeProductService = "ProductService" TypeProductTag = "ProductTag" )
Variables ¶
var DefaultCompanyOrder = Desc(company.FieldID)
DefaultCompanyOrder is the default ordering of Company.
var DefaultDeviceOrder = Desc(device.FieldID)
DefaultDeviceOrder is the default ordering of Device.
var DefaultDevicePropOrder = Desc(deviceprop.FieldID)
DefaultDevicePropOrder is the default ordering of DeviceProp.
var DefaultMemberOrder = Desc(member.FieldID)
DefaultMemberOrder is the default ordering of Member.
var DefaultProductEventOrder = Desc(productevent.FieldID)
DefaultProductEventOrder is the default ordering of ProductEvent.
var DefaultProductOrder = Desc(product.FieldID)
DefaultProductOrder is the default ordering of Product.
var DefaultProductPropertyOrder = Desc(productproperty.FieldID)
DefaultProductPropertyOrder is the default ordering of ProductProperty.
var DefaultProductServiceOrder = Desc(productservice.FieldID)
DefaultProductServiceOrder is the default ordering of ProductService.
var DefaultProductTagOrder = Desc(producttag.FieldID)
DefaultProductTagOrder is the default ordering of ProductTag.
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 // Company is the client for interacting with the Company builders. Company *CompanyClient // Device is the client for interacting with the Device builders. Device *DeviceClient // DeviceProp is the client for interacting with the DeviceProp builders. DeviceProp *DevicePropClient // Member is the client for interacting with the Member builders. Member *MemberClient // Product is the client for interacting with the Product builders. Product *ProductClient // ProductEvent is the client for interacting with the ProductEvent builders. ProductEvent *ProductEventClient // ProductProperty is the client for interacting with the ProductProperty builders. ProductProperty *ProductPropertyClient // ProductService is the client for interacting with the ProductService builders. ProductService *ProductServiceClient // ProductTag is the client for interacting with the ProductTag builders. ProductTag *ProductTagClient // 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(). Company. 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 Company ¶
type Company 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"` // Code | 公司编码 Code int32 `json:"code,omitempty"` // Nickname | 公司简称 Nickname string `json:"nickname,omitempty"` // Address | 公司地址 Address string `json:"address,omitempty"` // Remark | 备注 Remark string `json:"remark,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the CompanyQuery when eager-loading is set. Edges CompanyEdges `json:"edges"` // contains filtered or unexported fields }
Company is the model entity for the Company schema.
func (*Company) ExecContext ¶
func (c *Company) 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 (*Company) QueryContext ¶
func (c *Company) 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 (*Company) QueryDevices ¶
func (c *Company) QueryDevices() *DeviceQuery
QueryDevices queries the "devices" edge of the Company entity.
func (*Company) QueryMembers ¶
func (c *Company) QueryMembers() *MemberQuery
QueryMembers queries the "members" edge of the Company entity.
func (*Company) Unwrap ¶
Unwrap unwraps the Company 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 (*Company) Update ¶
func (c *Company) Update() *CompanyUpdateOne
Update returns a builder for updating this Company. Note that you need to call Company.Unwrap() before calling this method if this Company was returned from a transaction, and the transaction was committed or rolled back.
type CompanyClient ¶
type CompanyClient struct {
// contains filtered or unexported fields
}
CompanyClient is a client for the Company schema.
func NewCompanyClient ¶
func NewCompanyClient(c config) *CompanyClient
NewCompanyClient returns a client for the Company from the given config.
func (*CompanyClient) Create ¶
func (c *CompanyClient) Create() *CompanyCreate
Create returns a builder for creating a Company entity.
func (*CompanyClient) CreateBulk ¶
func (c *CompanyClient) CreateBulk(builders ...*CompanyCreate) *CompanyCreateBulk
CreateBulk returns a builder for creating a bulk of Company entities.
func (*CompanyClient) Delete ¶
func (c *CompanyClient) Delete() *CompanyDelete
Delete returns a delete builder for Company.
func (*CompanyClient) DeleteOne ¶
func (c *CompanyClient) DeleteOne(co *Company) *CompanyDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*CompanyClient) DeleteOneID ¶
func (c *CompanyClient) DeleteOneID(id uint64) *CompanyDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*CompanyClient) ExecContext ¶
func (c *CompanyClient) 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 (*CompanyClient) GetX ¶
func (c *CompanyClient) GetX(ctx context.Context, id uint64) *Company
GetX is like Get, but panics if an error occurs.
func (*CompanyClient) Hooks ¶
func (c *CompanyClient) Hooks() []Hook
Hooks returns the client hooks.
func (*CompanyClient) Intercept ¶
func (c *CompanyClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `company.Intercept(f(g(h())))`.
func (*CompanyClient) Interceptors ¶
func (c *CompanyClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*CompanyClient) MapCreateBulk ¶
func (c *CompanyClient) MapCreateBulk(slice any, setFunc func(*CompanyCreate, int)) *CompanyCreateBulk
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 (*CompanyClient) Query ¶
func (c *CompanyClient) Query() *CompanyQuery
Query returns a query builder for Company.
func (*CompanyClient) QueryContext ¶
func (c *CompanyClient) 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 (*CompanyClient) QueryDevices ¶
func (c *CompanyClient) QueryDevices(co *Company) *DeviceQuery
QueryDevices queries the devices edge of a Company.
func (*CompanyClient) QueryMembers ¶
func (c *CompanyClient) QueryMembers(co *Company) *MemberQuery
QueryMembers queries the members edge of a Company.
func (*CompanyClient) Update ¶
func (c *CompanyClient) Update() *CompanyUpdate
Update returns an update builder for Company.
func (*CompanyClient) UpdateOne ¶
func (c *CompanyClient) UpdateOne(co *Company) *CompanyUpdateOne
UpdateOne returns an update builder for the given entity.
func (*CompanyClient) UpdateOneID ¶
func (c *CompanyClient) UpdateOneID(id uint64) *CompanyUpdateOne
UpdateOneID returns an update builder for the given id.
func (*CompanyClient) Use ¶
func (c *CompanyClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `company.Hooks(f(g(h())))`.
type CompanyCreate ¶
type CompanyCreate struct {
// contains filtered or unexported fields
}
CompanyCreate is the builder for creating a Company entity.
func (*CompanyCreate) AddDeviceIDs ¶
func (cc *CompanyCreate) AddDeviceIDs(ids ...uuid.UUID) *CompanyCreate
AddDeviceIDs adds the "devices" edge to the Device entity by IDs.
func (*CompanyCreate) AddDevices ¶
func (cc *CompanyCreate) AddDevices(d ...*Device) *CompanyCreate
AddDevices adds the "devices" edges to the Device entity.
func (*CompanyCreate) AddMemberIDs ¶
func (cc *CompanyCreate) AddMemberIDs(ids ...uuid.UUID) *CompanyCreate
AddMemberIDs adds the "members" edge to the Member entity by IDs.
func (*CompanyCreate) AddMembers ¶
func (cc *CompanyCreate) AddMembers(m ...*Member) *CompanyCreate
AddMembers adds the "members" edges to the Member entity.
func (*CompanyCreate) Exec ¶
func (cc *CompanyCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*CompanyCreate) ExecContext ¶
func (c *CompanyCreate) 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 (*CompanyCreate) ExecX ¶
func (cc *CompanyCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CompanyCreate) Mutation ¶
func (cc *CompanyCreate) Mutation() *CompanyMutation
Mutation returns the CompanyMutation object of the builder.
func (*CompanyCreate) OnConflict ¶
func (cc *CompanyCreate) OnConflict(opts ...sql.ConflictOption) *CompanyUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Company.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.CompanyUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*CompanyCreate) OnConflictColumns ¶
func (cc *CompanyCreate) OnConflictColumns(columns ...string) *CompanyUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Company.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*CompanyCreate) QueryContext ¶
func (c *CompanyCreate) 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 (*CompanyCreate) Save ¶
func (cc *CompanyCreate) Save(ctx context.Context) (*Company, error)
Save creates the Company in the database.
func (*CompanyCreate) SaveX ¶
func (cc *CompanyCreate) SaveX(ctx context.Context) *Company
SaveX calls Save and panics if Save returns an error.
func (*CompanyCreate) SetAddress ¶
func (cc *CompanyCreate) SetAddress(s string) *CompanyCreate
SetAddress sets the "address" field.
func (*CompanyCreate) SetCode ¶
func (cc *CompanyCreate) SetCode(i int32) *CompanyCreate
SetCode sets the "code" field.
func (*CompanyCreate) SetCreatedAt ¶
func (cc *CompanyCreate) SetCreatedAt(t time.Time) *CompanyCreate
SetCreatedAt sets the "created_at" field.
func (*CompanyCreate) SetID ¶
func (cc *CompanyCreate) SetID(u uint64) *CompanyCreate
SetID sets the "id" field.
func (*CompanyCreate) SetNickname ¶
func (cc *CompanyCreate) SetNickname(s string) *CompanyCreate
SetNickname sets the "nickname" field.
func (*CompanyCreate) SetNillableAddress ¶
func (cc *CompanyCreate) SetNillableAddress(s *string) *CompanyCreate
SetNillableAddress sets the "address" field if the given value is not nil.
func (*CompanyCreate) SetNillableCreatedAt ¶
func (cc *CompanyCreate) SetNillableCreatedAt(t *time.Time) *CompanyCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*CompanyCreate) SetNillableRemark ¶
func (cc *CompanyCreate) SetNillableRemark(s *string) *CompanyCreate
SetNillableRemark sets the "remark" field if the given value is not nil.
func (*CompanyCreate) SetNillableSort ¶
func (cc *CompanyCreate) SetNillableSort(u *uint32) *CompanyCreate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*CompanyCreate) SetNillableStatus ¶
func (cc *CompanyCreate) SetNillableStatus(u *uint8) *CompanyCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*CompanyCreate) SetNillableUpdatedAt ¶
func (cc *CompanyCreate) SetNillableUpdatedAt(t *time.Time) *CompanyCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*CompanyCreate) SetNotNilAddress ¶
func (c *CompanyCreate) SetNotNilAddress(value *string) *CompanyCreate
set field if value's pointer is not nil.
func (*CompanyCreate) SetNotNilCode ¶
func (c *CompanyCreate) SetNotNilCode(value *int32) *CompanyCreate
set field if value's pointer is not nil.
func (*CompanyCreate) SetNotNilNickname ¶
func (c *CompanyCreate) SetNotNilNickname(value *string) *CompanyCreate
set field if value's pointer is not nil.
func (*CompanyCreate) SetNotNilRemark ¶
func (c *CompanyCreate) SetNotNilRemark(value *string) *CompanyCreate
set field if value's pointer is not nil.
func (*CompanyCreate) SetNotNilSort ¶
func (c *CompanyCreate) SetNotNilSort(value *uint32) *CompanyCreate
set field if value's pointer is not nil.
func (*CompanyCreate) SetNotNilStatus ¶
func (c *CompanyCreate) SetNotNilStatus(value *uint8) *CompanyCreate
set field if value's pointer is not nil.
func (*CompanyCreate) SetNotNilUpdatedAt ¶
func (c *CompanyCreate) SetNotNilUpdatedAt(value *time.Time) *CompanyCreate
set field if value's pointer is not nil.
func (*CompanyCreate) SetRemark ¶
func (cc *CompanyCreate) SetRemark(s string) *CompanyCreate
SetRemark sets the "remark" field.
func (*CompanyCreate) SetSort ¶
func (cc *CompanyCreate) SetSort(u uint32) *CompanyCreate
SetSort sets the "sort" field.
func (*CompanyCreate) SetStatus ¶
func (cc *CompanyCreate) SetStatus(u uint8) *CompanyCreate
SetStatus sets the "status" field.
func (*CompanyCreate) SetUpdatedAt ¶
func (cc *CompanyCreate) SetUpdatedAt(t time.Time) *CompanyCreate
SetUpdatedAt sets the "updated_at" field.
type CompanyCreateBulk ¶
type CompanyCreateBulk struct {
// contains filtered or unexported fields
}
CompanyCreateBulk is the builder for creating many Company entities in bulk.
func (*CompanyCreateBulk) Exec ¶
func (ccb *CompanyCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*CompanyCreateBulk) ExecContext ¶
func (c *CompanyCreateBulk) 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 (*CompanyCreateBulk) ExecX ¶
func (ccb *CompanyCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CompanyCreateBulk) OnConflict ¶
func (ccb *CompanyCreateBulk) OnConflict(opts ...sql.ConflictOption) *CompanyUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Company.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.CompanyUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*CompanyCreateBulk) OnConflictColumns ¶
func (ccb *CompanyCreateBulk) OnConflictColumns(columns ...string) *CompanyUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Company.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*CompanyCreateBulk) QueryContext ¶
func (c *CompanyCreateBulk) 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 CompanyDelete ¶
type CompanyDelete struct {
// contains filtered or unexported fields
}
CompanyDelete is the builder for deleting a Company entity.
func (*CompanyDelete) Exec ¶
func (cd *CompanyDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*CompanyDelete) ExecContext ¶
func (c *CompanyDelete) 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 (*CompanyDelete) ExecX ¶
func (cd *CompanyDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*CompanyDelete) QueryContext ¶
func (c *CompanyDelete) 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 (*CompanyDelete) Where ¶
func (cd *CompanyDelete) Where(ps ...predicate.Company) *CompanyDelete
Where appends a list predicates to the CompanyDelete builder.
type CompanyDeleteOne ¶
type CompanyDeleteOne struct {
// contains filtered or unexported fields
}
CompanyDeleteOne is the builder for deleting a single Company entity.
func (*CompanyDeleteOne) Exec ¶
func (cdo *CompanyDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*CompanyDeleteOne) ExecX ¶
func (cdo *CompanyDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CompanyDeleteOne) Where ¶
func (cdo *CompanyDeleteOne) Where(ps ...predicate.Company) *CompanyDeleteOne
Where appends a list predicates to the CompanyDelete builder.
type CompanyEdges ¶
type CompanyEdges struct { // Devices holds the value of the devices edge. Devices []*Device `json:"devices,omitempty"` // Members holds the value of the members edge. Members []*Member `json:"members,omitempty"` // contains filtered or unexported fields }
CompanyEdges holds the relations/edges for other nodes in the graph.
func (CompanyEdges) DevicesOrErr ¶
func (e CompanyEdges) DevicesOrErr() ([]*Device, error)
DevicesOrErr returns the Devices value or an error if the edge was not loaded in eager-loading.
func (CompanyEdges) MembersOrErr ¶
func (e CompanyEdges) MembersOrErr() ([]*Member, error)
MembersOrErr returns the Members value or an error if the edge was not loaded in eager-loading.
type CompanyGroupBy ¶
type CompanyGroupBy struct {
// contains filtered or unexported fields
}
CompanyGroupBy is the group-by builder for Company entities.
func (*CompanyGroupBy) Aggregate ¶
func (cgb *CompanyGroupBy) Aggregate(fns ...AggregateFunc) *CompanyGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*CompanyGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*CompanyGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*CompanyGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*CompanyGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*CompanyGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*CompanyGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*CompanyGroupBy) Scan ¶
func (cgb *CompanyGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*CompanyGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type CompanyMutation ¶
type CompanyMutation struct {
// contains filtered or unexported fields
}
CompanyMutation represents an operation that mutates the Company nodes in the graph.
func (*CompanyMutation) AddCode ¶
func (m *CompanyMutation) AddCode(i int32)
AddCode adds i to the "code" field.
func (*CompanyMutation) AddDeviceIDs ¶
func (m *CompanyMutation) AddDeviceIDs(ids ...uuid.UUID)
AddDeviceIDs adds the "devices" edge to the Device entity by ids.
func (*CompanyMutation) AddField ¶
func (m *CompanyMutation) 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 (*CompanyMutation) AddMemberIDs ¶
func (m *CompanyMutation) AddMemberIDs(ids ...uuid.UUID)
AddMemberIDs adds the "members" edge to the Member entity by ids.
func (*CompanyMutation) AddSort ¶
func (m *CompanyMutation) AddSort(u int32)
AddSort adds u to the "sort" field.
func (*CompanyMutation) AddStatus ¶
func (m *CompanyMutation) AddStatus(u int8)
AddStatus adds u to the "status" field.
func (*CompanyMutation) AddedCode ¶
func (m *CompanyMutation) AddedCode() (r int32, exists bool)
AddedCode returns the value that was added to the "code" field in this mutation.
func (*CompanyMutation) AddedEdges ¶
func (m *CompanyMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*CompanyMutation) AddedField ¶
func (m *CompanyMutation) 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 (*CompanyMutation) AddedFields ¶
func (m *CompanyMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*CompanyMutation) AddedIDs ¶
func (m *CompanyMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*CompanyMutation) AddedSort ¶
func (m *CompanyMutation) AddedSort() (r int32, exists bool)
AddedSort returns the value that was added to the "sort" field in this mutation.
func (*CompanyMutation) AddedStatus ¶
func (m *CompanyMutation) AddedStatus() (r int8, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*CompanyMutation) Address ¶
func (m *CompanyMutation) Address() (r string, exists bool)
Address returns the value of the "address" field in the mutation.
func (*CompanyMutation) AddressCleared ¶
func (m *CompanyMutation) AddressCleared() bool
AddressCleared returns if the "address" field was cleared in this mutation.
func (*CompanyMutation) ClearAddress ¶
func (m *CompanyMutation) ClearAddress()
ClearAddress clears the value of the "address" field.
func (*CompanyMutation) ClearDevices ¶
func (m *CompanyMutation) ClearDevices()
ClearDevices clears the "devices" edge to the Device entity.
func (*CompanyMutation) ClearEdge ¶
func (m *CompanyMutation) 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 (*CompanyMutation) ClearField ¶
func (m *CompanyMutation) 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 (*CompanyMutation) ClearMembers ¶
func (m *CompanyMutation) ClearMembers()
ClearMembers clears the "members" edge to the Member entity.
func (*CompanyMutation) ClearRemark ¶
func (m *CompanyMutation) ClearRemark()
ClearRemark clears the value of the "remark" field.
func (*CompanyMutation) ClearStatus ¶
func (m *CompanyMutation) ClearStatus()
ClearStatus clears the value of the "status" field.
func (*CompanyMutation) ClearedEdges ¶
func (m *CompanyMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*CompanyMutation) ClearedFields ¶
func (m *CompanyMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (CompanyMutation) Client ¶
func (m CompanyMutation) 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 (*CompanyMutation) Code ¶
func (m *CompanyMutation) Code() (r int32, exists bool)
Code returns the value of the "code" field in the mutation.
func (*CompanyMutation) CreatedAt ¶
func (m *CompanyMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*CompanyMutation) DevicesCleared ¶
func (m *CompanyMutation) DevicesCleared() bool
DevicesCleared reports if the "devices" edge to the Device entity was cleared.
func (*CompanyMutation) DevicesIDs ¶
func (m *CompanyMutation) DevicesIDs() (ids []uuid.UUID)
DevicesIDs returns the "devices" edge IDs in the mutation.
func (*CompanyMutation) EdgeCleared ¶
func (m *CompanyMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*CompanyMutation) ExecContext ¶
func (c *CompanyMutation) 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 (*CompanyMutation) Field ¶
func (m *CompanyMutation) 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 (*CompanyMutation) FieldCleared ¶
func (m *CompanyMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*CompanyMutation) Fields ¶
func (m *CompanyMutation) 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 (*CompanyMutation) ID ¶
func (m *CompanyMutation) 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 (*CompanyMutation) IDs ¶
func (m *CompanyMutation) 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 (*CompanyMutation) MembersCleared ¶
func (m *CompanyMutation) MembersCleared() bool
MembersCleared reports if the "members" edge to the Member entity was cleared.
func (*CompanyMutation) MembersIDs ¶
func (m *CompanyMutation) MembersIDs() (ids []uuid.UUID)
MembersIDs returns the "members" edge IDs in the mutation.
func (*CompanyMutation) Nickname ¶
func (m *CompanyMutation) Nickname() (r string, exists bool)
Nickname returns the value of the "nickname" field in the mutation.
func (*CompanyMutation) OldAddress ¶
func (m *CompanyMutation) OldAddress(ctx context.Context) (v string, err error)
OldAddress returns the old "address" field's value of the Company entity. If the Company object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CompanyMutation) OldCode ¶
func (m *CompanyMutation) OldCode(ctx context.Context) (v int32, err error)
OldCode returns the old "code" field's value of the Company entity. If the Company object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CompanyMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Company entity. If the Company object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CompanyMutation) 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 (*CompanyMutation) OldNickname ¶
func (m *CompanyMutation) OldNickname(ctx context.Context) (v string, err error)
OldNickname returns the old "nickname" field's value of the Company entity. If the Company object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CompanyMutation) OldRemark ¶
func (m *CompanyMutation) OldRemark(ctx context.Context) (v string, err error)
OldRemark returns the old "remark" field's value of the Company entity. If the Company object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CompanyMutation) OldSort ¶
func (m *CompanyMutation) OldSort(ctx context.Context) (v uint32, err error)
OldSort returns the old "sort" field's value of the Company entity. If the Company object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CompanyMutation) OldStatus ¶
func (m *CompanyMutation) OldStatus(ctx context.Context) (v uint8, err error)
OldStatus returns the old "status" field's value of the Company entity. If the Company object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CompanyMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Company entity. If the Company object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CompanyMutation) QueryContext ¶
func (c *CompanyMutation) 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 (*CompanyMutation) Remark ¶
func (m *CompanyMutation) Remark() (r string, exists bool)
Remark returns the value of the "remark" field in the mutation.
func (*CompanyMutation) RemarkCleared ¶
func (m *CompanyMutation) RemarkCleared() bool
RemarkCleared returns if the "remark" field was cleared in this mutation.
func (*CompanyMutation) RemoveDeviceIDs ¶
func (m *CompanyMutation) RemoveDeviceIDs(ids ...uuid.UUID)
RemoveDeviceIDs removes the "devices" edge to the Device entity by IDs.
func (*CompanyMutation) RemoveMemberIDs ¶
func (m *CompanyMutation) RemoveMemberIDs(ids ...uuid.UUID)
RemoveMemberIDs removes the "members" edge to the Member entity by IDs.
func (*CompanyMutation) RemovedDevicesIDs ¶
func (m *CompanyMutation) RemovedDevicesIDs() (ids []uuid.UUID)
RemovedDevices returns the removed IDs of the "devices" edge to the Device entity.
func (*CompanyMutation) RemovedEdges ¶
func (m *CompanyMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*CompanyMutation) RemovedIDs ¶
func (m *CompanyMutation) 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 (*CompanyMutation) RemovedMembersIDs ¶
func (m *CompanyMutation) RemovedMembersIDs() (ids []uuid.UUID)
RemovedMembers returns the removed IDs of the "members" edge to the Member entity.
func (*CompanyMutation) ResetAddress ¶
func (m *CompanyMutation) ResetAddress()
ResetAddress resets all changes to the "address" field.
func (*CompanyMutation) ResetCode ¶
func (m *CompanyMutation) ResetCode()
ResetCode resets all changes to the "code" field.
func (*CompanyMutation) ResetCreatedAt ¶
func (m *CompanyMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*CompanyMutation) ResetDevices ¶
func (m *CompanyMutation) ResetDevices()
ResetDevices resets all changes to the "devices" edge.
func (*CompanyMutation) ResetEdge ¶
func (m *CompanyMutation) 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 (*CompanyMutation) ResetField ¶
func (m *CompanyMutation) 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 (*CompanyMutation) ResetMembers ¶
func (m *CompanyMutation) ResetMembers()
ResetMembers resets all changes to the "members" edge.
func (*CompanyMutation) ResetNickname ¶
func (m *CompanyMutation) ResetNickname()
ResetNickname resets all changes to the "nickname" field.
func (*CompanyMutation) ResetRemark ¶
func (m *CompanyMutation) ResetRemark()
ResetRemark resets all changes to the "remark" field.
func (*CompanyMutation) ResetSort ¶
func (m *CompanyMutation) ResetSort()
ResetSort resets all changes to the "sort" field.
func (*CompanyMutation) ResetStatus ¶
func (m *CompanyMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*CompanyMutation) ResetUpdatedAt ¶
func (m *CompanyMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*CompanyMutation) SetAddress ¶
func (m *CompanyMutation) SetAddress(s string)
SetAddress sets the "address" field.
func (*CompanyMutation) SetCode ¶
func (m *CompanyMutation) SetCode(i int32)
SetCode sets the "code" field.
func (*CompanyMutation) SetCreatedAt ¶
func (m *CompanyMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*CompanyMutation) SetField ¶
func (m *CompanyMutation) 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 (*CompanyMutation) SetID ¶
func (m *CompanyMutation) SetID(id uint64)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Company entities.
func (*CompanyMutation) SetNickname ¶
func (m *CompanyMutation) SetNickname(s string)
SetNickname sets the "nickname" field.
func (*CompanyMutation) SetOp ¶
func (m *CompanyMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*CompanyMutation) SetRemark ¶
func (m *CompanyMutation) SetRemark(s string)
SetRemark sets the "remark" field.
func (*CompanyMutation) SetSort ¶
func (m *CompanyMutation) SetSort(u uint32)
SetSort sets the "sort" field.
func (*CompanyMutation) SetStatus ¶
func (m *CompanyMutation) SetStatus(u uint8)
SetStatus sets the "status" field.
func (*CompanyMutation) SetUpdatedAt ¶
func (m *CompanyMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*CompanyMutation) Sort ¶
func (m *CompanyMutation) Sort() (r uint32, exists bool)
Sort returns the value of the "sort" field in the mutation.
func (*CompanyMutation) Status ¶
func (m *CompanyMutation) Status() (r uint8, exists bool)
Status returns the value of the "status" field in the mutation.
func (*CompanyMutation) StatusCleared ¶
func (m *CompanyMutation) StatusCleared() bool
StatusCleared returns if the "status" field was cleared in this mutation.
func (CompanyMutation) Tx ¶
func (m CompanyMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*CompanyMutation) Type ¶
func (m *CompanyMutation) Type() string
Type returns the node type of this mutation (Company).
func (*CompanyMutation) UpdatedAt ¶
func (m *CompanyMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*CompanyMutation) Where ¶
func (m *CompanyMutation) Where(ps ...predicate.Company)
Where appends a list predicates to the CompanyMutation builder.
func (*CompanyMutation) WhereP ¶
func (m *CompanyMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the CompanyMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type CompanyPageList ¶
type CompanyPageList struct { List []*Company `json:"list"` PageDetails *PageDetails `json:"pageDetails"` }
CompanyPageList is Company PageList result.
type CompanyPager ¶
type CompanyPager struct { Order company.OrderOption Filter func(*CompanyQuery) (*CompanyQuery, error) }
func (*CompanyPager) ApplyFilter ¶
func (p *CompanyPager) ApplyFilter(query *CompanyQuery) (*CompanyQuery, error)
type CompanyPaginateOption ¶
type CompanyPaginateOption func(*CompanyPager)
CompanyPaginateOption enables pagination customization.
type CompanyQuery ¶
type CompanyQuery struct {
// contains filtered or unexported fields
}
CompanyQuery is the builder for querying Company entities.
func (*CompanyQuery) Aggregate ¶
func (cq *CompanyQuery) Aggregate(fns ...AggregateFunc) *CompanySelect
Aggregate returns a CompanySelect configured with the given aggregations.
func (*CompanyQuery) All ¶
func (cq *CompanyQuery) All(ctx context.Context) ([]*Company, error)
All executes the query and returns a list of Companies.
func (*CompanyQuery) AllX ¶
func (cq *CompanyQuery) AllX(ctx context.Context) []*Company
AllX is like All, but panics if an error occurs.
func (*CompanyQuery) Clone ¶
func (cq *CompanyQuery) Clone() *CompanyQuery
Clone returns a duplicate of the CompanyQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*CompanyQuery) Count ¶
func (cq *CompanyQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*CompanyQuery) CountX ¶
func (cq *CompanyQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*CompanyQuery) ExecContext ¶
func (c *CompanyQuery) 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 (*CompanyQuery) Exist ¶
func (cq *CompanyQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*CompanyQuery) ExistX ¶
func (cq *CompanyQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*CompanyQuery) First ¶
func (cq *CompanyQuery) First(ctx context.Context) (*Company, error)
First returns the first Company entity from the query. Returns a *NotFoundError when no Company was found.
func (*CompanyQuery) FirstID ¶
func (cq *CompanyQuery) FirstID(ctx context.Context) (id uint64, err error)
FirstID returns the first Company ID from the query. Returns a *NotFoundError when no Company ID was found.
func (*CompanyQuery) FirstIDX ¶
func (cq *CompanyQuery) FirstIDX(ctx context.Context) uint64
FirstIDX is like FirstID, but panics if an error occurs.
func (*CompanyQuery) FirstX ¶
func (cq *CompanyQuery) FirstX(ctx context.Context) *Company
FirstX is like First, but panics if an error occurs.
func (*CompanyQuery) GroupBy ¶
func (cq *CompanyQuery) GroupBy(field string, fields ...string) *CompanyGroupBy
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.Company.Query(). GroupBy(company.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*CompanyQuery) IDs ¶
func (cq *CompanyQuery) IDs(ctx context.Context) (ids []uint64, err error)
IDs executes the query and returns a list of Company IDs.
func (*CompanyQuery) IDsX ¶
func (cq *CompanyQuery) IDsX(ctx context.Context) []uint64
IDsX is like IDs, but panics if an error occurs.
func (*CompanyQuery) Limit ¶
func (cq *CompanyQuery) Limit(limit int) *CompanyQuery
Limit the number of records to be returned by this query.
func (*CompanyQuery) Modify ¶
func (cq *CompanyQuery) Modify(modifiers ...func(s *sql.Selector)) *CompanySelect
Modify adds a query modifier for attaching custom logic to queries.
func (*CompanyQuery) Offset ¶
func (cq *CompanyQuery) Offset(offset int) *CompanyQuery
Offset to start from.
func (*CompanyQuery) Only ¶
func (cq *CompanyQuery) Only(ctx context.Context) (*Company, error)
Only returns a single Company entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Company entity is found. Returns a *NotFoundError when no Company entities are found.
func (*CompanyQuery) OnlyID ¶
func (cq *CompanyQuery) OnlyID(ctx context.Context) (id uint64, err error)
OnlyID is like Only, but returns the only Company ID in the query. Returns a *NotSingularError when more than one Company ID is found. Returns a *NotFoundError when no entities are found.
func (*CompanyQuery) OnlyIDX ¶
func (cq *CompanyQuery) OnlyIDX(ctx context.Context) uint64
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*CompanyQuery) OnlyX ¶
func (cq *CompanyQuery) OnlyX(ctx context.Context) *Company
OnlyX is like Only, but panics if an error occurs.
func (*CompanyQuery) Order ¶
func (cq *CompanyQuery) Order(o ...company.OrderOption) *CompanyQuery
Order specifies how the records should be ordered.
func (*CompanyQuery) Page ¶
func (c *CompanyQuery) Page( ctx context.Context, pageNum uint64, pageSize uint64, opts ...CompanyPaginateOption, ) (*CompanyPageList, error)
func (*CompanyQuery) QueryContext ¶
func (c *CompanyQuery) 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 (*CompanyQuery) QueryDevices ¶
func (cq *CompanyQuery) QueryDevices() *DeviceQuery
QueryDevices chains the current query on the "devices" edge.
func (*CompanyQuery) QueryMembers ¶
func (cq *CompanyQuery) QueryMembers() *MemberQuery
QueryMembers chains the current query on the "members" edge.
func (*CompanyQuery) Select ¶
func (cq *CompanyQuery) Select(fields ...string) *CompanySelect
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.Company.Query(). Select(company.FieldCreatedAt). Scan(ctx, &v)
func (*CompanyQuery) Unique ¶
func (cq *CompanyQuery) Unique(unique bool) *CompanyQuery
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 (*CompanyQuery) Where ¶
func (cq *CompanyQuery) Where(ps ...predicate.Company) *CompanyQuery
Where adds a new predicate for the CompanyQuery builder.
func (*CompanyQuery) WithDevices ¶
func (cq *CompanyQuery) WithDevices(opts ...func(*DeviceQuery)) *CompanyQuery
WithDevices tells the query-builder to eager-load the nodes that are connected to the "devices" edge. The optional arguments are used to configure the query builder of the edge.
func (*CompanyQuery) WithMembers ¶
func (cq *CompanyQuery) WithMembers(opts ...func(*MemberQuery)) *CompanyQuery
WithMembers tells the query-builder to eager-load the nodes that are connected to the "members" edge. The optional arguments are used to configure the query builder of the edge.
type CompanySelect ¶
type CompanySelect struct { *CompanyQuery // contains filtered or unexported fields }
CompanySelect is the builder for selecting fields of Company entities.
func (*CompanySelect) Aggregate ¶
func (cs *CompanySelect) Aggregate(fns ...AggregateFunc) *CompanySelect
Aggregate adds the given aggregation functions to the selector query.
func (*CompanySelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*CompanySelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (CompanySelect) ExecContext ¶
func (c CompanySelect) 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 (*CompanySelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*CompanySelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*CompanySelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*CompanySelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*CompanySelect) Modify ¶
func (cs *CompanySelect) Modify(modifiers ...func(s *sql.Selector)) *CompanySelect
Modify adds a query modifier for attaching custom logic to queries.
func (CompanySelect) QueryContext ¶
func (c CompanySelect) 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 (*CompanySelect) Scan ¶
func (cs *CompanySelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*CompanySelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type CompanyUpdate ¶
type CompanyUpdate struct {
// contains filtered or unexported fields
}
CompanyUpdate is the builder for updating Company entities.
func (*CompanyUpdate) AddCode ¶
func (cu *CompanyUpdate) AddCode(i int32) *CompanyUpdate
AddCode adds i to the "code" field.
func (*CompanyUpdate) AddDeviceIDs ¶
func (cu *CompanyUpdate) AddDeviceIDs(ids ...uuid.UUID) *CompanyUpdate
AddDeviceIDs adds the "devices" edge to the Device entity by IDs.
func (*CompanyUpdate) AddDevices ¶
func (cu *CompanyUpdate) AddDevices(d ...*Device) *CompanyUpdate
AddDevices adds the "devices" edges to the Device entity.
func (*CompanyUpdate) AddMemberIDs ¶
func (cu *CompanyUpdate) AddMemberIDs(ids ...uuid.UUID) *CompanyUpdate
AddMemberIDs adds the "members" edge to the Member entity by IDs.
func (*CompanyUpdate) AddMembers ¶
func (cu *CompanyUpdate) AddMembers(m ...*Member) *CompanyUpdate
AddMembers adds the "members" edges to the Member entity.
func (*CompanyUpdate) AddSort ¶
func (cu *CompanyUpdate) AddSort(u int32) *CompanyUpdate
AddSort adds u to the "sort" field.
func (*CompanyUpdate) AddStatus ¶
func (cu *CompanyUpdate) AddStatus(u int8) *CompanyUpdate
AddStatus adds u to the "status" field.
func (*CompanyUpdate) ClearAddress ¶
func (cu *CompanyUpdate) ClearAddress() *CompanyUpdate
ClearAddress clears the value of the "address" field.
func (*CompanyUpdate) ClearDevices ¶
func (cu *CompanyUpdate) ClearDevices() *CompanyUpdate
ClearDevices clears all "devices" edges to the Device entity.
func (*CompanyUpdate) ClearMembers ¶
func (cu *CompanyUpdate) ClearMembers() *CompanyUpdate
ClearMembers clears all "members" edges to the Member entity.
func (*CompanyUpdate) ClearRemark ¶
func (cu *CompanyUpdate) ClearRemark() *CompanyUpdate
ClearRemark clears the value of the "remark" field.
func (*CompanyUpdate) ClearStatus ¶
func (cu *CompanyUpdate) ClearStatus() *CompanyUpdate
ClearStatus clears the value of the "status" field.
func (*CompanyUpdate) Exec ¶
func (cu *CompanyUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*CompanyUpdate) ExecContext ¶
func (c *CompanyUpdate) 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 (*CompanyUpdate) ExecX ¶
func (cu *CompanyUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CompanyUpdate) Modify ¶
func (cu *CompanyUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *CompanyUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*CompanyUpdate) Mutation ¶
func (cu *CompanyUpdate) Mutation() *CompanyMutation
Mutation returns the CompanyMutation object of the builder.
func (*CompanyUpdate) QueryContext ¶
func (c *CompanyUpdate) 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 (*CompanyUpdate) RemoveDeviceIDs ¶
func (cu *CompanyUpdate) RemoveDeviceIDs(ids ...uuid.UUID) *CompanyUpdate
RemoveDeviceIDs removes the "devices" edge to Device entities by IDs.
func (*CompanyUpdate) RemoveDevices ¶
func (cu *CompanyUpdate) RemoveDevices(d ...*Device) *CompanyUpdate
RemoveDevices removes "devices" edges to Device entities.
func (*CompanyUpdate) RemoveMemberIDs ¶
func (cu *CompanyUpdate) RemoveMemberIDs(ids ...uuid.UUID) *CompanyUpdate
RemoveMemberIDs removes the "members" edge to Member entities by IDs.
func (*CompanyUpdate) RemoveMembers ¶
func (cu *CompanyUpdate) RemoveMembers(m ...*Member) *CompanyUpdate
RemoveMembers removes "members" edges to Member entities.
func (*CompanyUpdate) Save ¶
func (cu *CompanyUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*CompanyUpdate) SaveX ¶
func (cu *CompanyUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*CompanyUpdate) SetAddress ¶
func (cu *CompanyUpdate) SetAddress(s string) *CompanyUpdate
SetAddress sets the "address" field.
func (*CompanyUpdate) SetCode ¶
func (cu *CompanyUpdate) SetCode(i int32) *CompanyUpdate
SetCode sets the "code" field.
func (*CompanyUpdate) SetNickname ¶
func (cu *CompanyUpdate) SetNickname(s string) *CompanyUpdate
SetNickname sets the "nickname" field.
func (*CompanyUpdate) SetNillableAddress ¶
func (cu *CompanyUpdate) SetNillableAddress(s *string) *CompanyUpdate
SetNillableAddress sets the "address" field if the given value is not nil.
func (*CompanyUpdate) SetNillableCode ¶
func (cu *CompanyUpdate) SetNillableCode(i *int32) *CompanyUpdate
SetNillableCode sets the "code" field if the given value is not nil.
func (*CompanyUpdate) SetNillableNickname ¶
func (cu *CompanyUpdate) SetNillableNickname(s *string) *CompanyUpdate
SetNillableNickname sets the "nickname" field if the given value is not nil.
func (*CompanyUpdate) SetNillableRemark ¶
func (cu *CompanyUpdate) SetNillableRemark(s *string) *CompanyUpdate
SetNillableRemark sets the "remark" field if the given value is not nil.
func (*CompanyUpdate) SetNillableSort ¶
func (cu *CompanyUpdate) SetNillableSort(u *uint32) *CompanyUpdate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*CompanyUpdate) SetNillableStatus ¶
func (cu *CompanyUpdate) SetNillableStatus(u *uint8) *CompanyUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*CompanyUpdate) SetNotNilAddress ¶
func (c *CompanyUpdate) SetNotNilAddress(value *string) *CompanyUpdate
set field if value's pointer is not nil.
func (*CompanyUpdate) SetNotNilCode ¶
func (c *CompanyUpdate) SetNotNilCode(value *int32) *CompanyUpdate
set field if value's pointer is not nil.
func (*CompanyUpdate) SetNotNilNickname ¶
func (c *CompanyUpdate) SetNotNilNickname(value *string) *CompanyUpdate
set field if value's pointer is not nil.
func (*CompanyUpdate) SetNotNilRemark ¶
func (c *CompanyUpdate) SetNotNilRemark(value *string) *CompanyUpdate
set field if value's pointer is not nil.
func (*CompanyUpdate) SetNotNilSort ¶
func (c *CompanyUpdate) SetNotNilSort(value *uint32) *CompanyUpdate
set field if value's pointer is not nil.
func (*CompanyUpdate) SetNotNilStatus ¶
func (c *CompanyUpdate) SetNotNilStatus(value *uint8) *CompanyUpdate
set field if value's pointer is not nil.
func (*CompanyUpdate) SetNotNilUpdatedAt ¶
func (c *CompanyUpdate) SetNotNilUpdatedAt(value *time.Time) *CompanyUpdate
set field if value's pointer is not nil.
func (*CompanyUpdate) SetRemark ¶
func (cu *CompanyUpdate) SetRemark(s string) *CompanyUpdate
SetRemark sets the "remark" field.
func (*CompanyUpdate) SetSort ¶
func (cu *CompanyUpdate) SetSort(u uint32) *CompanyUpdate
SetSort sets the "sort" field.
func (*CompanyUpdate) SetStatus ¶
func (cu *CompanyUpdate) SetStatus(u uint8) *CompanyUpdate
SetStatus sets the "status" field.
func (*CompanyUpdate) SetUpdatedAt ¶
func (cu *CompanyUpdate) SetUpdatedAt(t time.Time) *CompanyUpdate
SetUpdatedAt sets the "updated_at" field.
func (*CompanyUpdate) Where ¶
func (cu *CompanyUpdate) Where(ps ...predicate.Company) *CompanyUpdate
Where appends a list predicates to the CompanyUpdate builder.
type CompanyUpdateOne ¶
type CompanyUpdateOne struct {
// contains filtered or unexported fields
}
CompanyUpdateOne is the builder for updating a single Company entity.
func (*CompanyUpdateOne) AddCode ¶
func (cuo *CompanyUpdateOne) AddCode(i int32) *CompanyUpdateOne
AddCode adds i to the "code" field.
func (*CompanyUpdateOne) AddDeviceIDs ¶
func (cuo *CompanyUpdateOne) AddDeviceIDs(ids ...uuid.UUID) *CompanyUpdateOne
AddDeviceIDs adds the "devices" edge to the Device entity by IDs.
func (*CompanyUpdateOne) AddDevices ¶
func (cuo *CompanyUpdateOne) AddDevices(d ...*Device) *CompanyUpdateOne
AddDevices adds the "devices" edges to the Device entity.
func (*CompanyUpdateOne) AddMemberIDs ¶
func (cuo *CompanyUpdateOne) AddMemberIDs(ids ...uuid.UUID) *CompanyUpdateOne
AddMemberIDs adds the "members" edge to the Member entity by IDs.
func (*CompanyUpdateOne) AddMembers ¶
func (cuo *CompanyUpdateOne) AddMembers(m ...*Member) *CompanyUpdateOne
AddMembers adds the "members" edges to the Member entity.
func (*CompanyUpdateOne) AddSort ¶
func (cuo *CompanyUpdateOne) AddSort(u int32) *CompanyUpdateOne
AddSort adds u to the "sort" field.
func (*CompanyUpdateOne) AddStatus ¶
func (cuo *CompanyUpdateOne) AddStatus(u int8) *CompanyUpdateOne
AddStatus adds u to the "status" field.
func (*CompanyUpdateOne) ClearAddress ¶
func (cuo *CompanyUpdateOne) ClearAddress() *CompanyUpdateOne
ClearAddress clears the value of the "address" field.
func (*CompanyUpdateOne) ClearDevices ¶
func (cuo *CompanyUpdateOne) ClearDevices() *CompanyUpdateOne
ClearDevices clears all "devices" edges to the Device entity.
func (*CompanyUpdateOne) ClearMembers ¶
func (cuo *CompanyUpdateOne) ClearMembers() *CompanyUpdateOne
ClearMembers clears all "members" edges to the Member entity.
func (*CompanyUpdateOne) ClearRemark ¶
func (cuo *CompanyUpdateOne) ClearRemark() *CompanyUpdateOne
ClearRemark clears the value of the "remark" field.
func (*CompanyUpdateOne) ClearStatus ¶
func (cuo *CompanyUpdateOne) ClearStatus() *CompanyUpdateOne
ClearStatus clears the value of the "status" field.
func (*CompanyUpdateOne) Exec ¶
func (cuo *CompanyUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*CompanyUpdateOne) ExecContext ¶
func (c *CompanyUpdateOne) 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 (*CompanyUpdateOne) ExecX ¶
func (cuo *CompanyUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CompanyUpdateOne) Modify ¶
func (cuo *CompanyUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *CompanyUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*CompanyUpdateOne) Mutation ¶
func (cuo *CompanyUpdateOne) Mutation() *CompanyMutation
Mutation returns the CompanyMutation object of the builder.
func (*CompanyUpdateOne) QueryContext ¶
func (c *CompanyUpdateOne) 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 (*CompanyUpdateOne) RemoveDeviceIDs ¶
func (cuo *CompanyUpdateOne) RemoveDeviceIDs(ids ...uuid.UUID) *CompanyUpdateOne
RemoveDeviceIDs removes the "devices" edge to Device entities by IDs.
func (*CompanyUpdateOne) RemoveDevices ¶
func (cuo *CompanyUpdateOne) RemoveDevices(d ...*Device) *CompanyUpdateOne
RemoveDevices removes "devices" edges to Device entities.
func (*CompanyUpdateOne) RemoveMemberIDs ¶
func (cuo *CompanyUpdateOne) RemoveMemberIDs(ids ...uuid.UUID) *CompanyUpdateOne
RemoveMemberIDs removes the "members" edge to Member entities by IDs.
func (*CompanyUpdateOne) RemoveMembers ¶
func (cuo *CompanyUpdateOne) RemoveMembers(m ...*Member) *CompanyUpdateOne
RemoveMembers removes "members" edges to Member entities.
func (*CompanyUpdateOne) Save ¶
func (cuo *CompanyUpdateOne) Save(ctx context.Context) (*Company, error)
Save executes the query and returns the updated Company entity.
func (*CompanyUpdateOne) SaveX ¶
func (cuo *CompanyUpdateOne) SaveX(ctx context.Context) *Company
SaveX is like Save, but panics if an error occurs.
func (*CompanyUpdateOne) Select ¶
func (cuo *CompanyUpdateOne) Select(field string, fields ...string) *CompanyUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*CompanyUpdateOne) SetAddress ¶
func (cuo *CompanyUpdateOne) SetAddress(s string) *CompanyUpdateOne
SetAddress sets the "address" field.
func (*CompanyUpdateOne) SetCode ¶
func (cuo *CompanyUpdateOne) SetCode(i int32) *CompanyUpdateOne
SetCode sets the "code" field.
func (*CompanyUpdateOne) SetNickname ¶
func (cuo *CompanyUpdateOne) SetNickname(s string) *CompanyUpdateOne
SetNickname sets the "nickname" field.
func (*CompanyUpdateOne) SetNillableAddress ¶
func (cuo *CompanyUpdateOne) SetNillableAddress(s *string) *CompanyUpdateOne
SetNillableAddress sets the "address" field if the given value is not nil.
func (*CompanyUpdateOne) SetNillableCode ¶
func (cuo *CompanyUpdateOne) SetNillableCode(i *int32) *CompanyUpdateOne
SetNillableCode sets the "code" field if the given value is not nil.
func (*CompanyUpdateOne) SetNillableNickname ¶
func (cuo *CompanyUpdateOne) SetNillableNickname(s *string) *CompanyUpdateOne
SetNillableNickname sets the "nickname" field if the given value is not nil.
func (*CompanyUpdateOne) SetNillableRemark ¶
func (cuo *CompanyUpdateOne) SetNillableRemark(s *string) *CompanyUpdateOne
SetNillableRemark sets the "remark" field if the given value is not nil.
func (*CompanyUpdateOne) SetNillableSort ¶
func (cuo *CompanyUpdateOne) SetNillableSort(u *uint32) *CompanyUpdateOne
SetNillableSort sets the "sort" field if the given value is not nil.
func (*CompanyUpdateOne) SetNillableStatus ¶
func (cuo *CompanyUpdateOne) SetNillableStatus(u *uint8) *CompanyUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*CompanyUpdateOne) SetNotNilAddress ¶
func (c *CompanyUpdateOne) SetNotNilAddress(value *string) *CompanyUpdateOne
set field if value's pointer is not nil.
func (*CompanyUpdateOne) SetNotNilCode ¶
func (c *CompanyUpdateOne) SetNotNilCode(value *int32) *CompanyUpdateOne
set field if value's pointer is not nil.
func (*CompanyUpdateOne) SetNotNilNickname ¶
func (c *CompanyUpdateOne) SetNotNilNickname(value *string) *CompanyUpdateOne
set field if value's pointer is not nil.
func (*CompanyUpdateOne) SetNotNilRemark ¶
func (c *CompanyUpdateOne) SetNotNilRemark(value *string) *CompanyUpdateOne
set field if value's pointer is not nil.
func (*CompanyUpdateOne) SetNotNilSort ¶
func (c *CompanyUpdateOne) SetNotNilSort(value *uint32) *CompanyUpdateOne
set field if value's pointer is not nil.
func (*CompanyUpdateOne) SetNotNilStatus ¶
func (c *CompanyUpdateOne) SetNotNilStatus(value *uint8) *CompanyUpdateOne
set field if value's pointer is not nil.
func (*CompanyUpdateOne) SetNotNilUpdatedAt ¶
func (c *CompanyUpdateOne) SetNotNilUpdatedAt(value *time.Time) *CompanyUpdateOne
set field if value's pointer is not nil.
func (*CompanyUpdateOne) SetRemark ¶
func (cuo *CompanyUpdateOne) SetRemark(s string) *CompanyUpdateOne
SetRemark sets the "remark" field.
func (*CompanyUpdateOne) SetSort ¶
func (cuo *CompanyUpdateOne) SetSort(u uint32) *CompanyUpdateOne
SetSort sets the "sort" field.
func (*CompanyUpdateOne) SetStatus ¶
func (cuo *CompanyUpdateOne) SetStatus(u uint8) *CompanyUpdateOne
SetStatus sets the "status" field.
func (*CompanyUpdateOne) SetUpdatedAt ¶
func (cuo *CompanyUpdateOne) SetUpdatedAt(t time.Time) *CompanyUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*CompanyUpdateOne) Where ¶
func (cuo *CompanyUpdateOne) Where(ps ...predicate.Company) *CompanyUpdateOne
Where appends a list predicates to the CompanyUpdate builder.
type CompanyUpsert ¶
CompanyUpsert is the "OnConflict" setter.
func (*CompanyUpsert) AddCode ¶
func (u *CompanyUpsert) AddCode(v int32) *CompanyUpsert
AddCode adds v to the "code" field.
func (*CompanyUpsert) AddSort ¶
func (u *CompanyUpsert) AddSort(v uint32) *CompanyUpsert
AddSort adds v to the "sort" field.
func (*CompanyUpsert) AddStatus ¶
func (u *CompanyUpsert) AddStatus(v uint8) *CompanyUpsert
AddStatus adds v to the "status" field.
func (*CompanyUpsert) ClearAddress ¶
func (u *CompanyUpsert) ClearAddress() *CompanyUpsert
ClearAddress clears the value of the "address" field.
func (*CompanyUpsert) ClearRemark ¶
func (u *CompanyUpsert) ClearRemark() *CompanyUpsert
ClearRemark clears the value of the "remark" field.
func (*CompanyUpsert) ClearStatus ¶
func (u *CompanyUpsert) ClearStatus() *CompanyUpsert
ClearStatus clears the value of the "status" field.
func (*CompanyUpsert) SetAddress ¶
func (u *CompanyUpsert) SetAddress(v string) *CompanyUpsert
SetAddress sets the "address" field.
func (*CompanyUpsert) SetCode ¶
func (u *CompanyUpsert) SetCode(v int32) *CompanyUpsert
SetCode sets the "code" field.
func (*CompanyUpsert) SetNickname ¶
func (u *CompanyUpsert) SetNickname(v string) *CompanyUpsert
SetNickname sets the "nickname" field.
func (*CompanyUpsert) SetRemark ¶
func (u *CompanyUpsert) SetRemark(v string) *CompanyUpsert
SetRemark sets the "remark" field.
func (*CompanyUpsert) SetSort ¶
func (u *CompanyUpsert) SetSort(v uint32) *CompanyUpsert
SetSort sets the "sort" field.
func (*CompanyUpsert) SetStatus ¶
func (u *CompanyUpsert) SetStatus(v uint8) *CompanyUpsert
SetStatus sets the "status" field.
func (*CompanyUpsert) SetUpdatedAt ¶
func (u *CompanyUpsert) SetUpdatedAt(v time.Time) *CompanyUpsert
SetUpdatedAt sets the "updated_at" field.
func (*CompanyUpsert) UpdateAddress ¶
func (u *CompanyUpsert) UpdateAddress() *CompanyUpsert
UpdateAddress sets the "address" field to the value that was provided on create.
func (*CompanyUpsert) UpdateCode ¶
func (u *CompanyUpsert) UpdateCode() *CompanyUpsert
UpdateCode sets the "code" field to the value that was provided on create.
func (*CompanyUpsert) UpdateNickname ¶
func (u *CompanyUpsert) UpdateNickname() *CompanyUpsert
UpdateNickname sets the "nickname" field to the value that was provided on create.
func (*CompanyUpsert) UpdateRemark ¶
func (u *CompanyUpsert) UpdateRemark() *CompanyUpsert
UpdateRemark sets the "remark" field to the value that was provided on create.
func (*CompanyUpsert) UpdateSort ¶
func (u *CompanyUpsert) UpdateSort() *CompanyUpsert
UpdateSort sets the "sort" field to the value that was provided on create.
func (*CompanyUpsert) UpdateStatus ¶
func (u *CompanyUpsert) UpdateStatus() *CompanyUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*CompanyUpsert) UpdateUpdatedAt ¶
func (u *CompanyUpsert) UpdateUpdatedAt() *CompanyUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type CompanyUpsertBulk ¶
type CompanyUpsertBulk struct {
// contains filtered or unexported fields
}
CompanyUpsertBulk is the builder for "upsert"-ing a bulk of Company nodes.
func (*CompanyUpsertBulk) AddCode ¶
func (u *CompanyUpsertBulk) AddCode(v int32) *CompanyUpsertBulk
AddCode adds v to the "code" field.
func (*CompanyUpsertBulk) AddSort ¶
func (u *CompanyUpsertBulk) AddSort(v uint32) *CompanyUpsertBulk
AddSort adds v to the "sort" field.
func (*CompanyUpsertBulk) AddStatus ¶
func (u *CompanyUpsertBulk) AddStatus(v uint8) *CompanyUpsertBulk
AddStatus adds v to the "status" field.
func (*CompanyUpsertBulk) ClearAddress ¶
func (u *CompanyUpsertBulk) ClearAddress() *CompanyUpsertBulk
ClearAddress clears the value of the "address" field.
func (*CompanyUpsertBulk) ClearRemark ¶
func (u *CompanyUpsertBulk) ClearRemark() *CompanyUpsertBulk
ClearRemark clears the value of the "remark" field.
func (*CompanyUpsertBulk) ClearStatus ¶
func (u *CompanyUpsertBulk) ClearStatus() *CompanyUpsertBulk
ClearStatus clears the value of the "status" field.
func (*CompanyUpsertBulk) DoNothing ¶
func (u *CompanyUpsertBulk) DoNothing() *CompanyUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*CompanyUpsertBulk) Exec ¶
func (u *CompanyUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*CompanyUpsertBulk) ExecX ¶
func (u *CompanyUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CompanyUpsertBulk) Ignore ¶
func (u *CompanyUpsertBulk) Ignore() *CompanyUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Company.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*CompanyUpsertBulk) SetAddress ¶
func (u *CompanyUpsertBulk) SetAddress(v string) *CompanyUpsertBulk
SetAddress sets the "address" field.
func (*CompanyUpsertBulk) SetCode ¶
func (u *CompanyUpsertBulk) SetCode(v int32) *CompanyUpsertBulk
SetCode sets the "code" field.
func (*CompanyUpsertBulk) SetNickname ¶
func (u *CompanyUpsertBulk) SetNickname(v string) *CompanyUpsertBulk
SetNickname sets the "nickname" field.
func (*CompanyUpsertBulk) SetRemark ¶
func (u *CompanyUpsertBulk) SetRemark(v string) *CompanyUpsertBulk
SetRemark sets the "remark" field.
func (*CompanyUpsertBulk) SetSort ¶
func (u *CompanyUpsertBulk) SetSort(v uint32) *CompanyUpsertBulk
SetSort sets the "sort" field.
func (*CompanyUpsertBulk) SetStatus ¶
func (u *CompanyUpsertBulk) SetStatus(v uint8) *CompanyUpsertBulk
SetStatus sets the "status" field.
func (*CompanyUpsertBulk) SetUpdatedAt ¶
func (u *CompanyUpsertBulk) SetUpdatedAt(v time.Time) *CompanyUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*CompanyUpsertBulk) Update ¶
func (u *CompanyUpsertBulk) Update(set func(*CompanyUpsert)) *CompanyUpsertBulk
Update allows overriding fields `UPDATE` values. See the CompanyCreateBulk.OnConflict documentation for more info.
func (*CompanyUpsertBulk) UpdateAddress ¶
func (u *CompanyUpsertBulk) UpdateAddress() *CompanyUpsertBulk
UpdateAddress sets the "address" field to the value that was provided on create.
func (*CompanyUpsertBulk) UpdateCode ¶
func (u *CompanyUpsertBulk) UpdateCode() *CompanyUpsertBulk
UpdateCode sets the "code" field to the value that was provided on create.
func (*CompanyUpsertBulk) UpdateNewValues ¶
func (u *CompanyUpsertBulk) UpdateNewValues() *CompanyUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.Company.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(company.FieldID) }), ). Exec(ctx)
func (*CompanyUpsertBulk) UpdateNickname ¶
func (u *CompanyUpsertBulk) UpdateNickname() *CompanyUpsertBulk
UpdateNickname sets the "nickname" field to the value that was provided on create.
func (*CompanyUpsertBulk) UpdateRemark ¶
func (u *CompanyUpsertBulk) UpdateRemark() *CompanyUpsertBulk
UpdateRemark sets the "remark" field to the value that was provided on create.
func (*CompanyUpsertBulk) UpdateSort ¶
func (u *CompanyUpsertBulk) UpdateSort() *CompanyUpsertBulk
UpdateSort sets the "sort" field to the value that was provided on create.
func (*CompanyUpsertBulk) UpdateStatus ¶
func (u *CompanyUpsertBulk) UpdateStatus() *CompanyUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*CompanyUpsertBulk) UpdateUpdatedAt ¶
func (u *CompanyUpsertBulk) UpdateUpdatedAt() *CompanyUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type CompanyUpsertOne ¶
type CompanyUpsertOne struct {
// contains filtered or unexported fields
}
CompanyUpsertOne is the builder for "upsert"-ing
one Company node.
func (*CompanyUpsertOne) AddCode ¶
func (u *CompanyUpsertOne) AddCode(v int32) *CompanyUpsertOne
AddCode adds v to the "code" field.
func (*CompanyUpsertOne) AddSort ¶
func (u *CompanyUpsertOne) AddSort(v uint32) *CompanyUpsertOne
AddSort adds v to the "sort" field.
func (*CompanyUpsertOne) AddStatus ¶
func (u *CompanyUpsertOne) AddStatus(v uint8) *CompanyUpsertOne
AddStatus adds v to the "status" field.
func (*CompanyUpsertOne) ClearAddress ¶
func (u *CompanyUpsertOne) ClearAddress() *CompanyUpsertOne
ClearAddress clears the value of the "address" field.
func (*CompanyUpsertOne) ClearRemark ¶
func (u *CompanyUpsertOne) ClearRemark() *CompanyUpsertOne
ClearRemark clears the value of the "remark" field.
func (*CompanyUpsertOne) ClearStatus ¶
func (u *CompanyUpsertOne) ClearStatus() *CompanyUpsertOne
ClearStatus clears the value of the "status" field.
func (*CompanyUpsertOne) DoNothing ¶
func (u *CompanyUpsertOne) DoNothing() *CompanyUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*CompanyUpsertOne) Exec ¶
func (u *CompanyUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*CompanyUpsertOne) ExecX ¶
func (u *CompanyUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CompanyUpsertOne) ID ¶
func (u *CompanyUpsertOne) ID(ctx context.Context) (id uint64, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*CompanyUpsertOne) IDX ¶
func (u *CompanyUpsertOne) IDX(ctx context.Context) uint64
IDX is like ID, but panics if an error occurs.
func (*CompanyUpsertOne) Ignore ¶
func (u *CompanyUpsertOne) Ignore() *CompanyUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Company.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*CompanyUpsertOne) SetAddress ¶
func (u *CompanyUpsertOne) SetAddress(v string) *CompanyUpsertOne
SetAddress sets the "address" field.
func (*CompanyUpsertOne) SetCode ¶
func (u *CompanyUpsertOne) SetCode(v int32) *CompanyUpsertOne
SetCode sets the "code" field.
func (*CompanyUpsertOne) SetNickname ¶
func (u *CompanyUpsertOne) SetNickname(v string) *CompanyUpsertOne
SetNickname sets the "nickname" field.
func (*CompanyUpsertOne) SetRemark ¶
func (u *CompanyUpsertOne) SetRemark(v string) *CompanyUpsertOne
SetRemark sets the "remark" field.
func (*CompanyUpsertOne) SetSort ¶
func (u *CompanyUpsertOne) SetSort(v uint32) *CompanyUpsertOne
SetSort sets the "sort" field.
func (*CompanyUpsertOne) SetStatus ¶
func (u *CompanyUpsertOne) SetStatus(v uint8) *CompanyUpsertOne
SetStatus sets the "status" field.
func (*CompanyUpsertOne) SetUpdatedAt ¶
func (u *CompanyUpsertOne) SetUpdatedAt(v time.Time) *CompanyUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*CompanyUpsertOne) Update ¶
func (u *CompanyUpsertOne) Update(set func(*CompanyUpsert)) *CompanyUpsertOne
Update allows overriding fields `UPDATE` values. See the CompanyCreate.OnConflict documentation for more info.
func (*CompanyUpsertOne) UpdateAddress ¶
func (u *CompanyUpsertOne) UpdateAddress() *CompanyUpsertOne
UpdateAddress sets the "address" field to the value that was provided on create.
func (*CompanyUpsertOne) UpdateCode ¶
func (u *CompanyUpsertOne) UpdateCode() *CompanyUpsertOne
UpdateCode sets the "code" field to the value that was provided on create.
func (*CompanyUpsertOne) UpdateNewValues ¶
func (u *CompanyUpsertOne) UpdateNewValues() *CompanyUpsertOne
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.Company.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(company.FieldID) }), ). Exec(ctx)
func (*CompanyUpsertOne) UpdateNickname ¶
func (u *CompanyUpsertOne) UpdateNickname() *CompanyUpsertOne
UpdateNickname sets the "nickname" field to the value that was provided on create.
func (*CompanyUpsertOne) UpdateRemark ¶
func (u *CompanyUpsertOne) UpdateRemark() *CompanyUpsertOne
UpdateRemark sets the "remark" field to the value that was provided on create.
func (*CompanyUpsertOne) UpdateSort ¶
func (u *CompanyUpsertOne) UpdateSort() *CompanyUpsertOne
UpdateSort sets the "sort" field to the value that was provided on create.
func (*CompanyUpsertOne) UpdateStatus ¶
func (u *CompanyUpsertOne) UpdateStatus() *CompanyUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*CompanyUpsertOne) UpdateUpdatedAt ¶
func (u *CompanyUpsertOne) UpdateUpdatedAt() *CompanyUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
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 Device ¶
type Device struct { // ID of the ent. // UUID ID uuid.UUID `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"` // Product Key | 产品Key ProductKey string `json:"productKey,omitempty"` // Iot Id | 设备ID IotID string `json:"iotID,omitempty"` // Device Name | 设备名称 DeviceName string `json:"deviceName,omitempty"` // Device Secret | 设备密钥 DeviceSecret string `json:"deviceSecret,omitempty"` // Device Status | 设备状态 DeviceStatus string `json:"deviceStatus,omitempty"` // Nickname | 备注名称 Nickname string `json:"nickname,omitempty"` // GMT Create | GMT创建时间 GmtCreate string `json:"gmtCreate,omitempty"` // GMT Modified | GMT更新时间 GmtModified string `json:"gmtModified,omitempty"` // UTC Create | UTC创建时间 UtcCreate string `json:"utcCreate,omitempty"` // UTC Modified | UTC更新时间 UtcModified string `json:"utcModified,omitempty"` // Status Code | 操作状态码 OperationalStatusCode string `json:"operationalStatusCode,omitempty"` // Firmware Version | 固件版本号 FirmwareVersion string `json:"firmwareVersion,omitempty"` // GMT Active | GMT激活时间 GmtActive string `json:"gmtActive,omitempty"` // GMT Online | GMT最近一次上线的时间 GmtOnline string `json:"gmtOnline,omitempty"` // Ip Address | IP地址 IPAddress string `json:"IPAddress,omitempty"` // Node Type | 节点类型 NodeType int32 `json:"nodeType,omitempty"` // Owner | API调用者是否是该设备的拥有者 Owner bool `json:"owner,omitempty"` // Product Name | 产品名称 ProductName string `json:"productName,omitempty"` // Region | 所在地区 Region string `json:"region,omitempty"` // UTC Active | UTC激活时间 UtcActive string `json:"utcActive,omitempty"` // UTC Online | UTC最近一次上线的时间 UtcOnline string `json:"utcOnline,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the DeviceQuery when eager-loading is set. Edges DeviceEdges `json:"edges"` // contains filtered or unexported fields }
Device is the model entity for the Device schema.
func (*Device) 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 (*Device) QueryCompanies ¶
func (d *Device) QueryCompanies() *CompanyQuery
QueryCompanies queries the "companies" edge of the Device entity.
func (*Device) QueryContext ¶
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*Device) QueryMembers ¶
func (d *Device) QueryMembers() *MemberQuery
QueryMembers queries the "members" edge of the Device entity.
func (*Device) QueryProduct ¶
func (d *Device) QueryProduct() *ProductQuery
QueryProduct queries the "product" edge of the Device entity.
func (*Device) QueryProp ¶
func (d *Device) QueryProp() *DevicePropQuery
QueryProp queries the "prop" edge of the Device entity.
func (*Device) Unwrap ¶
Unwrap unwraps the Device 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 (*Device) Update ¶
func (d *Device) Update() *DeviceUpdateOne
Update returns a builder for updating this Device. Note that you need to call Device.Unwrap() before calling this method if this Device was returned from a transaction, and the transaction was committed or rolled back.
type DeviceClient ¶
type DeviceClient struct {
// contains filtered or unexported fields
}
DeviceClient is a client for the Device schema.
func NewDeviceClient ¶
func NewDeviceClient(c config) *DeviceClient
NewDeviceClient returns a client for the Device from the given config.
func (*DeviceClient) Create ¶
func (c *DeviceClient) Create() *DeviceCreate
Create returns a builder for creating a Device entity.
func (*DeviceClient) CreateBulk ¶
func (c *DeviceClient) CreateBulk(builders ...*DeviceCreate) *DeviceCreateBulk
CreateBulk returns a builder for creating a bulk of Device entities.
func (*DeviceClient) Delete ¶
func (c *DeviceClient) Delete() *DeviceDelete
Delete returns a delete builder for Device.
func (*DeviceClient) DeleteOne ¶
func (c *DeviceClient) DeleteOne(d *Device) *DeviceDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*DeviceClient) DeleteOneID ¶
func (c *DeviceClient) DeleteOneID(id uuid.UUID) *DeviceDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*DeviceClient) ExecContext ¶
func (c *DeviceClient) 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 (*DeviceClient) Intercept ¶
func (c *DeviceClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `device.Intercept(f(g(h())))`.
func (*DeviceClient) Interceptors ¶
func (c *DeviceClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*DeviceClient) MapCreateBulk ¶
func (c *DeviceClient) MapCreateBulk(slice any, setFunc func(*DeviceCreate, int)) *DeviceCreateBulk
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 (*DeviceClient) Query ¶
func (c *DeviceClient) Query() *DeviceQuery
Query returns a query builder for Device.
func (*DeviceClient) QueryCompanies ¶
func (c *DeviceClient) QueryCompanies(d *Device) *CompanyQuery
QueryCompanies queries the companies edge of a Device.
func (*DeviceClient) QueryContext ¶
func (c *DeviceClient) 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 (*DeviceClient) QueryMembers ¶
func (c *DeviceClient) QueryMembers(d *Device) *MemberQuery
QueryMembers queries the members edge of a Device.
func (*DeviceClient) QueryProduct ¶
func (c *DeviceClient) QueryProduct(d *Device) *ProductQuery
QueryProduct queries the product edge of a Device.
func (*DeviceClient) QueryProp ¶
func (c *DeviceClient) QueryProp(d *Device) *DevicePropQuery
QueryProp queries the prop edge of a Device.
func (*DeviceClient) Update ¶
func (c *DeviceClient) Update() *DeviceUpdate
Update returns an update builder for Device.
func (*DeviceClient) UpdateOne ¶
func (c *DeviceClient) UpdateOne(d *Device) *DeviceUpdateOne
UpdateOne returns an update builder for the given entity.
func (*DeviceClient) UpdateOneID ¶
func (c *DeviceClient) UpdateOneID(id uuid.UUID) *DeviceUpdateOne
UpdateOneID returns an update builder for the given id.
func (*DeviceClient) Use ¶
func (c *DeviceClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `device.Hooks(f(g(h())))`.
type DeviceCreate ¶
type DeviceCreate struct {
// contains filtered or unexported fields
}
DeviceCreate is the builder for creating a Device entity.
func (*DeviceCreate) AddCompanies ¶
func (dc *DeviceCreate) AddCompanies(c ...*Company) *DeviceCreate
AddCompanies adds the "companies" edges to the Company entity.
func (*DeviceCreate) AddCompanyIDs ¶
func (dc *DeviceCreate) AddCompanyIDs(ids ...uint64) *DeviceCreate
AddCompanyIDs adds the "companies" edge to the Company entity by IDs.
func (*DeviceCreate) AddMemberIDs ¶
func (dc *DeviceCreate) AddMemberIDs(ids ...uuid.UUID) *DeviceCreate
AddMemberIDs adds the "members" edge to the Member entity by IDs.
func (*DeviceCreate) AddMembers ¶
func (dc *DeviceCreate) AddMembers(m ...*Member) *DeviceCreate
AddMembers adds the "members" edges to the Member entity.
func (*DeviceCreate) Exec ¶
func (dc *DeviceCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceCreate) ExecContext ¶
func (c *DeviceCreate) 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 (*DeviceCreate) ExecX ¶
func (dc *DeviceCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceCreate) Mutation ¶
func (dc *DeviceCreate) Mutation() *DeviceMutation
Mutation returns the DeviceMutation object of the builder.
func (*DeviceCreate) OnConflict ¶
func (dc *DeviceCreate) OnConflict(opts ...sql.ConflictOption) *DeviceUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Device.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.DeviceUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*DeviceCreate) OnConflictColumns ¶
func (dc *DeviceCreate) OnConflictColumns(columns ...string) *DeviceUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Device.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*DeviceCreate) QueryContext ¶
func (c *DeviceCreate) 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 (*DeviceCreate) Save ¶
func (dc *DeviceCreate) Save(ctx context.Context) (*Device, error)
Save creates the Device in the database.
func (*DeviceCreate) SaveX ¶
func (dc *DeviceCreate) SaveX(ctx context.Context) *Device
SaveX calls Save and panics if Save returns an error.
func (*DeviceCreate) SetCreatedAt ¶
func (dc *DeviceCreate) SetCreatedAt(t time.Time) *DeviceCreate
SetCreatedAt sets the "created_at" field.
func (*DeviceCreate) SetDeviceName ¶
func (dc *DeviceCreate) SetDeviceName(s string) *DeviceCreate
SetDeviceName sets the "deviceName" field.
func (*DeviceCreate) SetDeviceSecret ¶
func (dc *DeviceCreate) SetDeviceSecret(s string) *DeviceCreate
SetDeviceSecret sets the "deviceSecret" field.
func (*DeviceCreate) SetDeviceStatus ¶
func (dc *DeviceCreate) SetDeviceStatus(s string) *DeviceCreate
SetDeviceStatus sets the "deviceStatus" field.
func (*DeviceCreate) SetFirmwareVersion ¶
func (dc *DeviceCreate) SetFirmwareVersion(s string) *DeviceCreate
SetFirmwareVersion sets the "firmwareVersion" field.
func (*DeviceCreate) SetGmtActive ¶
func (dc *DeviceCreate) SetGmtActive(s string) *DeviceCreate
SetGmtActive sets the "gmtActive" field.
func (*DeviceCreate) SetGmtCreate ¶
func (dc *DeviceCreate) SetGmtCreate(s string) *DeviceCreate
SetGmtCreate sets the "gmtCreate" field.
func (*DeviceCreate) SetGmtModified ¶
func (dc *DeviceCreate) SetGmtModified(s string) *DeviceCreate
SetGmtModified sets the "gmtModified" field.
func (*DeviceCreate) SetGmtOnline ¶
func (dc *DeviceCreate) SetGmtOnline(s string) *DeviceCreate
SetGmtOnline sets the "gmtOnline" field.
func (*DeviceCreate) SetID ¶
func (dc *DeviceCreate) SetID(u uuid.UUID) *DeviceCreate
SetID sets the "id" field.
func (*DeviceCreate) SetIPAddress ¶
func (dc *DeviceCreate) SetIPAddress(s string) *DeviceCreate
SetIPAddress sets the "IPAddress" field.
func (*DeviceCreate) SetIotID ¶
func (dc *DeviceCreate) SetIotID(s string) *DeviceCreate
SetIotID sets the "iotID" field.
func (*DeviceCreate) SetNickname ¶
func (dc *DeviceCreate) SetNickname(s string) *DeviceCreate
SetNickname sets the "nickname" field.
func (*DeviceCreate) SetNillableCreatedAt ¶
func (dc *DeviceCreate) SetNillableCreatedAt(t *time.Time) *DeviceCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*DeviceCreate) SetNillableDeviceSecret ¶
func (dc *DeviceCreate) SetNillableDeviceSecret(s *string) *DeviceCreate
SetNillableDeviceSecret sets the "deviceSecret" field if the given value is not nil.
func (*DeviceCreate) SetNillableDeviceStatus ¶
func (dc *DeviceCreate) SetNillableDeviceStatus(s *string) *DeviceCreate
SetNillableDeviceStatus sets the "deviceStatus" field if the given value is not nil.
func (*DeviceCreate) SetNillableFirmwareVersion ¶
func (dc *DeviceCreate) SetNillableFirmwareVersion(s *string) *DeviceCreate
SetNillableFirmwareVersion sets the "firmwareVersion" field if the given value is not nil.
func (*DeviceCreate) SetNillableGmtActive ¶
func (dc *DeviceCreate) SetNillableGmtActive(s *string) *DeviceCreate
SetNillableGmtActive sets the "gmtActive" field if the given value is not nil.
func (*DeviceCreate) SetNillableGmtCreate ¶
func (dc *DeviceCreate) SetNillableGmtCreate(s *string) *DeviceCreate
SetNillableGmtCreate sets the "gmtCreate" field if the given value is not nil.
func (*DeviceCreate) SetNillableGmtModified ¶
func (dc *DeviceCreate) SetNillableGmtModified(s *string) *DeviceCreate
SetNillableGmtModified sets the "gmtModified" field if the given value is not nil.
func (*DeviceCreate) SetNillableGmtOnline ¶
func (dc *DeviceCreate) SetNillableGmtOnline(s *string) *DeviceCreate
SetNillableGmtOnline sets the "gmtOnline" field if the given value is not nil.
func (*DeviceCreate) SetNillableID ¶
func (dc *DeviceCreate) SetNillableID(u *uuid.UUID) *DeviceCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*DeviceCreate) SetNillableIPAddress ¶
func (dc *DeviceCreate) SetNillableIPAddress(s *string) *DeviceCreate
SetNillableIPAddress sets the "IPAddress" field if the given value is not nil.
func (*DeviceCreate) SetNillableNickname ¶
func (dc *DeviceCreate) SetNillableNickname(s *string) *DeviceCreate
SetNillableNickname sets the "nickname" field if the given value is not nil.
func (*DeviceCreate) SetNillableNodeType ¶
func (dc *DeviceCreate) SetNillableNodeType(i *int32) *DeviceCreate
SetNillableNodeType sets the "nodeType" field if the given value is not nil.
func (*DeviceCreate) SetNillableOperationalStatusCode ¶
func (dc *DeviceCreate) SetNillableOperationalStatusCode(s *string) *DeviceCreate
SetNillableOperationalStatusCode sets the "operationalStatusCode" field if the given value is not nil.
func (*DeviceCreate) SetNillableOwner ¶
func (dc *DeviceCreate) SetNillableOwner(b *bool) *DeviceCreate
SetNillableOwner sets the "owner" field if the given value is not nil.
func (*DeviceCreate) SetNillableProductID ¶
func (dc *DeviceCreate) SetNillableProductID(id *uuid.UUID) *DeviceCreate
SetNillableProductID sets the "product" edge to the Product entity by ID if the given value is not nil.
func (*DeviceCreate) SetNillableProductName ¶
func (dc *DeviceCreate) SetNillableProductName(s *string) *DeviceCreate
SetNillableProductName sets the "productName" field if the given value is not nil.
func (*DeviceCreate) SetNillablePropID ¶
func (dc *DeviceCreate) SetNillablePropID(id *uint64) *DeviceCreate
SetNillablePropID sets the "prop" edge to the DeviceProp entity by ID if the given value is not nil.
func (*DeviceCreate) SetNillableRegion ¶
func (dc *DeviceCreate) SetNillableRegion(s *string) *DeviceCreate
SetNillableRegion sets the "region" field if the given value is not nil.
func (*DeviceCreate) SetNillableSort ¶
func (dc *DeviceCreate) SetNillableSort(u *uint32) *DeviceCreate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DeviceCreate) SetNillableStatus ¶
func (dc *DeviceCreate) SetNillableStatus(u *uint8) *DeviceCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DeviceCreate) SetNillableUpdatedAt ¶
func (dc *DeviceCreate) SetNillableUpdatedAt(t *time.Time) *DeviceCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*DeviceCreate) SetNillableUtcActive ¶
func (dc *DeviceCreate) SetNillableUtcActive(s *string) *DeviceCreate
SetNillableUtcActive sets the "utcActive" field if the given value is not nil.
func (*DeviceCreate) SetNillableUtcCreate ¶
func (dc *DeviceCreate) SetNillableUtcCreate(s *string) *DeviceCreate
SetNillableUtcCreate sets the "utcCreate" field if the given value is not nil.
func (*DeviceCreate) SetNillableUtcModified ¶
func (dc *DeviceCreate) SetNillableUtcModified(s *string) *DeviceCreate
SetNillableUtcModified sets the "utcModified" field if the given value is not nil.
func (*DeviceCreate) SetNillableUtcOnline ¶
func (dc *DeviceCreate) SetNillableUtcOnline(s *string) *DeviceCreate
SetNillableUtcOnline sets the "utcOnline" field if the given value is not nil.
func (*DeviceCreate) SetNodeType ¶
func (dc *DeviceCreate) SetNodeType(i int32) *DeviceCreate
SetNodeType sets the "nodeType" field.
func (*DeviceCreate) SetNotNilDeviceName ¶
func (d *DeviceCreate) SetNotNilDeviceName(value *string) *DeviceCreate
set field if value's pointer is not nil.
func (*DeviceCreate) SetNotNilDeviceSecret ¶
func (d *DeviceCreate) SetNotNilDeviceSecret(value *string) *DeviceCreate
set field if value's pointer is not nil.
func (*DeviceCreate) SetNotNilDeviceStatus ¶
func (d *DeviceCreate) SetNotNilDeviceStatus(value *string) *DeviceCreate
set field if value's pointer is not nil.
func (*DeviceCreate) SetNotNilFirmwareVersion ¶
func (d *DeviceCreate) SetNotNilFirmwareVersion(value *string) *DeviceCreate
set field if value's pointer is not nil.
func (*DeviceCreate) SetNotNilGmtActive ¶
func (d *DeviceCreate) SetNotNilGmtActive(value *string) *DeviceCreate
set field if value's pointer is not nil.
func (*DeviceCreate) SetNotNilGmtCreate ¶
func (d *DeviceCreate) SetNotNilGmtCreate(value *string) *DeviceCreate
set field if value's pointer is not nil.
func (*DeviceCreate) SetNotNilGmtModified ¶
func (d *DeviceCreate) SetNotNilGmtModified(value *string) *DeviceCreate
set field if value's pointer is not nil.
func (*DeviceCreate) SetNotNilGmtOnline ¶
func (d *DeviceCreate) SetNotNilGmtOnline(value *string) *DeviceCreate
set field if value's pointer is not nil.
func (*DeviceCreate) SetNotNilIPAddress ¶
func (d *DeviceCreate) SetNotNilIPAddress(value *string) *DeviceCreate
set field if value's pointer is not nil.
func (*DeviceCreate) SetNotNilIotID ¶
func (d *DeviceCreate) SetNotNilIotID(value *string) *DeviceCreate
set field if value's pointer is not nil.
func (*DeviceCreate) SetNotNilNickname ¶
func (d *DeviceCreate) SetNotNilNickname(value *string) *DeviceCreate
set field if value's pointer is not nil.
func (*DeviceCreate) SetNotNilNodeType ¶
func (d *DeviceCreate) SetNotNilNodeType(value *int32) *DeviceCreate
set field if value's pointer is not nil.
func (*DeviceCreate) SetNotNilOperationalStatusCode ¶
func (d *DeviceCreate) SetNotNilOperationalStatusCode(value *string) *DeviceCreate
set field if value's pointer is not nil.
func (*DeviceCreate) SetNotNilOwner ¶
func (d *DeviceCreate) SetNotNilOwner(value *bool) *DeviceCreate
set field if value's pointer is not nil.
func (*DeviceCreate) SetNotNilProductKey ¶
func (d *DeviceCreate) SetNotNilProductKey(value *string) *DeviceCreate
set field if value's pointer is not nil.
func (*DeviceCreate) SetNotNilProductName ¶
func (d *DeviceCreate) SetNotNilProductName(value *string) *DeviceCreate
set field if value's pointer is not nil.
func (*DeviceCreate) SetNotNilRegion ¶
func (d *DeviceCreate) SetNotNilRegion(value *string) *DeviceCreate
set field if value's pointer is not nil.
func (*DeviceCreate) SetNotNilSort ¶
func (d *DeviceCreate) SetNotNilSort(value *uint32) *DeviceCreate
set field if value's pointer is not nil.
func (*DeviceCreate) SetNotNilStatus ¶
func (d *DeviceCreate) SetNotNilStatus(value *uint8) *DeviceCreate
set field if value's pointer is not nil.
func (*DeviceCreate) SetNotNilUpdatedAt ¶
func (d *DeviceCreate) SetNotNilUpdatedAt(value *time.Time) *DeviceCreate
set field if value's pointer is not nil.
func (*DeviceCreate) SetNotNilUtcActive ¶
func (d *DeviceCreate) SetNotNilUtcActive(value *string) *DeviceCreate
set field if value's pointer is not nil.
func (*DeviceCreate) SetNotNilUtcCreate ¶
func (d *DeviceCreate) SetNotNilUtcCreate(value *string) *DeviceCreate
set field if value's pointer is not nil.
func (*DeviceCreate) SetNotNilUtcModified ¶
func (d *DeviceCreate) SetNotNilUtcModified(value *string) *DeviceCreate
set field if value's pointer is not nil.
func (*DeviceCreate) SetNotNilUtcOnline ¶
func (d *DeviceCreate) SetNotNilUtcOnline(value *string) *DeviceCreate
set field if value's pointer is not nil.
func (*DeviceCreate) SetOperationalStatusCode ¶
func (dc *DeviceCreate) SetOperationalStatusCode(s string) *DeviceCreate
SetOperationalStatusCode sets the "operationalStatusCode" field.
func (*DeviceCreate) SetOwner ¶
func (dc *DeviceCreate) SetOwner(b bool) *DeviceCreate
SetOwner sets the "owner" field.
func (*DeviceCreate) SetProduct ¶
func (dc *DeviceCreate) SetProduct(p *Product) *DeviceCreate
SetProduct sets the "product" edge to the Product entity.
func (*DeviceCreate) SetProductID ¶
func (dc *DeviceCreate) SetProductID(id uuid.UUID) *DeviceCreate
SetProductID sets the "product" edge to the Product entity by ID.
func (*DeviceCreate) SetProductKey ¶
func (dc *DeviceCreate) SetProductKey(s string) *DeviceCreate
SetProductKey sets the "productKey" field.
func (*DeviceCreate) SetProductName ¶
func (dc *DeviceCreate) SetProductName(s string) *DeviceCreate
SetProductName sets the "productName" field.
func (*DeviceCreate) SetProp ¶
func (dc *DeviceCreate) SetProp(d *DeviceProp) *DeviceCreate
SetProp sets the "prop" edge to the DeviceProp entity.
func (*DeviceCreate) SetPropID ¶
func (dc *DeviceCreate) SetPropID(id uint64) *DeviceCreate
SetPropID sets the "prop" edge to the DeviceProp entity by ID.
func (*DeviceCreate) SetRegion ¶
func (dc *DeviceCreate) SetRegion(s string) *DeviceCreate
SetRegion sets the "region" field.
func (*DeviceCreate) SetSort ¶
func (dc *DeviceCreate) SetSort(u uint32) *DeviceCreate
SetSort sets the "sort" field.
func (*DeviceCreate) SetStatus ¶
func (dc *DeviceCreate) SetStatus(u uint8) *DeviceCreate
SetStatus sets the "status" field.
func (*DeviceCreate) SetUpdatedAt ¶
func (dc *DeviceCreate) SetUpdatedAt(t time.Time) *DeviceCreate
SetUpdatedAt sets the "updated_at" field.
func (*DeviceCreate) SetUtcActive ¶
func (dc *DeviceCreate) SetUtcActive(s string) *DeviceCreate
SetUtcActive sets the "utcActive" field.
func (*DeviceCreate) SetUtcCreate ¶
func (dc *DeviceCreate) SetUtcCreate(s string) *DeviceCreate
SetUtcCreate sets the "utcCreate" field.
func (*DeviceCreate) SetUtcModified ¶
func (dc *DeviceCreate) SetUtcModified(s string) *DeviceCreate
SetUtcModified sets the "utcModified" field.
func (*DeviceCreate) SetUtcOnline ¶
func (dc *DeviceCreate) SetUtcOnline(s string) *DeviceCreate
SetUtcOnline sets the "utcOnline" field.
type DeviceCreateBulk ¶
type DeviceCreateBulk struct {
// contains filtered or unexported fields
}
DeviceCreateBulk is the builder for creating many Device entities in bulk.
func (*DeviceCreateBulk) Exec ¶
func (dcb *DeviceCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceCreateBulk) ExecContext ¶
func (c *DeviceCreateBulk) 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 (*DeviceCreateBulk) ExecX ¶
func (dcb *DeviceCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceCreateBulk) OnConflict ¶
func (dcb *DeviceCreateBulk) OnConflict(opts ...sql.ConflictOption) *DeviceUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Device.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.DeviceUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*DeviceCreateBulk) OnConflictColumns ¶
func (dcb *DeviceCreateBulk) OnConflictColumns(columns ...string) *DeviceUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Device.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*DeviceCreateBulk) QueryContext ¶
func (c *DeviceCreateBulk) 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 DeviceDelete ¶
type DeviceDelete struct {
// contains filtered or unexported fields
}
DeviceDelete is the builder for deleting a Device entity.
func (*DeviceDelete) Exec ¶
func (dd *DeviceDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*DeviceDelete) ExecContext ¶
func (c *DeviceDelete) 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 (*DeviceDelete) ExecX ¶
func (dd *DeviceDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*DeviceDelete) QueryContext ¶
func (c *DeviceDelete) 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 (*DeviceDelete) Where ¶
func (dd *DeviceDelete) Where(ps ...predicate.Device) *DeviceDelete
Where appends a list predicates to the DeviceDelete builder.
type DeviceDeleteOne ¶
type DeviceDeleteOne struct {
// contains filtered or unexported fields
}
DeviceDeleteOne is the builder for deleting a single Device entity.
func (*DeviceDeleteOne) Exec ¶
func (ddo *DeviceDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*DeviceDeleteOne) ExecX ¶
func (ddo *DeviceDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceDeleteOne) Where ¶
func (ddo *DeviceDeleteOne) Where(ps ...predicate.Device) *DeviceDeleteOne
Where appends a list predicates to the DeviceDelete builder.
type DeviceEdges ¶
type DeviceEdges struct { // Product holds the value of the product edge. Product *Product `json:"product,omitempty"` // Prop holds the value of the prop edge. Prop *DeviceProp `json:"prop,omitempty"` // Companies holds the value of the companies edge. Companies []*Company `json:"companies,omitempty"` // Members holds the value of the members edge. Members []*Member `json:"members,omitempty"` // contains filtered or unexported fields }
DeviceEdges holds the relations/edges for other nodes in the graph.
func (DeviceEdges) CompaniesOrErr ¶
func (e DeviceEdges) CompaniesOrErr() ([]*Company, error)
CompaniesOrErr returns the Companies value or an error if the edge was not loaded in eager-loading.
func (DeviceEdges) MembersOrErr ¶
func (e DeviceEdges) MembersOrErr() ([]*Member, error)
MembersOrErr returns the Members value or an error if the edge was not loaded in eager-loading.
func (DeviceEdges) ProductOrErr ¶
func (e DeviceEdges) ProductOrErr() (*Product, error)
ProductOrErr returns the Product value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (DeviceEdges) PropOrErr ¶
func (e DeviceEdges) PropOrErr() (*DeviceProp, error)
PropOrErr returns the Prop value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type DeviceGroupBy ¶
type DeviceGroupBy struct {
// contains filtered or unexported fields
}
DeviceGroupBy is the group-by builder for Device entities.
func (*DeviceGroupBy) Aggregate ¶
func (dgb *DeviceGroupBy) Aggregate(fns ...AggregateFunc) *DeviceGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*DeviceGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DeviceGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*DeviceGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DeviceGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DeviceGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DeviceGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*DeviceGroupBy) Scan ¶
func (dgb *DeviceGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*DeviceGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type DeviceMutation ¶
type DeviceMutation struct {
// contains filtered or unexported fields
}
DeviceMutation represents an operation that mutates the Device nodes in the graph.
func (*DeviceMutation) AddCompanyIDs ¶
func (m *DeviceMutation) AddCompanyIDs(ids ...uint64)
AddCompanyIDs adds the "companies" edge to the Company entity by ids.
func (*DeviceMutation) AddField ¶
func (m *DeviceMutation) 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 (*DeviceMutation) AddMemberIDs ¶
func (m *DeviceMutation) AddMemberIDs(ids ...uuid.UUID)
AddMemberIDs adds the "members" edge to the Member entity by ids.
func (*DeviceMutation) AddNodeType ¶
func (m *DeviceMutation) AddNodeType(i int32)
AddNodeType adds i to the "nodeType" field.
func (*DeviceMutation) AddSort ¶
func (m *DeviceMutation) AddSort(u int32)
AddSort adds u to the "sort" field.
func (*DeviceMutation) AddStatus ¶
func (m *DeviceMutation) AddStatus(u int8)
AddStatus adds u to the "status" field.
func (*DeviceMutation) AddedEdges ¶
func (m *DeviceMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*DeviceMutation) AddedField ¶
func (m *DeviceMutation) 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 (*DeviceMutation) AddedFields ¶
func (m *DeviceMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*DeviceMutation) AddedIDs ¶
func (m *DeviceMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*DeviceMutation) AddedNodeType ¶
func (m *DeviceMutation) AddedNodeType() (r int32, exists bool)
AddedNodeType returns the value that was added to the "nodeType" field in this mutation.
func (*DeviceMutation) AddedSort ¶
func (m *DeviceMutation) AddedSort() (r int32, exists bool)
AddedSort returns the value that was added to the "sort" field in this mutation.
func (*DeviceMutation) AddedStatus ¶
func (m *DeviceMutation) AddedStatus() (r int8, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*DeviceMutation) ClearCompanies ¶
func (m *DeviceMutation) ClearCompanies()
ClearCompanies clears the "companies" edge to the Company entity.
func (*DeviceMutation) ClearDeviceSecret ¶
func (m *DeviceMutation) ClearDeviceSecret()
ClearDeviceSecret clears the value of the "deviceSecret" field.
func (*DeviceMutation) ClearDeviceStatus ¶
func (m *DeviceMutation) ClearDeviceStatus()
ClearDeviceStatus clears the value of the "deviceStatus" field.
func (*DeviceMutation) ClearEdge ¶
func (m *DeviceMutation) 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 (*DeviceMutation) ClearField ¶
func (m *DeviceMutation) 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 (*DeviceMutation) ClearFirmwareVersion ¶
func (m *DeviceMutation) ClearFirmwareVersion()
ClearFirmwareVersion clears the value of the "firmwareVersion" field.
func (*DeviceMutation) ClearGmtActive ¶
func (m *DeviceMutation) ClearGmtActive()
ClearGmtActive clears the value of the "gmtActive" field.
func (*DeviceMutation) ClearGmtCreate ¶
func (m *DeviceMutation) ClearGmtCreate()
ClearGmtCreate clears the value of the "gmtCreate" field.
func (*DeviceMutation) ClearGmtModified ¶
func (m *DeviceMutation) ClearGmtModified()
ClearGmtModified clears the value of the "gmtModified" field.
func (*DeviceMutation) ClearGmtOnline ¶
func (m *DeviceMutation) ClearGmtOnline()
ClearGmtOnline clears the value of the "gmtOnline" field.
func (*DeviceMutation) ClearIPAddress ¶
func (m *DeviceMutation) ClearIPAddress()
ClearIPAddress clears the value of the "IPAddress" field.
func (*DeviceMutation) ClearMembers ¶
func (m *DeviceMutation) ClearMembers()
ClearMembers clears the "members" edge to the Member entity.
func (*DeviceMutation) ClearNickname ¶
func (m *DeviceMutation) ClearNickname()
ClearNickname clears the value of the "nickname" field.
func (*DeviceMutation) ClearOperationalStatusCode ¶
func (m *DeviceMutation) ClearOperationalStatusCode()
ClearOperationalStatusCode clears the value of the "operationalStatusCode" field.
func (*DeviceMutation) ClearOwner ¶
func (m *DeviceMutation) ClearOwner()
ClearOwner clears the value of the "owner" field.
func (*DeviceMutation) ClearProduct ¶
func (m *DeviceMutation) ClearProduct()
ClearProduct clears the "product" edge to the Product entity.
func (*DeviceMutation) ClearProductName ¶
func (m *DeviceMutation) ClearProductName()
ClearProductName clears the value of the "productName" field.
func (*DeviceMutation) ClearProp ¶
func (m *DeviceMutation) ClearProp()
ClearProp clears the "prop" edge to the DeviceProp entity.
func (*DeviceMutation) ClearRegion ¶
func (m *DeviceMutation) ClearRegion()
ClearRegion clears the value of the "region" field.
func (*DeviceMutation) ClearStatus ¶
func (m *DeviceMutation) ClearStatus()
ClearStatus clears the value of the "status" field.
func (*DeviceMutation) ClearUtcActive ¶
func (m *DeviceMutation) ClearUtcActive()
ClearUtcActive clears the value of the "utcActive" field.
func (*DeviceMutation) ClearUtcCreate ¶
func (m *DeviceMutation) ClearUtcCreate()
ClearUtcCreate clears the value of the "utcCreate" field.
func (*DeviceMutation) ClearUtcModified ¶
func (m *DeviceMutation) ClearUtcModified()
ClearUtcModified clears the value of the "utcModified" field.
func (*DeviceMutation) ClearUtcOnline ¶
func (m *DeviceMutation) ClearUtcOnline()
ClearUtcOnline clears the value of the "utcOnline" field.
func (*DeviceMutation) ClearedEdges ¶
func (m *DeviceMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*DeviceMutation) ClearedFields ¶
func (m *DeviceMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (DeviceMutation) Client ¶
func (m DeviceMutation) 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 (*DeviceMutation) CompaniesCleared ¶
func (m *DeviceMutation) CompaniesCleared() bool
CompaniesCleared reports if the "companies" edge to the Company entity was cleared.
func (*DeviceMutation) CompaniesIDs ¶
func (m *DeviceMutation) CompaniesIDs() (ids []uint64)
CompaniesIDs returns the "companies" edge IDs in the mutation.
func (*DeviceMutation) CreatedAt ¶
func (m *DeviceMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*DeviceMutation) DeviceName ¶
func (m *DeviceMutation) DeviceName() (r string, exists bool)
DeviceName returns the value of the "deviceName" field in the mutation.
func (*DeviceMutation) DeviceSecret ¶
func (m *DeviceMutation) DeviceSecret() (r string, exists bool)
DeviceSecret returns the value of the "deviceSecret" field in the mutation.
func (*DeviceMutation) DeviceSecretCleared ¶
func (m *DeviceMutation) DeviceSecretCleared() bool
DeviceSecretCleared returns if the "deviceSecret" field was cleared in this mutation.
func (*DeviceMutation) DeviceStatus ¶
func (m *DeviceMutation) DeviceStatus() (r string, exists bool)
DeviceStatus returns the value of the "deviceStatus" field in the mutation.
func (*DeviceMutation) DeviceStatusCleared ¶
func (m *DeviceMutation) DeviceStatusCleared() bool
DeviceStatusCleared returns if the "deviceStatus" field was cleared in this mutation.
func (*DeviceMutation) EdgeCleared ¶
func (m *DeviceMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*DeviceMutation) ExecContext ¶
func (c *DeviceMutation) 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 (*DeviceMutation) Field ¶
func (m *DeviceMutation) 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 (*DeviceMutation) FieldCleared ¶
func (m *DeviceMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*DeviceMutation) Fields ¶
func (m *DeviceMutation) 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 (*DeviceMutation) FirmwareVersion ¶
func (m *DeviceMutation) FirmwareVersion() (r string, exists bool)
FirmwareVersion returns the value of the "firmwareVersion" field in the mutation.
func (*DeviceMutation) FirmwareVersionCleared ¶
func (m *DeviceMutation) FirmwareVersionCleared() bool
FirmwareVersionCleared returns if the "firmwareVersion" field was cleared in this mutation.
func (*DeviceMutation) GmtActive ¶
func (m *DeviceMutation) GmtActive() (r string, exists bool)
GmtActive returns the value of the "gmtActive" field in the mutation.
func (*DeviceMutation) GmtActiveCleared ¶
func (m *DeviceMutation) GmtActiveCleared() bool
GmtActiveCleared returns if the "gmtActive" field was cleared in this mutation.
func (*DeviceMutation) GmtCreate ¶
func (m *DeviceMutation) GmtCreate() (r string, exists bool)
GmtCreate returns the value of the "gmtCreate" field in the mutation.
func (*DeviceMutation) GmtCreateCleared ¶
func (m *DeviceMutation) GmtCreateCleared() bool
GmtCreateCleared returns if the "gmtCreate" field was cleared in this mutation.
func (*DeviceMutation) GmtModified ¶
func (m *DeviceMutation) GmtModified() (r string, exists bool)
GmtModified returns the value of the "gmtModified" field in the mutation.
func (*DeviceMutation) GmtModifiedCleared ¶
func (m *DeviceMutation) GmtModifiedCleared() bool
GmtModifiedCleared returns if the "gmtModified" field was cleared in this mutation.
func (*DeviceMutation) GmtOnline ¶
func (m *DeviceMutation) GmtOnline() (r string, exists bool)
GmtOnline returns the value of the "gmtOnline" field in the mutation.
func (*DeviceMutation) GmtOnlineCleared ¶
func (m *DeviceMutation) GmtOnlineCleared() bool
GmtOnlineCleared returns if the "gmtOnline" field was cleared in this mutation.
func (*DeviceMutation) ID ¶
func (m *DeviceMutation) ID() (id uuid.UUID, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*DeviceMutation) IDs ¶
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 (*DeviceMutation) IPAddress ¶
func (m *DeviceMutation) IPAddress() (r string, exists bool)
IPAddress returns the value of the "IPAddress" field in the mutation.
func (*DeviceMutation) IPAddressCleared ¶
func (m *DeviceMutation) IPAddressCleared() bool
IPAddressCleared returns if the "IPAddress" field was cleared in this mutation.
func (*DeviceMutation) IotID ¶
func (m *DeviceMutation) IotID() (r string, exists bool)
IotID returns the value of the "iotID" field in the mutation.
func (*DeviceMutation) MembersCleared ¶
func (m *DeviceMutation) MembersCleared() bool
MembersCleared reports if the "members" edge to the Member entity was cleared.
func (*DeviceMutation) MembersIDs ¶
func (m *DeviceMutation) MembersIDs() (ids []uuid.UUID)
MembersIDs returns the "members" edge IDs in the mutation.
func (*DeviceMutation) Nickname ¶
func (m *DeviceMutation) Nickname() (r string, exists bool)
Nickname returns the value of the "nickname" field in the mutation.
func (*DeviceMutation) NicknameCleared ¶
func (m *DeviceMutation) NicknameCleared() bool
NicknameCleared returns if the "nickname" field was cleared in this mutation.
func (*DeviceMutation) NodeType ¶
func (m *DeviceMutation) NodeType() (r int32, exists bool)
NodeType returns the value of the "nodeType" field in the mutation.
func (*DeviceMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Device entity. If the Device object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeviceMutation) OldDeviceName ¶
func (m *DeviceMutation) OldDeviceName(ctx context.Context) (v string, err error)
OldDeviceName returns the old "deviceName" field's value of the Device entity. If the Device object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeviceMutation) OldDeviceSecret ¶
func (m *DeviceMutation) OldDeviceSecret(ctx context.Context) (v string, err error)
OldDeviceSecret returns the old "deviceSecret" field's value of the Device entity. If the Device object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeviceMutation) OldDeviceStatus ¶
func (m *DeviceMutation) OldDeviceStatus(ctx context.Context) (v string, err error)
OldDeviceStatus returns the old "deviceStatus" field's value of the Device entity. If the Device object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeviceMutation) 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 (*DeviceMutation) OldFirmwareVersion ¶
func (m *DeviceMutation) OldFirmwareVersion(ctx context.Context) (v string, err error)
OldFirmwareVersion returns the old "firmwareVersion" field's value of the Device entity. If the Device object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeviceMutation) OldGmtActive ¶
func (m *DeviceMutation) OldGmtActive(ctx context.Context) (v string, err error)
OldGmtActive returns the old "gmtActive" field's value of the Device entity. If the Device object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeviceMutation) OldGmtCreate ¶
func (m *DeviceMutation) OldGmtCreate(ctx context.Context) (v string, err error)
OldGmtCreate returns the old "gmtCreate" field's value of the Device entity. If the Device object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeviceMutation) OldGmtModified ¶
func (m *DeviceMutation) OldGmtModified(ctx context.Context) (v string, err error)
OldGmtModified returns the old "gmtModified" field's value of the Device entity. If the Device object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeviceMutation) OldGmtOnline ¶
func (m *DeviceMutation) OldGmtOnline(ctx context.Context) (v string, err error)
OldGmtOnline returns the old "gmtOnline" field's value of the Device entity. If the Device object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeviceMutation) OldIPAddress ¶
func (m *DeviceMutation) OldIPAddress(ctx context.Context) (v string, err error)
OldIPAddress returns the old "IPAddress" field's value of the Device entity. If the Device object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeviceMutation) OldIotID ¶
func (m *DeviceMutation) OldIotID(ctx context.Context) (v string, err error)
OldIotID returns the old "iotID" field's value of the Device entity. If the Device object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeviceMutation) OldNickname ¶
func (m *DeviceMutation) OldNickname(ctx context.Context) (v string, err error)
OldNickname returns the old "nickname" field's value of the Device entity. If the Device object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeviceMutation) OldNodeType ¶
func (m *DeviceMutation) OldNodeType(ctx context.Context) (v int32, err error)
OldNodeType returns the old "nodeType" field's value of the Device entity. If the Device object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeviceMutation) OldOperationalStatusCode ¶
func (m *DeviceMutation) OldOperationalStatusCode(ctx context.Context) (v string, err error)
OldOperationalStatusCode returns the old "operationalStatusCode" field's value of the Device entity. If the Device object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeviceMutation) OldOwner ¶
func (m *DeviceMutation) OldOwner(ctx context.Context) (v bool, err error)
OldOwner returns the old "owner" field's value of the Device entity. If the Device object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeviceMutation) OldProductKey ¶
func (m *DeviceMutation) OldProductKey(ctx context.Context) (v string, err error)
OldProductKey returns the old "productKey" field's value of the Device entity. If the Device object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeviceMutation) OldProductName ¶
func (m *DeviceMutation) OldProductName(ctx context.Context) (v string, err error)
OldProductName returns the old "productName" field's value of the Device entity. If the Device object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeviceMutation) OldRegion ¶
func (m *DeviceMutation) OldRegion(ctx context.Context) (v string, err error)
OldRegion returns the old "region" field's value of the Device entity. If the Device object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeviceMutation) OldSort ¶
func (m *DeviceMutation) OldSort(ctx context.Context) (v uint32, err error)
OldSort returns the old "sort" field's value of the Device entity. If the Device object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeviceMutation) OldStatus ¶
func (m *DeviceMutation) OldStatus(ctx context.Context) (v uint8, err error)
OldStatus returns the old "status" field's value of the Device entity. If the Device object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeviceMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Device entity. If the Device object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeviceMutation) OldUtcActive ¶
func (m *DeviceMutation) OldUtcActive(ctx context.Context) (v string, err error)
OldUtcActive returns the old "utcActive" field's value of the Device entity. If the Device object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeviceMutation) OldUtcCreate ¶
func (m *DeviceMutation) OldUtcCreate(ctx context.Context) (v string, err error)
OldUtcCreate returns the old "utcCreate" field's value of the Device entity. If the Device object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeviceMutation) OldUtcModified ¶
func (m *DeviceMutation) OldUtcModified(ctx context.Context) (v string, err error)
OldUtcModified returns the old "utcModified" field's value of the Device entity. If the Device object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeviceMutation) OldUtcOnline ¶
func (m *DeviceMutation) OldUtcOnline(ctx context.Context) (v string, err error)
OldUtcOnline returns the old "utcOnline" field's value of the Device entity. If the Device object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DeviceMutation) OperationalStatusCode ¶
func (m *DeviceMutation) OperationalStatusCode() (r string, exists bool)
OperationalStatusCode returns the value of the "operationalStatusCode" field in the mutation.
func (*DeviceMutation) OperationalStatusCodeCleared ¶
func (m *DeviceMutation) OperationalStatusCodeCleared() bool
OperationalStatusCodeCleared returns if the "operationalStatusCode" field was cleared in this mutation.
func (*DeviceMutation) Owner ¶
func (m *DeviceMutation) Owner() (r bool, exists bool)
Owner returns the value of the "owner" field in the mutation.
func (*DeviceMutation) OwnerCleared ¶
func (m *DeviceMutation) OwnerCleared() bool
OwnerCleared returns if the "owner" field was cleared in this mutation.
func (*DeviceMutation) ProductCleared ¶
func (m *DeviceMutation) ProductCleared() bool
ProductCleared reports if the "product" edge to the Product entity was cleared.
func (*DeviceMutation) ProductID ¶
func (m *DeviceMutation) ProductID() (id uuid.UUID, exists bool)
ProductID returns the "product" edge ID in the mutation.
func (*DeviceMutation) ProductIDs ¶
func (m *DeviceMutation) ProductIDs() (ids []uuid.UUID)
ProductIDs returns the "product" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ProductID instead. It exists only for internal usage by the builders.
func (*DeviceMutation) ProductKey ¶
func (m *DeviceMutation) ProductKey() (r string, exists bool)
ProductKey returns the value of the "productKey" field in the mutation.
func (*DeviceMutation) ProductName ¶
func (m *DeviceMutation) ProductName() (r string, exists bool)
ProductName returns the value of the "productName" field in the mutation.
func (*DeviceMutation) ProductNameCleared ¶
func (m *DeviceMutation) ProductNameCleared() bool
ProductNameCleared returns if the "productName" field was cleared in this mutation.
func (*DeviceMutation) PropCleared ¶
func (m *DeviceMutation) PropCleared() bool
PropCleared reports if the "prop" edge to the DeviceProp entity was cleared.
func (*DeviceMutation) PropID ¶
func (m *DeviceMutation) PropID() (id uint64, exists bool)
PropID returns the "prop" edge ID in the mutation.
func (*DeviceMutation) PropIDs ¶
func (m *DeviceMutation) PropIDs() (ids []uint64)
PropIDs returns the "prop" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use PropID instead. It exists only for internal usage by the builders.
func (*DeviceMutation) QueryContext ¶
func (c *DeviceMutation) 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 (*DeviceMutation) Region ¶
func (m *DeviceMutation) Region() (r string, exists bool)
Region returns the value of the "region" field in the mutation.
func (*DeviceMutation) RegionCleared ¶
func (m *DeviceMutation) RegionCleared() bool
RegionCleared returns if the "region" field was cleared in this mutation.
func (*DeviceMutation) RemoveCompanyIDs ¶
func (m *DeviceMutation) RemoveCompanyIDs(ids ...uint64)
RemoveCompanyIDs removes the "companies" edge to the Company entity by IDs.
func (*DeviceMutation) RemoveMemberIDs ¶
func (m *DeviceMutation) RemoveMemberIDs(ids ...uuid.UUID)
RemoveMemberIDs removes the "members" edge to the Member entity by IDs.
func (*DeviceMutation) RemovedCompaniesIDs ¶
func (m *DeviceMutation) RemovedCompaniesIDs() (ids []uint64)
RemovedCompanies returns the removed IDs of the "companies" edge to the Company entity.
func (*DeviceMutation) RemovedEdges ¶
func (m *DeviceMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*DeviceMutation) RemovedIDs ¶
func (m *DeviceMutation) 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 (*DeviceMutation) RemovedMembersIDs ¶
func (m *DeviceMutation) RemovedMembersIDs() (ids []uuid.UUID)
RemovedMembers returns the removed IDs of the "members" edge to the Member entity.
func (*DeviceMutation) ResetCompanies ¶
func (m *DeviceMutation) ResetCompanies()
ResetCompanies resets all changes to the "companies" edge.
func (*DeviceMutation) ResetCreatedAt ¶
func (m *DeviceMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*DeviceMutation) ResetDeviceName ¶
func (m *DeviceMutation) ResetDeviceName()
ResetDeviceName resets all changes to the "deviceName" field.
func (*DeviceMutation) ResetDeviceSecret ¶
func (m *DeviceMutation) ResetDeviceSecret()
ResetDeviceSecret resets all changes to the "deviceSecret" field.
func (*DeviceMutation) ResetDeviceStatus ¶
func (m *DeviceMutation) ResetDeviceStatus()
ResetDeviceStatus resets all changes to the "deviceStatus" field.
func (*DeviceMutation) ResetEdge ¶
func (m *DeviceMutation) 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 (*DeviceMutation) ResetField ¶
func (m *DeviceMutation) 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 (*DeviceMutation) ResetFirmwareVersion ¶
func (m *DeviceMutation) ResetFirmwareVersion()
ResetFirmwareVersion resets all changes to the "firmwareVersion" field.
func (*DeviceMutation) ResetGmtActive ¶
func (m *DeviceMutation) ResetGmtActive()
ResetGmtActive resets all changes to the "gmtActive" field.
func (*DeviceMutation) ResetGmtCreate ¶
func (m *DeviceMutation) ResetGmtCreate()
ResetGmtCreate resets all changes to the "gmtCreate" field.
func (*DeviceMutation) ResetGmtModified ¶
func (m *DeviceMutation) ResetGmtModified()
ResetGmtModified resets all changes to the "gmtModified" field.
func (*DeviceMutation) ResetGmtOnline ¶
func (m *DeviceMutation) ResetGmtOnline()
ResetGmtOnline resets all changes to the "gmtOnline" field.
func (*DeviceMutation) ResetIPAddress ¶
func (m *DeviceMutation) ResetIPAddress()
ResetIPAddress resets all changes to the "IPAddress" field.
func (*DeviceMutation) ResetIotID ¶
func (m *DeviceMutation) ResetIotID()
ResetIotID resets all changes to the "iotID" field.
func (*DeviceMutation) ResetMembers ¶
func (m *DeviceMutation) ResetMembers()
ResetMembers resets all changes to the "members" edge.
func (*DeviceMutation) ResetNickname ¶
func (m *DeviceMutation) ResetNickname()
ResetNickname resets all changes to the "nickname" field.
func (*DeviceMutation) ResetNodeType ¶
func (m *DeviceMutation) ResetNodeType()
ResetNodeType resets all changes to the "nodeType" field.
func (*DeviceMutation) ResetOperationalStatusCode ¶
func (m *DeviceMutation) ResetOperationalStatusCode()
ResetOperationalStatusCode resets all changes to the "operationalStatusCode" field.
func (*DeviceMutation) ResetOwner ¶
func (m *DeviceMutation) ResetOwner()
ResetOwner resets all changes to the "owner" field.
func (*DeviceMutation) ResetProduct ¶
func (m *DeviceMutation) ResetProduct()
ResetProduct resets all changes to the "product" edge.
func (*DeviceMutation) ResetProductKey ¶
func (m *DeviceMutation) ResetProductKey()
ResetProductKey resets all changes to the "productKey" field.
func (*DeviceMutation) ResetProductName ¶
func (m *DeviceMutation) ResetProductName()
ResetProductName resets all changes to the "productName" field.
func (*DeviceMutation) ResetProp ¶
func (m *DeviceMutation) ResetProp()
ResetProp resets all changes to the "prop" edge.
func (*DeviceMutation) ResetRegion ¶
func (m *DeviceMutation) ResetRegion()
ResetRegion resets all changes to the "region" field.
func (*DeviceMutation) ResetSort ¶
func (m *DeviceMutation) ResetSort()
ResetSort resets all changes to the "sort" field.
func (*DeviceMutation) ResetStatus ¶
func (m *DeviceMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*DeviceMutation) ResetUpdatedAt ¶
func (m *DeviceMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*DeviceMutation) ResetUtcActive ¶
func (m *DeviceMutation) ResetUtcActive()
ResetUtcActive resets all changes to the "utcActive" field.
func (*DeviceMutation) ResetUtcCreate ¶
func (m *DeviceMutation) ResetUtcCreate()
ResetUtcCreate resets all changes to the "utcCreate" field.
func (*DeviceMutation) ResetUtcModified ¶
func (m *DeviceMutation) ResetUtcModified()
ResetUtcModified resets all changes to the "utcModified" field.
func (*DeviceMutation) ResetUtcOnline ¶
func (m *DeviceMutation) ResetUtcOnline()
ResetUtcOnline resets all changes to the "utcOnline" field.
func (*DeviceMutation) SetCreatedAt ¶
func (m *DeviceMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*DeviceMutation) SetDeviceName ¶
func (m *DeviceMutation) SetDeviceName(s string)
SetDeviceName sets the "deviceName" field.
func (*DeviceMutation) SetDeviceSecret ¶
func (m *DeviceMutation) SetDeviceSecret(s string)
SetDeviceSecret sets the "deviceSecret" field.
func (*DeviceMutation) SetDeviceStatus ¶
func (m *DeviceMutation) SetDeviceStatus(s string)
SetDeviceStatus sets the "deviceStatus" field.
func (*DeviceMutation) SetField ¶
func (m *DeviceMutation) 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 (*DeviceMutation) SetFirmwareVersion ¶
func (m *DeviceMutation) SetFirmwareVersion(s string)
SetFirmwareVersion sets the "firmwareVersion" field.
func (*DeviceMutation) SetGmtActive ¶
func (m *DeviceMutation) SetGmtActive(s string)
SetGmtActive sets the "gmtActive" field.
func (*DeviceMutation) SetGmtCreate ¶
func (m *DeviceMutation) SetGmtCreate(s string)
SetGmtCreate sets the "gmtCreate" field.
func (*DeviceMutation) SetGmtModified ¶
func (m *DeviceMutation) SetGmtModified(s string)
SetGmtModified sets the "gmtModified" field.
func (*DeviceMutation) SetGmtOnline ¶
func (m *DeviceMutation) SetGmtOnline(s string)
SetGmtOnline sets the "gmtOnline" field.
func (*DeviceMutation) SetID ¶
func (m *DeviceMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Device entities.
func (*DeviceMutation) SetIPAddress ¶
func (m *DeviceMutation) SetIPAddress(s string)
SetIPAddress sets the "IPAddress" field.
func (*DeviceMutation) SetIotID ¶
func (m *DeviceMutation) SetIotID(s string)
SetIotID sets the "iotID" field.
func (*DeviceMutation) SetNickname ¶
func (m *DeviceMutation) SetNickname(s string)
SetNickname sets the "nickname" field.
func (*DeviceMutation) SetNodeType ¶
func (m *DeviceMutation) SetNodeType(i int32)
SetNodeType sets the "nodeType" field.
func (*DeviceMutation) SetOp ¶
func (m *DeviceMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*DeviceMutation) SetOperationalStatusCode ¶
func (m *DeviceMutation) SetOperationalStatusCode(s string)
SetOperationalStatusCode sets the "operationalStatusCode" field.
func (*DeviceMutation) SetOwner ¶
func (m *DeviceMutation) SetOwner(b bool)
SetOwner sets the "owner" field.
func (*DeviceMutation) SetProductID ¶
func (m *DeviceMutation) SetProductID(id uuid.UUID)
SetProductID sets the "product" edge to the Product entity by id.
func (*DeviceMutation) SetProductKey ¶
func (m *DeviceMutation) SetProductKey(s string)
SetProductKey sets the "productKey" field.
func (*DeviceMutation) SetProductName ¶
func (m *DeviceMutation) SetProductName(s string)
SetProductName sets the "productName" field.
func (*DeviceMutation) SetPropID ¶
func (m *DeviceMutation) SetPropID(id uint64)
SetPropID sets the "prop" edge to the DeviceProp entity by id.
func (*DeviceMutation) SetRegion ¶
func (m *DeviceMutation) SetRegion(s string)
SetRegion sets the "region" field.
func (*DeviceMutation) SetSort ¶
func (m *DeviceMutation) SetSort(u uint32)
SetSort sets the "sort" field.
func (*DeviceMutation) SetStatus ¶
func (m *DeviceMutation) SetStatus(u uint8)
SetStatus sets the "status" field.
func (*DeviceMutation) SetUpdatedAt ¶
func (m *DeviceMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*DeviceMutation) SetUtcActive ¶
func (m *DeviceMutation) SetUtcActive(s string)
SetUtcActive sets the "utcActive" field.
func (*DeviceMutation) SetUtcCreate ¶
func (m *DeviceMutation) SetUtcCreate(s string)
SetUtcCreate sets the "utcCreate" field.
func (*DeviceMutation) SetUtcModified ¶
func (m *DeviceMutation) SetUtcModified(s string)
SetUtcModified sets the "utcModified" field.
func (*DeviceMutation) SetUtcOnline ¶
func (m *DeviceMutation) SetUtcOnline(s string)
SetUtcOnline sets the "utcOnline" field.
func (*DeviceMutation) Sort ¶
func (m *DeviceMutation) Sort() (r uint32, exists bool)
Sort returns the value of the "sort" field in the mutation.
func (*DeviceMutation) Status ¶
func (m *DeviceMutation) Status() (r uint8, exists bool)
Status returns the value of the "status" field in the mutation.
func (*DeviceMutation) StatusCleared ¶
func (m *DeviceMutation) StatusCleared() bool
StatusCleared returns if the "status" field was cleared in this mutation.
func (DeviceMutation) Tx ¶
func (m DeviceMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*DeviceMutation) Type ¶
func (m *DeviceMutation) Type() string
Type returns the node type of this mutation (Device).
func (*DeviceMutation) UpdatedAt ¶
func (m *DeviceMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*DeviceMutation) UtcActive ¶
func (m *DeviceMutation) UtcActive() (r string, exists bool)
UtcActive returns the value of the "utcActive" field in the mutation.
func (*DeviceMutation) UtcActiveCleared ¶
func (m *DeviceMutation) UtcActiveCleared() bool
UtcActiveCleared returns if the "utcActive" field was cleared in this mutation.
func (*DeviceMutation) UtcCreate ¶
func (m *DeviceMutation) UtcCreate() (r string, exists bool)
UtcCreate returns the value of the "utcCreate" field in the mutation.
func (*DeviceMutation) UtcCreateCleared ¶
func (m *DeviceMutation) UtcCreateCleared() bool
UtcCreateCleared returns if the "utcCreate" field was cleared in this mutation.
func (*DeviceMutation) UtcModified ¶
func (m *DeviceMutation) UtcModified() (r string, exists bool)
UtcModified returns the value of the "utcModified" field in the mutation.
func (*DeviceMutation) UtcModifiedCleared ¶
func (m *DeviceMutation) UtcModifiedCleared() bool
UtcModifiedCleared returns if the "utcModified" field was cleared in this mutation.
func (*DeviceMutation) UtcOnline ¶
func (m *DeviceMutation) UtcOnline() (r string, exists bool)
UtcOnline returns the value of the "utcOnline" field in the mutation.
func (*DeviceMutation) UtcOnlineCleared ¶
func (m *DeviceMutation) UtcOnlineCleared() bool
UtcOnlineCleared returns if the "utcOnline" field was cleared in this mutation.
func (*DeviceMutation) Where ¶
func (m *DeviceMutation) Where(ps ...predicate.Device)
Where appends a list predicates to the DeviceMutation builder.
func (*DeviceMutation) WhereP ¶
func (m *DeviceMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the DeviceMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type DevicePageList ¶
type DevicePageList struct { List []*Device `json:"list"` PageDetails *PageDetails `json:"pageDetails"` }
DevicePageList is Device PageList result.
type DevicePager ¶
type DevicePager struct { Order device.OrderOption Filter func(*DeviceQuery) (*DeviceQuery, error) }
func (*DevicePager) ApplyFilter ¶
func (p *DevicePager) ApplyFilter(query *DeviceQuery) (*DeviceQuery, error)
type DevicePaginateOption ¶
type DevicePaginateOption func(*DevicePager)
DevicePaginateOption enables pagination customization.
type DeviceProp ¶
type DeviceProp 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"` // Props | 标签信息 Props string `json:"props,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the DevicePropQuery when eager-loading is set. Edges DevicePropEdges `json:"edges"` // contains filtered or unexported fields }
DeviceProp is the model entity for the DeviceProp schema.
func (*DeviceProp) ExecContext ¶
func (c *DeviceProp) 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 (*DeviceProp) QueryContext ¶
func (c *DeviceProp) 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 (*DeviceProp) QueryDevice ¶
func (dp *DeviceProp) QueryDevice() *DeviceQuery
QueryDevice queries the "device" edge of the DeviceProp entity.
func (*DeviceProp) String ¶
func (dp *DeviceProp) String() string
String implements the fmt.Stringer.
func (*DeviceProp) Unwrap ¶
func (dp *DeviceProp) Unwrap() *DeviceProp
Unwrap unwraps the DeviceProp 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 (*DeviceProp) Update ¶
func (dp *DeviceProp) Update() *DevicePropUpdateOne
Update returns a builder for updating this DeviceProp. Note that you need to call DeviceProp.Unwrap() before calling this method if this DeviceProp was returned from a transaction, and the transaction was committed or rolled back.
type DevicePropClient ¶
type DevicePropClient struct {
// contains filtered or unexported fields
}
DevicePropClient is a client for the DeviceProp schema.
func NewDevicePropClient ¶
func NewDevicePropClient(c config) *DevicePropClient
NewDevicePropClient returns a client for the DeviceProp from the given config.
func (*DevicePropClient) Create ¶
func (c *DevicePropClient) Create() *DevicePropCreate
Create returns a builder for creating a DeviceProp entity.
func (*DevicePropClient) CreateBulk ¶
func (c *DevicePropClient) CreateBulk(builders ...*DevicePropCreate) *DevicePropCreateBulk
CreateBulk returns a builder for creating a bulk of DeviceProp entities.
func (*DevicePropClient) Delete ¶
func (c *DevicePropClient) Delete() *DevicePropDelete
Delete returns a delete builder for DeviceProp.
func (*DevicePropClient) DeleteOne ¶
func (c *DevicePropClient) DeleteOne(dp *DeviceProp) *DevicePropDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*DevicePropClient) DeleteOneID ¶
func (c *DevicePropClient) DeleteOneID(id uint64) *DevicePropDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*DevicePropClient) ExecContext ¶
func (c *DevicePropClient) 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 (*DevicePropClient) Get ¶
func (c *DevicePropClient) Get(ctx context.Context, id uint64) (*DeviceProp, error)
Get returns a DeviceProp entity by its id.
func (*DevicePropClient) GetX ¶
func (c *DevicePropClient) GetX(ctx context.Context, id uint64) *DeviceProp
GetX is like Get, but panics if an error occurs.
func (*DevicePropClient) Hooks ¶
func (c *DevicePropClient) Hooks() []Hook
Hooks returns the client hooks.
func (*DevicePropClient) Intercept ¶
func (c *DevicePropClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `deviceprop.Intercept(f(g(h())))`.
func (*DevicePropClient) Interceptors ¶
func (c *DevicePropClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*DevicePropClient) MapCreateBulk ¶
func (c *DevicePropClient) MapCreateBulk(slice any, setFunc func(*DevicePropCreate, int)) *DevicePropCreateBulk
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 (*DevicePropClient) Query ¶
func (c *DevicePropClient) Query() *DevicePropQuery
Query returns a query builder for DeviceProp.
func (*DevicePropClient) QueryContext ¶
func (c *DevicePropClient) 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 (*DevicePropClient) QueryDevice ¶
func (c *DevicePropClient) QueryDevice(dp *DeviceProp) *DeviceQuery
QueryDevice queries the device edge of a DeviceProp.
func (*DevicePropClient) Update ¶
func (c *DevicePropClient) Update() *DevicePropUpdate
Update returns an update builder for DeviceProp.
func (*DevicePropClient) UpdateOne ¶
func (c *DevicePropClient) UpdateOne(dp *DeviceProp) *DevicePropUpdateOne
UpdateOne returns an update builder for the given entity.
func (*DevicePropClient) UpdateOneID ¶
func (c *DevicePropClient) UpdateOneID(id uint64) *DevicePropUpdateOne
UpdateOneID returns an update builder for the given id.
func (*DevicePropClient) Use ¶
func (c *DevicePropClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `deviceprop.Hooks(f(g(h())))`.
type DevicePropCreate ¶
type DevicePropCreate struct {
// contains filtered or unexported fields
}
DevicePropCreate is the builder for creating a DeviceProp entity.
func (*DevicePropCreate) Exec ¶
func (dpc *DevicePropCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*DevicePropCreate) ExecContext ¶
func (c *DevicePropCreate) 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 (*DevicePropCreate) ExecX ¶
func (dpc *DevicePropCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DevicePropCreate) Mutation ¶
func (dpc *DevicePropCreate) Mutation() *DevicePropMutation
Mutation returns the DevicePropMutation object of the builder.
func (*DevicePropCreate) OnConflict ¶
func (dpc *DevicePropCreate) OnConflict(opts ...sql.ConflictOption) *DevicePropUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.DeviceProp.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.DevicePropUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*DevicePropCreate) OnConflictColumns ¶
func (dpc *DevicePropCreate) OnConflictColumns(columns ...string) *DevicePropUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.DeviceProp.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*DevicePropCreate) QueryContext ¶
func (c *DevicePropCreate) 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 (*DevicePropCreate) Save ¶
func (dpc *DevicePropCreate) Save(ctx context.Context) (*DeviceProp, error)
Save creates the DeviceProp in the database.
func (*DevicePropCreate) SaveX ¶
func (dpc *DevicePropCreate) SaveX(ctx context.Context) *DeviceProp
SaveX calls Save and panics if Save returns an error.
func (*DevicePropCreate) SetCreatedAt ¶
func (dpc *DevicePropCreate) SetCreatedAt(t time.Time) *DevicePropCreate
SetCreatedAt sets the "created_at" field.
func (*DevicePropCreate) SetDevice ¶
func (dpc *DevicePropCreate) SetDevice(d *Device) *DevicePropCreate
SetDevice sets the "device" edge to the Device entity.
func (*DevicePropCreate) SetDeviceID ¶
func (dpc *DevicePropCreate) SetDeviceID(id uuid.UUID) *DevicePropCreate
SetDeviceID sets the "device" edge to the Device entity by ID.
func (*DevicePropCreate) SetID ¶
func (dpc *DevicePropCreate) SetID(u uint64) *DevicePropCreate
SetID sets the "id" field.
func (*DevicePropCreate) SetIotID ¶
func (dpc *DevicePropCreate) SetIotID(s string) *DevicePropCreate
SetIotID sets the "iotID" field.
func (*DevicePropCreate) SetNillableCreatedAt ¶
func (dpc *DevicePropCreate) SetNillableCreatedAt(t *time.Time) *DevicePropCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*DevicePropCreate) SetNillableDeviceID ¶
func (dpc *DevicePropCreate) SetNillableDeviceID(id *uuid.UUID) *DevicePropCreate
SetNillableDeviceID sets the "device" edge to the Device entity by ID if the given value is not nil.
func (*DevicePropCreate) SetNillableSort ¶
func (dpc *DevicePropCreate) SetNillableSort(u *uint32) *DevicePropCreate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DevicePropCreate) SetNillableStatus ¶
func (dpc *DevicePropCreate) SetNillableStatus(u *uint8) *DevicePropCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DevicePropCreate) SetNillableUpdatedAt ¶
func (dpc *DevicePropCreate) SetNillableUpdatedAt(t *time.Time) *DevicePropCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*DevicePropCreate) SetNotNilIotID ¶
func (dp *DevicePropCreate) SetNotNilIotID(value *string) *DevicePropCreate
set field if value's pointer is not nil.
func (*DevicePropCreate) SetNotNilProps ¶
func (dp *DevicePropCreate) SetNotNilProps(value *string) *DevicePropCreate
set field if value's pointer is not nil.
func (*DevicePropCreate) SetNotNilSort ¶
func (dp *DevicePropCreate) SetNotNilSort(value *uint32) *DevicePropCreate
set field if value's pointer is not nil.
func (*DevicePropCreate) SetNotNilStatus ¶
func (dp *DevicePropCreate) SetNotNilStatus(value *uint8) *DevicePropCreate
set field if value's pointer is not nil.
func (*DevicePropCreate) SetNotNilUpdatedAt ¶
func (dp *DevicePropCreate) SetNotNilUpdatedAt(value *time.Time) *DevicePropCreate
set field if value's pointer is not nil.
func (*DevicePropCreate) SetProps ¶
func (dpc *DevicePropCreate) SetProps(s string) *DevicePropCreate
SetProps sets the "props" field.
func (*DevicePropCreate) SetSort ¶
func (dpc *DevicePropCreate) SetSort(u uint32) *DevicePropCreate
SetSort sets the "sort" field.
func (*DevicePropCreate) SetStatus ¶
func (dpc *DevicePropCreate) SetStatus(u uint8) *DevicePropCreate
SetStatus sets the "status" field.
func (*DevicePropCreate) SetUpdatedAt ¶
func (dpc *DevicePropCreate) SetUpdatedAt(t time.Time) *DevicePropCreate
SetUpdatedAt sets the "updated_at" field.
type DevicePropCreateBulk ¶
type DevicePropCreateBulk struct {
// contains filtered or unexported fields
}
DevicePropCreateBulk is the builder for creating many DeviceProp entities in bulk.
func (*DevicePropCreateBulk) Exec ¶
func (dpcb *DevicePropCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*DevicePropCreateBulk) ExecContext ¶
func (c *DevicePropCreateBulk) 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 (*DevicePropCreateBulk) ExecX ¶
func (dpcb *DevicePropCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DevicePropCreateBulk) OnConflict ¶
func (dpcb *DevicePropCreateBulk) OnConflict(opts ...sql.ConflictOption) *DevicePropUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.DeviceProp.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.DevicePropUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*DevicePropCreateBulk) OnConflictColumns ¶
func (dpcb *DevicePropCreateBulk) OnConflictColumns(columns ...string) *DevicePropUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.DeviceProp.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*DevicePropCreateBulk) QueryContext ¶
func (c *DevicePropCreateBulk) 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 (*DevicePropCreateBulk) Save ¶
func (dpcb *DevicePropCreateBulk) Save(ctx context.Context) ([]*DeviceProp, error)
Save creates the DeviceProp entities in the database.
func (*DevicePropCreateBulk) SaveX ¶
func (dpcb *DevicePropCreateBulk) SaveX(ctx context.Context) []*DeviceProp
SaveX is like Save, but panics if an error occurs.
type DevicePropDelete ¶
type DevicePropDelete struct {
// contains filtered or unexported fields
}
DevicePropDelete is the builder for deleting a DeviceProp entity.
func (*DevicePropDelete) Exec ¶
func (dpd *DevicePropDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*DevicePropDelete) ExecContext ¶
func (c *DevicePropDelete) 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 (*DevicePropDelete) ExecX ¶
func (dpd *DevicePropDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*DevicePropDelete) QueryContext ¶
func (c *DevicePropDelete) 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 (*DevicePropDelete) Where ¶
func (dpd *DevicePropDelete) Where(ps ...predicate.DeviceProp) *DevicePropDelete
Where appends a list predicates to the DevicePropDelete builder.
type DevicePropDeleteOne ¶
type DevicePropDeleteOne struct {
// contains filtered or unexported fields
}
DevicePropDeleteOne is the builder for deleting a single DeviceProp entity.
func (*DevicePropDeleteOne) Exec ¶
func (dpdo *DevicePropDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*DevicePropDeleteOne) ExecX ¶
func (dpdo *DevicePropDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DevicePropDeleteOne) Where ¶
func (dpdo *DevicePropDeleteOne) Where(ps ...predicate.DeviceProp) *DevicePropDeleteOne
Where appends a list predicates to the DevicePropDelete builder.
type DevicePropEdges ¶
type DevicePropEdges struct { // Device holds the value of the device edge. Device *Device `json:"device,omitempty"` // contains filtered or unexported fields }
DevicePropEdges holds the relations/edges for other nodes in the graph.
func (DevicePropEdges) DeviceOrErr ¶
func (e DevicePropEdges) DeviceOrErr() (*Device, error)
DeviceOrErr returns the Device value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type DevicePropGroupBy ¶
type DevicePropGroupBy struct {
// contains filtered or unexported fields
}
DevicePropGroupBy is the group-by builder for DeviceProp entities.
func (*DevicePropGroupBy) Aggregate ¶
func (dpgb *DevicePropGroupBy) Aggregate(fns ...AggregateFunc) *DevicePropGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*DevicePropGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DevicePropGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*DevicePropGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DevicePropGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DevicePropGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DevicePropGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*DevicePropGroupBy) Scan ¶
func (dpgb *DevicePropGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*DevicePropGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type DevicePropMutation ¶
type DevicePropMutation struct {
// contains filtered or unexported fields
}
DevicePropMutation represents an operation that mutates the DeviceProp nodes in the graph.
func (*DevicePropMutation) AddField ¶
func (m *DevicePropMutation) 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 (*DevicePropMutation) AddSort ¶
func (m *DevicePropMutation) AddSort(u int32)
AddSort adds u to the "sort" field.
func (*DevicePropMutation) AddStatus ¶
func (m *DevicePropMutation) AddStatus(u int8)
AddStatus adds u to the "status" field.
func (*DevicePropMutation) AddedEdges ¶
func (m *DevicePropMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*DevicePropMutation) AddedField ¶
func (m *DevicePropMutation) 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 (*DevicePropMutation) AddedFields ¶
func (m *DevicePropMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*DevicePropMutation) AddedIDs ¶
func (m *DevicePropMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*DevicePropMutation) AddedSort ¶
func (m *DevicePropMutation) AddedSort() (r int32, exists bool)
AddedSort returns the value that was added to the "sort" field in this mutation.
func (*DevicePropMutation) AddedStatus ¶
func (m *DevicePropMutation) AddedStatus() (r int8, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*DevicePropMutation) ClearDevice ¶
func (m *DevicePropMutation) ClearDevice()
ClearDevice clears the "device" edge to the Device entity.
func (*DevicePropMutation) ClearEdge ¶
func (m *DevicePropMutation) 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 (*DevicePropMutation) ClearField ¶
func (m *DevicePropMutation) 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 (*DevicePropMutation) ClearStatus ¶
func (m *DevicePropMutation) ClearStatus()
ClearStatus clears the value of the "status" field.
func (*DevicePropMutation) ClearedEdges ¶
func (m *DevicePropMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*DevicePropMutation) ClearedFields ¶
func (m *DevicePropMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (DevicePropMutation) Client ¶
func (m DevicePropMutation) 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 (*DevicePropMutation) CreatedAt ¶
func (m *DevicePropMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*DevicePropMutation) DeviceCleared ¶
func (m *DevicePropMutation) DeviceCleared() bool
DeviceCleared reports if the "device" edge to the Device entity was cleared.
func (*DevicePropMutation) DeviceID ¶
func (m *DevicePropMutation) DeviceID() (id uuid.UUID, exists bool)
DeviceID returns the "device" edge ID in the mutation.
func (*DevicePropMutation) DeviceIDs ¶
func (m *DevicePropMutation) DeviceIDs() (ids []uuid.UUID)
DeviceIDs returns the "device" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use DeviceID instead. It exists only for internal usage by the builders.
func (*DevicePropMutation) EdgeCleared ¶
func (m *DevicePropMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*DevicePropMutation) ExecContext ¶
func (c *DevicePropMutation) 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 (*DevicePropMutation) Field ¶
func (m *DevicePropMutation) 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 (*DevicePropMutation) FieldCleared ¶
func (m *DevicePropMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*DevicePropMutation) Fields ¶
func (m *DevicePropMutation) 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 (*DevicePropMutation) ID ¶
func (m *DevicePropMutation) 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 (*DevicePropMutation) IDs ¶
func (m *DevicePropMutation) 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 (*DevicePropMutation) IotID ¶
func (m *DevicePropMutation) IotID() (r string, exists bool)
IotID returns the value of the "iotID" field in the mutation.
func (*DevicePropMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the DeviceProp entity. If the DeviceProp object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DevicePropMutation) 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 (*DevicePropMutation) OldIotID ¶
func (m *DevicePropMutation) OldIotID(ctx context.Context) (v string, err error)
OldIotID returns the old "iotID" field's value of the DeviceProp entity. If the DeviceProp object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DevicePropMutation) OldProps ¶
func (m *DevicePropMutation) OldProps(ctx context.Context) (v string, err error)
OldProps returns the old "props" field's value of the DeviceProp entity. If the DeviceProp object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DevicePropMutation) OldSort ¶
func (m *DevicePropMutation) OldSort(ctx context.Context) (v uint32, err error)
OldSort returns the old "sort" field's value of the DeviceProp entity. If the DeviceProp object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DevicePropMutation) OldStatus ¶
func (m *DevicePropMutation) OldStatus(ctx context.Context) (v uint8, err error)
OldStatus returns the old "status" field's value of the DeviceProp entity. If the DeviceProp object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DevicePropMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the DeviceProp entity. If the DeviceProp object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DevicePropMutation) Props ¶
func (m *DevicePropMutation) Props() (r string, exists bool)
Props returns the value of the "props" field in the mutation.
func (*DevicePropMutation) QueryContext ¶
func (c *DevicePropMutation) 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 (*DevicePropMutation) RemovedEdges ¶
func (m *DevicePropMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*DevicePropMutation) RemovedIDs ¶
func (m *DevicePropMutation) 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 (*DevicePropMutation) ResetCreatedAt ¶
func (m *DevicePropMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*DevicePropMutation) ResetDevice ¶
func (m *DevicePropMutation) ResetDevice()
ResetDevice resets all changes to the "device" edge.
func (*DevicePropMutation) ResetEdge ¶
func (m *DevicePropMutation) 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 (*DevicePropMutation) ResetField ¶
func (m *DevicePropMutation) 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 (*DevicePropMutation) ResetIotID ¶
func (m *DevicePropMutation) ResetIotID()
ResetIotID resets all changes to the "iotID" field.
func (*DevicePropMutation) ResetProps ¶
func (m *DevicePropMutation) ResetProps()
ResetProps resets all changes to the "props" field.
func (*DevicePropMutation) ResetSort ¶
func (m *DevicePropMutation) ResetSort()
ResetSort resets all changes to the "sort" field.
func (*DevicePropMutation) ResetStatus ¶
func (m *DevicePropMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*DevicePropMutation) ResetUpdatedAt ¶
func (m *DevicePropMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*DevicePropMutation) SetCreatedAt ¶
func (m *DevicePropMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*DevicePropMutation) SetDeviceID ¶
func (m *DevicePropMutation) SetDeviceID(id uuid.UUID)
SetDeviceID sets the "device" edge to the Device entity by id.
func (*DevicePropMutation) SetField ¶
func (m *DevicePropMutation) 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 (*DevicePropMutation) SetID ¶
func (m *DevicePropMutation) SetID(id uint64)
SetID sets the value of the id field. Note that this operation is only accepted on creation of DeviceProp entities.
func (*DevicePropMutation) SetIotID ¶
func (m *DevicePropMutation) SetIotID(s string)
SetIotID sets the "iotID" field.
func (*DevicePropMutation) SetOp ¶
func (m *DevicePropMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*DevicePropMutation) SetProps ¶
func (m *DevicePropMutation) SetProps(s string)
SetProps sets the "props" field.
func (*DevicePropMutation) SetSort ¶
func (m *DevicePropMutation) SetSort(u uint32)
SetSort sets the "sort" field.
func (*DevicePropMutation) SetStatus ¶
func (m *DevicePropMutation) SetStatus(u uint8)
SetStatus sets the "status" field.
func (*DevicePropMutation) SetUpdatedAt ¶
func (m *DevicePropMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*DevicePropMutation) Sort ¶
func (m *DevicePropMutation) Sort() (r uint32, exists bool)
Sort returns the value of the "sort" field in the mutation.
func (*DevicePropMutation) Status ¶
func (m *DevicePropMutation) Status() (r uint8, exists bool)
Status returns the value of the "status" field in the mutation.
func (*DevicePropMutation) StatusCleared ¶
func (m *DevicePropMutation) StatusCleared() bool
StatusCleared returns if the "status" field was cleared in this mutation.
func (DevicePropMutation) Tx ¶
func (m DevicePropMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*DevicePropMutation) Type ¶
func (m *DevicePropMutation) Type() string
Type returns the node type of this mutation (DeviceProp).
func (*DevicePropMutation) UpdatedAt ¶
func (m *DevicePropMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*DevicePropMutation) Where ¶
func (m *DevicePropMutation) Where(ps ...predicate.DeviceProp)
Where appends a list predicates to the DevicePropMutation builder.
func (*DevicePropMutation) WhereP ¶
func (m *DevicePropMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the DevicePropMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type DevicePropPageList ¶
type DevicePropPageList struct { List []*DeviceProp `json:"list"` PageDetails *PageDetails `json:"pageDetails"` }
DevicePropPageList is DeviceProp PageList result.
type DevicePropPager ¶
type DevicePropPager struct { Order deviceprop.OrderOption Filter func(*DevicePropQuery) (*DevicePropQuery, error) }
func (*DevicePropPager) ApplyFilter ¶
func (p *DevicePropPager) ApplyFilter(query *DevicePropQuery) (*DevicePropQuery, error)
type DevicePropPaginateOption ¶
type DevicePropPaginateOption func(*DevicePropPager)
DevicePropPaginateOption enables pagination customization.
type DevicePropQuery ¶
type DevicePropQuery struct {
// contains filtered or unexported fields
}
DevicePropQuery is the builder for querying DeviceProp entities.
func (*DevicePropQuery) Aggregate ¶
func (dpq *DevicePropQuery) Aggregate(fns ...AggregateFunc) *DevicePropSelect
Aggregate returns a DevicePropSelect configured with the given aggregations.
func (*DevicePropQuery) All ¶
func (dpq *DevicePropQuery) All(ctx context.Context) ([]*DeviceProp, error)
All executes the query and returns a list of DeviceProps.
func (*DevicePropQuery) AllX ¶
func (dpq *DevicePropQuery) AllX(ctx context.Context) []*DeviceProp
AllX is like All, but panics if an error occurs.
func (*DevicePropQuery) Clone ¶
func (dpq *DevicePropQuery) Clone() *DevicePropQuery
Clone returns a duplicate of the DevicePropQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*DevicePropQuery) Count ¶
func (dpq *DevicePropQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*DevicePropQuery) CountX ¶
func (dpq *DevicePropQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*DevicePropQuery) ExecContext ¶
func (c *DevicePropQuery) 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 (*DevicePropQuery) Exist ¶
func (dpq *DevicePropQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*DevicePropQuery) ExistX ¶
func (dpq *DevicePropQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*DevicePropQuery) First ¶
func (dpq *DevicePropQuery) First(ctx context.Context) (*DeviceProp, error)
First returns the first DeviceProp entity from the query. Returns a *NotFoundError when no DeviceProp was found.
func (*DevicePropQuery) FirstID ¶
func (dpq *DevicePropQuery) FirstID(ctx context.Context) (id uint64, err error)
FirstID returns the first DeviceProp ID from the query. Returns a *NotFoundError when no DeviceProp ID was found.
func (*DevicePropQuery) FirstIDX ¶
func (dpq *DevicePropQuery) FirstIDX(ctx context.Context) uint64
FirstIDX is like FirstID, but panics if an error occurs.
func (*DevicePropQuery) FirstX ¶
func (dpq *DevicePropQuery) FirstX(ctx context.Context) *DeviceProp
FirstX is like First, but panics if an error occurs.
func (*DevicePropQuery) GroupBy ¶
func (dpq *DevicePropQuery) GroupBy(field string, fields ...string) *DevicePropGroupBy
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.DeviceProp.Query(). GroupBy(deviceprop.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*DevicePropQuery) IDs ¶
func (dpq *DevicePropQuery) IDs(ctx context.Context) (ids []uint64, err error)
IDs executes the query and returns a list of DeviceProp IDs.
func (*DevicePropQuery) IDsX ¶
func (dpq *DevicePropQuery) IDsX(ctx context.Context) []uint64
IDsX is like IDs, but panics if an error occurs.
func (*DevicePropQuery) Limit ¶
func (dpq *DevicePropQuery) Limit(limit int) *DevicePropQuery
Limit the number of records to be returned by this query.
func (*DevicePropQuery) Modify ¶
func (dpq *DevicePropQuery) Modify(modifiers ...func(s *sql.Selector)) *DevicePropSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*DevicePropQuery) Offset ¶
func (dpq *DevicePropQuery) Offset(offset int) *DevicePropQuery
Offset to start from.
func (*DevicePropQuery) Only ¶
func (dpq *DevicePropQuery) Only(ctx context.Context) (*DeviceProp, error)
Only returns a single DeviceProp entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one DeviceProp entity is found. Returns a *NotFoundError when no DeviceProp entities are found.
func (*DevicePropQuery) OnlyID ¶
func (dpq *DevicePropQuery) OnlyID(ctx context.Context) (id uint64, err error)
OnlyID is like Only, but returns the only DeviceProp ID in the query. Returns a *NotSingularError when more than one DeviceProp ID is found. Returns a *NotFoundError when no entities are found.
func (*DevicePropQuery) OnlyIDX ¶
func (dpq *DevicePropQuery) OnlyIDX(ctx context.Context) uint64
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*DevicePropQuery) OnlyX ¶
func (dpq *DevicePropQuery) OnlyX(ctx context.Context) *DeviceProp
OnlyX is like Only, but panics if an error occurs.
func (*DevicePropQuery) Order ¶
func (dpq *DevicePropQuery) Order(o ...deviceprop.OrderOption) *DevicePropQuery
Order specifies how the records should be ordered.
func (*DevicePropQuery) Page ¶
func (dp *DevicePropQuery) Page( ctx context.Context, pageNum uint64, pageSize uint64, opts ...DevicePropPaginateOption, ) (*DevicePropPageList, error)
func (*DevicePropQuery) QueryContext ¶
func (c *DevicePropQuery) 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 (*DevicePropQuery) QueryDevice ¶
func (dpq *DevicePropQuery) QueryDevice() *DeviceQuery
QueryDevice chains the current query on the "device" edge.
func (*DevicePropQuery) Select ¶
func (dpq *DevicePropQuery) Select(fields ...string) *DevicePropSelect
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.DeviceProp.Query(). Select(deviceprop.FieldCreatedAt). Scan(ctx, &v)
func (*DevicePropQuery) Unique ¶
func (dpq *DevicePropQuery) Unique(unique bool) *DevicePropQuery
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 (*DevicePropQuery) Where ¶
func (dpq *DevicePropQuery) Where(ps ...predicate.DeviceProp) *DevicePropQuery
Where adds a new predicate for the DevicePropQuery builder.
func (*DevicePropQuery) WithDevice ¶
func (dpq *DevicePropQuery) WithDevice(opts ...func(*DeviceQuery)) *DevicePropQuery
WithDevice tells the query-builder to eager-load the nodes that are connected to the "device" edge. The optional arguments are used to configure the query builder of the edge.
type DevicePropSelect ¶
type DevicePropSelect struct { *DevicePropQuery // contains filtered or unexported fields }
DevicePropSelect is the builder for selecting fields of DeviceProp entities.
func (*DevicePropSelect) Aggregate ¶
func (dps *DevicePropSelect) Aggregate(fns ...AggregateFunc) *DevicePropSelect
Aggregate adds the given aggregation functions to the selector query.
func (*DevicePropSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DevicePropSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (DevicePropSelect) ExecContext ¶
func (c DevicePropSelect) 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 (*DevicePropSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DevicePropSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DevicePropSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DevicePropSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*DevicePropSelect) Modify ¶
func (dps *DevicePropSelect) Modify(modifiers ...func(s *sql.Selector)) *DevicePropSelect
Modify adds a query modifier for attaching custom logic to queries.
func (DevicePropSelect) QueryContext ¶
func (c DevicePropSelect) 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 (*DevicePropSelect) Scan ¶
func (dps *DevicePropSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*DevicePropSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type DevicePropUpdate ¶
type DevicePropUpdate struct {
// contains filtered or unexported fields
}
DevicePropUpdate is the builder for updating DeviceProp entities.
func (*DevicePropUpdate) AddSort ¶
func (dpu *DevicePropUpdate) AddSort(u int32) *DevicePropUpdate
AddSort adds u to the "sort" field.
func (*DevicePropUpdate) AddStatus ¶
func (dpu *DevicePropUpdate) AddStatus(u int8) *DevicePropUpdate
AddStatus adds u to the "status" field.
func (*DevicePropUpdate) ClearDevice ¶
func (dpu *DevicePropUpdate) ClearDevice() *DevicePropUpdate
ClearDevice clears the "device" edge to the Device entity.
func (*DevicePropUpdate) ClearStatus ¶
func (dpu *DevicePropUpdate) ClearStatus() *DevicePropUpdate
ClearStatus clears the value of the "status" field.
func (*DevicePropUpdate) Exec ¶
func (dpu *DevicePropUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*DevicePropUpdate) ExecContext ¶
func (c *DevicePropUpdate) 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 (*DevicePropUpdate) ExecX ¶
func (dpu *DevicePropUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DevicePropUpdate) Modify ¶
func (dpu *DevicePropUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DevicePropUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*DevicePropUpdate) Mutation ¶
func (dpu *DevicePropUpdate) Mutation() *DevicePropMutation
Mutation returns the DevicePropMutation object of the builder.
func (*DevicePropUpdate) QueryContext ¶
func (c *DevicePropUpdate) 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 (*DevicePropUpdate) Save ¶
func (dpu *DevicePropUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*DevicePropUpdate) SaveX ¶
func (dpu *DevicePropUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*DevicePropUpdate) SetDevice ¶
func (dpu *DevicePropUpdate) SetDevice(d *Device) *DevicePropUpdate
SetDevice sets the "device" edge to the Device entity.
func (*DevicePropUpdate) SetDeviceID ¶
func (dpu *DevicePropUpdate) SetDeviceID(id uuid.UUID) *DevicePropUpdate
SetDeviceID sets the "device" edge to the Device entity by ID.
func (*DevicePropUpdate) SetIotID ¶
func (dpu *DevicePropUpdate) SetIotID(s string) *DevicePropUpdate
SetIotID sets the "iotID" field.
func (*DevicePropUpdate) SetNillableDeviceID ¶
func (dpu *DevicePropUpdate) SetNillableDeviceID(id *uuid.UUID) *DevicePropUpdate
SetNillableDeviceID sets the "device" edge to the Device entity by ID if the given value is not nil.
func (*DevicePropUpdate) SetNillableIotID ¶
func (dpu *DevicePropUpdate) SetNillableIotID(s *string) *DevicePropUpdate
SetNillableIotID sets the "iotID" field if the given value is not nil.
func (*DevicePropUpdate) SetNillableProps ¶
func (dpu *DevicePropUpdate) SetNillableProps(s *string) *DevicePropUpdate
SetNillableProps sets the "props" field if the given value is not nil.
func (*DevicePropUpdate) SetNillableSort ¶
func (dpu *DevicePropUpdate) SetNillableSort(u *uint32) *DevicePropUpdate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DevicePropUpdate) SetNillableStatus ¶
func (dpu *DevicePropUpdate) SetNillableStatus(u *uint8) *DevicePropUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DevicePropUpdate) SetNotNilIotID ¶
func (dp *DevicePropUpdate) SetNotNilIotID(value *string) *DevicePropUpdate
set field if value's pointer is not nil.
func (*DevicePropUpdate) SetNotNilProps ¶
func (dp *DevicePropUpdate) SetNotNilProps(value *string) *DevicePropUpdate
set field if value's pointer is not nil.
func (*DevicePropUpdate) SetNotNilSort ¶
func (dp *DevicePropUpdate) SetNotNilSort(value *uint32) *DevicePropUpdate
set field if value's pointer is not nil.
func (*DevicePropUpdate) SetNotNilStatus ¶
func (dp *DevicePropUpdate) SetNotNilStatus(value *uint8) *DevicePropUpdate
set field if value's pointer is not nil.
func (*DevicePropUpdate) SetNotNilUpdatedAt ¶
func (dp *DevicePropUpdate) SetNotNilUpdatedAt(value *time.Time) *DevicePropUpdate
set field if value's pointer is not nil.
func (*DevicePropUpdate) SetProps ¶
func (dpu *DevicePropUpdate) SetProps(s string) *DevicePropUpdate
SetProps sets the "props" field.
func (*DevicePropUpdate) SetSort ¶
func (dpu *DevicePropUpdate) SetSort(u uint32) *DevicePropUpdate
SetSort sets the "sort" field.
func (*DevicePropUpdate) SetStatus ¶
func (dpu *DevicePropUpdate) SetStatus(u uint8) *DevicePropUpdate
SetStatus sets the "status" field.
func (*DevicePropUpdate) SetUpdatedAt ¶
func (dpu *DevicePropUpdate) SetUpdatedAt(t time.Time) *DevicePropUpdate
SetUpdatedAt sets the "updated_at" field.
func (*DevicePropUpdate) Where ¶
func (dpu *DevicePropUpdate) Where(ps ...predicate.DeviceProp) *DevicePropUpdate
Where appends a list predicates to the DevicePropUpdate builder.
type DevicePropUpdateOne ¶
type DevicePropUpdateOne struct {
// contains filtered or unexported fields
}
DevicePropUpdateOne is the builder for updating a single DeviceProp entity.
func (*DevicePropUpdateOne) AddSort ¶
func (dpuo *DevicePropUpdateOne) AddSort(u int32) *DevicePropUpdateOne
AddSort adds u to the "sort" field.
func (*DevicePropUpdateOne) AddStatus ¶
func (dpuo *DevicePropUpdateOne) AddStatus(u int8) *DevicePropUpdateOne
AddStatus adds u to the "status" field.
func (*DevicePropUpdateOne) ClearDevice ¶
func (dpuo *DevicePropUpdateOne) ClearDevice() *DevicePropUpdateOne
ClearDevice clears the "device" edge to the Device entity.
func (*DevicePropUpdateOne) ClearStatus ¶
func (dpuo *DevicePropUpdateOne) ClearStatus() *DevicePropUpdateOne
ClearStatus clears the value of the "status" field.
func (*DevicePropUpdateOne) Exec ¶
func (dpuo *DevicePropUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*DevicePropUpdateOne) ExecContext ¶
func (c *DevicePropUpdateOne) 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 (*DevicePropUpdateOne) ExecX ¶
func (dpuo *DevicePropUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DevicePropUpdateOne) Modify ¶
func (dpuo *DevicePropUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DevicePropUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*DevicePropUpdateOne) Mutation ¶
func (dpuo *DevicePropUpdateOne) Mutation() *DevicePropMutation
Mutation returns the DevicePropMutation object of the builder.
func (*DevicePropUpdateOne) QueryContext ¶
func (c *DevicePropUpdateOne) 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 (*DevicePropUpdateOne) Save ¶
func (dpuo *DevicePropUpdateOne) Save(ctx context.Context) (*DeviceProp, error)
Save executes the query and returns the updated DeviceProp entity.
func (*DevicePropUpdateOne) SaveX ¶
func (dpuo *DevicePropUpdateOne) SaveX(ctx context.Context) *DeviceProp
SaveX is like Save, but panics if an error occurs.
func (*DevicePropUpdateOne) Select ¶
func (dpuo *DevicePropUpdateOne) Select(field string, fields ...string) *DevicePropUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*DevicePropUpdateOne) SetDevice ¶
func (dpuo *DevicePropUpdateOne) SetDevice(d *Device) *DevicePropUpdateOne
SetDevice sets the "device" edge to the Device entity.
func (*DevicePropUpdateOne) SetDeviceID ¶
func (dpuo *DevicePropUpdateOne) SetDeviceID(id uuid.UUID) *DevicePropUpdateOne
SetDeviceID sets the "device" edge to the Device entity by ID.
func (*DevicePropUpdateOne) SetIotID ¶
func (dpuo *DevicePropUpdateOne) SetIotID(s string) *DevicePropUpdateOne
SetIotID sets the "iotID" field.
func (*DevicePropUpdateOne) SetNillableDeviceID ¶
func (dpuo *DevicePropUpdateOne) SetNillableDeviceID(id *uuid.UUID) *DevicePropUpdateOne
SetNillableDeviceID sets the "device" edge to the Device entity by ID if the given value is not nil.
func (*DevicePropUpdateOne) SetNillableIotID ¶
func (dpuo *DevicePropUpdateOne) SetNillableIotID(s *string) *DevicePropUpdateOne
SetNillableIotID sets the "iotID" field if the given value is not nil.
func (*DevicePropUpdateOne) SetNillableProps ¶
func (dpuo *DevicePropUpdateOne) SetNillableProps(s *string) *DevicePropUpdateOne
SetNillableProps sets the "props" field if the given value is not nil.
func (*DevicePropUpdateOne) SetNillableSort ¶
func (dpuo *DevicePropUpdateOne) SetNillableSort(u *uint32) *DevicePropUpdateOne
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DevicePropUpdateOne) SetNillableStatus ¶
func (dpuo *DevicePropUpdateOne) SetNillableStatus(u *uint8) *DevicePropUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DevicePropUpdateOne) SetNotNilIotID ¶
func (dp *DevicePropUpdateOne) SetNotNilIotID(value *string) *DevicePropUpdateOne
set field if value's pointer is not nil.
func (*DevicePropUpdateOne) SetNotNilProps ¶
func (dp *DevicePropUpdateOne) SetNotNilProps(value *string) *DevicePropUpdateOne
set field if value's pointer is not nil.
func (*DevicePropUpdateOne) SetNotNilSort ¶
func (dp *DevicePropUpdateOne) SetNotNilSort(value *uint32) *DevicePropUpdateOne
set field if value's pointer is not nil.
func (*DevicePropUpdateOne) SetNotNilStatus ¶
func (dp *DevicePropUpdateOne) SetNotNilStatus(value *uint8) *DevicePropUpdateOne
set field if value's pointer is not nil.
func (*DevicePropUpdateOne) SetNotNilUpdatedAt ¶
func (dp *DevicePropUpdateOne) SetNotNilUpdatedAt(value *time.Time) *DevicePropUpdateOne
set field if value's pointer is not nil.
func (*DevicePropUpdateOne) SetProps ¶
func (dpuo *DevicePropUpdateOne) SetProps(s string) *DevicePropUpdateOne
SetProps sets the "props" field.
func (*DevicePropUpdateOne) SetSort ¶
func (dpuo *DevicePropUpdateOne) SetSort(u uint32) *DevicePropUpdateOne
SetSort sets the "sort" field.
func (*DevicePropUpdateOne) SetStatus ¶
func (dpuo *DevicePropUpdateOne) SetStatus(u uint8) *DevicePropUpdateOne
SetStatus sets the "status" field.
func (*DevicePropUpdateOne) SetUpdatedAt ¶
func (dpuo *DevicePropUpdateOne) SetUpdatedAt(t time.Time) *DevicePropUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*DevicePropUpdateOne) Where ¶
func (dpuo *DevicePropUpdateOne) Where(ps ...predicate.DeviceProp) *DevicePropUpdateOne
Where appends a list predicates to the DevicePropUpdate builder.
type DevicePropUpsert ¶
DevicePropUpsert is the "OnConflict" setter.
func (*DevicePropUpsert) AddSort ¶
func (u *DevicePropUpsert) AddSort(v uint32) *DevicePropUpsert
AddSort adds v to the "sort" field.
func (*DevicePropUpsert) AddStatus ¶
func (u *DevicePropUpsert) AddStatus(v uint8) *DevicePropUpsert
AddStatus adds v to the "status" field.
func (*DevicePropUpsert) ClearStatus ¶
func (u *DevicePropUpsert) ClearStatus() *DevicePropUpsert
ClearStatus clears the value of the "status" field.
func (*DevicePropUpsert) SetIotID ¶
func (u *DevicePropUpsert) SetIotID(v string) *DevicePropUpsert
SetIotID sets the "iotID" field.
func (*DevicePropUpsert) SetProps ¶
func (u *DevicePropUpsert) SetProps(v string) *DevicePropUpsert
SetProps sets the "props" field.
func (*DevicePropUpsert) SetSort ¶
func (u *DevicePropUpsert) SetSort(v uint32) *DevicePropUpsert
SetSort sets the "sort" field.
func (*DevicePropUpsert) SetStatus ¶
func (u *DevicePropUpsert) SetStatus(v uint8) *DevicePropUpsert
SetStatus sets the "status" field.
func (*DevicePropUpsert) SetUpdatedAt ¶
func (u *DevicePropUpsert) SetUpdatedAt(v time.Time) *DevicePropUpsert
SetUpdatedAt sets the "updated_at" field.
func (*DevicePropUpsert) UpdateIotID ¶
func (u *DevicePropUpsert) UpdateIotID() *DevicePropUpsert
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DevicePropUpsert) UpdateProps ¶
func (u *DevicePropUpsert) UpdateProps() *DevicePropUpsert
UpdateProps sets the "props" field to the value that was provided on create.
func (*DevicePropUpsert) UpdateSort ¶
func (u *DevicePropUpsert) UpdateSort() *DevicePropUpsert
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DevicePropUpsert) UpdateStatus ¶
func (u *DevicePropUpsert) UpdateStatus() *DevicePropUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DevicePropUpsert) UpdateUpdatedAt ¶
func (u *DevicePropUpsert) UpdateUpdatedAt() *DevicePropUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type DevicePropUpsertBulk ¶
type DevicePropUpsertBulk struct {
// contains filtered or unexported fields
}
DevicePropUpsertBulk is the builder for "upsert"-ing a bulk of DeviceProp nodes.
func (*DevicePropUpsertBulk) AddSort ¶
func (u *DevicePropUpsertBulk) AddSort(v uint32) *DevicePropUpsertBulk
AddSort adds v to the "sort" field.
func (*DevicePropUpsertBulk) AddStatus ¶
func (u *DevicePropUpsertBulk) AddStatus(v uint8) *DevicePropUpsertBulk
AddStatus adds v to the "status" field.
func (*DevicePropUpsertBulk) ClearStatus ¶
func (u *DevicePropUpsertBulk) ClearStatus() *DevicePropUpsertBulk
ClearStatus clears the value of the "status" field.
func (*DevicePropUpsertBulk) DoNothing ¶
func (u *DevicePropUpsertBulk) DoNothing() *DevicePropUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*DevicePropUpsertBulk) Exec ¶
func (u *DevicePropUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*DevicePropUpsertBulk) ExecX ¶
func (u *DevicePropUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DevicePropUpsertBulk) Ignore ¶
func (u *DevicePropUpsertBulk) Ignore() *DevicePropUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.DeviceProp.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*DevicePropUpsertBulk) SetIotID ¶
func (u *DevicePropUpsertBulk) SetIotID(v string) *DevicePropUpsertBulk
SetIotID sets the "iotID" field.
func (*DevicePropUpsertBulk) SetProps ¶
func (u *DevicePropUpsertBulk) SetProps(v string) *DevicePropUpsertBulk
SetProps sets the "props" field.
func (*DevicePropUpsertBulk) SetSort ¶
func (u *DevicePropUpsertBulk) SetSort(v uint32) *DevicePropUpsertBulk
SetSort sets the "sort" field.
func (*DevicePropUpsertBulk) SetStatus ¶
func (u *DevicePropUpsertBulk) SetStatus(v uint8) *DevicePropUpsertBulk
SetStatus sets the "status" field.
func (*DevicePropUpsertBulk) SetUpdatedAt ¶
func (u *DevicePropUpsertBulk) SetUpdatedAt(v time.Time) *DevicePropUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*DevicePropUpsertBulk) Update ¶
func (u *DevicePropUpsertBulk) Update(set func(*DevicePropUpsert)) *DevicePropUpsertBulk
Update allows overriding fields `UPDATE` values. See the DevicePropCreateBulk.OnConflict documentation for more info.
func (*DevicePropUpsertBulk) UpdateIotID ¶
func (u *DevicePropUpsertBulk) UpdateIotID() *DevicePropUpsertBulk
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DevicePropUpsertBulk) UpdateNewValues ¶
func (u *DevicePropUpsertBulk) UpdateNewValues() *DevicePropUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.DeviceProp.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(deviceprop.FieldID) }), ). Exec(ctx)
func (*DevicePropUpsertBulk) UpdateProps ¶
func (u *DevicePropUpsertBulk) UpdateProps() *DevicePropUpsertBulk
UpdateProps sets the "props" field to the value that was provided on create.
func (*DevicePropUpsertBulk) UpdateSort ¶
func (u *DevicePropUpsertBulk) UpdateSort() *DevicePropUpsertBulk
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DevicePropUpsertBulk) UpdateStatus ¶
func (u *DevicePropUpsertBulk) UpdateStatus() *DevicePropUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DevicePropUpsertBulk) UpdateUpdatedAt ¶
func (u *DevicePropUpsertBulk) UpdateUpdatedAt() *DevicePropUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type DevicePropUpsertOne ¶
type DevicePropUpsertOne struct {
// contains filtered or unexported fields
}
DevicePropUpsertOne is the builder for "upsert"-ing
one DeviceProp node.
func (*DevicePropUpsertOne) AddSort ¶
func (u *DevicePropUpsertOne) AddSort(v uint32) *DevicePropUpsertOne
AddSort adds v to the "sort" field.
func (*DevicePropUpsertOne) AddStatus ¶
func (u *DevicePropUpsertOne) AddStatus(v uint8) *DevicePropUpsertOne
AddStatus adds v to the "status" field.
func (*DevicePropUpsertOne) ClearStatus ¶
func (u *DevicePropUpsertOne) ClearStatus() *DevicePropUpsertOne
ClearStatus clears the value of the "status" field.
func (*DevicePropUpsertOne) DoNothing ¶
func (u *DevicePropUpsertOne) DoNothing() *DevicePropUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*DevicePropUpsertOne) Exec ¶
func (u *DevicePropUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*DevicePropUpsertOne) ExecX ¶
func (u *DevicePropUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DevicePropUpsertOne) ID ¶
func (u *DevicePropUpsertOne) ID(ctx context.Context) (id uint64, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*DevicePropUpsertOne) IDX ¶
func (u *DevicePropUpsertOne) IDX(ctx context.Context) uint64
IDX is like ID, but panics if an error occurs.
func (*DevicePropUpsertOne) Ignore ¶
func (u *DevicePropUpsertOne) Ignore() *DevicePropUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.DeviceProp.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*DevicePropUpsertOne) SetIotID ¶
func (u *DevicePropUpsertOne) SetIotID(v string) *DevicePropUpsertOne
SetIotID sets the "iotID" field.
func (*DevicePropUpsertOne) SetProps ¶
func (u *DevicePropUpsertOne) SetProps(v string) *DevicePropUpsertOne
SetProps sets the "props" field.
func (*DevicePropUpsertOne) SetSort ¶
func (u *DevicePropUpsertOne) SetSort(v uint32) *DevicePropUpsertOne
SetSort sets the "sort" field.
func (*DevicePropUpsertOne) SetStatus ¶
func (u *DevicePropUpsertOne) SetStatus(v uint8) *DevicePropUpsertOne
SetStatus sets the "status" field.
func (*DevicePropUpsertOne) SetUpdatedAt ¶
func (u *DevicePropUpsertOne) SetUpdatedAt(v time.Time) *DevicePropUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*DevicePropUpsertOne) Update ¶
func (u *DevicePropUpsertOne) Update(set func(*DevicePropUpsert)) *DevicePropUpsertOne
Update allows overriding fields `UPDATE` values. See the DevicePropCreate.OnConflict documentation for more info.
func (*DevicePropUpsertOne) UpdateIotID ¶
func (u *DevicePropUpsertOne) UpdateIotID() *DevicePropUpsertOne
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DevicePropUpsertOne) UpdateNewValues ¶
func (u *DevicePropUpsertOne) UpdateNewValues() *DevicePropUpsertOne
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.DeviceProp.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(deviceprop.FieldID) }), ). Exec(ctx)
func (*DevicePropUpsertOne) UpdateProps ¶
func (u *DevicePropUpsertOne) UpdateProps() *DevicePropUpsertOne
UpdateProps sets the "props" field to the value that was provided on create.
func (*DevicePropUpsertOne) UpdateSort ¶
func (u *DevicePropUpsertOne) UpdateSort() *DevicePropUpsertOne
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DevicePropUpsertOne) UpdateStatus ¶
func (u *DevicePropUpsertOne) UpdateStatus() *DevicePropUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DevicePropUpsertOne) UpdateUpdatedAt ¶
func (u *DevicePropUpsertOne) UpdateUpdatedAt() *DevicePropUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type DeviceQuery ¶
type DeviceQuery struct {
// contains filtered or unexported fields
}
DeviceQuery is the builder for querying Device entities.
func (*DeviceQuery) Aggregate ¶
func (dq *DeviceQuery) Aggregate(fns ...AggregateFunc) *DeviceSelect
Aggregate returns a DeviceSelect configured with the given aggregations.
func (*DeviceQuery) All ¶
func (dq *DeviceQuery) All(ctx context.Context) ([]*Device, error)
All executes the query and returns a list of Devices.
func (*DeviceQuery) AllX ¶
func (dq *DeviceQuery) AllX(ctx context.Context) []*Device
AllX is like All, but panics if an error occurs.
func (*DeviceQuery) Clone ¶
func (dq *DeviceQuery) Clone() *DeviceQuery
Clone returns a duplicate of the DeviceQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*DeviceQuery) Count ¶
func (dq *DeviceQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*DeviceQuery) CountX ¶
func (dq *DeviceQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*DeviceQuery) ExecContext ¶
func (c *DeviceQuery) 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 (*DeviceQuery) Exist ¶
func (dq *DeviceQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*DeviceQuery) ExistX ¶
func (dq *DeviceQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*DeviceQuery) First ¶
func (dq *DeviceQuery) First(ctx context.Context) (*Device, error)
First returns the first Device entity from the query. Returns a *NotFoundError when no Device was found.
func (*DeviceQuery) FirstID ¶
FirstID returns the first Device ID from the query. Returns a *NotFoundError when no Device ID was found.
func (*DeviceQuery) FirstIDX ¶
func (dq *DeviceQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*DeviceQuery) FirstX ¶
func (dq *DeviceQuery) FirstX(ctx context.Context) *Device
FirstX is like First, but panics if an error occurs.
func (*DeviceQuery) GroupBy ¶
func (dq *DeviceQuery) GroupBy(field string, fields ...string) *DeviceGroupBy
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.Device.Query(). GroupBy(device.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*DeviceQuery) IDsX ¶
func (dq *DeviceQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*DeviceQuery) Limit ¶
func (dq *DeviceQuery) Limit(limit int) *DeviceQuery
Limit the number of records to be returned by this query.
func (*DeviceQuery) Modify ¶
func (dq *DeviceQuery) Modify(modifiers ...func(s *sql.Selector)) *DeviceSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*DeviceQuery) Offset ¶
func (dq *DeviceQuery) Offset(offset int) *DeviceQuery
Offset to start from.
func (*DeviceQuery) Only ¶
func (dq *DeviceQuery) Only(ctx context.Context) (*Device, error)
Only returns a single Device entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Device entity is found. Returns a *NotFoundError when no Device entities are found.
func (*DeviceQuery) OnlyID ¶
OnlyID is like Only, but returns the only Device ID in the query. Returns a *NotSingularError when more than one Device ID is found. Returns a *NotFoundError when no entities are found.
func (*DeviceQuery) OnlyIDX ¶
func (dq *DeviceQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*DeviceQuery) OnlyX ¶
func (dq *DeviceQuery) OnlyX(ctx context.Context) *Device
OnlyX is like Only, but panics if an error occurs.
func (*DeviceQuery) Order ¶
func (dq *DeviceQuery) Order(o ...device.OrderOption) *DeviceQuery
Order specifies how the records should be ordered.
func (*DeviceQuery) Page ¶
func (d *DeviceQuery) Page( ctx context.Context, pageNum uint64, pageSize uint64, opts ...DevicePaginateOption, ) (*DevicePageList, error)
func (*DeviceQuery) QueryCompanies ¶
func (dq *DeviceQuery) QueryCompanies() *CompanyQuery
QueryCompanies chains the current query on the "companies" edge.
func (*DeviceQuery) QueryContext ¶
func (c *DeviceQuery) 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 (*DeviceQuery) QueryMembers ¶
func (dq *DeviceQuery) QueryMembers() *MemberQuery
QueryMembers chains the current query on the "members" edge.
func (*DeviceQuery) QueryProduct ¶
func (dq *DeviceQuery) QueryProduct() *ProductQuery
QueryProduct chains the current query on the "product" edge.
func (*DeviceQuery) QueryProp ¶
func (dq *DeviceQuery) QueryProp() *DevicePropQuery
QueryProp chains the current query on the "prop" edge.
func (*DeviceQuery) Select ¶
func (dq *DeviceQuery) Select(fields ...string) *DeviceSelect
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.Device.Query(). Select(device.FieldCreatedAt). Scan(ctx, &v)
func (*DeviceQuery) Unique ¶
func (dq *DeviceQuery) Unique(unique bool) *DeviceQuery
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 (*DeviceQuery) Where ¶
func (dq *DeviceQuery) Where(ps ...predicate.Device) *DeviceQuery
Where adds a new predicate for the DeviceQuery builder.
func (*DeviceQuery) WithCompanies ¶
func (dq *DeviceQuery) WithCompanies(opts ...func(*CompanyQuery)) *DeviceQuery
WithCompanies tells the query-builder to eager-load the nodes that are connected to the "companies" edge. The optional arguments are used to configure the query builder of the edge.
func (*DeviceQuery) WithMembers ¶
func (dq *DeviceQuery) WithMembers(opts ...func(*MemberQuery)) *DeviceQuery
WithMembers tells the query-builder to eager-load the nodes that are connected to the "members" edge. The optional arguments are used to configure the query builder of the edge.
func (*DeviceQuery) WithProduct ¶
func (dq *DeviceQuery) WithProduct(opts ...func(*ProductQuery)) *DeviceQuery
WithProduct tells the query-builder to eager-load the nodes that are connected to the "product" edge. The optional arguments are used to configure the query builder of the edge.
func (*DeviceQuery) WithProp ¶
func (dq *DeviceQuery) WithProp(opts ...func(*DevicePropQuery)) *DeviceQuery
WithProp tells the query-builder to eager-load the nodes that are connected to the "prop" edge. The optional arguments are used to configure the query builder of the edge.
type DeviceSelect ¶
type DeviceSelect struct { *DeviceQuery // contains filtered or unexported fields }
DeviceSelect is the builder for selecting fields of Device entities.
func (*DeviceSelect) Aggregate ¶
func (ds *DeviceSelect) Aggregate(fns ...AggregateFunc) *DeviceSelect
Aggregate adds the given aggregation functions to the selector query.
func (*DeviceSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DeviceSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (DeviceSelect) ExecContext ¶
func (c DeviceSelect) 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 (*DeviceSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DeviceSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DeviceSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DeviceSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*DeviceSelect) Modify ¶
func (ds *DeviceSelect) Modify(modifiers ...func(s *sql.Selector)) *DeviceSelect
Modify adds a query modifier for attaching custom logic to queries.
func (DeviceSelect) QueryContext ¶
func (c DeviceSelect) 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 (*DeviceSelect) Scan ¶
func (ds *DeviceSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*DeviceSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type DeviceUpdate ¶
type DeviceUpdate struct {
// contains filtered or unexported fields
}
DeviceUpdate is the builder for updating Device entities.
func (*DeviceUpdate) AddCompanies ¶
func (du *DeviceUpdate) AddCompanies(c ...*Company) *DeviceUpdate
AddCompanies adds the "companies" edges to the Company entity.
func (*DeviceUpdate) AddCompanyIDs ¶
func (du *DeviceUpdate) AddCompanyIDs(ids ...uint64) *DeviceUpdate
AddCompanyIDs adds the "companies" edge to the Company entity by IDs.
func (*DeviceUpdate) AddMemberIDs ¶
func (du *DeviceUpdate) AddMemberIDs(ids ...uuid.UUID) *DeviceUpdate
AddMemberIDs adds the "members" edge to the Member entity by IDs.
func (*DeviceUpdate) AddMembers ¶
func (du *DeviceUpdate) AddMembers(m ...*Member) *DeviceUpdate
AddMembers adds the "members" edges to the Member entity.
func (*DeviceUpdate) AddNodeType ¶
func (du *DeviceUpdate) AddNodeType(i int32) *DeviceUpdate
AddNodeType adds i to the "nodeType" field.
func (*DeviceUpdate) AddSort ¶
func (du *DeviceUpdate) AddSort(u int32) *DeviceUpdate
AddSort adds u to the "sort" field.
func (*DeviceUpdate) AddStatus ¶
func (du *DeviceUpdate) AddStatus(u int8) *DeviceUpdate
AddStatus adds u to the "status" field.
func (*DeviceUpdate) ClearCompanies ¶
func (du *DeviceUpdate) ClearCompanies() *DeviceUpdate
ClearCompanies clears all "companies" edges to the Company entity.
func (*DeviceUpdate) ClearDeviceSecret ¶
func (du *DeviceUpdate) ClearDeviceSecret() *DeviceUpdate
ClearDeviceSecret clears the value of the "deviceSecret" field.
func (*DeviceUpdate) ClearDeviceStatus ¶
func (du *DeviceUpdate) ClearDeviceStatus() *DeviceUpdate
ClearDeviceStatus clears the value of the "deviceStatus" field.
func (*DeviceUpdate) ClearFirmwareVersion ¶
func (du *DeviceUpdate) ClearFirmwareVersion() *DeviceUpdate
ClearFirmwareVersion clears the value of the "firmwareVersion" field.
func (*DeviceUpdate) ClearGmtActive ¶
func (du *DeviceUpdate) ClearGmtActive() *DeviceUpdate
ClearGmtActive clears the value of the "gmtActive" field.
func (*DeviceUpdate) ClearGmtCreate ¶
func (du *DeviceUpdate) ClearGmtCreate() *DeviceUpdate
ClearGmtCreate clears the value of the "gmtCreate" field.
func (*DeviceUpdate) ClearGmtModified ¶
func (du *DeviceUpdate) ClearGmtModified() *DeviceUpdate
ClearGmtModified clears the value of the "gmtModified" field.
func (*DeviceUpdate) ClearGmtOnline ¶
func (du *DeviceUpdate) ClearGmtOnline() *DeviceUpdate
ClearGmtOnline clears the value of the "gmtOnline" field.
func (*DeviceUpdate) ClearIPAddress ¶
func (du *DeviceUpdate) ClearIPAddress() *DeviceUpdate
ClearIPAddress clears the value of the "IPAddress" field.
func (*DeviceUpdate) ClearMembers ¶
func (du *DeviceUpdate) ClearMembers() *DeviceUpdate
ClearMembers clears all "members" edges to the Member entity.
func (*DeviceUpdate) ClearNickname ¶
func (du *DeviceUpdate) ClearNickname() *DeviceUpdate
ClearNickname clears the value of the "nickname" field.
func (*DeviceUpdate) ClearOperationalStatusCode ¶
func (du *DeviceUpdate) ClearOperationalStatusCode() *DeviceUpdate
ClearOperationalStatusCode clears the value of the "operationalStatusCode" field.
func (*DeviceUpdate) ClearOwner ¶
func (du *DeviceUpdate) ClearOwner() *DeviceUpdate
ClearOwner clears the value of the "owner" field.
func (*DeviceUpdate) ClearProduct ¶
func (du *DeviceUpdate) ClearProduct() *DeviceUpdate
ClearProduct clears the "product" edge to the Product entity.
func (*DeviceUpdate) ClearProductName ¶
func (du *DeviceUpdate) ClearProductName() *DeviceUpdate
ClearProductName clears the value of the "productName" field.
func (*DeviceUpdate) ClearProp ¶
func (du *DeviceUpdate) ClearProp() *DeviceUpdate
ClearProp clears the "prop" edge to the DeviceProp entity.
func (*DeviceUpdate) ClearRegion ¶
func (du *DeviceUpdate) ClearRegion() *DeviceUpdate
ClearRegion clears the value of the "region" field.
func (*DeviceUpdate) ClearStatus ¶
func (du *DeviceUpdate) ClearStatus() *DeviceUpdate
ClearStatus clears the value of the "status" field.
func (*DeviceUpdate) ClearUtcActive ¶
func (du *DeviceUpdate) ClearUtcActive() *DeviceUpdate
ClearUtcActive clears the value of the "utcActive" field.
func (*DeviceUpdate) ClearUtcCreate ¶
func (du *DeviceUpdate) ClearUtcCreate() *DeviceUpdate
ClearUtcCreate clears the value of the "utcCreate" field.
func (*DeviceUpdate) ClearUtcModified ¶
func (du *DeviceUpdate) ClearUtcModified() *DeviceUpdate
ClearUtcModified clears the value of the "utcModified" field.
func (*DeviceUpdate) ClearUtcOnline ¶
func (du *DeviceUpdate) ClearUtcOnline() *DeviceUpdate
ClearUtcOnline clears the value of the "utcOnline" field.
func (*DeviceUpdate) Exec ¶
func (du *DeviceUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceUpdate) ExecContext ¶
func (c *DeviceUpdate) 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 (*DeviceUpdate) ExecX ¶
func (du *DeviceUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceUpdate) Modify ¶
func (du *DeviceUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*DeviceUpdate) Mutation ¶
func (du *DeviceUpdate) Mutation() *DeviceMutation
Mutation returns the DeviceMutation object of the builder.
func (*DeviceUpdate) QueryContext ¶
func (c *DeviceUpdate) 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 (*DeviceUpdate) RemoveCompanies ¶
func (du *DeviceUpdate) RemoveCompanies(c ...*Company) *DeviceUpdate
RemoveCompanies removes "companies" edges to Company entities.
func (*DeviceUpdate) RemoveCompanyIDs ¶
func (du *DeviceUpdate) RemoveCompanyIDs(ids ...uint64) *DeviceUpdate
RemoveCompanyIDs removes the "companies" edge to Company entities by IDs.
func (*DeviceUpdate) RemoveMemberIDs ¶
func (du *DeviceUpdate) RemoveMemberIDs(ids ...uuid.UUID) *DeviceUpdate
RemoveMemberIDs removes the "members" edge to Member entities by IDs.
func (*DeviceUpdate) RemoveMembers ¶
func (du *DeviceUpdate) RemoveMembers(m ...*Member) *DeviceUpdate
RemoveMembers removes "members" edges to Member entities.
func (*DeviceUpdate) Save ¶
func (du *DeviceUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*DeviceUpdate) SaveX ¶
func (du *DeviceUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*DeviceUpdate) SetDeviceName ¶
func (du *DeviceUpdate) SetDeviceName(s string) *DeviceUpdate
SetDeviceName sets the "deviceName" field.
func (*DeviceUpdate) SetDeviceSecret ¶
func (du *DeviceUpdate) SetDeviceSecret(s string) *DeviceUpdate
SetDeviceSecret sets the "deviceSecret" field.
func (*DeviceUpdate) SetDeviceStatus ¶
func (du *DeviceUpdate) SetDeviceStatus(s string) *DeviceUpdate
SetDeviceStatus sets the "deviceStatus" field.
func (*DeviceUpdate) SetFirmwareVersion ¶
func (du *DeviceUpdate) SetFirmwareVersion(s string) *DeviceUpdate
SetFirmwareVersion sets the "firmwareVersion" field.
func (*DeviceUpdate) SetGmtActive ¶
func (du *DeviceUpdate) SetGmtActive(s string) *DeviceUpdate
SetGmtActive sets the "gmtActive" field.
func (*DeviceUpdate) SetGmtCreate ¶
func (du *DeviceUpdate) SetGmtCreate(s string) *DeviceUpdate
SetGmtCreate sets the "gmtCreate" field.
func (*DeviceUpdate) SetGmtModified ¶
func (du *DeviceUpdate) SetGmtModified(s string) *DeviceUpdate
SetGmtModified sets the "gmtModified" field.
func (*DeviceUpdate) SetGmtOnline ¶
func (du *DeviceUpdate) SetGmtOnline(s string) *DeviceUpdate
SetGmtOnline sets the "gmtOnline" field.
func (*DeviceUpdate) SetIPAddress ¶
func (du *DeviceUpdate) SetIPAddress(s string) *DeviceUpdate
SetIPAddress sets the "IPAddress" field.
func (*DeviceUpdate) SetIotID ¶
func (du *DeviceUpdate) SetIotID(s string) *DeviceUpdate
SetIotID sets the "iotID" field.
func (*DeviceUpdate) SetNickname ¶
func (du *DeviceUpdate) SetNickname(s string) *DeviceUpdate
SetNickname sets the "nickname" field.
func (*DeviceUpdate) SetNillableDeviceName ¶
func (du *DeviceUpdate) SetNillableDeviceName(s *string) *DeviceUpdate
SetNillableDeviceName sets the "deviceName" field if the given value is not nil.
func (*DeviceUpdate) SetNillableDeviceSecret ¶
func (du *DeviceUpdate) SetNillableDeviceSecret(s *string) *DeviceUpdate
SetNillableDeviceSecret sets the "deviceSecret" field if the given value is not nil.
func (*DeviceUpdate) SetNillableDeviceStatus ¶
func (du *DeviceUpdate) SetNillableDeviceStatus(s *string) *DeviceUpdate
SetNillableDeviceStatus sets the "deviceStatus" field if the given value is not nil.
func (*DeviceUpdate) SetNillableFirmwareVersion ¶
func (du *DeviceUpdate) SetNillableFirmwareVersion(s *string) *DeviceUpdate
SetNillableFirmwareVersion sets the "firmwareVersion" field if the given value is not nil.
func (*DeviceUpdate) SetNillableGmtActive ¶
func (du *DeviceUpdate) SetNillableGmtActive(s *string) *DeviceUpdate
SetNillableGmtActive sets the "gmtActive" field if the given value is not nil.
func (*DeviceUpdate) SetNillableGmtCreate ¶
func (du *DeviceUpdate) SetNillableGmtCreate(s *string) *DeviceUpdate
SetNillableGmtCreate sets the "gmtCreate" field if the given value is not nil.
func (*DeviceUpdate) SetNillableGmtModified ¶
func (du *DeviceUpdate) SetNillableGmtModified(s *string) *DeviceUpdate
SetNillableGmtModified sets the "gmtModified" field if the given value is not nil.
func (*DeviceUpdate) SetNillableGmtOnline ¶
func (du *DeviceUpdate) SetNillableGmtOnline(s *string) *DeviceUpdate
SetNillableGmtOnline sets the "gmtOnline" field if the given value is not nil.
func (*DeviceUpdate) SetNillableIPAddress ¶
func (du *DeviceUpdate) SetNillableIPAddress(s *string) *DeviceUpdate
SetNillableIPAddress sets the "IPAddress" field if the given value is not nil.
func (*DeviceUpdate) SetNillableIotID ¶
func (du *DeviceUpdate) SetNillableIotID(s *string) *DeviceUpdate
SetNillableIotID sets the "iotID" field if the given value is not nil.
func (*DeviceUpdate) SetNillableNickname ¶
func (du *DeviceUpdate) SetNillableNickname(s *string) *DeviceUpdate
SetNillableNickname sets the "nickname" field if the given value is not nil.
func (*DeviceUpdate) SetNillableNodeType ¶
func (du *DeviceUpdate) SetNillableNodeType(i *int32) *DeviceUpdate
SetNillableNodeType sets the "nodeType" field if the given value is not nil.
func (*DeviceUpdate) SetNillableOperationalStatusCode ¶
func (du *DeviceUpdate) SetNillableOperationalStatusCode(s *string) *DeviceUpdate
SetNillableOperationalStatusCode sets the "operationalStatusCode" field if the given value is not nil.
func (*DeviceUpdate) SetNillableOwner ¶
func (du *DeviceUpdate) SetNillableOwner(b *bool) *DeviceUpdate
SetNillableOwner sets the "owner" field if the given value is not nil.
func (*DeviceUpdate) SetNillableProductID ¶
func (du *DeviceUpdate) SetNillableProductID(id *uuid.UUID) *DeviceUpdate
SetNillableProductID sets the "product" edge to the Product entity by ID if the given value is not nil.
func (*DeviceUpdate) SetNillableProductKey ¶
func (du *DeviceUpdate) SetNillableProductKey(s *string) *DeviceUpdate
SetNillableProductKey sets the "productKey" field if the given value is not nil.
func (*DeviceUpdate) SetNillableProductName ¶
func (du *DeviceUpdate) SetNillableProductName(s *string) *DeviceUpdate
SetNillableProductName sets the "productName" field if the given value is not nil.
func (*DeviceUpdate) SetNillablePropID ¶
func (du *DeviceUpdate) SetNillablePropID(id *uint64) *DeviceUpdate
SetNillablePropID sets the "prop" edge to the DeviceProp entity by ID if the given value is not nil.
func (*DeviceUpdate) SetNillableRegion ¶
func (du *DeviceUpdate) SetNillableRegion(s *string) *DeviceUpdate
SetNillableRegion sets the "region" field if the given value is not nil.
func (*DeviceUpdate) SetNillableSort ¶
func (du *DeviceUpdate) SetNillableSort(u *uint32) *DeviceUpdate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DeviceUpdate) SetNillableStatus ¶
func (du *DeviceUpdate) SetNillableStatus(u *uint8) *DeviceUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DeviceUpdate) SetNillableUtcActive ¶
func (du *DeviceUpdate) SetNillableUtcActive(s *string) *DeviceUpdate
SetNillableUtcActive sets the "utcActive" field if the given value is not nil.
func (*DeviceUpdate) SetNillableUtcCreate ¶
func (du *DeviceUpdate) SetNillableUtcCreate(s *string) *DeviceUpdate
SetNillableUtcCreate sets the "utcCreate" field if the given value is not nil.
func (*DeviceUpdate) SetNillableUtcModified ¶
func (du *DeviceUpdate) SetNillableUtcModified(s *string) *DeviceUpdate
SetNillableUtcModified sets the "utcModified" field if the given value is not nil.
func (*DeviceUpdate) SetNillableUtcOnline ¶
func (du *DeviceUpdate) SetNillableUtcOnline(s *string) *DeviceUpdate
SetNillableUtcOnline sets the "utcOnline" field if the given value is not nil.
func (*DeviceUpdate) SetNodeType ¶
func (du *DeviceUpdate) SetNodeType(i int32) *DeviceUpdate
SetNodeType sets the "nodeType" field.
func (*DeviceUpdate) SetNotNilDeviceName ¶
func (d *DeviceUpdate) SetNotNilDeviceName(value *string) *DeviceUpdate
set field if value's pointer is not nil.
func (*DeviceUpdate) SetNotNilDeviceSecret ¶
func (d *DeviceUpdate) SetNotNilDeviceSecret(value *string) *DeviceUpdate
set field if value's pointer is not nil.
func (*DeviceUpdate) SetNotNilDeviceStatus ¶
func (d *DeviceUpdate) SetNotNilDeviceStatus(value *string) *DeviceUpdate
set field if value's pointer is not nil.
func (*DeviceUpdate) SetNotNilFirmwareVersion ¶
func (d *DeviceUpdate) SetNotNilFirmwareVersion(value *string) *DeviceUpdate
set field if value's pointer is not nil.
func (*DeviceUpdate) SetNotNilGmtActive ¶
func (d *DeviceUpdate) SetNotNilGmtActive(value *string) *DeviceUpdate
set field if value's pointer is not nil.
func (*DeviceUpdate) SetNotNilGmtCreate ¶
func (d *DeviceUpdate) SetNotNilGmtCreate(value *string) *DeviceUpdate
set field if value's pointer is not nil.
func (*DeviceUpdate) SetNotNilGmtModified ¶
func (d *DeviceUpdate) SetNotNilGmtModified(value *string) *DeviceUpdate
set field if value's pointer is not nil.
func (*DeviceUpdate) SetNotNilGmtOnline ¶
func (d *DeviceUpdate) SetNotNilGmtOnline(value *string) *DeviceUpdate
set field if value's pointer is not nil.
func (*DeviceUpdate) SetNotNilIPAddress ¶
func (d *DeviceUpdate) SetNotNilIPAddress(value *string) *DeviceUpdate
set field if value's pointer is not nil.
func (*DeviceUpdate) SetNotNilIotID ¶
func (d *DeviceUpdate) SetNotNilIotID(value *string) *DeviceUpdate
set field if value's pointer is not nil.
func (*DeviceUpdate) SetNotNilNickname ¶
func (d *DeviceUpdate) SetNotNilNickname(value *string) *DeviceUpdate
set field if value's pointer is not nil.
func (*DeviceUpdate) SetNotNilNodeType ¶
func (d *DeviceUpdate) SetNotNilNodeType(value *int32) *DeviceUpdate
set field if value's pointer is not nil.
func (*DeviceUpdate) SetNotNilOperationalStatusCode ¶
func (d *DeviceUpdate) SetNotNilOperationalStatusCode(value *string) *DeviceUpdate
set field if value's pointer is not nil.
func (*DeviceUpdate) SetNotNilOwner ¶
func (d *DeviceUpdate) SetNotNilOwner(value *bool) *DeviceUpdate
set field if value's pointer is not nil.
func (*DeviceUpdate) SetNotNilProductKey ¶
func (d *DeviceUpdate) SetNotNilProductKey(value *string) *DeviceUpdate
set field if value's pointer is not nil.
func (*DeviceUpdate) SetNotNilProductName ¶
func (d *DeviceUpdate) SetNotNilProductName(value *string) *DeviceUpdate
set field if value's pointer is not nil.
func (*DeviceUpdate) SetNotNilRegion ¶
func (d *DeviceUpdate) SetNotNilRegion(value *string) *DeviceUpdate
set field if value's pointer is not nil.
func (*DeviceUpdate) SetNotNilSort ¶
func (d *DeviceUpdate) SetNotNilSort(value *uint32) *DeviceUpdate
set field if value's pointer is not nil.
func (*DeviceUpdate) SetNotNilStatus ¶
func (d *DeviceUpdate) SetNotNilStatus(value *uint8) *DeviceUpdate
set field if value's pointer is not nil.
func (*DeviceUpdate) SetNotNilUpdatedAt ¶
func (d *DeviceUpdate) SetNotNilUpdatedAt(value *time.Time) *DeviceUpdate
set field if value's pointer is not nil.
func (*DeviceUpdate) SetNotNilUtcActive ¶
func (d *DeviceUpdate) SetNotNilUtcActive(value *string) *DeviceUpdate
set field if value's pointer is not nil.
func (*DeviceUpdate) SetNotNilUtcCreate ¶
func (d *DeviceUpdate) SetNotNilUtcCreate(value *string) *DeviceUpdate
set field if value's pointer is not nil.
func (*DeviceUpdate) SetNotNilUtcModified ¶
func (d *DeviceUpdate) SetNotNilUtcModified(value *string) *DeviceUpdate
set field if value's pointer is not nil.
func (*DeviceUpdate) SetNotNilUtcOnline ¶
func (d *DeviceUpdate) SetNotNilUtcOnline(value *string) *DeviceUpdate
set field if value's pointer is not nil.
func (*DeviceUpdate) SetOperationalStatusCode ¶
func (du *DeviceUpdate) SetOperationalStatusCode(s string) *DeviceUpdate
SetOperationalStatusCode sets the "operationalStatusCode" field.
func (*DeviceUpdate) SetOwner ¶
func (du *DeviceUpdate) SetOwner(b bool) *DeviceUpdate
SetOwner sets the "owner" field.
func (*DeviceUpdate) SetProduct ¶
func (du *DeviceUpdate) SetProduct(p *Product) *DeviceUpdate
SetProduct sets the "product" edge to the Product entity.
func (*DeviceUpdate) SetProductID ¶
func (du *DeviceUpdate) SetProductID(id uuid.UUID) *DeviceUpdate
SetProductID sets the "product" edge to the Product entity by ID.
func (*DeviceUpdate) SetProductKey ¶
func (du *DeviceUpdate) SetProductKey(s string) *DeviceUpdate
SetProductKey sets the "productKey" field.
func (*DeviceUpdate) SetProductName ¶
func (du *DeviceUpdate) SetProductName(s string) *DeviceUpdate
SetProductName sets the "productName" field.
func (*DeviceUpdate) SetProp ¶
func (du *DeviceUpdate) SetProp(d *DeviceProp) *DeviceUpdate
SetProp sets the "prop" edge to the DeviceProp entity.
func (*DeviceUpdate) SetPropID ¶
func (du *DeviceUpdate) SetPropID(id uint64) *DeviceUpdate
SetPropID sets the "prop" edge to the DeviceProp entity by ID.
func (*DeviceUpdate) SetRegion ¶
func (du *DeviceUpdate) SetRegion(s string) *DeviceUpdate
SetRegion sets the "region" field.
func (*DeviceUpdate) SetSort ¶
func (du *DeviceUpdate) SetSort(u uint32) *DeviceUpdate
SetSort sets the "sort" field.
func (*DeviceUpdate) SetStatus ¶
func (du *DeviceUpdate) SetStatus(u uint8) *DeviceUpdate
SetStatus sets the "status" field.
func (*DeviceUpdate) SetUpdatedAt ¶
func (du *DeviceUpdate) SetUpdatedAt(t time.Time) *DeviceUpdate
SetUpdatedAt sets the "updated_at" field.
func (*DeviceUpdate) SetUtcActive ¶
func (du *DeviceUpdate) SetUtcActive(s string) *DeviceUpdate
SetUtcActive sets the "utcActive" field.
func (*DeviceUpdate) SetUtcCreate ¶
func (du *DeviceUpdate) SetUtcCreate(s string) *DeviceUpdate
SetUtcCreate sets the "utcCreate" field.
func (*DeviceUpdate) SetUtcModified ¶
func (du *DeviceUpdate) SetUtcModified(s string) *DeviceUpdate
SetUtcModified sets the "utcModified" field.
func (*DeviceUpdate) SetUtcOnline ¶
func (du *DeviceUpdate) SetUtcOnline(s string) *DeviceUpdate
SetUtcOnline sets the "utcOnline" field.
func (*DeviceUpdate) Where ¶
func (du *DeviceUpdate) Where(ps ...predicate.Device) *DeviceUpdate
Where appends a list predicates to the DeviceUpdate builder.
type DeviceUpdateOne ¶
type DeviceUpdateOne struct {
// contains filtered or unexported fields
}
DeviceUpdateOne is the builder for updating a single Device entity.
func (*DeviceUpdateOne) AddCompanies ¶
func (duo *DeviceUpdateOne) AddCompanies(c ...*Company) *DeviceUpdateOne
AddCompanies adds the "companies" edges to the Company entity.
func (*DeviceUpdateOne) AddCompanyIDs ¶
func (duo *DeviceUpdateOne) AddCompanyIDs(ids ...uint64) *DeviceUpdateOne
AddCompanyIDs adds the "companies" edge to the Company entity by IDs.
func (*DeviceUpdateOne) AddMemberIDs ¶
func (duo *DeviceUpdateOne) AddMemberIDs(ids ...uuid.UUID) *DeviceUpdateOne
AddMemberIDs adds the "members" edge to the Member entity by IDs.
func (*DeviceUpdateOne) AddMembers ¶
func (duo *DeviceUpdateOne) AddMembers(m ...*Member) *DeviceUpdateOne
AddMembers adds the "members" edges to the Member entity.
func (*DeviceUpdateOne) AddNodeType ¶
func (duo *DeviceUpdateOne) AddNodeType(i int32) *DeviceUpdateOne
AddNodeType adds i to the "nodeType" field.
func (*DeviceUpdateOne) AddSort ¶
func (duo *DeviceUpdateOne) AddSort(u int32) *DeviceUpdateOne
AddSort adds u to the "sort" field.
func (*DeviceUpdateOne) AddStatus ¶
func (duo *DeviceUpdateOne) AddStatus(u int8) *DeviceUpdateOne
AddStatus adds u to the "status" field.
func (*DeviceUpdateOne) ClearCompanies ¶
func (duo *DeviceUpdateOne) ClearCompanies() *DeviceUpdateOne
ClearCompanies clears all "companies" edges to the Company entity.
func (*DeviceUpdateOne) ClearDeviceSecret ¶
func (duo *DeviceUpdateOne) ClearDeviceSecret() *DeviceUpdateOne
ClearDeviceSecret clears the value of the "deviceSecret" field.
func (*DeviceUpdateOne) ClearDeviceStatus ¶
func (duo *DeviceUpdateOne) ClearDeviceStatus() *DeviceUpdateOne
ClearDeviceStatus clears the value of the "deviceStatus" field.
func (*DeviceUpdateOne) ClearFirmwareVersion ¶
func (duo *DeviceUpdateOne) ClearFirmwareVersion() *DeviceUpdateOne
ClearFirmwareVersion clears the value of the "firmwareVersion" field.
func (*DeviceUpdateOne) ClearGmtActive ¶
func (duo *DeviceUpdateOne) ClearGmtActive() *DeviceUpdateOne
ClearGmtActive clears the value of the "gmtActive" field.
func (*DeviceUpdateOne) ClearGmtCreate ¶
func (duo *DeviceUpdateOne) ClearGmtCreate() *DeviceUpdateOne
ClearGmtCreate clears the value of the "gmtCreate" field.
func (*DeviceUpdateOne) ClearGmtModified ¶
func (duo *DeviceUpdateOne) ClearGmtModified() *DeviceUpdateOne
ClearGmtModified clears the value of the "gmtModified" field.
func (*DeviceUpdateOne) ClearGmtOnline ¶
func (duo *DeviceUpdateOne) ClearGmtOnline() *DeviceUpdateOne
ClearGmtOnline clears the value of the "gmtOnline" field.
func (*DeviceUpdateOne) ClearIPAddress ¶
func (duo *DeviceUpdateOne) ClearIPAddress() *DeviceUpdateOne
ClearIPAddress clears the value of the "IPAddress" field.
func (*DeviceUpdateOne) ClearMembers ¶
func (duo *DeviceUpdateOne) ClearMembers() *DeviceUpdateOne
ClearMembers clears all "members" edges to the Member entity.
func (*DeviceUpdateOne) ClearNickname ¶
func (duo *DeviceUpdateOne) ClearNickname() *DeviceUpdateOne
ClearNickname clears the value of the "nickname" field.
func (*DeviceUpdateOne) ClearOperationalStatusCode ¶
func (duo *DeviceUpdateOne) ClearOperationalStatusCode() *DeviceUpdateOne
ClearOperationalStatusCode clears the value of the "operationalStatusCode" field.
func (*DeviceUpdateOne) ClearOwner ¶
func (duo *DeviceUpdateOne) ClearOwner() *DeviceUpdateOne
ClearOwner clears the value of the "owner" field.
func (*DeviceUpdateOne) ClearProduct ¶
func (duo *DeviceUpdateOne) ClearProduct() *DeviceUpdateOne
ClearProduct clears the "product" edge to the Product entity.
func (*DeviceUpdateOne) ClearProductName ¶
func (duo *DeviceUpdateOne) ClearProductName() *DeviceUpdateOne
ClearProductName clears the value of the "productName" field.
func (*DeviceUpdateOne) ClearProp ¶
func (duo *DeviceUpdateOne) ClearProp() *DeviceUpdateOne
ClearProp clears the "prop" edge to the DeviceProp entity.
func (*DeviceUpdateOne) ClearRegion ¶
func (duo *DeviceUpdateOne) ClearRegion() *DeviceUpdateOne
ClearRegion clears the value of the "region" field.
func (*DeviceUpdateOne) ClearStatus ¶
func (duo *DeviceUpdateOne) ClearStatus() *DeviceUpdateOne
ClearStatus clears the value of the "status" field.
func (*DeviceUpdateOne) ClearUtcActive ¶
func (duo *DeviceUpdateOne) ClearUtcActive() *DeviceUpdateOne
ClearUtcActive clears the value of the "utcActive" field.
func (*DeviceUpdateOne) ClearUtcCreate ¶
func (duo *DeviceUpdateOne) ClearUtcCreate() *DeviceUpdateOne
ClearUtcCreate clears the value of the "utcCreate" field.
func (*DeviceUpdateOne) ClearUtcModified ¶
func (duo *DeviceUpdateOne) ClearUtcModified() *DeviceUpdateOne
ClearUtcModified clears the value of the "utcModified" field.
func (*DeviceUpdateOne) ClearUtcOnline ¶
func (duo *DeviceUpdateOne) ClearUtcOnline() *DeviceUpdateOne
ClearUtcOnline clears the value of the "utcOnline" field.
func (*DeviceUpdateOne) Exec ¶
func (duo *DeviceUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*DeviceUpdateOne) ExecContext ¶
func (c *DeviceUpdateOne) 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 (*DeviceUpdateOne) ExecX ¶
func (duo *DeviceUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceUpdateOne) Modify ¶
func (duo *DeviceUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *DeviceUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*DeviceUpdateOne) Mutation ¶
func (duo *DeviceUpdateOne) Mutation() *DeviceMutation
Mutation returns the DeviceMutation object of the builder.
func (*DeviceUpdateOne) QueryContext ¶
func (c *DeviceUpdateOne) 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 (*DeviceUpdateOne) RemoveCompanies ¶
func (duo *DeviceUpdateOne) RemoveCompanies(c ...*Company) *DeviceUpdateOne
RemoveCompanies removes "companies" edges to Company entities.
func (*DeviceUpdateOne) RemoveCompanyIDs ¶
func (duo *DeviceUpdateOne) RemoveCompanyIDs(ids ...uint64) *DeviceUpdateOne
RemoveCompanyIDs removes the "companies" edge to Company entities by IDs.
func (*DeviceUpdateOne) RemoveMemberIDs ¶
func (duo *DeviceUpdateOne) RemoveMemberIDs(ids ...uuid.UUID) *DeviceUpdateOne
RemoveMemberIDs removes the "members" edge to Member entities by IDs.
func (*DeviceUpdateOne) RemoveMembers ¶
func (duo *DeviceUpdateOne) RemoveMembers(m ...*Member) *DeviceUpdateOne
RemoveMembers removes "members" edges to Member entities.
func (*DeviceUpdateOne) Save ¶
func (duo *DeviceUpdateOne) Save(ctx context.Context) (*Device, error)
Save executes the query and returns the updated Device entity.
func (*DeviceUpdateOne) SaveX ¶
func (duo *DeviceUpdateOne) SaveX(ctx context.Context) *Device
SaveX is like Save, but panics if an error occurs.
func (*DeviceUpdateOne) Select ¶
func (duo *DeviceUpdateOne) Select(field string, fields ...string) *DeviceUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*DeviceUpdateOne) SetDeviceName ¶
func (duo *DeviceUpdateOne) SetDeviceName(s string) *DeviceUpdateOne
SetDeviceName sets the "deviceName" field.
func (*DeviceUpdateOne) SetDeviceSecret ¶
func (duo *DeviceUpdateOne) SetDeviceSecret(s string) *DeviceUpdateOne
SetDeviceSecret sets the "deviceSecret" field.
func (*DeviceUpdateOne) SetDeviceStatus ¶
func (duo *DeviceUpdateOne) SetDeviceStatus(s string) *DeviceUpdateOne
SetDeviceStatus sets the "deviceStatus" field.
func (*DeviceUpdateOne) SetFirmwareVersion ¶
func (duo *DeviceUpdateOne) SetFirmwareVersion(s string) *DeviceUpdateOne
SetFirmwareVersion sets the "firmwareVersion" field.
func (*DeviceUpdateOne) SetGmtActive ¶
func (duo *DeviceUpdateOne) SetGmtActive(s string) *DeviceUpdateOne
SetGmtActive sets the "gmtActive" field.
func (*DeviceUpdateOne) SetGmtCreate ¶
func (duo *DeviceUpdateOne) SetGmtCreate(s string) *DeviceUpdateOne
SetGmtCreate sets the "gmtCreate" field.
func (*DeviceUpdateOne) SetGmtModified ¶
func (duo *DeviceUpdateOne) SetGmtModified(s string) *DeviceUpdateOne
SetGmtModified sets the "gmtModified" field.
func (*DeviceUpdateOne) SetGmtOnline ¶
func (duo *DeviceUpdateOne) SetGmtOnline(s string) *DeviceUpdateOne
SetGmtOnline sets the "gmtOnline" field.
func (*DeviceUpdateOne) SetIPAddress ¶
func (duo *DeviceUpdateOne) SetIPAddress(s string) *DeviceUpdateOne
SetIPAddress sets the "IPAddress" field.
func (*DeviceUpdateOne) SetIotID ¶
func (duo *DeviceUpdateOne) SetIotID(s string) *DeviceUpdateOne
SetIotID sets the "iotID" field.
func (*DeviceUpdateOne) SetNickname ¶
func (duo *DeviceUpdateOne) SetNickname(s string) *DeviceUpdateOne
SetNickname sets the "nickname" field.
func (*DeviceUpdateOne) SetNillableDeviceName ¶
func (duo *DeviceUpdateOne) SetNillableDeviceName(s *string) *DeviceUpdateOne
SetNillableDeviceName sets the "deviceName" field if the given value is not nil.
func (*DeviceUpdateOne) SetNillableDeviceSecret ¶
func (duo *DeviceUpdateOne) SetNillableDeviceSecret(s *string) *DeviceUpdateOne
SetNillableDeviceSecret sets the "deviceSecret" field if the given value is not nil.
func (*DeviceUpdateOne) SetNillableDeviceStatus ¶
func (duo *DeviceUpdateOne) SetNillableDeviceStatus(s *string) *DeviceUpdateOne
SetNillableDeviceStatus sets the "deviceStatus" field if the given value is not nil.
func (*DeviceUpdateOne) SetNillableFirmwareVersion ¶
func (duo *DeviceUpdateOne) SetNillableFirmwareVersion(s *string) *DeviceUpdateOne
SetNillableFirmwareVersion sets the "firmwareVersion" field if the given value is not nil.
func (*DeviceUpdateOne) SetNillableGmtActive ¶
func (duo *DeviceUpdateOne) SetNillableGmtActive(s *string) *DeviceUpdateOne
SetNillableGmtActive sets the "gmtActive" field if the given value is not nil.
func (*DeviceUpdateOne) SetNillableGmtCreate ¶
func (duo *DeviceUpdateOne) SetNillableGmtCreate(s *string) *DeviceUpdateOne
SetNillableGmtCreate sets the "gmtCreate" field if the given value is not nil.
func (*DeviceUpdateOne) SetNillableGmtModified ¶
func (duo *DeviceUpdateOne) SetNillableGmtModified(s *string) *DeviceUpdateOne
SetNillableGmtModified sets the "gmtModified" field if the given value is not nil.
func (*DeviceUpdateOne) SetNillableGmtOnline ¶
func (duo *DeviceUpdateOne) SetNillableGmtOnline(s *string) *DeviceUpdateOne
SetNillableGmtOnline sets the "gmtOnline" field if the given value is not nil.
func (*DeviceUpdateOne) SetNillableIPAddress ¶
func (duo *DeviceUpdateOne) SetNillableIPAddress(s *string) *DeviceUpdateOne
SetNillableIPAddress sets the "IPAddress" field if the given value is not nil.
func (*DeviceUpdateOne) SetNillableIotID ¶
func (duo *DeviceUpdateOne) SetNillableIotID(s *string) *DeviceUpdateOne
SetNillableIotID sets the "iotID" field if the given value is not nil.
func (*DeviceUpdateOne) SetNillableNickname ¶
func (duo *DeviceUpdateOne) SetNillableNickname(s *string) *DeviceUpdateOne
SetNillableNickname sets the "nickname" field if the given value is not nil.
func (*DeviceUpdateOne) SetNillableNodeType ¶
func (duo *DeviceUpdateOne) SetNillableNodeType(i *int32) *DeviceUpdateOne
SetNillableNodeType sets the "nodeType" field if the given value is not nil.
func (*DeviceUpdateOne) SetNillableOperationalStatusCode ¶
func (duo *DeviceUpdateOne) SetNillableOperationalStatusCode(s *string) *DeviceUpdateOne
SetNillableOperationalStatusCode sets the "operationalStatusCode" field if the given value is not nil.
func (*DeviceUpdateOne) SetNillableOwner ¶
func (duo *DeviceUpdateOne) SetNillableOwner(b *bool) *DeviceUpdateOne
SetNillableOwner sets the "owner" field if the given value is not nil.
func (*DeviceUpdateOne) SetNillableProductID ¶
func (duo *DeviceUpdateOne) SetNillableProductID(id *uuid.UUID) *DeviceUpdateOne
SetNillableProductID sets the "product" edge to the Product entity by ID if the given value is not nil.
func (*DeviceUpdateOne) SetNillableProductKey ¶
func (duo *DeviceUpdateOne) SetNillableProductKey(s *string) *DeviceUpdateOne
SetNillableProductKey sets the "productKey" field if the given value is not nil.
func (*DeviceUpdateOne) SetNillableProductName ¶
func (duo *DeviceUpdateOne) SetNillableProductName(s *string) *DeviceUpdateOne
SetNillableProductName sets the "productName" field if the given value is not nil.
func (*DeviceUpdateOne) SetNillablePropID ¶
func (duo *DeviceUpdateOne) SetNillablePropID(id *uint64) *DeviceUpdateOne
SetNillablePropID sets the "prop" edge to the DeviceProp entity by ID if the given value is not nil.
func (*DeviceUpdateOne) SetNillableRegion ¶
func (duo *DeviceUpdateOne) SetNillableRegion(s *string) *DeviceUpdateOne
SetNillableRegion sets the "region" field if the given value is not nil.
func (*DeviceUpdateOne) SetNillableSort ¶
func (duo *DeviceUpdateOne) SetNillableSort(u *uint32) *DeviceUpdateOne
SetNillableSort sets the "sort" field if the given value is not nil.
func (*DeviceUpdateOne) SetNillableStatus ¶
func (duo *DeviceUpdateOne) SetNillableStatus(u *uint8) *DeviceUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*DeviceUpdateOne) SetNillableUtcActive ¶
func (duo *DeviceUpdateOne) SetNillableUtcActive(s *string) *DeviceUpdateOne
SetNillableUtcActive sets the "utcActive" field if the given value is not nil.
func (*DeviceUpdateOne) SetNillableUtcCreate ¶
func (duo *DeviceUpdateOne) SetNillableUtcCreate(s *string) *DeviceUpdateOne
SetNillableUtcCreate sets the "utcCreate" field if the given value is not nil.
func (*DeviceUpdateOne) SetNillableUtcModified ¶
func (duo *DeviceUpdateOne) SetNillableUtcModified(s *string) *DeviceUpdateOne
SetNillableUtcModified sets the "utcModified" field if the given value is not nil.
func (*DeviceUpdateOne) SetNillableUtcOnline ¶
func (duo *DeviceUpdateOne) SetNillableUtcOnline(s *string) *DeviceUpdateOne
SetNillableUtcOnline sets the "utcOnline" field if the given value is not nil.
func (*DeviceUpdateOne) SetNodeType ¶
func (duo *DeviceUpdateOne) SetNodeType(i int32) *DeviceUpdateOne
SetNodeType sets the "nodeType" field.
func (*DeviceUpdateOne) SetNotNilDeviceName ¶
func (d *DeviceUpdateOne) SetNotNilDeviceName(value *string) *DeviceUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpdateOne) SetNotNilDeviceSecret ¶
func (d *DeviceUpdateOne) SetNotNilDeviceSecret(value *string) *DeviceUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpdateOne) SetNotNilDeviceStatus ¶
func (d *DeviceUpdateOne) SetNotNilDeviceStatus(value *string) *DeviceUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpdateOne) SetNotNilFirmwareVersion ¶
func (d *DeviceUpdateOne) SetNotNilFirmwareVersion(value *string) *DeviceUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpdateOne) SetNotNilGmtActive ¶
func (d *DeviceUpdateOne) SetNotNilGmtActive(value *string) *DeviceUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpdateOne) SetNotNilGmtCreate ¶
func (d *DeviceUpdateOne) SetNotNilGmtCreate(value *string) *DeviceUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpdateOne) SetNotNilGmtModified ¶
func (d *DeviceUpdateOne) SetNotNilGmtModified(value *string) *DeviceUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpdateOne) SetNotNilGmtOnline ¶
func (d *DeviceUpdateOne) SetNotNilGmtOnline(value *string) *DeviceUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpdateOne) SetNotNilIPAddress ¶
func (d *DeviceUpdateOne) SetNotNilIPAddress(value *string) *DeviceUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpdateOne) SetNotNilIotID ¶
func (d *DeviceUpdateOne) SetNotNilIotID(value *string) *DeviceUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpdateOne) SetNotNilNickname ¶
func (d *DeviceUpdateOne) SetNotNilNickname(value *string) *DeviceUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpdateOne) SetNotNilNodeType ¶
func (d *DeviceUpdateOne) SetNotNilNodeType(value *int32) *DeviceUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpdateOne) SetNotNilOperationalStatusCode ¶
func (d *DeviceUpdateOne) SetNotNilOperationalStatusCode(value *string) *DeviceUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpdateOne) SetNotNilOwner ¶
func (d *DeviceUpdateOne) SetNotNilOwner(value *bool) *DeviceUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpdateOne) SetNotNilProductKey ¶
func (d *DeviceUpdateOne) SetNotNilProductKey(value *string) *DeviceUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpdateOne) SetNotNilProductName ¶
func (d *DeviceUpdateOne) SetNotNilProductName(value *string) *DeviceUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpdateOne) SetNotNilRegion ¶
func (d *DeviceUpdateOne) SetNotNilRegion(value *string) *DeviceUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpdateOne) SetNotNilSort ¶
func (d *DeviceUpdateOne) SetNotNilSort(value *uint32) *DeviceUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpdateOne) SetNotNilStatus ¶
func (d *DeviceUpdateOne) SetNotNilStatus(value *uint8) *DeviceUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpdateOne) SetNotNilUpdatedAt ¶
func (d *DeviceUpdateOne) SetNotNilUpdatedAt(value *time.Time) *DeviceUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpdateOne) SetNotNilUtcActive ¶
func (d *DeviceUpdateOne) SetNotNilUtcActive(value *string) *DeviceUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpdateOne) SetNotNilUtcCreate ¶
func (d *DeviceUpdateOne) SetNotNilUtcCreate(value *string) *DeviceUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpdateOne) SetNotNilUtcModified ¶
func (d *DeviceUpdateOne) SetNotNilUtcModified(value *string) *DeviceUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpdateOne) SetNotNilUtcOnline ¶
func (d *DeviceUpdateOne) SetNotNilUtcOnline(value *string) *DeviceUpdateOne
set field if value's pointer is not nil.
func (*DeviceUpdateOne) SetOperationalStatusCode ¶
func (duo *DeviceUpdateOne) SetOperationalStatusCode(s string) *DeviceUpdateOne
SetOperationalStatusCode sets the "operationalStatusCode" field.
func (*DeviceUpdateOne) SetOwner ¶
func (duo *DeviceUpdateOne) SetOwner(b bool) *DeviceUpdateOne
SetOwner sets the "owner" field.
func (*DeviceUpdateOne) SetProduct ¶
func (duo *DeviceUpdateOne) SetProduct(p *Product) *DeviceUpdateOne
SetProduct sets the "product" edge to the Product entity.
func (*DeviceUpdateOne) SetProductID ¶
func (duo *DeviceUpdateOne) SetProductID(id uuid.UUID) *DeviceUpdateOne
SetProductID sets the "product" edge to the Product entity by ID.
func (*DeviceUpdateOne) SetProductKey ¶
func (duo *DeviceUpdateOne) SetProductKey(s string) *DeviceUpdateOne
SetProductKey sets the "productKey" field.
func (*DeviceUpdateOne) SetProductName ¶
func (duo *DeviceUpdateOne) SetProductName(s string) *DeviceUpdateOne
SetProductName sets the "productName" field.
func (*DeviceUpdateOne) SetProp ¶
func (duo *DeviceUpdateOne) SetProp(d *DeviceProp) *DeviceUpdateOne
SetProp sets the "prop" edge to the DeviceProp entity.
func (*DeviceUpdateOne) SetPropID ¶
func (duo *DeviceUpdateOne) SetPropID(id uint64) *DeviceUpdateOne
SetPropID sets the "prop" edge to the DeviceProp entity by ID.
func (*DeviceUpdateOne) SetRegion ¶
func (duo *DeviceUpdateOne) SetRegion(s string) *DeviceUpdateOne
SetRegion sets the "region" field.
func (*DeviceUpdateOne) SetSort ¶
func (duo *DeviceUpdateOne) SetSort(u uint32) *DeviceUpdateOne
SetSort sets the "sort" field.
func (*DeviceUpdateOne) SetStatus ¶
func (duo *DeviceUpdateOne) SetStatus(u uint8) *DeviceUpdateOne
SetStatus sets the "status" field.
func (*DeviceUpdateOne) SetUpdatedAt ¶
func (duo *DeviceUpdateOne) SetUpdatedAt(t time.Time) *DeviceUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*DeviceUpdateOne) SetUtcActive ¶
func (duo *DeviceUpdateOne) SetUtcActive(s string) *DeviceUpdateOne
SetUtcActive sets the "utcActive" field.
func (*DeviceUpdateOne) SetUtcCreate ¶
func (duo *DeviceUpdateOne) SetUtcCreate(s string) *DeviceUpdateOne
SetUtcCreate sets the "utcCreate" field.
func (*DeviceUpdateOne) SetUtcModified ¶
func (duo *DeviceUpdateOne) SetUtcModified(s string) *DeviceUpdateOne
SetUtcModified sets the "utcModified" field.
func (*DeviceUpdateOne) SetUtcOnline ¶
func (duo *DeviceUpdateOne) SetUtcOnline(s string) *DeviceUpdateOne
SetUtcOnline sets the "utcOnline" field.
func (*DeviceUpdateOne) Where ¶
func (duo *DeviceUpdateOne) Where(ps ...predicate.Device) *DeviceUpdateOne
Where appends a list predicates to the DeviceUpdate builder.
type DeviceUpsert ¶
DeviceUpsert is the "OnConflict" setter.
func (*DeviceUpsert) AddNodeType ¶
func (u *DeviceUpsert) AddNodeType(v int32) *DeviceUpsert
AddNodeType adds v to the "nodeType" field.
func (*DeviceUpsert) AddSort ¶
func (u *DeviceUpsert) AddSort(v uint32) *DeviceUpsert
AddSort adds v to the "sort" field.
func (*DeviceUpsert) AddStatus ¶
func (u *DeviceUpsert) AddStatus(v uint8) *DeviceUpsert
AddStatus adds v to the "status" field.
func (*DeviceUpsert) ClearDeviceSecret ¶
func (u *DeviceUpsert) ClearDeviceSecret() *DeviceUpsert
ClearDeviceSecret clears the value of the "deviceSecret" field.
func (*DeviceUpsert) ClearDeviceStatus ¶
func (u *DeviceUpsert) ClearDeviceStatus() *DeviceUpsert
ClearDeviceStatus clears the value of the "deviceStatus" field.
func (*DeviceUpsert) ClearFirmwareVersion ¶
func (u *DeviceUpsert) ClearFirmwareVersion() *DeviceUpsert
ClearFirmwareVersion clears the value of the "firmwareVersion" field.
func (*DeviceUpsert) ClearGmtActive ¶
func (u *DeviceUpsert) ClearGmtActive() *DeviceUpsert
ClearGmtActive clears the value of the "gmtActive" field.
func (*DeviceUpsert) ClearGmtCreate ¶
func (u *DeviceUpsert) ClearGmtCreate() *DeviceUpsert
ClearGmtCreate clears the value of the "gmtCreate" field.
func (*DeviceUpsert) ClearGmtModified ¶
func (u *DeviceUpsert) ClearGmtModified() *DeviceUpsert
ClearGmtModified clears the value of the "gmtModified" field.
func (*DeviceUpsert) ClearGmtOnline ¶
func (u *DeviceUpsert) ClearGmtOnline() *DeviceUpsert
ClearGmtOnline clears the value of the "gmtOnline" field.
func (*DeviceUpsert) ClearIPAddress ¶
func (u *DeviceUpsert) ClearIPAddress() *DeviceUpsert
ClearIPAddress clears the value of the "IPAddress" field.
func (*DeviceUpsert) ClearNickname ¶
func (u *DeviceUpsert) ClearNickname() *DeviceUpsert
ClearNickname clears the value of the "nickname" field.
func (*DeviceUpsert) ClearOperationalStatusCode ¶
func (u *DeviceUpsert) ClearOperationalStatusCode() *DeviceUpsert
ClearOperationalStatusCode clears the value of the "operationalStatusCode" field.
func (*DeviceUpsert) ClearOwner ¶
func (u *DeviceUpsert) ClearOwner() *DeviceUpsert
ClearOwner clears the value of the "owner" field.
func (*DeviceUpsert) ClearProductName ¶
func (u *DeviceUpsert) ClearProductName() *DeviceUpsert
ClearProductName clears the value of the "productName" field.
func (*DeviceUpsert) ClearRegion ¶
func (u *DeviceUpsert) ClearRegion() *DeviceUpsert
ClearRegion clears the value of the "region" field.
func (*DeviceUpsert) ClearStatus ¶
func (u *DeviceUpsert) ClearStatus() *DeviceUpsert
ClearStatus clears the value of the "status" field.
func (*DeviceUpsert) ClearUtcActive ¶
func (u *DeviceUpsert) ClearUtcActive() *DeviceUpsert
ClearUtcActive clears the value of the "utcActive" field.
func (*DeviceUpsert) ClearUtcCreate ¶
func (u *DeviceUpsert) ClearUtcCreate() *DeviceUpsert
ClearUtcCreate clears the value of the "utcCreate" field.
func (*DeviceUpsert) ClearUtcModified ¶
func (u *DeviceUpsert) ClearUtcModified() *DeviceUpsert
ClearUtcModified clears the value of the "utcModified" field.
func (*DeviceUpsert) ClearUtcOnline ¶
func (u *DeviceUpsert) ClearUtcOnline() *DeviceUpsert
ClearUtcOnline clears the value of the "utcOnline" field.
func (*DeviceUpsert) SetDeviceName ¶
func (u *DeviceUpsert) SetDeviceName(v string) *DeviceUpsert
SetDeviceName sets the "deviceName" field.
func (*DeviceUpsert) SetDeviceSecret ¶
func (u *DeviceUpsert) SetDeviceSecret(v string) *DeviceUpsert
SetDeviceSecret sets the "deviceSecret" field.
func (*DeviceUpsert) SetDeviceStatus ¶
func (u *DeviceUpsert) SetDeviceStatus(v string) *DeviceUpsert
SetDeviceStatus sets the "deviceStatus" field.
func (*DeviceUpsert) SetFirmwareVersion ¶
func (u *DeviceUpsert) SetFirmwareVersion(v string) *DeviceUpsert
SetFirmwareVersion sets the "firmwareVersion" field.
func (*DeviceUpsert) SetGmtActive ¶
func (u *DeviceUpsert) SetGmtActive(v string) *DeviceUpsert
SetGmtActive sets the "gmtActive" field.
func (*DeviceUpsert) SetGmtCreate ¶
func (u *DeviceUpsert) SetGmtCreate(v string) *DeviceUpsert
SetGmtCreate sets the "gmtCreate" field.
func (*DeviceUpsert) SetGmtModified ¶
func (u *DeviceUpsert) SetGmtModified(v string) *DeviceUpsert
SetGmtModified sets the "gmtModified" field.
func (*DeviceUpsert) SetGmtOnline ¶
func (u *DeviceUpsert) SetGmtOnline(v string) *DeviceUpsert
SetGmtOnline sets the "gmtOnline" field.
func (*DeviceUpsert) SetIPAddress ¶
func (u *DeviceUpsert) SetIPAddress(v string) *DeviceUpsert
SetIPAddress sets the "IPAddress" field.
func (*DeviceUpsert) SetIotID ¶
func (u *DeviceUpsert) SetIotID(v string) *DeviceUpsert
SetIotID sets the "iotID" field.
func (*DeviceUpsert) SetNickname ¶
func (u *DeviceUpsert) SetNickname(v string) *DeviceUpsert
SetNickname sets the "nickname" field.
func (*DeviceUpsert) SetNodeType ¶
func (u *DeviceUpsert) SetNodeType(v int32) *DeviceUpsert
SetNodeType sets the "nodeType" field.
func (*DeviceUpsert) SetOperationalStatusCode ¶
func (u *DeviceUpsert) SetOperationalStatusCode(v string) *DeviceUpsert
SetOperationalStatusCode sets the "operationalStatusCode" field.
func (*DeviceUpsert) SetOwner ¶
func (u *DeviceUpsert) SetOwner(v bool) *DeviceUpsert
SetOwner sets the "owner" field.
func (*DeviceUpsert) SetProductKey ¶
func (u *DeviceUpsert) SetProductKey(v string) *DeviceUpsert
SetProductKey sets the "productKey" field.
func (*DeviceUpsert) SetProductName ¶
func (u *DeviceUpsert) SetProductName(v string) *DeviceUpsert
SetProductName sets the "productName" field.
func (*DeviceUpsert) SetRegion ¶
func (u *DeviceUpsert) SetRegion(v string) *DeviceUpsert
SetRegion sets the "region" field.
func (*DeviceUpsert) SetSort ¶
func (u *DeviceUpsert) SetSort(v uint32) *DeviceUpsert
SetSort sets the "sort" field.
func (*DeviceUpsert) SetStatus ¶
func (u *DeviceUpsert) SetStatus(v uint8) *DeviceUpsert
SetStatus sets the "status" field.
func (*DeviceUpsert) SetUpdatedAt ¶
func (u *DeviceUpsert) SetUpdatedAt(v time.Time) *DeviceUpsert
SetUpdatedAt sets the "updated_at" field.
func (*DeviceUpsert) SetUtcActive ¶
func (u *DeviceUpsert) SetUtcActive(v string) *DeviceUpsert
SetUtcActive sets the "utcActive" field.
func (*DeviceUpsert) SetUtcCreate ¶
func (u *DeviceUpsert) SetUtcCreate(v string) *DeviceUpsert
SetUtcCreate sets the "utcCreate" field.
func (*DeviceUpsert) SetUtcModified ¶
func (u *DeviceUpsert) SetUtcModified(v string) *DeviceUpsert
SetUtcModified sets the "utcModified" field.
func (*DeviceUpsert) SetUtcOnline ¶
func (u *DeviceUpsert) SetUtcOnline(v string) *DeviceUpsert
SetUtcOnline sets the "utcOnline" field.
func (*DeviceUpsert) UpdateDeviceName ¶
func (u *DeviceUpsert) UpdateDeviceName() *DeviceUpsert
UpdateDeviceName sets the "deviceName" field to the value that was provided on create.
func (*DeviceUpsert) UpdateDeviceSecret ¶
func (u *DeviceUpsert) UpdateDeviceSecret() *DeviceUpsert
UpdateDeviceSecret sets the "deviceSecret" field to the value that was provided on create.
func (*DeviceUpsert) UpdateDeviceStatus ¶
func (u *DeviceUpsert) UpdateDeviceStatus() *DeviceUpsert
UpdateDeviceStatus sets the "deviceStatus" field to the value that was provided on create.
func (*DeviceUpsert) UpdateFirmwareVersion ¶
func (u *DeviceUpsert) UpdateFirmwareVersion() *DeviceUpsert
UpdateFirmwareVersion sets the "firmwareVersion" field to the value that was provided on create.
func (*DeviceUpsert) UpdateGmtActive ¶
func (u *DeviceUpsert) UpdateGmtActive() *DeviceUpsert
UpdateGmtActive sets the "gmtActive" field to the value that was provided on create.
func (*DeviceUpsert) UpdateGmtCreate ¶
func (u *DeviceUpsert) UpdateGmtCreate() *DeviceUpsert
UpdateGmtCreate sets the "gmtCreate" field to the value that was provided on create.
func (*DeviceUpsert) UpdateGmtModified ¶
func (u *DeviceUpsert) UpdateGmtModified() *DeviceUpsert
UpdateGmtModified sets the "gmtModified" field to the value that was provided on create.
func (*DeviceUpsert) UpdateGmtOnline ¶
func (u *DeviceUpsert) UpdateGmtOnline() *DeviceUpsert
UpdateGmtOnline sets the "gmtOnline" field to the value that was provided on create.
func (*DeviceUpsert) UpdateIPAddress ¶
func (u *DeviceUpsert) UpdateIPAddress() *DeviceUpsert
UpdateIPAddress sets the "IPAddress" field to the value that was provided on create.
func (*DeviceUpsert) UpdateIotID ¶
func (u *DeviceUpsert) UpdateIotID() *DeviceUpsert
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DeviceUpsert) UpdateNickname ¶
func (u *DeviceUpsert) UpdateNickname() *DeviceUpsert
UpdateNickname sets the "nickname" field to the value that was provided on create.
func (*DeviceUpsert) UpdateNodeType ¶
func (u *DeviceUpsert) UpdateNodeType() *DeviceUpsert
UpdateNodeType sets the "nodeType" field to the value that was provided on create.
func (*DeviceUpsert) UpdateOperationalStatusCode ¶
func (u *DeviceUpsert) UpdateOperationalStatusCode() *DeviceUpsert
UpdateOperationalStatusCode sets the "operationalStatusCode" field to the value that was provided on create.
func (*DeviceUpsert) UpdateOwner ¶
func (u *DeviceUpsert) UpdateOwner() *DeviceUpsert
UpdateOwner sets the "owner" field to the value that was provided on create.
func (*DeviceUpsert) UpdateProductKey ¶
func (u *DeviceUpsert) UpdateProductKey() *DeviceUpsert
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*DeviceUpsert) UpdateProductName ¶
func (u *DeviceUpsert) UpdateProductName() *DeviceUpsert
UpdateProductName sets the "productName" field to the value that was provided on create.
func (*DeviceUpsert) UpdateRegion ¶
func (u *DeviceUpsert) UpdateRegion() *DeviceUpsert
UpdateRegion sets the "region" field to the value that was provided on create.
func (*DeviceUpsert) UpdateSort ¶
func (u *DeviceUpsert) UpdateSort() *DeviceUpsert
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DeviceUpsert) UpdateStatus ¶
func (u *DeviceUpsert) UpdateStatus() *DeviceUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DeviceUpsert) UpdateUpdatedAt ¶
func (u *DeviceUpsert) UpdateUpdatedAt() *DeviceUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*DeviceUpsert) UpdateUtcActive ¶
func (u *DeviceUpsert) UpdateUtcActive() *DeviceUpsert
UpdateUtcActive sets the "utcActive" field to the value that was provided on create.
func (*DeviceUpsert) UpdateUtcCreate ¶
func (u *DeviceUpsert) UpdateUtcCreate() *DeviceUpsert
UpdateUtcCreate sets the "utcCreate" field to the value that was provided on create.
func (*DeviceUpsert) UpdateUtcModified ¶
func (u *DeviceUpsert) UpdateUtcModified() *DeviceUpsert
UpdateUtcModified sets the "utcModified" field to the value that was provided on create.
func (*DeviceUpsert) UpdateUtcOnline ¶
func (u *DeviceUpsert) UpdateUtcOnline() *DeviceUpsert
UpdateUtcOnline sets the "utcOnline" field to the value that was provided on create.
type DeviceUpsertBulk ¶
type DeviceUpsertBulk struct {
// contains filtered or unexported fields
}
DeviceUpsertBulk is the builder for "upsert"-ing a bulk of Device nodes.
func (*DeviceUpsertBulk) AddNodeType ¶
func (u *DeviceUpsertBulk) AddNodeType(v int32) *DeviceUpsertBulk
AddNodeType adds v to the "nodeType" field.
func (*DeviceUpsertBulk) AddSort ¶
func (u *DeviceUpsertBulk) AddSort(v uint32) *DeviceUpsertBulk
AddSort adds v to the "sort" field.
func (*DeviceUpsertBulk) AddStatus ¶
func (u *DeviceUpsertBulk) AddStatus(v uint8) *DeviceUpsertBulk
AddStatus adds v to the "status" field.
func (*DeviceUpsertBulk) ClearDeviceSecret ¶
func (u *DeviceUpsertBulk) ClearDeviceSecret() *DeviceUpsertBulk
ClearDeviceSecret clears the value of the "deviceSecret" field.
func (*DeviceUpsertBulk) ClearDeviceStatus ¶
func (u *DeviceUpsertBulk) ClearDeviceStatus() *DeviceUpsertBulk
ClearDeviceStatus clears the value of the "deviceStatus" field.
func (*DeviceUpsertBulk) ClearFirmwareVersion ¶
func (u *DeviceUpsertBulk) ClearFirmwareVersion() *DeviceUpsertBulk
ClearFirmwareVersion clears the value of the "firmwareVersion" field.
func (*DeviceUpsertBulk) ClearGmtActive ¶
func (u *DeviceUpsertBulk) ClearGmtActive() *DeviceUpsertBulk
ClearGmtActive clears the value of the "gmtActive" field.
func (*DeviceUpsertBulk) ClearGmtCreate ¶
func (u *DeviceUpsertBulk) ClearGmtCreate() *DeviceUpsertBulk
ClearGmtCreate clears the value of the "gmtCreate" field.
func (*DeviceUpsertBulk) ClearGmtModified ¶
func (u *DeviceUpsertBulk) ClearGmtModified() *DeviceUpsertBulk
ClearGmtModified clears the value of the "gmtModified" field.
func (*DeviceUpsertBulk) ClearGmtOnline ¶
func (u *DeviceUpsertBulk) ClearGmtOnline() *DeviceUpsertBulk
ClearGmtOnline clears the value of the "gmtOnline" field.
func (*DeviceUpsertBulk) ClearIPAddress ¶
func (u *DeviceUpsertBulk) ClearIPAddress() *DeviceUpsertBulk
ClearIPAddress clears the value of the "IPAddress" field.
func (*DeviceUpsertBulk) ClearNickname ¶
func (u *DeviceUpsertBulk) ClearNickname() *DeviceUpsertBulk
ClearNickname clears the value of the "nickname" field.
func (*DeviceUpsertBulk) ClearOperationalStatusCode ¶
func (u *DeviceUpsertBulk) ClearOperationalStatusCode() *DeviceUpsertBulk
ClearOperationalStatusCode clears the value of the "operationalStatusCode" field.
func (*DeviceUpsertBulk) ClearOwner ¶
func (u *DeviceUpsertBulk) ClearOwner() *DeviceUpsertBulk
ClearOwner clears the value of the "owner" field.
func (*DeviceUpsertBulk) ClearProductName ¶
func (u *DeviceUpsertBulk) ClearProductName() *DeviceUpsertBulk
ClearProductName clears the value of the "productName" field.
func (*DeviceUpsertBulk) ClearRegion ¶
func (u *DeviceUpsertBulk) ClearRegion() *DeviceUpsertBulk
ClearRegion clears the value of the "region" field.
func (*DeviceUpsertBulk) ClearStatus ¶
func (u *DeviceUpsertBulk) ClearStatus() *DeviceUpsertBulk
ClearStatus clears the value of the "status" field.
func (*DeviceUpsertBulk) ClearUtcActive ¶
func (u *DeviceUpsertBulk) ClearUtcActive() *DeviceUpsertBulk
ClearUtcActive clears the value of the "utcActive" field.
func (*DeviceUpsertBulk) ClearUtcCreate ¶
func (u *DeviceUpsertBulk) ClearUtcCreate() *DeviceUpsertBulk
ClearUtcCreate clears the value of the "utcCreate" field.
func (*DeviceUpsertBulk) ClearUtcModified ¶
func (u *DeviceUpsertBulk) ClearUtcModified() *DeviceUpsertBulk
ClearUtcModified clears the value of the "utcModified" field.
func (*DeviceUpsertBulk) ClearUtcOnline ¶
func (u *DeviceUpsertBulk) ClearUtcOnline() *DeviceUpsertBulk
ClearUtcOnline clears the value of the "utcOnline" field.
func (*DeviceUpsertBulk) DoNothing ¶
func (u *DeviceUpsertBulk) DoNothing() *DeviceUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*DeviceUpsertBulk) Exec ¶
func (u *DeviceUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceUpsertBulk) ExecX ¶
func (u *DeviceUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceUpsertBulk) Ignore ¶
func (u *DeviceUpsertBulk) Ignore() *DeviceUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Device.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*DeviceUpsertBulk) SetDeviceName ¶
func (u *DeviceUpsertBulk) SetDeviceName(v string) *DeviceUpsertBulk
SetDeviceName sets the "deviceName" field.
func (*DeviceUpsertBulk) SetDeviceSecret ¶
func (u *DeviceUpsertBulk) SetDeviceSecret(v string) *DeviceUpsertBulk
SetDeviceSecret sets the "deviceSecret" field.
func (*DeviceUpsertBulk) SetDeviceStatus ¶
func (u *DeviceUpsertBulk) SetDeviceStatus(v string) *DeviceUpsertBulk
SetDeviceStatus sets the "deviceStatus" field.
func (*DeviceUpsertBulk) SetFirmwareVersion ¶
func (u *DeviceUpsertBulk) SetFirmwareVersion(v string) *DeviceUpsertBulk
SetFirmwareVersion sets the "firmwareVersion" field.
func (*DeviceUpsertBulk) SetGmtActive ¶
func (u *DeviceUpsertBulk) SetGmtActive(v string) *DeviceUpsertBulk
SetGmtActive sets the "gmtActive" field.
func (*DeviceUpsertBulk) SetGmtCreate ¶
func (u *DeviceUpsertBulk) SetGmtCreate(v string) *DeviceUpsertBulk
SetGmtCreate sets the "gmtCreate" field.
func (*DeviceUpsertBulk) SetGmtModified ¶
func (u *DeviceUpsertBulk) SetGmtModified(v string) *DeviceUpsertBulk
SetGmtModified sets the "gmtModified" field.
func (*DeviceUpsertBulk) SetGmtOnline ¶
func (u *DeviceUpsertBulk) SetGmtOnline(v string) *DeviceUpsertBulk
SetGmtOnline sets the "gmtOnline" field.
func (*DeviceUpsertBulk) SetIPAddress ¶
func (u *DeviceUpsertBulk) SetIPAddress(v string) *DeviceUpsertBulk
SetIPAddress sets the "IPAddress" field.
func (*DeviceUpsertBulk) SetIotID ¶
func (u *DeviceUpsertBulk) SetIotID(v string) *DeviceUpsertBulk
SetIotID sets the "iotID" field.
func (*DeviceUpsertBulk) SetNickname ¶
func (u *DeviceUpsertBulk) SetNickname(v string) *DeviceUpsertBulk
SetNickname sets the "nickname" field.
func (*DeviceUpsertBulk) SetNodeType ¶
func (u *DeviceUpsertBulk) SetNodeType(v int32) *DeviceUpsertBulk
SetNodeType sets the "nodeType" field.
func (*DeviceUpsertBulk) SetOperationalStatusCode ¶
func (u *DeviceUpsertBulk) SetOperationalStatusCode(v string) *DeviceUpsertBulk
SetOperationalStatusCode sets the "operationalStatusCode" field.
func (*DeviceUpsertBulk) SetOwner ¶
func (u *DeviceUpsertBulk) SetOwner(v bool) *DeviceUpsertBulk
SetOwner sets the "owner" field.
func (*DeviceUpsertBulk) SetProductKey ¶
func (u *DeviceUpsertBulk) SetProductKey(v string) *DeviceUpsertBulk
SetProductKey sets the "productKey" field.
func (*DeviceUpsertBulk) SetProductName ¶
func (u *DeviceUpsertBulk) SetProductName(v string) *DeviceUpsertBulk
SetProductName sets the "productName" field.
func (*DeviceUpsertBulk) SetRegion ¶
func (u *DeviceUpsertBulk) SetRegion(v string) *DeviceUpsertBulk
SetRegion sets the "region" field.
func (*DeviceUpsertBulk) SetSort ¶
func (u *DeviceUpsertBulk) SetSort(v uint32) *DeviceUpsertBulk
SetSort sets the "sort" field.
func (*DeviceUpsertBulk) SetStatus ¶
func (u *DeviceUpsertBulk) SetStatus(v uint8) *DeviceUpsertBulk
SetStatus sets the "status" field.
func (*DeviceUpsertBulk) SetUpdatedAt ¶
func (u *DeviceUpsertBulk) SetUpdatedAt(v time.Time) *DeviceUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*DeviceUpsertBulk) SetUtcActive ¶
func (u *DeviceUpsertBulk) SetUtcActive(v string) *DeviceUpsertBulk
SetUtcActive sets the "utcActive" field.
func (*DeviceUpsertBulk) SetUtcCreate ¶
func (u *DeviceUpsertBulk) SetUtcCreate(v string) *DeviceUpsertBulk
SetUtcCreate sets the "utcCreate" field.
func (*DeviceUpsertBulk) SetUtcModified ¶
func (u *DeviceUpsertBulk) SetUtcModified(v string) *DeviceUpsertBulk
SetUtcModified sets the "utcModified" field.
func (*DeviceUpsertBulk) SetUtcOnline ¶
func (u *DeviceUpsertBulk) SetUtcOnline(v string) *DeviceUpsertBulk
SetUtcOnline sets the "utcOnline" field.
func (*DeviceUpsertBulk) Update ¶
func (u *DeviceUpsertBulk) Update(set func(*DeviceUpsert)) *DeviceUpsertBulk
Update allows overriding fields `UPDATE` values. See the DeviceCreateBulk.OnConflict documentation for more info.
func (*DeviceUpsertBulk) UpdateDeviceName ¶
func (u *DeviceUpsertBulk) UpdateDeviceName() *DeviceUpsertBulk
UpdateDeviceName sets the "deviceName" field to the value that was provided on create.
func (*DeviceUpsertBulk) UpdateDeviceSecret ¶
func (u *DeviceUpsertBulk) UpdateDeviceSecret() *DeviceUpsertBulk
UpdateDeviceSecret sets the "deviceSecret" field to the value that was provided on create.
func (*DeviceUpsertBulk) UpdateDeviceStatus ¶
func (u *DeviceUpsertBulk) UpdateDeviceStatus() *DeviceUpsertBulk
UpdateDeviceStatus sets the "deviceStatus" field to the value that was provided on create.
func (*DeviceUpsertBulk) UpdateFirmwareVersion ¶
func (u *DeviceUpsertBulk) UpdateFirmwareVersion() *DeviceUpsertBulk
UpdateFirmwareVersion sets the "firmwareVersion" field to the value that was provided on create.
func (*DeviceUpsertBulk) UpdateGmtActive ¶
func (u *DeviceUpsertBulk) UpdateGmtActive() *DeviceUpsertBulk
UpdateGmtActive sets the "gmtActive" field to the value that was provided on create.
func (*DeviceUpsertBulk) UpdateGmtCreate ¶
func (u *DeviceUpsertBulk) UpdateGmtCreate() *DeviceUpsertBulk
UpdateGmtCreate sets the "gmtCreate" field to the value that was provided on create.
func (*DeviceUpsertBulk) UpdateGmtModified ¶
func (u *DeviceUpsertBulk) UpdateGmtModified() *DeviceUpsertBulk
UpdateGmtModified sets the "gmtModified" field to the value that was provided on create.
func (*DeviceUpsertBulk) UpdateGmtOnline ¶
func (u *DeviceUpsertBulk) UpdateGmtOnline() *DeviceUpsertBulk
UpdateGmtOnline sets the "gmtOnline" field to the value that was provided on create.
func (*DeviceUpsertBulk) UpdateIPAddress ¶
func (u *DeviceUpsertBulk) UpdateIPAddress() *DeviceUpsertBulk
UpdateIPAddress sets the "IPAddress" field to the value that was provided on create.
func (*DeviceUpsertBulk) UpdateIotID ¶
func (u *DeviceUpsertBulk) UpdateIotID() *DeviceUpsertBulk
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DeviceUpsertBulk) UpdateNewValues ¶
func (u *DeviceUpsertBulk) UpdateNewValues() *DeviceUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.Device.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(device.FieldID) }), ). Exec(ctx)
func (*DeviceUpsertBulk) UpdateNickname ¶
func (u *DeviceUpsertBulk) UpdateNickname() *DeviceUpsertBulk
UpdateNickname sets the "nickname" field to the value that was provided on create.
func (*DeviceUpsertBulk) UpdateNodeType ¶
func (u *DeviceUpsertBulk) UpdateNodeType() *DeviceUpsertBulk
UpdateNodeType sets the "nodeType" field to the value that was provided on create.
func (*DeviceUpsertBulk) UpdateOperationalStatusCode ¶
func (u *DeviceUpsertBulk) UpdateOperationalStatusCode() *DeviceUpsertBulk
UpdateOperationalStatusCode sets the "operationalStatusCode" field to the value that was provided on create.
func (*DeviceUpsertBulk) UpdateOwner ¶
func (u *DeviceUpsertBulk) UpdateOwner() *DeviceUpsertBulk
UpdateOwner sets the "owner" field to the value that was provided on create.
func (*DeviceUpsertBulk) UpdateProductKey ¶
func (u *DeviceUpsertBulk) UpdateProductKey() *DeviceUpsertBulk
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*DeviceUpsertBulk) UpdateProductName ¶
func (u *DeviceUpsertBulk) UpdateProductName() *DeviceUpsertBulk
UpdateProductName sets the "productName" field to the value that was provided on create.
func (*DeviceUpsertBulk) UpdateRegion ¶
func (u *DeviceUpsertBulk) UpdateRegion() *DeviceUpsertBulk
UpdateRegion sets the "region" field to the value that was provided on create.
func (*DeviceUpsertBulk) UpdateSort ¶
func (u *DeviceUpsertBulk) UpdateSort() *DeviceUpsertBulk
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DeviceUpsertBulk) UpdateStatus ¶
func (u *DeviceUpsertBulk) UpdateStatus() *DeviceUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DeviceUpsertBulk) UpdateUpdatedAt ¶
func (u *DeviceUpsertBulk) UpdateUpdatedAt() *DeviceUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*DeviceUpsertBulk) UpdateUtcActive ¶
func (u *DeviceUpsertBulk) UpdateUtcActive() *DeviceUpsertBulk
UpdateUtcActive sets the "utcActive" field to the value that was provided on create.
func (*DeviceUpsertBulk) UpdateUtcCreate ¶
func (u *DeviceUpsertBulk) UpdateUtcCreate() *DeviceUpsertBulk
UpdateUtcCreate sets the "utcCreate" field to the value that was provided on create.
func (*DeviceUpsertBulk) UpdateUtcModified ¶
func (u *DeviceUpsertBulk) UpdateUtcModified() *DeviceUpsertBulk
UpdateUtcModified sets the "utcModified" field to the value that was provided on create.
func (*DeviceUpsertBulk) UpdateUtcOnline ¶
func (u *DeviceUpsertBulk) UpdateUtcOnline() *DeviceUpsertBulk
UpdateUtcOnline sets the "utcOnline" field to the value that was provided on create.
type DeviceUpsertOne ¶
type DeviceUpsertOne struct {
// contains filtered or unexported fields
}
DeviceUpsertOne is the builder for "upsert"-ing
one Device node.
func (*DeviceUpsertOne) AddNodeType ¶
func (u *DeviceUpsertOne) AddNodeType(v int32) *DeviceUpsertOne
AddNodeType adds v to the "nodeType" field.
func (*DeviceUpsertOne) AddSort ¶
func (u *DeviceUpsertOne) AddSort(v uint32) *DeviceUpsertOne
AddSort adds v to the "sort" field.
func (*DeviceUpsertOne) AddStatus ¶
func (u *DeviceUpsertOne) AddStatus(v uint8) *DeviceUpsertOne
AddStatus adds v to the "status" field.
func (*DeviceUpsertOne) ClearDeviceSecret ¶
func (u *DeviceUpsertOne) ClearDeviceSecret() *DeviceUpsertOne
ClearDeviceSecret clears the value of the "deviceSecret" field.
func (*DeviceUpsertOne) ClearDeviceStatus ¶
func (u *DeviceUpsertOne) ClearDeviceStatus() *DeviceUpsertOne
ClearDeviceStatus clears the value of the "deviceStatus" field.
func (*DeviceUpsertOne) ClearFirmwareVersion ¶
func (u *DeviceUpsertOne) ClearFirmwareVersion() *DeviceUpsertOne
ClearFirmwareVersion clears the value of the "firmwareVersion" field.
func (*DeviceUpsertOne) ClearGmtActive ¶
func (u *DeviceUpsertOne) ClearGmtActive() *DeviceUpsertOne
ClearGmtActive clears the value of the "gmtActive" field.
func (*DeviceUpsertOne) ClearGmtCreate ¶
func (u *DeviceUpsertOne) ClearGmtCreate() *DeviceUpsertOne
ClearGmtCreate clears the value of the "gmtCreate" field.
func (*DeviceUpsertOne) ClearGmtModified ¶
func (u *DeviceUpsertOne) ClearGmtModified() *DeviceUpsertOne
ClearGmtModified clears the value of the "gmtModified" field.
func (*DeviceUpsertOne) ClearGmtOnline ¶
func (u *DeviceUpsertOne) ClearGmtOnline() *DeviceUpsertOne
ClearGmtOnline clears the value of the "gmtOnline" field.
func (*DeviceUpsertOne) ClearIPAddress ¶
func (u *DeviceUpsertOne) ClearIPAddress() *DeviceUpsertOne
ClearIPAddress clears the value of the "IPAddress" field.
func (*DeviceUpsertOne) ClearNickname ¶
func (u *DeviceUpsertOne) ClearNickname() *DeviceUpsertOne
ClearNickname clears the value of the "nickname" field.
func (*DeviceUpsertOne) ClearOperationalStatusCode ¶
func (u *DeviceUpsertOne) ClearOperationalStatusCode() *DeviceUpsertOne
ClearOperationalStatusCode clears the value of the "operationalStatusCode" field.
func (*DeviceUpsertOne) ClearOwner ¶
func (u *DeviceUpsertOne) ClearOwner() *DeviceUpsertOne
ClearOwner clears the value of the "owner" field.
func (*DeviceUpsertOne) ClearProductName ¶
func (u *DeviceUpsertOne) ClearProductName() *DeviceUpsertOne
ClearProductName clears the value of the "productName" field.
func (*DeviceUpsertOne) ClearRegion ¶
func (u *DeviceUpsertOne) ClearRegion() *DeviceUpsertOne
ClearRegion clears the value of the "region" field.
func (*DeviceUpsertOne) ClearStatus ¶
func (u *DeviceUpsertOne) ClearStatus() *DeviceUpsertOne
ClearStatus clears the value of the "status" field.
func (*DeviceUpsertOne) ClearUtcActive ¶
func (u *DeviceUpsertOne) ClearUtcActive() *DeviceUpsertOne
ClearUtcActive clears the value of the "utcActive" field.
func (*DeviceUpsertOne) ClearUtcCreate ¶
func (u *DeviceUpsertOne) ClearUtcCreate() *DeviceUpsertOne
ClearUtcCreate clears the value of the "utcCreate" field.
func (*DeviceUpsertOne) ClearUtcModified ¶
func (u *DeviceUpsertOne) ClearUtcModified() *DeviceUpsertOne
ClearUtcModified clears the value of the "utcModified" field.
func (*DeviceUpsertOne) ClearUtcOnline ¶
func (u *DeviceUpsertOne) ClearUtcOnline() *DeviceUpsertOne
ClearUtcOnline clears the value of the "utcOnline" field.
func (*DeviceUpsertOne) DoNothing ¶
func (u *DeviceUpsertOne) DoNothing() *DeviceUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*DeviceUpsertOne) Exec ¶
func (u *DeviceUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*DeviceUpsertOne) ExecX ¶
func (u *DeviceUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DeviceUpsertOne) IDX ¶
func (u *DeviceUpsertOne) IDX(ctx context.Context) uuid.UUID
IDX is like ID, but panics if an error occurs.
func (*DeviceUpsertOne) Ignore ¶
func (u *DeviceUpsertOne) Ignore() *DeviceUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Device.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*DeviceUpsertOne) SetDeviceName ¶
func (u *DeviceUpsertOne) SetDeviceName(v string) *DeviceUpsertOne
SetDeviceName sets the "deviceName" field.
func (*DeviceUpsertOne) SetDeviceSecret ¶
func (u *DeviceUpsertOne) SetDeviceSecret(v string) *DeviceUpsertOne
SetDeviceSecret sets the "deviceSecret" field.
func (*DeviceUpsertOne) SetDeviceStatus ¶
func (u *DeviceUpsertOne) SetDeviceStatus(v string) *DeviceUpsertOne
SetDeviceStatus sets the "deviceStatus" field.
func (*DeviceUpsertOne) SetFirmwareVersion ¶
func (u *DeviceUpsertOne) SetFirmwareVersion(v string) *DeviceUpsertOne
SetFirmwareVersion sets the "firmwareVersion" field.
func (*DeviceUpsertOne) SetGmtActive ¶
func (u *DeviceUpsertOne) SetGmtActive(v string) *DeviceUpsertOne
SetGmtActive sets the "gmtActive" field.
func (*DeviceUpsertOne) SetGmtCreate ¶
func (u *DeviceUpsertOne) SetGmtCreate(v string) *DeviceUpsertOne
SetGmtCreate sets the "gmtCreate" field.
func (*DeviceUpsertOne) SetGmtModified ¶
func (u *DeviceUpsertOne) SetGmtModified(v string) *DeviceUpsertOne
SetGmtModified sets the "gmtModified" field.
func (*DeviceUpsertOne) SetGmtOnline ¶
func (u *DeviceUpsertOne) SetGmtOnline(v string) *DeviceUpsertOne
SetGmtOnline sets the "gmtOnline" field.
func (*DeviceUpsertOne) SetIPAddress ¶
func (u *DeviceUpsertOne) SetIPAddress(v string) *DeviceUpsertOne
SetIPAddress sets the "IPAddress" field.
func (*DeviceUpsertOne) SetIotID ¶
func (u *DeviceUpsertOne) SetIotID(v string) *DeviceUpsertOne
SetIotID sets the "iotID" field.
func (*DeviceUpsertOne) SetNickname ¶
func (u *DeviceUpsertOne) SetNickname(v string) *DeviceUpsertOne
SetNickname sets the "nickname" field.
func (*DeviceUpsertOne) SetNodeType ¶
func (u *DeviceUpsertOne) SetNodeType(v int32) *DeviceUpsertOne
SetNodeType sets the "nodeType" field.
func (*DeviceUpsertOne) SetOperationalStatusCode ¶
func (u *DeviceUpsertOne) SetOperationalStatusCode(v string) *DeviceUpsertOne
SetOperationalStatusCode sets the "operationalStatusCode" field.
func (*DeviceUpsertOne) SetOwner ¶
func (u *DeviceUpsertOne) SetOwner(v bool) *DeviceUpsertOne
SetOwner sets the "owner" field.
func (*DeviceUpsertOne) SetProductKey ¶
func (u *DeviceUpsertOne) SetProductKey(v string) *DeviceUpsertOne
SetProductKey sets the "productKey" field.
func (*DeviceUpsertOne) SetProductName ¶
func (u *DeviceUpsertOne) SetProductName(v string) *DeviceUpsertOne
SetProductName sets the "productName" field.
func (*DeviceUpsertOne) SetRegion ¶
func (u *DeviceUpsertOne) SetRegion(v string) *DeviceUpsertOne
SetRegion sets the "region" field.
func (*DeviceUpsertOne) SetSort ¶
func (u *DeviceUpsertOne) SetSort(v uint32) *DeviceUpsertOne
SetSort sets the "sort" field.
func (*DeviceUpsertOne) SetStatus ¶
func (u *DeviceUpsertOne) SetStatus(v uint8) *DeviceUpsertOne
SetStatus sets the "status" field.
func (*DeviceUpsertOne) SetUpdatedAt ¶
func (u *DeviceUpsertOne) SetUpdatedAt(v time.Time) *DeviceUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*DeviceUpsertOne) SetUtcActive ¶
func (u *DeviceUpsertOne) SetUtcActive(v string) *DeviceUpsertOne
SetUtcActive sets the "utcActive" field.
func (*DeviceUpsertOne) SetUtcCreate ¶
func (u *DeviceUpsertOne) SetUtcCreate(v string) *DeviceUpsertOne
SetUtcCreate sets the "utcCreate" field.
func (*DeviceUpsertOne) SetUtcModified ¶
func (u *DeviceUpsertOne) SetUtcModified(v string) *DeviceUpsertOne
SetUtcModified sets the "utcModified" field.
func (*DeviceUpsertOne) SetUtcOnline ¶
func (u *DeviceUpsertOne) SetUtcOnline(v string) *DeviceUpsertOne
SetUtcOnline sets the "utcOnline" field.
func (*DeviceUpsertOne) Update ¶
func (u *DeviceUpsertOne) Update(set func(*DeviceUpsert)) *DeviceUpsertOne
Update allows overriding fields `UPDATE` values. See the DeviceCreate.OnConflict documentation for more info.
func (*DeviceUpsertOne) UpdateDeviceName ¶
func (u *DeviceUpsertOne) UpdateDeviceName() *DeviceUpsertOne
UpdateDeviceName sets the "deviceName" field to the value that was provided on create.
func (*DeviceUpsertOne) UpdateDeviceSecret ¶
func (u *DeviceUpsertOne) UpdateDeviceSecret() *DeviceUpsertOne
UpdateDeviceSecret sets the "deviceSecret" field to the value that was provided on create.
func (*DeviceUpsertOne) UpdateDeviceStatus ¶
func (u *DeviceUpsertOne) UpdateDeviceStatus() *DeviceUpsertOne
UpdateDeviceStatus sets the "deviceStatus" field to the value that was provided on create.
func (*DeviceUpsertOne) UpdateFirmwareVersion ¶
func (u *DeviceUpsertOne) UpdateFirmwareVersion() *DeviceUpsertOne
UpdateFirmwareVersion sets the "firmwareVersion" field to the value that was provided on create.
func (*DeviceUpsertOne) UpdateGmtActive ¶
func (u *DeviceUpsertOne) UpdateGmtActive() *DeviceUpsertOne
UpdateGmtActive sets the "gmtActive" field to the value that was provided on create.
func (*DeviceUpsertOne) UpdateGmtCreate ¶
func (u *DeviceUpsertOne) UpdateGmtCreate() *DeviceUpsertOne
UpdateGmtCreate sets the "gmtCreate" field to the value that was provided on create.
func (*DeviceUpsertOne) UpdateGmtModified ¶
func (u *DeviceUpsertOne) UpdateGmtModified() *DeviceUpsertOne
UpdateGmtModified sets the "gmtModified" field to the value that was provided on create.
func (*DeviceUpsertOne) UpdateGmtOnline ¶
func (u *DeviceUpsertOne) UpdateGmtOnline() *DeviceUpsertOne
UpdateGmtOnline sets the "gmtOnline" field to the value that was provided on create.
func (*DeviceUpsertOne) UpdateIPAddress ¶
func (u *DeviceUpsertOne) UpdateIPAddress() *DeviceUpsertOne
UpdateIPAddress sets the "IPAddress" field to the value that was provided on create.
func (*DeviceUpsertOne) UpdateIotID ¶
func (u *DeviceUpsertOne) UpdateIotID() *DeviceUpsertOne
UpdateIotID sets the "iotID" field to the value that was provided on create.
func (*DeviceUpsertOne) UpdateNewValues ¶
func (u *DeviceUpsertOne) UpdateNewValues() *DeviceUpsertOne
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.Device.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(device.FieldID) }), ). Exec(ctx)
func (*DeviceUpsertOne) UpdateNickname ¶
func (u *DeviceUpsertOne) UpdateNickname() *DeviceUpsertOne
UpdateNickname sets the "nickname" field to the value that was provided on create.
func (*DeviceUpsertOne) UpdateNodeType ¶
func (u *DeviceUpsertOne) UpdateNodeType() *DeviceUpsertOne
UpdateNodeType sets the "nodeType" field to the value that was provided on create.
func (*DeviceUpsertOne) UpdateOperationalStatusCode ¶
func (u *DeviceUpsertOne) UpdateOperationalStatusCode() *DeviceUpsertOne
UpdateOperationalStatusCode sets the "operationalStatusCode" field to the value that was provided on create.
func (*DeviceUpsertOne) UpdateOwner ¶
func (u *DeviceUpsertOne) UpdateOwner() *DeviceUpsertOne
UpdateOwner sets the "owner" field to the value that was provided on create.
func (*DeviceUpsertOne) UpdateProductKey ¶
func (u *DeviceUpsertOne) UpdateProductKey() *DeviceUpsertOne
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*DeviceUpsertOne) UpdateProductName ¶
func (u *DeviceUpsertOne) UpdateProductName() *DeviceUpsertOne
UpdateProductName sets the "productName" field to the value that was provided on create.
func (*DeviceUpsertOne) UpdateRegion ¶
func (u *DeviceUpsertOne) UpdateRegion() *DeviceUpsertOne
UpdateRegion sets the "region" field to the value that was provided on create.
func (*DeviceUpsertOne) UpdateSort ¶
func (u *DeviceUpsertOne) UpdateSort() *DeviceUpsertOne
UpdateSort sets the "sort" field to the value that was provided on create.
func (*DeviceUpsertOne) UpdateStatus ¶
func (u *DeviceUpsertOne) UpdateStatus() *DeviceUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*DeviceUpsertOne) UpdateUpdatedAt ¶
func (u *DeviceUpsertOne) UpdateUpdatedAt() *DeviceUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*DeviceUpsertOne) UpdateUtcActive ¶
func (u *DeviceUpsertOne) UpdateUtcActive() *DeviceUpsertOne
UpdateUtcActive sets the "utcActive" field to the value that was provided on create.
func (*DeviceUpsertOne) UpdateUtcCreate ¶
func (u *DeviceUpsertOne) UpdateUtcCreate() *DeviceUpsertOne
UpdateUtcCreate sets the "utcCreate" field to the value that was provided on create.
func (*DeviceUpsertOne) UpdateUtcModified ¶
func (u *DeviceUpsertOne) UpdateUtcModified() *DeviceUpsertOne
UpdateUtcModified sets the "utcModified" field to the value that was provided on create.
func (*DeviceUpsertOne) UpdateUtcOnline ¶
func (u *DeviceUpsertOne) UpdateUtcOnline() *DeviceUpsertOne
UpdateUtcOnline sets the "utcOnline" 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 Member ¶
type Member struct { // ID of the ent. // UUID ID uuid.UUID `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"` // Company Id | 公司ID CompanyID uint64 `json:"companyID,omitempty"` // Type | 类型 Type int32 `json:"type,omitempty"` // Name | 姓名 Name string `json:"name,omitempty"` // Mobile | 手机号码 Mobile string `json:"mobile,omitempty"` // Avatar | 头像 Avatar string `json:"avatar,omitempty"` // Account | 账号 Account string `json:"account,omitempty"` // Password | 密码 Password string `json:"password,omitempty"` // Country Code | 国际区号 CountryCode string `json:"countryCode,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the MemberQuery when eager-loading is set. Edges MemberEdges `json:"edges"` // contains filtered or unexported fields }
Member is the model entity for the Member schema.
func (*Member) 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 (*Member) QueryCompanies ¶
func (m *Member) QueryCompanies() *CompanyQuery
QueryCompanies queries the "companies" edge of the Member entity.
func (*Member) QueryContext ¶
QueryContext allows calling the underlying QueryContext method of the driver if it is supported by it. See, database/sql#DB.QueryContext for more information.
func (*Member) QueryDevices ¶
func (m *Member) QueryDevices() *DeviceQuery
QueryDevices queries the "devices" edge of the Member entity.
func (*Member) Unwrap ¶
Unwrap unwraps the Member 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 (*Member) Update ¶
func (m *Member) Update() *MemberUpdateOne
Update returns a builder for updating this Member. Note that you need to call Member.Unwrap() before calling this method if this Member was returned from a transaction, and the transaction was committed or rolled back.
type MemberClient ¶
type MemberClient struct {
// contains filtered or unexported fields
}
MemberClient is a client for the Member schema.
func NewMemberClient ¶
func NewMemberClient(c config) *MemberClient
NewMemberClient returns a client for the Member from the given config.
func (*MemberClient) Create ¶
func (c *MemberClient) Create() *MemberCreate
Create returns a builder for creating a Member entity.
func (*MemberClient) CreateBulk ¶
func (c *MemberClient) CreateBulk(builders ...*MemberCreate) *MemberCreateBulk
CreateBulk returns a builder for creating a bulk of Member entities.
func (*MemberClient) Delete ¶
func (c *MemberClient) Delete() *MemberDelete
Delete returns a delete builder for Member.
func (*MemberClient) DeleteOne ¶
func (c *MemberClient) DeleteOne(m *Member) *MemberDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*MemberClient) DeleteOneID ¶
func (c *MemberClient) DeleteOneID(id uuid.UUID) *MemberDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*MemberClient) ExecContext ¶
func (c *MemberClient) 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 (*MemberClient) Intercept ¶
func (c *MemberClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `member.Intercept(f(g(h())))`.
func (*MemberClient) Interceptors ¶
func (c *MemberClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*MemberClient) MapCreateBulk ¶
func (c *MemberClient) MapCreateBulk(slice any, setFunc func(*MemberCreate, int)) *MemberCreateBulk
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 (*MemberClient) Query ¶
func (c *MemberClient) Query() *MemberQuery
Query returns a query builder for Member.
func (*MemberClient) QueryCompanies ¶
func (c *MemberClient) QueryCompanies(m *Member) *CompanyQuery
QueryCompanies queries the companies edge of a Member.
func (*MemberClient) QueryContext ¶
func (c *MemberClient) 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 (*MemberClient) QueryDevices ¶
func (c *MemberClient) QueryDevices(m *Member) *DeviceQuery
QueryDevices queries the devices edge of a Member.
func (*MemberClient) Update ¶
func (c *MemberClient) Update() *MemberUpdate
Update returns an update builder for Member.
func (*MemberClient) UpdateOne ¶
func (c *MemberClient) UpdateOne(m *Member) *MemberUpdateOne
UpdateOne returns an update builder for the given entity.
func (*MemberClient) UpdateOneID ¶
func (c *MemberClient) UpdateOneID(id uuid.UUID) *MemberUpdateOne
UpdateOneID returns an update builder for the given id.
func (*MemberClient) Use ¶
func (c *MemberClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `member.Hooks(f(g(h())))`.
type MemberCreate ¶
type MemberCreate struct {
// contains filtered or unexported fields
}
MemberCreate is the builder for creating a Member entity.
func (*MemberCreate) AddDeviceIDs ¶
func (mc *MemberCreate) AddDeviceIDs(ids ...uuid.UUID) *MemberCreate
AddDeviceIDs adds the "devices" edge to the Device entity by IDs.
func (*MemberCreate) AddDevices ¶
func (mc *MemberCreate) AddDevices(d ...*Device) *MemberCreate
AddDevices adds the "devices" edges to the Device entity.
func (*MemberCreate) Exec ¶
func (mc *MemberCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*MemberCreate) ExecContext ¶
func (c *MemberCreate) 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 (*MemberCreate) ExecX ¶
func (mc *MemberCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*MemberCreate) Mutation ¶
func (mc *MemberCreate) Mutation() *MemberMutation
Mutation returns the MemberMutation object of the builder.
func (*MemberCreate) OnConflict ¶
func (mc *MemberCreate) OnConflict(opts ...sql.ConflictOption) *MemberUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Member.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.MemberUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*MemberCreate) OnConflictColumns ¶
func (mc *MemberCreate) OnConflictColumns(columns ...string) *MemberUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Member.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*MemberCreate) QueryContext ¶
func (c *MemberCreate) 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 (*MemberCreate) Save ¶
func (mc *MemberCreate) Save(ctx context.Context) (*Member, error)
Save creates the Member in the database.
func (*MemberCreate) SaveX ¶
func (mc *MemberCreate) SaveX(ctx context.Context) *Member
SaveX calls Save and panics if Save returns an error.
func (*MemberCreate) SetAccount ¶
func (mc *MemberCreate) SetAccount(s string) *MemberCreate
SetAccount sets the "account" field.
func (*MemberCreate) SetAvatar ¶
func (mc *MemberCreate) SetAvatar(s string) *MemberCreate
SetAvatar sets the "avatar" field.
func (*MemberCreate) SetCompanies ¶
func (mc *MemberCreate) SetCompanies(c *Company) *MemberCreate
SetCompanies sets the "companies" edge to the Company entity.
func (*MemberCreate) SetCompaniesID ¶
func (mc *MemberCreate) SetCompaniesID(id uint64) *MemberCreate
SetCompaniesID sets the "companies" edge to the Company entity by ID.
func (*MemberCreate) SetCompanyID ¶
func (mc *MemberCreate) SetCompanyID(u uint64) *MemberCreate
SetCompanyID sets the "companyID" field.
func (*MemberCreate) SetCountryCode ¶
func (mc *MemberCreate) SetCountryCode(s string) *MemberCreate
SetCountryCode sets the "countryCode" field.
func (*MemberCreate) SetCreatedAt ¶
func (mc *MemberCreate) SetCreatedAt(t time.Time) *MemberCreate
SetCreatedAt sets the "created_at" field.
func (*MemberCreate) SetID ¶
func (mc *MemberCreate) SetID(u uuid.UUID) *MemberCreate
SetID sets the "id" field.
func (*MemberCreate) SetMobile ¶
func (mc *MemberCreate) SetMobile(s string) *MemberCreate
SetMobile sets the "mobile" field.
func (*MemberCreate) SetName ¶
func (mc *MemberCreate) SetName(s string) *MemberCreate
SetName sets the "name" field.
func (*MemberCreate) SetNillableAvatar ¶
func (mc *MemberCreate) SetNillableAvatar(s *string) *MemberCreate
SetNillableAvatar sets the "avatar" field if the given value is not nil.
func (*MemberCreate) SetNillableCompaniesID ¶
func (mc *MemberCreate) SetNillableCompaniesID(id *uint64) *MemberCreate
SetNillableCompaniesID sets the "companies" edge to the Company entity by ID if the given value is not nil.
func (*MemberCreate) SetNillableCountryCode ¶
func (mc *MemberCreate) SetNillableCountryCode(s *string) *MemberCreate
SetNillableCountryCode sets the "countryCode" field if the given value is not nil.
func (*MemberCreate) SetNillableCreatedAt ¶
func (mc *MemberCreate) SetNillableCreatedAt(t *time.Time) *MemberCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*MemberCreate) SetNillableID ¶
func (mc *MemberCreate) SetNillableID(u *uuid.UUID) *MemberCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*MemberCreate) SetNillableSort ¶
func (mc *MemberCreate) SetNillableSort(u *uint32) *MemberCreate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*MemberCreate) SetNillableStatus ¶
func (mc *MemberCreate) SetNillableStatus(u *uint8) *MemberCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*MemberCreate) SetNillableType ¶
func (mc *MemberCreate) SetNillableType(i *int32) *MemberCreate
SetNillableType sets the "type" field if the given value is not nil.
func (*MemberCreate) SetNillableUpdatedAt ¶
func (mc *MemberCreate) SetNillableUpdatedAt(t *time.Time) *MemberCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*MemberCreate) SetNotNilAccount ¶
func (m *MemberCreate) SetNotNilAccount(value *string) *MemberCreate
set field if value's pointer is not nil.
func (*MemberCreate) SetNotNilAvatar ¶
func (m *MemberCreate) SetNotNilAvatar(value *string) *MemberCreate
set field if value's pointer is not nil.
func (*MemberCreate) SetNotNilCompanyID ¶
func (m *MemberCreate) SetNotNilCompanyID(value *uint64) *MemberCreate
set field if value's pointer is not nil.
func (*MemberCreate) SetNotNilCountryCode ¶
func (m *MemberCreate) SetNotNilCountryCode(value *string) *MemberCreate
set field if value's pointer is not nil.
func (*MemberCreate) SetNotNilMobile ¶
func (m *MemberCreate) SetNotNilMobile(value *string) *MemberCreate
set field if value's pointer is not nil.
func (*MemberCreate) SetNotNilName ¶
func (m *MemberCreate) SetNotNilName(value *string) *MemberCreate
set field if value's pointer is not nil.
func (*MemberCreate) SetNotNilPassword ¶
func (m *MemberCreate) SetNotNilPassword(value *string) *MemberCreate
set field if value's pointer is not nil.
func (*MemberCreate) SetNotNilSort ¶
func (m *MemberCreate) SetNotNilSort(value *uint32) *MemberCreate
set field if value's pointer is not nil.
func (*MemberCreate) SetNotNilStatus ¶
func (m *MemberCreate) SetNotNilStatus(value *uint8) *MemberCreate
set field if value's pointer is not nil.
func (*MemberCreate) SetNotNilType ¶
func (m *MemberCreate) SetNotNilType(value *int32) *MemberCreate
set field if value's pointer is not nil.
func (*MemberCreate) SetNotNilUpdatedAt ¶
func (m *MemberCreate) SetNotNilUpdatedAt(value *time.Time) *MemberCreate
set field if value's pointer is not nil.
func (*MemberCreate) SetPassword ¶
func (mc *MemberCreate) SetPassword(s string) *MemberCreate
SetPassword sets the "password" field.
func (*MemberCreate) SetSort ¶
func (mc *MemberCreate) SetSort(u uint32) *MemberCreate
SetSort sets the "sort" field.
func (*MemberCreate) SetStatus ¶
func (mc *MemberCreate) SetStatus(u uint8) *MemberCreate
SetStatus sets the "status" field.
func (*MemberCreate) SetType ¶
func (mc *MemberCreate) SetType(i int32) *MemberCreate
SetType sets the "type" field.
func (*MemberCreate) SetUpdatedAt ¶
func (mc *MemberCreate) SetUpdatedAt(t time.Time) *MemberCreate
SetUpdatedAt sets the "updated_at" field.
type MemberCreateBulk ¶
type MemberCreateBulk struct {
// contains filtered or unexported fields
}
MemberCreateBulk is the builder for creating many Member entities in bulk.
func (*MemberCreateBulk) Exec ¶
func (mcb *MemberCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*MemberCreateBulk) ExecContext ¶
func (c *MemberCreateBulk) 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 (*MemberCreateBulk) ExecX ¶
func (mcb *MemberCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*MemberCreateBulk) OnConflict ¶
func (mcb *MemberCreateBulk) OnConflict(opts ...sql.ConflictOption) *MemberUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Member.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.MemberUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*MemberCreateBulk) OnConflictColumns ¶
func (mcb *MemberCreateBulk) OnConflictColumns(columns ...string) *MemberUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Member.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*MemberCreateBulk) QueryContext ¶
func (c *MemberCreateBulk) 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 MemberDelete ¶
type MemberDelete struct {
// contains filtered or unexported fields
}
MemberDelete is the builder for deleting a Member entity.
func (*MemberDelete) Exec ¶
func (md *MemberDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*MemberDelete) ExecContext ¶
func (c *MemberDelete) 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 (*MemberDelete) ExecX ¶
func (md *MemberDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*MemberDelete) QueryContext ¶
func (c *MemberDelete) 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 (*MemberDelete) Where ¶
func (md *MemberDelete) Where(ps ...predicate.Member) *MemberDelete
Where appends a list predicates to the MemberDelete builder.
type MemberDeleteOne ¶
type MemberDeleteOne struct {
// contains filtered or unexported fields
}
MemberDeleteOne is the builder for deleting a single Member entity.
func (*MemberDeleteOne) Exec ¶
func (mdo *MemberDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*MemberDeleteOne) ExecX ¶
func (mdo *MemberDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*MemberDeleteOne) Where ¶
func (mdo *MemberDeleteOne) Where(ps ...predicate.Member) *MemberDeleteOne
Where appends a list predicates to the MemberDelete builder.
type MemberEdges ¶
type MemberEdges struct { // Devices holds the value of the devices edge. Devices []*Device `json:"devices,omitempty"` // Companies holds the value of the companies edge. Companies *Company `json:"companies,omitempty"` // contains filtered or unexported fields }
MemberEdges holds the relations/edges for other nodes in the graph.
func (MemberEdges) CompaniesOrErr ¶
func (e MemberEdges) CompaniesOrErr() (*Company, error)
CompaniesOrErr returns the Companies value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (MemberEdges) DevicesOrErr ¶
func (e MemberEdges) DevicesOrErr() ([]*Device, error)
DevicesOrErr returns the Devices value or an error if the edge was not loaded in eager-loading.
type MemberGroupBy ¶
type MemberGroupBy struct {
// contains filtered or unexported fields
}
MemberGroupBy is the group-by builder for Member entities.
func (*MemberGroupBy) Aggregate ¶
func (mgb *MemberGroupBy) Aggregate(fns ...AggregateFunc) *MemberGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*MemberGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*MemberGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*MemberGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*MemberGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*MemberGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*MemberGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*MemberGroupBy) Scan ¶
func (mgb *MemberGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*MemberGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type MemberMutation ¶
type MemberMutation struct {
// contains filtered or unexported fields
}
MemberMutation represents an operation that mutates the Member nodes in the graph.
func (*MemberMutation) Account ¶
func (m *MemberMutation) Account() (r string, exists bool)
Account returns the value of the "account" field in the mutation.
func (*MemberMutation) AddCompanyID ¶
func (m *MemberMutation) AddCompanyID(u int64)
AddCompanyID adds u to the "companyID" field.
func (*MemberMutation) AddDeviceIDs ¶
func (m *MemberMutation) AddDeviceIDs(ids ...uuid.UUID)
AddDeviceIDs adds the "devices" edge to the Device entity by ids.
func (*MemberMutation) AddField ¶
func (m *MemberMutation) 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 (*MemberMutation) AddSort ¶
func (m *MemberMutation) AddSort(u int32)
AddSort adds u to the "sort" field.
func (*MemberMutation) AddStatus ¶
func (m *MemberMutation) AddStatus(u int8)
AddStatus adds u to the "status" field.
func (*MemberMutation) AddType ¶
func (m *MemberMutation) AddType(i int32)
AddType adds i to the "type" field.
func (*MemberMutation) AddedCompanyID ¶
func (m *MemberMutation) AddedCompanyID() (r int64, exists bool)
AddedCompanyID returns the value that was added to the "companyID" field in this mutation.
func (*MemberMutation) AddedEdges ¶
func (m *MemberMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*MemberMutation) AddedField ¶
func (m *MemberMutation) 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 (*MemberMutation) AddedFields ¶
func (m *MemberMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*MemberMutation) AddedIDs ¶
func (m *MemberMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*MemberMutation) AddedSort ¶
func (m *MemberMutation) AddedSort() (r int32, exists bool)
AddedSort returns the value that was added to the "sort" field in this mutation.
func (*MemberMutation) AddedStatus ¶
func (m *MemberMutation) AddedStatus() (r int8, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*MemberMutation) AddedType ¶
func (m *MemberMutation) AddedType() (r int32, exists bool)
AddedType returns the value that was added to the "type" field in this mutation.
func (*MemberMutation) Avatar ¶
func (m *MemberMutation) Avatar() (r string, exists bool)
Avatar returns the value of the "avatar" field in the mutation.
func (*MemberMutation) AvatarCleared ¶
func (m *MemberMutation) AvatarCleared() bool
AvatarCleared returns if the "avatar" field was cleared in this mutation.
func (*MemberMutation) ClearAvatar ¶
func (m *MemberMutation) ClearAvatar()
ClearAvatar clears the value of the "avatar" field.
func (*MemberMutation) ClearCompanies ¶
func (m *MemberMutation) ClearCompanies()
ClearCompanies clears the "companies" edge to the Company entity.
func (*MemberMutation) ClearCountryCode ¶
func (m *MemberMutation) ClearCountryCode()
ClearCountryCode clears the value of the "countryCode" field.
func (*MemberMutation) ClearDevices ¶
func (m *MemberMutation) ClearDevices()
ClearDevices clears the "devices" edge to the Device entity.
func (*MemberMutation) ClearEdge ¶
func (m *MemberMutation) 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 (*MemberMutation) ClearField ¶
func (m *MemberMutation) 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 (*MemberMutation) ClearStatus ¶
func (m *MemberMutation) ClearStatus()
ClearStatus clears the value of the "status" field.
func (*MemberMutation) ClearType ¶
func (m *MemberMutation) ClearType()
ClearType clears the value of the "type" field.
func (*MemberMutation) ClearedEdges ¶
func (m *MemberMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*MemberMutation) ClearedFields ¶
func (m *MemberMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (MemberMutation) Client ¶
func (m MemberMutation) 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 (*MemberMutation) CompaniesCleared ¶
func (m *MemberMutation) CompaniesCleared() bool
CompaniesCleared reports if the "companies" edge to the Company entity was cleared.
func (*MemberMutation) CompaniesID ¶
func (m *MemberMutation) CompaniesID() (id uint64, exists bool)
CompaniesID returns the "companies" edge ID in the mutation.
func (*MemberMutation) CompaniesIDs ¶
func (m *MemberMutation) CompaniesIDs() (ids []uint64)
CompaniesIDs returns the "companies" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use CompaniesID instead. It exists only for internal usage by the builders.
func (*MemberMutation) CompanyID ¶
func (m *MemberMutation) CompanyID() (r uint64, exists bool)
CompanyID returns the value of the "companyID" field in the mutation.
func (*MemberMutation) CountryCode ¶
func (m *MemberMutation) CountryCode() (r string, exists bool)
CountryCode returns the value of the "countryCode" field in the mutation.
func (*MemberMutation) CountryCodeCleared ¶
func (m *MemberMutation) CountryCodeCleared() bool
CountryCodeCleared returns if the "countryCode" field was cleared in this mutation.
func (*MemberMutation) CreatedAt ¶
func (m *MemberMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*MemberMutation) DevicesCleared ¶
func (m *MemberMutation) DevicesCleared() bool
DevicesCleared reports if the "devices" edge to the Device entity was cleared.
func (*MemberMutation) DevicesIDs ¶
func (m *MemberMutation) DevicesIDs() (ids []uuid.UUID)
DevicesIDs returns the "devices" edge IDs in the mutation.
func (*MemberMutation) EdgeCleared ¶
func (m *MemberMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*MemberMutation) ExecContext ¶
func (c *MemberMutation) 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 (*MemberMutation) Field ¶
func (m *MemberMutation) 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 (*MemberMutation) FieldCleared ¶
func (m *MemberMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*MemberMutation) Fields ¶
func (m *MemberMutation) 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 (*MemberMutation) GetType ¶
func (m *MemberMutation) GetType() (r int32, exists bool)
GetType returns the value of the "type" field in the mutation.
func (*MemberMutation) ID ¶
func (m *MemberMutation) ID() (id uuid.UUID, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*MemberMutation) IDs ¶
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 (*MemberMutation) Mobile ¶
func (m *MemberMutation) Mobile() (r string, exists bool)
Mobile returns the value of the "mobile" field in the mutation.
func (*MemberMutation) Name ¶
func (m *MemberMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*MemberMutation) OldAccount ¶
func (m *MemberMutation) OldAccount(ctx context.Context) (v string, err error)
OldAccount returns the old "account" field's value of the Member entity. If the Member object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*MemberMutation) OldAvatar ¶
func (m *MemberMutation) OldAvatar(ctx context.Context) (v string, err error)
OldAvatar returns the old "avatar" field's value of the Member entity. If the Member object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*MemberMutation) OldCompanyID ¶
func (m *MemberMutation) OldCompanyID(ctx context.Context) (v uint64, err error)
OldCompanyID returns the old "companyID" field's value of the Member entity. If the Member object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*MemberMutation) OldCountryCode ¶
func (m *MemberMutation) OldCountryCode(ctx context.Context) (v string, err error)
OldCountryCode returns the old "countryCode" field's value of the Member entity. If the Member object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*MemberMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Member entity. If the Member object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*MemberMutation) 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 (*MemberMutation) OldMobile ¶
func (m *MemberMutation) OldMobile(ctx context.Context) (v string, err error)
OldMobile returns the old "mobile" field's value of the Member entity. If the Member object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*MemberMutation) OldName ¶
func (m *MemberMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the Member entity. If the Member object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*MemberMutation) OldPassword ¶
func (m *MemberMutation) OldPassword(ctx context.Context) (v string, err error)
OldPassword returns the old "password" field's value of the Member entity. If the Member object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*MemberMutation) OldSort ¶
func (m *MemberMutation) OldSort(ctx context.Context) (v uint32, err error)
OldSort returns the old "sort" field's value of the Member entity. If the Member object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*MemberMutation) OldStatus ¶
func (m *MemberMutation) OldStatus(ctx context.Context) (v uint8, err error)
OldStatus returns the old "status" field's value of the Member entity. If the Member object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*MemberMutation) OldType ¶
func (m *MemberMutation) OldType(ctx context.Context) (v int32, err error)
OldType returns the old "type" field's value of the Member entity. If the Member object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*MemberMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Member entity. If the Member object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*MemberMutation) Password ¶
func (m *MemberMutation) Password() (r string, exists bool)
Password returns the value of the "password" field in the mutation.
func (*MemberMutation) QueryContext ¶
func (c *MemberMutation) 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 (*MemberMutation) RemoveDeviceIDs ¶
func (m *MemberMutation) RemoveDeviceIDs(ids ...uuid.UUID)
RemoveDeviceIDs removes the "devices" edge to the Device entity by IDs.
func (*MemberMutation) RemovedDevicesIDs ¶
func (m *MemberMutation) RemovedDevicesIDs() (ids []uuid.UUID)
RemovedDevices returns the removed IDs of the "devices" edge to the Device entity.
func (*MemberMutation) RemovedEdges ¶
func (m *MemberMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*MemberMutation) RemovedIDs ¶
func (m *MemberMutation) 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 (*MemberMutation) ResetAccount ¶
func (m *MemberMutation) ResetAccount()
ResetAccount resets all changes to the "account" field.
func (*MemberMutation) ResetAvatar ¶
func (m *MemberMutation) ResetAvatar()
ResetAvatar resets all changes to the "avatar" field.
func (*MemberMutation) ResetCompanies ¶
func (m *MemberMutation) ResetCompanies()
ResetCompanies resets all changes to the "companies" edge.
func (*MemberMutation) ResetCompanyID ¶
func (m *MemberMutation) ResetCompanyID()
ResetCompanyID resets all changes to the "companyID" field.
func (*MemberMutation) ResetCountryCode ¶
func (m *MemberMutation) ResetCountryCode()
ResetCountryCode resets all changes to the "countryCode" field.
func (*MemberMutation) ResetCreatedAt ¶
func (m *MemberMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*MemberMutation) ResetDevices ¶
func (m *MemberMutation) ResetDevices()
ResetDevices resets all changes to the "devices" edge.
func (*MemberMutation) ResetEdge ¶
func (m *MemberMutation) 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 (*MemberMutation) ResetField ¶
func (m *MemberMutation) 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 (*MemberMutation) ResetMobile ¶
func (m *MemberMutation) ResetMobile()
ResetMobile resets all changes to the "mobile" field.
func (*MemberMutation) ResetName ¶
func (m *MemberMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*MemberMutation) ResetPassword ¶
func (m *MemberMutation) ResetPassword()
ResetPassword resets all changes to the "password" field.
func (*MemberMutation) ResetSort ¶
func (m *MemberMutation) ResetSort()
ResetSort resets all changes to the "sort" field.
func (*MemberMutation) ResetStatus ¶
func (m *MemberMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*MemberMutation) ResetType ¶
func (m *MemberMutation) ResetType()
ResetType resets all changes to the "type" field.
func (*MemberMutation) ResetUpdatedAt ¶
func (m *MemberMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*MemberMutation) SetAccount ¶
func (m *MemberMutation) SetAccount(s string)
SetAccount sets the "account" field.
func (*MemberMutation) SetAvatar ¶
func (m *MemberMutation) SetAvatar(s string)
SetAvatar sets the "avatar" field.
func (*MemberMutation) SetCompaniesID ¶
func (m *MemberMutation) SetCompaniesID(id uint64)
SetCompaniesID sets the "companies" edge to the Company entity by id.
func (*MemberMutation) SetCompanyID ¶
func (m *MemberMutation) SetCompanyID(u uint64)
SetCompanyID sets the "companyID" field.
func (*MemberMutation) SetCountryCode ¶
func (m *MemberMutation) SetCountryCode(s string)
SetCountryCode sets the "countryCode" field.
func (*MemberMutation) SetCreatedAt ¶
func (m *MemberMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*MemberMutation) SetField ¶
func (m *MemberMutation) 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 (*MemberMutation) SetID ¶
func (m *MemberMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Member entities.
func (*MemberMutation) SetMobile ¶
func (m *MemberMutation) SetMobile(s string)
SetMobile sets the "mobile" field.
func (*MemberMutation) SetName ¶
func (m *MemberMutation) SetName(s string)
SetName sets the "name" field.
func (*MemberMutation) SetOp ¶
func (m *MemberMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*MemberMutation) SetPassword ¶
func (m *MemberMutation) SetPassword(s string)
SetPassword sets the "password" field.
func (*MemberMutation) SetSort ¶
func (m *MemberMutation) SetSort(u uint32)
SetSort sets the "sort" field.
func (*MemberMutation) SetStatus ¶
func (m *MemberMutation) SetStatus(u uint8)
SetStatus sets the "status" field.
func (*MemberMutation) SetType ¶
func (m *MemberMutation) SetType(i int32)
SetType sets the "type" field.
func (*MemberMutation) SetUpdatedAt ¶
func (m *MemberMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*MemberMutation) Sort ¶
func (m *MemberMutation) Sort() (r uint32, exists bool)
Sort returns the value of the "sort" field in the mutation.
func (*MemberMutation) Status ¶
func (m *MemberMutation) Status() (r uint8, exists bool)
Status returns the value of the "status" field in the mutation.
func (*MemberMutation) StatusCleared ¶
func (m *MemberMutation) StatusCleared() bool
StatusCleared returns if the "status" field was cleared in this mutation.
func (MemberMutation) Tx ¶
func (m MemberMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*MemberMutation) Type ¶
func (m *MemberMutation) Type() string
Type returns the node type of this mutation (Member).
func (*MemberMutation) TypeCleared ¶
func (m *MemberMutation) TypeCleared() bool
TypeCleared returns if the "type" field was cleared in this mutation.
func (*MemberMutation) UpdatedAt ¶
func (m *MemberMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*MemberMutation) Where ¶
func (m *MemberMutation) Where(ps ...predicate.Member)
Where appends a list predicates to the MemberMutation builder.
func (*MemberMutation) WhereP ¶
func (m *MemberMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the MemberMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type MemberPageList ¶
type MemberPageList struct { List []*Member `json:"list"` PageDetails *PageDetails `json:"pageDetails"` }
MemberPageList is Member PageList result.
type MemberPager ¶
type MemberPager struct { Order member.OrderOption Filter func(*MemberQuery) (*MemberQuery, error) }
func (*MemberPager) ApplyFilter ¶
func (p *MemberPager) ApplyFilter(query *MemberQuery) (*MemberQuery, error)
type MemberPaginateOption ¶
type MemberPaginateOption func(*MemberPager)
MemberPaginateOption enables pagination customization.
type MemberQuery ¶
type MemberQuery struct {
// contains filtered or unexported fields
}
MemberQuery is the builder for querying Member entities.
func (*MemberQuery) Aggregate ¶
func (mq *MemberQuery) Aggregate(fns ...AggregateFunc) *MemberSelect
Aggregate returns a MemberSelect configured with the given aggregations.
func (*MemberQuery) All ¶
func (mq *MemberQuery) All(ctx context.Context) ([]*Member, error)
All executes the query and returns a list of Members.
func (*MemberQuery) AllX ¶
func (mq *MemberQuery) AllX(ctx context.Context) []*Member
AllX is like All, but panics if an error occurs.
func (*MemberQuery) Clone ¶
func (mq *MemberQuery) Clone() *MemberQuery
Clone returns a duplicate of the MemberQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*MemberQuery) Count ¶
func (mq *MemberQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*MemberQuery) CountX ¶
func (mq *MemberQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*MemberQuery) ExecContext ¶
func (c *MemberQuery) 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 (*MemberQuery) Exist ¶
func (mq *MemberQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*MemberQuery) ExistX ¶
func (mq *MemberQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*MemberQuery) First ¶
func (mq *MemberQuery) First(ctx context.Context) (*Member, error)
First returns the first Member entity from the query. Returns a *NotFoundError when no Member was found.
func (*MemberQuery) FirstID ¶
FirstID returns the first Member ID from the query. Returns a *NotFoundError when no Member ID was found.
func (*MemberQuery) FirstIDX ¶
func (mq *MemberQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*MemberQuery) FirstX ¶
func (mq *MemberQuery) FirstX(ctx context.Context) *Member
FirstX is like First, but panics if an error occurs.
func (*MemberQuery) GroupBy ¶
func (mq *MemberQuery) GroupBy(field string, fields ...string) *MemberGroupBy
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.Member.Query(). GroupBy(member.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*MemberQuery) IDsX ¶
func (mq *MemberQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*MemberQuery) Limit ¶
func (mq *MemberQuery) Limit(limit int) *MemberQuery
Limit the number of records to be returned by this query.
func (*MemberQuery) Modify ¶
func (mq *MemberQuery) Modify(modifiers ...func(s *sql.Selector)) *MemberSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*MemberQuery) Offset ¶
func (mq *MemberQuery) Offset(offset int) *MemberQuery
Offset to start from.
func (*MemberQuery) Only ¶
func (mq *MemberQuery) Only(ctx context.Context) (*Member, error)
Only returns a single Member entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Member entity is found. Returns a *NotFoundError when no Member entities are found.
func (*MemberQuery) OnlyID ¶
OnlyID is like Only, but returns the only Member ID in the query. Returns a *NotSingularError when more than one Member ID is found. Returns a *NotFoundError when no entities are found.
func (*MemberQuery) OnlyIDX ¶
func (mq *MemberQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*MemberQuery) OnlyX ¶
func (mq *MemberQuery) OnlyX(ctx context.Context) *Member
OnlyX is like Only, but panics if an error occurs.
func (*MemberQuery) Order ¶
func (mq *MemberQuery) Order(o ...member.OrderOption) *MemberQuery
Order specifies how the records should be ordered.
func (*MemberQuery) Page ¶
func (m *MemberQuery) Page( ctx context.Context, pageNum uint64, pageSize uint64, opts ...MemberPaginateOption, ) (*MemberPageList, error)
func (*MemberQuery) QueryCompanies ¶
func (mq *MemberQuery) QueryCompanies() *CompanyQuery
QueryCompanies chains the current query on the "companies" edge.
func (*MemberQuery) QueryContext ¶
func (c *MemberQuery) 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 (*MemberQuery) QueryDevices ¶
func (mq *MemberQuery) QueryDevices() *DeviceQuery
QueryDevices chains the current query on the "devices" edge.
func (*MemberQuery) Select ¶
func (mq *MemberQuery) Select(fields ...string) *MemberSelect
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.Member.Query(). Select(member.FieldCreatedAt). Scan(ctx, &v)
func (*MemberQuery) Unique ¶
func (mq *MemberQuery) Unique(unique bool) *MemberQuery
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 (*MemberQuery) Where ¶
func (mq *MemberQuery) Where(ps ...predicate.Member) *MemberQuery
Where adds a new predicate for the MemberQuery builder.
func (*MemberQuery) WithCompanies ¶
func (mq *MemberQuery) WithCompanies(opts ...func(*CompanyQuery)) *MemberQuery
WithCompanies tells the query-builder to eager-load the nodes that are connected to the "companies" edge. The optional arguments are used to configure the query builder of the edge.
func (*MemberQuery) WithDevices ¶
func (mq *MemberQuery) WithDevices(opts ...func(*DeviceQuery)) *MemberQuery
WithDevices tells the query-builder to eager-load the nodes that are connected to the "devices" edge. The optional arguments are used to configure the query builder of the edge.
type MemberSelect ¶
type MemberSelect struct { *MemberQuery // contains filtered or unexported fields }
MemberSelect is the builder for selecting fields of Member entities.
func (*MemberSelect) Aggregate ¶
func (ms *MemberSelect) Aggregate(fns ...AggregateFunc) *MemberSelect
Aggregate adds the given aggregation functions to the selector query.
func (*MemberSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*MemberSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (MemberSelect) ExecContext ¶
func (c MemberSelect) 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 (*MemberSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*MemberSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*MemberSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*MemberSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*MemberSelect) Modify ¶
func (ms *MemberSelect) Modify(modifiers ...func(s *sql.Selector)) *MemberSelect
Modify adds a query modifier for attaching custom logic to queries.
func (MemberSelect) QueryContext ¶
func (c MemberSelect) 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 (*MemberSelect) Scan ¶
func (ms *MemberSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*MemberSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type MemberUpdate ¶
type MemberUpdate struct {
// contains filtered or unexported fields
}
MemberUpdate is the builder for updating Member entities.
func (*MemberUpdate) AddCompanyID ¶
func (mu *MemberUpdate) AddCompanyID(u int64) *MemberUpdate
AddCompanyID adds u to the "companyID" field.
func (*MemberUpdate) AddDeviceIDs ¶
func (mu *MemberUpdate) AddDeviceIDs(ids ...uuid.UUID) *MemberUpdate
AddDeviceIDs adds the "devices" edge to the Device entity by IDs.
func (*MemberUpdate) AddDevices ¶
func (mu *MemberUpdate) AddDevices(d ...*Device) *MemberUpdate
AddDevices adds the "devices" edges to the Device entity.
func (*MemberUpdate) AddSort ¶
func (mu *MemberUpdate) AddSort(u int32) *MemberUpdate
AddSort adds u to the "sort" field.
func (*MemberUpdate) AddStatus ¶
func (mu *MemberUpdate) AddStatus(u int8) *MemberUpdate
AddStatus adds u to the "status" field.
func (*MemberUpdate) AddType ¶
func (mu *MemberUpdate) AddType(i int32) *MemberUpdate
AddType adds i to the "type" field.
func (*MemberUpdate) ClearAvatar ¶
func (mu *MemberUpdate) ClearAvatar() *MemberUpdate
ClearAvatar clears the value of the "avatar" field.
func (*MemberUpdate) ClearCompanies ¶
func (mu *MemberUpdate) ClearCompanies() *MemberUpdate
ClearCompanies clears the "companies" edge to the Company entity.
func (*MemberUpdate) ClearCountryCode ¶
func (mu *MemberUpdate) ClearCountryCode() *MemberUpdate
ClearCountryCode clears the value of the "countryCode" field.
func (*MemberUpdate) ClearDevices ¶
func (mu *MemberUpdate) ClearDevices() *MemberUpdate
ClearDevices clears all "devices" edges to the Device entity.
func (*MemberUpdate) ClearStatus ¶
func (mu *MemberUpdate) ClearStatus() *MemberUpdate
ClearStatus clears the value of the "status" field.
func (*MemberUpdate) ClearType ¶
func (mu *MemberUpdate) ClearType() *MemberUpdate
ClearType clears the value of the "type" field.
func (*MemberUpdate) Exec ¶
func (mu *MemberUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*MemberUpdate) ExecContext ¶
func (c *MemberUpdate) 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 (*MemberUpdate) ExecX ¶
func (mu *MemberUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*MemberUpdate) Modify ¶
func (mu *MemberUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *MemberUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*MemberUpdate) Mutation ¶
func (mu *MemberUpdate) Mutation() *MemberMutation
Mutation returns the MemberMutation object of the builder.
func (*MemberUpdate) QueryContext ¶
func (c *MemberUpdate) 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 (*MemberUpdate) RemoveDeviceIDs ¶
func (mu *MemberUpdate) RemoveDeviceIDs(ids ...uuid.UUID) *MemberUpdate
RemoveDeviceIDs removes the "devices" edge to Device entities by IDs.
func (*MemberUpdate) RemoveDevices ¶
func (mu *MemberUpdate) RemoveDevices(d ...*Device) *MemberUpdate
RemoveDevices removes "devices" edges to Device entities.
func (*MemberUpdate) Save ¶
func (mu *MemberUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*MemberUpdate) SaveX ¶
func (mu *MemberUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*MemberUpdate) SetAccount ¶
func (mu *MemberUpdate) SetAccount(s string) *MemberUpdate
SetAccount sets the "account" field.
func (*MemberUpdate) SetAvatar ¶
func (mu *MemberUpdate) SetAvatar(s string) *MemberUpdate
SetAvatar sets the "avatar" field.
func (*MemberUpdate) SetCompanies ¶
func (mu *MemberUpdate) SetCompanies(c *Company) *MemberUpdate
SetCompanies sets the "companies" edge to the Company entity.
func (*MemberUpdate) SetCompaniesID ¶
func (mu *MemberUpdate) SetCompaniesID(id uint64) *MemberUpdate
SetCompaniesID sets the "companies" edge to the Company entity by ID.
func (*MemberUpdate) SetCompanyID ¶
func (mu *MemberUpdate) SetCompanyID(u uint64) *MemberUpdate
SetCompanyID sets the "companyID" field.
func (*MemberUpdate) SetCountryCode ¶
func (mu *MemberUpdate) SetCountryCode(s string) *MemberUpdate
SetCountryCode sets the "countryCode" field.
func (*MemberUpdate) SetMobile ¶
func (mu *MemberUpdate) SetMobile(s string) *MemberUpdate
SetMobile sets the "mobile" field.
func (*MemberUpdate) SetName ¶
func (mu *MemberUpdate) SetName(s string) *MemberUpdate
SetName sets the "name" field.
func (*MemberUpdate) SetNillableAccount ¶
func (mu *MemberUpdate) SetNillableAccount(s *string) *MemberUpdate
SetNillableAccount sets the "account" field if the given value is not nil.
func (*MemberUpdate) SetNillableAvatar ¶
func (mu *MemberUpdate) SetNillableAvatar(s *string) *MemberUpdate
SetNillableAvatar sets the "avatar" field if the given value is not nil.
func (*MemberUpdate) SetNillableCompaniesID ¶
func (mu *MemberUpdate) SetNillableCompaniesID(id *uint64) *MemberUpdate
SetNillableCompaniesID sets the "companies" edge to the Company entity by ID if the given value is not nil.
func (*MemberUpdate) SetNillableCompanyID ¶
func (mu *MemberUpdate) SetNillableCompanyID(u *uint64) *MemberUpdate
SetNillableCompanyID sets the "companyID" field if the given value is not nil.
func (*MemberUpdate) SetNillableCountryCode ¶
func (mu *MemberUpdate) SetNillableCountryCode(s *string) *MemberUpdate
SetNillableCountryCode sets the "countryCode" field if the given value is not nil.
func (*MemberUpdate) SetNillableMobile ¶
func (mu *MemberUpdate) SetNillableMobile(s *string) *MemberUpdate
SetNillableMobile sets the "mobile" field if the given value is not nil.
func (*MemberUpdate) SetNillableName ¶
func (mu *MemberUpdate) SetNillableName(s *string) *MemberUpdate
SetNillableName sets the "name" field if the given value is not nil.
func (*MemberUpdate) SetNillablePassword ¶
func (mu *MemberUpdate) SetNillablePassword(s *string) *MemberUpdate
SetNillablePassword sets the "password" field if the given value is not nil.
func (*MemberUpdate) SetNillableSort ¶
func (mu *MemberUpdate) SetNillableSort(u *uint32) *MemberUpdate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*MemberUpdate) SetNillableStatus ¶
func (mu *MemberUpdate) SetNillableStatus(u *uint8) *MemberUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*MemberUpdate) SetNillableType ¶
func (mu *MemberUpdate) SetNillableType(i *int32) *MemberUpdate
SetNillableType sets the "type" field if the given value is not nil.
func (*MemberUpdate) SetNotNilAccount ¶
func (m *MemberUpdate) SetNotNilAccount(value *string) *MemberUpdate
set field if value's pointer is not nil.
func (*MemberUpdate) SetNotNilAvatar ¶
func (m *MemberUpdate) SetNotNilAvatar(value *string) *MemberUpdate
set field if value's pointer is not nil.
func (*MemberUpdate) SetNotNilCompanyID ¶
func (m *MemberUpdate) SetNotNilCompanyID(value *uint64) *MemberUpdate
set field if value's pointer is not nil.
func (*MemberUpdate) SetNotNilCountryCode ¶
func (m *MemberUpdate) SetNotNilCountryCode(value *string) *MemberUpdate
set field if value's pointer is not nil.
func (*MemberUpdate) SetNotNilMobile ¶
func (m *MemberUpdate) SetNotNilMobile(value *string) *MemberUpdate
set field if value's pointer is not nil.
func (*MemberUpdate) SetNotNilName ¶
func (m *MemberUpdate) SetNotNilName(value *string) *MemberUpdate
set field if value's pointer is not nil.
func (*MemberUpdate) SetNotNilPassword ¶
func (m *MemberUpdate) SetNotNilPassword(value *string) *MemberUpdate
set field if value's pointer is not nil.
func (*MemberUpdate) SetNotNilSort ¶
func (m *MemberUpdate) SetNotNilSort(value *uint32) *MemberUpdate
set field if value's pointer is not nil.
func (*MemberUpdate) SetNotNilStatus ¶
func (m *MemberUpdate) SetNotNilStatus(value *uint8) *MemberUpdate
set field if value's pointer is not nil.
func (*MemberUpdate) SetNotNilType ¶
func (m *MemberUpdate) SetNotNilType(value *int32) *MemberUpdate
set field if value's pointer is not nil.
func (*MemberUpdate) SetNotNilUpdatedAt ¶
func (m *MemberUpdate) SetNotNilUpdatedAt(value *time.Time) *MemberUpdate
set field if value's pointer is not nil.
func (*MemberUpdate) SetPassword ¶
func (mu *MemberUpdate) SetPassword(s string) *MemberUpdate
SetPassword sets the "password" field.
func (*MemberUpdate) SetSort ¶
func (mu *MemberUpdate) SetSort(u uint32) *MemberUpdate
SetSort sets the "sort" field.
func (*MemberUpdate) SetStatus ¶
func (mu *MemberUpdate) SetStatus(u uint8) *MemberUpdate
SetStatus sets the "status" field.
func (*MemberUpdate) SetType ¶
func (mu *MemberUpdate) SetType(i int32) *MemberUpdate
SetType sets the "type" field.
func (*MemberUpdate) SetUpdatedAt ¶
func (mu *MemberUpdate) SetUpdatedAt(t time.Time) *MemberUpdate
SetUpdatedAt sets the "updated_at" field.
func (*MemberUpdate) Where ¶
func (mu *MemberUpdate) Where(ps ...predicate.Member) *MemberUpdate
Where appends a list predicates to the MemberUpdate builder.
type MemberUpdateOne ¶
type MemberUpdateOne struct {
// contains filtered or unexported fields
}
MemberUpdateOne is the builder for updating a single Member entity.
func (*MemberUpdateOne) AddCompanyID ¶
func (muo *MemberUpdateOne) AddCompanyID(u int64) *MemberUpdateOne
AddCompanyID adds u to the "companyID" field.
func (*MemberUpdateOne) AddDeviceIDs ¶
func (muo *MemberUpdateOne) AddDeviceIDs(ids ...uuid.UUID) *MemberUpdateOne
AddDeviceIDs adds the "devices" edge to the Device entity by IDs.
func (*MemberUpdateOne) AddDevices ¶
func (muo *MemberUpdateOne) AddDevices(d ...*Device) *MemberUpdateOne
AddDevices adds the "devices" edges to the Device entity.
func (*MemberUpdateOne) AddSort ¶
func (muo *MemberUpdateOne) AddSort(u int32) *MemberUpdateOne
AddSort adds u to the "sort" field.
func (*MemberUpdateOne) AddStatus ¶
func (muo *MemberUpdateOne) AddStatus(u int8) *MemberUpdateOne
AddStatus adds u to the "status" field.
func (*MemberUpdateOne) AddType ¶
func (muo *MemberUpdateOne) AddType(i int32) *MemberUpdateOne
AddType adds i to the "type" field.
func (*MemberUpdateOne) ClearAvatar ¶
func (muo *MemberUpdateOne) ClearAvatar() *MemberUpdateOne
ClearAvatar clears the value of the "avatar" field.
func (*MemberUpdateOne) ClearCompanies ¶
func (muo *MemberUpdateOne) ClearCompanies() *MemberUpdateOne
ClearCompanies clears the "companies" edge to the Company entity.
func (*MemberUpdateOne) ClearCountryCode ¶
func (muo *MemberUpdateOne) ClearCountryCode() *MemberUpdateOne
ClearCountryCode clears the value of the "countryCode" field.
func (*MemberUpdateOne) ClearDevices ¶
func (muo *MemberUpdateOne) ClearDevices() *MemberUpdateOne
ClearDevices clears all "devices" edges to the Device entity.
func (*MemberUpdateOne) ClearStatus ¶
func (muo *MemberUpdateOne) ClearStatus() *MemberUpdateOne
ClearStatus clears the value of the "status" field.
func (*MemberUpdateOne) ClearType ¶
func (muo *MemberUpdateOne) ClearType() *MemberUpdateOne
ClearType clears the value of the "type" field.
func (*MemberUpdateOne) Exec ¶
func (muo *MemberUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*MemberUpdateOne) ExecContext ¶
func (c *MemberUpdateOne) 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 (*MemberUpdateOne) ExecX ¶
func (muo *MemberUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*MemberUpdateOne) Modify ¶
func (muo *MemberUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *MemberUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*MemberUpdateOne) Mutation ¶
func (muo *MemberUpdateOne) Mutation() *MemberMutation
Mutation returns the MemberMutation object of the builder.
func (*MemberUpdateOne) QueryContext ¶
func (c *MemberUpdateOne) 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 (*MemberUpdateOne) RemoveDeviceIDs ¶
func (muo *MemberUpdateOne) RemoveDeviceIDs(ids ...uuid.UUID) *MemberUpdateOne
RemoveDeviceIDs removes the "devices" edge to Device entities by IDs.
func (*MemberUpdateOne) RemoveDevices ¶
func (muo *MemberUpdateOne) RemoveDevices(d ...*Device) *MemberUpdateOne
RemoveDevices removes "devices" edges to Device entities.
func (*MemberUpdateOne) Save ¶
func (muo *MemberUpdateOne) Save(ctx context.Context) (*Member, error)
Save executes the query and returns the updated Member entity.
func (*MemberUpdateOne) SaveX ¶
func (muo *MemberUpdateOne) SaveX(ctx context.Context) *Member
SaveX is like Save, but panics if an error occurs.
func (*MemberUpdateOne) Select ¶
func (muo *MemberUpdateOne) Select(field string, fields ...string) *MemberUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*MemberUpdateOne) SetAccount ¶
func (muo *MemberUpdateOne) SetAccount(s string) *MemberUpdateOne
SetAccount sets the "account" field.
func (*MemberUpdateOne) SetAvatar ¶
func (muo *MemberUpdateOne) SetAvatar(s string) *MemberUpdateOne
SetAvatar sets the "avatar" field.
func (*MemberUpdateOne) SetCompanies ¶
func (muo *MemberUpdateOne) SetCompanies(c *Company) *MemberUpdateOne
SetCompanies sets the "companies" edge to the Company entity.
func (*MemberUpdateOne) SetCompaniesID ¶
func (muo *MemberUpdateOne) SetCompaniesID(id uint64) *MemberUpdateOne
SetCompaniesID sets the "companies" edge to the Company entity by ID.
func (*MemberUpdateOne) SetCompanyID ¶
func (muo *MemberUpdateOne) SetCompanyID(u uint64) *MemberUpdateOne
SetCompanyID sets the "companyID" field.
func (*MemberUpdateOne) SetCountryCode ¶
func (muo *MemberUpdateOne) SetCountryCode(s string) *MemberUpdateOne
SetCountryCode sets the "countryCode" field.
func (*MemberUpdateOne) SetMobile ¶
func (muo *MemberUpdateOne) SetMobile(s string) *MemberUpdateOne
SetMobile sets the "mobile" field.
func (*MemberUpdateOne) SetName ¶
func (muo *MemberUpdateOne) SetName(s string) *MemberUpdateOne
SetName sets the "name" field.
func (*MemberUpdateOne) SetNillableAccount ¶
func (muo *MemberUpdateOne) SetNillableAccount(s *string) *MemberUpdateOne
SetNillableAccount sets the "account" field if the given value is not nil.
func (*MemberUpdateOne) SetNillableAvatar ¶
func (muo *MemberUpdateOne) SetNillableAvatar(s *string) *MemberUpdateOne
SetNillableAvatar sets the "avatar" field if the given value is not nil.
func (*MemberUpdateOne) SetNillableCompaniesID ¶
func (muo *MemberUpdateOne) SetNillableCompaniesID(id *uint64) *MemberUpdateOne
SetNillableCompaniesID sets the "companies" edge to the Company entity by ID if the given value is not nil.
func (*MemberUpdateOne) SetNillableCompanyID ¶
func (muo *MemberUpdateOne) SetNillableCompanyID(u *uint64) *MemberUpdateOne
SetNillableCompanyID sets the "companyID" field if the given value is not nil.
func (*MemberUpdateOne) SetNillableCountryCode ¶
func (muo *MemberUpdateOne) SetNillableCountryCode(s *string) *MemberUpdateOne
SetNillableCountryCode sets the "countryCode" field if the given value is not nil.
func (*MemberUpdateOne) SetNillableMobile ¶
func (muo *MemberUpdateOne) SetNillableMobile(s *string) *MemberUpdateOne
SetNillableMobile sets the "mobile" field if the given value is not nil.
func (*MemberUpdateOne) SetNillableName ¶
func (muo *MemberUpdateOne) SetNillableName(s *string) *MemberUpdateOne
SetNillableName sets the "name" field if the given value is not nil.
func (*MemberUpdateOne) SetNillablePassword ¶
func (muo *MemberUpdateOne) SetNillablePassword(s *string) *MemberUpdateOne
SetNillablePassword sets the "password" field if the given value is not nil.
func (*MemberUpdateOne) SetNillableSort ¶
func (muo *MemberUpdateOne) SetNillableSort(u *uint32) *MemberUpdateOne
SetNillableSort sets the "sort" field if the given value is not nil.
func (*MemberUpdateOne) SetNillableStatus ¶
func (muo *MemberUpdateOne) SetNillableStatus(u *uint8) *MemberUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*MemberUpdateOne) SetNillableType ¶
func (muo *MemberUpdateOne) SetNillableType(i *int32) *MemberUpdateOne
SetNillableType sets the "type" field if the given value is not nil.
func (*MemberUpdateOne) SetNotNilAccount ¶
func (m *MemberUpdateOne) SetNotNilAccount(value *string) *MemberUpdateOne
set field if value's pointer is not nil.
func (*MemberUpdateOne) SetNotNilAvatar ¶
func (m *MemberUpdateOne) SetNotNilAvatar(value *string) *MemberUpdateOne
set field if value's pointer is not nil.
func (*MemberUpdateOne) SetNotNilCompanyID ¶
func (m *MemberUpdateOne) SetNotNilCompanyID(value *uint64) *MemberUpdateOne
set field if value's pointer is not nil.
func (*MemberUpdateOne) SetNotNilCountryCode ¶
func (m *MemberUpdateOne) SetNotNilCountryCode(value *string) *MemberUpdateOne
set field if value's pointer is not nil.
func (*MemberUpdateOne) SetNotNilMobile ¶
func (m *MemberUpdateOne) SetNotNilMobile(value *string) *MemberUpdateOne
set field if value's pointer is not nil.
func (*MemberUpdateOne) SetNotNilName ¶
func (m *MemberUpdateOne) SetNotNilName(value *string) *MemberUpdateOne
set field if value's pointer is not nil.
func (*MemberUpdateOne) SetNotNilPassword ¶
func (m *MemberUpdateOne) SetNotNilPassword(value *string) *MemberUpdateOne
set field if value's pointer is not nil.
func (*MemberUpdateOne) SetNotNilSort ¶
func (m *MemberUpdateOne) SetNotNilSort(value *uint32) *MemberUpdateOne
set field if value's pointer is not nil.
func (*MemberUpdateOne) SetNotNilStatus ¶
func (m *MemberUpdateOne) SetNotNilStatus(value *uint8) *MemberUpdateOne
set field if value's pointer is not nil.
func (*MemberUpdateOne) SetNotNilType ¶
func (m *MemberUpdateOne) SetNotNilType(value *int32) *MemberUpdateOne
set field if value's pointer is not nil.
func (*MemberUpdateOne) SetNotNilUpdatedAt ¶
func (m *MemberUpdateOne) SetNotNilUpdatedAt(value *time.Time) *MemberUpdateOne
set field if value's pointer is not nil.
func (*MemberUpdateOne) SetPassword ¶
func (muo *MemberUpdateOne) SetPassword(s string) *MemberUpdateOne
SetPassword sets the "password" field.
func (*MemberUpdateOne) SetSort ¶
func (muo *MemberUpdateOne) SetSort(u uint32) *MemberUpdateOne
SetSort sets the "sort" field.
func (*MemberUpdateOne) SetStatus ¶
func (muo *MemberUpdateOne) SetStatus(u uint8) *MemberUpdateOne
SetStatus sets the "status" field.
func (*MemberUpdateOne) SetType ¶
func (muo *MemberUpdateOne) SetType(i int32) *MemberUpdateOne
SetType sets the "type" field.
func (*MemberUpdateOne) SetUpdatedAt ¶
func (muo *MemberUpdateOne) SetUpdatedAt(t time.Time) *MemberUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*MemberUpdateOne) Where ¶
func (muo *MemberUpdateOne) Where(ps ...predicate.Member) *MemberUpdateOne
Where appends a list predicates to the MemberUpdate builder.
type MemberUpsert ¶
MemberUpsert is the "OnConflict" setter.
func (*MemberUpsert) AddCompanyID ¶
func (u *MemberUpsert) AddCompanyID(v uint64) *MemberUpsert
AddCompanyID adds v to the "companyID" field.
func (*MemberUpsert) AddSort ¶
func (u *MemberUpsert) AddSort(v uint32) *MemberUpsert
AddSort adds v to the "sort" field.
func (*MemberUpsert) AddStatus ¶
func (u *MemberUpsert) AddStatus(v uint8) *MemberUpsert
AddStatus adds v to the "status" field.
func (*MemberUpsert) AddType ¶
func (u *MemberUpsert) AddType(v int32) *MemberUpsert
AddType adds v to the "type" field.
func (*MemberUpsert) ClearAvatar ¶
func (u *MemberUpsert) ClearAvatar() *MemberUpsert
ClearAvatar clears the value of the "avatar" field.
func (*MemberUpsert) ClearCountryCode ¶
func (u *MemberUpsert) ClearCountryCode() *MemberUpsert
ClearCountryCode clears the value of the "countryCode" field.
func (*MemberUpsert) ClearStatus ¶
func (u *MemberUpsert) ClearStatus() *MemberUpsert
ClearStatus clears the value of the "status" field.
func (*MemberUpsert) ClearType ¶
func (u *MemberUpsert) ClearType() *MemberUpsert
ClearType clears the value of the "type" field.
func (*MemberUpsert) SetAccount ¶
func (u *MemberUpsert) SetAccount(v string) *MemberUpsert
SetAccount sets the "account" field.
func (*MemberUpsert) SetAvatar ¶
func (u *MemberUpsert) SetAvatar(v string) *MemberUpsert
SetAvatar sets the "avatar" field.
func (*MemberUpsert) SetCompanyID ¶
func (u *MemberUpsert) SetCompanyID(v uint64) *MemberUpsert
SetCompanyID sets the "companyID" field.
func (*MemberUpsert) SetCountryCode ¶
func (u *MemberUpsert) SetCountryCode(v string) *MemberUpsert
SetCountryCode sets the "countryCode" field.
func (*MemberUpsert) SetMobile ¶
func (u *MemberUpsert) SetMobile(v string) *MemberUpsert
SetMobile sets the "mobile" field.
func (*MemberUpsert) SetName ¶
func (u *MemberUpsert) SetName(v string) *MemberUpsert
SetName sets the "name" field.
func (*MemberUpsert) SetPassword ¶
func (u *MemberUpsert) SetPassword(v string) *MemberUpsert
SetPassword sets the "password" field.
func (*MemberUpsert) SetSort ¶
func (u *MemberUpsert) SetSort(v uint32) *MemberUpsert
SetSort sets the "sort" field.
func (*MemberUpsert) SetStatus ¶
func (u *MemberUpsert) SetStatus(v uint8) *MemberUpsert
SetStatus sets the "status" field.
func (*MemberUpsert) SetType ¶
func (u *MemberUpsert) SetType(v int32) *MemberUpsert
SetType sets the "type" field.
func (*MemberUpsert) SetUpdatedAt ¶
func (u *MemberUpsert) SetUpdatedAt(v time.Time) *MemberUpsert
SetUpdatedAt sets the "updated_at" field.
func (*MemberUpsert) UpdateAccount ¶
func (u *MemberUpsert) UpdateAccount() *MemberUpsert
UpdateAccount sets the "account" field to the value that was provided on create.
func (*MemberUpsert) UpdateAvatar ¶
func (u *MemberUpsert) UpdateAvatar() *MemberUpsert
UpdateAvatar sets the "avatar" field to the value that was provided on create.
func (*MemberUpsert) UpdateCompanyID ¶
func (u *MemberUpsert) UpdateCompanyID() *MemberUpsert
UpdateCompanyID sets the "companyID" field to the value that was provided on create.
func (*MemberUpsert) UpdateCountryCode ¶
func (u *MemberUpsert) UpdateCountryCode() *MemberUpsert
UpdateCountryCode sets the "countryCode" field to the value that was provided on create.
func (*MemberUpsert) UpdateMobile ¶
func (u *MemberUpsert) UpdateMobile() *MemberUpsert
UpdateMobile sets the "mobile" field to the value that was provided on create.
func (*MemberUpsert) UpdateName ¶
func (u *MemberUpsert) UpdateName() *MemberUpsert
UpdateName sets the "name" field to the value that was provided on create.
func (*MemberUpsert) UpdatePassword ¶
func (u *MemberUpsert) UpdatePassword() *MemberUpsert
UpdatePassword sets the "password" field to the value that was provided on create.
func (*MemberUpsert) UpdateSort ¶
func (u *MemberUpsert) UpdateSort() *MemberUpsert
UpdateSort sets the "sort" field to the value that was provided on create.
func (*MemberUpsert) UpdateStatus ¶
func (u *MemberUpsert) UpdateStatus() *MemberUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*MemberUpsert) UpdateType ¶
func (u *MemberUpsert) UpdateType() *MemberUpsert
UpdateType sets the "type" field to the value that was provided on create.
func (*MemberUpsert) UpdateUpdatedAt ¶
func (u *MemberUpsert) UpdateUpdatedAt() *MemberUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type MemberUpsertBulk ¶
type MemberUpsertBulk struct {
// contains filtered or unexported fields
}
MemberUpsertBulk is the builder for "upsert"-ing a bulk of Member nodes.
func (*MemberUpsertBulk) AddCompanyID ¶
func (u *MemberUpsertBulk) AddCompanyID(v uint64) *MemberUpsertBulk
AddCompanyID adds v to the "companyID" field.
func (*MemberUpsertBulk) AddSort ¶
func (u *MemberUpsertBulk) AddSort(v uint32) *MemberUpsertBulk
AddSort adds v to the "sort" field.
func (*MemberUpsertBulk) AddStatus ¶
func (u *MemberUpsertBulk) AddStatus(v uint8) *MemberUpsertBulk
AddStatus adds v to the "status" field.
func (*MemberUpsertBulk) AddType ¶
func (u *MemberUpsertBulk) AddType(v int32) *MemberUpsertBulk
AddType adds v to the "type" field.
func (*MemberUpsertBulk) ClearAvatar ¶
func (u *MemberUpsertBulk) ClearAvatar() *MemberUpsertBulk
ClearAvatar clears the value of the "avatar" field.
func (*MemberUpsertBulk) ClearCountryCode ¶
func (u *MemberUpsertBulk) ClearCountryCode() *MemberUpsertBulk
ClearCountryCode clears the value of the "countryCode" field.
func (*MemberUpsertBulk) ClearStatus ¶
func (u *MemberUpsertBulk) ClearStatus() *MemberUpsertBulk
ClearStatus clears the value of the "status" field.
func (*MemberUpsertBulk) ClearType ¶
func (u *MemberUpsertBulk) ClearType() *MemberUpsertBulk
ClearType clears the value of the "type" field.
func (*MemberUpsertBulk) DoNothing ¶
func (u *MemberUpsertBulk) DoNothing() *MemberUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*MemberUpsertBulk) Exec ¶
func (u *MemberUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*MemberUpsertBulk) ExecX ¶
func (u *MemberUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*MemberUpsertBulk) Ignore ¶
func (u *MemberUpsertBulk) Ignore() *MemberUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Member.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*MemberUpsertBulk) SetAccount ¶
func (u *MemberUpsertBulk) SetAccount(v string) *MemberUpsertBulk
SetAccount sets the "account" field.
func (*MemberUpsertBulk) SetAvatar ¶
func (u *MemberUpsertBulk) SetAvatar(v string) *MemberUpsertBulk
SetAvatar sets the "avatar" field.
func (*MemberUpsertBulk) SetCompanyID ¶
func (u *MemberUpsertBulk) SetCompanyID(v uint64) *MemberUpsertBulk
SetCompanyID sets the "companyID" field.
func (*MemberUpsertBulk) SetCountryCode ¶
func (u *MemberUpsertBulk) SetCountryCode(v string) *MemberUpsertBulk
SetCountryCode sets the "countryCode" field.
func (*MemberUpsertBulk) SetMobile ¶
func (u *MemberUpsertBulk) SetMobile(v string) *MemberUpsertBulk
SetMobile sets the "mobile" field.
func (*MemberUpsertBulk) SetName ¶
func (u *MemberUpsertBulk) SetName(v string) *MemberUpsertBulk
SetName sets the "name" field.
func (*MemberUpsertBulk) SetPassword ¶
func (u *MemberUpsertBulk) SetPassword(v string) *MemberUpsertBulk
SetPassword sets the "password" field.
func (*MemberUpsertBulk) SetSort ¶
func (u *MemberUpsertBulk) SetSort(v uint32) *MemberUpsertBulk
SetSort sets the "sort" field.
func (*MemberUpsertBulk) SetStatus ¶
func (u *MemberUpsertBulk) SetStatus(v uint8) *MemberUpsertBulk
SetStatus sets the "status" field.
func (*MemberUpsertBulk) SetType ¶
func (u *MemberUpsertBulk) SetType(v int32) *MemberUpsertBulk
SetType sets the "type" field.
func (*MemberUpsertBulk) SetUpdatedAt ¶
func (u *MemberUpsertBulk) SetUpdatedAt(v time.Time) *MemberUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*MemberUpsertBulk) Update ¶
func (u *MemberUpsertBulk) Update(set func(*MemberUpsert)) *MemberUpsertBulk
Update allows overriding fields `UPDATE` values. See the MemberCreateBulk.OnConflict documentation for more info.
func (*MemberUpsertBulk) UpdateAccount ¶
func (u *MemberUpsertBulk) UpdateAccount() *MemberUpsertBulk
UpdateAccount sets the "account" field to the value that was provided on create.
func (*MemberUpsertBulk) UpdateAvatar ¶
func (u *MemberUpsertBulk) UpdateAvatar() *MemberUpsertBulk
UpdateAvatar sets the "avatar" field to the value that was provided on create.
func (*MemberUpsertBulk) UpdateCompanyID ¶
func (u *MemberUpsertBulk) UpdateCompanyID() *MemberUpsertBulk
UpdateCompanyID sets the "companyID" field to the value that was provided on create.
func (*MemberUpsertBulk) UpdateCountryCode ¶
func (u *MemberUpsertBulk) UpdateCountryCode() *MemberUpsertBulk
UpdateCountryCode sets the "countryCode" field to the value that was provided on create.
func (*MemberUpsertBulk) UpdateMobile ¶
func (u *MemberUpsertBulk) UpdateMobile() *MemberUpsertBulk
UpdateMobile sets the "mobile" field to the value that was provided on create.
func (*MemberUpsertBulk) UpdateName ¶
func (u *MemberUpsertBulk) UpdateName() *MemberUpsertBulk
UpdateName sets the "name" field to the value that was provided on create.
func (*MemberUpsertBulk) UpdateNewValues ¶
func (u *MemberUpsertBulk) UpdateNewValues() *MemberUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.Member.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(member.FieldID) }), ). Exec(ctx)
func (*MemberUpsertBulk) UpdatePassword ¶
func (u *MemberUpsertBulk) UpdatePassword() *MemberUpsertBulk
UpdatePassword sets the "password" field to the value that was provided on create.
func (*MemberUpsertBulk) UpdateSort ¶
func (u *MemberUpsertBulk) UpdateSort() *MemberUpsertBulk
UpdateSort sets the "sort" field to the value that was provided on create.
func (*MemberUpsertBulk) UpdateStatus ¶
func (u *MemberUpsertBulk) UpdateStatus() *MemberUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*MemberUpsertBulk) UpdateType ¶
func (u *MemberUpsertBulk) UpdateType() *MemberUpsertBulk
UpdateType sets the "type" field to the value that was provided on create.
func (*MemberUpsertBulk) UpdateUpdatedAt ¶
func (u *MemberUpsertBulk) UpdateUpdatedAt() *MemberUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type MemberUpsertOne ¶
type MemberUpsertOne struct {
// contains filtered or unexported fields
}
MemberUpsertOne is the builder for "upsert"-ing
one Member node.
func (*MemberUpsertOne) AddCompanyID ¶
func (u *MemberUpsertOne) AddCompanyID(v uint64) *MemberUpsertOne
AddCompanyID adds v to the "companyID" field.
func (*MemberUpsertOne) AddSort ¶
func (u *MemberUpsertOne) AddSort(v uint32) *MemberUpsertOne
AddSort adds v to the "sort" field.
func (*MemberUpsertOne) AddStatus ¶
func (u *MemberUpsertOne) AddStatus(v uint8) *MemberUpsertOne
AddStatus adds v to the "status" field.
func (*MemberUpsertOne) AddType ¶
func (u *MemberUpsertOne) AddType(v int32) *MemberUpsertOne
AddType adds v to the "type" field.
func (*MemberUpsertOne) ClearAvatar ¶
func (u *MemberUpsertOne) ClearAvatar() *MemberUpsertOne
ClearAvatar clears the value of the "avatar" field.
func (*MemberUpsertOne) ClearCountryCode ¶
func (u *MemberUpsertOne) ClearCountryCode() *MemberUpsertOne
ClearCountryCode clears the value of the "countryCode" field.
func (*MemberUpsertOne) ClearStatus ¶
func (u *MemberUpsertOne) ClearStatus() *MemberUpsertOne
ClearStatus clears the value of the "status" field.
func (*MemberUpsertOne) ClearType ¶
func (u *MemberUpsertOne) ClearType() *MemberUpsertOne
ClearType clears the value of the "type" field.
func (*MemberUpsertOne) DoNothing ¶
func (u *MemberUpsertOne) DoNothing() *MemberUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*MemberUpsertOne) Exec ¶
func (u *MemberUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*MemberUpsertOne) ExecX ¶
func (u *MemberUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*MemberUpsertOne) IDX ¶
func (u *MemberUpsertOne) IDX(ctx context.Context) uuid.UUID
IDX is like ID, but panics if an error occurs.
func (*MemberUpsertOne) Ignore ¶
func (u *MemberUpsertOne) Ignore() *MemberUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Member.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*MemberUpsertOne) SetAccount ¶
func (u *MemberUpsertOne) SetAccount(v string) *MemberUpsertOne
SetAccount sets the "account" field.
func (*MemberUpsertOne) SetAvatar ¶
func (u *MemberUpsertOne) SetAvatar(v string) *MemberUpsertOne
SetAvatar sets the "avatar" field.
func (*MemberUpsertOne) SetCompanyID ¶
func (u *MemberUpsertOne) SetCompanyID(v uint64) *MemberUpsertOne
SetCompanyID sets the "companyID" field.
func (*MemberUpsertOne) SetCountryCode ¶
func (u *MemberUpsertOne) SetCountryCode(v string) *MemberUpsertOne
SetCountryCode sets the "countryCode" field.
func (*MemberUpsertOne) SetMobile ¶
func (u *MemberUpsertOne) SetMobile(v string) *MemberUpsertOne
SetMobile sets the "mobile" field.
func (*MemberUpsertOne) SetName ¶
func (u *MemberUpsertOne) SetName(v string) *MemberUpsertOne
SetName sets the "name" field.
func (*MemberUpsertOne) SetPassword ¶
func (u *MemberUpsertOne) SetPassword(v string) *MemberUpsertOne
SetPassword sets the "password" field.
func (*MemberUpsertOne) SetSort ¶
func (u *MemberUpsertOne) SetSort(v uint32) *MemberUpsertOne
SetSort sets the "sort" field.
func (*MemberUpsertOne) SetStatus ¶
func (u *MemberUpsertOne) SetStatus(v uint8) *MemberUpsertOne
SetStatus sets the "status" field.
func (*MemberUpsertOne) SetType ¶
func (u *MemberUpsertOne) SetType(v int32) *MemberUpsertOne
SetType sets the "type" field.
func (*MemberUpsertOne) SetUpdatedAt ¶
func (u *MemberUpsertOne) SetUpdatedAt(v time.Time) *MemberUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*MemberUpsertOne) Update ¶
func (u *MemberUpsertOne) Update(set func(*MemberUpsert)) *MemberUpsertOne
Update allows overriding fields `UPDATE` values. See the MemberCreate.OnConflict documentation for more info.
func (*MemberUpsertOne) UpdateAccount ¶
func (u *MemberUpsertOne) UpdateAccount() *MemberUpsertOne
UpdateAccount sets the "account" field to the value that was provided on create.
func (*MemberUpsertOne) UpdateAvatar ¶
func (u *MemberUpsertOne) UpdateAvatar() *MemberUpsertOne
UpdateAvatar sets the "avatar" field to the value that was provided on create.
func (*MemberUpsertOne) UpdateCompanyID ¶
func (u *MemberUpsertOne) UpdateCompanyID() *MemberUpsertOne
UpdateCompanyID sets the "companyID" field to the value that was provided on create.
func (*MemberUpsertOne) UpdateCountryCode ¶
func (u *MemberUpsertOne) UpdateCountryCode() *MemberUpsertOne
UpdateCountryCode sets the "countryCode" field to the value that was provided on create.
func (*MemberUpsertOne) UpdateMobile ¶
func (u *MemberUpsertOne) UpdateMobile() *MemberUpsertOne
UpdateMobile sets the "mobile" field to the value that was provided on create.
func (*MemberUpsertOne) UpdateName ¶
func (u *MemberUpsertOne) UpdateName() *MemberUpsertOne
UpdateName sets the "name" field to the value that was provided on create.
func (*MemberUpsertOne) UpdateNewValues ¶
func (u *MemberUpsertOne) UpdateNewValues() *MemberUpsertOne
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.Member.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(member.FieldID) }), ). Exec(ctx)
func (*MemberUpsertOne) UpdatePassword ¶
func (u *MemberUpsertOne) UpdatePassword() *MemberUpsertOne
UpdatePassword sets the "password" field to the value that was provided on create.
func (*MemberUpsertOne) UpdateSort ¶
func (u *MemberUpsertOne) UpdateSort() *MemberUpsertOne
UpdateSort sets the "sort" field to the value that was provided on create.
func (*MemberUpsertOne) UpdateStatus ¶
func (u *MemberUpsertOne) UpdateStatus() *MemberUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*MemberUpsertOne) UpdateType ¶
func (u *MemberUpsertOne) UpdateType() *MemberUpsertOne
UpdateType sets the "type" field to the value that was provided on create.
func (*MemberUpsertOne) UpdateUpdatedAt ¶
func (u *MemberUpsertOne) UpdateUpdatedAt() *MemberUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
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 Product ¶
type Product struct { // ID of the ent. // UUID ID uuid.UUID `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"` // Product Key | 产品Key ProductKey string `json:"productKey,omitempty"` // Product Name | 产品名称 ProductName string `json:"productName,omitempty"` // Auth Type | 认证方式[secret,id2,x509] AuthType string `json:"authType,omitempty"` // Data Format | 数据通信协议类型[0:透传模式。1:Alink JSON。] DataFormat int32 `json:"dataFormat,omitempty"` // Description | 产品描述 Description string `json:"description,omitempty"` // Device Count | 设备数量 DeviceCount int32 `json:"deviceCount,omitempty"` // GMT Create | GMT创建时间 GmtCreate int64 `json:"gmtCreate,omitempty"` // Node Type | 节点类型[0:设备。1:网关] NodeType int32 `json:"nodeType,omitempty"` // Commodity Code | 产品类型,决定是否使用物模型功能。iothub_senior:使用物模型。iothub:不使用物模型。 AliyunCommodityCode string `json:"aliyunCommodityCode,omitempty"` // Category Key | 所属品类标识 CategoryKey string `json:"categoryKey,omitempty"` // Category Name | 所属品类名称 CategoryName string `json:"categoryName,omitempty"` // ID² | 该产品是否使用ID²认证 Id2 bool `json:"id2,omitempty"` // Net Type | 产品下设备的联网方式 NetType int32 `json:"netType,omitempty"` // Owner | 产品下设备的联网方式 Owner bool `json:"owner,omitempty"` // Product Secret | 产品密钥 ProductSecret string `json:"productSecret,omitempty"` // Product Status | 产品状态 ProductStatus string `json:"productStatus,omitempty"` // Protocol Type | 子设备接入网关的协议类型 ProtocolType string `json:"protocolType,omitempty"` // Validate Type | 数据校验级别 ValidateType int32 `json:"validateType,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the ProductQuery when eager-loading is set. Edges ProductEdges `json:"edges"` // contains filtered or unexported fields }
Product is the model entity for the Product schema.
func (*Product) ExecContext ¶
func (c *Product) 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 (*Product) QueryContext ¶
func (c *Product) 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 (*Product) QueryDevices ¶
func (pr *Product) QueryDevices() *DeviceQuery
QueryDevices queries the "devices" edge of the Product entity.
func (*Product) QueryEvents ¶
func (pr *Product) QueryEvents() *ProductEventQuery
QueryEvents queries the "events" edge of the Product entity.
func (*Product) QueryProperties ¶
func (pr *Product) QueryProperties() *ProductPropertyQuery
QueryProperties queries the "properties" edge of the Product entity.
func (*Product) QueryServices ¶
func (pr *Product) QueryServices() *ProductServiceQuery
QueryServices queries the "services" edge of the Product entity.
func (*Product) QueryTags ¶
func (pr *Product) QueryTags() *ProductTagQuery
QueryTags queries the "tags" edge of the Product entity.
func (*Product) Unwrap ¶
Unwrap unwraps the Product 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 (*Product) Update ¶
func (pr *Product) Update() *ProductUpdateOne
Update returns a builder for updating this Product. Note that you need to call Product.Unwrap() before calling this method if this Product was returned from a transaction, and the transaction was committed or rolled back.
type ProductClient ¶
type ProductClient struct {
// contains filtered or unexported fields
}
ProductClient is a client for the Product schema.
func NewProductClient ¶
func NewProductClient(c config) *ProductClient
NewProductClient returns a client for the Product from the given config.
func (*ProductClient) Create ¶
func (c *ProductClient) Create() *ProductCreate
Create returns a builder for creating a Product entity.
func (*ProductClient) CreateBulk ¶
func (c *ProductClient) CreateBulk(builders ...*ProductCreate) *ProductCreateBulk
CreateBulk returns a builder for creating a bulk of Product entities.
func (*ProductClient) Delete ¶
func (c *ProductClient) Delete() *ProductDelete
Delete returns a delete builder for Product.
func (*ProductClient) DeleteOne ¶
func (c *ProductClient) DeleteOne(pr *Product) *ProductDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*ProductClient) DeleteOneID ¶
func (c *ProductClient) DeleteOneID(id uuid.UUID) *ProductDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*ProductClient) ExecContext ¶
func (c *ProductClient) 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 (*ProductClient) Hooks ¶
func (c *ProductClient) Hooks() []Hook
Hooks returns the client hooks.
func (*ProductClient) Intercept ¶
func (c *ProductClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `product.Intercept(f(g(h())))`.
func (*ProductClient) Interceptors ¶
func (c *ProductClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*ProductClient) MapCreateBulk ¶
func (c *ProductClient) MapCreateBulk(slice any, setFunc func(*ProductCreate, int)) *ProductCreateBulk
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 (*ProductClient) Query ¶
func (c *ProductClient) Query() *ProductQuery
Query returns a query builder for Product.
func (*ProductClient) QueryContext ¶
func (c *ProductClient) 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 (*ProductClient) QueryDevices ¶
func (c *ProductClient) QueryDevices(pr *Product) *DeviceQuery
QueryDevices queries the devices edge of a Product.
func (*ProductClient) QueryEvents ¶
func (c *ProductClient) QueryEvents(pr *Product) *ProductEventQuery
QueryEvents queries the events edge of a Product.
func (*ProductClient) QueryProperties ¶
func (c *ProductClient) QueryProperties(pr *Product) *ProductPropertyQuery
QueryProperties queries the properties edge of a Product.
func (*ProductClient) QueryServices ¶
func (c *ProductClient) QueryServices(pr *Product) *ProductServiceQuery
QueryServices queries the services edge of a Product.
func (*ProductClient) QueryTags ¶
func (c *ProductClient) QueryTags(pr *Product) *ProductTagQuery
QueryTags queries the tags edge of a Product.
func (*ProductClient) Update ¶
func (c *ProductClient) Update() *ProductUpdate
Update returns an update builder for Product.
func (*ProductClient) UpdateOne ¶
func (c *ProductClient) UpdateOne(pr *Product) *ProductUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ProductClient) UpdateOneID ¶
func (c *ProductClient) UpdateOneID(id uuid.UUID) *ProductUpdateOne
UpdateOneID returns an update builder for the given id.
func (*ProductClient) Use ¶
func (c *ProductClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `product.Hooks(f(g(h())))`.
type ProductCreate ¶
type ProductCreate struct {
// contains filtered or unexported fields
}
ProductCreate is the builder for creating a Product entity.
func (*ProductCreate) AddDeviceIDs ¶
func (pc *ProductCreate) AddDeviceIDs(ids ...uuid.UUID) *ProductCreate
AddDeviceIDs adds the "devices" edge to the Device entity by IDs.
func (*ProductCreate) AddDevices ¶
func (pc *ProductCreate) AddDevices(d ...*Device) *ProductCreate
AddDevices adds the "devices" edges to the Device entity.
func (*ProductCreate) AddEventIDs ¶
func (pc *ProductCreate) AddEventIDs(ids ...uint64) *ProductCreate
AddEventIDs adds the "events" edge to the ProductEvent entity by IDs.
func (*ProductCreate) AddEvents ¶
func (pc *ProductCreate) AddEvents(p ...*ProductEvent) *ProductCreate
AddEvents adds the "events" edges to the ProductEvent entity.
func (*ProductCreate) AddProperties ¶
func (pc *ProductCreate) AddProperties(p ...*ProductProperty) *ProductCreate
AddProperties adds the "properties" edges to the ProductProperty entity.
func (*ProductCreate) AddPropertyIDs ¶
func (pc *ProductCreate) AddPropertyIDs(ids ...uint64) *ProductCreate
AddPropertyIDs adds the "properties" edge to the ProductProperty entity by IDs.
func (*ProductCreate) AddServiceIDs ¶
func (pc *ProductCreate) AddServiceIDs(ids ...uint64) *ProductCreate
AddServiceIDs adds the "services" edge to the ProductService entity by IDs.
func (*ProductCreate) AddServices ¶
func (pc *ProductCreate) AddServices(p ...*ProductService) *ProductCreate
AddServices adds the "services" edges to the ProductService entity.
func (*ProductCreate) AddTagIDs ¶
func (pc *ProductCreate) AddTagIDs(ids ...uint64) *ProductCreate
AddTagIDs adds the "tags" edge to the ProductTag entity by IDs.
func (*ProductCreate) AddTags ¶
func (pc *ProductCreate) AddTags(p ...*ProductTag) *ProductCreate
AddTags adds the "tags" edges to the ProductTag entity.
func (*ProductCreate) Exec ¶
func (pc *ProductCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*ProductCreate) ExecContext ¶
func (c *ProductCreate) 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 (*ProductCreate) ExecX ¶
func (pc *ProductCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductCreate) Mutation ¶
func (pc *ProductCreate) Mutation() *ProductMutation
Mutation returns the ProductMutation object of the builder.
func (*ProductCreate) OnConflict ¶
func (pc *ProductCreate) OnConflict(opts ...sql.ConflictOption) *ProductUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Product.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.ProductUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*ProductCreate) OnConflictColumns ¶
func (pc *ProductCreate) OnConflictColumns(columns ...string) *ProductUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Product.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*ProductCreate) QueryContext ¶
func (c *ProductCreate) 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 (*ProductCreate) Save ¶
func (pc *ProductCreate) Save(ctx context.Context) (*Product, error)
Save creates the Product in the database.
func (*ProductCreate) SaveX ¶
func (pc *ProductCreate) SaveX(ctx context.Context) *Product
SaveX calls Save and panics if Save returns an error.
func (*ProductCreate) SetAliyunCommodityCode ¶
func (pc *ProductCreate) SetAliyunCommodityCode(s string) *ProductCreate
SetAliyunCommodityCode sets the "aliyunCommodityCode" field.
func (*ProductCreate) SetAuthType ¶
func (pc *ProductCreate) SetAuthType(s string) *ProductCreate
SetAuthType sets the "authType" field.
func (*ProductCreate) SetCategoryKey ¶
func (pc *ProductCreate) SetCategoryKey(s string) *ProductCreate
SetCategoryKey sets the "categoryKey" field.
func (*ProductCreate) SetCategoryName ¶
func (pc *ProductCreate) SetCategoryName(s string) *ProductCreate
SetCategoryName sets the "categoryName" field.
func (*ProductCreate) SetCreatedAt ¶
func (pc *ProductCreate) SetCreatedAt(t time.Time) *ProductCreate
SetCreatedAt sets the "created_at" field.
func (*ProductCreate) SetDataFormat ¶
func (pc *ProductCreate) SetDataFormat(i int32) *ProductCreate
SetDataFormat sets the "dataFormat" field.
func (*ProductCreate) SetDescription ¶
func (pc *ProductCreate) SetDescription(s string) *ProductCreate
SetDescription sets the "description" field.
func (*ProductCreate) SetDeviceCount ¶
func (pc *ProductCreate) SetDeviceCount(i int32) *ProductCreate
SetDeviceCount sets the "deviceCount" field.
func (*ProductCreate) SetGmtCreate ¶
func (pc *ProductCreate) SetGmtCreate(i int64) *ProductCreate
SetGmtCreate sets the "gmtCreate" field.
func (*ProductCreate) SetID ¶
func (pc *ProductCreate) SetID(u uuid.UUID) *ProductCreate
SetID sets the "id" field.
func (*ProductCreate) SetId2 ¶
func (pc *ProductCreate) SetId2(b bool) *ProductCreate
SetId2 sets the "id2" field.
func (*ProductCreate) SetNetType ¶
func (pc *ProductCreate) SetNetType(i int32) *ProductCreate
SetNetType sets the "netType" field.
func (*ProductCreate) SetNillableAliyunCommodityCode ¶
func (pc *ProductCreate) SetNillableAliyunCommodityCode(s *string) *ProductCreate
SetNillableAliyunCommodityCode sets the "aliyunCommodityCode" field if the given value is not nil.
func (*ProductCreate) SetNillableAuthType ¶
func (pc *ProductCreate) SetNillableAuthType(s *string) *ProductCreate
SetNillableAuthType sets the "authType" field if the given value is not nil.
func (*ProductCreate) SetNillableCategoryKey ¶
func (pc *ProductCreate) SetNillableCategoryKey(s *string) *ProductCreate
SetNillableCategoryKey sets the "categoryKey" field if the given value is not nil.
func (*ProductCreate) SetNillableCategoryName ¶
func (pc *ProductCreate) SetNillableCategoryName(s *string) *ProductCreate
SetNillableCategoryName sets the "categoryName" field if the given value is not nil.
func (*ProductCreate) SetNillableCreatedAt ¶
func (pc *ProductCreate) SetNillableCreatedAt(t *time.Time) *ProductCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*ProductCreate) SetNillableDataFormat ¶
func (pc *ProductCreate) SetNillableDataFormat(i *int32) *ProductCreate
SetNillableDataFormat sets the "dataFormat" field if the given value is not nil.
func (*ProductCreate) SetNillableDescription ¶
func (pc *ProductCreate) SetNillableDescription(s *string) *ProductCreate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*ProductCreate) SetNillableDeviceCount ¶
func (pc *ProductCreate) SetNillableDeviceCount(i *int32) *ProductCreate
SetNillableDeviceCount sets the "deviceCount" field if the given value is not nil.
func (*ProductCreate) SetNillableGmtCreate ¶
func (pc *ProductCreate) SetNillableGmtCreate(i *int64) *ProductCreate
SetNillableGmtCreate sets the "gmtCreate" field if the given value is not nil.
func (*ProductCreate) SetNillableID ¶
func (pc *ProductCreate) SetNillableID(u *uuid.UUID) *ProductCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*ProductCreate) SetNillableId2 ¶
func (pc *ProductCreate) SetNillableId2(b *bool) *ProductCreate
SetNillableId2 sets the "id2" field if the given value is not nil.
func (*ProductCreate) SetNillableNetType ¶
func (pc *ProductCreate) SetNillableNetType(i *int32) *ProductCreate
SetNillableNetType sets the "netType" field if the given value is not nil.
func (*ProductCreate) SetNillableNodeType ¶
func (pc *ProductCreate) SetNillableNodeType(i *int32) *ProductCreate
SetNillableNodeType sets the "nodeType" field if the given value is not nil.
func (*ProductCreate) SetNillableOwner ¶
func (pc *ProductCreate) SetNillableOwner(b *bool) *ProductCreate
SetNillableOwner sets the "owner" field if the given value is not nil.
func (*ProductCreate) SetNillableProductSecret ¶
func (pc *ProductCreate) SetNillableProductSecret(s *string) *ProductCreate
SetNillableProductSecret sets the "productSecret" field if the given value is not nil.
func (*ProductCreate) SetNillableProductStatus ¶
func (pc *ProductCreate) SetNillableProductStatus(s *string) *ProductCreate
SetNillableProductStatus sets the "productStatus" field if the given value is not nil.
func (*ProductCreate) SetNillableProtocolType ¶
func (pc *ProductCreate) SetNillableProtocolType(s *string) *ProductCreate
SetNillableProtocolType sets the "protocolType" field if the given value is not nil.
func (*ProductCreate) SetNillableSort ¶
func (pc *ProductCreate) SetNillableSort(u *uint32) *ProductCreate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*ProductCreate) SetNillableStatus ¶
func (pc *ProductCreate) SetNillableStatus(u *uint8) *ProductCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*ProductCreate) SetNillableUpdatedAt ¶
func (pc *ProductCreate) SetNillableUpdatedAt(t *time.Time) *ProductCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*ProductCreate) SetNillableValidateType ¶
func (pc *ProductCreate) SetNillableValidateType(i *int32) *ProductCreate
SetNillableValidateType sets the "validateType" field if the given value is not nil.
func (*ProductCreate) SetNodeType ¶
func (pc *ProductCreate) SetNodeType(i int32) *ProductCreate
SetNodeType sets the "nodeType" field.
func (*ProductCreate) SetNotNilAliyunCommodityCode ¶
func (pr *ProductCreate) SetNotNilAliyunCommodityCode(value *string) *ProductCreate
set field if value's pointer is not nil.
func (*ProductCreate) SetNotNilAuthType ¶
func (pr *ProductCreate) SetNotNilAuthType(value *string) *ProductCreate
set field if value's pointer is not nil.
func (*ProductCreate) SetNotNilCategoryKey ¶
func (pr *ProductCreate) SetNotNilCategoryKey(value *string) *ProductCreate
set field if value's pointer is not nil.
func (*ProductCreate) SetNotNilCategoryName ¶
func (pr *ProductCreate) SetNotNilCategoryName(value *string) *ProductCreate
set field if value's pointer is not nil.
func (*ProductCreate) SetNotNilDataFormat ¶
func (pr *ProductCreate) SetNotNilDataFormat(value *int32) *ProductCreate
set field if value's pointer is not nil.
func (*ProductCreate) SetNotNilDescription ¶
func (pr *ProductCreate) SetNotNilDescription(value *string) *ProductCreate
set field if value's pointer is not nil.
func (*ProductCreate) SetNotNilDeviceCount ¶
func (pr *ProductCreate) SetNotNilDeviceCount(value *int32) *ProductCreate
set field if value's pointer is not nil.
func (*ProductCreate) SetNotNilGmtCreate ¶
func (pr *ProductCreate) SetNotNilGmtCreate(value *int64) *ProductCreate
set field if value's pointer is not nil.
func (*ProductCreate) SetNotNilId2 ¶
func (pr *ProductCreate) SetNotNilId2(value *bool) *ProductCreate
set field if value's pointer is not nil.
func (*ProductCreate) SetNotNilNetType ¶
func (pr *ProductCreate) SetNotNilNetType(value *int32) *ProductCreate
set field if value's pointer is not nil.
func (*ProductCreate) SetNotNilNodeType ¶
func (pr *ProductCreate) SetNotNilNodeType(value *int32) *ProductCreate
set field if value's pointer is not nil.
func (*ProductCreate) SetNotNilOwner ¶
func (pr *ProductCreate) SetNotNilOwner(value *bool) *ProductCreate
set field if value's pointer is not nil.
func (*ProductCreate) SetNotNilProductKey ¶
func (pr *ProductCreate) SetNotNilProductKey(value *string) *ProductCreate
set field if value's pointer is not nil.
func (*ProductCreate) SetNotNilProductName ¶
func (pr *ProductCreate) SetNotNilProductName(value *string) *ProductCreate
set field if value's pointer is not nil.
func (*ProductCreate) SetNotNilProductSecret ¶
func (pr *ProductCreate) SetNotNilProductSecret(value *string) *ProductCreate
set field if value's pointer is not nil.
func (*ProductCreate) SetNotNilProductStatus ¶
func (pr *ProductCreate) SetNotNilProductStatus(value *string) *ProductCreate
set field if value's pointer is not nil.
func (*ProductCreate) SetNotNilProtocolType ¶
func (pr *ProductCreate) SetNotNilProtocolType(value *string) *ProductCreate
set field if value's pointer is not nil.
func (*ProductCreate) SetNotNilSort ¶
func (pr *ProductCreate) SetNotNilSort(value *uint32) *ProductCreate
set field if value's pointer is not nil.
func (*ProductCreate) SetNotNilStatus ¶
func (pr *ProductCreate) SetNotNilStatus(value *uint8) *ProductCreate
set field if value's pointer is not nil.
func (*ProductCreate) SetNotNilUpdatedAt ¶
func (pr *ProductCreate) SetNotNilUpdatedAt(value *time.Time) *ProductCreate
set field if value's pointer is not nil.
func (*ProductCreate) SetNotNilValidateType ¶
func (pr *ProductCreate) SetNotNilValidateType(value *int32) *ProductCreate
set field if value's pointer is not nil.
func (*ProductCreate) SetOwner ¶
func (pc *ProductCreate) SetOwner(b bool) *ProductCreate
SetOwner sets the "owner" field.
func (*ProductCreate) SetProductKey ¶
func (pc *ProductCreate) SetProductKey(s string) *ProductCreate
SetProductKey sets the "productKey" field.
func (*ProductCreate) SetProductName ¶
func (pc *ProductCreate) SetProductName(s string) *ProductCreate
SetProductName sets the "productName" field.
func (*ProductCreate) SetProductSecret ¶
func (pc *ProductCreate) SetProductSecret(s string) *ProductCreate
SetProductSecret sets the "productSecret" field.
func (*ProductCreate) SetProductStatus ¶
func (pc *ProductCreate) SetProductStatus(s string) *ProductCreate
SetProductStatus sets the "productStatus" field.
func (*ProductCreate) SetProtocolType ¶
func (pc *ProductCreate) SetProtocolType(s string) *ProductCreate
SetProtocolType sets the "protocolType" field.
func (*ProductCreate) SetSort ¶
func (pc *ProductCreate) SetSort(u uint32) *ProductCreate
SetSort sets the "sort" field.
func (*ProductCreate) SetStatus ¶
func (pc *ProductCreate) SetStatus(u uint8) *ProductCreate
SetStatus sets the "status" field.
func (*ProductCreate) SetUpdatedAt ¶
func (pc *ProductCreate) SetUpdatedAt(t time.Time) *ProductCreate
SetUpdatedAt sets the "updated_at" field.
func (*ProductCreate) SetValidateType ¶
func (pc *ProductCreate) SetValidateType(i int32) *ProductCreate
SetValidateType sets the "validateType" field.
type ProductCreateBulk ¶
type ProductCreateBulk struct {
// contains filtered or unexported fields
}
ProductCreateBulk is the builder for creating many Product entities in bulk.
func (*ProductCreateBulk) Exec ¶
func (pcb *ProductCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ProductCreateBulk) ExecContext ¶
func (c *ProductCreateBulk) 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 (*ProductCreateBulk) ExecX ¶
func (pcb *ProductCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductCreateBulk) OnConflict ¶
func (pcb *ProductCreateBulk) OnConflict(opts ...sql.ConflictOption) *ProductUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Product.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.ProductUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*ProductCreateBulk) OnConflictColumns ¶
func (pcb *ProductCreateBulk) OnConflictColumns(columns ...string) *ProductUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Product.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*ProductCreateBulk) QueryContext ¶
func (c *ProductCreateBulk) 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 ProductDelete ¶
type ProductDelete struct {
// contains filtered or unexported fields
}
ProductDelete is the builder for deleting a Product entity.
func (*ProductDelete) Exec ¶
func (pd *ProductDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*ProductDelete) ExecContext ¶
func (c *ProductDelete) 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 (*ProductDelete) ExecX ¶
func (pd *ProductDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*ProductDelete) QueryContext ¶
func (c *ProductDelete) 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 (*ProductDelete) Where ¶
func (pd *ProductDelete) Where(ps ...predicate.Product) *ProductDelete
Where appends a list predicates to the ProductDelete builder.
type ProductDeleteOne ¶
type ProductDeleteOne struct {
// contains filtered or unexported fields
}
ProductDeleteOne is the builder for deleting a single Product entity.
func (*ProductDeleteOne) Exec ¶
func (pdo *ProductDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*ProductDeleteOne) ExecX ¶
func (pdo *ProductDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductDeleteOne) Where ¶
func (pdo *ProductDeleteOne) Where(ps ...predicate.Product) *ProductDeleteOne
Where appends a list predicates to the ProductDelete builder.
type ProductEdges ¶
type ProductEdges struct { // Devices holds the value of the devices edge. Devices []*Device `json:"devices,omitempty"` // Tags holds the value of the tags edge. Tags []*ProductTag `json:"tags,omitempty"` // Properties holds the value of the properties edge. Properties []*ProductProperty `json:"properties,omitempty"` // Events holds the value of the events edge. Events []*ProductEvent `json:"events,omitempty"` // Services holds the value of the services edge. Services []*ProductService `json:"services,omitempty"` // contains filtered or unexported fields }
ProductEdges holds the relations/edges for other nodes in the graph.
func (ProductEdges) DevicesOrErr ¶
func (e ProductEdges) DevicesOrErr() ([]*Device, error)
DevicesOrErr returns the Devices value or an error if the edge was not loaded in eager-loading.
func (ProductEdges) EventsOrErr ¶
func (e ProductEdges) EventsOrErr() ([]*ProductEvent, error)
EventsOrErr returns the Events value or an error if the edge was not loaded in eager-loading.
func (ProductEdges) PropertiesOrErr ¶
func (e ProductEdges) PropertiesOrErr() ([]*ProductProperty, error)
PropertiesOrErr returns the Properties value or an error if the edge was not loaded in eager-loading.
func (ProductEdges) ServicesOrErr ¶
func (e ProductEdges) ServicesOrErr() ([]*ProductService, error)
ServicesOrErr returns the Services value or an error if the edge was not loaded in eager-loading.
func (ProductEdges) TagsOrErr ¶
func (e ProductEdges) TagsOrErr() ([]*ProductTag, error)
TagsOrErr returns the Tags value or an error if the edge was not loaded in eager-loading.
type ProductEvent ¶
type ProductEvent 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"` // Product Key | 产品Key ProductKey string `json:"productKey,omitempty"` // CreateTs | 功能创建的时间戳 CreateTs int64 `json:"createTs,omitempty"` // Version | 物模型版本号 Version string `json:"version,omitempty"` // Identifier | 事件的标识符 Identifier string `json:"identifier,omitempty"` // EventName | 事件名称 EventName string `json:"eventName,omitempty"` // EventType | 事件类型,INFO_EVENT_TYPE:信息。ALERT_EVENT_TYPE:告警。ERROR_EVENT_TYPE:故障。 EventType string `json:"eventType,omitempty"` // Output data | 事件的输出参数 OutputData string `json:"outputData,omitempty"` // Custom | 是否是自定义功能 Custom bool `json:"custom,omitempty"` // Required | 是否是标准品类的必选事件 Required bool `json:"required,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the ProductEventQuery when eager-loading is set. Edges ProductEventEdges `json:"edges"` // contains filtered or unexported fields }
ProductEvent is the model entity for the ProductEvent schema.
func (*ProductEvent) ExecContext ¶
func (c *ProductEvent) 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 (*ProductEvent) QueryContext ¶
func (c *ProductEvent) 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 (*ProductEvent) QueryProduct ¶
func (pe *ProductEvent) QueryProduct() *ProductQuery
QueryProduct queries the "product" edge of the ProductEvent entity.
func (*ProductEvent) String ¶
func (pe *ProductEvent) String() string
String implements the fmt.Stringer.
func (*ProductEvent) Unwrap ¶
func (pe *ProductEvent) Unwrap() *ProductEvent
Unwrap unwraps the ProductEvent 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 (*ProductEvent) Update ¶
func (pe *ProductEvent) Update() *ProductEventUpdateOne
Update returns a builder for updating this ProductEvent. Note that you need to call ProductEvent.Unwrap() before calling this method if this ProductEvent was returned from a transaction, and the transaction was committed or rolled back.
type ProductEventClient ¶
type ProductEventClient struct {
// contains filtered or unexported fields
}
ProductEventClient is a client for the ProductEvent schema.
func NewProductEventClient ¶
func NewProductEventClient(c config) *ProductEventClient
NewProductEventClient returns a client for the ProductEvent from the given config.
func (*ProductEventClient) Create ¶
func (c *ProductEventClient) Create() *ProductEventCreate
Create returns a builder for creating a ProductEvent entity.
func (*ProductEventClient) CreateBulk ¶
func (c *ProductEventClient) CreateBulk(builders ...*ProductEventCreate) *ProductEventCreateBulk
CreateBulk returns a builder for creating a bulk of ProductEvent entities.
func (*ProductEventClient) Delete ¶
func (c *ProductEventClient) Delete() *ProductEventDelete
Delete returns a delete builder for ProductEvent.
func (*ProductEventClient) DeleteOne ¶
func (c *ProductEventClient) DeleteOne(pe *ProductEvent) *ProductEventDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*ProductEventClient) DeleteOneID ¶
func (c *ProductEventClient) DeleteOneID(id uint64) *ProductEventDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*ProductEventClient) ExecContext ¶
func (c *ProductEventClient) 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 (*ProductEventClient) Get ¶
func (c *ProductEventClient) Get(ctx context.Context, id uint64) (*ProductEvent, error)
Get returns a ProductEvent entity by its id.
func (*ProductEventClient) GetX ¶
func (c *ProductEventClient) GetX(ctx context.Context, id uint64) *ProductEvent
GetX is like Get, but panics if an error occurs.
func (*ProductEventClient) Hooks ¶
func (c *ProductEventClient) Hooks() []Hook
Hooks returns the client hooks.
func (*ProductEventClient) Intercept ¶
func (c *ProductEventClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `productevent.Intercept(f(g(h())))`.
func (*ProductEventClient) Interceptors ¶
func (c *ProductEventClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*ProductEventClient) MapCreateBulk ¶
func (c *ProductEventClient) MapCreateBulk(slice any, setFunc func(*ProductEventCreate, int)) *ProductEventCreateBulk
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 (*ProductEventClient) Query ¶
func (c *ProductEventClient) Query() *ProductEventQuery
Query returns a query builder for ProductEvent.
func (*ProductEventClient) QueryContext ¶
func (c *ProductEventClient) 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 (*ProductEventClient) QueryProduct ¶
func (c *ProductEventClient) QueryProduct(pe *ProductEvent) *ProductQuery
QueryProduct queries the product edge of a ProductEvent.
func (*ProductEventClient) Update ¶
func (c *ProductEventClient) Update() *ProductEventUpdate
Update returns an update builder for ProductEvent.
func (*ProductEventClient) UpdateOne ¶
func (c *ProductEventClient) UpdateOne(pe *ProductEvent) *ProductEventUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ProductEventClient) UpdateOneID ¶
func (c *ProductEventClient) UpdateOneID(id uint64) *ProductEventUpdateOne
UpdateOneID returns an update builder for the given id.
func (*ProductEventClient) Use ¶
func (c *ProductEventClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `productevent.Hooks(f(g(h())))`.
type ProductEventCreate ¶
type ProductEventCreate struct {
// contains filtered or unexported fields
}
ProductEventCreate is the builder for creating a ProductEvent entity.
func (*ProductEventCreate) Exec ¶
func (pec *ProductEventCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*ProductEventCreate) ExecContext ¶
func (c *ProductEventCreate) 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 (*ProductEventCreate) ExecX ¶
func (pec *ProductEventCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductEventCreate) Mutation ¶
func (pec *ProductEventCreate) Mutation() *ProductEventMutation
Mutation returns the ProductEventMutation object of the builder.
func (*ProductEventCreate) OnConflict ¶
func (pec *ProductEventCreate) OnConflict(opts ...sql.ConflictOption) *ProductEventUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.ProductEvent.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.ProductEventUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*ProductEventCreate) OnConflictColumns ¶
func (pec *ProductEventCreate) OnConflictColumns(columns ...string) *ProductEventUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.ProductEvent.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*ProductEventCreate) QueryContext ¶
func (c *ProductEventCreate) 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 (*ProductEventCreate) Save ¶
func (pec *ProductEventCreate) Save(ctx context.Context) (*ProductEvent, error)
Save creates the ProductEvent in the database.
func (*ProductEventCreate) SaveX ¶
func (pec *ProductEventCreate) SaveX(ctx context.Context) *ProductEvent
SaveX calls Save and panics if Save returns an error.
func (*ProductEventCreate) SetCreateTs ¶
func (pec *ProductEventCreate) SetCreateTs(i int64) *ProductEventCreate
SetCreateTs sets the "createTs" field.
func (*ProductEventCreate) SetCreatedAt ¶
func (pec *ProductEventCreate) SetCreatedAt(t time.Time) *ProductEventCreate
SetCreatedAt sets the "created_at" field.
func (*ProductEventCreate) SetCustom ¶
func (pec *ProductEventCreate) SetCustom(b bool) *ProductEventCreate
SetCustom sets the "custom" field.
func (*ProductEventCreate) SetEventName ¶
func (pec *ProductEventCreate) SetEventName(s string) *ProductEventCreate
SetEventName sets the "eventName" field.
func (*ProductEventCreate) SetEventType ¶
func (pec *ProductEventCreate) SetEventType(s string) *ProductEventCreate
SetEventType sets the "eventType" field.
func (*ProductEventCreate) SetID ¶
func (pec *ProductEventCreate) SetID(u uint64) *ProductEventCreate
SetID sets the "id" field.
func (*ProductEventCreate) SetIdentifier ¶
func (pec *ProductEventCreate) SetIdentifier(s string) *ProductEventCreate
SetIdentifier sets the "identifier" field.
func (*ProductEventCreate) SetNillableCreateTs ¶
func (pec *ProductEventCreate) SetNillableCreateTs(i *int64) *ProductEventCreate
SetNillableCreateTs sets the "createTs" field if the given value is not nil.
func (*ProductEventCreate) SetNillableCreatedAt ¶
func (pec *ProductEventCreate) SetNillableCreatedAt(t *time.Time) *ProductEventCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*ProductEventCreate) SetNillableCustom ¶
func (pec *ProductEventCreate) SetNillableCustom(b *bool) *ProductEventCreate
SetNillableCustom sets the "custom" field if the given value is not nil.
func (*ProductEventCreate) SetNillableEventType ¶
func (pec *ProductEventCreate) SetNillableEventType(s *string) *ProductEventCreate
SetNillableEventType sets the "eventType" field if the given value is not nil.
func (*ProductEventCreate) SetNillableOutputData ¶
func (pec *ProductEventCreate) SetNillableOutputData(s *string) *ProductEventCreate
SetNillableOutputData sets the "outputData" field if the given value is not nil.
func (*ProductEventCreate) SetNillableProductID ¶
func (pec *ProductEventCreate) SetNillableProductID(id *uuid.UUID) *ProductEventCreate
SetNillableProductID sets the "product" edge to the Product entity by ID if the given value is not nil.
func (*ProductEventCreate) SetNillableRequired ¶
func (pec *ProductEventCreate) SetNillableRequired(b *bool) *ProductEventCreate
SetNillableRequired sets the "required" field if the given value is not nil.
func (*ProductEventCreate) SetNillableSort ¶
func (pec *ProductEventCreate) SetNillableSort(u *uint32) *ProductEventCreate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*ProductEventCreate) SetNillableStatus ¶
func (pec *ProductEventCreate) SetNillableStatus(u *uint8) *ProductEventCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*ProductEventCreate) SetNillableUpdatedAt ¶
func (pec *ProductEventCreate) SetNillableUpdatedAt(t *time.Time) *ProductEventCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*ProductEventCreate) SetNillableVersion ¶
func (pec *ProductEventCreate) SetNillableVersion(s *string) *ProductEventCreate
SetNillableVersion sets the "version" field if the given value is not nil.
func (*ProductEventCreate) SetNotNilCreateTs ¶
func (pe *ProductEventCreate) SetNotNilCreateTs(value *int64) *ProductEventCreate
set field if value's pointer is not nil.
func (*ProductEventCreate) SetNotNilCustom ¶
func (pe *ProductEventCreate) SetNotNilCustom(value *bool) *ProductEventCreate
set field if value's pointer is not nil.
func (*ProductEventCreate) SetNotNilEventName ¶
func (pe *ProductEventCreate) SetNotNilEventName(value *string) *ProductEventCreate
set field if value's pointer is not nil.
func (*ProductEventCreate) SetNotNilEventType ¶
func (pe *ProductEventCreate) SetNotNilEventType(value *string) *ProductEventCreate
set field if value's pointer is not nil.
func (*ProductEventCreate) SetNotNilIdentifier ¶
func (pe *ProductEventCreate) SetNotNilIdentifier(value *string) *ProductEventCreate
set field if value's pointer is not nil.
func (*ProductEventCreate) SetNotNilOutputData ¶
func (pe *ProductEventCreate) SetNotNilOutputData(value *string) *ProductEventCreate
set field if value's pointer is not nil.
func (*ProductEventCreate) SetNotNilProductKey ¶
func (pe *ProductEventCreate) SetNotNilProductKey(value *string) *ProductEventCreate
set field if value's pointer is not nil.
func (*ProductEventCreate) SetNotNilRequired ¶
func (pe *ProductEventCreate) SetNotNilRequired(value *bool) *ProductEventCreate
set field if value's pointer is not nil.
func (*ProductEventCreate) SetNotNilSort ¶
func (pe *ProductEventCreate) SetNotNilSort(value *uint32) *ProductEventCreate
set field if value's pointer is not nil.
func (*ProductEventCreate) SetNotNilStatus ¶
func (pe *ProductEventCreate) SetNotNilStatus(value *uint8) *ProductEventCreate
set field if value's pointer is not nil.
func (*ProductEventCreate) SetNotNilUpdatedAt ¶
func (pe *ProductEventCreate) SetNotNilUpdatedAt(value *time.Time) *ProductEventCreate
set field if value's pointer is not nil.
func (*ProductEventCreate) SetNotNilVersion ¶
func (pe *ProductEventCreate) SetNotNilVersion(value *string) *ProductEventCreate
set field if value's pointer is not nil.
func (*ProductEventCreate) SetOutputData ¶
func (pec *ProductEventCreate) SetOutputData(s string) *ProductEventCreate
SetOutputData sets the "outputData" field.
func (*ProductEventCreate) SetProduct ¶
func (pec *ProductEventCreate) SetProduct(p *Product) *ProductEventCreate
SetProduct sets the "product" edge to the Product entity.
func (*ProductEventCreate) SetProductID ¶
func (pec *ProductEventCreate) SetProductID(id uuid.UUID) *ProductEventCreate
SetProductID sets the "product" edge to the Product entity by ID.
func (*ProductEventCreate) SetProductKey ¶
func (pec *ProductEventCreate) SetProductKey(s string) *ProductEventCreate
SetProductKey sets the "productKey" field.
func (*ProductEventCreate) SetRequired ¶
func (pec *ProductEventCreate) SetRequired(b bool) *ProductEventCreate
SetRequired sets the "required" field.
func (*ProductEventCreate) SetSort ¶
func (pec *ProductEventCreate) SetSort(u uint32) *ProductEventCreate
SetSort sets the "sort" field.
func (*ProductEventCreate) SetStatus ¶
func (pec *ProductEventCreate) SetStatus(u uint8) *ProductEventCreate
SetStatus sets the "status" field.
func (*ProductEventCreate) SetUpdatedAt ¶
func (pec *ProductEventCreate) SetUpdatedAt(t time.Time) *ProductEventCreate
SetUpdatedAt sets the "updated_at" field.
func (*ProductEventCreate) SetVersion ¶
func (pec *ProductEventCreate) SetVersion(s string) *ProductEventCreate
SetVersion sets the "version" field.
type ProductEventCreateBulk ¶
type ProductEventCreateBulk struct {
// contains filtered or unexported fields
}
ProductEventCreateBulk is the builder for creating many ProductEvent entities in bulk.
func (*ProductEventCreateBulk) Exec ¶
func (pecb *ProductEventCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ProductEventCreateBulk) ExecContext ¶
func (c *ProductEventCreateBulk) 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 (*ProductEventCreateBulk) ExecX ¶
func (pecb *ProductEventCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductEventCreateBulk) OnConflict ¶
func (pecb *ProductEventCreateBulk) OnConflict(opts ...sql.ConflictOption) *ProductEventUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.ProductEvent.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.ProductEventUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*ProductEventCreateBulk) OnConflictColumns ¶
func (pecb *ProductEventCreateBulk) OnConflictColumns(columns ...string) *ProductEventUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.ProductEvent.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*ProductEventCreateBulk) QueryContext ¶
func (c *ProductEventCreateBulk) 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 (*ProductEventCreateBulk) Save ¶
func (pecb *ProductEventCreateBulk) Save(ctx context.Context) ([]*ProductEvent, error)
Save creates the ProductEvent entities in the database.
func (*ProductEventCreateBulk) SaveX ¶
func (pecb *ProductEventCreateBulk) SaveX(ctx context.Context) []*ProductEvent
SaveX is like Save, but panics if an error occurs.
type ProductEventDelete ¶
type ProductEventDelete struct {
// contains filtered or unexported fields
}
ProductEventDelete is the builder for deleting a ProductEvent entity.
func (*ProductEventDelete) Exec ¶
func (ped *ProductEventDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*ProductEventDelete) ExecContext ¶
func (c *ProductEventDelete) 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 (*ProductEventDelete) ExecX ¶
func (ped *ProductEventDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*ProductEventDelete) QueryContext ¶
func (c *ProductEventDelete) 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 (*ProductEventDelete) Where ¶
func (ped *ProductEventDelete) Where(ps ...predicate.ProductEvent) *ProductEventDelete
Where appends a list predicates to the ProductEventDelete builder.
type ProductEventDeleteOne ¶
type ProductEventDeleteOne struct {
// contains filtered or unexported fields
}
ProductEventDeleteOne is the builder for deleting a single ProductEvent entity.
func (*ProductEventDeleteOne) Exec ¶
func (pedo *ProductEventDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*ProductEventDeleteOne) ExecX ¶
func (pedo *ProductEventDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductEventDeleteOne) Where ¶
func (pedo *ProductEventDeleteOne) Where(ps ...predicate.ProductEvent) *ProductEventDeleteOne
Where appends a list predicates to the ProductEventDelete builder.
type ProductEventEdges ¶
type ProductEventEdges struct { // Product holds the value of the product edge. Product *Product `json:"product,omitempty"` // contains filtered or unexported fields }
ProductEventEdges holds the relations/edges for other nodes in the graph.
func (ProductEventEdges) ProductOrErr ¶
func (e ProductEventEdges) ProductOrErr() (*Product, error)
ProductOrErr returns the Product value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type ProductEventGroupBy ¶
type ProductEventGroupBy struct {
// contains filtered or unexported fields
}
ProductEventGroupBy is the group-by builder for ProductEvent entities.
func (*ProductEventGroupBy) Aggregate ¶
func (pegb *ProductEventGroupBy) Aggregate(fns ...AggregateFunc) *ProductEventGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ProductEventGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ProductEventGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ProductEventGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ProductEventGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ProductEventGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ProductEventGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ProductEventGroupBy) Scan ¶
func (pegb *ProductEventGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ProductEventGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type ProductEventMutation ¶
type ProductEventMutation struct {
// contains filtered or unexported fields
}
ProductEventMutation represents an operation that mutates the ProductEvent nodes in the graph.
func (*ProductEventMutation) AddCreateTs ¶
func (m *ProductEventMutation) AddCreateTs(i int64)
AddCreateTs adds i to the "createTs" field.
func (*ProductEventMutation) AddField ¶
func (m *ProductEventMutation) 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 (*ProductEventMutation) AddSort ¶
func (m *ProductEventMutation) AddSort(u int32)
AddSort adds u to the "sort" field.
func (*ProductEventMutation) AddStatus ¶
func (m *ProductEventMutation) AddStatus(u int8)
AddStatus adds u to the "status" field.
func (*ProductEventMutation) AddedCreateTs ¶
func (m *ProductEventMutation) AddedCreateTs() (r int64, exists bool)
AddedCreateTs returns the value that was added to the "createTs" field in this mutation.
func (*ProductEventMutation) AddedEdges ¶
func (m *ProductEventMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*ProductEventMutation) AddedField ¶
func (m *ProductEventMutation) 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 (*ProductEventMutation) AddedFields ¶
func (m *ProductEventMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*ProductEventMutation) AddedIDs ¶
func (m *ProductEventMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*ProductEventMutation) AddedSort ¶
func (m *ProductEventMutation) AddedSort() (r int32, exists bool)
AddedSort returns the value that was added to the "sort" field in this mutation.
func (*ProductEventMutation) AddedStatus ¶
func (m *ProductEventMutation) AddedStatus() (r int8, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*ProductEventMutation) ClearCreateTs ¶
func (m *ProductEventMutation) ClearCreateTs()
ClearCreateTs clears the value of the "createTs" field.
func (*ProductEventMutation) ClearEdge ¶
func (m *ProductEventMutation) 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 (*ProductEventMutation) ClearEventType ¶
func (m *ProductEventMutation) ClearEventType()
ClearEventType clears the value of the "eventType" field.
func (*ProductEventMutation) ClearField ¶
func (m *ProductEventMutation) 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 (*ProductEventMutation) ClearOutputData ¶
func (m *ProductEventMutation) ClearOutputData()
ClearOutputData clears the value of the "outputData" field.
func (*ProductEventMutation) ClearProduct ¶
func (m *ProductEventMutation) ClearProduct()
ClearProduct clears the "product" edge to the Product entity.
func (*ProductEventMutation) ClearStatus ¶
func (m *ProductEventMutation) ClearStatus()
ClearStatus clears the value of the "status" field.
func (*ProductEventMutation) ClearVersion ¶
func (m *ProductEventMutation) ClearVersion()
ClearVersion clears the value of the "version" field.
func (*ProductEventMutation) ClearedEdges ¶
func (m *ProductEventMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*ProductEventMutation) ClearedFields ¶
func (m *ProductEventMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (ProductEventMutation) Client ¶
func (m ProductEventMutation) 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 (*ProductEventMutation) CreateTs ¶
func (m *ProductEventMutation) CreateTs() (r int64, exists bool)
CreateTs returns the value of the "createTs" field in the mutation.
func (*ProductEventMutation) CreateTsCleared ¶
func (m *ProductEventMutation) CreateTsCleared() bool
CreateTsCleared returns if the "createTs" field was cleared in this mutation.
func (*ProductEventMutation) CreatedAt ¶
func (m *ProductEventMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*ProductEventMutation) Custom ¶
func (m *ProductEventMutation) Custom() (r bool, exists bool)
Custom returns the value of the "custom" field in the mutation.
func (*ProductEventMutation) EdgeCleared ¶
func (m *ProductEventMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*ProductEventMutation) EventName ¶
func (m *ProductEventMutation) EventName() (r string, exists bool)
EventName returns the value of the "eventName" field in the mutation.
func (*ProductEventMutation) EventType ¶
func (m *ProductEventMutation) EventType() (r string, exists bool)
EventType returns the value of the "eventType" field in the mutation.
func (*ProductEventMutation) EventTypeCleared ¶
func (m *ProductEventMutation) EventTypeCleared() bool
EventTypeCleared returns if the "eventType" field was cleared in this mutation.
func (*ProductEventMutation) ExecContext ¶
func (c *ProductEventMutation) 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 (*ProductEventMutation) Field ¶
func (m *ProductEventMutation) 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 (*ProductEventMutation) FieldCleared ¶
func (m *ProductEventMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*ProductEventMutation) Fields ¶
func (m *ProductEventMutation) 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 (*ProductEventMutation) ID ¶
func (m *ProductEventMutation) 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 (*ProductEventMutation) IDs ¶
func (m *ProductEventMutation) 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 (*ProductEventMutation) Identifier ¶
func (m *ProductEventMutation) Identifier() (r string, exists bool)
Identifier returns the value of the "identifier" field in the mutation.
func (*ProductEventMutation) OldCreateTs ¶
func (m *ProductEventMutation) OldCreateTs(ctx context.Context) (v int64, err error)
OldCreateTs returns the old "createTs" field's value of the ProductEvent entity. If the ProductEvent object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductEventMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the ProductEvent entity. If the ProductEvent object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductEventMutation) OldCustom ¶
func (m *ProductEventMutation) OldCustom(ctx context.Context) (v bool, err error)
OldCustom returns the old "custom" field's value of the ProductEvent entity. If the ProductEvent object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductEventMutation) OldEventName ¶
func (m *ProductEventMutation) OldEventName(ctx context.Context) (v string, err error)
OldEventName returns the old "eventName" field's value of the ProductEvent entity. If the ProductEvent object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductEventMutation) OldEventType ¶
func (m *ProductEventMutation) OldEventType(ctx context.Context) (v string, err error)
OldEventType returns the old "eventType" field's value of the ProductEvent entity. If the ProductEvent object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductEventMutation) 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 (*ProductEventMutation) OldIdentifier ¶
func (m *ProductEventMutation) OldIdentifier(ctx context.Context) (v string, err error)
OldIdentifier returns the old "identifier" field's value of the ProductEvent entity. If the ProductEvent object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductEventMutation) OldOutputData ¶
func (m *ProductEventMutation) OldOutputData(ctx context.Context) (v string, err error)
OldOutputData returns the old "outputData" field's value of the ProductEvent entity. If the ProductEvent object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductEventMutation) OldProductKey ¶
func (m *ProductEventMutation) OldProductKey(ctx context.Context) (v string, err error)
OldProductKey returns the old "productKey" field's value of the ProductEvent entity. If the ProductEvent object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductEventMutation) OldRequired ¶
func (m *ProductEventMutation) OldRequired(ctx context.Context) (v bool, err error)
OldRequired returns the old "required" field's value of the ProductEvent entity. If the ProductEvent object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductEventMutation) OldSort ¶
func (m *ProductEventMutation) OldSort(ctx context.Context) (v uint32, err error)
OldSort returns the old "sort" field's value of the ProductEvent entity. If the ProductEvent object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductEventMutation) OldStatus ¶
func (m *ProductEventMutation) OldStatus(ctx context.Context) (v uint8, err error)
OldStatus returns the old "status" field's value of the ProductEvent entity. If the ProductEvent object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductEventMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the ProductEvent entity. If the ProductEvent object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductEventMutation) OldVersion ¶
func (m *ProductEventMutation) OldVersion(ctx context.Context) (v string, err error)
OldVersion returns the old "version" field's value of the ProductEvent entity. If the ProductEvent object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductEventMutation) Op ¶
func (m *ProductEventMutation) Op() Op
Op returns the operation name.
func (*ProductEventMutation) OutputData ¶
func (m *ProductEventMutation) OutputData() (r string, exists bool)
OutputData returns the value of the "outputData" field in the mutation.
func (*ProductEventMutation) OutputDataCleared ¶
func (m *ProductEventMutation) OutputDataCleared() bool
OutputDataCleared returns if the "outputData" field was cleared in this mutation.
func (*ProductEventMutation) ProductCleared ¶
func (m *ProductEventMutation) ProductCleared() bool
ProductCleared reports if the "product" edge to the Product entity was cleared.
func (*ProductEventMutation) ProductID ¶
func (m *ProductEventMutation) ProductID() (id uuid.UUID, exists bool)
ProductID returns the "product" edge ID in the mutation.
func (*ProductEventMutation) ProductIDs ¶
func (m *ProductEventMutation) ProductIDs() (ids []uuid.UUID)
ProductIDs returns the "product" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ProductID instead. It exists only for internal usage by the builders.
func (*ProductEventMutation) ProductKey ¶
func (m *ProductEventMutation) ProductKey() (r string, exists bool)
ProductKey returns the value of the "productKey" field in the mutation.
func (*ProductEventMutation) QueryContext ¶
func (c *ProductEventMutation) 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 (*ProductEventMutation) RemovedEdges ¶
func (m *ProductEventMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*ProductEventMutation) RemovedIDs ¶
func (m *ProductEventMutation) 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 (*ProductEventMutation) Required ¶
func (m *ProductEventMutation) Required() (r bool, exists bool)
Required returns the value of the "required" field in the mutation.
func (*ProductEventMutation) ResetCreateTs ¶
func (m *ProductEventMutation) ResetCreateTs()
ResetCreateTs resets all changes to the "createTs" field.
func (*ProductEventMutation) ResetCreatedAt ¶
func (m *ProductEventMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*ProductEventMutation) ResetCustom ¶
func (m *ProductEventMutation) ResetCustom()
ResetCustom resets all changes to the "custom" field.
func (*ProductEventMutation) ResetEdge ¶
func (m *ProductEventMutation) 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 (*ProductEventMutation) ResetEventName ¶
func (m *ProductEventMutation) ResetEventName()
ResetEventName resets all changes to the "eventName" field.
func (*ProductEventMutation) ResetEventType ¶
func (m *ProductEventMutation) ResetEventType()
ResetEventType resets all changes to the "eventType" field.
func (*ProductEventMutation) ResetField ¶
func (m *ProductEventMutation) 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 (*ProductEventMutation) ResetIdentifier ¶
func (m *ProductEventMutation) ResetIdentifier()
ResetIdentifier resets all changes to the "identifier" field.
func (*ProductEventMutation) ResetOutputData ¶
func (m *ProductEventMutation) ResetOutputData()
ResetOutputData resets all changes to the "outputData" field.
func (*ProductEventMutation) ResetProduct ¶
func (m *ProductEventMutation) ResetProduct()
ResetProduct resets all changes to the "product" edge.
func (*ProductEventMutation) ResetProductKey ¶
func (m *ProductEventMutation) ResetProductKey()
ResetProductKey resets all changes to the "productKey" field.
func (*ProductEventMutation) ResetRequired ¶
func (m *ProductEventMutation) ResetRequired()
ResetRequired resets all changes to the "required" field.
func (*ProductEventMutation) ResetSort ¶
func (m *ProductEventMutation) ResetSort()
ResetSort resets all changes to the "sort" field.
func (*ProductEventMutation) ResetStatus ¶
func (m *ProductEventMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*ProductEventMutation) ResetUpdatedAt ¶
func (m *ProductEventMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*ProductEventMutation) ResetVersion ¶
func (m *ProductEventMutation) ResetVersion()
ResetVersion resets all changes to the "version" field.
func (*ProductEventMutation) SetCreateTs ¶
func (m *ProductEventMutation) SetCreateTs(i int64)
SetCreateTs sets the "createTs" field.
func (*ProductEventMutation) SetCreatedAt ¶
func (m *ProductEventMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*ProductEventMutation) SetCustom ¶
func (m *ProductEventMutation) SetCustom(b bool)
SetCustom sets the "custom" field.
func (*ProductEventMutation) SetEventName ¶
func (m *ProductEventMutation) SetEventName(s string)
SetEventName sets the "eventName" field.
func (*ProductEventMutation) SetEventType ¶
func (m *ProductEventMutation) SetEventType(s string)
SetEventType sets the "eventType" field.
func (*ProductEventMutation) SetField ¶
func (m *ProductEventMutation) 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 (*ProductEventMutation) SetID ¶
func (m *ProductEventMutation) SetID(id uint64)
SetID sets the value of the id field. Note that this operation is only accepted on creation of ProductEvent entities.
func (*ProductEventMutation) SetIdentifier ¶
func (m *ProductEventMutation) SetIdentifier(s string)
SetIdentifier sets the "identifier" field.
func (*ProductEventMutation) SetOp ¶
func (m *ProductEventMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*ProductEventMutation) SetOutputData ¶
func (m *ProductEventMutation) SetOutputData(s string)
SetOutputData sets the "outputData" field.
func (*ProductEventMutation) SetProductID ¶
func (m *ProductEventMutation) SetProductID(id uuid.UUID)
SetProductID sets the "product" edge to the Product entity by id.
func (*ProductEventMutation) SetProductKey ¶
func (m *ProductEventMutation) SetProductKey(s string)
SetProductKey sets the "productKey" field.
func (*ProductEventMutation) SetRequired ¶
func (m *ProductEventMutation) SetRequired(b bool)
SetRequired sets the "required" field.
func (*ProductEventMutation) SetSort ¶
func (m *ProductEventMutation) SetSort(u uint32)
SetSort sets the "sort" field.
func (*ProductEventMutation) SetStatus ¶
func (m *ProductEventMutation) SetStatus(u uint8)
SetStatus sets the "status" field.
func (*ProductEventMutation) SetUpdatedAt ¶
func (m *ProductEventMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*ProductEventMutation) SetVersion ¶
func (m *ProductEventMutation) SetVersion(s string)
SetVersion sets the "version" field.
func (*ProductEventMutation) Sort ¶
func (m *ProductEventMutation) Sort() (r uint32, exists bool)
Sort returns the value of the "sort" field in the mutation.
func (*ProductEventMutation) Status ¶
func (m *ProductEventMutation) Status() (r uint8, exists bool)
Status returns the value of the "status" field in the mutation.
func (*ProductEventMutation) StatusCleared ¶
func (m *ProductEventMutation) StatusCleared() bool
StatusCleared returns if the "status" field was cleared in this mutation.
func (ProductEventMutation) Tx ¶
func (m ProductEventMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*ProductEventMutation) Type ¶
func (m *ProductEventMutation) Type() string
Type returns the node type of this mutation (ProductEvent).
func (*ProductEventMutation) UpdatedAt ¶
func (m *ProductEventMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*ProductEventMutation) Version ¶
func (m *ProductEventMutation) Version() (r string, exists bool)
Version returns the value of the "version" field in the mutation.
func (*ProductEventMutation) VersionCleared ¶
func (m *ProductEventMutation) VersionCleared() bool
VersionCleared returns if the "version" field was cleared in this mutation.
func (*ProductEventMutation) Where ¶
func (m *ProductEventMutation) Where(ps ...predicate.ProductEvent)
Where appends a list predicates to the ProductEventMutation builder.
func (*ProductEventMutation) WhereP ¶
func (m *ProductEventMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the ProductEventMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type ProductEventPageList ¶
type ProductEventPageList struct { List []*ProductEvent `json:"list"` PageDetails *PageDetails `json:"pageDetails"` }
ProductEventPageList is ProductEvent PageList result.
type ProductEventPager ¶
type ProductEventPager struct { Order productevent.OrderOption Filter func(*ProductEventQuery) (*ProductEventQuery, error) }
func (*ProductEventPager) ApplyFilter ¶
func (p *ProductEventPager) ApplyFilter(query *ProductEventQuery) (*ProductEventQuery, error)
type ProductEventPaginateOption ¶
type ProductEventPaginateOption func(*ProductEventPager)
ProductEventPaginateOption enables pagination customization.
type ProductEventQuery ¶
type ProductEventQuery struct {
// contains filtered or unexported fields
}
ProductEventQuery is the builder for querying ProductEvent entities.
func (*ProductEventQuery) Aggregate ¶
func (peq *ProductEventQuery) Aggregate(fns ...AggregateFunc) *ProductEventSelect
Aggregate returns a ProductEventSelect configured with the given aggregations.
func (*ProductEventQuery) All ¶
func (peq *ProductEventQuery) All(ctx context.Context) ([]*ProductEvent, error)
All executes the query and returns a list of ProductEvents.
func (*ProductEventQuery) AllX ¶
func (peq *ProductEventQuery) AllX(ctx context.Context) []*ProductEvent
AllX is like All, but panics if an error occurs.
func (*ProductEventQuery) Clone ¶
func (peq *ProductEventQuery) Clone() *ProductEventQuery
Clone returns a duplicate of the ProductEventQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*ProductEventQuery) Count ¶
func (peq *ProductEventQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*ProductEventQuery) CountX ¶
func (peq *ProductEventQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*ProductEventQuery) ExecContext ¶
func (c *ProductEventQuery) 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 (*ProductEventQuery) Exist ¶
func (peq *ProductEventQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*ProductEventQuery) ExistX ¶
func (peq *ProductEventQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*ProductEventQuery) First ¶
func (peq *ProductEventQuery) First(ctx context.Context) (*ProductEvent, error)
First returns the first ProductEvent entity from the query. Returns a *NotFoundError when no ProductEvent was found.
func (*ProductEventQuery) FirstID ¶
func (peq *ProductEventQuery) FirstID(ctx context.Context) (id uint64, err error)
FirstID returns the first ProductEvent ID from the query. Returns a *NotFoundError when no ProductEvent ID was found.
func (*ProductEventQuery) FirstIDX ¶
func (peq *ProductEventQuery) FirstIDX(ctx context.Context) uint64
FirstIDX is like FirstID, but panics if an error occurs.
func (*ProductEventQuery) FirstX ¶
func (peq *ProductEventQuery) FirstX(ctx context.Context) *ProductEvent
FirstX is like First, but panics if an error occurs.
func (*ProductEventQuery) GroupBy ¶
func (peq *ProductEventQuery) GroupBy(field string, fields ...string) *ProductEventGroupBy
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.ProductEvent.Query(). GroupBy(productevent.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*ProductEventQuery) IDs ¶
func (peq *ProductEventQuery) IDs(ctx context.Context) (ids []uint64, err error)
IDs executes the query and returns a list of ProductEvent IDs.
func (*ProductEventQuery) IDsX ¶
func (peq *ProductEventQuery) IDsX(ctx context.Context) []uint64
IDsX is like IDs, but panics if an error occurs.
func (*ProductEventQuery) Limit ¶
func (peq *ProductEventQuery) Limit(limit int) *ProductEventQuery
Limit the number of records to be returned by this query.
func (*ProductEventQuery) Modify ¶
func (peq *ProductEventQuery) Modify(modifiers ...func(s *sql.Selector)) *ProductEventSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*ProductEventQuery) Offset ¶
func (peq *ProductEventQuery) Offset(offset int) *ProductEventQuery
Offset to start from.
func (*ProductEventQuery) Only ¶
func (peq *ProductEventQuery) Only(ctx context.Context) (*ProductEvent, error)
Only returns a single ProductEvent entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one ProductEvent entity is found. Returns a *NotFoundError when no ProductEvent entities are found.
func (*ProductEventQuery) OnlyID ¶
func (peq *ProductEventQuery) OnlyID(ctx context.Context) (id uint64, err error)
OnlyID is like Only, but returns the only ProductEvent ID in the query. Returns a *NotSingularError when more than one ProductEvent ID is found. Returns a *NotFoundError when no entities are found.
func (*ProductEventQuery) OnlyIDX ¶
func (peq *ProductEventQuery) OnlyIDX(ctx context.Context) uint64
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*ProductEventQuery) OnlyX ¶
func (peq *ProductEventQuery) OnlyX(ctx context.Context) *ProductEvent
OnlyX is like Only, but panics if an error occurs.
func (*ProductEventQuery) Order ¶
func (peq *ProductEventQuery) Order(o ...productevent.OrderOption) *ProductEventQuery
Order specifies how the records should be ordered.
func (*ProductEventQuery) Page ¶
func (pe *ProductEventQuery) Page( ctx context.Context, pageNum uint64, pageSize uint64, opts ...ProductEventPaginateOption, ) (*ProductEventPageList, error)
func (*ProductEventQuery) QueryContext ¶
func (c *ProductEventQuery) 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 (*ProductEventQuery) QueryProduct ¶
func (peq *ProductEventQuery) QueryProduct() *ProductQuery
QueryProduct chains the current query on the "product" edge.
func (*ProductEventQuery) Select ¶
func (peq *ProductEventQuery) Select(fields ...string) *ProductEventSelect
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.ProductEvent.Query(). Select(productevent.FieldCreatedAt). Scan(ctx, &v)
func (*ProductEventQuery) Unique ¶
func (peq *ProductEventQuery) Unique(unique bool) *ProductEventQuery
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 (*ProductEventQuery) Where ¶
func (peq *ProductEventQuery) Where(ps ...predicate.ProductEvent) *ProductEventQuery
Where adds a new predicate for the ProductEventQuery builder.
func (*ProductEventQuery) WithProduct ¶
func (peq *ProductEventQuery) WithProduct(opts ...func(*ProductQuery)) *ProductEventQuery
WithProduct tells the query-builder to eager-load the nodes that are connected to the "product" edge. The optional arguments are used to configure the query builder of the edge.
type ProductEventSelect ¶
type ProductEventSelect struct { *ProductEventQuery // contains filtered or unexported fields }
ProductEventSelect is the builder for selecting fields of ProductEvent entities.
func (*ProductEventSelect) Aggregate ¶
func (pes *ProductEventSelect) Aggregate(fns ...AggregateFunc) *ProductEventSelect
Aggregate adds the given aggregation functions to the selector query.
func (*ProductEventSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ProductEventSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (ProductEventSelect) ExecContext ¶
func (c ProductEventSelect) 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 (*ProductEventSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ProductEventSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ProductEventSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ProductEventSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ProductEventSelect) Modify ¶
func (pes *ProductEventSelect) Modify(modifiers ...func(s *sql.Selector)) *ProductEventSelect
Modify adds a query modifier for attaching custom logic to queries.
func (ProductEventSelect) QueryContext ¶
func (c ProductEventSelect) 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 (*ProductEventSelect) Scan ¶
func (pes *ProductEventSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ProductEventSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type ProductEventUpdate ¶
type ProductEventUpdate struct {
// contains filtered or unexported fields
}
ProductEventUpdate is the builder for updating ProductEvent entities.
func (*ProductEventUpdate) AddCreateTs ¶
func (peu *ProductEventUpdate) AddCreateTs(i int64) *ProductEventUpdate
AddCreateTs adds i to the "createTs" field.
func (*ProductEventUpdate) AddSort ¶
func (peu *ProductEventUpdate) AddSort(u int32) *ProductEventUpdate
AddSort adds u to the "sort" field.
func (*ProductEventUpdate) AddStatus ¶
func (peu *ProductEventUpdate) AddStatus(u int8) *ProductEventUpdate
AddStatus adds u to the "status" field.
func (*ProductEventUpdate) ClearCreateTs ¶
func (peu *ProductEventUpdate) ClearCreateTs() *ProductEventUpdate
ClearCreateTs clears the value of the "createTs" field.
func (*ProductEventUpdate) ClearEventType ¶
func (peu *ProductEventUpdate) ClearEventType() *ProductEventUpdate
ClearEventType clears the value of the "eventType" field.
func (*ProductEventUpdate) ClearOutputData ¶
func (peu *ProductEventUpdate) ClearOutputData() *ProductEventUpdate
ClearOutputData clears the value of the "outputData" field.
func (*ProductEventUpdate) ClearProduct ¶
func (peu *ProductEventUpdate) ClearProduct() *ProductEventUpdate
ClearProduct clears the "product" edge to the Product entity.
func (*ProductEventUpdate) ClearStatus ¶
func (peu *ProductEventUpdate) ClearStatus() *ProductEventUpdate
ClearStatus clears the value of the "status" field.
func (*ProductEventUpdate) ClearVersion ¶
func (peu *ProductEventUpdate) ClearVersion() *ProductEventUpdate
ClearVersion clears the value of the "version" field.
func (*ProductEventUpdate) Exec ¶
func (peu *ProductEventUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*ProductEventUpdate) ExecContext ¶
func (c *ProductEventUpdate) 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 (*ProductEventUpdate) ExecX ¶
func (peu *ProductEventUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductEventUpdate) Modify ¶
func (peu *ProductEventUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ProductEventUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*ProductEventUpdate) Mutation ¶
func (peu *ProductEventUpdate) Mutation() *ProductEventMutation
Mutation returns the ProductEventMutation object of the builder.
func (*ProductEventUpdate) QueryContext ¶
func (c *ProductEventUpdate) 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 (*ProductEventUpdate) Save ¶
func (peu *ProductEventUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*ProductEventUpdate) SaveX ¶
func (peu *ProductEventUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*ProductEventUpdate) SetCreateTs ¶
func (peu *ProductEventUpdate) SetCreateTs(i int64) *ProductEventUpdate
SetCreateTs sets the "createTs" field.
func (*ProductEventUpdate) SetCustom ¶
func (peu *ProductEventUpdate) SetCustom(b bool) *ProductEventUpdate
SetCustom sets the "custom" field.
func (*ProductEventUpdate) SetEventName ¶
func (peu *ProductEventUpdate) SetEventName(s string) *ProductEventUpdate
SetEventName sets the "eventName" field.
func (*ProductEventUpdate) SetEventType ¶
func (peu *ProductEventUpdate) SetEventType(s string) *ProductEventUpdate
SetEventType sets the "eventType" field.
func (*ProductEventUpdate) SetIdentifier ¶
func (peu *ProductEventUpdate) SetIdentifier(s string) *ProductEventUpdate
SetIdentifier sets the "identifier" field.
func (*ProductEventUpdate) SetNillableCreateTs ¶
func (peu *ProductEventUpdate) SetNillableCreateTs(i *int64) *ProductEventUpdate
SetNillableCreateTs sets the "createTs" field if the given value is not nil.
func (*ProductEventUpdate) SetNillableCustom ¶
func (peu *ProductEventUpdate) SetNillableCustom(b *bool) *ProductEventUpdate
SetNillableCustom sets the "custom" field if the given value is not nil.
func (*ProductEventUpdate) SetNillableEventName ¶
func (peu *ProductEventUpdate) SetNillableEventName(s *string) *ProductEventUpdate
SetNillableEventName sets the "eventName" field if the given value is not nil.
func (*ProductEventUpdate) SetNillableEventType ¶
func (peu *ProductEventUpdate) SetNillableEventType(s *string) *ProductEventUpdate
SetNillableEventType sets the "eventType" field if the given value is not nil.
func (*ProductEventUpdate) SetNillableIdentifier ¶
func (peu *ProductEventUpdate) SetNillableIdentifier(s *string) *ProductEventUpdate
SetNillableIdentifier sets the "identifier" field if the given value is not nil.
func (*ProductEventUpdate) SetNillableOutputData ¶
func (peu *ProductEventUpdate) SetNillableOutputData(s *string) *ProductEventUpdate
SetNillableOutputData sets the "outputData" field if the given value is not nil.
func (*ProductEventUpdate) SetNillableProductID ¶
func (peu *ProductEventUpdate) SetNillableProductID(id *uuid.UUID) *ProductEventUpdate
SetNillableProductID sets the "product" edge to the Product entity by ID if the given value is not nil.
func (*ProductEventUpdate) SetNillableProductKey ¶
func (peu *ProductEventUpdate) SetNillableProductKey(s *string) *ProductEventUpdate
SetNillableProductKey sets the "productKey" field if the given value is not nil.
func (*ProductEventUpdate) SetNillableRequired ¶
func (peu *ProductEventUpdate) SetNillableRequired(b *bool) *ProductEventUpdate
SetNillableRequired sets the "required" field if the given value is not nil.
func (*ProductEventUpdate) SetNillableSort ¶
func (peu *ProductEventUpdate) SetNillableSort(u *uint32) *ProductEventUpdate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*ProductEventUpdate) SetNillableStatus ¶
func (peu *ProductEventUpdate) SetNillableStatus(u *uint8) *ProductEventUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*ProductEventUpdate) SetNillableVersion ¶
func (peu *ProductEventUpdate) SetNillableVersion(s *string) *ProductEventUpdate
SetNillableVersion sets the "version" field if the given value is not nil.
func (*ProductEventUpdate) SetNotNilCreateTs ¶
func (pe *ProductEventUpdate) SetNotNilCreateTs(value *int64) *ProductEventUpdate
set field if value's pointer is not nil.
func (*ProductEventUpdate) SetNotNilCustom ¶
func (pe *ProductEventUpdate) SetNotNilCustom(value *bool) *ProductEventUpdate
set field if value's pointer is not nil.
func (*ProductEventUpdate) SetNotNilEventName ¶
func (pe *ProductEventUpdate) SetNotNilEventName(value *string) *ProductEventUpdate
set field if value's pointer is not nil.
func (*ProductEventUpdate) SetNotNilEventType ¶
func (pe *ProductEventUpdate) SetNotNilEventType(value *string) *ProductEventUpdate
set field if value's pointer is not nil.
func (*ProductEventUpdate) SetNotNilIdentifier ¶
func (pe *ProductEventUpdate) SetNotNilIdentifier(value *string) *ProductEventUpdate
set field if value's pointer is not nil.
func (*ProductEventUpdate) SetNotNilOutputData ¶
func (pe *ProductEventUpdate) SetNotNilOutputData(value *string) *ProductEventUpdate
set field if value's pointer is not nil.
func (*ProductEventUpdate) SetNotNilProductKey ¶
func (pe *ProductEventUpdate) SetNotNilProductKey(value *string) *ProductEventUpdate
set field if value's pointer is not nil.
func (*ProductEventUpdate) SetNotNilRequired ¶
func (pe *ProductEventUpdate) SetNotNilRequired(value *bool) *ProductEventUpdate
set field if value's pointer is not nil.
func (*ProductEventUpdate) SetNotNilSort ¶
func (pe *ProductEventUpdate) SetNotNilSort(value *uint32) *ProductEventUpdate
set field if value's pointer is not nil.
func (*ProductEventUpdate) SetNotNilStatus ¶
func (pe *ProductEventUpdate) SetNotNilStatus(value *uint8) *ProductEventUpdate
set field if value's pointer is not nil.
func (*ProductEventUpdate) SetNotNilUpdatedAt ¶
func (pe *ProductEventUpdate) SetNotNilUpdatedAt(value *time.Time) *ProductEventUpdate
set field if value's pointer is not nil.
func (*ProductEventUpdate) SetNotNilVersion ¶
func (pe *ProductEventUpdate) SetNotNilVersion(value *string) *ProductEventUpdate
set field if value's pointer is not nil.
func (*ProductEventUpdate) SetOutputData ¶
func (peu *ProductEventUpdate) SetOutputData(s string) *ProductEventUpdate
SetOutputData sets the "outputData" field.
func (*ProductEventUpdate) SetProduct ¶
func (peu *ProductEventUpdate) SetProduct(p *Product) *ProductEventUpdate
SetProduct sets the "product" edge to the Product entity.
func (*ProductEventUpdate) SetProductID ¶
func (peu *ProductEventUpdate) SetProductID(id uuid.UUID) *ProductEventUpdate
SetProductID sets the "product" edge to the Product entity by ID.
func (*ProductEventUpdate) SetProductKey ¶
func (peu *ProductEventUpdate) SetProductKey(s string) *ProductEventUpdate
SetProductKey sets the "productKey" field.
func (*ProductEventUpdate) SetRequired ¶
func (peu *ProductEventUpdate) SetRequired(b bool) *ProductEventUpdate
SetRequired sets the "required" field.
func (*ProductEventUpdate) SetSort ¶
func (peu *ProductEventUpdate) SetSort(u uint32) *ProductEventUpdate
SetSort sets the "sort" field.
func (*ProductEventUpdate) SetStatus ¶
func (peu *ProductEventUpdate) SetStatus(u uint8) *ProductEventUpdate
SetStatus sets the "status" field.
func (*ProductEventUpdate) SetUpdatedAt ¶
func (peu *ProductEventUpdate) SetUpdatedAt(t time.Time) *ProductEventUpdate
SetUpdatedAt sets the "updated_at" field.
func (*ProductEventUpdate) SetVersion ¶
func (peu *ProductEventUpdate) SetVersion(s string) *ProductEventUpdate
SetVersion sets the "version" field.
func (*ProductEventUpdate) Where ¶
func (peu *ProductEventUpdate) Where(ps ...predicate.ProductEvent) *ProductEventUpdate
Where appends a list predicates to the ProductEventUpdate builder.
type ProductEventUpdateOne ¶
type ProductEventUpdateOne struct {
// contains filtered or unexported fields
}
ProductEventUpdateOne is the builder for updating a single ProductEvent entity.
func (*ProductEventUpdateOne) AddCreateTs ¶
func (peuo *ProductEventUpdateOne) AddCreateTs(i int64) *ProductEventUpdateOne
AddCreateTs adds i to the "createTs" field.
func (*ProductEventUpdateOne) AddSort ¶
func (peuo *ProductEventUpdateOne) AddSort(u int32) *ProductEventUpdateOne
AddSort adds u to the "sort" field.
func (*ProductEventUpdateOne) AddStatus ¶
func (peuo *ProductEventUpdateOne) AddStatus(u int8) *ProductEventUpdateOne
AddStatus adds u to the "status" field.
func (*ProductEventUpdateOne) ClearCreateTs ¶
func (peuo *ProductEventUpdateOne) ClearCreateTs() *ProductEventUpdateOne
ClearCreateTs clears the value of the "createTs" field.
func (*ProductEventUpdateOne) ClearEventType ¶
func (peuo *ProductEventUpdateOne) ClearEventType() *ProductEventUpdateOne
ClearEventType clears the value of the "eventType" field.
func (*ProductEventUpdateOne) ClearOutputData ¶
func (peuo *ProductEventUpdateOne) ClearOutputData() *ProductEventUpdateOne
ClearOutputData clears the value of the "outputData" field.
func (*ProductEventUpdateOne) ClearProduct ¶
func (peuo *ProductEventUpdateOne) ClearProduct() *ProductEventUpdateOne
ClearProduct clears the "product" edge to the Product entity.
func (*ProductEventUpdateOne) ClearStatus ¶
func (peuo *ProductEventUpdateOne) ClearStatus() *ProductEventUpdateOne
ClearStatus clears the value of the "status" field.
func (*ProductEventUpdateOne) ClearVersion ¶
func (peuo *ProductEventUpdateOne) ClearVersion() *ProductEventUpdateOne
ClearVersion clears the value of the "version" field.
func (*ProductEventUpdateOne) Exec ¶
func (peuo *ProductEventUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*ProductEventUpdateOne) ExecContext ¶
func (c *ProductEventUpdateOne) 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 (*ProductEventUpdateOne) ExecX ¶
func (peuo *ProductEventUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductEventUpdateOne) Modify ¶
func (peuo *ProductEventUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ProductEventUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*ProductEventUpdateOne) Mutation ¶
func (peuo *ProductEventUpdateOne) Mutation() *ProductEventMutation
Mutation returns the ProductEventMutation object of the builder.
func (*ProductEventUpdateOne) QueryContext ¶
func (c *ProductEventUpdateOne) 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 (*ProductEventUpdateOne) Save ¶
func (peuo *ProductEventUpdateOne) Save(ctx context.Context) (*ProductEvent, error)
Save executes the query and returns the updated ProductEvent entity.
func (*ProductEventUpdateOne) SaveX ¶
func (peuo *ProductEventUpdateOne) SaveX(ctx context.Context) *ProductEvent
SaveX is like Save, but panics if an error occurs.
func (*ProductEventUpdateOne) Select ¶
func (peuo *ProductEventUpdateOne) Select(field string, fields ...string) *ProductEventUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*ProductEventUpdateOne) SetCreateTs ¶
func (peuo *ProductEventUpdateOne) SetCreateTs(i int64) *ProductEventUpdateOne
SetCreateTs sets the "createTs" field.
func (*ProductEventUpdateOne) SetCustom ¶
func (peuo *ProductEventUpdateOne) SetCustom(b bool) *ProductEventUpdateOne
SetCustom sets the "custom" field.
func (*ProductEventUpdateOne) SetEventName ¶
func (peuo *ProductEventUpdateOne) SetEventName(s string) *ProductEventUpdateOne
SetEventName sets the "eventName" field.
func (*ProductEventUpdateOne) SetEventType ¶
func (peuo *ProductEventUpdateOne) SetEventType(s string) *ProductEventUpdateOne
SetEventType sets the "eventType" field.
func (*ProductEventUpdateOne) SetIdentifier ¶
func (peuo *ProductEventUpdateOne) SetIdentifier(s string) *ProductEventUpdateOne
SetIdentifier sets the "identifier" field.
func (*ProductEventUpdateOne) SetNillableCreateTs ¶
func (peuo *ProductEventUpdateOne) SetNillableCreateTs(i *int64) *ProductEventUpdateOne
SetNillableCreateTs sets the "createTs" field if the given value is not nil.
func (*ProductEventUpdateOne) SetNillableCustom ¶
func (peuo *ProductEventUpdateOne) SetNillableCustom(b *bool) *ProductEventUpdateOne
SetNillableCustom sets the "custom" field if the given value is not nil.
func (*ProductEventUpdateOne) SetNillableEventName ¶
func (peuo *ProductEventUpdateOne) SetNillableEventName(s *string) *ProductEventUpdateOne
SetNillableEventName sets the "eventName" field if the given value is not nil.
func (*ProductEventUpdateOne) SetNillableEventType ¶
func (peuo *ProductEventUpdateOne) SetNillableEventType(s *string) *ProductEventUpdateOne
SetNillableEventType sets the "eventType" field if the given value is not nil.
func (*ProductEventUpdateOne) SetNillableIdentifier ¶
func (peuo *ProductEventUpdateOne) SetNillableIdentifier(s *string) *ProductEventUpdateOne
SetNillableIdentifier sets the "identifier" field if the given value is not nil.
func (*ProductEventUpdateOne) SetNillableOutputData ¶
func (peuo *ProductEventUpdateOne) SetNillableOutputData(s *string) *ProductEventUpdateOne
SetNillableOutputData sets the "outputData" field if the given value is not nil.
func (*ProductEventUpdateOne) SetNillableProductID ¶
func (peuo *ProductEventUpdateOne) SetNillableProductID(id *uuid.UUID) *ProductEventUpdateOne
SetNillableProductID sets the "product" edge to the Product entity by ID if the given value is not nil.
func (*ProductEventUpdateOne) SetNillableProductKey ¶
func (peuo *ProductEventUpdateOne) SetNillableProductKey(s *string) *ProductEventUpdateOne
SetNillableProductKey sets the "productKey" field if the given value is not nil.
func (*ProductEventUpdateOne) SetNillableRequired ¶
func (peuo *ProductEventUpdateOne) SetNillableRequired(b *bool) *ProductEventUpdateOne
SetNillableRequired sets the "required" field if the given value is not nil.
func (*ProductEventUpdateOne) SetNillableSort ¶
func (peuo *ProductEventUpdateOne) SetNillableSort(u *uint32) *ProductEventUpdateOne
SetNillableSort sets the "sort" field if the given value is not nil.
func (*ProductEventUpdateOne) SetNillableStatus ¶
func (peuo *ProductEventUpdateOne) SetNillableStatus(u *uint8) *ProductEventUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*ProductEventUpdateOne) SetNillableVersion ¶
func (peuo *ProductEventUpdateOne) SetNillableVersion(s *string) *ProductEventUpdateOne
SetNillableVersion sets the "version" field if the given value is not nil.
func (*ProductEventUpdateOne) SetNotNilCreateTs ¶
func (pe *ProductEventUpdateOne) SetNotNilCreateTs(value *int64) *ProductEventUpdateOne
set field if value's pointer is not nil.
func (*ProductEventUpdateOne) SetNotNilCustom ¶
func (pe *ProductEventUpdateOne) SetNotNilCustom(value *bool) *ProductEventUpdateOne
set field if value's pointer is not nil.
func (*ProductEventUpdateOne) SetNotNilEventName ¶
func (pe *ProductEventUpdateOne) SetNotNilEventName(value *string) *ProductEventUpdateOne
set field if value's pointer is not nil.
func (*ProductEventUpdateOne) SetNotNilEventType ¶
func (pe *ProductEventUpdateOne) SetNotNilEventType(value *string) *ProductEventUpdateOne
set field if value's pointer is not nil.
func (*ProductEventUpdateOne) SetNotNilIdentifier ¶
func (pe *ProductEventUpdateOne) SetNotNilIdentifier(value *string) *ProductEventUpdateOne
set field if value's pointer is not nil.
func (*ProductEventUpdateOne) SetNotNilOutputData ¶
func (pe *ProductEventUpdateOne) SetNotNilOutputData(value *string) *ProductEventUpdateOne
set field if value's pointer is not nil.
func (*ProductEventUpdateOne) SetNotNilProductKey ¶
func (pe *ProductEventUpdateOne) SetNotNilProductKey(value *string) *ProductEventUpdateOne
set field if value's pointer is not nil.
func (*ProductEventUpdateOne) SetNotNilRequired ¶
func (pe *ProductEventUpdateOne) SetNotNilRequired(value *bool) *ProductEventUpdateOne
set field if value's pointer is not nil.
func (*ProductEventUpdateOne) SetNotNilSort ¶
func (pe *ProductEventUpdateOne) SetNotNilSort(value *uint32) *ProductEventUpdateOne
set field if value's pointer is not nil.
func (*ProductEventUpdateOne) SetNotNilStatus ¶
func (pe *ProductEventUpdateOne) SetNotNilStatus(value *uint8) *ProductEventUpdateOne
set field if value's pointer is not nil.
func (*ProductEventUpdateOne) SetNotNilUpdatedAt ¶
func (pe *ProductEventUpdateOne) SetNotNilUpdatedAt(value *time.Time) *ProductEventUpdateOne
set field if value's pointer is not nil.
func (*ProductEventUpdateOne) SetNotNilVersion ¶
func (pe *ProductEventUpdateOne) SetNotNilVersion(value *string) *ProductEventUpdateOne
set field if value's pointer is not nil.
func (*ProductEventUpdateOne) SetOutputData ¶
func (peuo *ProductEventUpdateOne) SetOutputData(s string) *ProductEventUpdateOne
SetOutputData sets the "outputData" field.
func (*ProductEventUpdateOne) SetProduct ¶
func (peuo *ProductEventUpdateOne) SetProduct(p *Product) *ProductEventUpdateOne
SetProduct sets the "product" edge to the Product entity.
func (*ProductEventUpdateOne) SetProductID ¶
func (peuo *ProductEventUpdateOne) SetProductID(id uuid.UUID) *ProductEventUpdateOne
SetProductID sets the "product" edge to the Product entity by ID.
func (*ProductEventUpdateOne) SetProductKey ¶
func (peuo *ProductEventUpdateOne) SetProductKey(s string) *ProductEventUpdateOne
SetProductKey sets the "productKey" field.
func (*ProductEventUpdateOne) SetRequired ¶
func (peuo *ProductEventUpdateOne) SetRequired(b bool) *ProductEventUpdateOne
SetRequired sets the "required" field.
func (*ProductEventUpdateOne) SetSort ¶
func (peuo *ProductEventUpdateOne) SetSort(u uint32) *ProductEventUpdateOne
SetSort sets the "sort" field.
func (*ProductEventUpdateOne) SetStatus ¶
func (peuo *ProductEventUpdateOne) SetStatus(u uint8) *ProductEventUpdateOne
SetStatus sets the "status" field.
func (*ProductEventUpdateOne) SetUpdatedAt ¶
func (peuo *ProductEventUpdateOne) SetUpdatedAt(t time.Time) *ProductEventUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*ProductEventUpdateOne) SetVersion ¶
func (peuo *ProductEventUpdateOne) SetVersion(s string) *ProductEventUpdateOne
SetVersion sets the "version" field.
func (*ProductEventUpdateOne) Where ¶
func (peuo *ProductEventUpdateOne) Where(ps ...predicate.ProductEvent) *ProductEventUpdateOne
Where appends a list predicates to the ProductEventUpdate builder.
type ProductEventUpsert ¶
ProductEventUpsert is the "OnConflict" setter.
func (*ProductEventUpsert) AddCreateTs ¶
func (u *ProductEventUpsert) AddCreateTs(v int64) *ProductEventUpsert
AddCreateTs adds v to the "createTs" field.
func (*ProductEventUpsert) AddSort ¶
func (u *ProductEventUpsert) AddSort(v uint32) *ProductEventUpsert
AddSort adds v to the "sort" field.
func (*ProductEventUpsert) AddStatus ¶
func (u *ProductEventUpsert) AddStatus(v uint8) *ProductEventUpsert
AddStatus adds v to the "status" field.
func (*ProductEventUpsert) ClearCreateTs ¶
func (u *ProductEventUpsert) ClearCreateTs() *ProductEventUpsert
ClearCreateTs clears the value of the "createTs" field.
func (*ProductEventUpsert) ClearEventType ¶
func (u *ProductEventUpsert) ClearEventType() *ProductEventUpsert
ClearEventType clears the value of the "eventType" field.
func (*ProductEventUpsert) ClearOutputData ¶
func (u *ProductEventUpsert) ClearOutputData() *ProductEventUpsert
ClearOutputData clears the value of the "outputData" field.
func (*ProductEventUpsert) ClearStatus ¶
func (u *ProductEventUpsert) ClearStatus() *ProductEventUpsert
ClearStatus clears the value of the "status" field.
func (*ProductEventUpsert) ClearVersion ¶
func (u *ProductEventUpsert) ClearVersion() *ProductEventUpsert
ClearVersion clears the value of the "version" field.
func (*ProductEventUpsert) SetCreateTs ¶
func (u *ProductEventUpsert) SetCreateTs(v int64) *ProductEventUpsert
SetCreateTs sets the "createTs" field.
func (*ProductEventUpsert) SetCustom ¶
func (u *ProductEventUpsert) SetCustom(v bool) *ProductEventUpsert
SetCustom sets the "custom" field.
func (*ProductEventUpsert) SetEventName ¶
func (u *ProductEventUpsert) SetEventName(v string) *ProductEventUpsert
SetEventName sets the "eventName" field.
func (*ProductEventUpsert) SetEventType ¶
func (u *ProductEventUpsert) SetEventType(v string) *ProductEventUpsert
SetEventType sets the "eventType" field.
func (*ProductEventUpsert) SetIdentifier ¶
func (u *ProductEventUpsert) SetIdentifier(v string) *ProductEventUpsert
SetIdentifier sets the "identifier" field.
func (*ProductEventUpsert) SetOutputData ¶
func (u *ProductEventUpsert) SetOutputData(v string) *ProductEventUpsert
SetOutputData sets the "outputData" field.
func (*ProductEventUpsert) SetProductKey ¶
func (u *ProductEventUpsert) SetProductKey(v string) *ProductEventUpsert
SetProductKey sets the "productKey" field.
func (*ProductEventUpsert) SetRequired ¶
func (u *ProductEventUpsert) SetRequired(v bool) *ProductEventUpsert
SetRequired sets the "required" field.
func (*ProductEventUpsert) SetSort ¶
func (u *ProductEventUpsert) SetSort(v uint32) *ProductEventUpsert
SetSort sets the "sort" field.
func (*ProductEventUpsert) SetStatus ¶
func (u *ProductEventUpsert) SetStatus(v uint8) *ProductEventUpsert
SetStatus sets the "status" field.
func (*ProductEventUpsert) SetUpdatedAt ¶
func (u *ProductEventUpsert) SetUpdatedAt(v time.Time) *ProductEventUpsert
SetUpdatedAt sets the "updated_at" field.
func (*ProductEventUpsert) SetVersion ¶
func (u *ProductEventUpsert) SetVersion(v string) *ProductEventUpsert
SetVersion sets the "version" field.
func (*ProductEventUpsert) UpdateCreateTs ¶
func (u *ProductEventUpsert) UpdateCreateTs() *ProductEventUpsert
UpdateCreateTs sets the "createTs" field to the value that was provided on create.
func (*ProductEventUpsert) UpdateCustom ¶
func (u *ProductEventUpsert) UpdateCustom() *ProductEventUpsert
UpdateCustom sets the "custom" field to the value that was provided on create.
func (*ProductEventUpsert) UpdateEventName ¶
func (u *ProductEventUpsert) UpdateEventName() *ProductEventUpsert
UpdateEventName sets the "eventName" field to the value that was provided on create.
func (*ProductEventUpsert) UpdateEventType ¶
func (u *ProductEventUpsert) UpdateEventType() *ProductEventUpsert
UpdateEventType sets the "eventType" field to the value that was provided on create.
func (*ProductEventUpsert) UpdateIdentifier ¶
func (u *ProductEventUpsert) UpdateIdentifier() *ProductEventUpsert
UpdateIdentifier sets the "identifier" field to the value that was provided on create.
func (*ProductEventUpsert) UpdateOutputData ¶
func (u *ProductEventUpsert) UpdateOutputData() *ProductEventUpsert
UpdateOutputData sets the "outputData" field to the value that was provided on create.
func (*ProductEventUpsert) UpdateProductKey ¶
func (u *ProductEventUpsert) UpdateProductKey() *ProductEventUpsert
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*ProductEventUpsert) UpdateRequired ¶
func (u *ProductEventUpsert) UpdateRequired() *ProductEventUpsert
UpdateRequired sets the "required" field to the value that was provided on create.
func (*ProductEventUpsert) UpdateSort ¶
func (u *ProductEventUpsert) UpdateSort() *ProductEventUpsert
UpdateSort sets the "sort" field to the value that was provided on create.
func (*ProductEventUpsert) UpdateStatus ¶
func (u *ProductEventUpsert) UpdateStatus() *ProductEventUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*ProductEventUpsert) UpdateUpdatedAt ¶
func (u *ProductEventUpsert) UpdateUpdatedAt() *ProductEventUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*ProductEventUpsert) UpdateVersion ¶
func (u *ProductEventUpsert) UpdateVersion() *ProductEventUpsert
UpdateVersion sets the "version" field to the value that was provided on create.
type ProductEventUpsertBulk ¶
type ProductEventUpsertBulk struct {
// contains filtered or unexported fields
}
ProductEventUpsertBulk is the builder for "upsert"-ing a bulk of ProductEvent nodes.
func (*ProductEventUpsertBulk) AddCreateTs ¶
func (u *ProductEventUpsertBulk) AddCreateTs(v int64) *ProductEventUpsertBulk
AddCreateTs adds v to the "createTs" field.
func (*ProductEventUpsertBulk) AddSort ¶
func (u *ProductEventUpsertBulk) AddSort(v uint32) *ProductEventUpsertBulk
AddSort adds v to the "sort" field.
func (*ProductEventUpsertBulk) AddStatus ¶
func (u *ProductEventUpsertBulk) AddStatus(v uint8) *ProductEventUpsertBulk
AddStatus adds v to the "status" field.
func (*ProductEventUpsertBulk) ClearCreateTs ¶
func (u *ProductEventUpsertBulk) ClearCreateTs() *ProductEventUpsertBulk
ClearCreateTs clears the value of the "createTs" field.
func (*ProductEventUpsertBulk) ClearEventType ¶
func (u *ProductEventUpsertBulk) ClearEventType() *ProductEventUpsertBulk
ClearEventType clears the value of the "eventType" field.
func (*ProductEventUpsertBulk) ClearOutputData ¶
func (u *ProductEventUpsertBulk) ClearOutputData() *ProductEventUpsertBulk
ClearOutputData clears the value of the "outputData" field.
func (*ProductEventUpsertBulk) ClearStatus ¶
func (u *ProductEventUpsertBulk) ClearStatus() *ProductEventUpsertBulk
ClearStatus clears the value of the "status" field.
func (*ProductEventUpsertBulk) ClearVersion ¶
func (u *ProductEventUpsertBulk) ClearVersion() *ProductEventUpsertBulk
ClearVersion clears the value of the "version" field.
func (*ProductEventUpsertBulk) DoNothing ¶
func (u *ProductEventUpsertBulk) DoNothing() *ProductEventUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ProductEventUpsertBulk) Exec ¶
func (u *ProductEventUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ProductEventUpsertBulk) ExecX ¶
func (u *ProductEventUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductEventUpsertBulk) Ignore ¶
func (u *ProductEventUpsertBulk) Ignore() *ProductEventUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.ProductEvent.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*ProductEventUpsertBulk) SetCreateTs ¶
func (u *ProductEventUpsertBulk) SetCreateTs(v int64) *ProductEventUpsertBulk
SetCreateTs sets the "createTs" field.
func (*ProductEventUpsertBulk) SetCustom ¶
func (u *ProductEventUpsertBulk) SetCustom(v bool) *ProductEventUpsertBulk
SetCustom sets the "custom" field.
func (*ProductEventUpsertBulk) SetEventName ¶
func (u *ProductEventUpsertBulk) SetEventName(v string) *ProductEventUpsertBulk
SetEventName sets the "eventName" field.
func (*ProductEventUpsertBulk) SetEventType ¶
func (u *ProductEventUpsertBulk) SetEventType(v string) *ProductEventUpsertBulk
SetEventType sets the "eventType" field.
func (*ProductEventUpsertBulk) SetIdentifier ¶
func (u *ProductEventUpsertBulk) SetIdentifier(v string) *ProductEventUpsertBulk
SetIdentifier sets the "identifier" field.
func (*ProductEventUpsertBulk) SetOutputData ¶
func (u *ProductEventUpsertBulk) SetOutputData(v string) *ProductEventUpsertBulk
SetOutputData sets the "outputData" field.
func (*ProductEventUpsertBulk) SetProductKey ¶
func (u *ProductEventUpsertBulk) SetProductKey(v string) *ProductEventUpsertBulk
SetProductKey sets the "productKey" field.
func (*ProductEventUpsertBulk) SetRequired ¶
func (u *ProductEventUpsertBulk) SetRequired(v bool) *ProductEventUpsertBulk
SetRequired sets the "required" field.
func (*ProductEventUpsertBulk) SetSort ¶
func (u *ProductEventUpsertBulk) SetSort(v uint32) *ProductEventUpsertBulk
SetSort sets the "sort" field.
func (*ProductEventUpsertBulk) SetStatus ¶
func (u *ProductEventUpsertBulk) SetStatus(v uint8) *ProductEventUpsertBulk
SetStatus sets the "status" field.
func (*ProductEventUpsertBulk) SetUpdatedAt ¶
func (u *ProductEventUpsertBulk) SetUpdatedAt(v time.Time) *ProductEventUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*ProductEventUpsertBulk) SetVersion ¶
func (u *ProductEventUpsertBulk) SetVersion(v string) *ProductEventUpsertBulk
SetVersion sets the "version" field.
func (*ProductEventUpsertBulk) Update ¶
func (u *ProductEventUpsertBulk) Update(set func(*ProductEventUpsert)) *ProductEventUpsertBulk
Update allows overriding fields `UPDATE` values. See the ProductEventCreateBulk.OnConflict documentation for more info.
func (*ProductEventUpsertBulk) UpdateCreateTs ¶
func (u *ProductEventUpsertBulk) UpdateCreateTs() *ProductEventUpsertBulk
UpdateCreateTs sets the "createTs" field to the value that was provided on create.
func (*ProductEventUpsertBulk) UpdateCustom ¶
func (u *ProductEventUpsertBulk) UpdateCustom() *ProductEventUpsertBulk
UpdateCustom sets the "custom" field to the value that was provided on create.
func (*ProductEventUpsertBulk) UpdateEventName ¶
func (u *ProductEventUpsertBulk) UpdateEventName() *ProductEventUpsertBulk
UpdateEventName sets the "eventName" field to the value that was provided on create.
func (*ProductEventUpsertBulk) UpdateEventType ¶
func (u *ProductEventUpsertBulk) UpdateEventType() *ProductEventUpsertBulk
UpdateEventType sets the "eventType" field to the value that was provided on create.
func (*ProductEventUpsertBulk) UpdateIdentifier ¶
func (u *ProductEventUpsertBulk) UpdateIdentifier() *ProductEventUpsertBulk
UpdateIdentifier sets the "identifier" field to the value that was provided on create.
func (*ProductEventUpsertBulk) UpdateNewValues ¶
func (u *ProductEventUpsertBulk) UpdateNewValues() *ProductEventUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.ProductEvent.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(productevent.FieldID) }), ). Exec(ctx)
func (*ProductEventUpsertBulk) UpdateOutputData ¶
func (u *ProductEventUpsertBulk) UpdateOutputData() *ProductEventUpsertBulk
UpdateOutputData sets the "outputData" field to the value that was provided on create.
func (*ProductEventUpsertBulk) UpdateProductKey ¶
func (u *ProductEventUpsertBulk) UpdateProductKey() *ProductEventUpsertBulk
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*ProductEventUpsertBulk) UpdateRequired ¶
func (u *ProductEventUpsertBulk) UpdateRequired() *ProductEventUpsertBulk
UpdateRequired sets the "required" field to the value that was provided on create.
func (*ProductEventUpsertBulk) UpdateSort ¶
func (u *ProductEventUpsertBulk) UpdateSort() *ProductEventUpsertBulk
UpdateSort sets the "sort" field to the value that was provided on create.
func (*ProductEventUpsertBulk) UpdateStatus ¶
func (u *ProductEventUpsertBulk) UpdateStatus() *ProductEventUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*ProductEventUpsertBulk) UpdateUpdatedAt ¶
func (u *ProductEventUpsertBulk) UpdateUpdatedAt() *ProductEventUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*ProductEventUpsertBulk) UpdateVersion ¶
func (u *ProductEventUpsertBulk) UpdateVersion() *ProductEventUpsertBulk
UpdateVersion sets the "version" field to the value that was provided on create.
type ProductEventUpsertOne ¶
type ProductEventUpsertOne struct {
// contains filtered or unexported fields
}
ProductEventUpsertOne is the builder for "upsert"-ing
one ProductEvent node.
func (*ProductEventUpsertOne) AddCreateTs ¶
func (u *ProductEventUpsertOne) AddCreateTs(v int64) *ProductEventUpsertOne
AddCreateTs adds v to the "createTs" field.
func (*ProductEventUpsertOne) AddSort ¶
func (u *ProductEventUpsertOne) AddSort(v uint32) *ProductEventUpsertOne
AddSort adds v to the "sort" field.
func (*ProductEventUpsertOne) AddStatus ¶
func (u *ProductEventUpsertOne) AddStatus(v uint8) *ProductEventUpsertOne
AddStatus adds v to the "status" field.
func (*ProductEventUpsertOne) ClearCreateTs ¶
func (u *ProductEventUpsertOne) ClearCreateTs() *ProductEventUpsertOne
ClearCreateTs clears the value of the "createTs" field.
func (*ProductEventUpsertOne) ClearEventType ¶
func (u *ProductEventUpsertOne) ClearEventType() *ProductEventUpsertOne
ClearEventType clears the value of the "eventType" field.
func (*ProductEventUpsertOne) ClearOutputData ¶
func (u *ProductEventUpsertOne) ClearOutputData() *ProductEventUpsertOne
ClearOutputData clears the value of the "outputData" field.
func (*ProductEventUpsertOne) ClearStatus ¶
func (u *ProductEventUpsertOne) ClearStatus() *ProductEventUpsertOne
ClearStatus clears the value of the "status" field.
func (*ProductEventUpsertOne) ClearVersion ¶
func (u *ProductEventUpsertOne) ClearVersion() *ProductEventUpsertOne
ClearVersion clears the value of the "version" field.
func (*ProductEventUpsertOne) DoNothing ¶
func (u *ProductEventUpsertOne) DoNothing() *ProductEventUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ProductEventUpsertOne) Exec ¶
func (u *ProductEventUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*ProductEventUpsertOne) ExecX ¶
func (u *ProductEventUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductEventUpsertOne) ID ¶
func (u *ProductEventUpsertOne) ID(ctx context.Context) (id uint64, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*ProductEventUpsertOne) IDX ¶
func (u *ProductEventUpsertOne) IDX(ctx context.Context) uint64
IDX is like ID, but panics if an error occurs.
func (*ProductEventUpsertOne) Ignore ¶
func (u *ProductEventUpsertOne) Ignore() *ProductEventUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.ProductEvent.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*ProductEventUpsertOne) SetCreateTs ¶
func (u *ProductEventUpsertOne) SetCreateTs(v int64) *ProductEventUpsertOne
SetCreateTs sets the "createTs" field.
func (*ProductEventUpsertOne) SetCustom ¶
func (u *ProductEventUpsertOne) SetCustom(v bool) *ProductEventUpsertOne
SetCustom sets the "custom" field.
func (*ProductEventUpsertOne) SetEventName ¶
func (u *ProductEventUpsertOne) SetEventName(v string) *ProductEventUpsertOne
SetEventName sets the "eventName" field.
func (*ProductEventUpsertOne) SetEventType ¶
func (u *ProductEventUpsertOne) SetEventType(v string) *ProductEventUpsertOne
SetEventType sets the "eventType" field.
func (*ProductEventUpsertOne) SetIdentifier ¶
func (u *ProductEventUpsertOne) SetIdentifier(v string) *ProductEventUpsertOne
SetIdentifier sets the "identifier" field.
func (*ProductEventUpsertOne) SetOutputData ¶
func (u *ProductEventUpsertOne) SetOutputData(v string) *ProductEventUpsertOne
SetOutputData sets the "outputData" field.
func (*ProductEventUpsertOne) SetProductKey ¶
func (u *ProductEventUpsertOne) SetProductKey(v string) *ProductEventUpsertOne
SetProductKey sets the "productKey" field.
func (*ProductEventUpsertOne) SetRequired ¶
func (u *ProductEventUpsertOne) SetRequired(v bool) *ProductEventUpsertOne
SetRequired sets the "required" field.
func (*ProductEventUpsertOne) SetSort ¶
func (u *ProductEventUpsertOne) SetSort(v uint32) *ProductEventUpsertOne
SetSort sets the "sort" field.
func (*ProductEventUpsertOne) SetStatus ¶
func (u *ProductEventUpsertOne) SetStatus(v uint8) *ProductEventUpsertOne
SetStatus sets the "status" field.
func (*ProductEventUpsertOne) SetUpdatedAt ¶
func (u *ProductEventUpsertOne) SetUpdatedAt(v time.Time) *ProductEventUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*ProductEventUpsertOne) SetVersion ¶
func (u *ProductEventUpsertOne) SetVersion(v string) *ProductEventUpsertOne
SetVersion sets the "version" field.
func (*ProductEventUpsertOne) Update ¶
func (u *ProductEventUpsertOne) Update(set func(*ProductEventUpsert)) *ProductEventUpsertOne
Update allows overriding fields `UPDATE` values. See the ProductEventCreate.OnConflict documentation for more info.
func (*ProductEventUpsertOne) UpdateCreateTs ¶
func (u *ProductEventUpsertOne) UpdateCreateTs() *ProductEventUpsertOne
UpdateCreateTs sets the "createTs" field to the value that was provided on create.
func (*ProductEventUpsertOne) UpdateCustom ¶
func (u *ProductEventUpsertOne) UpdateCustom() *ProductEventUpsertOne
UpdateCustom sets the "custom" field to the value that was provided on create.
func (*ProductEventUpsertOne) UpdateEventName ¶
func (u *ProductEventUpsertOne) UpdateEventName() *ProductEventUpsertOne
UpdateEventName sets the "eventName" field to the value that was provided on create.
func (*ProductEventUpsertOne) UpdateEventType ¶
func (u *ProductEventUpsertOne) UpdateEventType() *ProductEventUpsertOne
UpdateEventType sets the "eventType" field to the value that was provided on create.
func (*ProductEventUpsertOne) UpdateIdentifier ¶
func (u *ProductEventUpsertOne) UpdateIdentifier() *ProductEventUpsertOne
UpdateIdentifier sets the "identifier" field to the value that was provided on create.
func (*ProductEventUpsertOne) UpdateNewValues ¶
func (u *ProductEventUpsertOne) UpdateNewValues() *ProductEventUpsertOne
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.ProductEvent.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(productevent.FieldID) }), ). Exec(ctx)
func (*ProductEventUpsertOne) UpdateOutputData ¶
func (u *ProductEventUpsertOne) UpdateOutputData() *ProductEventUpsertOne
UpdateOutputData sets the "outputData" field to the value that was provided on create.
func (*ProductEventUpsertOne) UpdateProductKey ¶
func (u *ProductEventUpsertOne) UpdateProductKey() *ProductEventUpsertOne
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*ProductEventUpsertOne) UpdateRequired ¶
func (u *ProductEventUpsertOne) UpdateRequired() *ProductEventUpsertOne
UpdateRequired sets the "required" field to the value that was provided on create.
func (*ProductEventUpsertOne) UpdateSort ¶
func (u *ProductEventUpsertOne) UpdateSort() *ProductEventUpsertOne
UpdateSort sets the "sort" field to the value that was provided on create.
func (*ProductEventUpsertOne) UpdateStatus ¶
func (u *ProductEventUpsertOne) UpdateStatus() *ProductEventUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*ProductEventUpsertOne) UpdateUpdatedAt ¶
func (u *ProductEventUpsertOne) UpdateUpdatedAt() *ProductEventUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*ProductEventUpsertOne) UpdateVersion ¶
func (u *ProductEventUpsertOne) UpdateVersion() *ProductEventUpsertOne
UpdateVersion sets the "version" field to the value that was provided on create.
type ProductEvents ¶
type ProductEvents []*ProductEvent
ProductEvents is a parsable slice of ProductEvent.
type ProductGroupBy ¶
type ProductGroupBy struct {
// contains filtered or unexported fields
}
ProductGroupBy is the group-by builder for Product entities.
func (*ProductGroupBy) Aggregate ¶
func (pgb *ProductGroupBy) Aggregate(fns ...AggregateFunc) *ProductGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ProductGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ProductGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ProductGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ProductGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ProductGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ProductGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ProductGroupBy) Scan ¶
func (pgb *ProductGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ProductGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type ProductMutation ¶
type ProductMutation struct {
// contains filtered or unexported fields
}
ProductMutation represents an operation that mutates the Product nodes in the graph.
func (*ProductMutation) AddDataFormat ¶
func (m *ProductMutation) AddDataFormat(i int32)
AddDataFormat adds i to the "dataFormat" field.
func (*ProductMutation) AddDeviceCount ¶
func (m *ProductMutation) AddDeviceCount(i int32)
AddDeviceCount adds i to the "deviceCount" field.
func (*ProductMutation) AddDeviceIDs ¶
func (m *ProductMutation) AddDeviceIDs(ids ...uuid.UUID)
AddDeviceIDs adds the "devices" edge to the Device entity by ids.
func (*ProductMutation) AddEventIDs ¶
func (m *ProductMutation) AddEventIDs(ids ...uint64)
AddEventIDs adds the "events" edge to the ProductEvent entity by ids.
func (*ProductMutation) AddField ¶
func (m *ProductMutation) 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 (*ProductMutation) AddGmtCreate ¶
func (m *ProductMutation) AddGmtCreate(i int64)
AddGmtCreate adds i to the "gmtCreate" field.
func (*ProductMutation) AddNetType ¶
func (m *ProductMutation) AddNetType(i int32)
AddNetType adds i to the "netType" field.
func (*ProductMutation) AddNodeType ¶
func (m *ProductMutation) AddNodeType(i int32)
AddNodeType adds i to the "nodeType" field.
func (*ProductMutation) AddPropertyIDs ¶
func (m *ProductMutation) AddPropertyIDs(ids ...uint64)
AddPropertyIDs adds the "properties" edge to the ProductProperty entity by ids.
func (*ProductMutation) AddServiceIDs ¶
func (m *ProductMutation) AddServiceIDs(ids ...uint64)
AddServiceIDs adds the "services" edge to the ProductService entity by ids.
func (*ProductMutation) AddSort ¶
func (m *ProductMutation) AddSort(u int32)
AddSort adds u to the "sort" field.
func (*ProductMutation) AddStatus ¶
func (m *ProductMutation) AddStatus(u int8)
AddStatus adds u to the "status" field.
func (*ProductMutation) AddTagIDs ¶
func (m *ProductMutation) AddTagIDs(ids ...uint64)
AddTagIDs adds the "tags" edge to the ProductTag entity by ids.
func (*ProductMutation) AddValidateType ¶
func (m *ProductMutation) AddValidateType(i int32)
AddValidateType adds i to the "validateType" field.
func (*ProductMutation) AddedDataFormat ¶
func (m *ProductMutation) AddedDataFormat() (r int32, exists bool)
AddedDataFormat returns the value that was added to the "dataFormat" field in this mutation.
func (*ProductMutation) AddedDeviceCount ¶
func (m *ProductMutation) AddedDeviceCount() (r int32, exists bool)
AddedDeviceCount returns the value that was added to the "deviceCount" field in this mutation.
func (*ProductMutation) AddedEdges ¶
func (m *ProductMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*ProductMutation) AddedField ¶
func (m *ProductMutation) 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 (*ProductMutation) AddedFields ¶
func (m *ProductMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*ProductMutation) AddedGmtCreate ¶
func (m *ProductMutation) AddedGmtCreate() (r int64, exists bool)
AddedGmtCreate returns the value that was added to the "gmtCreate" field in this mutation.
func (*ProductMutation) AddedIDs ¶
func (m *ProductMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*ProductMutation) AddedNetType ¶
func (m *ProductMutation) AddedNetType() (r int32, exists bool)
AddedNetType returns the value that was added to the "netType" field in this mutation.
func (*ProductMutation) AddedNodeType ¶
func (m *ProductMutation) AddedNodeType() (r int32, exists bool)
AddedNodeType returns the value that was added to the "nodeType" field in this mutation.
func (*ProductMutation) AddedSort ¶
func (m *ProductMutation) AddedSort() (r int32, exists bool)
AddedSort returns the value that was added to the "sort" field in this mutation.
func (*ProductMutation) AddedStatus ¶
func (m *ProductMutation) AddedStatus() (r int8, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*ProductMutation) AddedValidateType ¶
func (m *ProductMutation) AddedValidateType() (r int32, exists bool)
AddedValidateType returns the value that was added to the "validateType" field in this mutation.
func (*ProductMutation) AliyunCommodityCode ¶
func (m *ProductMutation) AliyunCommodityCode() (r string, exists bool)
AliyunCommodityCode returns the value of the "aliyunCommodityCode" field in the mutation.
func (*ProductMutation) AliyunCommodityCodeCleared ¶
func (m *ProductMutation) AliyunCommodityCodeCleared() bool
AliyunCommodityCodeCleared returns if the "aliyunCommodityCode" field was cleared in this mutation.
func (*ProductMutation) AuthType ¶
func (m *ProductMutation) AuthType() (r string, exists bool)
AuthType returns the value of the "authType" field in the mutation.
func (*ProductMutation) AuthTypeCleared ¶
func (m *ProductMutation) AuthTypeCleared() bool
AuthTypeCleared returns if the "authType" field was cleared in this mutation.
func (*ProductMutation) CategoryKey ¶
func (m *ProductMutation) CategoryKey() (r string, exists bool)
CategoryKey returns the value of the "categoryKey" field in the mutation.
func (*ProductMutation) CategoryKeyCleared ¶
func (m *ProductMutation) CategoryKeyCleared() bool
CategoryKeyCleared returns if the "categoryKey" field was cleared in this mutation.
func (*ProductMutation) CategoryName ¶
func (m *ProductMutation) CategoryName() (r string, exists bool)
CategoryName returns the value of the "categoryName" field in the mutation.
func (*ProductMutation) CategoryNameCleared ¶
func (m *ProductMutation) CategoryNameCleared() bool
CategoryNameCleared returns if the "categoryName" field was cleared in this mutation.
func (*ProductMutation) ClearAliyunCommodityCode ¶
func (m *ProductMutation) ClearAliyunCommodityCode()
ClearAliyunCommodityCode clears the value of the "aliyunCommodityCode" field.
func (*ProductMutation) ClearAuthType ¶
func (m *ProductMutation) ClearAuthType()
ClearAuthType clears the value of the "authType" field.
func (*ProductMutation) ClearCategoryKey ¶
func (m *ProductMutation) ClearCategoryKey()
ClearCategoryKey clears the value of the "categoryKey" field.
func (*ProductMutation) ClearCategoryName ¶
func (m *ProductMutation) ClearCategoryName()
ClearCategoryName clears the value of the "categoryName" field.
func (*ProductMutation) ClearDataFormat ¶
func (m *ProductMutation) ClearDataFormat()
ClearDataFormat clears the value of the "dataFormat" field.
func (*ProductMutation) ClearDescription ¶
func (m *ProductMutation) ClearDescription()
ClearDescription clears the value of the "description" field.
func (*ProductMutation) ClearDevices ¶
func (m *ProductMutation) ClearDevices()
ClearDevices clears the "devices" edge to the Device entity.
func (*ProductMutation) ClearEdge ¶
func (m *ProductMutation) 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 (*ProductMutation) ClearEvents ¶
func (m *ProductMutation) ClearEvents()
ClearEvents clears the "events" edge to the ProductEvent entity.
func (*ProductMutation) ClearField ¶
func (m *ProductMutation) 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 (*ProductMutation) ClearGmtCreate ¶
func (m *ProductMutation) ClearGmtCreate()
ClearGmtCreate clears the value of the "gmtCreate" field.
func (*ProductMutation) ClearId2 ¶
func (m *ProductMutation) ClearId2()
ClearId2 clears the value of the "id2" field.
func (*ProductMutation) ClearNetType ¶
func (m *ProductMutation) ClearNetType()
ClearNetType clears the value of the "netType" field.
func (*ProductMutation) ClearOwner ¶
func (m *ProductMutation) ClearOwner()
ClearOwner clears the value of the "owner" field.
func (*ProductMutation) ClearProductSecret ¶
func (m *ProductMutation) ClearProductSecret()
ClearProductSecret clears the value of the "productSecret" field.
func (*ProductMutation) ClearProductStatus ¶
func (m *ProductMutation) ClearProductStatus()
ClearProductStatus clears the value of the "productStatus" field.
func (*ProductMutation) ClearProperties ¶
func (m *ProductMutation) ClearProperties()
ClearProperties clears the "properties" edge to the ProductProperty entity.
func (*ProductMutation) ClearProtocolType ¶
func (m *ProductMutation) ClearProtocolType()
ClearProtocolType clears the value of the "protocolType" field.
func (*ProductMutation) ClearServices ¶
func (m *ProductMutation) ClearServices()
ClearServices clears the "services" edge to the ProductService entity.
func (*ProductMutation) ClearStatus ¶
func (m *ProductMutation) ClearStatus()
ClearStatus clears the value of the "status" field.
func (*ProductMutation) ClearTags ¶
func (m *ProductMutation) ClearTags()
ClearTags clears the "tags" edge to the ProductTag entity.
func (*ProductMutation) ClearValidateType ¶
func (m *ProductMutation) ClearValidateType()
ClearValidateType clears the value of the "validateType" field.
func (*ProductMutation) ClearedEdges ¶
func (m *ProductMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*ProductMutation) ClearedFields ¶
func (m *ProductMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (ProductMutation) Client ¶
func (m ProductMutation) 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 (*ProductMutation) CreatedAt ¶
func (m *ProductMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*ProductMutation) DataFormat ¶
func (m *ProductMutation) DataFormat() (r int32, exists bool)
DataFormat returns the value of the "dataFormat" field in the mutation.
func (*ProductMutation) DataFormatCleared ¶
func (m *ProductMutation) DataFormatCleared() bool
DataFormatCleared returns if the "dataFormat" field was cleared in this mutation.
func (*ProductMutation) Description ¶
func (m *ProductMutation) Description() (r string, exists bool)
Description returns the value of the "description" field in the mutation.
func (*ProductMutation) DescriptionCleared ¶
func (m *ProductMutation) DescriptionCleared() bool
DescriptionCleared returns if the "description" field was cleared in this mutation.
func (*ProductMutation) DeviceCount ¶
func (m *ProductMutation) DeviceCount() (r int32, exists bool)
DeviceCount returns the value of the "deviceCount" field in the mutation.
func (*ProductMutation) DevicesCleared ¶
func (m *ProductMutation) DevicesCleared() bool
DevicesCleared reports if the "devices" edge to the Device entity was cleared.
func (*ProductMutation) DevicesIDs ¶
func (m *ProductMutation) DevicesIDs() (ids []uuid.UUID)
DevicesIDs returns the "devices" edge IDs in the mutation.
func (*ProductMutation) EdgeCleared ¶
func (m *ProductMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*ProductMutation) EventsCleared ¶
func (m *ProductMutation) EventsCleared() bool
EventsCleared reports if the "events" edge to the ProductEvent entity was cleared.
func (*ProductMutation) EventsIDs ¶
func (m *ProductMutation) EventsIDs() (ids []uint64)
EventsIDs returns the "events" edge IDs in the mutation.
func (*ProductMutation) ExecContext ¶
func (c *ProductMutation) 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 (*ProductMutation) Field ¶
func (m *ProductMutation) 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 (*ProductMutation) FieldCleared ¶
func (m *ProductMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*ProductMutation) Fields ¶
func (m *ProductMutation) 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 (*ProductMutation) GmtCreate ¶
func (m *ProductMutation) GmtCreate() (r int64, exists bool)
GmtCreate returns the value of the "gmtCreate" field in the mutation.
func (*ProductMutation) GmtCreateCleared ¶
func (m *ProductMutation) GmtCreateCleared() bool
GmtCreateCleared returns if the "gmtCreate" field was cleared in this mutation.
func (*ProductMutation) ID ¶
func (m *ProductMutation) ID() (id uuid.UUID, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*ProductMutation) IDs ¶
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 (*ProductMutation) Id2 ¶
func (m *ProductMutation) Id2() (r bool, exists bool)
Id2 returns the value of the "id2" field in the mutation.
func (*ProductMutation) Id2Cleared ¶
func (m *ProductMutation) Id2Cleared() bool
Id2Cleared returns if the "id2" field was cleared in this mutation.
func (*ProductMutation) NetType ¶
func (m *ProductMutation) NetType() (r int32, exists bool)
NetType returns the value of the "netType" field in the mutation.
func (*ProductMutation) NetTypeCleared ¶
func (m *ProductMutation) NetTypeCleared() bool
NetTypeCleared returns if the "netType" field was cleared in this mutation.
func (*ProductMutation) NodeType ¶
func (m *ProductMutation) NodeType() (r int32, exists bool)
NodeType returns the value of the "nodeType" field in the mutation.
func (*ProductMutation) OldAliyunCommodityCode ¶
func (m *ProductMutation) OldAliyunCommodityCode(ctx context.Context) (v string, err error)
OldAliyunCommodityCode returns the old "aliyunCommodityCode" field's value of the Product entity. If the Product object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductMutation) OldAuthType ¶
func (m *ProductMutation) OldAuthType(ctx context.Context) (v string, err error)
OldAuthType returns the old "authType" field's value of the Product entity. If the Product object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductMutation) OldCategoryKey ¶
func (m *ProductMutation) OldCategoryKey(ctx context.Context) (v string, err error)
OldCategoryKey returns the old "categoryKey" field's value of the Product entity. If the Product object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductMutation) OldCategoryName ¶
func (m *ProductMutation) OldCategoryName(ctx context.Context) (v string, err error)
OldCategoryName returns the old "categoryName" field's value of the Product entity. If the Product object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Product entity. If the Product object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductMutation) OldDataFormat ¶
func (m *ProductMutation) OldDataFormat(ctx context.Context) (v int32, err error)
OldDataFormat returns the old "dataFormat" field's value of the Product entity. If the Product object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductMutation) OldDescription ¶
func (m *ProductMutation) OldDescription(ctx context.Context) (v string, err error)
OldDescription returns the old "description" field's value of the Product entity. If the Product object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductMutation) OldDeviceCount ¶
func (m *ProductMutation) OldDeviceCount(ctx context.Context) (v int32, err error)
OldDeviceCount returns the old "deviceCount" field's value of the Product entity. If the Product object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductMutation) 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 (*ProductMutation) OldGmtCreate ¶
func (m *ProductMutation) OldGmtCreate(ctx context.Context) (v int64, err error)
OldGmtCreate returns the old "gmtCreate" field's value of the Product entity. If the Product object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductMutation) OldId2 ¶
func (m *ProductMutation) OldId2(ctx context.Context) (v bool, err error)
OldId2 returns the old "id2" field's value of the Product entity. If the Product object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductMutation) OldNetType ¶
func (m *ProductMutation) OldNetType(ctx context.Context) (v int32, err error)
OldNetType returns the old "netType" field's value of the Product entity. If the Product object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductMutation) OldNodeType ¶
func (m *ProductMutation) OldNodeType(ctx context.Context) (v int32, err error)
OldNodeType returns the old "nodeType" field's value of the Product entity. If the Product object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductMutation) OldOwner ¶
func (m *ProductMutation) OldOwner(ctx context.Context) (v bool, err error)
OldOwner returns the old "owner" field's value of the Product entity. If the Product object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductMutation) OldProductKey ¶
func (m *ProductMutation) OldProductKey(ctx context.Context) (v string, err error)
OldProductKey returns the old "productKey" field's value of the Product entity. If the Product object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductMutation) OldProductName ¶
func (m *ProductMutation) OldProductName(ctx context.Context) (v string, err error)
OldProductName returns the old "productName" field's value of the Product entity. If the Product object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductMutation) OldProductSecret ¶
func (m *ProductMutation) OldProductSecret(ctx context.Context) (v string, err error)
OldProductSecret returns the old "productSecret" field's value of the Product entity. If the Product object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductMutation) OldProductStatus ¶
func (m *ProductMutation) OldProductStatus(ctx context.Context) (v string, err error)
OldProductStatus returns the old "productStatus" field's value of the Product entity. If the Product object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductMutation) OldProtocolType ¶
func (m *ProductMutation) OldProtocolType(ctx context.Context) (v string, err error)
OldProtocolType returns the old "protocolType" field's value of the Product entity. If the Product object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductMutation) OldSort ¶
func (m *ProductMutation) OldSort(ctx context.Context) (v uint32, err error)
OldSort returns the old "sort" field's value of the Product entity. If the Product object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductMutation) OldStatus ¶
func (m *ProductMutation) OldStatus(ctx context.Context) (v uint8, err error)
OldStatus returns the old "status" field's value of the Product entity. If the Product object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Product entity. If the Product object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductMutation) OldValidateType ¶
func (m *ProductMutation) OldValidateType(ctx context.Context) (v int32, err error)
OldValidateType returns the old "validateType" field's value of the Product entity. If the Product object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductMutation) Owner ¶
func (m *ProductMutation) Owner() (r bool, exists bool)
Owner returns the value of the "owner" field in the mutation.
func (*ProductMutation) OwnerCleared ¶
func (m *ProductMutation) OwnerCleared() bool
OwnerCleared returns if the "owner" field was cleared in this mutation.
func (*ProductMutation) ProductKey ¶
func (m *ProductMutation) ProductKey() (r string, exists bool)
ProductKey returns the value of the "productKey" field in the mutation.
func (*ProductMutation) ProductName ¶
func (m *ProductMutation) ProductName() (r string, exists bool)
ProductName returns the value of the "productName" field in the mutation.
func (*ProductMutation) ProductSecret ¶
func (m *ProductMutation) ProductSecret() (r string, exists bool)
ProductSecret returns the value of the "productSecret" field in the mutation.
func (*ProductMutation) ProductSecretCleared ¶
func (m *ProductMutation) ProductSecretCleared() bool
ProductSecretCleared returns if the "productSecret" field was cleared in this mutation.
func (*ProductMutation) ProductStatus ¶
func (m *ProductMutation) ProductStatus() (r string, exists bool)
ProductStatus returns the value of the "productStatus" field in the mutation.
func (*ProductMutation) ProductStatusCleared ¶
func (m *ProductMutation) ProductStatusCleared() bool
ProductStatusCleared returns if the "productStatus" field was cleared in this mutation.
func (*ProductMutation) PropertiesCleared ¶
func (m *ProductMutation) PropertiesCleared() bool
PropertiesCleared reports if the "properties" edge to the ProductProperty entity was cleared.
func (*ProductMutation) PropertiesIDs ¶
func (m *ProductMutation) PropertiesIDs() (ids []uint64)
PropertiesIDs returns the "properties" edge IDs in the mutation.
func (*ProductMutation) ProtocolType ¶
func (m *ProductMutation) ProtocolType() (r string, exists bool)
ProtocolType returns the value of the "protocolType" field in the mutation.
func (*ProductMutation) ProtocolTypeCleared ¶
func (m *ProductMutation) ProtocolTypeCleared() bool
ProtocolTypeCleared returns if the "protocolType" field was cleared in this mutation.
func (*ProductMutation) QueryContext ¶
func (c *ProductMutation) 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 (*ProductMutation) RemoveDeviceIDs ¶
func (m *ProductMutation) RemoveDeviceIDs(ids ...uuid.UUID)
RemoveDeviceIDs removes the "devices" edge to the Device entity by IDs.
func (*ProductMutation) RemoveEventIDs ¶
func (m *ProductMutation) RemoveEventIDs(ids ...uint64)
RemoveEventIDs removes the "events" edge to the ProductEvent entity by IDs.
func (*ProductMutation) RemovePropertyIDs ¶
func (m *ProductMutation) RemovePropertyIDs(ids ...uint64)
RemovePropertyIDs removes the "properties" edge to the ProductProperty entity by IDs.
func (*ProductMutation) RemoveServiceIDs ¶
func (m *ProductMutation) RemoveServiceIDs(ids ...uint64)
RemoveServiceIDs removes the "services" edge to the ProductService entity by IDs.
func (*ProductMutation) RemoveTagIDs ¶
func (m *ProductMutation) RemoveTagIDs(ids ...uint64)
RemoveTagIDs removes the "tags" edge to the ProductTag entity by IDs.
func (*ProductMutation) RemovedDevicesIDs ¶
func (m *ProductMutation) RemovedDevicesIDs() (ids []uuid.UUID)
RemovedDevices returns the removed IDs of the "devices" edge to the Device entity.
func (*ProductMutation) RemovedEdges ¶
func (m *ProductMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*ProductMutation) RemovedEventsIDs ¶
func (m *ProductMutation) RemovedEventsIDs() (ids []uint64)
RemovedEvents returns the removed IDs of the "events" edge to the ProductEvent entity.
func (*ProductMutation) RemovedIDs ¶
func (m *ProductMutation) 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 (*ProductMutation) RemovedPropertiesIDs ¶
func (m *ProductMutation) RemovedPropertiesIDs() (ids []uint64)
RemovedProperties returns the removed IDs of the "properties" edge to the ProductProperty entity.
func (*ProductMutation) RemovedServicesIDs ¶
func (m *ProductMutation) RemovedServicesIDs() (ids []uint64)
RemovedServices returns the removed IDs of the "services" edge to the ProductService entity.
func (*ProductMutation) RemovedTagsIDs ¶
func (m *ProductMutation) RemovedTagsIDs() (ids []uint64)
RemovedTags returns the removed IDs of the "tags" edge to the ProductTag entity.
func (*ProductMutation) ResetAliyunCommodityCode ¶
func (m *ProductMutation) ResetAliyunCommodityCode()
ResetAliyunCommodityCode resets all changes to the "aliyunCommodityCode" field.
func (*ProductMutation) ResetAuthType ¶
func (m *ProductMutation) ResetAuthType()
ResetAuthType resets all changes to the "authType" field.
func (*ProductMutation) ResetCategoryKey ¶
func (m *ProductMutation) ResetCategoryKey()
ResetCategoryKey resets all changes to the "categoryKey" field.
func (*ProductMutation) ResetCategoryName ¶
func (m *ProductMutation) ResetCategoryName()
ResetCategoryName resets all changes to the "categoryName" field.
func (*ProductMutation) ResetCreatedAt ¶
func (m *ProductMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*ProductMutation) ResetDataFormat ¶
func (m *ProductMutation) ResetDataFormat()
ResetDataFormat resets all changes to the "dataFormat" field.
func (*ProductMutation) ResetDescription ¶
func (m *ProductMutation) ResetDescription()
ResetDescription resets all changes to the "description" field.
func (*ProductMutation) ResetDeviceCount ¶
func (m *ProductMutation) ResetDeviceCount()
ResetDeviceCount resets all changes to the "deviceCount" field.
func (*ProductMutation) ResetDevices ¶
func (m *ProductMutation) ResetDevices()
ResetDevices resets all changes to the "devices" edge.
func (*ProductMutation) ResetEdge ¶
func (m *ProductMutation) 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 (*ProductMutation) ResetEvents ¶
func (m *ProductMutation) ResetEvents()
ResetEvents resets all changes to the "events" edge.
func (*ProductMutation) ResetField ¶
func (m *ProductMutation) 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 (*ProductMutation) ResetGmtCreate ¶
func (m *ProductMutation) ResetGmtCreate()
ResetGmtCreate resets all changes to the "gmtCreate" field.
func (*ProductMutation) ResetId2 ¶
func (m *ProductMutation) ResetId2()
ResetId2 resets all changes to the "id2" field.
func (*ProductMutation) ResetNetType ¶
func (m *ProductMutation) ResetNetType()
ResetNetType resets all changes to the "netType" field.
func (*ProductMutation) ResetNodeType ¶
func (m *ProductMutation) ResetNodeType()
ResetNodeType resets all changes to the "nodeType" field.
func (*ProductMutation) ResetOwner ¶
func (m *ProductMutation) ResetOwner()
ResetOwner resets all changes to the "owner" field.
func (*ProductMutation) ResetProductKey ¶
func (m *ProductMutation) ResetProductKey()
ResetProductKey resets all changes to the "productKey" field.
func (*ProductMutation) ResetProductName ¶
func (m *ProductMutation) ResetProductName()
ResetProductName resets all changes to the "productName" field.
func (*ProductMutation) ResetProductSecret ¶
func (m *ProductMutation) ResetProductSecret()
ResetProductSecret resets all changes to the "productSecret" field.
func (*ProductMutation) ResetProductStatus ¶
func (m *ProductMutation) ResetProductStatus()
ResetProductStatus resets all changes to the "productStatus" field.
func (*ProductMutation) ResetProperties ¶
func (m *ProductMutation) ResetProperties()
ResetProperties resets all changes to the "properties" edge.
func (*ProductMutation) ResetProtocolType ¶
func (m *ProductMutation) ResetProtocolType()
ResetProtocolType resets all changes to the "protocolType" field.
func (*ProductMutation) ResetServices ¶
func (m *ProductMutation) ResetServices()
ResetServices resets all changes to the "services" edge.
func (*ProductMutation) ResetSort ¶
func (m *ProductMutation) ResetSort()
ResetSort resets all changes to the "sort" field.
func (*ProductMutation) ResetStatus ¶
func (m *ProductMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*ProductMutation) ResetTags ¶
func (m *ProductMutation) ResetTags()
ResetTags resets all changes to the "tags" edge.
func (*ProductMutation) ResetUpdatedAt ¶
func (m *ProductMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*ProductMutation) ResetValidateType ¶
func (m *ProductMutation) ResetValidateType()
ResetValidateType resets all changes to the "validateType" field.
func (*ProductMutation) ServicesCleared ¶
func (m *ProductMutation) ServicesCleared() bool
ServicesCleared reports if the "services" edge to the ProductService entity was cleared.
func (*ProductMutation) ServicesIDs ¶
func (m *ProductMutation) ServicesIDs() (ids []uint64)
ServicesIDs returns the "services" edge IDs in the mutation.
func (*ProductMutation) SetAliyunCommodityCode ¶
func (m *ProductMutation) SetAliyunCommodityCode(s string)
SetAliyunCommodityCode sets the "aliyunCommodityCode" field.
func (*ProductMutation) SetAuthType ¶
func (m *ProductMutation) SetAuthType(s string)
SetAuthType sets the "authType" field.
func (*ProductMutation) SetCategoryKey ¶
func (m *ProductMutation) SetCategoryKey(s string)
SetCategoryKey sets the "categoryKey" field.
func (*ProductMutation) SetCategoryName ¶
func (m *ProductMutation) SetCategoryName(s string)
SetCategoryName sets the "categoryName" field.
func (*ProductMutation) SetCreatedAt ¶
func (m *ProductMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*ProductMutation) SetDataFormat ¶
func (m *ProductMutation) SetDataFormat(i int32)
SetDataFormat sets the "dataFormat" field.
func (*ProductMutation) SetDescription ¶
func (m *ProductMutation) SetDescription(s string)
SetDescription sets the "description" field.
func (*ProductMutation) SetDeviceCount ¶
func (m *ProductMutation) SetDeviceCount(i int32)
SetDeviceCount sets the "deviceCount" field.
func (*ProductMutation) SetField ¶
func (m *ProductMutation) 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 (*ProductMutation) SetGmtCreate ¶
func (m *ProductMutation) SetGmtCreate(i int64)
SetGmtCreate sets the "gmtCreate" field.
func (*ProductMutation) SetID ¶
func (m *ProductMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Product entities.
func (*ProductMutation) SetId2 ¶
func (m *ProductMutation) SetId2(b bool)
SetId2 sets the "id2" field.
func (*ProductMutation) SetNetType ¶
func (m *ProductMutation) SetNetType(i int32)
SetNetType sets the "netType" field.
func (*ProductMutation) SetNodeType ¶
func (m *ProductMutation) SetNodeType(i int32)
SetNodeType sets the "nodeType" field.
func (*ProductMutation) SetOp ¶
func (m *ProductMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*ProductMutation) SetOwner ¶
func (m *ProductMutation) SetOwner(b bool)
SetOwner sets the "owner" field.
func (*ProductMutation) SetProductKey ¶
func (m *ProductMutation) SetProductKey(s string)
SetProductKey sets the "productKey" field.
func (*ProductMutation) SetProductName ¶
func (m *ProductMutation) SetProductName(s string)
SetProductName sets the "productName" field.
func (*ProductMutation) SetProductSecret ¶
func (m *ProductMutation) SetProductSecret(s string)
SetProductSecret sets the "productSecret" field.
func (*ProductMutation) SetProductStatus ¶
func (m *ProductMutation) SetProductStatus(s string)
SetProductStatus sets the "productStatus" field.
func (*ProductMutation) SetProtocolType ¶
func (m *ProductMutation) SetProtocolType(s string)
SetProtocolType sets the "protocolType" field.
func (*ProductMutation) SetSort ¶
func (m *ProductMutation) SetSort(u uint32)
SetSort sets the "sort" field.
func (*ProductMutation) SetStatus ¶
func (m *ProductMutation) SetStatus(u uint8)
SetStatus sets the "status" field.
func (*ProductMutation) SetUpdatedAt ¶
func (m *ProductMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*ProductMutation) SetValidateType ¶
func (m *ProductMutation) SetValidateType(i int32)
SetValidateType sets the "validateType" field.
func (*ProductMutation) Sort ¶
func (m *ProductMutation) Sort() (r uint32, exists bool)
Sort returns the value of the "sort" field in the mutation.
func (*ProductMutation) Status ¶
func (m *ProductMutation) Status() (r uint8, exists bool)
Status returns the value of the "status" field in the mutation.
func (*ProductMutation) StatusCleared ¶
func (m *ProductMutation) StatusCleared() bool
StatusCleared returns if the "status" field was cleared in this mutation.
func (*ProductMutation) TagsCleared ¶
func (m *ProductMutation) TagsCleared() bool
TagsCleared reports if the "tags" edge to the ProductTag entity was cleared.
func (*ProductMutation) TagsIDs ¶
func (m *ProductMutation) TagsIDs() (ids []uint64)
TagsIDs returns the "tags" edge IDs in the mutation.
func (ProductMutation) Tx ¶
func (m ProductMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*ProductMutation) Type ¶
func (m *ProductMutation) Type() string
Type returns the node type of this mutation (Product).
func (*ProductMutation) UpdatedAt ¶
func (m *ProductMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*ProductMutation) ValidateType ¶
func (m *ProductMutation) ValidateType() (r int32, exists bool)
ValidateType returns the value of the "validateType" field in the mutation.
func (*ProductMutation) ValidateTypeCleared ¶
func (m *ProductMutation) ValidateTypeCleared() bool
ValidateTypeCleared returns if the "validateType" field was cleared in this mutation.
func (*ProductMutation) Where ¶
func (m *ProductMutation) Where(ps ...predicate.Product)
Where appends a list predicates to the ProductMutation builder.
func (*ProductMutation) WhereP ¶
func (m *ProductMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the ProductMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type ProductPageList ¶
type ProductPageList struct { List []*Product `json:"list"` PageDetails *PageDetails `json:"pageDetails"` }
ProductPageList is Product PageList result.
type ProductPager ¶
type ProductPager struct { Order product.OrderOption Filter func(*ProductQuery) (*ProductQuery, error) }
func (*ProductPager) ApplyFilter ¶
func (p *ProductPager) ApplyFilter(query *ProductQuery) (*ProductQuery, error)
type ProductPaginateOption ¶
type ProductPaginateOption func(*ProductPager)
ProductPaginateOption enables pagination customization.
type ProductProperties ¶
type ProductProperties []*ProductProperty
ProductProperties is a parsable slice of ProductProperty.
type ProductProperty ¶
type ProductProperty 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"` // Product Key | 产品Key ProductKey string `json:"productKey,omitempty"` // Version | 物模型版本号 Version string `json:"version,omitempty"` // CreateTs | 功能创建的时间戳 CreateTs int64 `json:"createTs,omitempty"` // Identifier | 属性的标识符 Identifier string `json:"identifier,omitempty"` // Name | 属性名称 Name string `json:"name,omitempty"` // RWFlag | 在云端可以对该属性进行的操作类型 RwFlag string `json:"rwFlag,omitempty"` // Required | 是否是标准品类的必选属性 Required bool `json:"required,omitempty"` // Data Type | 属性值的数据类型,可选值:ARRAY、STRUCT、INT、FLOAT、DOUBLE、TEXT、DATE、ENUM、BOOL。 DataType string `json:"dataType,omitempty"` // Data Specs | 数据类型(dataType)为非列表型(INT、FLOAT、DOUBLE、TEXT、DATE、ARRAY)的数据规范存储在dataSpecs中 DataSpecs string `json:"dataSpecs,omitempty"` // Data Specs List | 数据类型(dataType)为列表型(ENUM、BOOL、STRUCT)的数据规范存储在dataSpecsList中 DataSpecsList string `json:"dataSpecsList,omitempty"` // Custom | 是否是自定义功能 Custom bool `json:"custom,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the ProductPropertyQuery when eager-loading is set. Edges ProductPropertyEdges `json:"edges"` // contains filtered or unexported fields }
ProductProperty is the model entity for the ProductProperty schema.
func (*ProductProperty) ExecContext ¶
func (c *ProductProperty) 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 (*ProductProperty) QueryContext ¶
func (c *ProductProperty) 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 (*ProductProperty) QueryProduct ¶
func (pp *ProductProperty) QueryProduct() *ProductQuery
QueryProduct queries the "product" edge of the ProductProperty entity.
func (*ProductProperty) String ¶
func (pp *ProductProperty) String() string
String implements the fmt.Stringer.
func (*ProductProperty) Unwrap ¶
func (pp *ProductProperty) Unwrap() *ProductProperty
Unwrap unwraps the ProductProperty 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 (*ProductProperty) Update ¶
func (pp *ProductProperty) Update() *ProductPropertyUpdateOne
Update returns a builder for updating this ProductProperty. Note that you need to call ProductProperty.Unwrap() before calling this method if this ProductProperty was returned from a transaction, and the transaction was committed or rolled back.
type ProductPropertyClient ¶
type ProductPropertyClient struct {
// contains filtered or unexported fields
}
ProductPropertyClient is a client for the ProductProperty schema.
func NewProductPropertyClient ¶
func NewProductPropertyClient(c config) *ProductPropertyClient
NewProductPropertyClient returns a client for the ProductProperty from the given config.
func (*ProductPropertyClient) Create ¶
func (c *ProductPropertyClient) Create() *ProductPropertyCreate
Create returns a builder for creating a ProductProperty entity.
func (*ProductPropertyClient) CreateBulk ¶
func (c *ProductPropertyClient) CreateBulk(builders ...*ProductPropertyCreate) *ProductPropertyCreateBulk
CreateBulk returns a builder for creating a bulk of ProductProperty entities.
func (*ProductPropertyClient) Delete ¶
func (c *ProductPropertyClient) Delete() *ProductPropertyDelete
Delete returns a delete builder for ProductProperty.
func (*ProductPropertyClient) DeleteOne ¶
func (c *ProductPropertyClient) DeleteOne(pp *ProductProperty) *ProductPropertyDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*ProductPropertyClient) DeleteOneID ¶
func (c *ProductPropertyClient) DeleteOneID(id uint64) *ProductPropertyDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*ProductPropertyClient) ExecContext ¶
func (c *ProductPropertyClient) 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 (*ProductPropertyClient) Get ¶
func (c *ProductPropertyClient) Get(ctx context.Context, id uint64) (*ProductProperty, error)
Get returns a ProductProperty entity by its id.
func (*ProductPropertyClient) GetX ¶
func (c *ProductPropertyClient) GetX(ctx context.Context, id uint64) *ProductProperty
GetX is like Get, but panics if an error occurs.
func (*ProductPropertyClient) Hooks ¶
func (c *ProductPropertyClient) Hooks() []Hook
Hooks returns the client hooks.
func (*ProductPropertyClient) Intercept ¶
func (c *ProductPropertyClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `productproperty.Intercept(f(g(h())))`.
func (*ProductPropertyClient) Interceptors ¶
func (c *ProductPropertyClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*ProductPropertyClient) MapCreateBulk ¶
func (c *ProductPropertyClient) MapCreateBulk(slice any, setFunc func(*ProductPropertyCreate, int)) *ProductPropertyCreateBulk
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 (*ProductPropertyClient) Query ¶
func (c *ProductPropertyClient) Query() *ProductPropertyQuery
Query returns a query builder for ProductProperty.
func (*ProductPropertyClient) QueryContext ¶
func (c *ProductPropertyClient) 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 (*ProductPropertyClient) QueryProduct ¶
func (c *ProductPropertyClient) QueryProduct(pp *ProductProperty) *ProductQuery
QueryProduct queries the product edge of a ProductProperty.
func (*ProductPropertyClient) Update ¶
func (c *ProductPropertyClient) Update() *ProductPropertyUpdate
Update returns an update builder for ProductProperty.
func (*ProductPropertyClient) UpdateOne ¶
func (c *ProductPropertyClient) UpdateOne(pp *ProductProperty) *ProductPropertyUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ProductPropertyClient) UpdateOneID ¶
func (c *ProductPropertyClient) UpdateOneID(id uint64) *ProductPropertyUpdateOne
UpdateOneID returns an update builder for the given id.
func (*ProductPropertyClient) Use ¶
func (c *ProductPropertyClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `productproperty.Hooks(f(g(h())))`.
type ProductPropertyCreate ¶
type ProductPropertyCreate struct {
// contains filtered or unexported fields
}
ProductPropertyCreate is the builder for creating a ProductProperty entity.
func (*ProductPropertyCreate) Exec ¶
func (ppc *ProductPropertyCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*ProductPropertyCreate) ExecContext ¶
func (c *ProductPropertyCreate) 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 (*ProductPropertyCreate) ExecX ¶
func (ppc *ProductPropertyCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductPropertyCreate) Mutation ¶
func (ppc *ProductPropertyCreate) Mutation() *ProductPropertyMutation
Mutation returns the ProductPropertyMutation object of the builder.
func (*ProductPropertyCreate) OnConflict ¶
func (ppc *ProductPropertyCreate) OnConflict(opts ...sql.ConflictOption) *ProductPropertyUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.ProductProperty.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.ProductPropertyUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*ProductPropertyCreate) OnConflictColumns ¶
func (ppc *ProductPropertyCreate) OnConflictColumns(columns ...string) *ProductPropertyUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.ProductProperty.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*ProductPropertyCreate) QueryContext ¶
func (c *ProductPropertyCreate) 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 (*ProductPropertyCreate) Save ¶
func (ppc *ProductPropertyCreate) Save(ctx context.Context) (*ProductProperty, error)
Save creates the ProductProperty in the database.
func (*ProductPropertyCreate) SaveX ¶
func (ppc *ProductPropertyCreate) SaveX(ctx context.Context) *ProductProperty
SaveX calls Save and panics if Save returns an error.
func (*ProductPropertyCreate) SetCreateTs ¶
func (ppc *ProductPropertyCreate) SetCreateTs(i int64) *ProductPropertyCreate
SetCreateTs sets the "createTs" field.
func (*ProductPropertyCreate) SetCreatedAt ¶
func (ppc *ProductPropertyCreate) SetCreatedAt(t time.Time) *ProductPropertyCreate
SetCreatedAt sets the "created_at" field.
func (*ProductPropertyCreate) SetCustom ¶
func (ppc *ProductPropertyCreate) SetCustom(b bool) *ProductPropertyCreate
SetCustom sets the "custom" field.
func (*ProductPropertyCreate) SetDataSpecs ¶
func (ppc *ProductPropertyCreate) SetDataSpecs(s string) *ProductPropertyCreate
SetDataSpecs sets the "dataSpecs" field.
func (*ProductPropertyCreate) SetDataSpecsList ¶
func (ppc *ProductPropertyCreate) SetDataSpecsList(s string) *ProductPropertyCreate
SetDataSpecsList sets the "dataSpecsList" field.
func (*ProductPropertyCreate) SetDataType ¶
func (ppc *ProductPropertyCreate) SetDataType(s string) *ProductPropertyCreate
SetDataType sets the "dataType" field.
func (*ProductPropertyCreate) SetID ¶
func (ppc *ProductPropertyCreate) SetID(u uint64) *ProductPropertyCreate
SetID sets the "id" field.
func (*ProductPropertyCreate) SetIdentifier ¶
func (ppc *ProductPropertyCreate) SetIdentifier(s string) *ProductPropertyCreate
SetIdentifier sets the "identifier" field.
func (*ProductPropertyCreate) SetName ¶
func (ppc *ProductPropertyCreate) SetName(s string) *ProductPropertyCreate
SetName sets the "name" field.
func (*ProductPropertyCreate) SetNillableCreateTs ¶
func (ppc *ProductPropertyCreate) SetNillableCreateTs(i *int64) *ProductPropertyCreate
SetNillableCreateTs sets the "createTs" field if the given value is not nil.
func (*ProductPropertyCreate) SetNillableCreatedAt ¶
func (ppc *ProductPropertyCreate) SetNillableCreatedAt(t *time.Time) *ProductPropertyCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*ProductPropertyCreate) SetNillableCustom ¶
func (ppc *ProductPropertyCreate) SetNillableCustom(b *bool) *ProductPropertyCreate
SetNillableCustom sets the "custom" field if the given value is not nil.
func (*ProductPropertyCreate) SetNillableDataSpecs ¶
func (ppc *ProductPropertyCreate) SetNillableDataSpecs(s *string) *ProductPropertyCreate
SetNillableDataSpecs sets the "dataSpecs" field if the given value is not nil.
func (*ProductPropertyCreate) SetNillableDataSpecsList ¶
func (ppc *ProductPropertyCreate) SetNillableDataSpecsList(s *string) *ProductPropertyCreate
SetNillableDataSpecsList sets the "dataSpecsList" field if the given value is not nil.
func (*ProductPropertyCreate) SetNillableDataType ¶
func (ppc *ProductPropertyCreate) SetNillableDataType(s *string) *ProductPropertyCreate
SetNillableDataType sets the "dataType" field if the given value is not nil.
func (*ProductPropertyCreate) SetNillableProductID ¶
func (ppc *ProductPropertyCreate) SetNillableProductID(id *uuid.UUID) *ProductPropertyCreate
SetNillableProductID sets the "product" edge to the Product entity by ID if the given value is not nil.
func (*ProductPropertyCreate) SetNillableRequired ¶
func (ppc *ProductPropertyCreate) SetNillableRequired(b *bool) *ProductPropertyCreate
SetNillableRequired sets the "required" field if the given value is not nil.
func (*ProductPropertyCreate) SetNillableRwFlag ¶
func (ppc *ProductPropertyCreate) SetNillableRwFlag(s *string) *ProductPropertyCreate
SetNillableRwFlag sets the "rwFlag" field if the given value is not nil.
func (*ProductPropertyCreate) SetNillableSort ¶
func (ppc *ProductPropertyCreate) SetNillableSort(u *uint32) *ProductPropertyCreate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*ProductPropertyCreate) SetNillableStatus ¶
func (ppc *ProductPropertyCreate) SetNillableStatus(u *uint8) *ProductPropertyCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*ProductPropertyCreate) SetNillableUpdatedAt ¶
func (ppc *ProductPropertyCreate) SetNillableUpdatedAt(t *time.Time) *ProductPropertyCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*ProductPropertyCreate) SetNillableVersion ¶
func (ppc *ProductPropertyCreate) SetNillableVersion(s *string) *ProductPropertyCreate
SetNillableVersion sets the "version" field if the given value is not nil.
func (*ProductPropertyCreate) SetNotNilCreateTs ¶
func (pp *ProductPropertyCreate) SetNotNilCreateTs(value *int64) *ProductPropertyCreate
set field if value's pointer is not nil.
func (*ProductPropertyCreate) SetNotNilCustom ¶
func (pp *ProductPropertyCreate) SetNotNilCustom(value *bool) *ProductPropertyCreate
set field if value's pointer is not nil.
func (*ProductPropertyCreate) SetNotNilDataSpecs ¶
func (pp *ProductPropertyCreate) SetNotNilDataSpecs(value *string) *ProductPropertyCreate
set field if value's pointer is not nil.
func (*ProductPropertyCreate) SetNotNilDataSpecsList ¶
func (pp *ProductPropertyCreate) SetNotNilDataSpecsList(value *string) *ProductPropertyCreate
set field if value's pointer is not nil.
func (*ProductPropertyCreate) SetNotNilDataType ¶
func (pp *ProductPropertyCreate) SetNotNilDataType(value *string) *ProductPropertyCreate
set field if value's pointer is not nil.
func (*ProductPropertyCreate) SetNotNilIdentifier ¶
func (pp *ProductPropertyCreate) SetNotNilIdentifier(value *string) *ProductPropertyCreate
set field if value's pointer is not nil.
func (*ProductPropertyCreate) SetNotNilName ¶
func (pp *ProductPropertyCreate) SetNotNilName(value *string) *ProductPropertyCreate
set field if value's pointer is not nil.
func (*ProductPropertyCreate) SetNotNilProductKey ¶
func (pp *ProductPropertyCreate) SetNotNilProductKey(value *string) *ProductPropertyCreate
set field if value's pointer is not nil.
func (*ProductPropertyCreate) SetNotNilRequired ¶
func (pp *ProductPropertyCreate) SetNotNilRequired(value *bool) *ProductPropertyCreate
set field if value's pointer is not nil.
func (*ProductPropertyCreate) SetNotNilRwFlag ¶
func (pp *ProductPropertyCreate) SetNotNilRwFlag(value *string) *ProductPropertyCreate
set field if value's pointer is not nil.
func (*ProductPropertyCreate) SetNotNilSort ¶
func (pp *ProductPropertyCreate) SetNotNilSort(value *uint32) *ProductPropertyCreate
set field if value's pointer is not nil.
func (*ProductPropertyCreate) SetNotNilStatus ¶
func (pp *ProductPropertyCreate) SetNotNilStatus(value *uint8) *ProductPropertyCreate
set field if value's pointer is not nil.
func (*ProductPropertyCreate) SetNotNilUpdatedAt ¶
func (pp *ProductPropertyCreate) SetNotNilUpdatedAt(value *time.Time) *ProductPropertyCreate
set field if value's pointer is not nil.
func (*ProductPropertyCreate) SetNotNilVersion ¶
func (pp *ProductPropertyCreate) SetNotNilVersion(value *string) *ProductPropertyCreate
set field if value's pointer is not nil.
func (*ProductPropertyCreate) SetProduct ¶
func (ppc *ProductPropertyCreate) SetProduct(p *Product) *ProductPropertyCreate
SetProduct sets the "product" edge to the Product entity.
func (*ProductPropertyCreate) SetProductID ¶
func (ppc *ProductPropertyCreate) SetProductID(id uuid.UUID) *ProductPropertyCreate
SetProductID sets the "product" edge to the Product entity by ID.
func (*ProductPropertyCreate) SetProductKey ¶
func (ppc *ProductPropertyCreate) SetProductKey(s string) *ProductPropertyCreate
SetProductKey sets the "productKey" field.
func (*ProductPropertyCreate) SetRequired ¶
func (ppc *ProductPropertyCreate) SetRequired(b bool) *ProductPropertyCreate
SetRequired sets the "required" field.
func (*ProductPropertyCreate) SetRwFlag ¶
func (ppc *ProductPropertyCreate) SetRwFlag(s string) *ProductPropertyCreate
SetRwFlag sets the "rwFlag" field.
func (*ProductPropertyCreate) SetSort ¶
func (ppc *ProductPropertyCreate) SetSort(u uint32) *ProductPropertyCreate
SetSort sets the "sort" field.
func (*ProductPropertyCreate) SetStatus ¶
func (ppc *ProductPropertyCreate) SetStatus(u uint8) *ProductPropertyCreate
SetStatus sets the "status" field.
func (*ProductPropertyCreate) SetUpdatedAt ¶
func (ppc *ProductPropertyCreate) SetUpdatedAt(t time.Time) *ProductPropertyCreate
SetUpdatedAt sets the "updated_at" field.
func (*ProductPropertyCreate) SetVersion ¶
func (ppc *ProductPropertyCreate) SetVersion(s string) *ProductPropertyCreate
SetVersion sets the "version" field.
type ProductPropertyCreateBulk ¶
type ProductPropertyCreateBulk struct {
// contains filtered or unexported fields
}
ProductPropertyCreateBulk is the builder for creating many ProductProperty entities in bulk.
func (*ProductPropertyCreateBulk) Exec ¶
func (ppcb *ProductPropertyCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ProductPropertyCreateBulk) ExecContext ¶
func (c *ProductPropertyCreateBulk) 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 (*ProductPropertyCreateBulk) ExecX ¶
func (ppcb *ProductPropertyCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductPropertyCreateBulk) OnConflict ¶
func (ppcb *ProductPropertyCreateBulk) OnConflict(opts ...sql.ConflictOption) *ProductPropertyUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.ProductProperty.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.ProductPropertyUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*ProductPropertyCreateBulk) OnConflictColumns ¶
func (ppcb *ProductPropertyCreateBulk) OnConflictColumns(columns ...string) *ProductPropertyUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.ProductProperty.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*ProductPropertyCreateBulk) QueryContext ¶
func (c *ProductPropertyCreateBulk) 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 (*ProductPropertyCreateBulk) Save ¶
func (ppcb *ProductPropertyCreateBulk) Save(ctx context.Context) ([]*ProductProperty, error)
Save creates the ProductProperty entities in the database.
func (*ProductPropertyCreateBulk) SaveX ¶
func (ppcb *ProductPropertyCreateBulk) SaveX(ctx context.Context) []*ProductProperty
SaveX is like Save, but panics if an error occurs.
type ProductPropertyDelete ¶
type ProductPropertyDelete struct {
// contains filtered or unexported fields
}
ProductPropertyDelete is the builder for deleting a ProductProperty entity.
func (*ProductPropertyDelete) Exec ¶
func (ppd *ProductPropertyDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*ProductPropertyDelete) ExecContext ¶
func (c *ProductPropertyDelete) 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 (*ProductPropertyDelete) ExecX ¶
func (ppd *ProductPropertyDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*ProductPropertyDelete) QueryContext ¶
func (c *ProductPropertyDelete) 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 (*ProductPropertyDelete) Where ¶
func (ppd *ProductPropertyDelete) Where(ps ...predicate.ProductProperty) *ProductPropertyDelete
Where appends a list predicates to the ProductPropertyDelete builder.
type ProductPropertyDeleteOne ¶
type ProductPropertyDeleteOne struct {
// contains filtered or unexported fields
}
ProductPropertyDeleteOne is the builder for deleting a single ProductProperty entity.
func (*ProductPropertyDeleteOne) Exec ¶
func (ppdo *ProductPropertyDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*ProductPropertyDeleteOne) ExecX ¶
func (ppdo *ProductPropertyDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductPropertyDeleteOne) Where ¶
func (ppdo *ProductPropertyDeleteOne) Where(ps ...predicate.ProductProperty) *ProductPropertyDeleteOne
Where appends a list predicates to the ProductPropertyDelete builder.
type ProductPropertyEdges ¶
type ProductPropertyEdges struct { // Product holds the value of the product edge. Product *Product `json:"product,omitempty"` // contains filtered or unexported fields }
ProductPropertyEdges holds the relations/edges for other nodes in the graph.
func (ProductPropertyEdges) ProductOrErr ¶
func (e ProductPropertyEdges) ProductOrErr() (*Product, error)
ProductOrErr returns the Product value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type ProductPropertyGroupBy ¶
type ProductPropertyGroupBy struct {
// contains filtered or unexported fields
}
ProductPropertyGroupBy is the group-by builder for ProductProperty entities.
func (*ProductPropertyGroupBy) Aggregate ¶
func (ppgb *ProductPropertyGroupBy) Aggregate(fns ...AggregateFunc) *ProductPropertyGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ProductPropertyGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ProductPropertyGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ProductPropertyGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ProductPropertyGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ProductPropertyGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*ProductPropertyGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ProductPropertyGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ProductPropertyGroupBy) Scan ¶
func (ppgb *ProductPropertyGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ProductPropertyGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type ProductPropertyMutation ¶
type ProductPropertyMutation struct {
// contains filtered or unexported fields
}
ProductPropertyMutation represents an operation that mutates the ProductProperty nodes in the graph.
func (*ProductPropertyMutation) AddCreateTs ¶
func (m *ProductPropertyMutation) AddCreateTs(i int64)
AddCreateTs adds i to the "createTs" field.
func (*ProductPropertyMutation) AddField ¶
func (m *ProductPropertyMutation) 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 (*ProductPropertyMutation) AddSort ¶
func (m *ProductPropertyMutation) AddSort(u int32)
AddSort adds u to the "sort" field.
func (*ProductPropertyMutation) AddStatus ¶
func (m *ProductPropertyMutation) AddStatus(u int8)
AddStatus adds u to the "status" field.
func (*ProductPropertyMutation) AddedCreateTs ¶
func (m *ProductPropertyMutation) AddedCreateTs() (r int64, exists bool)
AddedCreateTs returns the value that was added to the "createTs" field in this mutation.
func (*ProductPropertyMutation) AddedEdges ¶
func (m *ProductPropertyMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*ProductPropertyMutation) AddedField ¶
func (m *ProductPropertyMutation) 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 (*ProductPropertyMutation) AddedFields ¶
func (m *ProductPropertyMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*ProductPropertyMutation) AddedIDs ¶
func (m *ProductPropertyMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*ProductPropertyMutation) AddedSort ¶
func (m *ProductPropertyMutation) AddedSort() (r int32, exists bool)
AddedSort returns the value that was added to the "sort" field in this mutation.
func (*ProductPropertyMutation) AddedStatus ¶
func (m *ProductPropertyMutation) AddedStatus() (r int8, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*ProductPropertyMutation) ClearCreateTs ¶
func (m *ProductPropertyMutation) ClearCreateTs()
ClearCreateTs clears the value of the "createTs" field.
func (*ProductPropertyMutation) ClearDataSpecs ¶
func (m *ProductPropertyMutation) ClearDataSpecs()
ClearDataSpecs clears the value of the "dataSpecs" field.
func (*ProductPropertyMutation) ClearDataSpecsList ¶
func (m *ProductPropertyMutation) ClearDataSpecsList()
ClearDataSpecsList clears the value of the "dataSpecsList" field.
func (*ProductPropertyMutation) ClearDataType ¶
func (m *ProductPropertyMutation) ClearDataType()
ClearDataType clears the value of the "dataType" field.
func (*ProductPropertyMutation) ClearEdge ¶
func (m *ProductPropertyMutation) 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 (*ProductPropertyMutation) ClearField ¶
func (m *ProductPropertyMutation) 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 (*ProductPropertyMutation) ClearProduct ¶
func (m *ProductPropertyMutation) ClearProduct()
ClearProduct clears the "product" edge to the Product entity.
func (*ProductPropertyMutation) ClearStatus ¶
func (m *ProductPropertyMutation) ClearStatus()
ClearStatus clears the value of the "status" field.
func (*ProductPropertyMutation) ClearVersion ¶
func (m *ProductPropertyMutation) ClearVersion()
ClearVersion clears the value of the "version" field.
func (*ProductPropertyMutation) ClearedEdges ¶
func (m *ProductPropertyMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*ProductPropertyMutation) ClearedFields ¶
func (m *ProductPropertyMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (ProductPropertyMutation) Client ¶
func (m ProductPropertyMutation) 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 (*ProductPropertyMutation) CreateTs ¶
func (m *ProductPropertyMutation) CreateTs() (r int64, exists bool)
CreateTs returns the value of the "createTs" field in the mutation.
func (*ProductPropertyMutation) CreateTsCleared ¶
func (m *ProductPropertyMutation) CreateTsCleared() bool
CreateTsCleared returns if the "createTs" field was cleared in this mutation.
func (*ProductPropertyMutation) CreatedAt ¶
func (m *ProductPropertyMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*ProductPropertyMutation) Custom ¶
func (m *ProductPropertyMutation) Custom() (r bool, exists bool)
Custom returns the value of the "custom" field in the mutation.
func (*ProductPropertyMutation) DataSpecs ¶
func (m *ProductPropertyMutation) DataSpecs() (r string, exists bool)
DataSpecs returns the value of the "dataSpecs" field in the mutation.
func (*ProductPropertyMutation) DataSpecsCleared ¶
func (m *ProductPropertyMutation) DataSpecsCleared() bool
DataSpecsCleared returns if the "dataSpecs" field was cleared in this mutation.
func (*ProductPropertyMutation) DataSpecsList ¶
func (m *ProductPropertyMutation) DataSpecsList() (r string, exists bool)
DataSpecsList returns the value of the "dataSpecsList" field in the mutation.
func (*ProductPropertyMutation) DataSpecsListCleared ¶
func (m *ProductPropertyMutation) DataSpecsListCleared() bool
DataSpecsListCleared returns if the "dataSpecsList" field was cleared in this mutation.
func (*ProductPropertyMutation) DataType ¶
func (m *ProductPropertyMutation) DataType() (r string, exists bool)
DataType returns the value of the "dataType" field in the mutation.
func (*ProductPropertyMutation) DataTypeCleared ¶
func (m *ProductPropertyMutation) DataTypeCleared() bool
DataTypeCleared returns if the "dataType" field was cleared in this mutation.
func (*ProductPropertyMutation) EdgeCleared ¶
func (m *ProductPropertyMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*ProductPropertyMutation) ExecContext ¶
func (c *ProductPropertyMutation) 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 (*ProductPropertyMutation) Field ¶
func (m *ProductPropertyMutation) 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 (*ProductPropertyMutation) FieldCleared ¶
func (m *ProductPropertyMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*ProductPropertyMutation) Fields ¶
func (m *ProductPropertyMutation) 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 (*ProductPropertyMutation) ID ¶
func (m *ProductPropertyMutation) 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 (*ProductPropertyMutation) IDs ¶
func (m *ProductPropertyMutation) 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 (*ProductPropertyMutation) Identifier ¶
func (m *ProductPropertyMutation) Identifier() (r string, exists bool)
Identifier returns the value of the "identifier" field in the mutation.
func (*ProductPropertyMutation) Name ¶
func (m *ProductPropertyMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*ProductPropertyMutation) OldCreateTs ¶
func (m *ProductPropertyMutation) OldCreateTs(ctx context.Context) (v int64, err error)
OldCreateTs returns the old "createTs" field's value of the ProductProperty entity. If the ProductProperty object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductPropertyMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the ProductProperty entity. If the ProductProperty object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductPropertyMutation) OldCustom ¶
func (m *ProductPropertyMutation) OldCustom(ctx context.Context) (v bool, err error)
OldCustom returns the old "custom" field's value of the ProductProperty entity. If the ProductProperty object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductPropertyMutation) OldDataSpecs ¶
func (m *ProductPropertyMutation) OldDataSpecs(ctx context.Context) (v string, err error)
OldDataSpecs returns the old "dataSpecs" field's value of the ProductProperty entity. If the ProductProperty object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductPropertyMutation) OldDataSpecsList ¶
func (m *ProductPropertyMutation) OldDataSpecsList(ctx context.Context) (v string, err error)
OldDataSpecsList returns the old "dataSpecsList" field's value of the ProductProperty entity. If the ProductProperty object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductPropertyMutation) OldDataType ¶
func (m *ProductPropertyMutation) OldDataType(ctx context.Context) (v string, err error)
OldDataType returns the old "dataType" field's value of the ProductProperty entity. If the ProductProperty object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductPropertyMutation) 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 (*ProductPropertyMutation) OldIdentifier ¶
func (m *ProductPropertyMutation) OldIdentifier(ctx context.Context) (v string, err error)
OldIdentifier returns the old "identifier" field's value of the ProductProperty entity. If the ProductProperty object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductPropertyMutation) OldName ¶
func (m *ProductPropertyMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the ProductProperty entity. If the ProductProperty object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductPropertyMutation) OldProductKey ¶
func (m *ProductPropertyMutation) OldProductKey(ctx context.Context) (v string, err error)
OldProductKey returns the old "productKey" field's value of the ProductProperty entity. If the ProductProperty object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductPropertyMutation) OldRequired ¶
func (m *ProductPropertyMutation) OldRequired(ctx context.Context) (v bool, err error)
OldRequired returns the old "required" field's value of the ProductProperty entity. If the ProductProperty object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductPropertyMutation) OldRwFlag ¶
func (m *ProductPropertyMutation) OldRwFlag(ctx context.Context) (v string, err error)
OldRwFlag returns the old "rwFlag" field's value of the ProductProperty entity. If the ProductProperty object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductPropertyMutation) OldSort ¶
func (m *ProductPropertyMutation) OldSort(ctx context.Context) (v uint32, err error)
OldSort returns the old "sort" field's value of the ProductProperty entity. If the ProductProperty object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductPropertyMutation) OldStatus ¶
func (m *ProductPropertyMutation) OldStatus(ctx context.Context) (v uint8, err error)
OldStatus returns the old "status" field's value of the ProductProperty entity. If the ProductProperty object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductPropertyMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the ProductProperty entity. If the ProductProperty object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductPropertyMutation) OldVersion ¶
func (m *ProductPropertyMutation) OldVersion(ctx context.Context) (v string, err error)
OldVersion returns the old "version" field's value of the ProductProperty entity. If the ProductProperty object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductPropertyMutation) Op ¶
func (m *ProductPropertyMutation) Op() Op
Op returns the operation name.
func (*ProductPropertyMutation) ProductCleared ¶
func (m *ProductPropertyMutation) ProductCleared() bool
ProductCleared reports if the "product" edge to the Product entity was cleared.
func (*ProductPropertyMutation) ProductID ¶
func (m *ProductPropertyMutation) ProductID() (id uuid.UUID, exists bool)
ProductID returns the "product" edge ID in the mutation.
func (*ProductPropertyMutation) ProductIDs ¶
func (m *ProductPropertyMutation) ProductIDs() (ids []uuid.UUID)
ProductIDs returns the "product" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ProductID instead. It exists only for internal usage by the builders.
func (*ProductPropertyMutation) ProductKey ¶
func (m *ProductPropertyMutation) ProductKey() (r string, exists bool)
ProductKey returns the value of the "productKey" field in the mutation.
func (*ProductPropertyMutation) QueryContext ¶
func (c *ProductPropertyMutation) 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 (*ProductPropertyMutation) RemovedEdges ¶
func (m *ProductPropertyMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*ProductPropertyMutation) RemovedIDs ¶
func (m *ProductPropertyMutation) 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 (*ProductPropertyMutation) Required ¶
func (m *ProductPropertyMutation) Required() (r bool, exists bool)
Required returns the value of the "required" field in the mutation.
func (*ProductPropertyMutation) ResetCreateTs ¶
func (m *ProductPropertyMutation) ResetCreateTs()
ResetCreateTs resets all changes to the "createTs" field.
func (*ProductPropertyMutation) ResetCreatedAt ¶
func (m *ProductPropertyMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*ProductPropertyMutation) ResetCustom ¶
func (m *ProductPropertyMutation) ResetCustom()
ResetCustom resets all changes to the "custom" field.
func (*ProductPropertyMutation) ResetDataSpecs ¶
func (m *ProductPropertyMutation) ResetDataSpecs()
ResetDataSpecs resets all changes to the "dataSpecs" field.
func (*ProductPropertyMutation) ResetDataSpecsList ¶
func (m *ProductPropertyMutation) ResetDataSpecsList()
ResetDataSpecsList resets all changes to the "dataSpecsList" field.
func (*ProductPropertyMutation) ResetDataType ¶
func (m *ProductPropertyMutation) ResetDataType()
ResetDataType resets all changes to the "dataType" field.
func (*ProductPropertyMutation) ResetEdge ¶
func (m *ProductPropertyMutation) 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 (*ProductPropertyMutation) ResetField ¶
func (m *ProductPropertyMutation) 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 (*ProductPropertyMutation) ResetIdentifier ¶
func (m *ProductPropertyMutation) ResetIdentifier()
ResetIdentifier resets all changes to the "identifier" field.
func (*ProductPropertyMutation) ResetName ¶
func (m *ProductPropertyMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*ProductPropertyMutation) ResetProduct ¶
func (m *ProductPropertyMutation) ResetProduct()
ResetProduct resets all changes to the "product" edge.
func (*ProductPropertyMutation) ResetProductKey ¶
func (m *ProductPropertyMutation) ResetProductKey()
ResetProductKey resets all changes to the "productKey" field.
func (*ProductPropertyMutation) ResetRequired ¶
func (m *ProductPropertyMutation) ResetRequired()
ResetRequired resets all changes to the "required" field.
func (*ProductPropertyMutation) ResetRwFlag ¶
func (m *ProductPropertyMutation) ResetRwFlag()
ResetRwFlag resets all changes to the "rwFlag" field.
func (*ProductPropertyMutation) ResetSort ¶
func (m *ProductPropertyMutation) ResetSort()
ResetSort resets all changes to the "sort" field.
func (*ProductPropertyMutation) ResetStatus ¶
func (m *ProductPropertyMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*ProductPropertyMutation) ResetUpdatedAt ¶
func (m *ProductPropertyMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*ProductPropertyMutation) ResetVersion ¶
func (m *ProductPropertyMutation) ResetVersion()
ResetVersion resets all changes to the "version" field.
func (*ProductPropertyMutation) RwFlag ¶
func (m *ProductPropertyMutation) RwFlag() (r string, exists bool)
RwFlag returns the value of the "rwFlag" field in the mutation.
func (*ProductPropertyMutation) SetCreateTs ¶
func (m *ProductPropertyMutation) SetCreateTs(i int64)
SetCreateTs sets the "createTs" field.
func (*ProductPropertyMutation) SetCreatedAt ¶
func (m *ProductPropertyMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*ProductPropertyMutation) SetCustom ¶
func (m *ProductPropertyMutation) SetCustom(b bool)
SetCustom sets the "custom" field.
func (*ProductPropertyMutation) SetDataSpecs ¶
func (m *ProductPropertyMutation) SetDataSpecs(s string)
SetDataSpecs sets the "dataSpecs" field.
func (*ProductPropertyMutation) SetDataSpecsList ¶
func (m *ProductPropertyMutation) SetDataSpecsList(s string)
SetDataSpecsList sets the "dataSpecsList" field.
func (*ProductPropertyMutation) SetDataType ¶
func (m *ProductPropertyMutation) SetDataType(s string)
SetDataType sets the "dataType" field.
func (*ProductPropertyMutation) SetField ¶
func (m *ProductPropertyMutation) 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 (*ProductPropertyMutation) SetID ¶
func (m *ProductPropertyMutation) SetID(id uint64)
SetID sets the value of the id field. Note that this operation is only accepted on creation of ProductProperty entities.
func (*ProductPropertyMutation) SetIdentifier ¶
func (m *ProductPropertyMutation) SetIdentifier(s string)
SetIdentifier sets the "identifier" field.
func (*ProductPropertyMutation) SetName ¶
func (m *ProductPropertyMutation) SetName(s string)
SetName sets the "name" field.
func (*ProductPropertyMutation) SetOp ¶
func (m *ProductPropertyMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*ProductPropertyMutation) SetProductID ¶
func (m *ProductPropertyMutation) SetProductID(id uuid.UUID)
SetProductID sets the "product" edge to the Product entity by id.
func (*ProductPropertyMutation) SetProductKey ¶
func (m *ProductPropertyMutation) SetProductKey(s string)
SetProductKey sets the "productKey" field.
func (*ProductPropertyMutation) SetRequired ¶
func (m *ProductPropertyMutation) SetRequired(b bool)
SetRequired sets the "required" field.
func (*ProductPropertyMutation) SetRwFlag ¶
func (m *ProductPropertyMutation) SetRwFlag(s string)
SetRwFlag sets the "rwFlag" field.
func (*ProductPropertyMutation) SetSort ¶
func (m *ProductPropertyMutation) SetSort(u uint32)
SetSort sets the "sort" field.
func (*ProductPropertyMutation) SetStatus ¶
func (m *ProductPropertyMutation) SetStatus(u uint8)
SetStatus sets the "status" field.
func (*ProductPropertyMutation) SetUpdatedAt ¶
func (m *ProductPropertyMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*ProductPropertyMutation) SetVersion ¶
func (m *ProductPropertyMutation) SetVersion(s string)
SetVersion sets the "version" field.
func (*ProductPropertyMutation) Sort ¶
func (m *ProductPropertyMutation) Sort() (r uint32, exists bool)
Sort returns the value of the "sort" field in the mutation.
func (*ProductPropertyMutation) Status ¶
func (m *ProductPropertyMutation) Status() (r uint8, exists bool)
Status returns the value of the "status" field in the mutation.
func (*ProductPropertyMutation) StatusCleared ¶
func (m *ProductPropertyMutation) StatusCleared() bool
StatusCleared returns if the "status" field was cleared in this mutation.
func (ProductPropertyMutation) Tx ¶
func (m ProductPropertyMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*ProductPropertyMutation) Type ¶
func (m *ProductPropertyMutation) Type() string
Type returns the node type of this mutation (ProductProperty).
func (*ProductPropertyMutation) UpdatedAt ¶
func (m *ProductPropertyMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*ProductPropertyMutation) Version ¶
func (m *ProductPropertyMutation) Version() (r string, exists bool)
Version returns the value of the "version" field in the mutation.
func (*ProductPropertyMutation) VersionCleared ¶
func (m *ProductPropertyMutation) VersionCleared() bool
VersionCleared returns if the "version" field was cleared in this mutation.
func (*ProductPropertyMutation) Where ¶
func (m *ProductPropertyMutation) Where(ps ...predicate.ProductProperty)
Where appends a list predicates to the ProductPropertyMutation builder.
func (*ProductPropertyMutation) WhereP ¶
func (m *ProductPropertyMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the ProductPropertyMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type ProductPropertyPageList ¶
type ProductPropertyPageList struct { List []*ProductProperty `json:"list"` PageDetails *PageDetails `json:"pageDetails"` }
ProductPropertyPageList is ProductProperty PageList result.
type ProductPropertyPager ¶
type ProductPropertyPager struct { Order productproperty.OrderOption Filter func(*ProductPropertyQuery) (*ProductPropertyQuery, error) }
func (*ProductPropertyPager) ApplyFilter ¶
func (p *ProductPropertyPager) ApplyFilter(query *ProductPropertyQuery) (*ProductPropertyQuery, error)
type ProductPropertyPaginateOption ¶
type ProductPropertyPaginateOption func(*ProductPropertyPager)
ProductPropertyPaginateOption enables pagination customization.
type ProductPropertyQuery ¶
type ProductPropertyQuery struct {
// contains filtered or unexported fields
}
ProductPropertyQuery is the builder for querying ProductProperty entities.
func (*ProductPropertyQuery) Aggregate ¶
func (ppq *ProductPropertyQuery) Aggregate(fns ...AggregateFunc) *ProductPropertySelect
Aggregate returns a ProductPropertySelect configured with the given aggregations.
func (*ProductPropertyQuery) All ¶
func (ppq *ProductPropertyQuery) All(ctx context.Context) ([]*ProductProperty, error)
All executes the query and returns a list of ProductProperties.
func (*ProductPropertyQuery) AllX ¶
func (ppq *ProductPropertyQuery) AllX(ctx context.Context) []*ProductProperty
AllX is like All, but panics if an error occurs.
func (*ProductPropertyQuery) Clone ¶
func (ppq *ProductPropertyQuery) Clone() *ProductPropertyQuery
Clone returns a duplicate of the ProductPropertyQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*ProductPropertyQuery) Count ¶
func (ppq *ProductPropertyQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*ProductPropertyQuery) CountX ¶
func (ppq *ProductPropertyQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*ProductPropertyQuery) ExecContext ¶
func (c *ProductPropertyQuery) 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 (*ProductPropertyQuery) Exist ¶
func (ppq *ProductPropertyQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*ProductPropertyQuery) ExistX ¶
func (ppq *ProductPropertyQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*ProductPropertyQuery) First ¶
func (ppq *ProductPropertyQuery) First(ctx context.Context) (*ProductProperty, error)
First returns the first ProductProperty entity from the query. Returns a *NotFoundError when no ProductProperty was found.
func (*ProductPropertyQuery) FirstID ¶
func (ppq *ProductPropertyQuery) FirstID(ctx context.Context) (id uint64, err error)
FirstID returns the first ProductProperty ID from the query. Returns a *NotFoundError when no ProductProperty ID was found.
func (*ProductPropertyQuery) FirstIDX ¶
func (ppq *ProductPropertyQuery) FirstIDX(ctx context.Context) uint64
FirstIDX is like FirstID, but panics if an error occurs.
func (*ProductPropertyQuery) FirstX ¶
func (ppq *ProductPropertyQuery) FirstX(ctx context.Context) *ProductProperty
FirstX is like First, but panics if an error occurs.
func (*ProductPropertyQuery) GroupBy ¶
func (ppq *ProductPropertyQuery) GroupBy(field string, fields ...string) *ProductPropertyGroupBy
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.ProductProperty.Query(). GroupBy(productproperty.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*ProductPropertyQuery) IDs ¶
func (ppq *ProductPropertyQuery) IDs(ctx context.Context) (ids []uint64, err error)
IDs executes the query and returns a list of ProductProperty IDs.
func (*ProductPropertyQuery) IDsX ¶
func (ppq *ProductPropertyQuery) IDsX(ctx context.Context) []uint64
IDsX is like IDs, but panics if an error occurs.
func (*ProductPropertyQuery) Limit ¶
func (ppq *ProductPropertyQuery) Limit(limit int) *ProductPropertyQuery
Limit the number of records to be returned by this query.
func (*ProductPropertyQuery) Modify ¶
func (ppq *ProductPropertyQuery) Modify(modifiers ...func(s *sql.Selector)) *ProductPropertySelect
Modify adds a query modifier for attaching custom logic to queries.
func (*ProductPropertyQuery) Offset ¶
func (ppq *ProductPropertyQuery) Offset(offset int) *ProductPropertyQuery
Offset to start from.
func (*ProductPropertyQuery) Only ¶
func (ppq *ProductPropertyQuery) Only(ctx context.Context) (*ProductProperty, error)
Only returns a single ProductProperty entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one ProductProperty entity is found. Returns a *NotFoundError when no ProductProperty entities are found.
func (*ProductPropertyQuery) OnlyID ¶
func (ppq *ProductPropertyQuery) OnlyID(ctx context.Context) (id uint64, err error)
OnlyID is like Only, but returns the only ProductProperty ID in the query. Returns a *NotSingularError when more than one ProductProperty ID is found. Returns a *NotFoundError when no entities are found.
func (*ProductPropertyQuery) OnlyIDX ¶
func (ppq *ProductPropertyQuery) OnlyIDX(ctx context.Context) uint64
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*ProductPropertyQuery) OnlyX ¶
func (ppq *ProductPropertyQuery) OnlyX(ctx context.Context) *ProductProperty
OnlyX is like Only, but panics if an error occurs.
func (*ProductPropertyQuery) Order ¶
func (ppq *ProductPropertyQuery) Order(o ...productproperty.OrderOption) *ProductPropertyQuery
Order specifies how the records should be ordered.
func (*ProductPropertyQuery) Page ¶
func (pp *ProductPropertyQuery) Page( ctx context.Context, pageNum uint64, pageSize uint64, opts ...ProductPropertyPaginateOption, ) (*ProductPropertyPageList, error)
func (*ProductPropertyQuery) QueryContext ¶
func (c *ProductPropertyQuery) 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 (*ProductPropertyQuery) QueryProduct ¶
func (ppq *ProductPropertyQuery) QueryProduct() *ProductQuery
QueryProduct chains the current query on the "product" edge.
func (*ProductPropertyQuery) Select ¶
func (ppq *ProductPropertyQuery) Select(fields ...string) *ProductPropertySelect
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.ProductProperty.Query(). Select(productproperty.FieldCreatedAt). Scan(ctx, &v)
func (*ProductPropertyQuery) Unique ¶
func (ppq *ProductPropertyQuery) Unique(unique bool) *ProductPropertyQuery
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 (*ProductPropertyQuery) Where ¶
func (ppq *ProductPropertyQuery) Where(ps ...predicate.ProductProperty) *ProductPropertyQuery
Where adds a new predicate for the ProductPropertyQuery builder.
func (*ProductPropertyQuery) WithProduct ¶
func (ppq *ProductPropertyQuery) WithProduct(opts ...func(*ProductQuery)) *ProductPropertyQuery
WithProduct tells the query-builder to eager-load the nodes that are connected to the "product" edge. The optional arguments are used to configure the query builder of the edge.
type ProductPropertySelect ¶
type ProductPropertySelect struct { *ProductPropertyQuery // contains filtered or unexported fields }
ProductPropertySelect is the builder for selecting fields of ProductProperty entities.
func (*ProductPropertySelect) Aggregate ¶
func (pps *ProductPropertySelect) Aggregate(fns ...AggregateFunc) *ProductPropertySelect
Aggregate adds the given aggregation functions to the selector query.
func (*ProductPropertySelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ProductPropertySelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (ProductPropertySelect) ExecContext ¶
func (c ProductPropertySelect) 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 (*ProductPropertySelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ProductPropertySelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ProductPropertySelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*ProductPropertySelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ProductPropertySelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ProductPropertySelect) Modify ¶
func (pps *ProductPropertySelect) Modify(modifiers ...func(s *sql.Selector)) *ProductPropertySelect
Modify adds a query modifier for attaching custom logic to queries.
func (ProductPropertySelect) QueryContext ¶
func (c ProductPropertySelect) 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 (*ProductPropertySelect) Scan ¶
func (pps *ProductPropertySelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ProductPropertySelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type ProductPropertyUpdate ¶
type ProductPropertyUpdate struct {
// contains filtered or unexported fields
}
ProductPropertyUpdate is the builder for updating ProductProperty entities.
func (*ProductPropertyUpdate) AddCreateTs ¶
func (ppu *ProductPropertyUpdate) AddCreateTs(i int64) *ProductPropertyUpdate
AddCreateTs adds i to the "createTs" field.
func (*ProductPropertyUpdate) AddSort ¶
func (ppu *ProductPropertyUpdate) AddSort(u int32) *ProductPropertyUpdate
AddSort adds u to the "sort" field.
func (*ProductPropertyUpdate) AddStatus ¶
func (ppu *ProductPropertyUpdate) AddStatus(u int8) *ProductPropertyUpdate
AddStatus adds u to the "status" field.
func (*ProductPropertyUpdate) ClearCreateTs ¶
func (ppu *ProductPropertyUpdate) ClearCreateTs() *ProductPropertyUpdate
ClearCreateTs clears the value of the "createTs" field.
func (*ProductPropertyUpdate) ClearDataSpecs ¶
func (ppu *ProductPropertyUpdate) ClearDataSpecs() *ProductPropertyUpdate
ClearDataSpecs clears the value of the "dataSpecs" field.
func (*ProductPropertyUpdate) ClearDataSpecsList ¶
func (ppu *ProductPropertyUpdate) ClearDataSpecsList() *ProductPropertyUpdate
ClearDataSpecsList clears the value of the "dataSpecsList" field.
func (*ProductPropertyUpdate) ClearDataType ¶
func (ppu *ProductPropertyUpdate) ClearDataType() *ProductPropertyUpdate
ClearDataType clears the value of the "dataType" field.
func (*ProductPropertyUpdate) ClearProduct ¶
func (ppu *ProductPropertyUpdate) ClearProduct() *ProductPropertyUpdate
ClearProduct clears the "product" edge to the Product entity.
func (*ProductPropertyUpdate) ClearStatus ¶
func (ppu *ProductPropertyUpdate) ClearStatus() *ProductPropertyUpdate
ClearStatus clears the value of the "status" field.
func (*ProductPropertyUpdate) ClearVersion ¶
func (ppu *ProductPropertyUpdate) ClearVersion() *ProductPropertyUpdate
ClearVersion clears the value of the "version" field.
func (*ProductPropertyUpdate) Exec ¶
func (ppu *ProductPropertyUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*ProductPropertyUpdate) ExecContext ¶
func (c *ProductPropertyUpdate) 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 (*ProductPropertyUpdate) ExecX ¶
func (ppu *ProductPropertyUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductPropertyUpdate) Modify ¶
func (ppu *ProductPropertyUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ProductPropertyUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*ProductPropertyUpdate) Mutation ¶
func (ppu *ProductPropertyUpdate) Mutation() *ProductPropertyMutation
Mutation returns the ProductPropertyMutation object of the builder.
func (*ProductPropertyUpdate) QueryContext ¶
func (c *ProductPropertyUpdate) 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 (*ProductPropertyUpdate) Save ¶
func (ppu *ProductPropertyUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*ProductPropertyUpdate) SaveX ¶
func (ppu *ProductPropertyUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*ProductPropertyUpdate) SetCreateTs ¶
func (ppu *ProductPropertyUpdate) SetCreateTs(i int64) *ProductPropertyUpdate
SetCreateTs sets the "createTs" field.
func (*ProductPropertyUpdate) SetCustom ¶
func (ppu *ProductPropertyUpdate) SetCustom(b bool) *ProductPropertyUpdate
SetCustom sets the "custom" field.
func (*ProductPropertyUpdate) SetDataSpecs ¶
func (ppu *ProductPropertyUpdate) SetDataSpecs(s string) *ProductPropertyUpdate
SetDataSpecs sets the "dataSpecs" field.
func (*ProductPropertyUpdate) SetDataSpecsList ¶
func (ppu *ProductPropertyUpdate) SetDataSpecsList(s string) *ProductPropertyUpdate
SetDataSpecsList sets the "dataSpecsList" field.
func (*ProductPropertyUpdate) SetDataType ¶
func (ppu *ProductPropertyUpdate) SetDataType(s string) *ProductPropertyUpdate
SetDataType sets the "dataType" field.
func (*ProductPropertyUpdate) SetIdentifier ¶
func (ppu *ProductPropertyUpdate) SetIdentifier(s string) *ProductPropertyUpdate
SetIdentifier sets the "identifier" field.
func (*ProductPropertyUpdate) SetName ¶
func (ppu *ProductPropertyUpdate) SetName(s string) *ProductPropertyUpdate
SetName sets the "name" field.
func (*ProductPropertyUpdate) SetNillableCreateTs ¶
func (ppu *ProductPropertyUpdate) SetNillableCreateTs(i *int64) *ProductPropertyUpdate
SetNillableCreateTs sets the "createTs" field if the given value is not nil.
func (*ProductPropertyUpdate) SetNillableCustom ¶
func (ppu *ProductPropertyUpdate) SetNillableCustom(b *bool) *ProductPropertyUpdate
SetNillableCustom sets the "custom" field if the given value is not nil.
func (*ProductPropertyUpdate) SetNillableDataSpecs ¶
func (ppu *ProductPropertyUpdate) SetNillableDataSpecs(s *string) *ProductPropertyUpdate
SetNillableDataSpecs sets the "dataSpecs" field if the given value is not nil.
func (*ProductPropertyUpdate) SetNillableDataSpecsList ¶
func (ppu *ProductPropertyUpdate) SetNillableDataSpecsList(s *string) *ProductPropertyUpdate
SetNillableDataSpecsList sets the "dataSpecsList" field if the given value is not nil.
func (*ProductPropertyUpdate) SetNillableDataType ¶
func (ppu *ProductPropertyUpdate) SetNillableDataType(s *string) *ProductPropertyUpdate
SetNillableDataType sets the "dataType" field if the given value is not nil.
func (*ProductPropertyUpdate) SetNillableIdentifier ¶
func (ppu *ProductPropertyUpdate) SetNillableIdentifier(s *string) *ProductPropertyUpdate
SetNillableIdentifier sets the "identifier" field if the given value is not nil.
func (*ProductPropertyUpdate) SetNillableName ¶
func (ppu *ProductPropertyUpdate) SetNillableName(s *string) *ProductPropertyUpdate
SetNillableName sets the "name" field if the given value is not nil.
func (*ProductPropertyUpdate) SetNillableProductID ¶
func (ppu *ProductPropertyUpdate) SetNillableProductID(id *uuid.UUID) *ProductPropertyUpdate
SetNillableProductID sets the "product" edge to the Product entity by ID if the given value is not nil.
func (*ProductPropertyUpdate) SetNillableProductKey ¶
func (ppu *ProductPropertyUpdate) SetNillableProductKey(s *string) *ProductPropertyUpdate
SetNillableProductKey sets the "productKey" field if the given value is not nil.
func (*ProductPropertyUpdate) SetNillableRequired ¶
func (ppu *ProductPropertyUpdate) SetNillableRequired(b *bool) *ProductPropertyUpdate
SetNillableRequired sets the "required" field if the given value is not nil.
func (*ProductPropertyUpdate) SetNillableRwFlag ¶
func (ppu *ProductPropertyUpdate) SetNillableRwFlag(s *string) *ProductPropertyUpdate
SetNillableRwFlag sets the "rwFlag" field if the given value is not nil.
func (*ProductPropertyUpdate) SetNillableSort ¶
func (ppu *ProductPropertyUpdate) SetNillableSort(u *uint32) *ProductPropertyUpdate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*ProductPropertyUpdate) SetNillableStatus ¶
func (ppu *ProductPropertyUpdate) SetNillableStatus(u *uint8) *ProductPropertyUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*ProductPropertyUpdate) SetNillableVersion ¶
func (ppu *ProductPropertyUpdate) SetNillableVersion(s *string) *ProductPropertyUpdate
SetNillableVersion sets the "version" field if the given value is not nil.
func (*ProductPropertyUpdate) SetNotNilCreateTs ¶
func (pp *ProductPropertyUpdate) SetNotNilCreateTs(value *int64) *ProductPropertyUpdate
set field if value's pointer is not nil.
func (*ProductPropertyUpdate) SetNotNilCustom ¶
func (pp *ProductPropertyUpdate) SetNotNilCustom(value *bool) *ProductPropertyUpdate
set field if value's pointer is not nil.
func (*ProductPropertyUpdate) SetNotNilDataSpecs ¶
func (pp *ProductPropertyUpdate) SetNotNilDataSpecs(value *string) *ProductPropertyUpdate
set field if value's pointer is not nil.
func (*ProductPropertyUpdate) SetNotNilDataSpecsList ¶
func (pp *ProductPropertyUpdate) SetNotNilDataSpecsList(value *string) *ProductPropertyUpdate
set field if value's pointer is not nil.
func (*ProductPropertyUpdate) SetNotNilDataType ¶
func (pp *ProductPropertyUpdate) SetNotNilDataType(value *string) *ProductPropertyUpdate
set field if value's pointer is not nil.
func (*ProductPropertyUpdate) SetNotNilIdentifier ¶
func (pp *ProductPropertyUpdate) SetNotNilIdentifier(value *string) *ProductPropertyUpdate
set field if value's pointer is not nil.
func (*ProductPropertyUpdate) SetNotNilName ¶
func (pp *ProductPropertyUpdate) SetNotNilName(value *string) *ProductPropertyUpdate
set field if value's pointer is not nil.
func (*ProductPropertyUpdate) SetNotNilProductKey ¶
func (pp *ProductPropertyUpdate) SetNotNilProductKey(value *string) *ProductPropertyUpdate
set field if value's pointer is not nil.
func (*ProductPropertyUpdate) SetNotNilRequired ¶
func (pp *ProductPropertyUpdate) SetNotNilRequired(value *bool) *ProductPropertyUpdate
set field if value's pointer is not nil.
func (*ProductPropertyUpdate) SetNotNilRwFlag ¶
func (pp *ProductPropertyUpdate) SetNotNilRwFlag(value *string) *ProductPropertyUpdate
set field if value's pointer is not nil.
func (*ProductPropertyUpdate) SetNotNilSort ¶
func (pp *ProductPropertyUpdate) SetNotNilSort(value *uint32) *ProductPropertyUpdate
set field if value's pointer is not nil.
func (*ProductPropertyUpdate) SetNotNilStatus ¶
func (pp *ProductPropertyUpdate) SetNotNilStatus(value *uint8) *ProductPropertyUpdate
set field if value's pointer is not nil.
func (*ProductPropertyUpdate) SetNotNilUpdatedAt ¶
func (pp *ProductPropertyUpdate) SetNotNilUpdatedAt(value *time.Time) *ProductPropertyUpdate
set field if value's pointer is not nil.
func (*ProductPropertyUpdate) SetNotNilVersion ¶
func (pp *ProductPropertyUpdate) SetNotNilVersion(value *string) *ProductPropertyUpdate
set field if value's pointer is not nil.
func (*ProductPropertyUpdate) SetProduct ¶
func (ppu *ProductPropertyUpdate) SetProduct(p *Product) *ProductPropertyUpdate
SetProduct sets the "product" edge to the Product entity.
func (*ProductPropertyUpdate) SetProductID ¶
func (ppu *ProductPropertyUpdate) SetProductID(id uuid.UUID) *ProductPropertyUpdate
SetProductID sets the "product" edge to the Product entity by ID.
func (*ProductPropertyUpdate) SetProductKey ¶
func (ppu *ProductPropertyUpdate) SetProductKey(s string) *ProductPropertyUpdate
SetProductKey sets the "productKey" field.
func (*ProductPropertyUpdate) SetRequired ¶
func (ppu *ProductPropertyUpdate) SetRequired(b bool) *ProductPropertyUpdate
SetRequired sets the "required" field.
func (*ProductPropertyUpdate) SetRwFlag ¶
func (ppu *ProductPropertyUpdate) SetRwFlag(s string) *ProductPropertyUpdate
SetRwFlag sets the "rwFlag" field.
func (*ProductPropertyUpdate) SetSort ¶
func (ppu *ProductPropertyUpdate) SetSort(u uint32) *ProductPropertyUpdate
SetSort sets the "sort" field.
func (*ProductPropertyUpdate) SetStatus ¶
func (ppu *ProductPropertyUpdate) SetStatus(u uint8) *ProductPropertyUpdate
SetStatus sets the "status" field.
func (*ProductPropertyUpdate) SetUpdatedAt ¶
func (ppu *ProductPropertyUpdate) SetUpdatedAt(t time.Time) *ProductPropertyUpdate
SetUpdatedAt sets the "updated_at" field.
func (*ProductPropertyUpdate) SetVersion ¶
func (ppu *ProductPropertyUpdate) SetVersion(s string) *ProductPropertyUpdate
SetVersion sets the "version" field.
func (*ProductPropertyUpdate) Where ¶
func (ppu *ProductPropertyUpdate) Where(ps ...predicate.ProductProperty) *ProductPropertyUpdate
Where appends a list predicates to the ProductPropertyUpdate builder.
type ProductPropertyUpdateOne ¶
type ProductPropertyUpdateOne struct {
// contains filtered or unexported fields
}
ProductPropertyUpdateOne is the builder for updating a single ProductProperty entity.
func (*ProductPropertyUpdateOne) AddCreateTs ¶
func (ppuo *ProductPropertyUpdateOne) AddCreateTs(i int64) *ProductPropertyUpdateOne
AddCreateTs adds i to the "createTs" field.
func (*ProductPropertyUpdateOne) AddSort ¶
func (ppuo *ProductPropertyUpdateOne) AddSort(u int32) *ProductPropertyUpdateOne
AddSort adds u to the "sort" field.
func (*ProductPropertyUpdateOne) AddStatus ¶
func (ppuo *ProductPropertyUpdateOne) AddStatus(u int8) *ProductPropertyUpdateOne
AddStatus adds u to the "status" field.
func (*ProductPropertyUpdateOne) ClearCreateTs ¶
func (ppuo *ProductPropertyUpdateOne) ClearCreateTs() *ProductPropertyUpdateOne
ClearCreateTs clears the value of the "createTs" field.
func (*ProductPropertyUpdateOne) ClearDataSpecs ¶
func (ppuo *ProductPropertyUpdateOne) ClearDataSpecs() *ProductPropertyUpdateOne
ClearDataSpecs clears the value of the "dataSpecs" field.
func (*ProductPropertyUpdateOne) ClearDataSpecsList ¶
func (ppuo *ProductPropertyUpdateOne) ClearDataSpecsList() *ProductPropertyUpdateOne
ClearDataSpecsList clears the value of the "dataSpecsList" field.
func (*ProductPropertyUpdateOne) ClearDataType ¶
func (ppuo *ProductPropertyUpdateOne) ClearDataType() *ProductPropertyUpdateOne
ClearDataType clears the value of the "dataType" field.
func (*ProductPropertyUpdateOne) ClearProduct ¶
func (ppuo *ProductPropertyUpdateOne) ClearProduct() *ProductPropertyUpdateOne
ClearProduct clears the "product" edge to the Product entity.
func (*ProductPropertyUpdateOne) ClearStatus ¶
func (ppuo *ProductPropertyUpdateOne) ClearStatus() *ProductPropertyUpdateOne
ClearStatus clears the value of the "status" field.
func (*ProductPropertyUpdateOne) ClearVersion ¶
func (ppuo *ProductPropertyUpdateOne) ClearVersion() *ProductPropertyUpdateOne
ClearVersion clears the value of the "version" field.
func (*ProductPropertyUpdateOne) Exec ¶
func (ppuo *ProductPropertyUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*ProductPropertyUpdateOne) ExecContext ¶
func (c *ProductPropertyUpdateOne) 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 (*ProductPropertyUpdateOne) ExecX ¶
func (ppuo *ProductPropertyUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductPropertyUpdateOne) Modify ¶
func (ppuo *ProductPropertyUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ProductPropertyUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*ProductPropertyUpdateOne) Mutation ¶
func (ppuo *ProductPropertyUpdateOne) Mutation() *ProductPropertyMutation
Mutation returns the ProductPropertyMutation object of the builder.
func (*ProductPropertyUpdateOne) QueryContext ¶
func (c *ProductPropertyUpdateOne) 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 (*ProductPropertyUpdateOne) Save ¶
func (ppuo *ProductPropertyUpdateOne) Save(ctx context.Context) (*ProductProperty, error)
Save executes the query and returns the updated ProductProperty entity.
func (*ProductPropertyUpdateOne) SaveX ¶
func (ppuo *ProductPropertyUpdateOne) SaveX(ctx context.Context) *ProductProperty
SaveX is like Save, but panics if an error occurs.
func (*ProductPropertyUpdateOne) Select ¶
func (ppuo *ProductPropertyUpdateOne) Select(field string, fields ...string) *ProductPropertyUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*ProductPropertyUpdateOne) SetCreateTs ¶
func (ppuo *ProductPropertyUpdateOne) SetCreateTs(i int64) *ProductPropertyUpdateOne
SetCreateTs sets the "createTs" field.
func (*ProductPropertyUpdateOne) SetCustom ¶
func (ppuo *ProductPropertyUpdateOne) SetCustom(b bool) *ProductPropertyUpdateOne
SetCustom sets the "custom" field.
func (*ProductPropertyUpdateOne) SetDataSpecs ¶
func (ppuo *ProductPropertyUpdateOne) SetDataSpecs(s string) *ProductPropertyUpdateOne
SetDataSpecs sets the "dataSpecs" field.
func (*ProductPropertyUpdateOne) SetDataSpecsList ¶
func (ppuo *ProductPropertyUpdateOne) SetDataSpecsList(s string) *ProductPropertyUpdateOne
SetDataSpecsList sets the "dataSpecsList" field.
func (*ProductPropertyUpdateOne) SetDataType ¶
func (ppuo *ProductPropertyUpdateOne) SetDataType(s string) *ProductPropertyUpdateOne
SetDataType sets the "dataType" field.
func (*ProductPropertyUpdateOne) SetIdentifier ¶
func (ppuo *ProductPropertyUpdateOne) SetIdentifier(s string) *ProductPropertyUpdateOne
SetIdentifier sets the "identifier" field.
func (*ProductPropertyUpdateOne) SetName ¶
func (ppuo *ProductPropertyUpdateOne) SetName(s string) *ProductPropertyUpdateOne
SetName sets the "name" field.
func (*ProductPropertyUpdateOne) SetNillableCreateTs ¶
func (ppuo *ProductPropertyUpdateOne) SetNillableCreateTs(i *int64) *ProductPropertyUpdateOne
SetNillableCreateTs sets the "createTs" field if the given value is not nil.
func (*ProductPropertyUpdateOne) SetNillableCustom ¶
func (ppuo *ProductPropertyUpdateOne) SetNillableCustom(b *bool) *ProductPropertyUpdateOne
SetNillableCustom sets the "custom" field if the given value is not nil.
func (*ProductPropertyUpdateOne) SetNillableDataSpecs ¶
func (ppuo *ProductPropertyUpdateOne) SetNillableDataSpecs(s *string) *ProductPropertyUpdateOne
SetNillableDataSpecs sets the "dataSpecs" field if the given value is not nil.
func (*ProductPropertyUpdateOne) SetNillableDataSpecsList ¶
func (ppuo *ProductPropertyUpdateOne) SetNillableDataSpecsList(s *string) *ProductPropertyUpdateOne
SetNillableDataSpecsList sets the "dataSpecsList" field if the given value is not nil.
func (*ProductPropertyUpdateOne) SetNillableDataType ¶
func (ppuo *ProductPropertyUpdateOne) SetNillableDataType(s *string) *ProductPropertyUpdateOne
SetNillableDataType sets the "dataType" field if the given value is not nil.
func (*ProductPropertyUpdateOne) SetNillableIdentifier ¶
func (ppuo *ProductPropertyUpdateOne) SetNillableIdentifier(s *string) *ProductPropertyUpdateOne
SetNillableIdentifier sets the "identifier" field if the given value is not nil.
func (*ProductPropertyUpdateOne) SetNillableName ¶
func (ppuo *ProductPropertyUpdateOne) SetNillableName(s *string) *ProductPropertyUpdateOne
SetNillableName sets the "name" field if the given value is not nil.
func (*ProductPropertyUpdateOne) SetNillableProductID ¶
func (ppuo *ProductPropertyUpdateOne) SetNillableProductID(id *uuid.UUID) *ProductPropertyUpdateOne
SetNillableProductID sets the "product" edge to the Product entity by ID if the given value is not nil.
func (*ProductPropertyUpdateOne) SetNillableProductKey ¶
func (ppuo *ProductPropertyUpdateOne) SetNillableProductKey(s *string) *ProductPropertyUpdateOne
SetNillableProductKey sets the "productKey" field if the given value is not nil.
func (*ProductPropertyUpdateOne) SetNillableRequired ¶
func (ppuo *ProductPropertyUpdateOne) SetNillableRequired(b *bool) *ProductPropertyUpdateOne
SetNillableRequired sets the "required" field if the given value is not nil.
func (*ProductPropertyUpdateOne) SetNillableRwFlag ¶
func (ppuo *ProductPropertyUpdateOne) SetNillableRwFlag(s *string) *ProductPropertyUpdateOne
SetNillableRwFlag sets the "rwFlag" field if the given value is not nil.
func (*ProductPropertyUpdateOne) SetNillableSort ¶
func (ppuo *ProductPropertyUpdateOne) SetNillableSort(u *uint32) *ProductPropertyUpdateOne
SetNillableSort sets the "sort" field if the given value is not nil.
func (*ProductPropertyUpdateOne) SetNillableStatus ¶
func (ppuo *ProductPropertyUpdateOne) SetNillableStatus(u *uint8) *ProductPropertyUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*ProductPropertyUpdateOne) SetNillableVersion ¶
func (ppuo *ProductPropertyUpdateOne) SetNillableVersion(s *string) *ProductPropertyUpdateOne
SetNillableVersion sets the "version" field if the given value is not nil.
func (*ProductPropertyUpdateOne) SetNotNilCreateTs ¶
func (pp *ProductPropertyUpdateOne) SetNotNilCreateTs(value *int64) *ProductPropertyUpdateOne
set field if value's pointer is not nil.
func (*ProductPropertyUpdateOne) SetNotNilCustom ¶
func (pp *ProductPropertyUpdateOne) SetNotNilCustom(value *bool) *ProductPropertyUpdateOne
set field if value's pointer is not nil.
func (*ProductPropertyUpdateOne) SetNotNilDataSpecs ¶
func (pp *ProductPropertyUpdateOne) SetNotNilDataSpecs(value *string) *ProductPropertyUpdateOne
set field if value's pointer is not nil.
func (*ProductPropertyUpdateOne) SetNotNilDataSpecsList ¶
func (pp *ProductPropertyUpdateOne) SetNotNilDataSpecsList(value *string) *ProductPropertyUpdateOne
set field if value's pointer is not nil.
func (*ProductPropertyUpdateOne) SetNotNilDataType ¶
func (pp *ProductPropertyUpdateOne) SetNotNilDataType(value *string) *ProductPropertyUpdateOne
set field if value's pointer is not nil.
func (*ProductPropertyUpdateOne) SetNotNilIdentifier ¶
func (pp *ProductPropertyUpdateOne) SetNotNilIdentifier(value *string) *ProductPropertyUpdateOne
set field if value's pointer is not nil.
func (*ProductPropertyUpdateOne) SetNotNilName ¶
func (pp *ProductPropertyUpdateOne) SetNotNilName(value *string) *ProductPropertyUpdateOne
set field if value's pointer is not nil.
func (*ProductPropertyUpdateOne) SetNotNilProductKey ¶
func (pp *ProductPropertyUpdateOne) SetNotNilProductKey(value *string) *ProductPropertyUpdateOne
set field if value's pointer is not nil.
func (*ProductPropertyUpdateOne) SetNotNilRequired ¶
func (pp *ProductPropertyUpdateOne) SetNotNilRequired(value *bool) *ProductPropertyUpdateOne
set field if value's pointer is not nil.
func (*ProductPropertyUpdateOne) SetNotNilRwFlag ¶
func (pp *ProductPropertyUpdateOne) SetNotNilRwFlag(value *string) *ProductPropertyUpdateOne
set field if value's pointer is not nil.
func (*ProductPropertyUpdateOne) SetNotNilSort ¶
func (pp *ProductPropertyUpdateOne) SetNotNilSort(value *uint32) *ProductPropertyUpdateOne
set field if value's pointer is not nil.
func (*ProductPropertyUpdateOne) SetNotNilStatus ¶
func (pp *ProductPropertyUpdateOne) SetNotNilStatus(value *uint8) *ProductPropertyUpdateOne
set field if value's pointer is not nil.
func (*ProductPropertyUpdateOne) SetNotNilUpdatedAt ¶
func (pp *ProductPropertyUpdateOne) SetNotNilUpdatedAt(value *time.Time) *ProductPropertyUpdateOne
set field if value's pointer is not nil.
func (*ProductPropertyUpdateOne) SetNotNilVersion ¶
func (pp *ProductPropertyUpdateOne) SetNotNilVersion(value *string) *ProductPropertyUpdateOne
set field if value's pointer is not nil.
func (*ProductPropertyUpdateOne) SetProduct ¶
func (ppuo *ProductPropertyUpdateOne) SetProduct(p *Product) *ProductPropertyUpdateOne
SetProduct sets the "product" edge to the Product entity.
func (*ProductPropertyUpdateOne) SetProductID ¶
func (ppuo *ProductPropertyUpdateOne) SetProductID(id uuid.UUID) *ProductPropertyUpdateOne
SetProductID sets the "product" edge to the Product entity by ID.
func (*ProductPropertyUpdateOne) SetProductKey ¶
func (ppuo *ProductPropertyUpdateOne) SetProductKey(s string) *ProductPropertyUpdateOne
SetProductKey sets the "productKey" field.
func (*ProductPropertyUpdateOne) SetRequired ¶
func (ppuo *ProductPropertyUpdateOne) SetRequired(b bool) *ProductPropertyUpdateOne
SetRequired sets the "required" field.
func (*ProductPropertyUpdateOne) SetRwFlag ¶
func (ppuo *ProductPropertyUpdateOne) SetRwFlag(s string) *ProductPropertyUpdateOne
SetRwFlag sets the "rwFlag" field.
func (*ProductPropertyUpdateOne) SetSort ¶
func (ppuo *ProductPropertyUpdateOne) SetSort(u uint32) *ProductPropertyUpdateOne
SetSort sets the "sort" field.
func (*ProductPropertyUpdateOne) SetStatus ¶
func (ppuo *ProductPropertyUpdateOne) SetStatus(u uint8) *ProductPropertyUpdateOne
SetStatus sets the "status" field.
func (*ProductPropertyUpdateOne) SetUpdatedAt ¶
func (ppuo *ProductPropertyUpdateOne) SetUpdatedAt(t time.Time) *ProductPropertyUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*ProductPropertyUpdateOne) SetVersion ¶
func (ppuo *ProductPropertyUpdateOne) SetVersion(s string) *ProductPropertyUpdateOne
SetVersion sets the "version" field.
func (*ProductPropertyUpdateOne) Where ¶
func (ppuo *ProductPropertyUpdateOne) Where(ps ...predicate.ProductProperty) *ProductPropertyUpdateOne
Where appends a list predicates to the ProductPropertyUpdate builder.
type ProductPropertyUpsert ¶
ProductPropertyUpsert is the "OnConflict" setter.
func (*ProductPropertyUpsert) AddCreateTs ¶
func (u *ProductPropertyUpsert) AddCreateTs(v int64) *ProductPropertyUpsert
AddCreateTs adds v to the "createTs" field.
func (*ProductPropertyUpsert) AddSort ¶
func (u *ProductPropertyUpsert) AddSort(v uint32) *ProductPropertyUpsert
AddSort adds v to the "sort" field.
func (*ProductPropertyUpsert) AddStatus ¶
func (u *ProductPropertyUpsert) AddStatus(v uint8) *ProductPropertyUpsert
AddStatus adds v to the "status" field.
func (*ProductPropertyUpsert) ClearCreateTs ¶
func (u *ProductPropertyUpsert) ClearCreateTs() *ProductPropertyUpsert
ClearCreateTs clears the value of the "createTs" field.
func (*ProductPropertyUpsert) ClearDataSpecs ¶
func (u *ProductPropertyUpsert) ClearDataSpecs() *ProductPropertyUpsert
ClearDataSpecs clears the value of the "dataSpecs" field.
func (*ProductPropertyUpsert) ClearDataSpecsList ¶
func (u *ProductPropertyUpsert) ClearDataSpecsList() *ProductPropertyUpsert
ClearDataSpecsList clears the value of the "dataSpecsList" field.
func (*ProductPropertyUpsert) ClearDataType ¶
func (u *ProductPropertyUpsert) ClearDataType() *ProductPropertyUpsert
ClearDataType clears the value of the "dataType" field.
func (*ProductPropertyUpsert) ClearStatus ¶
func (u *ProductPropertyUpsert) ClearStatus() *ProductPropertyUpsert
ClearStatus clears the value of the "status" field.
func (*ProductPropertyUpsert) ClearVersion ¶
func (u *ProductPropertyUpsert) ClearVersion() *ProductPropertyUpsert
ClearVersion clears the value of the "version" field.
func (*ProductPropertyUpsert) SetCreateTs ¶
func (u *ProductPropertyUpsert) SetCreateTs(v int64) *ProductPropertyUpsert
SetCreateTs sets the "createTs" field.
func (*ProductPropertyUpsert) SetCustom ¶
func (u *ProductPropertyUpsert) SetCustom(v bool) *ProductPropertyUpsert
SetCustom sets the "custom" field.
func (*ProductPropertyUpsert) SetDataSpecs ¶
func (u *ProductPropertyUpsert) SetDataSpecs(v string) *ProductPropertyUpsert
SetDataSpecs sets the "dataSpecs" field.
func (*ProductPropertyUpsert) SetDataSpecsList ¶
func (u *ProductPropertyUpsert) SetDataSpecsList(v string) *ProductPropertyUpsert
SetDataSpecsList sets the "dataSpecsList" field.
func (*ProductPropertyUpsert) SetDataType ¶
func (u *ProductPropertyUpsert) SetDataType(v string) *ProductPropertyUpsert
SetDataType sets the "dataType" field.
func (*ProductPropertyUpsert) SetIdentifier ¶
func (u *ProductPropertyUpsert) SetIdentifier(v string) *ProductPropertyUpsert
SetIdentifier sets the "identifier" field.
func (*ProductPropertyUpsert) SetName ¶
func (u *ProductPropertyUpsert) SetName(v string) *ProductPropertyUpsert
SetName sets the "name" field.
func (*ProductPropertyUpsert) SetProductKey ¶
func (u *ProductPropertyUpsert) SetProductKey(v string) *ProductPropertyUpsert
SetProductKey sets the "productKey" field.
func (*ProductPropertyUpsert) SetRequired ¶
func (u *ProductPropertyUpsert) SetRequired(v bool) *ProductPropertyUpsert
SetRequired sets the "required" field.
func (*ProductPropertyUpsert) SetRwFlag ¶
func (u *ProductPropertyUpsert) SetRwFlag(v string) *ProductPropertyUpsert
SetRwFlag sets the "rwFlag" field.
func (*ProductPropertyUpsert) SetSort ¶
func (u *ProductPropertyUpsert) SetSort(v uint32) *ProductPropertyUpsert
SetSort sets the "sort" field.
func (*ProductPropertyUpsert) SetStatus ¶
func (u *ProductPropertyUpsert) SetStatus(v uint8) *ProductPropertyUpsert
SetStatus sets the "status" field.
func (*ProductPropertyUpsert) SetUpdatedAt ¶
func (u *ProductPropertyUpsert) SetUpdatedAt(v time.Time) *ProductPropertyUpsert
SetUpdatedAt sets the "updated_at" field.
func (*ProductPropertyUpsert) SetVersion ¶
func (u *ProductPropertyUpsert) SetVersion(v string) *ProductPropertyUpsert
SetVersion sets the "version" field.
func (*ProductPropertyUpsert) UpdateCreateTs ¶
func (u *ProductPropertyUpsert) UpdateCreateTs() *ProductPropertyUpsert
UpdateCreateTs sets the "createTs" field to the value that was provided on create.
func (*ProductPropertyUpsert) UpdateCustom ¶
func (u *ProductPropertyUpsert) UpdateCustom() *ProductPropertyUpsert
UpdateCustom sets the "custom" field to the value that was provided on create.
func (*ProductPropertyUpsert) UpdateDataSpecs ¶
func (u *ProductPropertyUpsert) UpdateDataSpecs() *ProductPropertyUpsert
UpdateDataSpecs sets the "dataSpecs" field to the value that was provided on create.
func (*ProductPropertyUpsert) UpdateDataSpecsList ¶
func (u *ProductPropertyUpsert) UpdateDataSpecsList() *ProductPropertyUpsert
UpdateDataSpecsList sets the "dataSpecsList" field to the value that was provided on create.
func (*ProductPropertyUpsert) UpdateDataType ¶
func (u *ProductPropertyUpsert) UpdateDataType() *ProductPropertyUpsert
UpdateDataType sets the "dataType" field to the value that was provided on create.
func (*ProductPropertyUpsert) UpdateIdentifier ¶
func (u *ProductPropertyUpsert) UpdateIdentifier() *ProductPropertyUpsert
UpdateIdentifier sets the "identifier" field to the value that was provided on create.
func (*ProductPropertyUpsert) UpdateName ¶
func (u *ProductPropertyUpsert) UpdateName() *ProductPropertyUpsert
UpdateName sets the "name" field to the value that was provided on create.
func (*ProductPropertyUpsert) UpdateProductKey ¶
func (u *ProductPropertyUpsert) UpdateProductKey() *ProductPropertyUpsert
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*ProductPropertyUpsert) UpdateRequired ¶
func (u *ProductPropertyUpsert) UpdateRequired() *ProductPropertyUpsert
UpdateRequired sets the "required" field to the value that was provided on create.
func (*ProductPropertyUpsert) UpdateRwFlag ¶
func (u *ProductPropertyUpsert) UpdateRwFlag() *ProductPropertyUpsert
UpdateRwFlag sets the "rwFlag" field to the value that was provided on create.
func (*ProductPropertyUpsert) UpdateSort ¶
func (u *ProductPropertyUpsert) UpdateSort() *ProductPropertyUpsert
UpdateSort sets the "sort" field to the value that was provided on create.
func (*ProductPropertyUpsert) UpdateStatus ¶
func (u *ProductPropertyUpsert) UpdateStatus() *ProductPropertyUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*ProductPropertyUpsert) UpdateUpdatedAt ¶
func (u *ProductPropertyUpsert) UpdateUpdatedAt() *ProductPropertyUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*ProductPropertyUpsert) UpdateVersion ¶
func (u *ProductPropertyUpsert) UpdateVersion() *ProductPropertyUpsert
UpdateVersion sets the "version" field to the value that was provided on create.
type ProductPropertyUpsertBulk ¶
type ProductPropertyUpsertBulk struct {
// contains filtered or unexported fields
}
ProductPropertyUpsertBulk is the builder for "upsert"-ing a bulk of ProductProperty nodes.
func (*ProductPropertyUpsertBulk) AddCreateTs ¶
func (u *ProductPropertyUpsertBulk) AddCreateTs(v int64) *ProductPropertyUpsertBulk
AddCreateTs adds v to the "createTs" field.
func (*ProductPropertyUpsertBulk) AddSort ¶
func (u *ProductPropertyUpsertBulk) AddSort(v uint32) *ProductPropertyUpsertBulk
AddSort adds v to the "sort" field.
func (*ProductPropertyUpsertBulk) AddStatus ¶
func (u *ProductPropertyUpsertBulk) AddStatus(v uint8) *ProductPropertyUpsertBulk
AddStatus adds v to the "status" field.
func (*ProductPropertyUpsertBulk) ClearCreateTs ¶
func (u *ProductPropertyUpsertBulk) ClearCreateTs() *ProductPropertyUpsertBulk
ClearCreateTs clears the value of the "createTs" field.
func (*ProductPropertyUpsertBulk) ClearDataSpecs ¶
func (u *ProductPropertyUpsertBulk) ClearDataSpecs() *ProductPropertyUpsertBulk
ClearDataSpecs clears the value of the "dataSpecs" field.
func (*ProductPropertyUpsertBulk) ClearDataSpecsList ¶
func (u *ProductPropertyUpsertBulk) ClearDataSpecsList() *ProductPropertyUpsertBulk
ClearDataSpecsList clears the value of the "dataSpecsList" field.
func (*ProductPropertyUpsertBulk) ClearDataType ¶
func (u *ProductPropertyUpsertBulk) ClearDataType() *ProductPropertyUpsertBulk
ClearDataType clears the value of the "dataType" field.
func (*ProductPropertyUpsertBulk) ClearStatus ¶
func (u *ProductPropertyUpsertBulk) ClearStatus() *ProductPropertyUpsertBulk
ClearStatus clears the value of the "status" field.
func (*ProductPropertyUpsertBulk) ClearVersion ¶
func (u *ProductPropertyUpsertBulk) ClearVersion() *ProductPropertyUpsertBulk
ClearVersion clears the value of the "version" field.
func (*ProductPropertyUpsertBulk) DoNothing ¶
func (u *ProductPropertyUpsertBulk) DoNothing() *ProductPropertyUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ProductPropertyUpsertBulk) Exec ¶
func (u *ProductPropertyUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ProductPropertyUpsertBulk) ExecX ¶
func (u *ProductPropertyUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductPropertyUpsertBulk) Ignore ¶
func (u *ProductPropertyUpsertBulk) Ignore() *ProductPropertyUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.ProductProperty.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*ProductPropertyUpsertBulk) SetCreateTs ¶
func (u *ProductPropertyUpsertBulk) SetCreateTs(v int64) *ProductPropertyUpsertBulk
SetCreateTs sets the "createTs" field.
func (*ProductPropertyUpsertBulk) SetCustom ¶
func (u *ProductPropertyUpsertBulk) SetCustom(v bool) *ProductPropertyUpsertBulk
SetCustom sets the "custom" field.
func (*ProductPropertyUpsertBulk) SetDataSpecs ¶
func (u *ProductPropertyUpsertBulk) SetDataSpecs(v string) *ProductPropertyUpsertBulk
SetDataSpecs sets the "dataSpecs" field.
func (*ProductPropertyUpsertBulk) SetDataSpecsList ¶
func (u *ProductPropertyUpsertBulk) SetDataSpecsList(v string) *ProductPropertyUpsertBulk
SetDataSpecsList sets the "dataSpecsList" field.
func (*ProductPropertyUpsertBulk) SetDataType ¶
func (u *ProductPropertyUpsertBulk) SetDataType(v string) *ProductPropertyUpsertBulk
SetDataType sets the "dataType" field.
func (*ProductPropertyUpsertBulk) SetIdentifier ¶
func (u *ProductPropertyUpsertBulk) SetIdentifier(v string) *ProductPropertyUpsertBulk
SetIdentifier sets the "identifier" field.
func (*ProductPropertyUpsertBulk) SetName ¶
func (u *ProductPropertyUpsertBulk) SetName(v string) *ProductPropertyUpsertBulk
SetName sets the "name" field.
func (*ProductPropertyUpsertBulk) SetProductKey ¶
func (u *ProductPropertyUpsertBulk) SetProductKey(v string) *ProductPropertyUpsertBulk
SetProductKey sets the "productKey" field.
func (*ProductPropertyUpsertBulk) SetRequired ¶
func (u *ProductPropertyUpsertBulk) SetRequired(v bool) *ProductPropertyUpsertBulk
SetRequired sets the "required" field.
func (*ProductPropertyUpsertBulk) SetRwFlag ¶
func (u *ProductPropertyUpsertBulk) SetRwFlag(v string) *ProductPropertyUpsertBulk
SetRwFlag sets the "rwFlag" field.
func (*ProductPropertyUpsertBulk) SetSort ¶
func (u *ProductPropertyUpsertBulk) SetSort(v uint32) *ProductPropertyUpsertBulk
SetSort sets the "sort" field.
func (*ProductPropertyUpsertBulk) SetStatus ¶
func (u *ProductPropertyUpsertBulk) SetStatus(v uint8) *ProductPropertyUpsertBulk
SetStatus sets the "status" field.
func (*ProductPropertyUpsertBulk) SetUpdatedAt ¶
func (u *ProductPropertyUpsertBulk) SetUpdatedAt(v time.Time) *ProductPropertyUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*ProductPropertyUpsertBulk) SetVersion ¶
func (u *ProductPropertyUpsertBulk) SetVersion(v string) *ProductPropertyUpsertBulk
SetVersion sets the "version" field.
func (*ProductPropertyUpsertBulk) Update ¶
func (u *ProductPropertyUpsertBulk) Update(set func(*ProductPropertyUpsert)) *ProductPropertyUpsertBulk
Update allows overriding fields `UPDATE` values. See the ProductPropertyCreateBulk.OnConflict documentation for more info.
func (*ProductPropertyUpsertBulk) UpdateCreateTs ¶
func (u *ProductPropertyUpsertBulk) UpdateCreateTs() *ProductPropertyUpsertBulk
UpdateCreateTs sets the "createTs" field to the value that was provided on create.
func (*ProductPropertyUpsertBulk) UpdateCustom ¶
func (u *ProductPropertyUpsertBulk) UpdateCustom() *ProductPropertyUpsertBulk
UpdateCustom sets the "custom" field to the value that was provided on create.
func (*ProductPropertyUpsertBulk) UpdateDataSpecs ¶
func (u *ProductPropertyUpsertBulk) UpdateDataSpecs() *ProductPropertyUpsertBulk
UpdateDataSpecs sets the "dataSpecs" field to the value that was provided on create.
func (*ProductPropertyUpsertBulk) UpdateDataSpecsList ¶
func (u *ProductPropertyUpsertBulk) UpdateDataSpecsList() *ProductPropertyUpsertBulk
UpdateDataSpecsList sets the "dataSpecsList" field to the value that was provided on create.
func (*ProductPropertyUpsertBulk) UpdateDataType ¶
func (u *ProductPropertyUpsertBulk) UpdateDataType() *ProductPropertyUpsertBulk
UpdateDataType sets the "dataType" field to the value that was provided on create.
func (*ProductPropertyUpsertBulk) UpdateIdentifier ¶
func (u *ProductPropertyUpsertBulk) UpdateIdentifier() *ProductPropertyUpsertBulk
UpdateIdentifier sets the "identifier" field to the value that was provided on create.
func (*ProductPropertyUpsertBulk) UpdateName ¶
func (u *ProductPropertyUpsertBulk) UpdateName() *ProductPropertyUpsertBulk
UpdateName sets the "name" field to the value that was provided on create.
func (*ProductPropertyUpsertBulk) UpdateNewValues ¶
func (u *ProductPropertyUpsertBulk) UpdateNewValues() *ProductPropertyUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.ProductProperty.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(productproperty.FieldID) }), ). Exec(ctx)
func (*ProductPropertyUpsertBulk) UpdateProductKey ¶
func (u *ProductPropertyUpsertBulk) UpdateProductKey() *ProductPropertyUpsertBulk
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*ProductPropertyUpsertBulk) UpdateRequired ¶
func (u *ProductPropertyUpsertBulk) UpdateRequired() *ProductPropertyUpsertBulk
UpdateRequired sets the "required" field to the value that was provided on create.
func (*ProductPropertyUpsertBulk) UpdateRwFlag ¶
func (u *ProductPropertyUpsertBulk) UpdateRwFlag() *ProductPropertyUpsertBulk
UpdateRwFlag sets the "rwFlag" field to the value that was provided on create.
func (*ProductPropertyUpsertBulk) UpdateSort ¶
func (u *ProductPropertyUpsertBulk) UpdateSort() *ProductPropertyUpsertBulk
UpdateSort sets the "sort" field to the value that was provided on create.
func (*ProductPropertyUpsertBulk) UpdateStatus ¶
func (u *ProductPropertyUpsertBulk) UpdateStatus() *ProductPropertyUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*ProductPropertyUpsertBulk) UpdateUpdatedAt ¶
func (u *ProductPropertyUpsertBulk) UpdateUpdatedAt() *ProductPropertyUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*ProductPropertyUpsertBulk) UpdateVersion ¶
func (u *ProductPropertyUpsertBulk) UpdateVersion() *ProductPropertyUpsertBulk
UpdateVersion sets the "version" field to the value that was provided on create.
type ProductPropertyUpsertOne ¶
type ProductPropertyUpsertOne struct {
// contains filtered or unexported fields
}
ProductPropertyUpsertOne is the builder for "upsert"-ing
one ProductProperty node.
func (*ProductPropertyUpsertOne) AddCreateTs ¶
func (u *ProductPropertyUpsertOne) AddCreateTs(v int64) *ProductPropertyUpsertOne
AddCreateTs adds v to the "createTs" field.
func (*ProductPropertyUpsertOne) AddSort ¶
func (u *ProductPropertyUpsertOne) AddSort(v uint32) *ProductPropertyUpsertOne
AddSort adds v to the "sort" field.
func (*ProductPropertyUpsertOne) AddStatus ¶
func (u *ProductPropertyUpsertOne) AddStatus(v uint8) *ProductPropertyUpsertOne
AddStatus adds v to the "status" field.
func (*ProductPropertyUpsertOne) ClearCreateTs ¶
func (u *ProductPropertyUpsertOne) ClearCreateTs() *ProductPropertyUpsertOne
ClearCreateTs clears the value of the "createTs" field.
func (*ProductPropertyUpsertOne) ClearDataSpecs ¶
func (u *ProductPropertyUpsertOne) ClearDataSpecs() *ProductPropertyUpsertOne
ClearDataSpecs clears the value of the "dataSpecs" field.
func (*ProductPropertyUpsertOne) ClearDataSpecsList ¶
func (u *ProductPropertyUpsertOne) ClearDataSpecsList() *ProductPropertyUpsertOne
ClearDataSpecsList clears the value of the "dataSpecsList" field.
func (*ProductPropertyUpsertOne) ClearDataType ¶
func (u *ProductPropertyUpsertOne) ClearDataType() *ProductPropertyUpsertOne
ClearDataType clears the value of the "dataType" field.
func (*ProductPropertyUpsertOne) ClearStatus ¶
func (u *ProductPropertyUpsertOne) ClearStatus() *ProductPropertyUpsertOne
ClearStatus clears the value of the "status" field.
func (*ProductPropertyUpsertOne) ClearVersion ¶
func (u *ProductPropertyUpsertOne) ClearVersion() *ProductPropertyUpsertOne
ClearVersion clears the value of the "version" field.
func (*ProductPropertyUpsertOne) DoNothing ¶
func (u *ProductPropertyUpsertOne) DoNothing() *ProductPropertyUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ProductPropertyUpsertOne) Exec ¶
func (u *ProductPropertyUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*ProductPropertyUpsertOne) ExecX ¶
func (u *ProductPropertyUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductPropertyUpsertOne) ID ¶
func (u *ProductPropertyUpsertOne) ID(ctx context.Context) (id uint64, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*ProductPropertyUpsertOne) IDX ¶
func (u *ProductPropertyUpsertOne) IDX(ctx context.Context) uint64
IDX is like ID, but panics if an error occurs.
func (*ProductPropertyUpsertOne) Ignore ¶
func (u *ProductPropertyUpsertOne) Ignore() *ProductPropertyUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.ProductProperty.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*ProductPropertyUpsertOne) SetCreateTs ¶
func (u *ProductPropertyUpsertOne) SetCreateTs(v int64) *ProductPropertyUpsertOne
SetCreateTs sets the "createTs" field.
func (*ProductPropertyUpsertOne) SetCustom ¶
func (u *ProductPropertyUpsertOne) SetCustom(v bool) *ProductPropertyUpsertOne
SetCustom sets the "custom" field.
func (*ProductPropertyUpsertOne) SetDataSpecs ¶
func (u *ProductPropertyUpsertOne) SetDataSpecs(v string) *ProductPropertyUpsertOne
SetDataSpecs sets the "dataSpecs" field.
func (*ProductPropertyUpsertOne) SetDataSpecsList ¶
func (u *ProductPropertyUpsertOne) SetDataSpecsList(v string) *ProductPropertyUpsertOne
SetDataSpecsList sets the "dataSpecsList" field.
func (*ProductPropertyUpsertOne) SetDataType ¶
func (u *ProductPropertyUpsertOne) SetDataType(v string) *ProductPropertyUpsertOne
SetDataType sets the "dataType" field.
func (*ProductPropertyUpsertOne) SetIdentifier ¶
func (u *ProductPropertyUpsertOne) SetIdentifier(v string) *ProductPropertyUpsertOne
SetIdentifier sets the "identifier" field.
func (*ProductPropertyUpsertOne) SetName ¶
func (u *ProductPropertyUpsertOne) SetName(v string) *ProductPropertyUpsertOne
SetName sets the "name" field.
func (*ProductPropertyUpsertOne) SetProductKey ¶
func (u *ProductPropertyUpsertOne) SetProductKey(v string) *ProductPropertyUpsertOne
SetProductKey sets the "productKey" field.
func (*ProductPropertyUpsertOne) SetRequired ¶
func (u *ProductPropertyUpsertOne) SetRequired(v bool) *ProductPropertyUpsertOne
SetRequired sets the "required" field.
func (*ProductPropertyUpsertOne) SetRwFlag ¶
func (u *ProductPropertyUpsertOne) SetRwFlag(v string) *ProductPropertyUpsertOne
SetRwFlag sets the "rwFlag" field.
func (*ProductPropertyUpsertOne) SetSort ¶
func (u *ProductPropertyUpsertOne) SetSort(v uint32) *ProductPropertyUpsertOne
SetSort sets the "sort" field.
func (*ProductPropertyUpsertOne) SetStatus ¶
func (u *ProductPropertyUpsertOne) SetStatus(v uint8) *ProductPropertyUpsertOne
SetStatus sets the "status" field.
func (*ProductPropertyUpsertOne) SetUpdatedAt ¶
func (u *ProductPropertyUpsertOne) SetUpdatedAt(v time.Time) *ProductPropertyUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*ProductPropertyUpsertOne) SetVersion ¶
func (u *ProductPropertyUpsertOne) SetVersion(v string) *ProductPropertyUpsertOne
SetVersion sets the "version" field.
func (*ProductPropertyUpsertOne) Update ¶
func (u *ProductPropertyUpsertOne) Update(set func(*ProductPropertyUpsert)) *ProductPropertyUpsertOne
Update allows overriding fields `UPDATE` values. See the ProductPropertyCreate.OnConflict documentation for more info.
func (*ProductPropertyUpsertOne) UpdateCreateTs ¶
func (u *ProductPropertyUpsertOne) UpdateCreateTs() *ProductPropertyUpsertOne
UpdateCreateTs sets the "createTs" field to the value that was provided on create.
func (*ProductPropertyUpsertOne) UpdateCustom ¶
func (u *ProductPropertyUpsertOne) UpdateCustom() *ProductPropertyUpsertOne
UpdateCustom sets the "custom" field to the value that was provided on create.
func (*ProductPropertyUpsertOne) UpdateDataSpecs ¶
func (u *ProductPropertyUpsertOne) UpdateDataSpecs() *ProductPropertyUpsertOne
UpdateDataSpecs sets the "dataSpecs" field to the value that was provided on create.
func (*ProductPropertyUpsertOne) UpdateDataSpecsList ¶
func (u *ProductPropertyUpsertOne) UpdateDataSpecsList() *ProductPropertyUpsertOne
UpdateDataSpecsList sets the "dataSpecsList" field to the value that was provided on create.
func (*ProductPropertyUpsertOne) UpdateDataType ¶
func (u *ProductPropertyUpsertOne) UpdateDataType() *ProductPropertyUpsertOne
UpdateDataType sets the "dataType" field to the value that was provided on create.
func (*ProductPropertyUpsertOne) UpdateIdentifier ¶
func (u *ProductPropertyUpsertOne) UpdateIdentifier() *ProductPropertyUpsertOne
UpdateIdentifier sets the "identifier" field to the value that was provided on create.
func (*ProductPropertyUpsertOne) UpdateName ¶
func (u *ProductPropertyUpsertOne) UpdateName() *ProductPropertyUpsertOne
UpdateName sets the "name" field to the value that was provided on create.
func (*ProductPropertyUpsertOne) UpdateNewValues ¶
func (u *ProductPropertyUpsertOne) UpdateNewValues() *ProductPropertyUpsertOne
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.ProductProperty.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(productproperty.FieldID) }), ). Exec(ctx)
func (*ProductPropertyUpsertOne) UpdateProductKey ¶
func (u *ProductPropertyUpsertOne) UpdateProductKey() *ProductPropertyUpsertOne
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*ProductPropertyUpsertOne) UpdateRequired ¶
func (u *ProductPropertyUpsertOne) UpdateRequired() *ProductPropertyUpsertOne
UpdateRequired sets the "required" field to the value that was provided on create.
func (*ProductPropertyUpsertOne) UpdateRwFlag ¶
func (u *ProductPropertyUpsertOne) UpdateRwFlag() *ProductPropertyUpsertOne
UpdateRwFlag sets the "rwFlag" field to the value that was provided on create.
func (*ProductPropertyUpsertOne) UpdateSort ¶
func (u *ProductPropertyUpsertOne) UpdateSort() *ProductPropertyUpsertOne
UpdateSort sets the "sort" field to the value that was provided on create.
func (*ProductPropertyUpsertOne) UpdateStatus ¶
func (u *ProductPropertyUpsertOne) UpdateStatus() *ProductPropertyUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*ProductPropertyUpsertOne) UpdateUpdatedAt ¶
func (u *ProductPropertyUpsertOne) UpdateUpdatedAt() *ProductPropertyUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*ProductPropertyUpsertOne) UpdateVersion ¶
func (u *ProductPropertyUpsertOne) UpdateVersion() *ProductPropertyUpsertOne
UpdateVersion sets the "version" field to the value that was provided on create.
type ProductQuery ¶
type ProductQuery struct {
// contains filtered or unexported fields
}
ProductQuery is the builder for querying Product entities.
func (*ProductQuery) Aggregate ¶
func (pq *ProductQuery) Aggregate(fns ...AggregateFunc) *ProductSelect
Aggregate returns a ProductSelect configured with the given aggregations.
func (*ProductQuery) All ¶
func (pq *ProductQuery) All(ctx context.Context) ([]*Product, error)
All executes the query and returns a list of Products.
func (*ProductQuery) AllX ¶
func (pq *ProductQuery) AllX(ctx context.Context) []*Product
AllX is like All, but panics if an error occurs.
func (*ProductQuery) Clone ¶
func (pq *ProductQuery) Clone() *ProductQuery
Clone returns a duplicate of the ProductQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*ProductQuery) Count ¶
func (pq *ProductQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*ProductQuery) CountX ¶
func (pq *ProductQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*ProductQuery) ExecContext ¶
func (c *ProductQuery) 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 (*ProductQuery) Exist ¶
func (pq *ProductQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*ProductQuery) ExistX ¶
func (pq *ProductQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*ProductQuery) First ¶
func (pq *ProductQuery) First(ctx context.Context) (*Product, error)
First returns the first Product entity from the query. Returns a *NotFoundError when no Product was found.
func (*ProductQuery) FirstID ¶
FirstID returns the first Product ID from the query. Returns a *NotFoundError when no Product ID was found.
func (*ProductQuery) FirstIDX ¶
func (pq *ProductQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*ProductQuery) FirstX ¶
func (pq *ProductQuery) FirstX(ctx context.Context) *Product
FirstX is like First, but panics if an error occurs.
func (*ProductQuery) GroupBy ¶
func (pq *ProductQuery) GroupBy(field string, fields ...string) *ProductGroupBy
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.Product.Query(). GroupBy(product.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*ProductQuery) IDsX ¶
func (pq *ProductQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*ProductQuery) Limit ¶
func (pq *ProductQuery) Limit(limit int) *ProductQuery
Limit the number of records to be returned by this query.
func (*ProductQuery) Modify ¶
func (pq *ProductQuery) Modify(modifiers ...func(s *sql.Selector)) *ProductSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*ProductQuery) Offset ¶
func (pq *ProductQuery) Offset(offset int) *ProductQuery
Offset to start from.
func (*ProductQuery) Only ¶
func (pq *ProductQuery) Only(ctx context.Context) (*Product, error)
Only returns a single Product entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Product entity is found. Returns a *NotFoundError when no Product entities are found.
func (*ProductQuery) OnlyID ¶
OnlyID is like Only, but returns the only Product ID in the query. Returns a *NotSingularError when more than one Product ID is found. Returns a *NotFoundError when no entities are found.
func (*ProductQuery) OnlyIDX ¶
func (pq *ProductQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*ProductQuery) OnlyX ¶
func (pq *ProductQuery) OnlyX(ctx context.Context) *Product
OnlyX is like Only, but panics if an error occurs.
func (*ProductQuery) Order ¶
func (pq *ProductQuery) Order(o ...product.OrderOption) *ProductQuery
Order specifies how the records should be ordered.
func (*ProductQuery) Page ¶
func (pr *ProductQuery) Page( ctx context.Context, pageNum uint64, pageSize uint64, opts ...ProductPaginateOption, ) (*ProductPageList, error)
func (*ProductQuery) QueryContext ¶
func (c *ProductQuery) 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 (*ProductQuery) QueryDevices ¶
func (pq *ProductQuery) QueryDevices() *DeviceQuery
QueryDevices chains the current query on the "devices" edge.
func (*ProductQuery) QueryEvents ¶
func (pq *ProductQuery) QueryEvents() *ProductEventQuery
QueryEvents chains the current query on the "events" edge.
func (*ProductQuery) QueryProperties ¶
func (pq *ProductQuery) QueryProperties() *ProductPropertyQuery
QueryProperties chains the current query on the "properties" edge.
func (*ProductQuery) QueryServices ¶
func (pq *ProductQuery) QueryServices() *ProductServiceQuery
QueryServices chains the current query on the "services" edge.
func (*ProductQuery) QueryTags ¶
func (pq *ProductQuery) QueryTags() *ProductTagQuery
QueryTags chains the current query on the "tags" edge.
func (*ProductQuery) Select ¶
func (pq *ProductQuery) Select(fields ...string) *ProductSelect
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.Product.Query(). Select(product.FieldCreatedAt). Scan(ctx, &v)
func (*ProductQuery) Unique ¶
func (pq *ProductQuery) Unique(unique bool) *ProductQuery
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 (*ProductQuery) Where ¶
func (pq *ProductQuery) Where(ps ...predicate.Product) *ProductQuery
Where adds a new predicate for the ProductQuery builder.
func (*ProductQuery) WithDevices ¶
func (pq *ProductQuery) WithDevices(opts ...func(*DeviceQuery)) *ProductQuery
WithDevices tells the query-builder to eager-load the nodes that are connected to the "devices" edge. The optional arguments are used to configure the query builder of the edge.
func (*ProductQuery) WithEvents ¶
func (pq *ProductQuery) WithEvents(opts ...func(*ProductEventQuery)) *ProductQuery
WithEvents tells the query-builder to eager-load the nodes that are connected to the "events" edge. The optional arguments are used to configure the query builder of the edge.
func (*ProductQuery) WithProperties ¶
func (pq *ProductQuery) WithProperties(opts ...func(*ProductPropertyQuery)) *ProductQuery
WithProperties tells the query-builder to eager-load the nodes that are connected to the "properties" edge. The optional arguments are used to configure the query builder of the edge.
func (*ProductQuery) WithServices ¶
func (pq *ProductQuery) WithServices(opts ...func(*ProductServiceQuery)) *ProductQuery
WithServices tells the query-builder to eager-load the nodes that are connected to the "services" edge. The optional arguments are used to configure the query builder of the edge.
func (*ProductQuery) WithTags ¶
func (pq *ProductQuery) WithTags(opts ...func(*ProductTagQuery)) *ProductQuery
WithTags tells the query-builder to eager-load the nodes that are connected to the "tags" edge. The optional arguments are used to configure the query builder of the edge.
type ProductSelect ¶
type ProductSelect struct { *ProductQuery // contains filtered or unexported fields }
ProductSelect is the builder for selecting fields of Product entities.
func (*ProductSelect) Aggregate ¶
func (ps *ProductSelect) Aggregate(fns ...AggregateFunc) *ProductSelect
Aggregate adds the given aggregation functions to the selector query.
func (*ProductSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ProductSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (ProductSelect) ExecContext ¶
func (c ProductSelect) 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 (*ProductSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ProductSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ProductSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ProductSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ProductSelect) Modify ¶
func (ps *ProductSelect) Modify(modifiers ...func(s *sql.Selector)) *ProductSelect
Modify adds a query modifier for attaching custom logic to queries.
func (ProductSelect) QueryContext ¶
func (c ProductSelect) 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 (*ProductSelect) Scan ¶
func (ps *ProductSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ProductSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type ProductService ¶
type ProductService 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"` // Product Key | 产品Key ProductKey string `json:"productKey,omitempty"` // CreateTs | 功能创建的时间戳 CreateTs int64 `json:"createTs,omitempty"` // Version | 物模型版本号 Version string `json:"version,omitempty"` // Identifier | 服务的标识符 Identifier string `json:"identifier,omitempty"` // ServiceName | 服务名称 ServiceName string `json:"serviceName,omitempty"` // InputParams | 服务的输入参数 InputParams string `json:"inputParams,omitempty"` // OutputParams | 服务的输出参数 OutputParams string `json:"outputParams,omitempty"` // Required | 是否是标准品类的必选事件 Required bool `json:"required,omitempty"` // CallType | 服务的调用方式 CallType string `json:"callType,omitempty"` // Custom | 是否是自定义功能 Custom bool `json:"custom,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the ProductServiceQuery when eager-loading is set. Edges ProductServiceEdges `json:"edges"` // contains filtered or unexported fields }
ProductService is the model entity for the ProductService schema.
func (*ProductService) ExecContext ¶
func (c *ProductService) 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 (*ProductService) QueryContext ¶
func (c *ProductService) 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 (*ProductService) QueryProduct ¶
func (ps *ProductService) QueryProduct() *ProductQuery
QueryProduct queries the "product" edge of the ProductService entity.
func (*ProductService) String ¶
func (ps *ProductService) String() string
String implements the fmt.Stringer.
func (*ProductService) Unwrap ¶
func (ps *ProductService) Unwrap() *ProductService
Unwrap unwraps the ProductService 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 (*ProductService) Update ¶
func (ps *ProductService) Update() *ProductServiceUpdateOne
Update returns a builder for updating this ProductService. Note that you need to call ProductService.Unwrap() before calling this method if this ProductService was returned from a transaction, and the transaction was committed or rolled back.
type ProductServiceClient ¶
type ProductServiceClient struct {
// contains filtered or unexported fields
}
ProductServiceClient is a client for the ProductService schema.
func NewProductServiceClient ¶
func NewProductServiceClient(c config) *ProductServiceClient
NewProductServiceClient returns a client for the ProductService from the given config.
func (*ProductServiceClient) Create ¶
func (c *ProductServiceClient) Create() *ProductServiceCreate
Create returns a builder for creating a ProductService entity.
func (*ProductServiceClient) CreateBulk ¶
func (c *ProductServiceClient) CreateBulk(builders ...*ProductServiceCreate) *ProductServiceCreateBulk
CreateBulk returns a builder for creating a bulk of ProductService entities.
func (*ProductServiceClient) Delete ¶
func (c *ProductServiceClient) Delete() *ProductServiceDelete
Delete returns a delete builder for ProductService.
func (*ProductServiceClient) DeleteOne ¶
func (c *ProductServiceClient) DeleteOne(ps *ProductService) *ProductServiceDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*ProductServiceClient) DeleteOneID ¶
func (c *ProductServiceClient) DeleteOneID(id uint64) *ProductServiceDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*ProductServiceClient) ExecContext ¶
func (c *ProductServiceClient) 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 (*ProductServiceClient) Get ¶
func (c *ProductServiceClient) Get(ctx context.Context, id uint64) (*ProductService, error)
Get returns a ProductService entity by its id.
func (*ProductServiceClient) GetX ¶
func (c *ProductServiceClient) GetX(ctx context.Context, id uint64) *ProductService
GetX is like Get, but panics if an error occurs.
func (*ProductServiceClient) Hooks ¶
func (c *ProductServiceClient) Hooks() []Hook
Hooks returns the client hooks.
func (*ProductServiceClient) Intercept ¶
func (c *ProductServiceClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `productservice.Intercept(f(g(h())))`.
func (*ProductServiceClient) Interceptors ¶
func (c *ProductServiceClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*ProductServiceClient) MapCreateBulk ¶
func (c *ProductServiceClient) MapCreateBulk(slice any, setFunc func(*ProductServiceCreate, int)) *ProductServiceCreateBulk
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 (*ProductServiceClient) Query ¶
func (c *ProductServiceClient) Query() *ProductServiceQuery
Query returns a query builder for ProductService.
func (*ProductServiceClient) QueryContext ¶
func (c *ProductServiceClient) 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 (*ProductServiceClient) QueryProduct ¶
func (c *ProductServiceClient) QueryProduct(ps *ProductService) *ProductQuery
QueryProduct queries the product edge of a ProductService.
func (*ProductServiceClient) Update ¶
func (c *ProductServiceClient) Update() *ProductServiceUpdate
Update returns an update builder for ProductService.
func (*ProductServiceClient) UpdateOne ¶
func (c *ProductServiceClient) UpdateOne(ps *ProductService) *ProductServiceUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ProductServiceClient) UpdateOneID ¶
func (c *ProductServiceClient) UpdateOneID(id uint64) *ProductServiceUpdateOne
UpdateOneID returns an update builder for the given id.
func (*ProductServiceClient) Use ¶
func (c *ProductServiceClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `productservice.Hooks(f(g(h())))`.
type ProductServiceCreate ¶
type ProductServiceCreate struct {
// contains filtered or unexported fields
}
ProductServiceCreate is the builder for creating a ProductService entity.
func (*ProductServiceCreate) Exec ¶
func (psc *ProductServiceCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*ProductServiceCreate) ExecContext ¶
func (c *ProductServiceCreate) 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 (*ProductServiceCreate) ExecX ¶
func (psc *ProductServiceCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductServiceCreate) Mutation ¶
func (psc *ProductServiceCreate) Mutation() *ProductServiceMutation
Mutation returns the ProductServiceMutation object of the builder.
func (*ProductServiceCreate) OnConflict ¶
func (psc *ProductServiceCreate) OnConflict(opts ...sql.ConflictOption) *ProductServiceUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.ProductService.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.ProductServiceUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*ProductServiceCreate) OnConflictColumns ¶
func (psc *ProductServiceCreate) OnConflictColumns(columns ...string) *ProductServiceUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.ProductService.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*ProductServiceCreate) QueryContext ¶
func (c *ProductServiceCreate) 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 (*ProductServiceCreate) Save ¶
func (psc *ProductServiceCreate) Save(ctx context.Context) (*ProductService, error)
Save creates the ProductService in the database.
func (*ProductServiceCreate) SaveX ¶
func (psc *ProductServiceCreate) SaveX(ctx context.Context) *ProductService
SaveX calls Save and panics if Save returns an error.
func (*ProductServiceCreate) SetCallType ¶
func (psc *ProductServiceCreate) SetCallType(s string) *ProductServiceCreate
SetCallType sets the "callType" field.
func (*ProductServiceCreate) SetCreateTs ¶
func (psc *ProductServiceCreate) SetCreateTs(i int64) *ProductServiceCreate
SetCreateTs sets the "createTs" field.
func (*ProductServiceCreate) SetCreatedAt ¶
func (psc *ProductServiceCreate) SetCreatedAt(t time.Time) *ProductServiceCreate
SetCreatedAt sets the "created_at" field.
func (*ProductServiceCreate) SetCustom ¶
func (psc *ProductServiceCreate) SetCustom(b bool) *ProductServiceCreate
SetCustom sets the "custom" field.
func (*ProductServiceCreate) SetID ¶
func (psc *ProductServiceCreate) SetID(u uint64) *ProductServiceCreate
SetID sets the "id" field.
func (*ProductServiceCreate) SetIdentifier ¶
func (psc *ProductServiceCreate) SetIdentifier(s string) *ProductServiceCreate
SetIdentifier sets the "identifier" field.
func (*ProductServiceCreate) SetInputParams ¶
func (psc *ProductServiceCreate) SetInputParams(s string) *ProductServiceCreate
SetInputParams sets the "inputParams" field.
func (*ProductServiceCreate) SetNillableCallType ¶
func (psc *ProductServiceCreate) SetNillableCallType(s *string) *ProductServiceCreate
SetNillableCallType sets the "callType" field if the given value is not nil.
func (*ProductServiceCreate) SetNillableCreateTs ¶
func (psc *ProductServiceCreate) SetNillableCreateTs(i *int64) *ProductServiceCreate
SetNillableCreateTs sets the "createTs" field if the given value is not nil.
func (*ProductServiceCreate) SetNillableCreatedAt ¶
func (psc *ProductServiceCreate) SetNillableCreatedAt(t *time.Time) *ProductServiceCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*ProductServiceCreate) SetNillableCustom ¶
func (psc *ProductServiceCreate) SetNillableCustom(b *bool) *ProductServiceCreate
SetNillableCustom sets the "custom" field if the given value is not nil.
func (*ProductServiceCreate) SetNillableInputParams ¶
func (psc *ProductServiceCreate) SetNillableInputParams(s *string) *ProductServiceCreate
SetNillableInputParams sets the "inputParams" field if the given value is not nil.
func (*ProductServiceCreate) SetNillableOutputParams ¶
func (psc *ProductServiceCreate) SetNillableOutputParams(s *string) *ProductServiceCreate
SetNillableOutputParams sets the "outputParams" field if the given value is not nil.
func (*ProductServiceCreate) SetNillableProductID ¶
func (psc *ProductServiceCreate) SetNillableProductID(id *uuid.UUID) *ProductServiceCreate
SetNillableProductID sets the "product" edge to the Product entity by ID if the given value is not nil.
func (*ProductServiceCreate) SetNillableRequired ¶
func (psc *ProductServiceCreate) SetNillableRequired(b *bool) *ProductServiceCreate
SetNillableRequired sets the "required" field if the given value is not nil.
func (*ProductServiceCreate) SetNillableSort ¶
func (psc *ProductServiceCreate) SetNillableSort(u *uint32) *ProductServiceCreate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*ProductServiceCreate) SetNillableStatus ¶
func (psc *ProductServiceCreate) SetNillableStatus(u *uint8) *ProductServiceCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*ProductServiceCreate) SetNillableUpdatedAt ¶
func (psc *ProductServiceCreate) SetNillableUpdatedAt(t *time.Time) *ProductServiceCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*ProductServiceCreate) SetNillableVersion ¶
func (psc *ProductServiceCreate) SetNillableVersion(s *string) *ProductServiceCreate
SetNillableVersion sets the "version" field if the given value is not nil.
func (*ProductServiceCreate) SetNotNilCallType ¶
func (ps *ProductServiceCreate) SetNotNilCallType(value *string) *ProductServiceCreate
set field if value's pointer is not nil.
func (*ProductServiceCreate) SetNotNilCreateTs ¶
func (ps *ProductServiceCreate) SetNotNilCreateTs(value *int64) *ProductServiceCreate
set field if value's pointer is not nil.
func (*ProductServiceCreate) SetNotNilCustom ¶
func (ps *ProductServiceCreate) SetNotNilCustom(value *bool) *ProductServiceCreate
set field if value's pointer is not nil.
func (*ProductServiceCreate) SetNotNilIdentifier ¶
func (ps *ProductServiceCreate) SetNotNilIdentifier(value *string) *ProductServiceCreate
set field if value's pointer is not nil.
func (*ProductServiceCreate) SetNotNilInputParams ¶
func (ps *ProductServiceCreate) SetNotNilInputParams(value *string) *ProductServiceCreate
set field if value's pointer is not nil.
func (*ProductServiceCreate) SetNotNilOutputParams ¶
func (ps *ProductServiceCreate) SetNotNilOutputParams(value *string) *ProductServiceCreate
set field if value's pointer is not nil.
func (*ProductServiceCreate) SetNotNilProductKey ¶
func (ps *ProductServiceCreate) SetNotNilProductKey(value *string) *ProductServiceCreate
set field if value's pointer is not nil.
func (*ProductServiceCreate) SetNotNilRequired ¶
func (ps *ProductServiceCreate) SetNotNilRequired(value *bool) *ProductServiceCreate
set field if value's pointer is not nil.
func (*ProductServiceCreate) SetNotNilServiceName ¶
func (ps *ProductServiceCreate) SetNotNilServiceName(value *string) *ProductServiceCreate
set field if value's pointer is not nil.
func (*ProductServiceCreate) SetNotNilSort ¶
func (ps *ProductServiceCreate) SetNotNilSort(value *uint32) *ProductServiceCreate
set field if value's pointer is not nil.
func (*ProductServiceCreate) SetNotNilStatus ¶
func (ps *ProductServiceCreate) SetNotNilStatus(value *uint8) *ProductServiceCreate
set field if value's pointer is not nil.
func (*ProductServiceCreate) SetNotNilUpdatedAt ¶
func (ps *ProductServiceCreate) SetNotNilUpdatedAt(value *time.Time) *ProductServiceCreate
set field if value's pointer is not nil.
func (*ProductServiceCreate) SetNotNilVersion ¶
func (ps *ProductServiceCreate) SetNotNilVersion(value *string) *ProductServiceCreate
set field if value's pointer is not nil.
func (*ProductServiceCreate) SetOutputParams ¶
func (psc *ProductServiceCreate) SetOutputParams(s string) *ProductServiceCreate
SetOutputParams sets the "outputParams" field.
func (*ProductServiceCreate) SetProduct ¶
func (psc *ProductServiceCreate) SetProduct(p *Product) *ProductServiceCreate
SetProduct sets the "product" edge to the Product entity.
func (*ProductServiceCreate) SetProductID ¶
func (psc *ProductServiceCreate) SetProductID(id uuid.UUID) *ProductServiceCreate
SetProductID sets the "product" edge to the Product entity by ID.
func (*ProductServiceCreate) SetProductKey ¶
func (psc *ProductServiceCreate) SetProductKey(s string) *ProductServiceCreate
SetProductKey sets the "productKey" field.
func (*ProductServiceCreate) SetRequired ¶
func (psc *ProductServiceCreate) SetRequired(b bool) *ProductServiceCreate
SetRequired sets the "required" field.
func (*ProductServiceCreate) SetServiceName ¶
func (psc *ProductServiceCreate) SetServiceName(s string) *ProductServiceCreate
SetServiceName sets the "serviceName" field.
func (*ProductServiceCreate) SetSort ¶
func (psc *ProductServiceCreate) SetSort(u uint32) *ProductServiceCreate
SetSort sets the "sort" field.
func (*ProductServiceCreate) SetStatus ¶
func (psc *ProductServiceCreate) SetStatus(u uint8) *ProductServiceCreate
SetStatus sets the "status" field.
func (*ProductServiceCreate) SetUpdatedAt ¶
func (psc *ProductServiceCreate) SetUpdatedAt(t time.Time) *ProductServiceCreate
SetUpdatedAt sets the "updated_at" field.
func (*ProductServiceCreate) SetVersion ¶
func (psc *ProductServiceCreate) SetVersion(s string) *ProductServiceCreate
SetVersion sets the "version" field.
type ProductServiceCreateBulk ¶
type ProductServiceCreateBulk struct {
// contains filtered or unexported fields
}
ProductServiceCreateBulk is the builder for creating many ProductService entities in bulk.
func (*ProductServiceCreateBulk) Exec ¶
func (pscb *ProductServiceCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ProductServiceCreateBulk) ExecContext ¶
func (c *ProductServiceCreateBulk) 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 (*ProductServiceCreateBulk) ExecX ¶
func (pscb *ProductServiceCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductServiceCreateBulk) OnConflict ¶
func (pscb *ProductServiceCreateBulk) OnConflict(opts ...sql.ConflictOption) *ProductServiceUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.ProductService.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.ProductServiceUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*ProductServiceCreateBulk) OnConflictColumns ¶
func (pscb *ProductServiceCreateBulk) OnConflictColumns(columns ...string) *ProductServiceUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.ProductService.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*ProductServiceCreateBulk) QueryContext ¶
func (c *ProductServiceCreateBulk) 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 (*ProductServiceCreateBulk) Save ¶
func (pscb *ProductServiceCreateBulk) Save(ctx context.Context) ([]*ProductService, error)
Save creates the ProductService entities in the database.
func (*ProductServiceCreateBulk) SaveX ¶
func (pscb *ProductServiceCreateBulk) SaveX(ctx context.Context) []*ProductService
SaveX is like Save, but panics if an error occurs.
type ProductServiceDelete ¶
type ProductServiceDelete struct {
// contains filtered or unexported fields
}
ProductServiceDelete is the builder for deleting a ProductService entity.
func (*ProductServiceDelete) Exec ¶
func (psd *ProductServiceDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*ProductServiceDelete) ExecContext ¶
func (c *ProductServiceDelete) 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 (*ProductServiceDelete) ExecX ¶
func (psd *ProductServiceDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*ProductServiceDelete) QueryContext ¶
func (c *ProductServiceDelete) 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 (*ProductServiceDelete) Where ¶
func (psd *ProductServiceDelete) Where(ps ...predicate.ProductService) *ProductServiceDelete
Where appends a list predicates to the ProductServiceDelete builder.
type ProductServiceDeleteOne ¶
type ProductServiceDeleteOne struct {
// contains filtered or unexported fields
}
ProductServiceDeleteOne is the builder for deleting a single ProductService entity.
func (*ProductServiceDeleteOne) Exec ¶
func (psdo *ProductServiceDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*ProductServiceDeleteOne) ExecX ¶
func (psdo *ProductServiceDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductServiceDeleteOne) Where ¶
func (psdo *ProductServiceDeleteOne) Where(ps ...predicate.ProductService) *ProductServiceDeleteOne
Where appends a list predicates to the ProductServiceDelete builder.
type ProductServiceEdges ¶
type ProductServiceEdges struct { // Product holds the value of the product edge. Product *Product `json:"product,omitempty"` // contains filtered or unexported fields }
ProductServiceEdges holds the relations/edges for other nodes in the graph.
func (ProductServiceEdges) ProductOrErr ¶
func (e ProductServiceEdges) ProductOrErr() (*Product, error)
ProductOrErr returns the Product value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type ProductServiceGroupBy ¶
type ProductServiceGroupBy struct {
// contains filtered or unexported fields
}
ProductServiceGroupBy is the group-by builder for ProductService entities.
func (*ProductServiceGroupBy) Aggregate ¶
func (psgb *ProductServiceGroupBy) Aggregate(fns ...AggregateFunc) *ProductServiceGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ProductServiceGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ProductServiceGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ProductServiceGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ProductServiceGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ProductServiceGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*ProductServiceGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ProductServiceGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ProductServiceGroupBy) Scan ¶
func (psgb *ProductServiceGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ProductServiceGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type ProductServiceMutation ¶
type ProductServiceMutation struct {
// contains filtered or unexported fields
}
ProductServiceMutation represents an operation that mutates the ProductService nodes in the graph.
func (*ProductServiceMutation) AddCreateTs ¶
func (m *ProductServiceMutation) AddCreateTs(i int64)
AddCreateTs adds i to the "createTs" field.
func (*ProductServiceMutation) AddField ¶
func (m *ProductServiceMutation) 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 (*ProductServiceMutation) AddSort ¶
func (m *ProductServiceMutation) AddSort(u int32)
AddSort adds u to the "sort" field.
func (*ProductServiceMutation) AddStatus ¶
func (m *ProductServiceMutation) AddStatus(u int8)
AddStatus adds u to the "status" field.
func (*ProductServiceMutation) AddedCreateTs ¶
func (m *ProductServiceMutation) AddedCreateTs() (r int64, exists bool)
AddedCreateTs returns the value that was added to the "createTs" field in this mutation.
func (*ProductServiceMutation) AddedEdges ¶
func (m *ProductServiceMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*ProductServiceMutation) AddedField ¶
func (m *ProductServiceMutation) 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 (*ProductServiceMutation) AddedFields ¶
func (m *ProductServiceMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*ProductServiceMutation) AddedIDs ¶
func (m *ProductServiceMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*ProductServiceMutation) AddedSort ¶
func (m *ProductServiceMutation) AddedSort() (r int32, exists bool)
AddedSort returns the value that was added to the "sort" field in this mutation.
func (*ProductServiceMutation) AddedStatus ¶
func (m *ProductServiceMutation) AddedStatus() (r int8, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*ProductServiceMutation) CallType ¶
func (m *ProductServiceMutation) CallType() (r string, exists bool)
CallType returns the value of the "callType" field in the mutation.
func (*ProductServiceMutation) ClearCreateTs ¶
func (m *ProductServiceMutation) ClearCreateTs()
ClearCreateTs clears the value of the "createTs" field.
func (*ProductServiceMutation) ClearEdge ¶
func (m *ProductServiceMutation) 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 (*ProductServiceMutation) ClearField ¶
func (m *ProductServiceMutation) 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 (*ProductServiceMutation) ClearInputParams ¶
func (m *ProductServiceMutation) ClearInputParams()
ClearInputParams clears the value of the "inputParams" field.
func (*ProductServiceMutation) ClearOutputParams ¶
func (m *ProductServiceMutation) ClearOutputParams()
ClearOutputParams clears the value of the "outputParams" field.
func (*ProductServiceMutation) ClearProduct ¶
func (m *ProductServiceMutation) ClearProduct()
ClearProduct clears the "product" edge to the Product entity.
func (*ProductServiceMutation) ClearStatus ¶
func (m *ProductServiceMutation) ClearStatus()
ClearStatus clears the value of the "status" field.
func (*ProductServiceMutation) ClearVersion ¶
func (m *ProductServiceMutation) ClearVersion()
ClearVersion clears the value of the "version" field.
func (*ProductServiceMutation) ClearedEdges ¶
func (m *ProductServiceMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*ProductServiceMutation) ClearedFields ¶
func (m *ProductServiceMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (ProductServiceMutation) Client ¶
func (m ProductServiceMutation) 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 (*ProductServiceMutation) CreateTs ¶
func (m *ProductServiceMutation) CreateTs() (r int64, exists bool)
CreateTs returns the value of the "createTs" field in the mutation.
func (*ProductServiceMutation) CreateTsCleared ¶
func (m *ProductServiceMutation) CreateTsCleared() bool
CreateTsCleared returns if the "createTs" field was cleared in this mutation.
func (*ProductServiceMutation) CreatedAt ¶
func (m *ProductServiceMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*ProductServiceMutation) Custom ¶
func (m *ProductServiceMutation) Custom() (r bool, exists bool)
Custom returns the value of the "custom" field in the mutation.
func (*ProductServiceMutation) EdgeCleared ¶
func (m *ProductServiceMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*ProductServiceMutation) ExecContext ¶
func (c *ProductServiceMutation) 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 (*ProductServiceMutation) Field ¶
func (m *ProductServiceMutation) 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 (*ProductServiceMutation) FieldCleared ¶
func (m *ProductServiceMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*ProductServiceMutation) Fields ¶
func (m *ProductServiceMutation) 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 (*ProductServiceMutation) ID ¶
func (m *ProductServiceMutation) 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 (*ProductServiceMutation) IDs ¶
func (m *ProductServiceMutation) 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 (*ProductServiceMutation) Identifier ¶
func (m *ProductServiceMutation) Identifier() (r string, exists bool)
Identifier returns the value of the "identifier" field in the mutation.
func (*ProductServiceMutation) InputParams ¶
func (m *ProductServiceMutation) InputParams() (r string, exists bool)
InputParams returns the value of the "inputParams" field in the mutation.
func (*ProductServiceMutation) InputParamsCleared ¶
func (m *ProductServiceMutation) InputParamsCleared() bool
InputParamsCleared returns if the "inputParams" field was cleared in this mutation.
func (*ProductServiceMutation) OldCallType ¶
func (m *ProductServiceMutation) OldCallType(ctx context.Context) (v string, err error)
OldCallType returns the old "callType" field's value of the ProductService entity. If the ProductService object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductServiceMutation) OldCreateTs ¶
func (m *ProductServiceMutation) OldCreateTs(ctx context.Context) (v int64, err error)
OldCreateTs returns the old "createTs" field's value of the ProductService entity. If the ProductService object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductServiceMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the ProductService entity. If the ProductService object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductServiceMutation) OldCustom ¶
func (m *ProductServiceMutation) OldCustom(ctx context.Context) (v bool, err error)
OldCustom returns the old "custom" field's value of the ProductService entity. If the ProductService object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductServiceMutation) 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 (*ProductServiceMutation) OldIdentifier ¶
func (m *ProductServiceMutation) OldIdentifier(ctx context.Context) (v string, err error)
OldIdentifier returns the old "identifier" field's value of the ProductService entity. If the ProductService object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductServiceMutation) OldInputParams ¶
func (m *ProductServiceMutation) OldInputParams(ctx context.Context) (v string, err error)
OldInputParams returns the old "inputParams" field's value of the ProductService entity. If the ProductService object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductServiceMutation) OldOutputParams ¶
func (m *ProductServiceMutation) OldOutputParams(ctx context.Context) (v string, err error)
OldOutputParams returns the old "outputParams" field's value of the ProductService entity. If the ProductService object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductServiceMutation) OldProductKey ¶
func (m *ProductServiceMutation) OldProductKey(ctx context.Context) (v string, err error)
OldProductKey returns the old "productKey" field's value of the ProductService entity. If the ProductService object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductServiceMutation) OldRequired ¶
func (m *ProductServiceMutation) OldRequired(ctx context.Context) (v bool, err error)
OldRequired returns the old "required" field's value of the ProductService entity. If the ProductService object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductServiceMutation) OldServiceName ¶
func (m *ProductServiceMutation) OldServiceName(ctx context.Context) (v string, err error)
OldServiceName returns the old "serviceName" field's value of the ProductService entity. If the ProductService object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductServiceMutation) OldSort ¶
func (m *ProductServiceMutation) OldSort(ctx context.Context) (v uint32, err error)
OldSort returns the old "sort" field's value of the ProductService entity. If the ProductService object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductServiceMutation) OldStatus ¶
func (m *ProductServiceMutation) OldStatus(ctx context.Context) (v uint8, err error)
OldStatus returns the old "status" field's value of the ProductService entity. If the ProductService object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductServiceMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the ProductService entity. If the ProductService object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductServiceMutation) OldVersion ¶
func (m *ProductServiceMutation) OldVersion(ctx context.Context) (v string, err error)
OldVersion returns the old "version" field's value of the ProductService entity. If the ProductService object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductServiceMutation) Op ¶
func (m *ProductServiceMutation) Op() Op
Op returns the operation name.
func (*ProductServiceMutation) OutputParams ¶
func (m *ProductServiceMutation) OutputParams() (r string, exists bool)
OutputParams returns the value of the "outputParams" field in the mutation.
func (*ProductServiceMutation) OutputParamsCleared ¶
func (m *ProductServiceMutation) OutputParamsCleared() bool
OutputParamsCleared returns if the "outputParams" field was cleared in this mutation.
func (*ProductServiceMutation) ProductCleared ¶
func (m *ProductServiceMutation) ProductCleared() bool
ProductCleared reports if the "product" edge to the Product entity was cleared.
func (*ProductServiceMutation) ProductID ¶
func (m *ProductServiceMutation) ProductID() (id uuid.UUID, exists bool)
ProductID returns the "product" edge ID in the mutation.
func (*ProductServiceMutation) ProductIDs ¶
func (m *ProductServiceMutation) ProductIDs() (ids []uuid.UUID)
ProductIDs returns the "product" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ProductID instead. It exists only for internal usage by the builders.
func (*ProductServiceMutation) ProductKey ¶
func (m *ProductServiceMutation) ProductKey() (r string, exists bool)
ProductKey returns the value of the "productKey" field in the mutation.
func (*ProductServiceMutation) QueryContext ¶
func (c *ProductServiceMutation) 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 (*ProductServiceMutation) RemovedEdges ¶
func (m *ProductServiceMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*ProductServiceMutation) RemovedIDs ¶
func (m *ProductServiceMutation) 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 (*ProductServiceMutation) Required ¶
func (m *ProductServiceMutation) Required() (r bool, exists bool)
Required returns the value of the "required" field in the mutation.
func (*ProductServiceMutation) ResetCallType ¶
func (m *ProductServiceMutation) ResetCallType()
ResetCallType resets all changes to the "callType" field.
func (*ProductServiceMutation) ResetCreateTs ¶
func (m *ProductServiceMutation) ResetCreateTs()
ResetCreateTs resets all changes to the "createTs" field.
func (*ProductServiceMutation) ResetCreatedAt ¶
func (m *ProductServiceMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*ProductServiceMutation) ResetCustom ¶
func (m *ProductServiceMutation) ResetCustom()
ResetCustom resets all changes to the "custom" field.
func (*ProductServiceMutation) ResetEdge ¶
func (m *ProductServiceMutation) 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 (*ProductServiceMutation) ResetField ¶
func (m *ProductServiceMutation) 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 (*ProductServiceMutation) ResetIdentifier ¶
func (m *ProductServiceMutation) ResetIdentifier()
ResetIdentifier resets all changes to the "identifier" field.
func (*ProductServiceMutation) ResetInputParams ¶
func (m *ProductServiceMutation) ResetInputParams()
ResetInputParams resets all changes to the "inputParams" field.
func (*ProductServiceMutation) ResetOutputParams ¶
func (m *ProductServiceMutation) ResetOutputParams()
ResetOutputParams resets all changes to the "outputParams" field.
func (*ProductServiceMutation) ResetProduct ¶
func (m *ProductServiceMutation) ResetProduct()
ResetProduct resets all changes to the "product" edge.
func (*ProductServiceMutation) ResetProductKey ¶
func (m *ProductServiceMutation) ResetProductKey()
ResetProductKey resets all changes to the "productKey" field.
func (*ProductServiceMutation) ResetRequired ¶
func (m *ProductServiceMutation) ResetRequired()
ResetRequired resets all changes to the "required" field.
func (*ProductServiceMutation) ResetServiceName ¶
func (m *ProductServiceMutation) ResetServiceName()
ResetServiceName resets all changes to the "serviceName" field.
func (*ProductServiceMutation) ResetSort ¶
func (m *ProductServiceMutation) ResetSort()
ResetSort resets all changes to the "sort" field.
func (*ProductServiceMutation) ResetStatus ¶
func (m *ProductServiceMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*ProductServiceMutation) ResetUpdatedAt ¶
func (m *ProductServiceMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*ProductServiceMutation) ResetVersion ¶
func (m *ProductServiceMutation) ResetVersion()
ResetVersion resets all changes to the "version" field.
func (*ProductServiceMutation) ServiceName ¶
func (m *ProductServiceMutation) ServiceName() (r string, exists bool)
ServiceName returns the value of the "serviceName" field in the mutation.
func (*ProductServiceMutation) SetCallType ¶
func (m *ProductServiceMutation) SetCallType(s string)
SetCallType sets the "callType" field.
func (*ProductServiceMutation) SetCreateTs ¶
func (m *ProductServiceMutation) SetCreateTs(i int64)
SetCreateTs sets the "createTs" field.
func (*ProductServiceMutation) SetCreatedAt ¶
func (m *ProductServiceMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*ProductServiceMutation) SetCustom ¶
func (m *ProductServiceMutation) SetCustom(b bool)
SetCustom sets the "custom" field.
func (*ProductServiceMutation) SetField ¶
func (m *ProductServiceMutation) 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 (*ProductServiceMutation) SetID ¶
func (m *ProductServiceMutation) SetID(id uint64)
SetID sets the value of the id field. Note that this operation is only accepted on creation of ProductService entities.
func (*ProductServiceMutation) SetIdentifier ¶
func (m *ProductServiceMutation) SetIdentifier(s string)
SetIdentifier sets the "identifier" field.
func (*ProductServiceMutation) SetInputParams ¶
func (m *ProductServiceMutation) SetInputParams(s string)
SetInputParams sets the "inputParams" field.
func (*ProductServiceMutation) SetOp ¶
func (m *ProductServiceMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*ProductServiceMutation) SetOutputParams ¶
func (m *ProductServiceMutation) SetOutputParams(s string)
SetOutputParams sets the "outputParams" field.
func (*ProductServiceMutation) SetProductID ¶
func (m *ProductServiceMutation) SetProductID(id uuid.UUID)
SetProductID sets the "product" edge to the Product entity by id.
func (*ProductServiceMutation) SetProductKey ¶
func (m *ProductServiceMutation) SetProductKey(s string)
SetProductKey sets the "productKey" field.
func (*ProductServiceMutation) SetRequired ¶
func (m *ProductServiceMutation) SetRequired(b bool)
SetRequired sets the "required" field.
func (*ProductServiceMutation) SetServiceName ¶
func (m *ProductServiceMutation) SetServiceName(s string)
SetServiceName sets the "serviceName" field.
func (*ProductServiceMutation) SetSort ¶
func (m *ProductServiceMutation) SetSort(u uint32)
SetSort sets the "sort" field.
func (*ProductServiceMutation) SetStatus ¶
func (m *ProductServiceMutation) SetStatus(u uint8)
SetStatus sets the "status" field.
func (*ProductServiceMutation) SetUpdatedAt ¶
func (m *ProductServiceMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*ProductServiceMutation) SetVersion ¶
func (m *ProductServiceMutation) SetVersion(s string)
SetVersion sets the "version" field.
func (*ProductServiceMutation) Sort ¶
func (m *ProductServiceMutation) Sort() (r uint32, exists bool)
Sort returns the value of the "sort" field in the mutation.
func (*ProductServiceMutation) Status ¶
func (m *ProductServiceMutation) Status() (r uint8, exists bool)
Status returns the value of the "status" field in the mutation.
func (*ProductServiceMutation) StatusCleared ¶
func (m *ProductServiceMutation) StatusCleared() bool
StatusCleared returns if the "status" field was cleared in this mutation.
func (ProductServiceMutation) Tx ¶
func (m ProductServiceMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*ProductServiceMutation) Type ¶
func (m *ProductServiceMutation) Type() string
Type returns the node type of this mutation (ProductService).
func (*ProductServiceMutation) UpdatedAt ¶
func (m *ProductServiceMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*ProductServiceMutation) Version ¶
func (m *ProductServiceMutation) Version() (r string, exists bool)
Version returns the value of the "version" field in the mutation.
func (*ProductServiceMutation) VersionCleared ¶
func (m *ProductServiceMutation) VersionCleared() bool
VersionCleared returns if the "version" field was cleared in this mutation.
func (*ProductServiceMutation) Where ¶
func (m *ProductServiceMutation) Where(ps ...predicate.ProductService)
Where appends a list predicates to the ProductServiceMutation builder.
func (*ProductServiceMutation) WhereP ¶
func (m *ProductServiceMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the ProductServiceMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type ProductServicePageList ¶
type ProductServicePageList struct { List []*ProductService `json:"list"` PageDetails *PageDetails `json:"pageDetails"` }
ProductServicePageList is ProductService PageList result.
type ProductServicePager ¶
type ProductServicePager struct { Order productservice.OrderOption Filter func(*ProductServiceQuery) (*ProductServiceQuery, error) }
func (*ProductServicePager) ApplyFilter ¶
func (p *ProductServicePager) ApplyFilter(query *ProductServiceQuery) (*ProductServiceQuery, error)
type ProductServicePaginateOption ¶
type ProductServicePaginateOption func(*ProductServicePager)
ProductServicePaginateOption enables pagination customization.
type ProductServiceQuery ¶
type ProductServiceQuery struct {
// contains filtered or unexported fields
}
ProductServiceQuery is the builder for querying ProductService entities.
func (*ProductServiceQuery) Aggregate ¶
func (psq *ProductServiceQuery) Aggregate(fns ...AggregateFunc) *ProductServiceSelect
Aggregate returns a ProductServiceSelect configured with the given aggregations.
func (*ProductServiceQuery) All ¶
func (psq *ProductServiceQuery) All(ctx context.Context) ([]*ProductService, error)
All executes the query and returns a list of ProductServices.
func (*ProductServiceQuery) AllX ¶
func (psq *ProductServiceQuery) AllX(ctx context.Context) []*ProductService
AllX is like All, but panics if an error occurs.
func (*ProductServiceQuery) Clone ¶
func (psq *ProductServiceQuery) Clone() *ProductServiceQuery
Clone returns a duplicate of the ProductServiceQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*ProductServiceQuery) Count ¶
func (psq *ProductServiceQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*ProductServiceQuery) CountX ¶
func (psq *ProductServiceQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*ProductServiceQuery) ExecContext ¶
func (c *ProductServiceQuery) 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 (*ProductServiceQuery) Exist ¶
func (psq *ProductServiceQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*ProductServiceQuery) ExistX ¶
func (psq *ProductServiceQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*ProductServiceQuery) First ¶
func (psq *ProductServiceQuery) First(ctx context.Context) (*ProductService, error)
First returns the first ProductService entity from the query. Returns a *NotFoundError when no ProductService was found.
func (*ProductServiceQuery) FirstID ¶
func (psq *ProductServiceQuery) FirstID(ctx context.Context) (id uint64, err error)
FirstID returns the first ProductService ID from the query. Returns a *NotFoundError when no ProductService ID was found.
func (*ProductServiceQuery) FirstIDX ¶
func (psq *ProductServiceQuery) FirstIDX(ctx context.Context) uint64
FirstIDX is like FirstID, but panics if an error occurs.
func (*ProductServiceQuery) FirstX ¶
func (psq *ProductServiceQuery) FirstX(ctx context.Context) *ProductService
FirstX is like First, but panics if an error occurs.
func (*ProductServiceQuery) GroupBy ¶
func (psq *ProductServiceQuery) GroupBy(field string, fields ...string) *ProductServiceGroupBy
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.ProductService.Query(). GroupBy(productservice.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*ProductServiceQuery) IDs ¶
func (psq *ProductServiceQuery) IDs(ctx context.Context) (ids []uint64, err error)
IDs executes the query and returns a list of ProductService IDs.
func (*ProductServiceQuery) IDsX ¶
func (psq *ProductServiceQuery) IDsX(ctx context.Context) []uint64
IDsX is like IDs, but panics if an error occurs.
func (*ProductServiceQuery) Limit ¶
func (psq *ProductServiceQuery) Limit(limit int) *ProductServiceQuery
Limit the number of records to be returned by this query.
func (*ProductServiceQuery) Modify ¶
func (psq *ProductServiceQuery) Modify(modifiers ...func(s *sql.Selector)) *ProductServiceSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*ProductServiceQuery) Offset ¶
func (psq *ProductServiceQuery) Offset(offset int) *ProductServiceQuery
Offset to start from.
func (*ProductServiceQuery) Only ¶
func (psq *ProductServiceQuery) Only(ctx context.Context) (*ProductService, error)
Only returns a single ProductService entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one ProductService entity is found. Returns a *NotFoundError when no ProductService entities are found.
func (*ProductServiceQuery) OnlyID ¶
func (psq *ProductServiceQuery) OnlyID(ctx context.Context) (id uint64, err error)
OnlyID is like Only, but returns the only ProductService ID in the query. Returns a *NotSingularError when more than one ProductService ID is found. Returns a *NotFoundError when no entities are found.
func (*ProductServiceQuery) OnlyIDX ¶
func (psq *ProductServiceQuery) OnlyIDX(ctx context.Context) uint64
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*ProductServiceQuery) OnlyX ¶
func (psq *ProductServiceQuery) OnlyX(ctx context.Context) *ProductService
OnlyX is like Only, but panics if an error occurs.
func (*ProductServiceQuery) Order ¶
func (psq *ProductServiceQuery) Order(o ...productservice.OrderOption) *ProductServiceQuery
Order specifies how the records should be ordered.
func (*ProductServiceQuery) Page ¶
func (ps *ProductServiceQuery) Page( ctx context.Context, pageNum uint64, pageSize uint64, opts ...ProductServicePaginateOption, ) (*ProductServicePageList, error)
func (*ProductServiceQuery) QueryContext ¶
func (c *ProductServiceQuery) 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 (*ProductServiceQuery) QueryProduct ¶
func (psq *ProductServiceQuery) QueryProduct() *ProductQuery
QueryProduct chains the current query on the "product" edge.
func (*ProductServiceQuery) Select ¶
func (psq *ProductServiceQuery) Select(fields ...string) *ProductServiceSelect
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.ProductService.Query(). Select(productservice.FieldCreatedAt). Scan(ctx, &v)
func (*ProductServiceQuery) Unique ¶
func (psq *ProductServiceQuery) Unique(unique bool) *ProductServiceQuery
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 (*ProductServiceQuery) Where ¶
func (psq *ProductServiceQuery) Where(ps ...predicate.ProductService) *ProductServiceQuery
Where adds a new predicate for the ProductServiceQuery builder.
func (*ProductServiceQuery) WithProduct ¶
func (psq *ProductServiceQuery) WithProduct(opts ...func(*ProductQuery)) *ProductServiceQuery
WithProduct tells the query-builder to eager-load the nodes that are connected to the "product" edge. The optional arguments are used to configure the query builder of the edge.
type ProductServiceSelect ¶
type ProductServiceSelect struct { *ProductServiceQuery // contains filtered or unexported fields }
ProductServiceSelect is the builder for selecting fields of ProductService entities.
func (*ProductServiceSelect) Aggregate ¶
func (pss *ProductServiceSelect) Aggregate(fns ...AggregateFunc) *ProductServiceSelect
Aggregate adds the given aggregation functions to the selector query.
func (*ProductServiceSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ProductServiceSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (ProductServiceSelect) ExecContext ¶
func (c ProductServiceSelect) 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 (*ProductServiceSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ProductServiceSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ProductServiceSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ProductServiceSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ProductServiceSelect) Modify ¶
func (pss *ProductServiceSelect) Modify(modifiers ...func(s *sql.Selector)) *ProductServiceSelect
Modify adds a query modifier for attaching custom logic to queries.
func (ProductServiceSelect) QueryContext ¶
func (c ProductServiceSelect) 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 (*ProductServiceSelect) Scan ¶
func (pss *ProductServiceSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ProductServiceSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type ProductServiceUpdate ¶
type ProductServiceUpdate struct {
// contains filtered or unexported fields
}
ProductServiceUpdate is the builder for updating ProductService entities.
func (*ProductServiceUpdate) AddCreateTs ¶
func (psu *ProductServiceUpdate) AddCreateTs(i int64) *ProductServiceUpdate
AddCreateTs adds i to the "createTs" field.
func (*ProductServiceUpdate) AddSort ¶
func (psu *ProductServiceUpdate) AddSort(u int32) *ProductServiceUpdate
AddSort adds u to the "sort" field.
func (*ProductServiceUpdate) AddStatus ¶
func (psu *ProductServiceUpdate) AddStatus(u int8) *ProductServiceUpdate
AddStatus adds u to the "status" field.
func (*ProductServiceUpdate) ClearCreateTs ¶
func (psu *ProductServiceUpdate) ClearCreateTs() *ProductServiceUpdate
ClearCreateTs clears the value of the "createTs" field.
func (*ProductServiceUpdate) ClearInputParams ¶
func (psu *ProductServiceUpdate) ClearInputParams() *ProductServiceUpdate
ClearInputParams clears the value of the "inputParams" field.
func (*ProductServiceUpdate) ClearOutputParams ¶
func (psu *ProductServiceUpdate) ClearOutputParams() *ProductServiceUpdate
ClearOutputParams clears the value of the "outputParams" field.
func (*ProductServiceUpdate) ClearProduct ¶
func (psu *ProductServiceUpdate) ClearProduct() *ProductServiceUpdate
ClearProduct clears the "product" edge to the Product entity.
func (*ProductServiceUpdate) ClearStatus ¶
func (psu *ProductServiceUpdate) ClearStatus() *ProductServiceUpdate
ClearStatus clears the value of the "status" field.
func (*ProductServiceUpdate) ClearVersion ¶
func (psu *ProductServiceUpdate) ClearVersion() *ProductServiceUpdate
ClearVersion clears the value of the "version" field.
func (*ProductServiceUpdate) Exec ¶
func (psu *ProductServiceUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*ProductServiceUpdate) ExecContext ¶
func (c *ProductServiceUpdate) 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 (*ProductServiceUpdate) ExecX ¶
func (psu *ProductServiceUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductServiceUpdate) Modify ¶
func (psu *ProductServiceUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ProductServiceUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*ProductServiceUpdate) Mutation ¶
func (psu *ProductServiceUpdate) Mutation() *ProductServiceMutation
Mutation returns the ProductServiceMutation object of the builder.
func (*ProductServiceUpdate) QueryContext ¶
func (c *ProductServiceUpdate) 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 (*ProductServiceUpdate) Save ¶
func (psu *ProductServiceUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*ProductServiceUpdate) SaveX ¶
func (psu *ProductServiceUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*ProductServiceUpdate) SetCallType ¶
func (psu *ProductServiceUpdate) SetCallType(s string) *ProductServiceUpdate
SetCallType sets the "callType" field.
func (*ProductServiceUpdate) SetCreateTs ¶
func (psu *ProductServiceUpdate) SetCreateTs(i int64) *ProductServiceUpdate
SetCreateTs sets the "createTs" field.
func (*ProductServiceUpdate) SetCustom ¶
func (psu *ProductServiceUpdate) SetCustom(b bool) *ProductServiceUpdate
SetCustom sets the "custom" field.
func (*ProductServiceUpdate) SetIdentifier ¶
func (psu *ProductServiceUpdate) SetIdentifier(s string) *ProductServiceUpdate
SetIdentifier sets the "identifier" field.
func (*ProductServiceUpdate) SetInputParams ¶
func (psu *ProductServiceUpdate) SetInputParams(s string) *ProductServiceUpdate
SetInputParams sets the "inputParams" field.
func (*ProductServiceUpdate) SetNillableCallType ¶
func (psu *ProductServiceUpdate) SetNillableCallType(s *string) *ProductServiceUpdate
SetNillableCallType sets the "callType" field if the given value is not nil.
func (*ProductServiceUpdate) SetNillableCreateTs ¶
func (psu *ProductServiceUpdate) SetNillableCreateTs(i *int64) *ProductServiceUpdate
SetNillableCreateTs sets the "createTs" field if the given value is not nil.
func (*ProductServiceUpdate) SetNillableCustom ¶
func (psu *ProductServiceUpdate) SetNillableCustom(b *bool) *ProductServiceUpdate
SetNillableCustom sets the "custom" field if the given value is not nil.
func (*ProductServiceUpdate) SetNillableIdentifier ¶
func (psu *ProductServiceUpdate) SetNillableIdentifier(s *string) *ProductServiceUpdate
SetNillableIdentifier sets the "identifier" field if the given value is not nil.
func (*ProductServiceUpdate) SetNillableInputParams ¶
func (psu *ProductServiceUpdate) SetNillableInputParams(s *string) *ProductServiceUpdate
SetNillableInputParams sets the "inputParams" field if the given value is not nil.
func (*ProductServiceUpdate) SetNillableOutputParams ¶
func (psu *ProductServiceUpdate) SetNillableOutputParams(s *string) *ProductServiceUpdate
SetNillableOutputParams sets the "outputParams" field if the given value is not nil.
func (*ProductServiceUpdate) SetNillableProductID ¶
func (psu *ProductServiceUpdate) SetNillableProductID(id *uuid.UUID) *ProductServiceUpdate
SetNillableProductID sets the "product" edge to the Product entity by ID if the given value is not nil.
func (*ProductServiceUpdate) SetNillableProductKey ¶
func (psu *ProductServiceUpdate) SetNillableProductKey(s *string) *ProductServiceUpdate
SetNillableProductKey sets the "productKey" field if the given value is not nil.
func (*ProductServiceUpdate) SetNillableRequired ¶
func (psu *ProductServiceUpdate) SetNillableRequired(b *bool) *ProductServiceUpdate
SetNillableRequired sets the "required" field if the given value is not nil.
func (*ProductServiceUpdate) SetNillableServiceName ¶
func (psu *ProductServiceUpdate) SetNillableServiceName(s *string) *ProductServiceUpdate
SetNillableServiceName sets the "serviceName" field if the given value is not nil.
func (*ProductServiceUpdate) SetNillableSort ¶
func (psu *ProductServiceUpdate) SetNillableSort(u *uint32) *ProductServiceUpdate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*ProductServiceUpdate) SetNillableStatus ¶
func (psu *ProductServiceUpdate) SetNillableStatus(u *uint8) *ProductServiceUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*ProductServiceUpdate) SetNillableVersion ¶
func (psu *ProductServiceUpdate) SetNillableVersion(s *string) *ProductServiceUpdate
SetNillableVersion sets the "version" field if the given value is not nil.
func (*ProductServiceUpdate) SetNotNilCallType ¶
func (ps *ProductServiceUpdate) SetNotNilCallType(value *string) *ProductServiceUpdate
set field if value's pointer is not nil.
func (*ProductServiceUpdate) SetNotNilCreateTs ¶
func (ps *ProductServiceUpdate) SetNotNilCreateTs(value *int64) *ProductServiceUpdate
set field if value's pointer is not nil.
func (*ProductServiceUpdate) SetNotNilCustom ¶
func (ps *ProductServiceUpdate) SetNotNilCustom(value *bool) *ProductServiceUpdate
set field if value's pointer is not nil.
func (*ProductServiceUpdate) SetNotNilIdentifier ¶
func (ps *ProductServiceUpdate) SetNotNilIdentifier(value *string) *ProductServiceUpdate
set field if value's pointer is not nil.
func (*ProductServiceUpdate) SetNotNilInputParams ¶
func (ps *ProductServiceUpdate) SetNotNilInputParams(value *string) *ProductServiceUpdate
set field if value's pointer is not nil.
func (*ProductServiceUpdate) SetNotNilOutputParams ¶
func (ps *ProductServiceUpdate) SetNotNilOutputParams(value *string) *ProductServiceUpdate
set field if value's pointer is not nil.
func (*ProductServiceUpdate) SetNotNilProductKey ¶
func (ps *ProductServiceUpdate) SetNotNilProductKey(value *string) *ProductServiceUpdate
set field if value's pointer is not nil.
func (*ProductServiceUpdate) SetNotNilRequired ¶
func (ps *ProductServiceUpdate) SetNotNilRequired(value *bool) *ProductServiceUpdate
set field if value's pointer is not nil.
func (*ProductServiceUpdate) SetNotNilServiceName ¶
func (ps *ProductServiceUpdate) SetNotNilServiceName(value *string) *ProductServiceUpdate
set field if value's pointer is not nil.
func (*ProductServiceUpdate) SetNotNilSort ¶
func (ps *ProductServiceUpdate) SetNotNilSort(value *uint32) *ProductServiceUpdate
set field if value's pointer is not nil.
func (*ProductServiceUpdate) SetNotNilStatus ¶
func (ps *ProductServiceUpdate) SetNotNilStatus(value *uint8) *ProductServiceUpdate
set field if value's pointer is not nil.
func (*ProductServiceUpdate) SetNotNilUpdatedAt ¶
func (ps *ProductServiceUpdate) SetNotNilUpdatedAt(value *time.Time) *ProductServiceUpdate
set field if value's pointer is not nil.
func (*ProductServiceUpdate) SetNotNilVersion ¶
func (ps *ProductServiceUpdate) SetNotNilVersion(value *string) *ProductServiceUpdate
set field if value's pointer is not nil.
func (*ProductServiceUpdate) SetOutputParams ¶
func (psu *ProductServiceUpdate) SetOutputParams(s string) *ProductServiceUpdate
SetOutputParams sets the "outputParams" field.
func (*ProductServiceUpdate) SetProduct ¶
func (psu *ProductServiceUpdate) SetProduct(p *Product) *ProductServiceUpdate
SetProduct sets the "product" edge to the Product entity.
func (*ProductServiceUpdate) SetProductID ¶
func (psu *ProductServiceUpdate) SetProductID(id uuid.UUID) *ProductServiceUpdate
SetProductID sets the "product" edge to the Product entity by ID.
func (*ProductServiceUpdate) SetProductKey ¶
func (psu *ProductServiceUpdate) SetProductKey(s string) *ProductServiceUpdate
SetProductKey sets the "productKey" field.
func (*ProductServiceUpdate) SetRequired ¶
func (psu *ProductServiceUpdate) SetRequired(b bool) *ProductServiceUpdate
SetRequired sets the "required" field.
func (*ProductServiceUpdate) SetServiceName ¶
func (psu *ProductServiceUpdate) SetServiceName(s string) *ProductServiceUpdate
SetServiceName sets the "serviceName" field.
func (*ProductServiceUpdate) SetSort ¶
func (psu *ProductServiceUpdate) SetSort(u uint32) *ProductServiceUpdate
SetSort sets the "sort" field.
func (*ProductServiceUpdate) SetStatus ¶
func (psu *ProductServiceUpdate) SetStatus(u uint8) *ProductServiceUpdate
SetStatus sets the "status" field.
func (*ProductServiceUpdate) SetUpdatedAt ¶
func (psu *ProductServiceUpdate) SetUpdatedAt(t time.Time) *ProductServiceUpdate
SetUpdatedAt sets the "updated_at" field.
func (*ProductServiceUpdate) SetVersion ¶
func (psu *ProductServiceUpdate) SetVersion(s string) *ProductServiceUpdate
SetVersion sets the "version" field.
func (*ProductServiceUpdate) Where ¶
func (psu *ProductServiceUpdate) Where(ps ...predicate.ProductService) *ProductServiceUpdate
Where appends a list predicates to the ProductServiceUpdate builder.
type ProductServiceUpdateOne ¶
type ProductServiceUpdateOne struct {
// contains filtered or unexported fields
}
ProductServiceUpdateOne is the builder for updating a single ProductService entity.
func (*ProductServiceUpdateOne) AddCreateTs ¶
func (psuo *ProductServiceUpdateOne) AddCreateTs(i int64) *ProductServiceUpdateOne
AddCreateTs adds i to the "createTs" field.
func (*ProductServiceUpdateOne) AddSort ¶
func (psuo *ProductServiceUpdateOne) AddSort(u int32) *ProductServiceUpdateOne
AddSort adds u to the "sort" field.
func (*ProductServiceUpdateOne) AddStatus ¶
func (psuo *ProductServiceUpdateOne) AddStatus(u int8) *ProductServiceUpdateOne
AddStatus adds u to the "status" field.
func (*ProductServiceUpdateOne) ClearCreateTs ¶
func (psuo *ProductServiceUpdateOne) ClearCreateTs() *ProductServiceUpdateOne
ClearCreateTs clears the value of the "createTs" field.
func (*ProductServiceUpdateOne) ClearInputParams ¶
func (psuo *ProductServiceUpdateOne) ClearInputParams() *ProductServiceUpdateOne
ClearInputParams clears the value of the "inputParams" field.
func (*ProductServiceUpdateOne) ClearOutputParams ¶
func (psuo *ProductServiceUpdateOne) ClearOutputParams() *ProductServiceUpdateOne
ClearOutputParams clears the value of the "outputParams" field.
func (*ProductServiceUpdateOne) ClearProduct ¶
func (psuo *ProductServiceUpdateOne) ClearProduct() *ProductServiceUpdateOne
ClearProduct clears the "product" edge to the Product entity.
func (*ProductServiceUpdateOne) ClearStatus ¶
func (psuo *ProductServiceUpdateOne) ClearStatus() *ProductServiceUpdateOne
ClearStatus clears the value of the "status" field.
func (*ProductServiceUpdateOne) ClearVersion ¶
func (psuo *ProductServiceUpdateOne) ClearVersion() *ProductServiceUpdateOne
ClearVersion clears the value of the "version" field.
func (*ProductServiceUpdateOne) Exec ¶
func (psuo *ProductServiceUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*ProductServiceUpdateOne) ExecContext ¶
func (c *ProductServiceUpdateOne) 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 (*ProductServiceUpdateOne) ExecX ¶
func (psuo *ProductServiceUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductServiceUpdateOne) Modify ¶
func (psuo *ProductServiceUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ProductServiceUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*ProductServiceUpdateOne) Mutation ¶
func (psuo *ProductServiceUpdateOne) Mutation() *ProductServiceMutation
Mutation returns the ProductServiceMutation object of the builder.
func (*ProductServiceUpdateOne) QueryContext ¶
func (c *ProductServiceUpdateOne) 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 (*ProductServiceUpdateOne) Save ¶
func (psuo *ProductServiceUpdateOne) Save(ctx context.Context) (*ProductService, error)
Save executes the query and returns the updated ProductService entity.
func (*ProductServiceUpdateOne) SaveX ¶
func (psuo *ProductServiceUpdateOne) SaveX(ctx context.Context) *ProductService
SaveX is like Save, but panics if an error occurs.
func (*ProductServiceUpdateOne) Select ¶
func (psuo *ProductServiceUpdateOne) Select(field string, fields ...string) *ProductServiceUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*ProductServiceUpdateOne) SetCallType ¶
func (psuo *ProductServiceUpdateOne) SetCallType(s string) *ProductServiceUpdateOne
SetCallType sets the "callType" field.
func (*ProductServiceUpdateOne) SetCreateTs ¶
func (psuo *ProductServiceUpdateOne) SetCreateTs(i int64) *ProductServiceUpdateOne
SetCreateTs sets the "createTs" field.
func (*ProductServiceUpdateOne) SetCustom ¶
func (psuo *ProductServiceUpdateOne) SetCustom(b bool) *ProductServiceUpdateOne
SetCustom sets the "custom" field.
func (*ProductServiceUpdateOne) SetIdentifier ¶
func (psuo *ProductServiceUpdateOne) SetIdentifier(s string) *ProductServiceUpdateOne
SetIdentifier sets the "identifier" field.
func (*ProductServiceUpdateOne) SetInputParams ¶
func (psuo *ProductServiceUpdateOne) SetInputParams(s string) *ProductServiceUpdateOne
SetInputParams sets the "inputParams" field.
func (*ProductServiceUpdateOne) SetNillableCallType ¶
func (psuo *ProductServiceUpdateOne) SetNillableCallType(s *string) *ProductServiceUpdateOne
SetNillableCallType sets the "callType" field if the given value is not nil.
func (*ProductServiceUpdateOne) SetNillableCreateTs ¶
func (psuo *ProductServiceUpdateOne) SetNillableCreateTs(i *int64) *ProductServiceUpdateOne
SetNillableCreateTs sets the "createTs" field if the given value is not nil.
func (*ProductServiceUpdateOne) SetNillableCustom ¶
func (psuo *ProductServiceUpdateOne) SetNillableCustom(b *bool) *ProductServiceUpdateOne
SetNillableCustom sets the "custom" field if the given value is not nil.
func (*ProductServiceUpdateOne) SetNillableIdentifier ¶
func (psuo *ProductServiceUpdateOne) SetNillableIdentifier(s *string) *ProductServiceUpdateOne
SetNillableIdentifier sets the "identifier" field if the given value is not nil.
func (*ProductServiceUpdateOne) SetNillableInputParams ¶
func (psuo *ProductServiceUpdateOne) SetNillableInputParams(s *string) *ProductServiceUpdateOne
SetNillableInputParams sets the "inputParams" field if the given value is not nil.
func (*ProductServiceUpdateOne) SetNillableOutputParams ¶
func (psuo *ProductServiceUpdateOne) SetNillableOutputParams(s *string) *ProductServiceUpdateOne
SetNillableOutputParams sets the "outputParams" field if the given value is not nil.
func (*ProductServiceUpdateOne) SetNillableProductID ¶
func (psuo *ProductServiceUpdateOne) SetNillableProductID(id *uuid.UUID) *ProductServiceUpdateOne
SetNillableProductID sets the "product" edge to the Product entity by ID if the given value is not nil.
func (*ProductServiceUpdateOne) SetNillableProductKey ¶
func (psuo *ProductServiceUpdateOne) SetNillableProductKey(s *string) *ProductServiceUpdateOne
SetNillableProductKey sets the "productKey" field if the given value is not nil.
func (*ProductServiceUpdateOne) SetNillableRequired ¶
func (psuo *ProductServiceUpdateOne) SetNillableRequired(b *bool) *ProductServiceUpdateOne
SetNillableRequired sets the "required" field if the given value is not nil.
func (*ProductServiceUpdateOne) SetNillableServiceName ¶
func (psuo *ProductServiceUpdateOne) SetNillableServiceName(s *string) *ProductServiceUpdateOne
SetNillableServiceName sets the "serviceName" field if the given value is not nil.
func (*ProductServiceUpdateOne) SetNillableSort ¶
func (psuo *ProductServiceUpdateOne) SetNillableSort(u *uint32) *ProductServiceUpdateOne
SetNillableSort sets the "sort" field if the given value is not nil.
func (*ProductServiceUpdateOne) SetNillableStatus ¶
func (psuo *ProductServiceUpdateOne) SetNillableStatus(u *uint8) *ProductServiceUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*ProductServiceUpdateOne) SetNillableVersion ¶
func (psuo *ProductServiceUpdateOne) SetNillableVersion(s *string) *ProductServiceUpdateOne
SetNillableVersion sets the "version" field if the given value is not nil.
func (*ProductServiceUpdateOne) SetNotNilCallType ¶
func (ps *ProductServiceUpdateOne) SetNotNilCallType(value *string) *ProductServiceUpdateOne
set field if value's pointer is not nil.
func (*ProductServiceUpdateOne) SetNotNilCreateTs ¶
func (ps *ProductServiceUpdateOne) SetNotNilCreateTs(value *int64) *ProductServiceUpdateOne
set field if value's pointer is not nil.
func (*ProductServiceUpdateOne) SetNotNilCustom ¶
func (ps *ProductServiceUpdateOne) SetNotNilCustom(value *bool) *ProductServiceUpdateOne
set field if value's pointer is not nil.
func (*ProductServiceUpdateOne) SetNotNilIdentifier ¶
func (ps *ProductServiceUpdateOne) SetNotNilIdentifier(value *string) *ProductServiceUpdateOne
set field if value's pointer is not nil.
func (*ProductServiceUpdateOne) SetNotNilInputParams ¶
func (ps *ProductServiceUpdateOne) SetNotNilInputParams(value *string) *ProductServiceUpdateOne
set field if value's pointer is not nil.
func (*ProductServiceUpdateOne) SetNotNilOutputParams ¶
func (ps *ProductServiceUpdateOne) SetNotNilOutputParams(value *string) *ProductServiceUpdateOne
set field if value's pointer is not nil.
func (*ProductServiceUpdateOne) SetNotNilProductKey ¶
func (ps *ProductServiceUpdateOne) SetNotNilProductKey(value *string) *ProductServiceUpdateOne
set field if value's pointer is not nil.
func (*ProductServiceUpdateOne) SetNotNilRequired ¶
func (ps *ProductServiceUpdateOne) SetNotNilRequired(value *bool) *ProductServiceUpdateOne
set field if value's pointer is not nil.
func (*ProductServiceUpdateOne) SetNotNilServiceName ¶
func (ps *ProductServiceUpdateOne) SetNotNilServiceName(value *string) *ProductServiceUpdateOne
set field if value's pointer is not nil.
func (*ProductServiceUpdateOne) SetNotNilSort ¶
func (ps *ProductServiceUpdateOne) SetNotNilSort(value *uint32) *ProductServiceUpdateOne
set field if value's pointer is not nil.
func (*ProductServiceUpdateOne) SetNotNilStatus ¶
func (ps *ProductServiceUpdateOne) SetNotNilStatus(value *uint8) *ProductServiceUpdateOne
set field if value's pointer is not nil.
func (*ProductServiceUpdateOne) SetNotNilUpdatedAt ¶
func (ps *ProductServiceUpdateOne) SetNotNilUpdatedAt(value *time.Time) *ProductServiceUpdateOne
set field if value's pointer is not nil.
func (*ProductServiceUpdateOne) SetNotNilVersion ¶
func (ps *ProductServiceUpdateOne) SetNotNilVersion(value *string) *ProductServiceUpdateOne
set field if value's pointer is not nil.
func (*ProductServiceUpdateOne) SetOutputParams ¶
func (psuo *ProductServiceUpdateOne) SetOutputParams(s string) *ProductServiceUpdateOne
SetOutputParams sets the "outputParams" field.
func (*ProductServiceUpdateOne) SetProduct ¶
func (psuo *ProductServiceUpdateOne) SetProduct(p *Product) *ProductServiceUpdateOne
SetProduct sets the "product" edge to the Product entity.
func (*ProductServiceUpdateOne) SetProductID ¶
func (psuo *ProductServiceUpdateOne) SetProductID(id uuid.UUID) *ProductServiceUpdateOne
SetProductID sets the "product" edge to the Product entity by ID.
func (*ProductServiceUpdateOne) SetProductKey ¶
func (psuo *ProductServiceUpdateOne) SetProductKey(s string) *ProductServiceUpdateOne
SetProductKey sets the "productKey" field.
func (*ProductServiceUpdateOne) SetRequired ¶
func (psuo *ProductServiceUpdateOne) SetRequired(b bool) *ProductServiceUpdateOne
SetRequired sets the "required" field.
func (*ProductServiceUpdateOne) SetServiceName ¶
func (psuo *ProductServiceUpdateOne) SetServiceName(s string) *ProductServiceUpdateOne
SetServiceName sets the "serviceName" field.
func (*ProductServiceUpdateOne) SetSort ¶
func (psuo *ProductServiceUpdateOne) SetSort(u uint32) *ProductServiceUpdateOne
SetSort sets the "sort" field.
func (*ProductServiceUpdateOne) SetStatus ¶
func (psuo *ProductServiceUpdateOne) SetStatus(u uint8) *ProductServiceUpdateOne
SetStatus sets the "status" field.
func (*ProductServiceUpdateOne) SetUpdatedAt ¶
func (psuo *ProductServiceUpdateOne) SetUpdatedAt(t time.Time) *ProductServiceUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*ProductServiceUpdateOne) SetVersion ¶
func (psuo *ProductServiceUpdateOne) SetVersion(s string) *ProductServiceUpdateOne
SetVersion sets the "version" field.
func (*ProductServiceUpdateOne) Where ¶
func (psuo *ProductServiceUpdateOne) Where(ps ...predicate.ProductService) *ProductServiceUpdateOne
Where appends a list predicates to the ProductServiceUpdate builder.
type ProductServiceUpsert ¶
ProductServiceUpsert is the "OnConflict" setter.
func (*ProductServiceUpsert) AddCreateTs ¶
func (u *ProductServiceUpsert) AddCreateTs(v int64) *ProductServiceUpsert
AddCreateTs adds v to the "createTs" field.
func (*ProductServiceUpsert) AddSort ¶
func (u *ProductServiceUpsert) AddSort(v uint32) *ProductServiceUpsert
AddSort adds v to the "sort" field.
func (*ProductServiceUpsert) AddStatus ¶
func (u *ProductServiceUpsert) AddStatus(v uint8) *ProductServiceUpsert
AddStatus adds v to the "status" field.
func (*ProductServiceUpsert) ClearCreateTs ¶
func (u *ProductServiceUpsert) ClearCreateTs() *ProductServiceUpsert
ClearCreateTs clears the value of the "createTs" field.
func (*ProductServiceUpsert) ClearInputParams ¶
func (u *ProductServiceUpsert) ClearInputParams() *ProductServiceUpsert
ClearInputParams clears the value of the "inputParams" field.
func (*ProductServiceUpsert) ClearOutputParams ¶
func (u *ProductServiceUpsert) ClearOutputParams() *ProductServiceUpsert
ClearOutputParams clears the value of the "outputParams" field.
func (*ProductServiceUpsert) ClearStatus ¶
func (u *ProductServiceUpsert) ClearStatus() *ProductServiceUpsert
ClearStatus clears the value of the "status" field.
func (*ProductServiceUpsert) ClearVersion ¶
func (u *ProductServiceUpsert) ClearVersion() *ProductServiceUpsert
ClearVersion clears the value of the "version" field.
func (*ProductServiceUpsert) SetCallType ¶
func (u *ProductServiceUpsert) SetCallType(v string) *ProductServiceUpsert
SetCallType sets the "callType" field.
func (*ProductServiceUpsert) SetCreateTs ¶
func (u *ProductServiceUpsert) SetCreateTs(v int64) *ProductServiceUpsert
SetCreateTs sets the "createTs" field.
func (*ProductServiceUpsert) SetCustom ¶
func (u *ProductServiceUpsert) SetCustom(v bool) *ProductServiceUpsert
SetCustom sets the "custom" field.
func (*ProductServiceUpsert) SetIdentifier ¶
func (u *ProductServiceUpsert) SetIdentifier(v string) *ProductServiceUpsert
SetIdentifier sets the "identifier" field.
func (*ProductServiceUpsert) SetInputParams ¶
func (u *ProductServiceUpsert) SetInputParams(v string) *ProductServiceUpsert
SetInputParams sets the "inputParams" field.
func (*ProductServiceUpsert) SetOutputParams ¶
func (u *ProductServiceUpsert) SetOutputParams(v string) *ProductServiceUpsert
SetOutputParams sets the "outputParams" field.
func (*ProductServiceUpsert) SetProductKey ¶
func (u *ProductServiceUpsert) SetProductKey(v string) *ProductServiceUpsert
SetProductKey sets the "productKey" field.
func (*ProductServiceUpsert) SetRequired ¶
func (u *ProductServiceUpsert) SetRequired(v bool) *ProductServiceUpsert
SetRequired sets the "required" field.
func (*ProductServiceUpsert) SetServiceName ¶
func (u *ProductServiceUpsert) SetServiceName(v string) *ProductServiceUpsert
SetServiceName sets the "serviceName" field.
func (*ProductServiceUpsert) SetSort ¶
func (u *ProductServiceUpsert) SetSort(v uint32) *ProductServiceUpsert
SetSort sets the "sort" field.
func (*ProductServiceUpsert) SetStatus ¶
func (u *ProductServiceUpsert) SetStatus(v uint8) *ProductServiceUpsert
SetStatus sets the "status" field.
func (*ProductServiceUpsert) SetUpdatedAt ¶
func (u *ProductServiceUpsert) SetUpdatedAt(v time.Time) *ProductServiceUpsert
SetUpdatedAt sets the "updated_at" field.
func (*ProductServiceUpsert) SetVersion ¶
func (u *ProductServiceUpsert) SetVersion(v string) *ProductServiceUpsert
SetVersion sets the "version" field.
func (*ProductServiceUpsert) UpdateCallType ¶
func (u *ProductServiceUpsert) UpdateCallType() *ProductServiceUpsert
UpdateCallType sets the "callType" field to the value that was provided on create.
func (*ProductServiceUpsert) UpdateCreateTs ¶
func (u *ProductServiceUpsert) UpdateCreateTs() *ProductServiceUpsert
UpdateCreateTs sets the "createTs" field to the value that was provided on create.
func (*ProductServiceUpsert) UpdateCustom ¶
func (u *ProductServiceUpsert) UpdateCustom() *ProductServiceUpsert
UpdateCustom sets the "custom" field to the value that was provided on create.
func (*ProductServiceUpsert) UpdateIdentifier ¶
func (u *ProductServiceUpsert) UpdateIdentifier() *ProductServiceUpsert
UpdateIdentifier sets the "identifier" field to the value that was provided on create.
func (*ProductServiceUpsert) UpdateInputParams ¶
func (u *ProductServiceUpsert) UpdateInputParams() *ProductServiceUpsert
UpdateInputParams sets the "inputParams" field to the value that was provided on create.
func (*ProductServiceUpsert) UpdateOutputParams ¶
func (u *ProductServiceUpsert) UpdateOutputParams() *ProductServiceUpsert
UpdateOutputParams sets the "outputParams" field to the value that was provided on create.
func (*ProductServiceUpsert) UpdateProductKey ¶
func (u *ProductServiceUpsert) UpdateProductKey() *ProductServiceUpsert
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*ProductServiceUpsert) UpdateRequired ¶
func (u *ProductServiceUpsert) UpdateRequired() *ProductServiceUpsert
UpdateRequired sets the "required" field to the value that was provided on create.
func (*ProductServiceUpsert) UpdateServiceName ¶
func (u *ProductServiceUpsert) UpdateServiceName() *ProductServiceUpsert
UpdateServiceName sets the "serviceName" field to the value that was provided on create.
func (*ProductServiceUpsert) UpdateSort ¶
func (u *ProductServiceUpsert) UpdateSort() *ProductServiceUpsert
UpdateSort sets the "sort" field to the value that was provided on create.
func (*ProductServiceUpsert) UpdateStatus ¶
func (u *ProductServiceUpsert) UpdateStatus() *ProductServiceUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*ProductServiceUpsert) UpdateUpdatedAt ¶
func (u *ProductServiceUpsert) UpdateUpdatedAt() *ProductServiceUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*ProductServiceUpsert) UpdateVersion ¶
func (u *ProductServiceUpsert) UpdateVersion() *ProductServiceUpsert
UpdateVersion sets the "version" field to the value that was provided on create.
type ProductServiceUpsertBulk ¶
type ProductServiceUpsertBulk struct {
// contains filtered or unexported fields
}
ProductServiceUpsertBulk is the builder for "upsert"-ing a bulk of ProductService nodes.
func (*ProductServiceUpsertBulk) AddCreateTs ¶
func (u *ProductServiceUpsertBulk) AddCreateTs(v int64) *ProductServiceUpsertBulk
AddCreateTs adds v to the "createTs" field.
func (*ProductServiceUpsertBulk) AddSort ¶
func (u *ProductServiceUpsertBulk) AddSort(v uint32) *ProductServiceUpsertBulk
AddSort adds v to the "sort" field.
func (*ProductServiceUpsertBulk) AddStatus ¶
func (u *ProductServiceUpsertBulk) AddStatus(v uint8) *ProductServiceUpsertBulk
AddStatus adds v to the "status" field.
func (*ProductServiceUpsertBulk) ClearCreateTs ¶
func (u *ProductServiceUpsertBulk) ClearCreateTs() *ProductServiceUpsertBulk
ClearCreateTs clears the value of the "createTs" field.
func (*ProductServiceUpsertBulk) ClearInputParams ¶
func (u *ProductServiceUpsertBulk) ClearInputParams() *ProductServiceUpsertBulk
ClearInputParams clears the value of the "inputParams" field.
func (*ProductServiceUpsertBulk) ClearOutputParams ¶
func (u *ProductServiceUpsertBulk) ClearOutputParams() *ProductServiceUpsertBulk
ClearOutputParams clears the value of the "outputParams" field.
func (*ProductServiceUpsertBulk) ClearStatus ¶
func (u *ProductServiceUpsertBulk) ClearStatus() *ProductServiceUpsertBulk
ClearStatus clears the value of the "status" field.
func (*ProductServiceUpsertBulk) ClearVersion ¶
func (u *ProductServiceUpsertBulk) ClearVersion() *ProductServiceUpsertBulk
ClearVersion clears the value of the "version" field.
func (*ProductServiceUpsertBulk) DoNothing ¶
func (u *ProductServiceUpsertBulk) DoNothing() *ProductServiceUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ProductServiceUpsertBulk) Exec ¶
func (u *ProductServiceUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ProductServiceUpsertBulk) ExecX ¶
func (u *ProductServiceUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductServiceUpsertBulk) Ignore ¶
func (u *ProductServiceUpsertBulk) Ignore() *ProductServiceUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.ProductService.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*ProductServiceUpsertBulk) SetCallType ¶
func (u *ProductServiceUpsertBulk) SetCallType(v string) *ProductServiceUpsertBulk
SetCallType sets the "callType" field.
func (*ProductServiceUpsertBulk) SetCreateTs ¶
func (u *ProductServiceUpsertBulk) SetCreateTs(v int64) *ProductServiceUpsertBulk
SetCreateTs sets the "createTs" field.
func (*ProductServiceUpsertBulk) SetCustom ¶
func (u *ProductServiceUpsertBulk) SetCustom(v bool) *ProductServiceUpsertBulk
SetCustom sets the "custom" field.
func (*ProductServiceUpsertBulk) SetIdentifier ¶
func (u *ProductServiceUpsertBulk) SetIdentifier(v string) *ProductServiceUpsertBulk
SetIdentifier sets the "identifier" field.
func (*ProductServiceUpsertBulk) SetInputParams ¶
func (u *ProductServiceUpsertBulk) SetInputParams(v string) *ProductServiceUpsertBulk
SetInputParams sets the "inputParams" field.
func (*ProductServiceUpsertBulk) SetOutputParams ¶
func (u *ProductServiceUpsertBulk) SetOutputParams(v string) *ProductServiceUpsertBulk
SetOutputParams sets the "outputParams" field.
func (*ProductServiceUpsertBulk) SetProductKey ¶
func (u *ProductServiceUpsertBulk) SetProductKey(v string) *ProductServiceUpsertBulk
SetProductKey sets the "productKey" field.
func (*ProductServiceUpsertBulk) SetRequired ¶
func (u *ProductServiceUpsertBulk) SetRequired(v bool) *ProductServiceUpsertBulk
SetRequired sets the "required" field.
func (*ProductServiceUpsertBulk) SetServiceName ¶
func (u *ProductServiceUpsertBulk) SetServiceName(v string) *ProductServiceUpsertBulk
SetServiceName sets the "serviceName" field.
func (*ProductServiceUpsertBulk) SetSort ¶
func (u *ProductServiceUpsertBulk) SetSort(v uint32) *ProductServiceUpsertBulk
SetSort sets the "sort" field.
func (*ProductServiceUpsertBulk) SetStatus ¶
func (u *ProductServiceUpsertBulk) SetStatus(v uint8) *ProductServiceUpsertBulk
SetStatus sets the "status" field.
func (*ProductServiceUpsertBulk) SetUpdatedAt ¶
func (u *ProductServiceUpsertBulk) SetUpdatedAt(v time.Time) *ProductServiceUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*ProductServiceUpsertBulk) SetVersion ¶
func (u *ProductServiceUpsertBulk) SetVersion(v string) *ProductServiceUpsertBulk
SetVersion sets the "version" field.
func (*ProductServiceUpsertBulk) Update ¶
func (u *ProductServiceUpsertBulk) Update(set func(*ProductServiceUpsert)) *ProductServiceUpsertBulk
Update allows overriding fields `UPDATE` values. See the ProductServiceCreateBulk.OnConflict documentation for more info.
func (*ProductServiceUpsertBulk) UpdateCallType ¶
func (u *ProductServiceUpsertBulk) UpdateCallType() *ProductServiceUpsertBulk
UpdateCallType sets the "callType" field to the value that was provided on create.
func (*ProductServiceUpsertBulk) UpdateCreateTs ¶
func (u *ProductServiceUpsertBulk) UpdateCreateTs() *ProductServiceUpsertBulk
UpdateCreateTs sets the "createTs" field to the value that was provided on create.
func (*ProductServiceUpsertBulk) UpdateCustom ¶
func (u *ProductServiceUpsertBulk) UpdateCustom() *ProductServiceUpsertBulk
UpdateCustom sets the "custom" field to the value that was provided on create.
func (*ProductServiceUpsertBulk) UpdateIdentifier ¶
func (u *ProductServiceUpsertBulk) UpdateIdentifier() *ProductServiceUpsertBulk
UpdateIdentifier sets the "identifier" field to the value that was provided on create.
func (*ProductServiceUpsertBulk) UpdateInputParams ¶
func (u *ProductServiceUpsertBulk) UpdateInputParams() *ProductServiceUpsertBulk
UpdateInputParams sets the "inputParams" field to the value that was provided on create.
func (*ProductServiceUpsertBulk) UpdateNewValues ¶
func (u *ProductServiceUpsertBulk) UpdateNewValues() *ProductServiceUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.ProductService.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(productservice.FieldID) }), ). Exec(ctx)
func (*ProductServiceUpsertBulk) UpdateOutputParams ¶
func (u *ProductServiceUpsertBulk) UpdateOutputParams() *ProductServiceUpsertBulk
UpdateOutputParams sets the "outputParams" field to the value that was provided on create.
func (*ProductServiceUpsertBulk) UpdateProductKey ¶
func (u *ProductServiceUpsertBulk) UpdateProductKey() *ProductServiceUpsertBulk
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*ProductServiceUpsertBulk) UpdateRequired ¶
func (u *ProductServiceUpsertBulk) UpdateRequired() *ProductServiceUpsertBulk
UpdateRequired sets the "required" field to the value that was provided on create.
func (*ProductServiceUpsertBulk) UpdateServiceName ¶
func (u *ProductServiceUpsertBulk) UpdateServiceName() *ProductServiceUpsertBulk
UpdateServiceName sets the "serviceName" field to the value that was provided on create.
func (*ProductServiceUpsertBulk) UpdateSort ¶
func (u *ProductServiceUpsertBulk) UpdateSort() *ProductServiceUpsertBulk
UpdateSort sets the "sort" field to the value that was provided on create.
func (*ProductServiceUpsertBulk) UpdateStatus ¶
func (u *ProductServiceUpsertBulk) UpdateStatus() *ProductServiceUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*ProductServiceUpsertBulk) UpdateUpdatedAt ¶
func (u *ProductServiceUpsertBulk) UpdateUpdatedAt() *ProductServiceUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*ProductServiceUpsertBulk) UpdateVersion ¶
func (u *ProductServiceUpsertBulk) UpdateVersion() *ProductServiceUpsertBulk
UpdateVersion sets the "version" field to the value that was provided on create.
type ProductServiceUpsertOne ¶
type ProductServiceUpsertOne struct {
// contains filtered or unexported fields
}
ProductServiceUpsertOne is the builder for "upsert"-ing
one ProductService node.
func (*ProductServiceUpsertOne) AddCreateTs ¶
func (u *ProductServiceUpsertOne) AddCreateTs(v int64) *ProductServiceUpsertOne
AddCreateTs adds v to the "createTs" field.
func (*ProductServiceUpsertOne) AddSort ¶
func (u *ProductServiceUpsertOne) AddSort(v uint32) *ProductServiceUpsertOne
AddSort adds v to the "sort" field.
func (*ProductServiceUpsertOne) AddStatus ¶
func (u *ProductServiceUpsertOne) AddStatus(v uint8) *ProductServiceUpsertOne
AddStatus adds v to the "status" field.
func (*ProductServiceUpsertOne) ClearCreateTs ¶
func (u *ProductServiceUpsertOne) ClearCreateTs() *ProductServiceUpsertOne
ClearCreateTs clears the value of the "createTs" field.
func (*ProductServiceUpsertOne) ClearInputParams ¶
func (u *ProductServiceUpsertOne) ClearInputParams() *ProductServiceUpsertOne
ClearInputParams clears the value of the "inputParams" field.
func (*ProductServiceUpsertOne) ClearOutputParams ¶
func (u *ProductServiceUpsertOne) ClearOutputParams() *ProductServiceUpsertOne
ClearOutputParams clears the value of the "outputParams" field.
func (*ProductServiceUpsertOne) ClearStatus ¶
func (u *ProductServiceUpsertOne) ClearStatus() *ProductServiceUpsertOne
ClearStatus clears the value of the "status" field.
func (*ProductServiceUpsertOne) ClearVersion ¶
func (u *ProductServiceUpsertOne) ClearVersion() *ProductServiceUpsertOne
ClearVersion clears the value of the "version" field.
func (*ProductServiceUpsertOne) DoNothing ¶
func (u *ProductServiceUpsertOne) DoNothing() *ProductServiceUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ProductServiceUpsertOne) Exec ¶
func (u *ProductServiceUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*ProductServiceUpsertOne) ExecX ¶
func (u *ProductServiceUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductServiceUpsertOne) ID ¶
func (u *ProductServiceUpsertOne) ID(ctx context.Context) (id uint64, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*ProductServiceUpsertOne) IDX ¶
func (u *ProductServiceUpsertOne) IDX(ctx context.Context) uint64
IDX is like ID, but panics if an error occurs.
func (*ProductServiceUpsertOne) Ignore ¶
func (u *ProductServiceUpsertOne) Ignore() *ProductServiceUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.ProductService.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*ProductServiceUpsertOne) SetCallType ¶
func (u *ProductServiceUpsertOne) SetCallType(v string) *ProductServiceUpsertOne
SetCallType sets the "callType" field.
func (*ProductServiceUpsertOne) SetCreateTs ¶
func (u *ProductServiceUpsertOne) SetCreateTs(v int64) *ProductServiceUpsertOne
SetCreateTs sets the "createTs" field.
func (*ProductServiceUpsertOne) SetCustom ¶
func (u *ProductServiceUpsertOne) SetCustom(v bool) *ProductServiceUpsertOne
SetCustom sets the "custom" field.
func (*ProductServiceUpsertOne) SetIdentifier ¶
func (u *ProductServiceUpsertOne) SetIdentifier(v string) *ProductServiceUpsertOne
SetIdentifier sets the "identifier" field.
func (*ProductServiceUpsertOne) SetInputParams ¶
func (u *ProductServiceUpsertOne) SetInputParams(v string) *ProductServiceUpsertOne
SetInputParams sets the "inputParams" field.
func (*ProductServiceUpsertOne) SetOutputParams ¶
func (u *ProductServiceUpsertOne) SetOutputParams(v string) *ProductServiceUpsertOne
SetOutputParams sets the "outputParams" field.
func (*ProductServiceUpsertOne) SetProductKey ¶
func (u *ProductServiceUpsertOne) SetProductKey(v string) *ProductServiceUpsertOne
SetProductKey sets the "productKey" field.
func (*ProductServiceUpsertOne) SetRequired ¶
func (u *ProductServiceUpsertOne) SetRequired(v bool) *ProductServiceUpsertOne
SetRequired sets the "required" field.
func (*ProductServiceUpsertOne) SetServiceName ¶
func (u *ProductServiceUpsertOne) SetServiceName(v string) *ProductServiceUpsertOne
SetServiceName sets the "serviceName" field.
func (*ProductServiceUpsertOne) SetSort ¶
func (u *ProductServiceUpsertOne) SetSort(v uint32) *ProductServiceUpsertOne
SetSort sets the "sort" field.
func (*ProductServiceUpsertOne) SetStatus ¶
func (u *ProductServiceUpsertOne) SetStatus(v uint8) *ProductServiceUpsertOne
SetStatus sets the "status" field.
func (*ProductServiceUpsertOne) SetUpdatedAt ¶
func (u *ProductServiceUpsertOne) SetUpdatedAt(v time.Time) *ProductServiceUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*ProductServiceUpsertOne) SetVersion ¶
func (u *ProductServiceUpsertOne) SetVersion(v string) *ProductServiceUpsertOne
SetVersion sets the "version" field.
func (*ProductServiceUpsertOne) Update ¶
func (u *ProductServiceUpsertOne) Update(set func(*ProductServiceUpsert)) *ProductServiceUpsertOne
Update allows overriding fields `UPDATE` values. See the ProductServiceCreate.OnConflict documentation for more info.
func (*ProductServiceUpsertOne) UpdateCallType ¶
func (u *ProductServiceUpsertOne) UpdateCallType() *ProductServiceUpsertOne
UpdateCallType sets the "callType" field to the value that was provided on create.
func (*ProductServiceUpsertOne) UpdateCreateTs ¶
func (u *ProductServiceUpsertOne) UpdateCreateTs() *ProductServiceUpsertOne
UpdateCreateTs sets the "createTs" field to the value that was provided on create.
func (*ProductServiceUpsertOne) UpdateCustom ¶
func (u *ProductServiceUpsertOne) UpdateCustom() *ProductServiceUpsertOne
UpdateCustom sets the "custom" field to the value that was provided on create.
func (*ProductServiceUpsertOne) UpdateIdentifier ¶
func (u *ProductServiceUpsertOne) UpdateIdentifier() *ProductServiceUpsertOne
UpdateIdentifier sets the "identifier" field to the value that was provided on create.
func (*ProductServiceUpsertOne) UpdateInputParams ¶
func (u *ProductServiceUpsertOne) UpdateInputParams() *ProductServiceUpsertOne
UpdateInputParams sets the "inputParams" field to the value that was provided on create.
func (*ProductServiceUpsertOne) UpdateNewValues ¶
func (u *ProductServiceUpsertOne) UpdateNewValues() *ProductServiceUpsertOne
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.ProductService.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(productservice.FieldID) }), ). Exec(ctx)
func (*ProductServiceUpsertOne) UpdateOutputParams ¶
func (u *ProductServiceUpsertOne) UpdateOutputParams() *ProductServiceUpsertOne
UpdateOutputParams sets the "outputParams" field to the value that was provided on create.
func (*ProductServiceUpsertOne) UpdateProductKey ¶
func (u *ProductServiceUpsertOne) UpdateProductKey() *ProductServiceUpsertOne
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*ProductServiceUpsertOne) UpdateRequired ¶
func (u *ProductServiceUpsertOne) UpdateRequired() *ProductServiceUpsertOne
UpdateRequired sets the "required" field to the value that was provided on create.
func (*ProductServiceUpsertOne) UpdateServiceName ¶
func (u *ProductServiceUpsertOne) UpdateServiceName() *ProductServiceUpsertOne
UpdateServiceName sets the "serviceName" field to the value that was provided on create.
func (*ProductServiceUpsertOne) UpdateSort ¶
func (u *ProductServiceUpsertOne) UpdateSort() *ProductServiceUpsertOne
UpdateSort sets the "sort" field to the value that was provided on create.
func (*ProductServiceUpsertOne) UpdateStatus ¶
func (u *ProductServiceUpsertOne) UpdateStatus() *ProductServiceUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*ProductServiceUpsertOne) UpdateUpdatedAt ¶
func (u *ProductServiceUpsertOne) UpdateUpdatedAt() *ProductServiceUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*ProductServiceUpsertOne) UpdateVersion ¶
func (u *ProductServiceUpsertOne) UpdateVersion() *ProductServiceUpsertOne
UpdateVersion sets the "version" field to the value that was provided on create.
type ProductServices ¶
type ProductServices []*ProductService
ProductServices is a parsable slice of ProductService.
type ProductTag ¶
type ProductTag 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"` // Product Key | 产品Key ProductKey string `json:"productKey,omitempty"` // Tag Key | 标签键 TagKey string `json:"tagKey,omitempty"` // Tag Value | 标签值 TagValue string `json:"tagValue,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the ProductTagQuery when eager-loading is set. Edges ProductTagEdges `json:"edges"` // contains filtered or unexported fields }
ProductTag is the model entity for the ProductTag schema.
func (*ProductTag) ExecContext ¶
func (c *ProductTag) 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 (*ProductTag) QueryContext ¶
func (c *ProductTag) 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 (*ProductTag) QueryProduct ¶
func (pt *ProductTag) QueryProduct() *ProductQuery
QueryProduct queries the "product" edge of the ProductTag entity.
func (*ProductTag) String ¶
func (pt *ProductTag) String() string
String implements the fmt.Stringer.
func (*ProductTag) Unwrap ¶
func (pt *ProductTag) Unwrap() *ProductTag
Unwrap unwraps the ProductTag 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 (*ProductTag) Update ¶
func (pt *ProductTag) Update() *ProductTagUpdateOne
Update returns a builder for updating this ProductTag. Note that you need to call ProductTag.Unwrap() before calling this method if this ProductTag was returned from a transaction, and the transaction was committed or rolled back.
type ProductTagClient ¶
type ProductTagClient struct {
// contains filtered or unexported fields
}
ProductTagClient is a client for the ProductTag schema.
func NewProductTagClient ¶
func NewProductTagClient(c config) *ProductTagClient
NewProductTagClient returns a client for the ProductTag from the given config.
func (*ProductTagClient) Create ¶
func (c *ProductTagClient) Create() *ProductTagCreate
Create returns a builder for creating a ProductTag entity.
func (*ProductTagClient) CreateBulk ¶
func (c *ProductTagClient) CreateBulk(builders ...*ProductTagCreate) *ProductTagCreateBulk
CreateBulk returns a builder for creating a bulk of ProductTag entities.
func (*ProductTagClient) Delete ¶
func (c *ProductTagClient) Delete() *ProductTagDelete
Delete returns a delete builder for ProductTag.
func (*ProductTagClient) DeleteOne ¶
func (c *ProductTagClient) DeleteOne(pt *ProductTag) *ProductTagDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*ProductTagClient) DeleteOneID ¶
func (c *ProductTagClient) DeleteOneID(id uint64) *ProductTagDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*ProductTagClient) ExecContext ¶
func (c *ProductTagClient) 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 (*ProductTagClient) Get ¶
func (c *ProductTagClient) Get(ctx context.Context, id uint64) (*ProductTag, error)
Get returns a ProductTag entity by its id.
func (*ProductTagClient) GetX ¶
func (c *ProductTagClient) GetX(ctx context.Context, id uint64) *ProductTag
GetX is like Get, but panics if an error occurs.
func (*ProductTagClient) Hooks ¶
func (c *ProductTagClient) Hooks() []Hook
Hooks returns the client hooks.
func (*ProductTagClient) Intercept ¶
func (c *ProductTagClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `producttag.Intercept(f(g(h())))`.
func (*ProductTagClient) Interceptors ¶
func (c *ProductTagClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*ProductTagClient) MapCreateBulk ¶
func (c *ProductTagClient) MapCreateBulk(slice any, setFunc func(*ProductTagCreate, int)) *ProductTagCreateBulk
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 (*ProductTagClient) Query ¶
func (c *ProductTagClient) Query() *ProductTagQuery
Query returns a query builder for ProductTag.
func (*ProductTagClient) QueryContext ¶
func (c *ProductTagClient) 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 (*ProductTagClient) QueryProduct ¶
func (c *ProductTagClient) QueryProduct(pt *ProductTag) *ProductQuery
QueryProduct queries the product edge of a ProductTag.
func (*ProductTagClient) Update ¶
func (c *ProductTagClient) Update() *ProductTagUpdate
Update returns an update builder for ProductTag.
func (*ProductTagClient) UpdateOne ¶
func (c *ProductTagClient) UpdateOne(pt *ProductTag) *ProductTagUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ProductTagClient) UpdateOneID ¶
func (c *ProductTagClient) UpdateOneID(id uint64) *ProductTagUpdateOne
UpdateOneID returns an update builder for the given id.
func (*ProductTagClient) Use ¶
func (c *ProductTagClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `producttag.Hooks(f(g(h())))`.
type ProductTagCreate ¶
type ProductTagCreate struct {
// contains filtered or unexported fields
}
ProductTagCreate is the builder for creating a ProductTag entity.
func (*ProductTagCreate) Exec ¶
func (ptc *ProductTagCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*ProductTagCreate) ExecContext ¶
func (c *ProductTagCreate) 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 (*ProductTagCreate) ExecX ¶
func (ptc *ProductTagCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductTagCreate) Mutation ¶
func (ptc *ProductTagCreate) Mutation() *ProductTagMutation
Mutation returns the ProductTagMutation object of the builder.
func (*ProductTagCreate) OnConflict ¶
func (ptc *ProductTagCreate) OnConflict(opts ...sql.ConflictOption) *ProductTagUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.ProductTag.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.ProductTagUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*ProductTagCreate) OnConflictColumns ¶
func (ptc *ProductTagCreate) OnConflictColumns(columns ...string) *ProductTagUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.ProductTag.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*ProductTagCreate) QueryContext ¶
func (c *ProductTagCreate) 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 (*ProductTagCreate) Save ¶
func (ptc *ProductTagCreate) Save(ctx context.Context) (*ProductTag, error)
Save creates the ProductTag in the database.
func (*ProductTagCreate) SaveX ¶
func (ptc *ProductTagCreate) SaveX(ctx context.Context) *ProductTag
SaveX calls Save and panics if Save returns an error.
func (*ProductTagCreate) SetCreatedAt ¶
func (ptc *ProductTagCreate) SetCreatedAt(t time.Time) *ProductTagCreate
SetCreatedAt sets the "created_at" field.
func (*ProductTagCreate) SetID ¶
func (ptc *ProductTagCreate) SetID(u uint64) *ProductTagCreate
SetID sets the "id" field.
func (*ProductTagCreate) SetNillableCreatedAt ¶
func (ptc *ProductTagCreate) SetNillableCreatedAt(t *time.Time) *ProductTagCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*ProductTagCreate) SetNillableProductID ¶
func (ptc *ProductTagCreate) SetNillableProductID(id *uuid.UUID) *ProductTagCreate
SetNillableProductID sets the "product" edge to the Product entity by ID if the given value is not nil.
func (*ProductTagCreate) SetNillableSort ¶
func (ptc *ProductTagCreate) SetNillableSort(u *uint32) *ProductTagCreate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*ProductTagCreate) SetNillableStatus ¶
func (ptc *ProductTagCreate) SetNillableStatus(u *uint8) *ProductTagCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*ProductTagCreate) SetNillableUpdatedAt ¶
func (ptc *ProductTagCreate) SetNillableUpdatedAt(t *time.Time) *ProductTagCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*ProductTagCreate) SetNotNilProductKey ¶
func (pt *ProductTagCreate) SetNotNilProductKey(value *string) *ProductTagCreate
set field if value's pointer is not nil.
func (*ProductTagCreate) SetNotNilSort ¶
func (pt *ProductTagCreate) SetNotNilSort(value *uint32) *ProductTagCreate
set field if value's pointer is not nil.
func (*ProductTagCreate) SetNotNilStatus ¶
func (pt *ProductTagCreate) SetNotNilStatus(value *uint8) *ProductTagCreate
set field if value's pointer is not nil.
func (*ProductTagCreate) SetNotNilTagKey ¶
func (pt *ProductTagCreate) SetNotNilTagKey(value *string) *ProductTagCreate
set field if value's pointer is not nil.
func (*ProductTagCreate) SetNotNilTagValue ¶
func (pt *ProductTagCreate) SetNotNilTagValue(value *string) *ProductTagCreate
set field if value's pointer is not nil.
func (*ProductTagCreate) SetNotNilUpdatedAt ¶
func (pt *ProductTagCreate) SetNotNilUpdatedAt(value *time.Time) *ProductTagCreate
set field if value's pointer is not nil.
func (*ProductTagCreate) SetProduct ¶
func (ptc *ProductTagCreate) SetProduct(p *Product) *ProductTagCreate
SetProduct sets the "product" edge to the Product entity.
func (*ProductTagCreate) SetProductID ¶
func (ptc *ProductTagCreate) SetProductID(id uuid.UUID) *ProductTagCreate
SetProductID sets the "product" edge to the Product entity by ID.
func (*ProductTagCreate) SetProductKey ¶
func (ptc *ProductTagCreate) SetProductKey(s string) *ProductTagCreate
SetProductKey sets the "productKey" field.
func (*ProductTagCreate) SetSort ¶
func (ptc *ProductTagCreate) SetSort(u uint32) *ProductTagCreate
SetSort sets the "sort" field.
func (*ProductTagCreate) SetStatus ¶
func (ptc *ProductTagCreate) SetStatus(u uint8) *ProductTagCreate
SetStatus sets the "status" field.
func (*ProductTagCreate) SetTagKey ¶
func (ptc *ProductTagCreate) SetTagKey(s string) *ProductTagCreate
SetTagKey sets the "tagKey" field.
func (*ProductTagCreate) SetTagValue ¶
func (ptc *ProductTagCreate) SetTagValue(s string) *ProductTagCreate
SetTagValue sets the "tagValue" field.
func (*ProductTagCreate) SetUpdatedAt ¶
func (ptc *ProductTagCreate) SetUpdatedAt(t time.Time) *ProductTagCreate
SetUpdatedAt sets the "updated_at" field.
type ProductTagCreateBulk ¶
type ProductTagCreateBulk struct {
// contains filtered or unexported fields
}
ProductTagCreateBulk is the builder for creating many ProductTag entities in bulk.
func (*ProductTagCreateBulk) Exec ¶
func (ptcb *ProductTagCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ProductTagCreateBulk) ExecContext ¶
func (c *ProductTagCreateBulk) 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 (*ProductTagCreateBulk) ExecX ¶
func (ptcb *ProductTagCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductTagCreateBulk) OnConflict ¶
func (ptcb *ProductTagCreateBulk) OnConflict(opts ...sql.ConflictOption) *ProductTagUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.ProductTag.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.ProductTagUpsert) { SetCreatedAt(v+v). }). Exec(ctx)
func (*ProductTagCreateBulk) OnConflictColumns ¶
func (ptcb *ProductTagCreateBulk) OnConflictColumns(columns ...string) *ProductTagUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.ProductTag.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*ProductTagCreateBulk) QueryContext ¶
func (c *ProductTagCreateBulk) 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 (*ProductTagCreateBulk) Save ¶
func (ptcb *ProductTagCreateBulk) Save(ctx context.Context) ([]*ProductTag, error)
Save creates the ProductTag entities in the database.
func (*ProductTagCreateBulk) SaveX ¶
func (ptcb *ProductTagCreateBulk) SaveX(ctx context.Context) []*ProductTag
SaveX is like Save, but panics if an error occurs.
type ProductTagDelete ¶
type ProductTagDelete struct {
// contains filtered or unexported fields
}
ProductTagDelete is the builder for deleting a ProductTag entity.
func (*ProductTagDelete) Exec ¶
func (ptd *ProductTagDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*ProductTagDelete) ExecContext ¶
func (c *ProductTagDelete) 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 (*ProductTagDelete) ExecX ¶
func (ptd *ProductTagDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*ProductTagDelete) QueryContext ¶
func (c *ProductTagDelete) 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 (*ProductTagDelete) Where ¶
func (ptd *ProductTagDelete) Where(ps ...predicate.ProductTag) *ProductTagDelete
Where appends a list predicates to the ProductTagDelete builder.
type ProductTagDeleteOne ¶
type ProductTagDeleteOne struct {
// contains filtered or unexported fields
}
ProductTagDeleteOne is the builder for deleting a single ProductTag entity.
func (*ProductTagDeleteOne) Exec ¶
func (ptdo *ProductTagDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*ProductTagDeleteOne) ExecX ¶
func (ptdo *ProductTagDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductTagDeleteOne) Where ¶
func (ptdo *ProductTagDeleteOne) Where(ps ...predicate.ProductTag) *ProductTagDeleteOne
Where appends a list predicates to the ProductTagDelete builder.
type ProductTagEdges ¶
type ProductTagEdges struct { // Product holds the value of the product edge. Product *Product `json:"product,omitempty"` // contains filtered or unexported fields }
ProductTagEdges holds the relations/edges for other nodes in the graph.
func (ProductTagEdges) ProductOrErr ¶
func (e ProductTagEdges) ProductOrErr() (*Product, error)
ProductOrErr returns the Product value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type ProductTagGroupBy ¶
type ProductTagGroupBy struct {
// contains filtered or unexported fields
}
ProductTagGroupBy is the group-by builder for ProductTag entities.
func (*ProductTagGroupBy) Aggregate ¶
func (ptgb *ProductTagGroupBy) Aggregate(fns ...AggregateFunc) *ProductTagGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ProductTagGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ProductTagGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ProductTagGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ProductTagGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ProductTagGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ProductTagGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ProductTagGroupBy) Scan ¶
func (ptgb *ProductTagGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ProductTagGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type ProductTagMutation ¶
type ProductTagMutation struct {
// contains filtered or unexported fields
}
ProductTagMutation represents an operation that mutates the ProductTag nodes in the graph.
func (*ProductTagMutation) AddField ¶
func (m *ProductTagMutation) 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 (*ProductTagMutation) AddSort ¶
func (m *ProductTagMutation) AddSort(u int32)
AddSort adds u to the "sort" field.
func (*ProductTagMutation) AddStatus ¶
func (m *ProductTagMutation) AddStatus(u int8)
AddStatus adds u to the "status" field.
func (*ProductTagMutation) AddedEdges ¶
func (m *ProductTagMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*ProductTagMutation) AddedField ¶
func (m *ProductTagMutation) 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 (*ProductTagMutation) AddedFields ¶
func (m *ProductTagMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*ProductTagMutation) AddedIDs ¶
func (m *ProductTagMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*ProductTagMutation) AddedSort ¶
func (m *ProductTagMutation) AddedSort() (r int32, exists bool)
AddedSort returns the value that was added to the "sort" field in this mutation.
func (*ProductTagMutation) AddedStatus ¶
func (m *ProductTagMutation) AddedStatus() (r int8, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*ProductTagMutation) ClearEdge ¶
func (m *ProductTagMutation) 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 (*ProductTagMutation) ClearField ¶
func (m *ProductTagMutation) 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 (*ProductTagMutation) ClearProduct ¶
func (m *ProductTagMutation) ClearProduct()
ClearProduct clears the "product" edge to the Product entity.
func (*ProductTagMutation) ClearStatus ¶
func (m *ProductTagMutation) ClearStatus()
ClearStatus clears the value of the "status" field.
func (*ProductTagMutation) ClearedEdges ¶
func (m *ProductTagMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*ProductTagMutation) ClearedFields ¶
func (m *ProductTagMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (ProductTagMutation) Client ¶
func (m ProductTagMutation) 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 (*ProductTagMutation) CreatedAt ¶
func (m *ProductTagMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*ProductTagMutation) EdgeCleared ¶
func (m *ProductTagMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*ProductTagMutation) ExecContext ¶
func (c *ProductTagMutation) 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 (*ProductTagMutation) Field ¶
func (m *ProductTagMutation) 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 (*ProductTagMutation) FieldCleared ¶
func (m *ProductTagMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*ProductTagMutation) Fields ¶
func (m *ProductTagMutation) 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 (*ProductTagMutation) ID ¶
func (m *ProductTagMutation) 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 (*ProductTagMutation) IDs ¶
func (m *ProductTagMutation) 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 (*ProductTagMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the ProductTag entity. If the ProductTag object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductTagMutation) 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 (*ProductTagMutation) OldProductKey ¶
func (m *ProductTagMutation) OldProductKey(ctx context.Context) (v string, err error)
OldProductKey returns the old "productKey" field's value of the ProductTag entity. If the ProductTag object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductTagMutation) OldSort ¶
func (m *ProductTagMutation) OldSort(ctx context.Context) (v uint32, err error)
OldSort returns the old "sort" field's value of the ProductTag entity. If the ProductTag object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductTagMutation) OldStatus ¶
func (m *ProductTagMutation) OldStatus(ctx context.Context) (v uint8, err error)
OldStatus returns the old "status" field's value of the ProductTag entity. If the ProductTag object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductTagMutation) OldTagKey ¶
func (m *ProductTagMutation) OldTagKey(ctx context.Context) (v string, err error)
OldTagKey returns the old "tagKey" field's value of the ProductTag entity. If the ProductTag object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductTagMutation) OldTagValue ¶
func (m *ProductTagMutation) OldTagValue(ctx context.Context) (v string, err error)
OldTagValue returns the old "tagValue" field's value of the ProductTag entity. If the ProductTag object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductTagMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the ProductTag entity. If the ProductTag object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProductTagMutation) ProductCleared ¶
func (m *ProductTagMutation) ProductCleared() bool
ProductCleared reports if the "product" edge to the Product entity was cleared.
func (*ProductTagMutation) ProductID ¶
func (m *ProductTagMutation) ProductID() (id uuid.UUID, exists bool)
ProductID returns the "product" edge ID in the mutation.
func (*ProductTagMutation) ProductIDs ¶
func (m *ProductTagMutation) ProductIDs() (ids []uuid.UUID)
ProductIDs returns the "product" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ProductID instead. It exists only for internal usage by the builders.
func (*ProductTagMutation) ProductKey ¶
func (m *ProductTagMutation) ProductKey() (r string, exists bool)
ProductKey returns the value of the "productKey" field in the mutation.
func (*ProductTagMutation) QueryContext ¶
func (c *ProductTagMutation) 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 (*ProductTagMutation) RemovedEdges ¶
func (m *ProductTagMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*ProductTagMutation) RemovedIDs ¶
func (m *ProductTagMutation) 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 (*ProductTagMutation) ResetCreatedAt ¶
func (m *ProductTagMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*ProductTagMutation) ResetEdge ¶
func (m *ProductTagMutation) 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 (*ProductTagMutation) ResetField ¶
func (m *ProductTagMutation) 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 (*ProductTagMutation) ResetProduct ¶
func (m *ProductTagMutation) ResetProduct()
ResetProduct resets all changes to the "product" edge.
func (*ProductTagMutation) ResetProductKey ¶
func (m *ProductTagMutation) ResetProductKey()
ResetProductKey resets all changes to the "productKey" field.
func (*ProductTagMutation) ResetSort ¶
func (m *ProductTagMutation) ResetSort()
ResetSort resets all changes to the "sort" field.
func (*ProductTagMutation) ResetStatus ¶
func (m *ProductTagMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*ProductTagMutation) ResetTagKey ¶
func (m *ProductTagMutation) ResetTagKey()
ResetTagKey resets all changes to the "tagKey" field.
func (*ProductTagMutation) ResetTagValue ¶
func (m *ProductTagMutation) ResetTagValue()
ResetTagValue resets all changes to the "tagValue" field.
func (*ProductTagMutation) ResetUpdatedAt ¶
func (m *ProductTagMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*ProductTagMutation) SetCreatedAt ¶
func (m *ProductTagMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*ProductTagMutation) SetField ¶
func (m *ProductTagMutation) 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 (*ProductTagMutation) SetID ¶
func (m *ProductTagMutation) SetID(id uint64)
SetID sets the value of the id field. Note that this operation is only accepted on creation of ProductTag entities.
func (*ProductTagMutation) SetOp ¶
func (m *ProductTagMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*ProductTagMutation) SetProductID ¶
func (m *ProductTagMutation) SetProductID(id uuid.UUID)
SetProductID sets the "product" edge to the Product entity by id.
func (*ProductTagMutation) SetProductKey ¶
func (m *ProductTagMutation) SetProductKey(s string)
SetProductKey sets the "productKey" field.
func (*ProductTagMutation) SetSort ¶
func (m *ProductTagMutation) SetSort(u uint32)
SetSort sets the "sort" field.
func (*ProductTagMutation) SetStatus ¶
func (m *ProductTagMutation) SetStatus(u uint8)
SetStatus sets the "status" field.
func (*ProductTagMutation) SetTagKey ¶
func (m *ProductTagMutation) SetTagKey(s string)
SetTagKey sets the "tagKey" field.
func (*ProductTagMutation) SetTagValue ¶
func (m *ProductTagMutation) SetTagValue(s string)
SetTagValue sets the "tagValue" field.
func (*ProductTagMutation) SetUpdatedAt ¶
func (m *ProductTagMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*ProductTagMutation) Sort ¶
func (m *ProductTagMutation) Sort() (r uint32, exists bool)
Sort returns the value of the "sort" field in the mutation.
func (*ProductTagMutation) Status ¶
func (m *ProductTagMutation) Status() (r uint8, exists bool)
Status returns the value of the "status" field in the mutation.
func (*ProductTagMutation) StatusCleared ¶
func (m *ProductTagMutation) StatusCleared() bool
StatusCleared returns if the "status" field was cleared in this mutation.
func (*ProductTagMutation) TagKey ¶
func (m *ProductTagMutation) TagKey() (r string, exists bool)
TagKey returns the value of the "tagKey" field in the mutation.
func (*ProductTagMutation) TagValue ¶
func (m *ProductTagMutation) TagValue() (r string, exists bool)
TagValue returns the value of the "tagValue" field in the mutation.
func (ProductTagMutation) Tx ¶
func (m ProductTagMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*ProductTagMutation) Type ¶
func (m *ProductTagMutation) Type() string
Type returns the node type of this mutation (ProductTag).
func (*ProductTagMutation) UpdatedAt ¶
func (m *ProductTagMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*ProductTagMutation) Where ¶
func (m *ProductTagMutation) Where(ps ...predicate.ProductTag)
Where appends a list predicates to the ProductTagMutation builder.
func (*ProductTagMutation) WhereP ¶
func (m *ProductTagMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the ProductTagMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type ProductTagPageList ¶
type ProductTagPageList struct { List []*ProductTag `json:"list"` PageDetails *PageDetails `json:"pageDetails"` }
ProductTagPageList is ProductTag PageList result.
type ProductTagPager ¶
type ProductTagPager struct { Order producttag.OrderOption Filter func(*ProductTagQuery) (*ProductTagQuery, error) }
func (*ProductTagPager) ApplyFilter ¶
func (p *ProductTagPager) ApplyFilter(query *ProductTagQuery) (*ProductTagQuery, error)
type ProductTagPaginateOption ¶
type ProductTagPaginateOption func(*ProductTagPager)
ProductTagPaginateOption enables pagination customization.
type ProductTagQuery ¶
type ProductTagQuery struct {
// contains filtered or unexported fields
}
ProductTagQuery is the builder for querying ProductTag entities.
func (*ProductTagQuery) Aggregate ¶
func (ptq *ProductTagQuery) Aggregate(fns ...AggregateFunc) *ProductTagSelect
Aggregate returns a ProductTagSelect configured with the given aggregations.
func (*ProductTagQuery) All ¶
func (ptq *ProductTagQuery) All(ctx context.Context) ([]*ProductTag, error)
All executes the query and returns a list of ProductTags.
func (*ProductTagQuery) AllX ¶
func (ptq *ProductTagQuery) AllX(ctx context.Context) []*ProductTag
AllX is like All, but panics if an error occurs.
func (*ProductTagQuery) Clone ¶
func (ptq *ProductTagQuery) Clone() *ProductTagQuery
Clone returns a duplicate of the ProductTagQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*ProductTagQuery) Count ¶
func (ptq *ProductTagQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*ProductTagQuery) CountX ¶
func (ptq *ProductTagQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*ProductTagQuery) ExecContext ¶
func (c *ProductTagQuery) 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 (*ProductTagQuery) Exist ¶
func (ptq *ProductTagQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*ProductTagQuery) ExistX ¶
func (ptq *ProductTagQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*ProductTagQuery) First ¶
func (ptq *ProductTagQuery) First(ctx context.Context) (*ProductTag, error)
First returns the first ProductTag entity from the query. Returns a *NotFoundError when no ProductTag was found.
func (*ProductTagQuery) FirstID ¶
func (ptq *ProductTagQuery) FirstID(ctx context.Context) (id uint64, err error)
FirstID returns the first ProductTag ID from the query. Returns a *NotFoundError when no ProductTag ID was found.
func (*ProductTagQuery) FirstIDX ¶
func (ptq *ProductTagQuery) FirstIDX(ctx context.Context) uint64
FirstIDX is like FirstID, but panics if an error occurs.
func (*ProductTagQuery) FirstX ¶
func (ptq *ProductTagQuery) FirstX(ctx context.Context) *ProductTag
FirstX is like First, but panics if an error occurs.
func (*ProductTagQuery) GroupBy ¶
func (ptq *ProductTagQuery) GroupBy(field string, fields ...string) *ProductTagGroupBy
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.ProductTag.Query(). GroupBy(producttag.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*ProductTagQuery) IDs ¶
func (ptq *ProductTagQuery) IDs(ctx context.Context) (ids []uint64, err error)
IDs executes the query and returns a list of ProductTag IDs.
func (*ProductTagQuery) IDsX ¶
func (ptq *ProductTagQuery) IDsX(ctx context.Context) []uint64
IDsX is like IDs, but panics if an error occurs.
func (*ProductTagQuery) Limit ¶
func (ptq *ProductTagQuery) Limit(limit int) *ProductTagQuery
Limit the number of records to be returned by this query.
func (*ProductTagQuery) Modify ¶
func (ptq *ProductTagQuery) Modify(modifiers ...func(s *sql.Selector)) *ProductTagSelect
Modify adds a query modifier for attaching custom logic to queries.
func (*ProductTagQuery) Offset ¶
func (ptq *ProductTagQuery) Offset(offset int) *ProductTagQuery
Offset to start from.
func (*ProductTagQuery) Only ¶
func (ptq *ProductTagQuery) Only(ctx context.Context) (*ProductTag, error)
Only returns a single ProductTag entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one ProductTag entity is found. Returns a *NotFoundError when no ProductTag entities are found.
func (*ProductTagQuery) OnlyID ¶
func (ptq *ProductTagQuery) OnlyID(ctx context.Context) (id uint64, err error)
OnlyID is like Only, but returns the only ProductTag ID in the query. Returns a *NotSingularError when more than one ProductTag ID is found. Returns a *NotFoundError when no entities are found.
func (*ProductTagQuery) OnlyIDX ¶
func (ptq *ProductTagQuery) OnlyIDX(ctx context.Context) uint64
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*ProductTagQuery) OnlyX ¶
func (ptq *ProductTagQuery) OnlyX(ctx context.Context) *ProductTag
OnlyX is like Only, but panics if an error occurs.
func (*ProductTagQuery) Order ¶
func (ptq *ProductTagQuery) Order(o ...producttag.OrderOption) *ProductTagQuery
Order specifies how the records should be ordered.
func (*ProductTagQuery) Page ¶
func (pt *ProductTagQuery) Page( ctx context.Context, pageNum uint64, pageSize uint64, opts ...ProductTagPaginateOption, ) (*ProductTagPageList, error)
func (*ProductTagQuery) QueryContext ¶
func (c *ProductTagQuery) 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 (*ProductTagQuery) QueryProduct ¶
func (ptq *ProductTagQuery) QueryProduct() *ProductQuery
QueryProduct chains the current query on the "product" edge.
func (*ProductTagQuery) Select ¶
func (ptq *ProductTagQuery) Select(fields ...string) *ProductTagSelect
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.ProductTag.Query(). Select(producttag.FieldCreatedAt). Scan(ctx, &v)
func (*ProductTagQuery) Unique ¶
func (ptq *ProductTagQuery) Unique(unique bool) *ProductTagQuery
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 (*ProductTagQuery) Where ¶
func (ptq *ProductTagQuery) Where(ps ...predicate.ProductTag) *ProductTagQuery
Where adds a new predicate for the ProductTagQuery builder.
func (*ProductTagQuery) WithProduct ¶
func (ptq *ProductTagQuery) WithProduct(opts ...func(*ProductQuery)) *ProductTagQuery
WithProduct tells the query-builder to eager-load the nodes that are connected to the "product" edge. The optional arguments are used to configure the query builder of the edge.
type ProductTagSelect ¶
type ProductTagSelect struct { *ProductTagQuery // contains filtered or unexported fields }
ProductTagSelect is the builder for selecting fields of ProductTag entities.
func (*ProductTagSelect) Aggregate ¶
func (pts *ProductTagSelect) Aggregate(fns ...AggregateFunc) *ProductTagSelect
Aggregate adds the given aggregation functions to the selector query.
func (*ProductTagSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ProductTagSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (ProductTagSelect) ExecContext ¶
func (c ProductTagSelect) 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 (*ProductTagSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ProductTagSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ProductTagSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ProductTagSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ProductTagSelect) Modify ¶
func (pts *ProductTagSelect) Modify(modifiers ...func(s *sql.Selector)) *ProductTagSelect
Modify adds a query modifier for attaching custom logic to queries.
func (ProductTagSelect) QueryContext ¶
func (c ProductTagSelect) 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 (*ProductTagSelect) Scan ¶
func (pts *ProductTagSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ProductTagSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type ProductTagUpdate ¶
type ProductTagUpdate struct {
// contains filtered or unexported fields
}
ProductTagUpdate is the builder for updating ProductTag entities.
func (*ProductTagUpdate) AddSort ¶
func (ptu *ProductTagUpdate) AddSort(u int32) *ProductTagUpdate
AddSort adds u to the "sort" field.
func (*ProductTagUpdate) AddStatus ¶
func (ptu *ProductTagUpdate) AddStatus(u int8) *ProductTagUpdate
AddStatus adds u to the "status" field.
func (*ProductTagUpdate) ClearProduct ¶
func (ptu *ProductTagUpdate) ClearProduct() *ProductTagUpdate
ClearProduct clears the "product" edge to the Product entity.
func (*ProductTagUpdate) ClearStatus ¶
func (ptu *ProductTagUpdate) ClearStatus() *ProductTagUpdate
ClearStatus clears the value of the "status" field.
func (*ProductTagUpdate) Exec ¶
func (ptu *ProductTagUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*ProductTagUpdate) ExecContext ¶
func (c *ProductTagUpdate) 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 (*ProductTagUpdate) ExecX ¶
func (ptu *ProductTagUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductTagUpdate) Modify ¶
func (ptu *ProductTagUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ProductTagUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*ProductTagUpdate) Mutation ¶
func (ptu *ProductTagUpdate) Mutation() *ProductTagMutation
Mutation returns the ProductTagMutation object of the builder.
func (*ProductTagUpdate) QueryContext ¶
func (c *ProductTagUpdate) 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 (*ProductTagUpdate) Save ¶
func (ptu *ProductTagUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*ProductTagUpdate) SaveX ¶
func (ptu *ProductTagUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*ProductTagUpdate) SetNillableProductID ¶
func (ptu *ProductTagUpdate) SetNillableProductID(id *uuid.UUID) *ProductTagUpdate
SetNillableProductID sets the "product" edge to the Product entity by ID if the given value is not nil.
func (*ProductTagUpdate) SetNillableProductKey ¶
func (ptu *ProductTagUpdate) SetNillableProductKey(s *string) *ProductTagUpdate
SetNillableProductKey sets the "productKey" field if the given value is not nil.
func (*ProductTagUpdate) SetNillableSort ¶
func (ptu *ProductTagUpdate) SetNillableSort(u *uint32) *ProductTagUpdate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*ProductTagUpdate) SetNillableStatus ¶
func (ptu *ProductTagUpdate) SetNillableStatus(u *uint8) *ProductTagUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*ProductTagUpdate) SetNillableTagKey ¶
func (ptu *ProductTagUpdate) SetNillableTagKey(s *string) *ProductTagUpdate
SetNillableTagKey sets the "tagKey" field if the given value is not nil.
func (*ProductTagUpdate) SetNillableTagValue ¶
func (ptu *ProductTagUpdate) SetNillableTagValue(s *string) *ProductTagUpdate
SetNillableTagValue sets the "tagValue" field if the given value is not nil.
func (*ProductTagUpdate) SetNotNilProductKey ¶
func (pt *ProductTagUpdate) SetNotNilProductKey(value *string) *ProductTagUpdate
set field if value's pointer is not nil.
func (*ProductTagUpdate) SetNotNilSort ¶
func (pt *ProductTagUpdate) SetNotNilSort(value *uint32) *ProductTagUpdate
set field if value's pointer is not nil.
func (*ProductTagUpdate) SetNotNilStatus ¶
func (pt *ProductTagUpdate) SetNotNilStatus(value *uint8) *ProductTagUpdate
set field if value's pointer is not nil.
func (*ProductTagUpdate) SetNotNilTagKey ¶
func (pt *ProductTagUpdate) SetNotNilTagKey(value *string) *ProductTagUpdate
set field if value's pointer is not nil.
func (*ProductTagUpdate) SetNotNilTagValue ¶
func (pt *ProductTagUpdate) SetNotNilTagValue(value *string) *ProductTagUpdate
set field if value's pointer is not nil.
func (*ProductTagUpdate) SetNotNilUpdatedAt ¶
func (pt *ProductTagUpdate) SetNotNilUpdatedAt(value *time.Time) *ProductTagUpdate
set field if value's pointer is not nil.
func (*ProductTagUpdate) SetProduct ¶
func (ptu *ProductTagUpdate) SetProduct(p *Product) *ProductTagUpdate
SetProduct sets the "product" edge to the Product entity.
func (*ProductTagUpdate) SetProductID ¶
func (ptu *ProductTagUpdate) SetProductID(id uuid.UUID) *ProductTagUpdate
SetProductID sets the "product" edge to the Product entity by ID.
func (*ProductTagUpdate) SetProductKey ¶
func (ptu *ProductTagUpdate) SetProductKey(s string) *ProductTagUpdate
SetProductKey sets the "productKey" field.
func (*ProductTagUpdate) SetSort ¶
func (ptu *ProductTagUpdate) SetSort(u uint32) *ProductTagUpdate
SetSort sets the "sort" field.
func (*ProductTagUpdate) SetStatus ¶
func (ptu *ProductTagUpdate) SetStatus(u uint8) *ProductTagUpdate
SetStatus sets the "status" field.
func (*ProductTagUpdate) SetTagKey ¶
func (ptu *ProductTagUpdate) SetTagKey(s string) *ProductTagUpdate
SetTagKey sets the "tagKey" field.
func (*ProductTagUpdate) SetTagValue ¶
func (ptu *ProductTagUpdate) SetTagValue(s string) *ProductTagUpdate
SetTagValue sets the "tagValue" field.
func (*ProductTagUpdate) SetUpdatedAt ¶
func (ptu *ProductTagUpdate) SetUpdatedAt(t time.Time) *ProductTagUpdate
SetUpdatedAt sets the "updated_at" field.
func (*ProductTagUpdate) Where ¶
func (ptu *ProductTagUpdate) Where(ps ...predicate.ProductTag) *ProductTagUpdate
Where appends a list predicates to the ProductTagUpdate builder.
type ProductTagUpdateOne ¶
type ProductTagUpdateOne struct {
// contains filtered or unexported fields
}
ProductTagUpdateOne is the builder for updating a single ProductTag entity.
func (*ProductTagUpdateOne) AddSort ¶
func (ptuo *ProductTagUpdateOne) AddSort(u int32) *ProductTagUpdateOne
AddSort adds u to the "sort" field.
func (*ProductTagUpdateOne) AddStatus ¶
func (ptuo *ProductTagUpdateOne) AddStatus(u int8) *ProductTagUpdateOne
AddStatus adds u to the "status" field.
func (*ProductTagUpdateOne) ClearProduct ¶
func (ptuo *ProductTagUpdateOne) ClearProduct() *ProductTagUpdateOne
ClearProduct clears the "product" edge to the Product entity.
func (*ProductTagUpdateOne) ClearStatus ¶
func (ptuo *ProductTagUpdateOne) ClearStatus() *ProductTagUpdateOne
ClearStatus clears the value of the "status" field.
func (*ProductTagUpdateOne) Exec ¶
func (ptuo *ProductTagUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*ProductTagUpdateOne) ExecContext ¶
func (c *ProductTagUpdateOne) 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 (*ProductTagUpdateOne) ExecX ¶
func (ptuo *ProductTagUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductTagUpdateOne) Modify ¶
func (ptuo *ProductTagUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ProductTagUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*ProductTagUpdateOne) Mutation ¶
func (ptuo *ProductTagUpdateOne) Mutation() *ProductTagMutation
Mutation returns the ProductTagMutation object of the builder.
func (*ProductTagUpdateOne) QueryContext ¶
func (c *ProductTagUpdateOne) 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 (*ProductTagUpdateOne) Save ¶
func (ptuo *ProductTagUpdateOne) Save(ctx context.Context) (*ProductTag, error)
Save executes the query and returns the updated ProductTag entity.
func (*ProductTagUpdateOne) SaveX ¶
func (ptuo *ProductTagUpdateOne) SaveX(ctx context.Context) *ProductTag
SaveX is like Save, but panics if an error occurs.
func (*ProductTagUpdateOne) Select ¶
func (ptuo *ProductTagUpdateOne) Select(field string, fields ...string) *ProductTagUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*ProductTagUpdateOne) SetNillableProductID ¶
func (ptuo *ProductTagUpdateOne) SetNillableProductID(id *uuid.UUID) *ProductTagUpdateOne
SetNillableProductID sets the "product" edge to the Product entity by ID if the given value is not nil.
func (*ProductTagUpdateOne) SetNillableProductKey ¶
func (ptuo *ProductTagUpdateOne) SetNillableProductKey(s *string) *ProductTagUpdateOne
SetNillableProductKey sets the "productKey" field if the given value is not nil.
func (*ProductTagUpdateOne) SetNillableSort ¶
func (ptuo *ProductTagUpdateOne) SetNillableSort(u *uint32) *ProductTagUpdateOne
SetNillableSort sets the "sort" field if the given value is not nil.
func (*ProductTagUpdateOne) SetNillableStatus ¶
func (ptuo *ProductTagUpdateOne) SetNillableStatus(u *uint8) *ProductTagUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*ProductTagUpdateOne) SetNillableTagKey ¶
func (ptuo *ProductTagUpdateOne) SetNillableTagKey(s *string) *ProductTagUpdateOne
SetNillableTagKey sets the "tagKey" field if the given value is not nil.
func (*ProductTagUpdateOne) SetNillableTagValue ¶
func (ptuo *ProductTagUpdateOne) SetNillableTagValue(s *string) *ProductTagUpdateOne
SetNillableTagValue sets the "tagValue" field if the given value is not nil.
func (*ProductTagUpdateOne) SetNotNilProductKey ¶
func (pt *ProductTagUpdateOne) SetNotNilProductKey(value *string) *ProductTagUpdateOne
set field if value's pointer is not nil.
func (*ProductTagUpdateOne) SetNotNilSort ¶
func (pt *ProductTagUpdateOne) SetNotNilSort(value *uint32) *ProductTagUpdateOne
set field if value's pointer is not nil.
func (*ProductTagUpdateOne) SetNotNilStatus ¶
func (pt *ProductTagUpdateOne) SetNotNilStatus(value *uint8) *ProductTagUpdateOne
set field if value's pointer is not nil.
func (*ProductTagUpdateOne) SetNotNilTagKey ¶
func (pt *ProductTagUpdateOne) SetNotNilTagKey(value *string) *ProductTagUpdateOne
set field if value's pointer is not nil.
func (*ProductTagUpdateOne) SetNotNilTagValue ¶
func (pt *ProductTagUpdateOne) SetNotNilTagValue(value *string) *ProductTagUpdateOne
set field if value's pointer is not nil.
func (*ProductTagUpdateOne) SetNotNilUpdatedAt ¶
func (pt *ProductTagUpdateOne) SetNotNilUpdatedAt(value *time.Time) *ProductTagUpdateOne
set field if value's pointer is not nil.
func (*ProductTagUpdateOne) SetProduct ¶
func (ptuo *ProductTagUpdateOne) SetProduct(p *Product) *ProductTagUpdateOne
SetProduct sets the "product" edge to the Product entity.
func (*ProductTagUpdateOne) SetProductID ¶
func (ptuo *ProductTagUpdateOne) SetProductID(id uuid.UUID) *ProductTagUpdateOne
SetProductID sets the "product" edge to the Product entity by ID.
func (*ProductTagUpdateOne) SetProductKey ¶
func (ptuo *ProductTagUpdateOne) SetProductKey(s string) *ProductTagUpdateOne
SetProductKey sets the "productKey" field.
func (*ProductTagUpdateOne) SetSort ¶
func (ptuo *ProductTagUpdateOne) SetSort(u uint32) *ProductTagUpdateOne
SetSort sets the "sort" field.
func (*ProductTagUpdateOne) SetStatus ¶
func (ptuo *ProductTagUpdateOne) SetStatus(u uint8) *ProductTagUpdateOne
SetStatus sets the "status" field.
func (*ProductTagUpdateOne) SetTagKey ¶
func (ptuo *ProductTagUpdateOne) SetTagKey(s string) *ProductTagUpdateOne
SetTagKey sets the "tagKey" field.
func (*ProductTagUpdateOne) SetTagValue ¶
func (ptuo *ProductTagUpdateOne) SetTagValue(s string) *ProductTagUpdateOne
SetTagValue sets the "tagValue" field.
func (*ProductTagUpdateOne) SetUpdatedAt ¶
func (ptuo *ProductTagUpdateOne) SetUpdatedAt(t time.Time) *ProductTagUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*ProductTagUpdateOne) Where ¶
func (ptuo *ProductTagUpdateOne) Where(ps ...predicate.ProductTag) *ProductTagUpdateOne
Where appends a list predicates to the ProductTagUpdate builder.
type ProductTagUpsert ¶
ProductTagUpsert is the "OnConflict" setter.
func (*ProductTagUpsert) AddSort ¶
func (u *ProductTagUpsert) AddSort(v uint32) *ProductTagUpsert
AddSort adds v to the "sort" field.
func (*ProductTagUpsert) AddStatus ¶
func (u *ProductTagUpsert) AddStatus(v uint8) *ProductTagUpsert
AddStatus adds v to the "status" field.
func (*ProductTagUpsert) ClearStatus ¶
func (u *ProductTagUpsert) ClearStatus() *ProductTagUpsert
ClearStatus clears the value of the "status" field.
func (*ProductTagUpsert) SetProductKey ¶
func (u *ProductTagUpsert) SetProductKey(v string) *ProductTagUpsert
SetProductKey sets the "productKey" field.
func (*ProductTagUpsert) SetSort ¶
func (u *ProductTagUpsert) SetSort(v uint32) *ProductTagUpsert
SetSort sets the "sort" field.
func (*ProductTagUpsert) SetStatus ¶
func (u *ProductTagUpsert) SetStatus(v uint8) *ProductTagUpsert
SetStatus sets the "status" field.
func (*ProductTagUpsert) SetTagKey ¶
func (u *ProductTagUpsert) SetTagKey(v string) *ProductTagUpsert
SetTagKey sets the "tagKey" field.
func (*ProductTagUpsert) SetTagValue ¶
func (u *ProductTagUpsert) SetTagValue(v string) *ProductTagUpsert
SetTagValue sets the "tagValue" field.
func (*ProductTagUpsert) SetUpdatedAt ¶
func (u *ProductTagUpsert) SetUpdatedAt(v time.Time) *ProductTagUpsert
SetUpdatedAt sets the "updated_at" field.
func (*ProductTagUpsert) UpdateProductKey ¶
func (u *ProductTagUpsert) UpdateProductKey() *ProductTagUpsert
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*ProductTagUpsert) UpdateSort ¶
func (u *ProductTagUpsert) UpdateSort() *ProductTagUpsert
UpdateSort sets the "sort" field to the value that was provided on create.
func (*ProductTagUpsert) UpdateStatus ¶
func (u *ProductTagUpsert) UpdateStatus() *ProductTagUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*ProductTagUpsert) UpdateTagKey ¶
func (u *ProductTagUpsert) UpdateTagKey() *ProductTagUpsert
UpdateTagKey sets the "tagKey" field to the value that was provided on create.
func (*ProductTagUpsert) UpdateTagValue ¶
func (u *ProductTagUpsert) UpdateTagValue() *ProductTagUpsert
UpdateTagValue sets the "tagValue" field to the value that was provided on create.
func (*ProductTagUpsert) UpdateUpdatedAt ¶
func (u *ProductTagUpsert) UpdateUpdatedAt() *ProductTagUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type ProductTagUpsertBulk ¶
type ProductTagUpsertBulk struct {
// contains filtered or unexported fields
}
ProductTagUpsertBulk is the builder for "upsert"-ing a bulk of ProductTag nodes.
func (*ProductTagUpsertBulk) AddSort ¶
func (u *ProductTagUpsertBulk) AddSort(v uint32) *ProductTagUpsertBulk
AddSort adds v to the "sort" field.
func (*ProductTagUpsertBulk) AddStatus ¶
func (u *ProductTagUpsertBulk) AddStatus(v uint8) *ProductTagUpsertBulk
AddStatus adds v to the "status" field.
func (*ProductTagUpsertBulk) ClearStatus ¶
func (u *ProductTagUpsertBulk) ClearStatus() *ProductTagUpsertBulk
ClearStatus clears the value of the "status" field.
func (*ProductTagUpsertBulk) DoNothing ¶
func (u *ProductTagUpsertBulk) DoNothing() *ProductTagUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ProductTagUpsertBulk) Exec ¶
func (u *ProductTagUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ProductTagUpsertBulk) ExecX ¶
func (u *ProductTagUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductTagUpsertBulk) Ignore ¶
func (u *ProductTagUpsertBulk) Ignore() *ProductTagUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.ProductTag.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*ProductTagUpsertBulk) SetProductKey ¶
func (u *ProductTagUpsertBulk) SetProductKey(v string) *ProductTagUpsertBulk
SetProductKey sets the "productKey" field.
func (*ProductTagUpsertBulk) SetSort ¶
func (u *ProductTagUpsertBulk) SetSort(v uint32) *ProductTagUpsertBulk
SetSort sets the "sort" field.
func (*ProductTagUpsertBulk) SetStatus ¶
func (u *ProductTagUpsertBulk) SetStatus(v uint8) *ProductTagUpsertBulk
SetStatus sets the "status" field.
func (*ProductTagUpsertBulk) SetTagKey ¶
func (u *ProductTagUpsertBulk) SetTagKey(v string) *ProductTagUpsertBulk
SetTagKey sets the "tagKey" field.
func (*ProductTagUpsertBulk) SetTagValue ¶
func (u *ProductTagUpsertBulk) SetTagValue(v string) *ProductTagUpsertBulk
SetTagValue sets the "tagValue" field.
func (*ProductTagUpsertBulk) SetUpdatedAt ¶
func (u *ProductTagUpsertBulk) SetUpdatedAt(v time.Time) *ProductTagUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*ProductTagUpsertBulk) Update ¶
func (u *ProductTagUpsertBulk) Update(set func(*ProductTagUpsert)) *ProductTagUpsertBulk
Update allows overriding fields `UPDATE` values. See the ProductTagCreateBulk.OnConflict documentation for more info.
func (*ProductTagUpsertBulk) UpdateNewValues ¶
func (u *ProductTagUpsertBulk) UpdateNewValues() *ProductTagUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.ProductTag.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(producttag.FieldID) }), ). Exec(ctx)
func (*ProductTagUpsertBulk) UpdateProductKey ¶
func (u *ProductTagUpsertBulk) UpdateProductKey() *ProductTagUpsertBulk
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*ProductTagUpsertBulk) UpdateSort ¶
func (u *ProductTagUpsertBulk) UpdateSort() *ProductTagUpsertBulk
UpdateSort sets the "sort" field to the value that was provided on create.
func (*ProductTagUpsertBulk) UpdateStatus ¶
func (u *ProductTagUpsertBulk) UpdateStatus() *ProductTagUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*ProductTagUpsertBulk) UpdateTagKey ¶
func (u *ProductTagUpsertBulk) UpdateTagKey() *ProductTagUpsertBulk
UpdateTagKey sets the "tagKey" field to the value that was provided on create.
func (*ProductTagUpsertBulk) UpdateTagValue ¶
func (u *ProductTagUpsertBulk) UpdateTagValue() *ProductTagUpsertBulk
UpdateTagValue sets the "tagValue" field to the value that was provided on create.
func (*ProductTagUpsertBulk) UpdateUpdatedAt ¶
func (u *ProductTagUpsertBulk) UpdateUpdatedAt() *ProductTagUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type ProductTagUpsertOne ¶
type ProductTagUpsertOne struct {
// contains filtered or unexported fields
}
ProductTagUpsertOne is the builder for "upsert"-ing
one ProductTag node.
func (*ProductTagUpsertOne) AddSort ¶
func (u *ProductTagUpsertOne) AddSort(v uint32) *ProductTagUpsertOne
AddSort adds v to the "sort" field.
func (*ProductTagUpsertOne) AddStatus ¶
func (u *ProductTagUpsertOne) AddStatus(v uint8) *ProductTagUpsertOne
AddStatus adds v to the "status" field.
func (*ProductTagUpsertOne) ClearStatus ¶
func (u *ProductTagUpsertOne) ClearStatus() *ProductTagUpsertOne
ClearStatus clears the value of the "status" field.
func (*ProductTagUpsertOne) DoNothing ¶
func (u *ProductTagUpsertOne) DoNothing() *ProductTagUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ProductTagUpsertOne) Exec ¶
func (u *ProductTagUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*ProductTagUpsertOne) ExecX ¶
func (u *ProductTagUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductTagUpsertOne) ID ¶
func (u *ProductTagUpsertOne) ID(ctx context.Context) (id uint64, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*ProductTagUpsertOne) IDX ¶
func (u *ProductTagUpsertOne) IDX(ctx context.Context) uint64
IDX is like ID, but panics if an error occurs.
func (*ProductTagUpsertOne) Ignore ¶
func (u *ProductTagUpsertOne) Ignore() *ProductTagUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.ProductTag.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*ProductTagUpsertOne) SetProductKey ¶
func (u *ProductTagUpsertOne) SetProductKey(v string) *ProductTagUpsertOne
SetProductKey sets the "productKey" field.
func (*ProductTagUpsertOne) SetSort ¶
func (u *ProductTagUpsertOne) SetSort(v uint32) *ProductTagUpsertOne
SetSort sets the "sort" field.
func (*ProductTagUpsertOne) SetStatus ¶
func (u *ProductTagUpsertOne) SetStatus(v uint8) *ProductTagUpsertOne
SetStatus sets the "status" field.
func (*ProductTagUpsertOne) SetTagKey ¶
func (u *ProductTagUpsertOne) SetTagKey(v string) *ProductTagUpsertOne
SetTagKey sets the "tagKey" field.
func (*ProductTagUpsertOne) SetTagValue ¶
func (u *ProductTagUpsertOne) SetTagValue(v string) *ProductTagUpsertOne
SetTagValue sets the "tagValue" field.
func (*ProductTagUpsertOne) SetUpdatedAt ¶
func (u *ProductTagUpsertOne) SetUpdatedAt(v time.Time) *ProductTagUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*ProductTagUpsertOne) Update ¶
func (u *ProductTagUpsertOne) Update(set func(*ProductTagUpsert)) *ProductTagUpsertOne
Update allows overriding fields `UPDATE` values. See the ProductTagCreate.OnConflict documentation for more info.
func (*ProductTagUpsertOne) UpdateNewValues ¶
func (u *ProductTagUpsertOne) UpdateNewValues() *ProductTagUpsertOne
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.ProductTag.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(producttag.FieldID) }), ). Exec(ctx)
func (*ProductTagUpsertOne) UpdateProductKey ¶
func (u *ProductTagUpsertOne) UpdateProductKey() *ProductTagUpsertOne
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*ProductTagUpsertOne) UpdateSort ¶
func (u *ProductTagUpsertOne) UpdateSort() *ProductTagUpsertOne
UpdateSort sets the "sort" field to the value that was provided on create.
func (*ProductTagUpsertOne) UpdateStatus ¶
func (u *ProductTagUpsertOne) UpdateStatus() *ProductTagUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*ProductTagUpsertOne) UpdateTagKey ¶
func (u *ProductTagUpsertOne) UpdateTagKey() *ProductTagUpsertOne
UpdateTagKey sets the "tagKey" field to the value that was provided on create.
func (*ProductTagUpsertOne) UpdateTagValue ¶
func (u *ProductTagUpsertOne) UpdateTagValue() *ProductTagUpsertOne
UpdateTagValue sets the "tagValue" field to the value that was provided on create.
func (*ProductTagUpsertOne) UpdateUpdatedAt ¶
func (u *ProductTagUpsertOne) UpdateUpdatedAt() *ProductTagUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type ProductUpdate ¶
type ProductUpdate struct {
// contains filtered or unexported fields
}
ProductUpdate is the builder for updating Product entities.
func (*ProductUpdate) AddDataFormat ¶
func (pu *ProductUpdate) AddDataFormat(i int32) *ProductUpdate
AddDataFormat adds i to the "dataFormat" field.
func (*ProductUpdate) AddDeviceCount ¶
func (pu *ProductUpdate) AddDeviceCount(i int32) *ProductUpdate
AddDeviceCount adds i to the "deviceCount" field.
func (*ProductUpdate) AddDeviceIDs ¶
func (pu *ProductUpdate) AddDeviceIDs(ids ...uuid.UUID) *ProductUpdate
AddDeviceIDs adds the "devices" edge to the Device entity by IDs.
func (*ProductUpdate) AddDevices ¶
func (pu *ProductUpdate) AddDevices(d ...*Device) *ProductUpdate
AddDevices adds the "devices" edges to the Device entity.
func (*ProductUpdate) AddEventIDs ¶
func (pu *ProductUpdate) AddEventIDs(ids ...uint64) *ProductUpdate
AddEventIDs adds the "events" edge to the ProductEvent entity by IDs.
func (*ProductUpdate) AddEvents ¶
func (pu *ProductUpdate) AddEvents(p ...*ProductEvent) *ProductUpdate
AddEvents adds the "events" edges to the ProductEvent entity.
func (*ProductUpdate) AddGmtCreate ¶
func (pu *ProductUpdate) AddGmtCreate(i int64) *ProductUpdate
AddGmtCreate adds i to the "gmtCreate" field.
func (*ProductUpdate) AddNetType ¶
func (pu *ProductUpdate) AddNetType(i int32) *ProductUpdate
AddNetType adds i to the "netType" field.
func (*ProductUpdate) AddNodeType ¶
func (pu *ProductUpdate) AddNodeType(i int32) *ProductUpdate
AddNodeType adds i to the "nodeType" field.
func (*ProductUpdate) AddProperties ¶
func (pu *ProductUpdate) AddProperties(p ...*ProductProperty) *ProductUpdate
AddProperties adds the "properties" edges to the ProductProperty entity.
func (*ProductUpdate) AddPropertyIDs ¶
func (pu *ProductUpdate) AddPropertyIDs(ids ...uint64) *ProductUpdate
AddPropertyIDs adds the "properties" edge to the ProductProperty entity by IDs.
func (*ProductUpdate) AddServiceIDs ¶
func (pu *ProductUpdate) AddServiceIDs(ids ...uint64) *ProductUpdate
AddServiceIDs adds the "services" edge to the ProductService entity by IDs.
func (*ProductUpdate) AddServices ¶
func (pu *ProductUpdate) AddServices(p ...*ProductService) *ProductUpdate
AddServices adds the "services" edges to the ProductService entity.
func (*ProductUpdate) AddSort ¶
func (pu *ProductUpdate) AddSort(u int32) *ProductUpdate
AddSort adds u to the "sort" field.
func (*ProductUpdate) AddStatus ¶
func (pu *ProductUpdate) AddStatus(u int8) *ProductUpdate
AddStatus adds u to the "status" field.
func (*ProductUpdate) AddTagIDs ¶
func (pu *ProductUpdate) AddTagIDs(ids ...uint64) *ProductUpdate
AddTagIDs adds the "tags" edge to the ProductTag entity by IDs.
func (*ProductUpdate) AddTags ¶
func (pu *ProductUpdate) AddTags(p ...*ProductTag) *ProductUpdate
AddTags adds the "tags" edges to the ProductTag entity.
func (*ProductUpdate) AddValidateType ¶
func (pu *ProductUpdate) AddValidateType(i int32) *ProductUpdate
AddValidateType adds i to the "validateType" field.
func (*ProductUpdate) ClearAliyunCommodityCode ¶
func (pu *ProductUpdate) ClearAliyunCommodityCode() *ProductUpdate
ClearAliyunCommodityCode clears the value of the "aliyunCommodityCode" field.
func (*ProductUpdate) ClearAuthType ¶
func (pu *ProductUpdate) ClearAuthType() *ProductUpdate
ClearAuthType clears the value of the "authType" field.
func (*ProductUpdate) ClearCategoryKey ¶
func (pu *ProductUpdate) ClearCategoryKey() *ProductUpdate
ClearCategoryKey clears the value of the "categoryKey" field.
func (*ProductUpdate) ClearCategoryName ¶
func (pu *ProductUpdate) ClearCategoryName() *ProductUpdate
ClearCategoryName clears the value of the "categoryName" field.
func (*ProductUpdate) ClearDataFormat ¶
func (pu *ProductUpdate) ClearDataFormat() *ProductUpdate
ClearDataFormat clears the value of the "dataFormat" field.
func (*ProductUpdate) ClearDescription ¶
func (pu *ProductUpdate) ClearDescription() *ProductUpdate
ClearDescription clears the value of the "description" field.
func (*ProductUpdate) ClearDevices ¶
func (pu *ProductUpdate) ClearDevices() *ProductUpdate
ClearDevices clears all "devices" edges to the Device entity.
func (*ProductUpdate) ClearEvents ¶
func (pu *ProductUpdate) ClearEvents() *ProductUpdate
ClearEvents clears all "events" edges to the ProductEvent entity.
func (*ProductUpdate) ClearGmtCreate ¶
func (pu *ProductUpdate) ClearGmtCreate() *ProductUpdate
ClearGmtCreate clears the value of the "gmtCreate" field.
func (*ProductUpdate) ClearId2 ¶
func (pu *ProductUpdate) ClearId2() *ProductUpdate
ClearId2 clears the value of the "id2" field.
func (*ProductUpdate) ClearNetType ¶
func (pu *ProductUpdate) ClearNetType() *ProductUpdate
ClearNetType clears the value of the "netType" field.
func (*ProductUpdate) ClearOwner ¶
func (pu *ProductUpdate) ClearOwner() *ProductUpdate
ClearOwner clears the value of the "owner" field.
func (*ProductUpdate) ClearProductSecret ¶
func (pu *ProductUpdate) ClearProductSecret() *ProductUpdate
ClearProductSecret clears the value of the "productSecret" field.
func (*ProductUpdate) ClearProductStatus ¶
func (pu *ProductUpdate) ClearProductStatus() *ProductUpdate
ClearProductStatus clears the value of the "productStatus" field.
func (*ProductUpdate) ClearProperties ¶
func (pu *ProductUpdate) ClearProperties() *ProductUpdate
ClearProperties clears all "properties" edges to the ProductProperty entity.
func (*ProductUpdate) ClearProtocolType ¶
func (pu *ProductUpdate) ClearProtocolType() *ProductUpdate
ClearProtocolType clears the value of the "protocolType" field.
func (*ProductUpdate) ClearServices ¶
func (pu *ProductUpdate) ClearServices() *ProductUpdate
ClearServices clears all "services" edges to the ProductService entity.
func (*ProductUpdate) ClearStatus ¶
func (pu *ProductUpdate) ClearStatus() *ProductUpdate
ClearStatus clears the value of the "status" field.
func (*ProductUpdate) ClearTags ¶
func (pu *ProductUpdate) ClearTags() *ProductUpdate
ClearTags clears all "tags" edges to the ProductTag entity.
func (*ProductUpdate) ClearValidateType ¶
func (pu *ProductUpdate) ClearValidateType() *ProductUpdate
ClearValidateType clears the value of the "validateType" field.
func (*ProductUpdate) Exec ¶
func (pu *ProductUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*ProductUpdate) ExecContext ¶
func (c *ProductUpdate) 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 (*ProductUpdate) ExecX ¶
func (pu *ProductUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductUpdate) Modify ¶
func (pu *ProductUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ProductUpdate
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*ProductUpdate) Mutation ¶
func (pu *ProductUpdate) Mutation() *ProductMutation
Mutation returns the ProductMutation object of the builder.
func (*ProductUpdate) QueryContext ¶
func (c *ProductUpdate) 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 (*ProductUpdate) RemoveDeviceIDs ¶
func (pu *ProductUpdate) RemoveDeviceIDs(ids ...uuid.UUID) *ProductUpdate
RemoveDeviceIDs removes the "devices" edge to Device entities by IDs.
func (*ProductUpdate) RemoveDevices ¶
func (pu *ProductUpdate) RemoveDevices(d ...*Device) *ProductUpdate
RemoveDevices removes "devices" edges to Device entities.
func (*ProductUpdate) RemoveEventIDs ¶
func (pu *ProductUpdate) RemoveEventIDs(ids ...uint64) *ProductUpdate
RemoveEventIDs removes the "events" edge to ProductEvent entities by IDs.
func (*ProductUpdate) RemoveEvents ¶
func (pu *ProductUpdate) RemoveEvents(p ...*ProductEvent) *ProductUpdate
RemoveEvents removes "events" edges to ProductEvent entities.
func (*ProductUpdate) RemoveProperties ¶
func (pu *ProductUpdate) RemoveProperties(p ...*ProductProperty) *ProductUpdate
RemoveProperties removes "properties" edges to ProductProperty entities.
func (*ProductUpdate) RemovePropertyIDs ¶
func (pu *ProductUpdate) RemovePropertyIDs(ids ...uint64) *ProductUpdate
RemovePropertyIDs removes the "properties" edge to ProductProperty entities by IDs.
func (*ProductUpdate) RemoveServiceIDs ¶
func (pu *ProductUpdate) RemoveServiceIDs(ids ...uint64) *ProductUpdate
RemoveServiceIDs removes the "services" edge to ProductService entities by IDs.
func (*ProductUpdate) RemoveServices ¶
func (pu *ProductUpdate) RemoveServices(p ...*ProductService) *ProductUpdate
RemoveServices removes "services" edges to ProductService entities.
func (*ProductUpdate) RemoveTagIDs ¶
func (pu *ProductUpdate) RemoveTagIDs(ids ...uint64) *ProductUpdate
RemoveTagIDs removes the "tags" edge to ProductTag entities by IDs.
func (*ProductUpdate) RemoveTags ¶
func (pu *ProductUpdate) RemoveTags(p ...*ProductTag) *ProductUpdate
RemoveTags removes "tags" edges to ProductTag entities.
func (*ProductUpdate) Save ¶
func (pu *ProductUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*ProductUpdate) SaveX ¶
func (pu *ProductUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*ProductUpdate) SetAliyunCommodityCode ¶
func (pu *ProductUpdate) SetAliyunCommodityCode(s string) *ProductUpdate
SetAliyunCommodityCode sets the "aliyunCommodityCode" field.
func (*ProductUpdate) SetAuthType ¶
func (pu *ProductUpdate) SetAuthType(s string) *ProductUpdate
SetAuthType sets the "authType" field.
func (*ProductUpdate) SetCategoryKey ¶
func (pu *ProductUpdate) SetCategoryKey(s string) *ProductUpdate
SetCategoryKey sets the "categoryKey" field.
func (*ProductUpdate) SetCategoryName ¶
func (pu *ProductUpdate) SetCategoryName(s string) *ProductUpdate
SetCategoryName sets the "categoryName" field.
func (*ProductUpdate) SetDataFormat ¶
func (pu *ProductUpdate) SetDataFormat(i int32) *ProductUpdate
SetDataFormat sets the "dataFormat" field.
func (*ProductUpdate) SetDescription ¶
func (pu *ProductUpdate) SetDescription(s string) *ProductUpdate
SetDescription sets the "description" field.
func (*ProductUpdate) SetDeviceCount ¶
func (pu *ProductUpdate) SetDeviceCount(i int32) *ProductUpdate
SetDeviceCount sets the "deviceCount" field.
func (*ProductUpdate) SetGmtCreate ¶
func (pu *ProductUpdate) SetGmtCreate(i int64) *ProductUpdate
SetGmtCreate sets the "gmtCreate" field.
func (*ProductUpdate) SetId2 ¶
func (pu *ProductUpdate) SetId2(b bool) *ProductUpdate
SetId2 sets the "id2" field.
func (*ProductUpdate) SetNetType ¶
func (pu *ProductUpdate) SetNetType(i int32) *ProductUpdate
SetNetType sets the "netType" field.
func (*ProductUpdate) SetNillableAliyunCommodityCode ¶
func (pu *ProductUpdate) SetNillableAliyunCommodityCode(s *string) *ProductUpdate
SetNillableAliyunCommodityCode sets the "aliyunCommodityCode" field if the given value is not nil.
func (*ProductUpdate) SetNillableAuthType ¶
func (pu *ProductUpdate) SetNillableAuthType(s *string) *ProductUpdate
SetNillableAuthType sets the "authType" field if the given value is not nil.
func (*ProductUpdate) SetNillableCategoryKey ¶
func (pu *ProductUpdate) SetNillableCategoryKey(s *string) *ProductUpdate
SetNillableCategoryKey sets the "categoryKey" field if the given value is not nil.
func (*ProductUpdate) SetNillableCategoryName ¶
func (pu *ProductUpdate) SetNillableCategoryName(s *string) *ProductUpdate
SetNillableCategoryName sets the "categoryName" field if the given value is not nil.
func (*ProductUpdate) SetNillableDataFormat ¶
func (pu *ProductUpdate) SetNillableDataFormat(i *int32) *ProductUpdate
SetNillableDataFormat sets the "dataFormat" field if the given value is not nil.
func (*ProductUpdate) SetNillableDescription ¶
func (pu *ProductUpdate) SetNillableDescription(s *string) *ProductUpdate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*ProductUpdate) SetNillableDeviceCount ¶
func (pu *ProductUpdate) SetNillableDeviceCount(i *int32) *ProductUpdate
SetNillableDeviceCount sets the "deviceCount" field if the given value is not nil.
func (*ProductUpdate) SetNillableGmtCreate ¶
func (pu *ProductUpdate) SetNillableGmtCreate(i *int64) *ProductUpdate
SetNillableGmtCreate sets the "gmtCreate" field if the given value is not nil.
func (*ProductUpdate) SetNillableId2 ¶
func (pu *ProductUpdate) SetNillableId2(b *bool) *ProductUpdate
SetNillableId2 sets the "id2" field if the given value is not nil.
func (*ProductUpdate) SetNillableNetType ¶
func (pu *ProductUpdate) SetNillableNetType(i *int32) *ProductUpdate
SetNillableNetType sets the "netType" field if the given value is not nil.
func (*ProductUpdate) SetNillableNodeType ¶
func (pu *ProductUpdate) SetNillableNodeType(i *int32) *ProductUpdate
SetNillableNodeType sets the "nodeType" field if the given value is not nil.
func (*ProductUpdate) SetNillableOwner ¶
func (pu *ProductUpdate) SetNillableOwner(b *bool) *ProductUpdate
SetNillableOwner sets the "owner" field if the given value is not nil.
func (*ProductUpdate) SetNillableProductKey ¶
func (pu *ProductUpdate) SetNillableProductKey(s *string) *ProductUpdate
SetNillableProductKey sets the "productKey" field if the given value is not nil.
func (*ProductUpdate) SetNillableProductName ¶
func (pu *ProductUpdate) SetNillableProductName(s *string) *ProductUpdate
SetNillableProductName sets the "productName" field if the given value is not nil.
func (*ProductUpdate) SetNillableProductSecret ¶
func (pu *ProductUpdate) SetNillableProductSecret(s *string) *ProductUpdate
SetNillableProductSecret sets the "productSecret" field if the given value is not nil.
func (*ProductUpdate) SetNillableProductStatus ¶
func (pu *ProductUpdate) SetNillableProductStatus(s *string) *ProductUpdate
SetNillableProductStatus sets the "productStatus" field if the given value is not nil.
func (*ProductUpdate) SetNillableProtocolType ¶
func (pu *ProductUpdate) SetNillableProtocolType(s *string) *ProductUpdate
SetNillableProtocolType sets the "protocolType" field if the given value is not nil.
func (*ProductUpdate) SetNillableSort ¶
func (pu *ProductUpdate) SetNillableSort(u *uint32) *ProductUpdate
SetNillableSort sets the "sort" field if the given value is not nil.
func (*ProductUpdate) SetNillableStatus ¶
func (pu *ProductUpdate) SetNillableStatus(u *uint8) *ProductUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*ProductUpdate) SetNillableValidateType ¶
func (pu *ProductUpdate) SetNillableValidateType(i *int32) *ProductUpdate
SetNillableValidateType sets the "validateType" field if the given value is not nil.
func (*ProductUpdate) SetNodeType ¶
func (pu *ProductUpdate) SetNodeType(i int32) *ProductUpdate
SetNodeType sets the "nodeType" field.
func (*ProductUpdate) SetNotNilAliyunCommodityCode ¶
func (pr *ProductUpdate) SetNotNilAliyunCommodityCode(value *string) *ProductUpdate
set field if value's pointer is not nil.
func (*ProductUpdate) SetNotNilAuthType ¶
func (pr *ProductUpdate) SetNotNilAuthType(value *string) *ProductUpdate
set field if value's pointer is not nil.
func (*ProductUpdate) SetNotNilCategoryKey ¶
func (pr *ProductUpdate) SetNotNilCategoryKey(value *string) *ProductUpdate
set field if value's pointer is not nil.
func (*ProductUpdate) SetNotNilCategoryName ¶
func (pr *ProductUpdate) SetNotNilCategoryName(value *string) *ProductUpdate
set field if value's pointer is not nil.
func (*ProductUpdate) SetNotNilDataFormat ¶
func (pr *ProductUpdate) SetNotNilDataFormat(value *int32) *ProductUpdate
set field if value's pointer is not nil.
func (*ProductUpdate) SetNotNilDescription ¶
func (pr *ProductUpdate) SetNotNilDescription(value *string) *ProductUpdate
set field if value's pointer is not nil.
func (*ProductUpdate) SetNotNilDeviceCount ¶
func (pr *ProductUpdate) SetNotNilDeviceCount(value *int32) *ProductUpdate
set field if value's pointer is not nil.
func (*ProductUpdate) SetNotNilGmtCreate ¶
func (pr *ProductUpdate) SetNotNilGmtCreate(value *int64) *ProductUpdate
set field if value's pointer is not nil.
func (*ProductUpdate) SetNotNilId2 ¶
func (pr *ProductUpdate) SetNotNilId2(value *bool) *ProductUpdate
set field if value's pointer is not nil.
func (*ProductUpdate) SetNotNilNetType ¶
func (pr *ProductUpdate) SetNotNilNetType(value *int32) *ProductUpdate
set field if value's pointer is not nil.
func (*ProductUpdate) SetNotNilNodeType ¶
func (pr *ProductUpdate) SetNotNilNodeType(value *int32) *ProductUpdate
set field if value's pointer is not nil.
func (*ProductUpdate) SetNotNilOwner ¶
func (pr *ProductUpdate) SetNotNilOwner(value *bool) *ProductUpdate
set field if value's pointer is not nil.
func (*ProductUpdate) SetNotNilProductKey ¶
func (pr *ProductUpdate) SetNotNilProductKey(value *string) *ProductUpdate
set field if value's pointer is not nil.
func (*ProductUpdate) SetNotNilProductName ¶
func (pr *ProductUpdate) SetNotNilProductName(value *string) *ProductUpdate
set field if value's pointer is not nil.
func (*ProductUpdate) SetNotNilProductSecret ¶
func (pr *ProductUpdate) SetNotNilProductSecret(value *string) *ProductUpdate
set field if value's pointer is not nil.
func (*ProductUpdate) SetNotNilProductStatus ¶
func (pr *ProductUpdate) SetNotNilProductStatus(value *string) *ProductUpdate
set field if value's pointer is not nil.
func (*ProductUpdate) SetNotNilProtocolType ¶
func (pr *ProductUpdate) SetNotNilProtocolType(value *string) *ProductUpdate
set field if value's pointer is not nil.
func (*ProductUpdate) SetNotNilSort ¶
func (pr *ProductUpdate) SetNotNilSort(value *uint32) *ProductUpdate
set field if value's pointer is not nil.
func (*ProductUpdate) SetNotNilStatus ¶
func (pr *ProductUpdate) SetNotNilStatus(value *uint8) *ProductUpdate
set field if value's pointer is not nil.
func (*ProductUpdate) SetNotNilUpdatedAt ¶
func (pr *ProductUpdate) SetNotNilUpdatedAt(value *time.Time) *ProductUpdate
set field if value's pointer is not nil.
func (*ProductUpdate) SetNotNilValidateType ¶
func (pr *ProductUpdate) SetNotNilValidateType(value *int32) *ProductUpdate
set field if value's pointer is not nil.
func (*ProductUpdate) SetOwner ¶
func (pu *ProductUpdate) SetOwner(b bool) *ProductUpdate
SetOwner sets the "owner" field.
func (*ProductUpdate) SetProductKey ¶
func (pu *ProductUpdate) SetProductKey(s string) *ProductUpdate
SetProductKey sets the "productKey" field.
func (*ProductUpdate) SetProductName ¶
func (pu *ProductUpdate) SetProductName(s string) *ProductUpdate
SetProductName sets the "productName" field.
func (*ProductUpdate) SetProductSecret ¶
func (pu *ProductUpdate) SetProductSecret(s string) *ProductUpdate
SetProductSecret sets the "productSecret" field.
func (*ProductUpdate) SetProductStatus ¶
func (pu *ProductUpdate) SetProductStatus(s string) *ProductUpdate
SetProductStatus sets the "productStatus" field.
func (*ProductUpdate) SetProtocolType ¶
func (pu *ProductUpdate) SetProtocolType(s string) *ProductUpdate
SetProtocolType sets the "protocolType" field.
func (*ProductUpdate) SetSort ¶
func (pu *ProductUpdate) SetSort(u uint32) *ProductUpdate
SetSort sets the "sort" field.
func (*ProductUpdate) SetStatus ¶
func (pu *ProductUpdate) SetStatus(u uint8) *ProductUpdate
SetStatus sets the "status" field.
func (*ProductUpdate) SetUpdatedAt ¶
func (pu *ProductUpdate) SetUpdatedAt(t time.Time) *ProductUpdate
SetUpdatedAt sets the "updated_at" field.
func (*ProductUpdate) SetValidateType ¶
func (pu *ProductUpdate) SetValidateType(i int32) *ProductUpdate
SetValidateType sets the "validateType" field.
func (*ProductUpdate) Where ¶
func (pu *ProductUpdate) Where(ps ...predicate.Product) *ProductUpdate
Where appends a list predicates to the ProductUpdate builder.
type ProductUpdateOne ¶
type ProductUpdateOne struct {
// contains filtered or unexported fields
}
ProductUpdateOne is the builder for updating a single Product entity.
func (*ProductUpdateOne) AddDataFormat ¶
func (puo *ProductUpdateOne) AddDataFormat(i int32) *ProductUpdateOne
AddDataFormat adds i to the "dataFormat" field.
func (*ProductUpdateOne) AddDeviceCount ¶
func (puo *ProductUpdateOne) AddDeviceCount(i int32) *ProductUpdateOne
AddDeviceCount adds i to the "deviceCount" field.
func (*ProductUpdateOne) AddDeviceIDs ¶
func (puo *ProductUpdateOne) AddDeviceIDs(ids ...uuid.UUID) *ProductUpdateOne
AddDeviceIDs adds the "devices" edge to the Device entity by IDs.
func (*ProductUpdateOne) AddDevices ¶
func (puo *ProductUpdateOne) AddDevices(d ...*Device) *ProductUpdateOne
AddDevices adds the "devices" edges to the Device entity.
func (*ProductUpdateOne) AddEventIDs ¶
func (puo *ProductUpdateOne) AddEventIDs(ids ...uint64) *ProductUpdateOne
AddEventIDs adds the "events" edge to the ProductEvent entity by IDs.
func (*ProductUpdateOne) AddEvents ¶
func (puo *ProductUpdateOne) AddEvents(p ...*ProductEvent) *ProductUpdateOne
AddEvents adds the "events" edges to the ProductEvent entity.
func (*ProductUpdateOne) AddGmtCreate ¶
func (puo *ProductUpdateOne) AddGmtCreate(i int64) *ProductUpdateOne
AddGmtCreate adds i to the "gmtCreate" field.
func (*ProductUpdateOne) AddNetType ¶
func (puo *ProductUpdateOne) AddNetType(i int32) *ProductUpdateOne
AddNetType adds i to the "netType" field.
func (*ProductUpdateOne) AddNodeType ¶
func (puo *ProductUpdateOne) AddNodeType(i int32) *ProductUpdateOne
AddNodeType adds i to the "nodeType" field.
func (*ProductUpdateOne) AddProperties ¶
func (puo *ProductUpdateOne) AddProperties(p ...*ProductProperty) *ProductUpdateOne
AddProperties adds the "properties" edges to the ProductProperty entity.
func (*ProductUpdateOne) AddPropertyIDs ¶
func (puo *ProductUpdateOne) AddPropertyIDs(ids ...uint64) *ProductUpdateOne
AddPropertyIDs adds the "properties" edge to the ProductProperty entity by IDs.
func (*ProductUpdateOne) AddServiceIDs ¶
func (puo *ProductUpdateOne) AddServiceIDs(ids ...uint64) *ProductUpdateOne
AddServiceIDs adds the "services" edge to the ProductService entity by IDs.
func (*ProductUpdateOne) AddServices ¶
func (puo *ProductUpdateOne) AddServices(p ...*ProductService) *ProductUpdateOne
AddServices adds the "services" edges to the ProductService entity.
func (*ProductUpdateOne) AddSort ¶
func (puo *ProductUpdateOne) AddSort(u int32) *ProductUpdateOne
AddSort adds u to the "sort" field.
func (*ProductUpdateOne) AddStatus ¶
func (puo *ProductUpdateOne) AddStatus(u int8) *ProductUpdateOne
AddStatus adds u to the "status" field.
func (*ProductUpdateOne) AddTagIDs ¶
func (puo *ProductUpdateOne) AddTagIDs(ids ...uint64) *ProductUpdateOne
AddTagIDs adds the "tags" edge to the ProductTag entity by IDs.
func (*ProductUpdateOne) AddTags ¶
func (puo *ProductUpdateOne) AddTags(p ...*ProductTag) *ProductUpdateOne
AddTags adds the "tags" edges to the ProductTag entity.
func (*ProductUpdateOne) AddValidateType ¶
func (puo *ProductUpdateOne) AddValidateType(i int32) *ProductUpdateOne
AddValidateType adds i to the "validateType" field.
func (*ProductUpdateOne) ClearAliyunCommodityCode ¶
func (puo *ProductUpdateOne) ClearAliyunCommodityCode() *ProductUpdateOne
ClearAliyunCommodityCode clears the value of the "aliyunCommodityCode" field.
func (*ProductUpdateOne) ClearAuthType ¶
func (puo *ProductUpdateOne) ClearAuthType() *ProductUpdateOne
ClearAuthType clears the value of the "authType" field.
func (*ProductUpdateOne) ClearCategoryKey ¶
func (puo *ProductUpdateOne) ClearCategoryKey() *ProductUpdateOne
ClearCategoryKey clears the value of the "categoryKey" field.
func (*ProductUpdateOne) ClearCategoryName ¶
func (puo *ProductUpdateOne) ClearCategoryName() *ProductUpdateOne
ClearCategoryName clears the value of the "categoryName" field.
func (*ProductUpdateOne) ClearDataFormat ¶
func (puo *ProductUpdateOne) ClearDataFormat() *ProductUpdateOne
ClearDataFormat clears the value of the "dataFormat" field.
func (*ProductUpdateOne) ClearDescription ¶
func (puo *ProductUpdateOne) ClearDescription() *ProductUpdateOne
ClearDescription clears the value of the "description" field.
func (*ProductUpdateOne) ClearDevices ¶
func (puo *ProductUpdateOne) ClearDevices() *ProductUpdateOne
ClearDevices clears all "devices" edges to the Device entity.
func (*ProductUpdateOne) ClearEvents ¶
func (puo *ProductUpdateOne) ClearEvents() *ProductUpdateOne
ClearEvents clears all "events" edges to the ProductEvent entity.
func (*ProductUpdateOne) ClearGmtCreate ¶
func (puo *ProductUpdateOne) ClearGmtCreate() *ProductUpdateOne
ClearGmtCreate clears the value of the "gmtCreate" field.
func (*ProductUpdateOne) ClearId2 ¶
func (puo *ProductUpdateOne) ClearId2() *ProductUpdateOne
ClearId2 clears the value of the "id2" field.
func (*ProductUpdateOne) ClearNetType ¶
func (puo *ProductUpdateOne) ClearNetType() *ProductUpdateOne
ClearNetType clears the value of the "netType" field.
func (*ProductUpdateOne) ClearOwner ¶
func (puo *ProductUpdateOne) ClearOwner() *ProductUpdateOne
ClearOwner clears the value of the "owner" field.
func (*ProductUpdateOne) ClearProductSecret ¶
func (puo *ProductUpdateOne) ClearProductSecret() *ProductUpdateOne
ClearProductSecret clears the value of the "productSecret" field.
func (*ProductUpdateOne) ClearProductStatus ¶
func (puo *ProductUpdateOne) ClearProductStatus() *ProductUpdateOne
ClearProductStatus clears the value of the "productStatus" field.
func (*ProductUpdateOne) ClearProperties ¶
func (puo *ProductUpdateOne) ClearProperties() *ProductUpdateOne
ClearProperties clears all "properties" edges to the ProductProperty entity.
func (*ProductUpdateOne) ClearProtocolType ¶
func (puo *ProductUpdateOne) ClearProtocolType() *ProductUpdateOne
ClearProtocolType clears the value of the "protocolType" field.
func (*ProductUpdateOne) ClearServices ¶
func (puo *ProductUpdateOne) ClearServices() *ProductUpdateOne
ClearServices clears all "services" edges to the ProductService entity.
func (*ProductUpdateOne) ClearStatus ¶
func (puo *ProductUpdateOne) ClearStatus() *ProductUpdateOne
ClearStatus clears the value of the "status" field.
func (*ProductUpdateOne) ClearTags ¶
func (puo *ProductUpdateOne) ClearTags() *ProductUpdateOne
ClearTags clears all "tags" edges to the ProductTag entity.
func (*ProductUpdateOne) ClearValidateType ¶
func (puo *ProductUpdateOne) ClearValidateType() *ProductUpdateOne
ClearValidateType clears the value of the "validateType" field.
func (*ProductUpdateOne) Exec ¶
func (puo *ProductUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*ProductUpdateOne) ExecContext ¶
func (c *ProductUpdateOne) 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 (*ProductUpdateOne) ExecX ¶
func (puo *ProductUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductUpdateOne) Modify ¶
func (puo *ProductUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ProductUpdateOne
Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
func (*ProductUpdateOne) Mutation ¶
func (puo *ProductUpdateOne) Mutation() *ProductMutation
Mutation returns the ProductMutation object of the builder.
func (*ProductUpdateOne) QueryContext ¶
func (c *ProductUpdateOne) 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 (*ProductUpdateOne) RemoveDeviceIDs ¶
func (puo *ProductUpdateOne) RemoveDeviceIDs(ids ...uuid.UUID) *ProductUpdateOne
RemoveDeviceIDs removes the "devices" edge to Device entities by IDs.
func (*ProductUpdateOne) RemoveDevices ¶
func (puo *ProductUpdateOne) RemoveDevices(d ...*Device) *ProductUpdateOne
RemoveDevices removes "devices" edges to Device entities.
func (*ProductUpdateOne) RemoveEventIDs ¶
func (puo *ProductUpdateOne) RemoveEventIDs(ids ...uint64) *ProductUpdateOne
RemoveEventIDs removes the "events" edge to ProductEvent entities by IDs.
func (*ProductUpdateOne) RemoveEvents ¶
func (puo *ProductUpdateOne) RemoveEvents(p ...*ProductEvent) *ProductUpdateOne
RemoveEvents removes "events" edges to ProductEvent entities.
func (*ProductUpdateOne) RemoveProperties ¶
func (puo *ProductUpdateOne) RemoveProperties(p ...*ProductProperty) *ProductUpdateOne
RemoveProperties removes "properties" edges to ProductProperty entities.
func (*ProductUpdateOne) RemovePropertyIDs ¶
func (puo *ProductUpdateOne) RemovePropertyIDs(ids ...uint64) *ProductUpdateOne
RemovePropertyIDs removes the "properties" edge to ProductProperty entities by IDs.
func (*ProductUpdateOne) RemoveServiceIDs ¶
func (puo *ProductUpdateOne) RemoveServiceIDs(ids ...uint64) *ProductUpdateOne
RemoveServiceIDs removes the "services" edge to ProductService entities by IDs.
func (*ProductUpdateOne) RemoveServices ¶
func (puo *ProductUpdateOne) RemoveServices(p ...*ProductService) *ProductUpdateOne
RemoveServices removes "services" edges to ProductService entities.
func (*ProductUpdateOne) RemoveTagIDs ¶
func (puo *ProductUpdateOne) RemoveTagIDs(ids ...uint64) *ProductUpdateOne
RemoveTagIDs removes the "tags" edge to ProductTag entities by IDs.
func (*ProductUpdateOne) RemoveTags ¶
func (puo *ProductUpdateOne) RemoveTags(p ...*ProductTag) *ProductUpdateOne
RemoveTags removes "tags" edges to ProductTag entities.
func (*ProductUpdateOne) Save ¶
func (puo *ProductUpdateOne) Save(ctx context.Context) (*Product, error)
Save executes the query and returns the updated Product entity.
func (*ProductUpdateOne) SaveX ¶
func (puo *ProductUpdateOne) SaveX(ctx context.Context) *Product
SaveX is like Save, but panics if an error occurs.
func (*ProductUpdateOne) Select ¶
func (puo *ProductUpdateOne) Select(field string, fields ...string) *ProductUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*ProductUpdateOne) SetAliyunCommodityCode ¶
func (puo *ProductUpdateOne) SetAliyunCommodityCode(s string) *ProductUpdateOne
SetAliyunCommodityCode sets the "aliyunCommodityCode" field.
func (*ProductUpdateOne) SetAuthType ¶
func (puo *ProductUpdateOne) SetAuthType(s string) *ProductUpdateOne
SetAuthType sets the "authType" field.
func (*ProductUpdateOne) SetCategoryKey ¶
func (puo *ProductUpdateOne) SetCategoryKey(s string) *ProductUpdateOne
SetCategoryKey sets the "categoryKey" field.
func (*ProductUpdateOne) SetCategoryName ¶
func (puo *ProductUpdateOne) SetCategoryName(s string) *ProductUpdateOne
SetCategoryName sets the "categoryName" field.
func (*ProductUpdateOne) SetDataFormat ¶
func (puo *ProductUpdateOne) SetDataFormat(i int32) *ProductUpdateOne
SetDataFormat sets the "dataFormat" field.
func (*ProductUpdateOne) SetDescription ¶
func (puo *ProductUpdateOne) SetDescription(s string) *ProductUpdateOne
SetDescription sets the "description" field.
func (*ProductUpdateOne) SetDeviceCount ¶
func (puo *ProductUpdateOne) SetDeviceCount(i int32) *ProductUpdateOne
SetDeviceCount sets the "deviceCount" field.
func (*ProductUpdateOne) SetGmtCreate ¶
func (puo *ProductUpdateOne) SetGmtCreate(i int64) *ProductUpdateOne
SetGmtCreate sets the "gmtCreate" field.
func (*ProductUpdateOne) SetId2 ¶
func (puo *ProductUpdateOne) SetId2(b bool) *ProductUpdateOne
SetId2 sets the "id2" field.
func (*ProductUpdateOne) SetNetType ¶
func (puo *ProductUpdateOne) SetNetType(i int32) *ProductUpdateOne
SetNetType sets the "netType" field.
func (*ProductUpdateOne) SetNillableAliyunCommodityCode ¶
func (puo *ProductUpdateOne) SetNillableAliyunCommodityCode(s *string) *ProductUpdateOne
SetNillableAliyunCommodityCode sets the "aliyunCommodityCode" field if the given value is not nil.
func (*ProductUpdateOne) SetNillableAuthType ¶
func (puo *ProductUpdateOne) SetNillableAuthType(s *string) *ProductUpdateOne
SetNillableAuthType sets the "authType" field if the given value is not nil.
func (*ProductUpdateOne) SetNillableCategoryKey ¶
func (puo *ProductUpdateOne) SetNillableCategoryKey(s *string) *ProductUpdateOne
SetNillableCategoryKey sets the "categoryKey" field if the given value is not nil.
func (*ProductUpdateOne) SetNillableCategoryName ¶
func (puo *ProductUpdateOne) SetNillableCategoryName(s *string) *ProductUpdateOne
SetNillableCategoryName sets the "categoryName" field if the given value is not nil.
func (*ProductUpdateOne) SetNillableDataFormat ¶
func (puo *ProductUpdateOne) SetNillableDataFormat(i *int32) *ProductUpdateOne
SetNillableDataFormat sets the "dataFormat" field if the given value is not nil.
func (*ProductUpdateOne) SetNillableDescription ¶
func (puo *ProductUpdateOne) SetNillableDescription(s *string) *ProductUpdateOne
SetNillableDescription sets the "description" field if the given value is not nil.
func (*ProductUpdateOne) SetNillableDeviceCount ¶
func (puo *ProductUpdateOne) SetNillableDeviceCount(i *int32) *ProductUpdateOne
SetNillableDeviceCount sets the "deviceCount" field if the given value is not nil.
func (*ProductUpdateOne) SetNillableGmtCreate ¶
func (puo *ProductUpdateOne) SetNillableGmtCreate(i *int64) *ProductUpdateOne
SetNillableGmtCreate sets the "gmtCreate" field if the given value is not nil.
func (*ProductUpdateOne) SetNillableId2 ¶
func (puo *ProductUpdateOne) SetNillableId2(b *bool) *ProductUpdateOne
SetNillableId2 sets the "id2" field if the given value is not nil.
func (*ProductUpdateOne) SetNillableNetType ¶
func (puo *ProductUpdateOne) SetNillableNetType(i *int32) *ProductUpdateOne
SetNillableNetType sets the "netType" field if the given value is not nil.
func (*ProductUpdateOne) SetNillableNodeType ¶
func (puo *ProductUpdateOne) SetNillableNodeType(i *int32) *ProductUpdateOne
SetNillableNodeType sets the "nodeType" field if the given value is not nil.
func (*ProductUpdateOne) SetNillableOwner ¶
func (puo *ProductUpdateOne) SetNillableOwner(b *bool) *ProductUpdateOne
SetNillableOwner sets the "owner" field if the given value is not nil.
func (*ProductUpdateOne) SetNillableProductKey ¶
func (puo *ProductUpdateOne) SetNillableProductKey(s *string) *ProductUpdateOne
SetNillableProductKey sets the "productKey" field if the given value is not nil.
func (*ProductUpdateOne) SetNillableProductName ¶
func (puo *ProductUpdateOne) SetNillableProductName(s *string) *ProductUpdateOne
SetNillableProductName sets the "productName" field if the given value is not nil.
func (*ProductUpdateOne) SetNillableProductSecret ¶
func (puo *ProductUpdateOne) SetNillableProductSecret(s *string) *ProductUpdateOne
SetNillableProductSecret sets the "productSecret" field if the given value is not nil.
func (*ProductUpdateOne) SetNillableProductStatus ¶
func (puo *ProductUpdateOne) SetNillableProductStatus(s *string) *ProductUpdateOne
SetNillableProductStatus sets the "productStatus" field if the given value is not nil.
func (*ProductUpdateOne) SetNillableProtocolType ¶
func (puo *ProductUpdateOne) SetNillableProtocolType(s *string) *ProductUpdateOne
SetNillableProtocolType sets the "protocolType" field if the given value is not nil.
func (*ProductUpdateOne) SetNillableSort ¶
func (puo *ProductUpdateOne) SetNillableSort(u *uint32) *ProductUpdateOne
SetNillableSort sets the "sort" field if the given value is not nil.
func (*ProductUpdateOne) SetNillableStatus ¶
func (puo *ProductUpdateOne) SetNillableStatus(u *uint8) *ProductUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*ProductUpdateOne) SetNillableValidateType ¶
func (puo *ProductUpdateOne) SetNillableValidateType(i *int32) *ProductUpdateOne
SetNillableValidateType sets the "validateType" field if the given value is not nil.
func (*ProductUpdateOne) SetNodeType ¶
func (puo *ProductUpdateOne) SetNodeType(i int32) *ProductUpdateOne
SetNodeType sets the "nodeType" field.
func (*ProductUpdateOne) SetNotNilAliyunCommodityCode ¶
func (pr *ProductUpdateOne) SetNotNilAliyunCommodityCode(value *string) *ProductUpdateOne
set field if value's pointer is not nil.
func (*ProductUpdateOne) SetNotNilAuthType ¶
func (pr *ProductUpdateOne) SetNotNilAuthType(value *string) *ProductUpdateOne
set field if value's pointer is not nil.
func (*ProductUpdateOne) SetNotNilCategoryKey ¶
func (pr *ProductUpdateOne) SetNotNilCategoryKey(value *string) *ProductUpdateOne
set field if value's pointer is not nil.
func (*ProductUpdateOne) SetNotNilCategoryName ¶
func (pr *ProductUpdateOne) SetNotNilCategoryName(value *string) *ProductUpdateOne
set field if value's pointer is not nil.
func (*ProductUpdateOne) SetNotNilDataFormat ¶
func (pr *ProductUpdateOne) SetNotNilDataFormat(value *int32) *ProductUpdateOne
set field if value's pointer is not nil.
func (*ProductUpdateOne) SetNotNilDescription ¶
func (pr *ProductUpdateOne) SetNotNilDescription(value *string) *ProductUpdateOne
set field if value's pointer is not nil.
func (*ProductUpdateOne) SetNotNilDeviceCount ¶
func (pr *ProductUpdateOne) SetNotNilDeviceCount(value *int32) *ProductUpdateOne
set field if value's pointer is not nil.
func (*ProductUpdateOne) SetNotNilGmtCreate ¶
func (pr *ProductUpdateOne) SetNotNilGmtCreate(value *int64) *ProductUpdateOne
set field if value's pointer is not nil.
func (*ProductUpdateOne) SetNotNilId2 ¶
func (pr *ProductUpdateOne) SetNotNilId2(value *bool) *ProductUpdateOne
set field if value's pointer is not nil.
func (*ProductUpdateOne) SetNotNilNetType ¶
func (pr *ProductUpdateOne) SetNotNilNetType(value *int32) *ProductUpdateOne
set field if value's pointer is not nil.
func (*ProductUpdateOne) SetNotNilNodeType ¶
func (pr *ProductUpdateOne) SetNotNilNodeType(value *int32) *ProductUpdateOne
set field if value's pointer is not nil.
func (*ProductUpdateOne) SetNotNilOwner ¶
func (pr *ProductUpdateOne) SetNotNilOwner(value *bool) *ProductUpdateOne
set field if value's pointer is not nil.
func (*ProductUpdateOne) SetNotNilProductKey ¶
func (pr *ProductUpdateOne) SetNotNilProductKey(value *string) *ProductUpdateOne
set field if value's pointer is not nil.
func (*ProductUpdateOne) SetNotNilProductName ¶
func (pr *ProductUpdateOne) SetNotNilProductName(value *string) *ProductUpdateOne
set field if value's pointer is not nil.
func (*ProductUpdateOne) SetNotNilProductSecret ¶
func (pr *ProductUpdateOne) SetNotNilProductSecret(value *string) *ProductUpdateOne
set field if value's pointer is not nil.
func (*ProductUpdateOne) SetNotNilProductStatus ¶
func (pr *ProductUpdateOne) SetNotNilProductStatus(value *string) *ProductUpdateOne
set field if value's pointer is not nil.
func (*ProductUpdateOne) SetNotNilProtocolType ¶
func (pr *ProductUpdateOne) SetNotNilProtocolType(value *string) *ProductUpdateOne
set field if value's pointer is not nil.
func (*ProductUpdateOne) SetNotNilSort ¶
func (pr *ProductUpdateOne) SetNotNilSort(value *uint32) *ProductUpdateOne
set field if value's pointer is not nil.
func (*ProductUpdateOne) SetNotNilStatus ¶
func (pr *ProductUpdateOne) SetNotNilStatus(value *uint8) *ProductUpdateOne
set field if value's pointer is not nil.
func (*ProductUpdateOne) SetNotNilUpdatedAt ¶
func (pr *ProductUpdateOne) SetNotNilUpdatedAt(value *time.Time) *ProductUpdateOne
set field if value's pointer is not nil.
func (*ProductUpdateOne) SetNotNilValidateType ¶
func (pr *ProductUpdateOne) SetNotNilValidateType(value *int32) *ProductUpdateOne
set field if value's pointer is not nil.
func (*ProductUpdateOne) SetOwner ¶
func (puo *ProductUpdateOne) SetOwner(b bool) *ProductUpdateOne
SetOwner sets the "owner" field.
func (*ProductUpdateOne) SetProductKey ¶
func (puo *ProductUpdateOne) SetProductKey(s string) *ProductUpdateOne
SetProductKey sets the "productKey" field.
func (*ProductUpdateOne) SetProductName ¶
func (puo *ProductUpdateOne) SetProductName(s string) *ProductUpdateOne
SetProductName sets the "productName" field.
func (*ProductUpdateOne) SetProductSecret ¶
func (puo *ProductUpdateOne) SetProductSecret(s string) *ProductUpdateOne
SetProductSecret sets the "productSecret" field.
func (*ProductUpdateOne) SetProductStatus ¶
func (puo *ProductUpdateOne) SetProductStatus(s string) *ProductUpdateOne
SetProductStatus sets the "productStatus" field.
func (*ProductUpdateOne) SetProtocolType ¶
func (puo *ProductUpdateOne) SetProtocolType(s string) *ProductUpdateOne
SetProtocolType sets the "protocolType" field.
func (*ProductUpdateOne) SetSort ¶
func (puo *ProductUpdateOne) SetSort(u uint32) *ProductUpdateOne
SetSort sets the "sort" field.
func (*ProductUpdateOne) SetStatus ¶
func (puo *ProductUpdateOne) SetStatus(u uint8) *ProductUpdateOne
SetStatus sets the "status" field.
func (*ProductUpdateOne) SetUpdatedAt ¶
func (puo *ProductUpdateOne) SetUpdatedAt(t time.Time) *ProductUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*ProductUpdateOne) SetValidateType ¶
func (puo *ProductUpdateOne) SetValidateType(i int32) *ProductUpdateOne
SetValidateType sets the "validateType" field.
func (*ProductUpdateOne) Where ¶
func (puo *ProductUpdateOne) Where(ps ...predicate.Product) *ProductUpdateOne
Where appends a list predicates to the ProductUpdate builder.
type ProductUpsert ¶
ProductUpsert is the "OnConflict" setter.
func (*ProductUpsert) AddDataFormat ¶
func (u *ProductUpsert) AddDataFormat(v int32) *ProductUpsert
AddDataFormat adds v to the "dataFormat" field.
func (*ProductUpsert) AddDeviceCount ¶
func (u *ProductUpsert) AddDeviceCount(v int32) *ProductUpsert
AddDeviceCount adds v to the "deviceCount" field.
func (*ProductUpsert) AddGmtCreate ¶
func (u *ProductUpsert) AddGmtCreate(v int64) *ProductUpsert
AddGmtCreate adds v to the "gmtCreate" field.
func (*ProductUpsert) AddNetType ¶
func (u *ProductUpsert) AddNetType(v int32) *ProductUpsert
AddNetType adds v to the "netType" field.
func (*ProductUpsert) AddNodeType ¶
func (u *ProductUpsert) AddNodeType(v int32) *ProductUpsert
AddNodeType adds v to the "nodeType" field.
func (*ProductUpsert) AddSort ¶
func (u *ProductUpsert) AddSort(v uint32) *ProductUpsert
AddSort adds v to the "sort" field.
func (*ProductUpsert) AddStatus ¶
func (u *ProductUpsert) AddStatus(v uint8) *ProductUpsert
AddStatus adds v to the "status" field.
func (*ProductUpsert) AddValidateType ¶
func (u *ProductUpsert) AddValidateType(v int32) *ProductUpsert
AddValidateType adds v to the "validateType" field.
func (*ProductUpsert) ClearAliyunCommodityCode ¶
func (u *ProductUpsert) ClearAliyunCommodityCode() *ProductUpsert
ClearAliyunCommodityCode clears the value of the "aliyunCommodityCode" field.
func (*ProductUpsert) ClearAuthType ¶
func (u *ProductUpsert) ClearAuthType() *ProductUpsert
ClearAuthType clears the value of the "authType" field.
func (*ProductUpsert) ClearCategoryKey ¶
func (u *ProductUpsert) ClearCategoryKey() *ProductUpsert
ClearCategoryKey clears the value of the "categoryKey" field.
func (*ProductUpsert) ClearCategoryName ¶
func (u *ProductUpsert) ClearCategoryName() *ProductUpsert
ClearCategoryName clears the value of the "categoryName" field.
func (*ProductUpsert) ClearDataFormat ¶
func (u *ProductUpsert) ClearDataFormat() *ProductUpsert
ClearDataFormat clears the value of the "dataFormat" field.
func (*ProductUpsert) ClearDescription ¶
func (u *ProductUpsert) ClearDescription() *ProductUpsert
ClearDescription clears the value of the "description" field.
func (*ProductUpsert) ClearGmtCreate ¶
func (u *ProductUpsert) ClearGmtCreate() *ProductUpsert
ClearGmtCreate clears the value of the "gmtCreate" field.
func (*ProductUpsert) ClearId2 ¶
func (u *ProductUpsert) ClearId2() *ProductUpsert
ClearId2 clears the value of the "id2" field.
func (*ProductUpsert) ClearNetType ¶
func (u *ProductUpsert) ClearNetType() *ProductUpsert
ClearNetType clears the value of the "netType" field.
func (*ProductUpsert) ClearOwner ¶
func (u *ProductUpsert) ClearOwner() *ProductUpsert
ClearOwner clears the value of the "owner" field.
func (*ProductUpsert) ClearProductSecret ¶
func (u *ProductUpsert) ClearProductSecret() *ProductUpsert
ClearProductSecret clears the value of the "productSecret" field.
func (*ProductUpsert) ClearProductStatus ¶
func (u *ProductUpsert) ClearProductStatus() *ProductUpsert
ClearProductStatus clears the value of the "productStatus" field.
func (*ProductUpsert) ClearProtocolType ¶
func (u *ProductUpsert) ClearProtocolType() *ProductUpsert
ClearProtocolType clears the value of the "protocolType" field.
func (*ProductUpsert) ClearStatus ¶
func (u *ProductUpsert) ClearStatus() *ProductUpsert
ClearStatus clears the value of the "status" field.
func (*ProductUpsert) ClearValidateType ¶
func (u *ProductUpsert) ClearValidateType() *ProductUpsert
ClearValidateType clears the value of the "validateType" field.
func (*ProductUpsert) SetAliyunCommodityCode ¶
func (u *ProductUpsert) SetAliyunCommodityCode(v string) *ProductUpsert
SetAliyunCommodityCode sets the "aliyunCommodityCode" field.
func (*ProductUpsert) SetAuthType ¶
func (u *ProductUpsert) SetAuthType(v string) *ProductUpsert
SetAuthType sets the "authType" field.
func (*ProductUpsert) SetCategoryKey ¶
func (u *ProductUpsert) SetCategoryKey(v string) *ProductUpsert
SetCategoryKey sets the "categoryKey" field.
func (*ProductUpsert) SetCategoryName ¶
func (u *ProductUpsert) SetCategoryName(v string) *ProductUpsert
SetCategoryName sets the "categoryName" field.
func (*ProductUpsert) SetDataFormat ¶
func (u *ProductUpsert) SetDataFormat(v int32) *ProductUpsert
SetDataFormat sets the "dataFormat" field.
func (*ProductUpsert) SetDescription ¶
func (u *ProductUpsert) SetDescription(v string) *ProductUpsert
SetDescription sets the "description" field.
func (*ProductUpsert) SetDeviceCount ¶
func (u *ProductUpsert) SetDeviceCount(v int32) *ProductUpsert
SetDeviceCount sets the "deviceCount" field.
func (*ProductUpsert) SetGmtCreate ¶
func (u *ProductUpsert) SetGmtCreate(v int64) *ProductUpsert
SetGmtCreate sets the "gmtCreate" field.
func (*ProductUpsert) SetId2 ¶
func (u *ProductUpsert) SetId2(v bool) *ProductUpsert
SetId2 sets the "id2" field.
func (*ProductUpsert) SetNetType ¶
func (u *ProductUpsert) SetNetType(v int32) *ProductUpsert
SetNetType sets the "netType" field.
func (*ProductUpsert) SetNodeType ¶
func (u *ProductUpsert) SetNodeType(v int32) *ProductUpsert
SetNodeType sets the "nodeType" field.
func (*ProductUpsert) SetOwner ¶
func (u *ProductUpsert) SetOwner(v bool) *ProductUpsert
SetOwner sets the "owner" field.
func (*ProductUpsert) SetProductKey ¶
func (u *ProductUpsert) SetProductKey(v string) *ProductUpsert
SetProductKey sets the "productKey" field.
func (*ProductUpsert) SetProductName ¶
func (u *ProductUpsert) SetProductName(v string) *ProductUpsert
SetProductName sets the "productName" field.
func (*ProductUpsert) SetProductSecret ¶
func (u *ProductUpsert) SetProductSecret(v string) *ProductUpsert
SetProductSecret sets the "productSecret" field.
func (*ProductUpsert) SetProductStatus ¶
func (u *ProductUpsert) SetProductStatus(v string) *ProductUpsert
SetProductStatus sets the "productStatus" field.
func (*ProductUpsert) SetProtocolType ¶
func (u *ProductUpsert) SetProtocolType(v string) *ProductUpsert
SetProtocolType sets the "protocolType" field.
func (*ProductUpsert) SetSort ¶
func (u *ProductUpsert) SetSort(v uint32) *ProductUpsert
SetSort sets the "sort" field.
func (*ProductUpsert) SetStatus ¶
func (u *ProductUpsert) SetStatus(v uint8) *ProductUpsert
SetStatus sets the "status" field.
func (*ProductUpsert) SetUpdatedAt ¶
func (u *ProductUpsert) SetUpdatedAt(v time.Time) *ProductUpsert
SetUpdatedAt sets the "updated_at" field.
func (*ProductUpsert) SetValidateType ¶
func (u *ProductUpsert) SetValidateType(v int32) *ProductUpsert
SetValidateType sets the "validateType" field.
func (*ProductUpsert) UpdateAliyunCommodityCode ¶
func (u *ProductUpsert) UpdateAliyunCommodityCode() *ProductUpsert
UpdateAliyunCommodityCode sets the "aliyunCommodityCode" field to the value that was provided on create.
func (*ProductUpsert) UpdateAuthType ¶
func (u *ProductUpsert) UpdateAuthType() *ProductUpsert
UpdateAuthType sets the "authType" field to the value that was provided on create.
func (*ProductUpsert) UpdateCategoryKey ¶
func (u *ProductUpsert) UpdateCategoryKey() *ProductUpsert
UpdateCategoryKey sets the "categoryKey" field to the value that was provided on create.
func (*ProductUpsert) UpdateCategoryName ¶
func (u *ProductUpsert) UpdateCategoryName() *ProductUpsert
UpdateCategoryName sets the "categoryName" field to the value that was provided on create.
func (*ProductUpsert) UpdateDataFormat ¶
func (u *ProductUpsert) UpdateDataFormat() *ProductUpsert
UpdateDataFormat sets the "dataFormat" field to the value that was provided on create.
func (*ProductUpsert) UpdateDescription ¶
func (u *ProductUpsert) UpdateDescription() *ProductUpsert
UpdateDescription sets the "description" field to the value that was provided on create.
func (*ProductUpsert) UpdateDeviceCount ¶
func (u *ProductUpsert) UpdateDeviceCount() *ProductUpsert
UpdateDeviceCount sets the "deviceCount" field to the value that was provided on create.
func (*ProductUpsert) UpdateGmtCreate ¶
func (u *ProductUpsert) UpdateGmtCreate() *ProductUpsert
UpdateGmtCreate sets the "gmtCreate" field to the value that was provided on create.
func (*ProductUpsert) UpdateId2 ¶
func (u *ProductUpsert) UpdateId2() *ProductUpsert
UpdateId2 sets the "id2" field to the value that was provided on create.
func (*ProductUpsert) UpdateNetType ¶
func (u *ProductUpsert) UpdateNetType() *ProductUpsert
UpdateNetType sets the "netType" field to the value that was provided on create.
func (*ProductUpsert) UpdateNodeType ¶
func (u *ProductUpsert) UpdateNodeType() *ProductUpsert
UpdateNodeType sets the "nodeType" field to the value that was provided on create.
func (*ProductUpsert) UpdateOwner ¶
func (u *ProductUpsert) UpdateOwner() *ProductUpsert
UpdateOwner sets the "owner" field to the value that was provided on create.
func (*ProductUpsert) UpdateProductKey ¶
func (u *ProductUpsert) UpdateProductKey() *ProductUpsert
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*ProductUpsert) UpdateProductName ¶
func (u *ProductUpsert) UpdateProductName() *ProductUpsert
UpdateProductName sets the "productName" field to the value that was provided on create.
func (*ProductUpsert) UpdateProductSecret ¶
func (u *ProductUpsert) UpdateProductSecret() *ProductUpsert
UpdateProductSecret sets the "productSecret" field to the value that was provided on create.
func (*ProductUpsert) UpdateProductStatus ¶
func (u *ProductUpsert) UpdateProductStatus() *ProductUpsert
UpdateProductStatus sets the "productStatus" field to the value that was provided on create.
func (*ProductUpsert) UpdateProtocolType ¶
func (u *ProductUpsert) UpdateProtocolType() *ProductUpsert
UpdateProtocolType sets the "protocolType" field to the value that was provided on create.
func (*ProductUpsert) UpdateSort ¶
func (u *ProductUpsert) UpdateSort() *ProductUpsert
UpdateSort sets the "sort" field to the value that was provided on create.
func (*ProductUpsert) UpdateStatus ¶
func (u *ProductUpsert) UpdateStatus() *ProductUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*ProductUpsert) UpdateUpdatedAt ¶
func (u *ProductUpsert) UpdateUpdatedAt() *ProductUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*ProductUpsert) UpdateValidateType ¶
func (u *ProductUpsert) UpdateValidateType() *ProductUpsert
UpdateValidateType sets the "validateType" field to the value that was provided on create.
type ProductUpsertBulk ¶
type ProductUpsertBulk struct {
// contains filtered or unexported fields
}
ProductUpsertBulk is the builder for "upsert"-ing a bulk of Product nodes.
func (*ProductUpsertBulk) AddDataFormat ¶
func (u *ProductUpsertBulk) AddDataFormat(v int32) *ProductUpsertBulk
AddDataFormat adds v to the "dataFormat" field.
func (*ProductUpsertBulk) AddDeviceCount ¶
func (u *ProductUpsertBulk) AddDeviceCount(v int32) *ProductUpsertBulk
AddDeviceCount adds v to the "deviceCount" field.
func (*ProductUpsertBulk) AddGmtCreate ¶
func (u *ProductUpsertBulk) AddGmtCreate(v int64) *ProductUpsertBulk
AddGmtCreate adds v to the "gmtCreate" field.
func (*ProductUpsertBulk) AddNetType ¶
func (u *ProductUpsertBulk) AddNetType(v int32) *ProductUpsertBulk
AddNetType adds v to the "netType" field.
func (*ProductUpsertBulk) AddNodeType ¶
func (u *ProductUpsertBulk) AddNodeType(v int32) *ProductUpsertBulk
AddNodeType adds v to the "nodeType" field.
func (*ProductUpsertBulk) AddSort ¶
func (u *ProductUpsertBulk) AddSort(v uint32) *ProductUpsertBulk
AddSort adds v to the "sort" field.
func (*ProductUpsertBulk) AddStatus ¶
func (u *ProductUpsertBulk) AddStatus(v uint8) *ProductUpsertBulk
AddStatus adds v to the "status" field.
func (*ProductUpsertBulk) AddValidateType ¶
func (u *ProductUpsertBulk) AddValidateType(v int32) *ProductUpsertBulk
AddValidateType adds v to the "validateType" field.
func (*ProductUpsertBulk) ClearAliyunCommodityCode ¶
func (u *ProductUpsertBulk) ClearAliyunCommodityCode() *ProductUpsertBulk
ClearAliyunCommodityCode clears the value of the "aliyunCommodityCode" field.
func (*ProductUpsertBulk) ClearAuthType ¶
func (u *ProductUpsertBulk) ClearAuthType() *ProductUpsertBulk
ClearAuthType clears the value of the "authType" field.
func (*ProductUpsertBulk) ClearCategoryKey ¶
func (u *ProductUpsertBulk) ClearCategoryKey() *ProductUpsertBulk
ClearCategoryKey clears the value of the "categoryKey" field.
func (*ProductUpsertBulk) ClearCategoryName ¶
func (u *ProductUpsertBulk) ClearCategoryName() *ProductUpsertBulk
ClearCategoryName clears the value of the "categoryName" field.
func (*ProductUpsertBulk) ClearDataFormat ¶
func (u *ProductUpsertBulk) ClearDataFormat() *ProductUpsertBulk
ClearDataFormat clears the value of the "dataFormat" field.
func (*ProductUpsertBulk) ClearDescription ¶
func (u *ProductUpsertBulk) ClearDescription() *ProductUpsertBulk
ClearDescription clears the value of the "description" field.
func (*ProductUpsertBulk) ClearGmtCreate ¶
func (u *ProductUpsertBulk) ClearGmtCreate() *ProductUpsertBulk
ClearGmtCreate clears the value of the "gmtCreate" field.
func (*ProductUpsertBulk) ClearId2 ¶
func (u *ProductUpsertBulk) ClearId2() *ProductUpsertBulk
ClearId2 clears the value of the "id2" field.
func (*ProductUpsertBulk) ClearNetType ¶
func (u *ProductUpsertBulk) ClearNetType() *ProductUpsertBulk
ClearNetType clears the value of the "netType" field.
func (*ProductUpsertBulk) ClearOwner ¶
func (u *ProductUpsertBulk) ClearOwner() *ProductUpsertBulk
ClearOwner clears the value of the "owner" field.
func (*ProductUpsertBulk) ClearProductSecret ¶
func (u *ProductUpsertBulk) ClearProductSecret() *ProductUpsertBulk
ClearProductSecret clears the value of the "productSecret" field.
func (*ProductUpsertBulk) ClearProductStatus ¶
func (u *ProductUpsertBulk) ClearProductStatus() *ProductUpsertBulk
ClearProductStatus clears the value of the "productStatus" field.
func (*ProductUpsertBulk) ClearProtocolType ¶
func (u *ProductUpsertBulk) ClearProtocolType() *ProductUpsertBulk
ClearProtocolType clears the value of the "protocolType" field.
func (*ProductUpsertBulk) ClearStatus ¶
func (u *ProductUpsertBulk) ClearStatus() *ProductUpsertBulk
ClearStatus clears the value of the "status" field.
func (*ProductUpsertBulk) ClearValidateType ¶
func (u *ProductUpsertBulk) ClearValidateType() *ProductUpsertBulk
ClearValidateType clears the value of the "validateType" field.
func (*ProductUpsertBulk) DoNothing ¶
func (u *ProductUpsertBulk) DoNothing() *ProductUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ProductUpsertBulk) Exec ¶
func (u *ProductUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ProductUpsertBulk) ExecX ¶
func (u *ProductUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductUpsertBulk) Ignore ¶
func (u *ProductUpsertBulk) Ignore() *ProductUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Product.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*ProductUpsertBulk) SetAliyunCommodityCode ¶
func (u *ProductUpsertBulk) SetAliyunCommodityCode(v string) *ProductUpsertBulk
SetAliyunCommodityCode sets the "aliyunCommodityCode" field.
func (*ProductUpsertBulk) SetAuthType ¶
func (u *ProductUpsertBulk) SetAuthType(v string) *ProductUpsertBulk
SetAuthType sets the "authType" field.
func (*ProductUpsertBulk) SetCategoryKey ¶
func (u *ProductUpsertBulk) SetCategoryKey(v string) *ProductUpsertBulk
SetCategoryKey sets the "categoryKey" field.
func (*ProductUpsertBulk) SetCategoryName ¶
func (u *ProductUpsertBulk) SetCategoryName(v string) *ProductUpsertBulk
SetCategoryName sets the "categoryName" field.
func (*ProductUpsertBulk) SetDataFormat ¶
func (u *ProductUpsertBulk) SetDataFormat(v int32) *ProductUpsertBulk
SetDataFormat sets the "dataFormat" field.
func (*ProductUpsertBulk) SetDescription ¶
func (u *ProductUpsertBulk) SetDescription(v string) *ProductUpsertBulk
SetDescription sets the "description" field.
func (*ProductUpsertBulk) SetDeviceCount ¶
func (u *ProductUpsertBulk) SetDeviceCount(v int32) *ProductUpsertBulk
SetDeviceCount sets the "deviceCount" field.
func (*ProductUpsertBulk) SetGmtCreate ¶
func (u *ProductUpsertBulk) SetGmtCreate(v int64) *ProductUpsertBulk
SetGmtCreate sets the "gmtCreate" field.
func (*ProductUpsertBulk) SetId2 ¶
func (u *ProductUpsertBulk) SetId2(v bool) *ProductUpsertBulk
SetId2 sets the "id2" field.
func (*ProductUpsertBulk) SetNetType ¶
func (u *ProductUpsertBulk) SetNetType(v int32) *ProductUpsertBulk
SetNetType sets the "netType" field.
func (*ProductUpsertBulk) SetNodeType ¶
func (u *ProductUpsertBulk) SetNodeType(v int32) *ProductUpsertBulk
SetNodeType sets the "nodeType" field.
func (*ProductUpsertBulk) SetOwner ¶
func (u *ProductUpsertBulk) SetOwner(v bool) *ProductUpsertBulk
SetOwner sets the "owner" field.
func (*ProductUpsertBulk) SetProductKey ¶
func (u *ProductUpsertBulk) SetProductKey(v string) *ProductUpsertBulk
SetProductKey sets the "productKey" field.
func (*ProductUpsertBulk) SetProductName ¶
func (u *ProductUpsertBulk) SetProductName(v string) *ProductUpsertBulk
SetProductName sets the "productName" field.
func (*ProductUpsertBulk) SetProductSecret ¶
func (u *ProductUpsertBulk) SetProductSecret(v string) *ProductUpsertBulk
SetProductSecret sets the "productSecret" field.
func (*ProductUpsertBulk) SetProductStatus ¶
func (u *ProductUpsertBulk) SetProductStatus(v string) *ProductUpsertBulk
SetProductStatus sets the "productStatus" field.
func (*ProductUpsertBulk) SetProtocolType ¶
func (u *ProductUpsertBulk) SetProtocolType(v string) *ProductUpsertBulk
SetProtocolType sets the "protocolType" field.
func (*ProductUpsertBulk) SetSort ¶
func (u *ProductUpsertBulk) SetSort(v uint32) *ProductUpsertBulk
SetSort sets the "sort" field.
func (*ProductUpsertBulk) SetStatus ¶
func (u *ProductUpsertBulk) SetStatus(v uint8) *ProductUpsertBulk
SetStatus sets the "status" field.
func (*ProductUpsertBulk) SetUpdatedAt ¶
func (u *ProductUpsertBulk) SetUpdatedAt(v time.Time) *ProductUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*ProductUpsertBulk) SetValidateType ¶
func (u *ProductUpsertBulk) SetValidateType(v int32) *ProductUpsertBulk
SetValidateType sets the "validateType" field.
func (*ProductUpsertBulk) Update ¶
func (u *ProductUpsertBulk) Update(set func(*ProductUpsert)) *ProductUpsertBulk
Update allows overriding fields `UPDATE` values. See the ProductCreateBulk.OnConflict documentation for more info.
func (*ProductUpsertBulk) UpdateAliyunCommodityCode ¶
func (u *ProductUpsertBulk) UpdateAliyunCommodityCode() *ProductUpsertBulk
UpdateAliyunCommodityCode sets the "aliyunCommodityCode" field to the value that was provided on create.
func (*ProductUpsertBulk) UpdateAuthType ¶
func (u *ProductUpsertBulk) UpdateAuthType() *ProductUpsertBulk
UpdateAuthType sets the "authType" field to the value that was provided on create.
func (*ProductUpsertBulk) UpdateCategoryKey ¶
func (u *ProductUpsertBulk) UpdateCategoryKey() *ProductUpsertBulk
UpdateCategoryKey sets the "categoryKey" field to the value that was provided on create.
func (*ProductUpsertBulk) UpdateCategoryName ¶
func (u *ProductUpsertBulk) UpdateCategoryName() *ProductUpsertBulk
UpdateCategoryName sets the "categoryName" field to the value that was provided on create.
func (*ProductUpsertBulk) UpdateDataFormat ¶
func (u *ProductUpsertBulk) UpdateDataFormat() *ProductUpsertBulk
UpdateDataFormat sets the "dataFormat" field to the value that was provided on create.
func (*ProductUpsertBulk) UpdateDescription ¶
func (u *ProductUpsertBulk) UpdateDescription() *ProductUpsertBulk
UpdateDescription sets the "description" field to the value that was provided on create.
func (*ProductUpsertBulk) UpdateDeviceCount ¶
func (u *ProductUpsertBulk) UpdateDeviceCount() *ProductUpsertBulk
UpdateDeviceCount sets the "deviceCount" field to the value that was provided on create.
func (*ProductUpsertBulk) UpdateGmtCreate ¶
func (u *ProductUpsertBulk) UpdateGmtCreate() *ProductUpsertBulk
UpdateGmtCreate sets the "gmtCreate" field to the value that was provided on create.
func (*ProductUpsertBulk) UpdateId2 ¶
func (u *ProductUpsertBulk) UpdateId2() *ProductUpsertBulk
UpdateId2 sets the "id2" field to the value that was provided on create.
func (*ProductUpsertBulk) UpdateNetType ¶
func (u *ProductUpsertBulk) UpdateNetType() *ProductUpsertBulk
UpdateNetType sets the "netType" field to the value that was provided on create.
func (*ProductUpsertBulk) UpdateNewValues ¶
func (u *ProductUpsertBulk) UpdateNewValues() *ProductUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.Product.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(product.FieldID) }), ). Exec(ctx)
func (*ProductUpsertBulk) UpdateNodeType ¶
func (u *ProductUpsertBulk) UpdateNodeType() *ProductUpsertBulk
UpdateNodeType sets the "nodeType" field to the value that was provided on create.
func (*ProductUpsertBulk) UpdateOwner ¶
func (u *ProductUpsertBulk) UpdateOwner() *ProductUpsertBulk
UpdateOwner sets the "owner" field to the value that was provided on create.
func (*ProductUpsertBulk) UpdateProductKey ¶
func (u *ProductUpsertBulk) UpdateProductKey() *ProductUpsertBulk
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*ProductUpsertBulk) UpdateProductName ¶
func (u *ProductUpsertBulk) UpdateProductName() *ProductUpsertBulk
UpdateProductName sets the "productName" field to the value that was provided on create.
func (*ProductUpsertBulk) UpdateProductSecret ¶
func (u *ProductUpsertBulk) UpdateProductSecret() *ProductUpsertBulk
UpdateProductSecret sets the "productSecret" field to the value that was provided on create.
func (*ProductUpsertBulk) UpdateProductStatus ¶
func (u *ProductUpsertBulk) UpdateProductStatus() *ProductUpsertBulk
UpdateProductStatus sets the "productStatus" field to the value that was provided on create.
func (*ProductUpsertBulk) UpdateProtocolType ¶
func (u *ProductUpsertBulk) UpdateProtocolType() *ProductUpsertBulk
UpdateProtocolType sets the "protocolType" field to the value that was provided on create.
func (*ProductUpsertBulk) UpdateSort ¶
func (u *ProductUpsertBulk) UpdateSort() *ProductUpsertBulk
UpdateSort sets the "sort" field to the value that was provided on create.
func (*ProductUpsertBulk) UpdateStatus ¶
func (u *ProductUpsertBulk) UpdateStatus() *ProductUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*ProductUpsertBulk) UpdateUpdatedAt ¶
func (u *ProductUpsertBulk) UpdateUpdatedAt() *ProductUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*ProductUpsertBulk) UpdateValidateType ¶
func (u *ProductUpsertBulk) UpdateValidateType() *ProductUpsertBulk
UpdateValidateType sets the "validateType" field to the value that was provided on create.
type ProductUpsertOne ¶
type ProductUpsertOne struct {
// contains filtered or unexported fields
}
ProductUpsertOne is the builder for "upsert"-ing
one Product node.
func (*ProductUpsertOne) AddDataFormat ¶
func (u *ProductUpsertOne) AddDataFormat(v int32) *ProductUpsertOne
AddDataFormat adds v to the "dataFormat" field.
func (*ProductUpsertOne) AddDeviceCount ¶
func (u *ProductUpsertOne) AddDeviceCount(v int32) *ProductUpsertOne
AddDeviceCount adds v to the "deviceCount" field.
func (*ProductUpsertOne) AddGmtCreate ¶
func (u *ProductUpsertOne) AddGmtCreate(v int64) *ProductUpsertOne
AddGmtCreate adds v to the "gmtCreate" field.
func (*ProductUpsertOne) AddNetType ¶
func (u *ProductUpsertOne) AddNetType(v int32) *ProductUpsertOne
AddNetType adds v to the "netType" field.
func (*ProductUpsertOne) AddNodeType ¶
func (u *ProductUpsertOne) AddNodeType(v int32) *ProductUpsertOne
AddNodeType adds v to the "nodeType" field.
func (*ProductUpsertOne) AddSort ¶
func (u *ProductUpsertOne) AddSort(v uint32) *ProductUpsertOne
AddSort adds v to the "sort" field.
func (*ProductUpsertOne) AddStatus ¶
func (u *ProductUpsertOne) AddStatus(v uint8) *ProductUpsertOne
AddStatus adds v to the "status" field.
func (*ProductUpsertOne) AddValidateType ¶
func (u *ProductUpsertOne) AddValidateType(v int32) *ProductUpsertOne
AddValidateType adds v to the "validateType" field.
func (*ProductUpsertOne) ClearAliyunCommodityCode ¶
func (u *ProductUpsertOne) ClearAliyunCommodityCode() *ProductUpsertOne
ClearAliyunCommodityCode clears the value of the "aliyunCommodityCode" field.
func (*ProductUpsertOne) ClearAuthType ¶
func (u *ProductUpsertOne) ClearAuthType() *ProductUpsertOne
ClearAuthType clears the value of the "authType" field.
func (*ProductUpsertOne) ClearCategoryKey ¶
func (u *ProductUpsertOne) ClearCategoryKey() *ProductUpsertOne
ClearCategoryKey clears the value of the "categoryKey" field.
func (*ProductUpsertOne) ClearCategoryName ¶
func (u *ProductUpsertOne) ClearCategoryName() *ProductUpsertOne
ClearCategoryName clears the value of the "categoryName" field.
func (*ProductUpsertOne) ClearDataFormat ¶
func (u *ProductUpsertOne) ClearDataFormat() *ProductUpsertOne
ClearDataFormat clears the value of the "dataFormat" field.
func (*ProductUpsertOne) ClearDescription ¶
func (u *ProductUpsertOne) ClearDescription() *ProductUpsertOne
ClearDescription clears the value of the "description" field.
func (*ProductUpsertOne) ClearGmtCreate ¶
func (u *ProductUpsertOne) ClearGmtCreate() *ProductUpsertOne
ClearGmtCreate clears the value of the "gmtCreate" field.
func (*ProductUpsertOne) ClearId2 ¶
func (u *ProductUpsertOne) ClearId2() *ProductUpsertOne
ClearId2 clears the value of the "id2" field.
func (*ProductUpsertOne) ClearNetType ¶
func (u *ProductUpsertOne) ClearNetType() *ProductUpsertOne
ClearNetType clears the value of the "netType" field.
func (*ProductUpsertOne) ClearOwner ¶
func (u *ProductUpsertOne) ClearOwner() *ProductUpsertOne
ClearOwner clears the value of the "owner" field.
func (*ProductUpsertOne) ClearProductSecret ¶
func (u *ProductUpsertOne) ClearProductSecret() *ProductUpsertOne
ClearProductSecret clears the value of the "productSecret" field.
func (*ProductUpsertOne) ClearProductStatus ¶
func (u *ProductUpsertOne) ClearProductStatus() *ProductUpsertOne
ClearProductStatus clears the value of the "productStatus" field.
func (*ProductUpsertOne) ClearProtocolType ¶
func (u *ProductUpsertOne) ClearProtocolType() *ProductUpsertOne
ClearProtocolType clears the value of the "protocolType" field.
func (*ProductUpsertOne) ClearStatus ¶
func (u *ProductUpsertOne) ClearStatus() *ProductUpsertOne
ClearStatus clears the value of the "status" field.
func (*ProductUpsertOne) ClearValidateType ¶
func (u *ProductUpsertOne) ClearValidateType() *ProductUpsertOne
ClearValidateType clears the value of the "validateType" field.
func (*ProductUpsertOne) DoNothing ¶
func (u *ProductUpsertOne) DoNothing() *ProductUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ProductUpsertOne) Exec ¶
func (u *ProductUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*ProductUpsertOne) ExecX ¶
func (u *ProductUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProductUpsertOne) IDX ¶
func (u *ProductUpsertOne) IDX(ctx context.Context) uuid.UUID
IDX is like ID, but panics if an error occurs.
func (*ProductUpsertOne) Ignore ¶
func (u *ProductUpsertOne) Ignore() *ProductUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Product.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*ProductUpsertOne) SetAliyunCommodityCode ¶
func (u *ProductUpsertOne) SetAliyunCommodityCode(v string) *ProductUpsertOne
SetAliyunCommodityCode sets the "aliyunCommodityCode" field.
func (*ProductUpsertOne) SetAuthType ¶
func (u *ProductUpsertOne) SetAuthType(v string) *ProductUpsertOne
SetAuthType sets the "authType" field.
func (*ProductUpsertOne) SetCategoryKey ¶
func (u *ProductUpsertOne) SetCategoryKey(v string) *ProductUpsertOne
SetCategoryKey sets the "categoryKey" field.
func (*ProductUpsertOne) SetCategoryName ¶
func (u *ProductUpsertOne) SetCategoryName(v string) *ProductUpsertOne
SetCategoryName sets the "categoryName" field.
func (*ProductUpsertOne) SetDataFormat ¶
func (u *ProductUpsertOne) SetDataFormat(v int32) *ProductUpsertOne
SetDataFormat sets the "dataFormat" field.
func (*ProductUpsertOne) SetDescription ¶
func (u *ProductUpsertOne) SetDescription(v string) *ProductUpsertOne
SetDescription sets the "description" field.
func (*ProductUpsertOne) SetDeviceCount ¶
func (u *ProductUpsertOne) SetDeviceCount(v int32) *ProductUpsertOne
SetDeviceCount sets the "deviceCount" field.
func (*ProductUpsertOne) SetGmtCreate ¶
func (u *ProductUpsertOne) SetGmtCreate(v int64) *ProductUpsertOne
SetGmtCreate sets the "gmtCreate" field.
func (*ProductUpsertOne) SetId2 ¶
func (u *ProductUpsertOne) SetId2(v bool) *ProductUpsertOne
SetId2 sets the "id2" field.
func (*ProductUpsertOne) SetNetType ¶
func (u *ProductUpsertOne) SetNetType(v int32) *ProductUpsertOne
SetNetType sets the "netType" field.
func (*ProductUpsertOne) SetNodeType ¶
func (u *ProductUpsertOne) SetNodeType(v int32) *ProductUpsertOne
SetNodeType sets the "nodeType" field.
func (*ProductUpsertOne) SetOwner ¶
func (u *ProductUpsertOne) SetOwner(v bool) *ProductUpsertOne
SetOwner sets the "owner" field.
func (*ProductUpsertOne) SetProductKey ¶
func (u *ProductUpsertOne) SetProductKey(v string) *ProductUpsertOne
SetProductKey sets the "productKey" field.
func (*ProductUpsertOne) SetProductName ¶
func (u *ProductUpsertOne) SetProductName(v string) *ProductUpsertOne
SetProductName sets the "productName" field.
func (*ProductUpsertOne) SetProductSecret ¶
func (u *ProductUpsertOne) SetProductSecret(v string) *ProductUpsertOne
SetProductSecret sets the "productSecret" field.
func (*ProductUpsertOne) SetProductStatus ¶
func (u *ProductUpsertOne) SetProductStatus(v string) *ProductUpsertOne
SetProductStatus sets the "productStatus" field.
func (*ProductUpsertOne) SetProtocolType ¶
func (u *ProductUpsertOne) SetProtocolType(v string) *ProductUpsertOne
SetProtocolType sets the "protocolType" field.
func (*ProductUpsertOne) SetSort ¶
func (u *ProductUpsertOne) SetSort(v uint32) *ProductUpsertOne
SetSort sets the "sort" field.
func (*ProductUpsertOne) SetStatus ¶
func (u *ProductUpsertOne) SetStatus(v uint8) *ProductUpsertOne
SetStatus sets the "status" field.
func (*ProductUpsertOne) SetUpdatedAt ¶
func (u *ProductUpsertOne) SetUpdatedAt(v time.Time) *ProductUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*ProductUpsertOne) SetValidateType ¶
func (u *ProductUpsertOne) SetValidateType(v int32) *ProductUpsertOne
SetValidateType sets the "validateType" field.
func (*ProductUpsertOne) Update ¶
func (u *ProductUpsertOne) Update(set func(*ProductUpsert)) *ProductUpsertOne
Update allows overriding fields `UPDATE` values. See the ProductCreate.OnConflict documentation for more info.
func (*ProductUpsertOne) UpdateAliyunCommodityCode ¶
func (u *ProductUpsertOne) UpdateAliyunCommodityCode() *ProductUpsertOne
UpdateAliyunCommodityCode sets the "aliyunCommodityCode" field to the value that was provided on create.
func (*ProductUpsertOne) UpdateAuthType ¶
func (u *ProductUpsertOne) UpdateAuthType() *ProductUpsertOne
UpdateAuthType sets the "authType" field to the value that was provided on create.
func (*ProductUpsertOne) UpdateCategoryKey ¶
func (u *ProductUpsertOne) UpdateCategoryKey() *ProductUpsertOne
UpdateCategoryKey sets the "categoryKey" field to the value that was provided on create.
func (*ProductUpsertOne) UpdateCategoryName ¶
func (u *ProductUpsertOne) UpdateCategoryName() *ProductUpsertOne
UpdateCategoryName sets the "categoryName" field to the value that was provided on create.
func (*ProductUpsertOne) UpdateDataFormat ¶
func (u *ProductUpsertOne) UpdateDataFormat() *ProductUpsertOne
UpdateDataFormat sets the "dataFormat" field to the value that was provided on create.
func (*ProductUpsertOne) UpdateDescription ¶
func (u *ProductUpsertOne) UpdateDescription() *ProductUpsertOne
UpdateDescription sets the "description" field to the value that was provided on create.
func (*ProductUpsertOne) UpdateDeviceCount ¶
func (u *ProductUpsertOne) UpdateDeviceCount() *ProductUpsertOne
UpdateDeviceCount sets the "deviceCount" field to the value that was provided on create.
func (*ProductUpsertOne) UpdateGmtCreate ¶
func (u *ProductUpsertOne) UpdateGmtCreate() *ProductUpsertOne
UpdateGmtCreate sets the "gmtCreate" field to the value that was provided on create.
func (*ProductUpsertOne) UpdateId2 ¶
func (u *ProductUpsertOne) UpdateId2() *ProductUpsertOne
UpdateId2 sets the "id2" field to the value that was provided on create.
func (*ProductUpsertOne) UpdateNetType ¶
func (u *ProductUpsertOne) UpdateNetType() *ProductUpsertOne
UpdateNetType sets the "netType" field to the value that was provided on create.
func (*ProductUpsertOne) UpdateNewValues ¶
func (u *ProductUpsertOne) UpdateNewValues() *ProductUpsertOne
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.Product.Create(). OnConflict( sql.ResolveWithNewValues(), sql.ResolveWith(func(u *sql.UpdateSet) { u.SetIgnore(product.FieldID) }), ). Exec(ctx)
func (*ProductUpsertOne) UpdateNodeType ¶
func (u *ProductUpsertOne) UpdateNodeType() *ProductUpsertOne
UpdateNodeType sets the "nodeType" field to the value that was provided on create.
func (*ProductUpsertOne) UpdateOwner ¶
func (u *ProductUpsertOne) UpdateOwner() *ProductUpsertOne
UpdateOwner sets the "owner" field to the value that was provided on create.
func (*ProductUpsertOne) UpdateProductKey ¶
func (u *ProductUpsertOne) UpdateProductKey() *ProductUpsertOne
UpdateProductKey sets the "productKey" field to the value that was provided on create.
func (*ProductUpsertOne) UpdateProductName ¶
func (u *ProductUpsertOne) UpdateProductName() *ProductUpsertOne
UpdateProductName sets the "productName" field to the value that was provided on create.
func (*ProductUpsertOne) UpdateProductSecret ¶
func (u *ProductUpsertOne) UpdateProductSecret() *ProductUpsertOne
UpdateProductSecret sets the "productSecret" field to the value that was provided on create.
func (*ProductUpsertOne) UpdateProductStatus ¶
func (u *ProductUpsertOne) UpdateProductStatus() *ProductUpsertOne
UpdateProductStatus sets the "productStatus" field to the value that was provided on create.
func (*ProductUpsertOne) UpdateProtocolType ¶
func (u *ProductUpsertOne) UpdateProtocolType() *ProductUpsertOne
UpdateProtocolType sets the "protocolType" field to the value that was provided on create.
func (*ProductUpsertOne) UpdateSort ¶
func (u *ProductUpsertOne) UpdateSort() *ProductUpsertOne
UpdateSort sets the "sort" field to the value that was provided on create.
func (*ProductUpsertOne) UpdateStatus ¶
func (u *ProductUpsertOne) UpdateStatus() *ProductUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*ProductUpsertOne) UpdateUpdatedAt ¶
func (u *ProductUpsertOne) UpdateUpdatedAt() *ProductUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*ProductUpsertOne) UpdateValidateType ¶
func (u *ProductUpsertOne) UpdateValidateType() *ProductUpsertOne
UpdateValidateType sets the "validateType" field to the value that was provided on create.
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 { // Company is the client for interacting with the Company builders. Company *CompanyClient // Device is the client for interacting with the Device builders. Device *DeviceClient // DeviceProp is the client for interacting with the DeviceProp builders. DeviceProp *DevicePropClient // Member is the client for interacting with the Member builders. Member *MemberClient // Product is the client for interacting with the Product builders. Product *ProductClient // ProductEvent is the client for interacting with the ProductEvent builders. ProductEvent *ProductEventClient // ProductProperty is the client for interacting with the ProductProperty builders. ProductProperty *ProductPropertyClient // ProductService is the client for interacting with the ProductService builders. ProductService *ProductServiceClient // ProductTag is the client for interacting with the ProductTag builders. ProductTag *ProductTagClient // 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
- company.go
- company_create.go
- company_delete.go
- company_query.go
- company_update.go
- device.go
- device_create.go
- device_delete.go
- device_query.go
- device_update.go
- deviceprop.go
- deviceprop_create.go
- deviceprop_delete.go
- deviceprop_query.go
- deviceprop_update.go
- ent.go
- generate.go
- member.go
- member_create.go
- member_delete.go
- member_query.go
- member_update.go
- mutation.go
- pagination.go
- product.go
- product_create.go
- product_delete.go
- product_query.go
- product_update.go
- productevent.go
- productevent_create.go
- productevent_delete.go
- productevent_query.go
- productevent_update.go
- productproperty.go
- productproperty_create.go
- productproperty_delete.go
- productproperty_query.go
- productproperty_update.go
- productservice.go
- productservice_create.go
- productservice_delete.go
- productservice_query.go
- productservice_update.go
- producttag.go
- producttag_create.go
- producttag_delete.go
- producttag_query.go
- producttag_update.go
- runtime.go
- set_not_nil.go
- tx.go